/* ============================================================
   CARTE GOOGLE AVIS — Design system
   Palette : papier chaud · encre · vert bistrot · or étoile
   Typo    : Fraunces (display) · Instrument Sans (UI) · Spline Sans Mono (data)
   ============================================================ */

:root {
  /* Fonds */
  --paper:      #F5F2EB;
  --paper-deep: #EDE8DC;
  --card:       #FFFFFF;
  --surface:    var(--surface);   /* fonds de champs, entêtes de maquette, encarts */

  /* Encres */
  --ink:   #191711;
  --ink-2: #575145;
  --ink-3: #756D5C;

  /* Marque */
  --green:       #1E5C41;
  --green-hover: #174A34;
  --green-soft:  #E3EDE5;
  --green-deep:  #0F2C1F;
  --on-dark:     #EDE9DD;
  --on-dark-2:   #A8C2B2;

  --gold:      #E8A83B;
  --gold-deep: #A8721B;

  /* Lignes */
  --line: #E4DDCD;

  /* Typo */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-sans: 'Instrument Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --shadow-card: 0 1px 2px rgba(25,23,17,.05), 0 16px 40px -24px rgba(25,23,17,.28);
  --shadow-pop:  0 2px 4px rgba(25,23,17,.08), 0 32px 64px -32px rgba(25,23,17,.38);

  --r-card: 24px;
  --r-ui: 12px;

  --container: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 480; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.skip-link:focus { left: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: clamp(20px, 4vw, 32px); }

/* Étiquettes mono */
.eyebrow {
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); flex: 0 0 auto; }
.dark .eyebrow { color: var(--on-dark-2); }

.section-head { max-width: 640px; display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); }
.section-head .lead { color: var(--ink-2); font-size: clamp(17px, 1.9vw, 19px); }
.dark .section-head .lead { color: var(--on-dark-2); }

em.accent { font-style: italic; font-weight: 500; color: var(--green); }
.dark em.accent { color: var(--gold); }

section { padding-block: clamp(72px, 10vw, 130px); }

/* ---------- Rythme vertical ----------
   Aucune section ne doit toucher une section de même fond, sinon les deux
   se lisent comme un seul bloc interminable. Alternance voulue :
   hero clair → moment sourd → chiffres SOMBRE → fonctionnement sourd →
   système clair → photos sourd → tarif clair → FAQ sourd → contact SOMBRE
   (les ids anglais sont listés pour que /en/ suive exactement le même rythme) */
#fonctionnement, #how-it-works,
#faq {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding-inline: 26px; border-radius: 999px;
  font-family: var(--f-sans); font-size: 16px; font-weight: 550; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(25,23,17,.28); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #DE9B28; }
.btn-ondark { background: transparent; color: var(--on-dark); border-color: rgba(237,233,221,.35); }
.btn-ondark:hover { border-color: var(--on-dark); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-bar { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--green);
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand small { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 15.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: 4px; height: 42px; padding-inline: 20px; font-size: 15.5px; }
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); place-items: center; }

@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 18px clamp(20px,4vw,32px) 26px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-of-type { border-bottom: 0; }
  .nav-cta { margin: 12px 0 0; height: 50px; justify-content: center; }
  .nav-toggle { display: grid; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 110px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 480; margin-top: 22px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--green); }
.hero .sub { margin-top: 24px; font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); max-width: 33em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.hero-facts svg { color: var(--green); flex: 0 0 auto; }

/* Mock dashboard */
.hero-visual { position: relative; }
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.mock-chrome { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-url {
  flex: 1; max-width: 300px; margin-inline: auto;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-body { padding: clamp(18px, 2.4vw, 26px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.mock-chart svg, .tile .demo svg { width: 100%; height: auto; }
.mock-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.mock-resto { display: flex; align-items: center; gap: 12px; }
.mock-resto .avatar {
  width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center; font-family: var(--f-display); font-size: 17px; font-weight: 600;
}
.mock-resto b { font-size: 15.5px; font-weight: 600; display: block; line-height: 1.25; }
.mock-resto span { font-size: 12.5px; color: var(--ink-3); }
.badge-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 6px 12px; }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 12px 14px; }
.kpi b { font-family: var(--f-mono); font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; display: block; letter-spacing: -.02em; }
.kpi span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.kpi .up { color: var(--green); font-family: var(--f-mono); font-size: 11px; margin-left: 5px; }

.mock-chart { border: 1px solid var(--line); border-radius: var(--r-ui); padding: 14px 14px 8px; }
.mock-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.mock-chart-head span { font-size: 12.5px; font-weight: 550; }
.mock-chart-head small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.mock-link { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-ui); padding: 10px 10px 10px 16px; }
.mock-link .lab { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.mock-link code { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-btn { background: var(--green); color: #fff; border-radius: 9px; font-size: 12.5px; font-weight: 550; padding: 8px 14px; white-space: nowrap; }

.mock-caption { margin-top: 14px; text-align: center; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* Carte NFC flottante */
.nfc-card {
  position: absolute; left: clamp(-18px, -2vw, -34px); bottom: 34px;
  width: min(250px, 62%); aspect-ratio: 1.586; border-radius: 16px;
  background: linear-gradient(145deg, #256B4C 0%, var(--green) 45%, #143D2B 100%);
  color: var(--on-dark); box-shadow: var(--shadow-pop);
  transform: rotate(-5deg);
  padding: 7.5% 8.5%;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.14);
}
.nfc-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.13) 45%, transparent 60%);
  pointer-events: none;
}
.nfc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.nfc-star { color: var(--gold); width: 26px; height: 26px; }
.nfc-waves { opacity: .85; }
.nfc-txt b { font-family: var(--f-display); font-weight: 500; font-size: clamp(15px, 1.8vw, 18px); letter-spacing: -.01em; line-height: 1.15; display: block; }
.nfc-txt span { font-size: clamp(10px, 1.2vw, 11.5px); opacity: .75; display: block; margin-top: 5px; }
.nfc-brand { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
@media (max-width: 980px) {
  .nfc-card { position: static; transform: rotate(-3deg); margin: -34px auto 0; width: min(250px, 70%); }
}

/* ---------- Bande "le moment" ---------- */
.moment { background: var(--paper-deep); border-block: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px); }
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 860px) { .moment-grid { grid-template-columns: minmax(0, 1fr); } }
.moment-item { display: grid; gap: 10px; align-content: start; }
.moment-item .num { font-family: var(--f-mono); font-size: 12.5px; color: var(--gold-deep); letter-spacing: .12em; }
.moment-item h3 { font-size: 22px; font-weight: 520; }
.moment-item p { color: var(--ink-2); font-size: 15.5px; }
.moment-head { max-width: 560px; margin-bottom: clamp(36px, 5vw, 56px); }
.moment-head h2 { font-size: clamp(28px, 4vw, 40px); }

/* ---------- Fonctionnement ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { display: grid; gap: 13px; align-content: start; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--f-mono); font-size: 14px; color: var(--ink-3); letter-spacing: .1em;
}
.step h3 { font-size: 22px; font-weight: 520; }
.step p { color: var(--ink-2); font-size: 15.5px; }
/* Fond clair : la section est désormais sourde, les vignettes doivent s'en détacher. */
.step .ill { height: 128px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; transition: transform .4s cubic-bezier(.22,.8,.28,1); }
.step:hover .ill { transform: translateY(-4px); }

/* ---------- Le système (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-card);
}
.tile h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 520; }
.tile > p { color: var(--ink-2); font-size: 15.5px; max-width: 46em; }
.tile .demo { margin-top: auto; padding-top: 18px; }
.t-7 { grid-column: span 7; }
.t-5 { grid-column: span 5; }
.t-6 { grid-column: span 6; }
.t-12 { grid-column: span 12; }
@media (max-width: 900px) { .t-7, .t-5, .t-6 { grid-column: span 12; } }

.demo-link { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-ui); padding: 10px 10px 10px 16px; }
.demo-link code { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-3); }

.demo-supports { display: grid; gap: 8px; }
.support { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-ui); padding: 11px 14px; font-size: 14px; font-weight: 500; }
.support .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.support .state { margin-left: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.support .state.off { color: var(--ink-3); }

/* ---------- Tarif ---------- */
.pricing-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .pricing-wrap { grid-template-columns: minmax(0, 1fr); } }
.price-card {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 24px;
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.price-head { padding: clamp(24px, 3vw, 32px); border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.launch-chip { display: inline-flex; width: fit-content; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-line .amount { font-family: var(--f-display); font-size: clamp(52px, 6vw, 68px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.price-line .per { color: var(--ink-2); font-size: 15.5px; }
.price-sub { color: var(--ink-2); font-size: 15.5px; }
.price-sub b { color: var(--ink); }
.price-body { padding: clamp(24px, 3vw, 32px); display: grid; gap: 0; }
.price-body li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; font-size: 15.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); list-style: none; }
.price-body ul { margin: 0; padding: 0; }
.price-body li:last-child { border-bottom: 0; }
.price-body li svg { color: var(--green); flex: 0 0 auto; margin-top: 3px; }
.price-body li b { color: var(--ink); font-weight: 600; }
.price-foot { padding: 0 clamp(24px, 3vw, 32px) clamp(24px, 3vw, 32px); display: grid; gap: 12px; }
.price-foot .btn { width: 100%; }
.price-alt { text-align: center; font-size: 14px; color: var(--ink-3); }
.price-guarantee {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--green-soft); border-radius: var(--r-ui); padding: 14px 16px;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.price-guarantee svg { color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.pricing-copy h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 20px; }
.pricing-copy p { color: var(--ink-2); font-size: clamp(16.5px, 1.9vw, 18.5px); max-width: 30em; }
.pricing-copy p + p { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 18px;
  padding: 22px 0; font-family: var(--f-display); font-size: clamp(18px, 2.2vw, 21px); font-weight: 500; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .qmark { font-family: var(--f-mono); font-size: 12.5px; color: var(--gold-deep); letter-spacing: .08em; flex: 0 0 auto; transform: translateY(-2px); }
.faq-item summary .plus { margin-left: auto; flex: 0 0 auto; color: var(--ink-3); transition: transform .25s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); color: var(--green); }
.faq-item .answer { padding: 0 0 26px 46px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.faq-item .answer a { font-weight: 550; }
@media (max-width: 640px) { .faq-item .answer { padding-left: 0; } }

/* ---------- CTA final / contact ---------- */
.final { background: var(--green-deep); color: var(--on-dark); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
@media (max-width: 920px) { .final-grid { grid-template-columns: minmax(0, 1fr); } }
.final h2 { color: var(--on-dark); font-size: clamp(34px, 5vw, 54px); }
.final h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.final .lead { color: var(--on-dark-2); margin-top: 18px; font-size: 17px; max-width: 30em; }
.final-channels { display: grid; gap: 12px; margin-top: 34px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(237,233,221,.18); border-radius: 14px; padding: 16px 18px;
  color: var(--on-dark); transition: border-color .18s ease, background .18s ease;
}
.channel:hover { text-decoration: none; border-color: rgba(237,233,221,.45); background: rgba(237,233,221,.05); }
.channel .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(237,233,221,.1); display: grid; place-items: center; flex: 0 0 auto; }
.channel b { display: block; font-size: 15.5px; font-weight: 600; }
.channel span { font-size: 14px; color: var(--on-dark-2); }

.contact-form { background: var(--card); color: var(--ink); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-pop); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.contact-form h3 { font-size: 22px; font-weight: 520; }
.contact-form .hint { font-size: 14px; color: var(--ink-2); margin-top: -8px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.field input, .field textarea {
  /* 16px minimum : en dessous, Safari iOS zoome la page à la prise de focus. */
  font-family: var(--f-sans); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui);
  padding: 13px 15px; width: 100%;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.consent input { margin-top: 1px; accent-color: var(--green); width: 22px; height: 22px; flex: 0 0 auto; }
.form-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: var(--on-dark-2); border-top: 1px solid rgba(237,233,221,.12); padding-block: 42px; font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: var(--on-dark); }
.footer-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(237,233,221,.1); font-size: 12.5px; line-height: 1.7; color: rgba(168,194,178,.75); max-width: 72ch; }

/* ---------- Pages légales ---------- */
.legal-main { padding-block: clamp(48px, 7vw, 88px); }
.legal-main .container { max-width: 760px; }
.legal-main h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 480; margin-bottom: 10px; }
.legal-main .updated { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.legal-main h2 { font-size: 24px; font-weight: 520; margin: 44px 0 12px; }
.legal-main p, .legal-main li { color: var(--ink-2); font-size: 16px; }
.legal-main p { margin-bottom: 12px; }
.legal-main ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal-main li { margin: 6px 0; }
mark.todo {
  background: #FBEACB; color: #7A5410; border-radius: 4px; padding: 1px 7px;
  font-size: .92em; font-weight: 550;
}

/* ---------- Les chiffres (stats + calculette) ---------- */
.stats { background: var(--green-deep); color: var(--on-dark); }
.stats .section-head h2 { color: var(--on-dark); }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: rgba(237,233,221,.14); border-block: 1px solid rgba(237,233,221,.14);
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }
.stat { background: var(--green-deep); padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px); display: grid; gap: 10px; align-content: start; }
.stat-num { font-family: var(--f-mono); font-weight: 500; font-size: clamp(40px, 5vw, 58px); line-height: 1; color: var(--gold); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .48em; color: var(--on-dark-2); font-weight: 400; }
.stat p { font-size: 15.5px; line-height: 1.5; color: var(--on-dark); max-width: 30ch; }
.stat-src { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }

.calc {
  margin-top: clamp(40px, 6vw, 64px); background: var(--card); color: var(--ink);
  border-radius: var(--r-card); box-shadow: var(--shadow-pop);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden;
}
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-inputs { padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 24px; align-content: start; }
.calc-inputs h3 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 520; }
.calc-field { display: grid; gap: 11px; }
.calc-field label, .calc-lab { font-size: 14px; font-weight: 550; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-field output { font-family: var(--f-mono); font-size: 17px; color: var(--green); font-weight: 500; }
/* Le curseur garde une zone tactile de 44px de haut : la piste reste fine,
   c'est l'élément qui est épais et transparent. */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%;
  height: 44px; background: transparent; cursor: pointer; margin: 0;
  touch-action: pan-y;
}
input[type="range"]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--paper-deep); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--paper-deep); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(25,23,17,.35);
  margin-top: -10px;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(25,23,17,.35);
}
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; width: max-content; }
.seg button { font-family: var(--f-sans); font-size: 15.5px; font-weight: 550; color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; min-width: 52px; min-height: 44px; padding: 0 18px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.seg button.on { background: var(--green); color: #fff; }
#c-avis { font-family: var(--f-mono); font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-ui); background: var(--paper); color: var(--ink); width: 140px; }
#c-avis:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.calc-out { padding: clamp(24px, 3.4vw, 40px); background: var(--paper); border-left: 1px solid var(--line); display: grid; gap: 18px; align-content: center; }
@media (max-width: 860px) { .calc-out { border-left: 0; border-top: 1px solid var(--line); } }
.calc-row { display: grid; gap: 3px; }
.calc-row b { font-family: var(--f-mono); font-weight: 500; font-size: 24px; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-row.big b { font-size: clamp(38px, 4.6vw, 52px); color: var(--green); line-height: 1.05; }
.calc-row span { font-size: 14px; color: var(--ink-2); }
.calc-row.big em { font-style: italic; color: var(--green); }
.calc-note { font-size: 14px; color: var(--ink-3); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

/* ---------- Ondes NFC animées ---------- */
@keyframes nfcPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.nfc-waves path { animation: nfcPulse 2.6s ease-in-out infinite; }
.nfc-waves path:nth-child(2) { animation-delay: .35s; }
.nfc-waves path:nth-child(3) { animation-delay: .7s; }

/* ---------- CTA mobile collante ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink); color: var(--on-dark);
  border-radius: 999px; padding: 9px 9px 9px 22px;
  box-shadow: 0 12px 32px -12px rgba(25,23,17,.55);
  transform: translateY(130%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.sticky-cta span b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.sticky-cta span small { font-family: var(--f-mono); font-size: 11px; color: var(--on-dark-2); letter-spacing: .04em; }
.sticky-cta .btn { height: 42px; padding-inline: 20px; font-size: 15.5px; }
.sticky-cta.show { transform: translateY(0); opacity: 1; }
/* Masquée dès que la section de commande est à l'écran : elle y ferait doublon
   et recouvrirait le formulaire. Classe posée par site.js. */
.sticky-cta.hide { transform: translateY(130%); opacity: 0; }
@media (max-width: 860px) { .sticky-cta { display: flex; } }

/* ============================================================
   OPTIMISATIONS MOBILE
   ============================================================ */
@media (max-width: 860px) {
  /* Réserve la place de la barre collante : plus rien ne passe dessous. */
  body { padding-bottom: 88px; }

  /* Sections un peu plus resserrées : ~200 px gagnés sur la page. */
  section { padding-block: clamp(58px, 9vw, 72px); }

  /* Cibles tactiles du pied de page et de la navigation */
  .footer-links { gap: 2px 20px; }
  .footer-links a { padding: 11px 0; display: inline-block; }
  .lang-switch { padding: 10px 16px; }
  .brand { padding: 5px 0; }
  .sticky-cta .btn { height: 44px; }

  /* Le 16/9 devient une bande trop fine sur un écran étroit */
  .shot-lead .shot-media { aspect-ratio: 4 / 3; }
  .shot figcaption { flex-direction: column; gap: 3px; }

  /* Le graphe du tableau de bord respire mal en dessous de 400 px */
  .mock-kpis { gap: 8px; }
  .kpi { padding: 10px 11px; }

  /* Calculette : résultats plus lisibles au pouce */
  .calc-out { gap: 16px; }
  #c-avis { width: 100%; max-width: 180px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .btn { padding-inline: 20px; font-size: 15.5px; }
  .seg button { min-width: 46px; padding: 0 12px; }
  .sticky-cta { padding-left: 16px; }
  .sticky-cta .btn { padding-inline: 16px; }
}

/* ---------- En situation (photos) ---------- */
.gallery { background: var(--paper-deep); border-block: 1px solid var(--line); }
.todo-block { margin: -18px 0 34px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
@media (max-width: 860px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shot-lead { grid-column: span 2; }
@media (max-width: 860px) { .shot-lead { grid-column: span 1; } }

.shot-media {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.shot-lead .shot-media { aspect-ratio: 16 / 9; }
.shot-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-media > * { transition: transform .8s cubic-bezier(.22,.8,.28,1); }
.shot:hover .shot-media > * { transform: scale(1.035); }

/* Marque-place : disparaît dès qu'une vraie photo est posée */
.shot-ph {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 9px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(25,23,17,.028) 12px 24px),
    var(--paper);
}
.shot-ph svg { color: var(--ink-3); opacity: .55; }
.shot-ph b { font-family: var(--f-display); font-weight: 520; font-size: clamp(17px, 2vw, 20px); color: var(--ink); }
.shot-ph span { font-size: 14px; color: var(--ink-2); max-width: 34ch; line-height: 1.5; }
.shot-ph em {
  font-family: var(--f-mono); font-style: normal; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-deep);
  border: 1px dashed var(--gold); border-radius: 999px; padding: 5px 11px; margin-top: 3px;
}
.shot figcaption { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; align-items: baseline; }
.shot figcaption b { font-weight: 600; color: var(--ink); }

/* ---------- Barre de progression de lecture ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .12s linear;
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .1em;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; line-height: 1; align-self: center;
  transition: border-color .2s ease, color .2s ease;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink-3); text-decoration: none; }
.legal-lang-note {
  background: var(--green-soft); border-left: 3px solid var(--green);
  border-radius: 0 var(--r-ui) var(--r-ui) 0;
  padding: 14px 18px; margin: 0 0 32px; font-size: 15.5px; color: var(--ink-2);
}

/* ---------- Animations ---------- */
/* Aucune de ces animations ne pose d'état initial hors @keyframes : si
   prefers-reduced-motion coupe tout, le contenu s'affiche normalement. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drawLine {
  from { stroke-dasharray: 420; stroke-dashoffset: 420; }
  to   { stroke-dasharray: 420; stroke-dashoffset: 0; }
}
@keyframes popDot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes floatCard {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-9px); }
}
@keyframes shotIn { from { transform: scale(1.09); } to { transform: scale(1); } }

/* Les photos se posent en douceur quand elles entrent à l'écran */
.shot.in .shot-media > * { animation: shotIn 1.1s cubic-bezier(.22,.8,.28,1) both; }

/* Les titres de section se dévoilent par le bas.
   Volontairement limité à .reveal : même contrat JS que le reste de la page,
   donc aucun titre ne peut rester masqué si le script ne s'exécute pas. */
.section-head.reveal h2 { clip-path: inset(0 0 106% 0); transition: clip-path .85s cubic-bezier(.22,.8,.28,1) .1s; }
.section-head.reveal.in h2 { clip-path: inset(0 0 0 0); }

/* Balayage lumineux sur le bouton principal au survol */
.btn-primary {
  background-image: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.2) 46%, transparent 64%);
  background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat;
  transition: transform .18s ease, background-color .18s ease, background-position .75s ease;
}
.btn-primary:hover { background-position: -30% 0; }

/* Entrée du hero, échelonnée */
.hero-anim > *, .hero-visual { animation: riseIn .8s cubic-bezier(.22,.8,.28,1) both; }
.hero-anim > *:nth-child(1) { animation-delay: .04s; }
.hero-anim > *:nth-child(2) { animation-delay: .12s; }
.hero-anim > *:nth-child(3) { animation-delay: .2s; }
.hero-anim > *:nth-child(4) { animation-delay: .28s; }
.hero-anim > *:nth-child(5) { animation-delay: .36s; }
.hero-visual { animation-duration: .95s; animation-delay: .22s; }

/* Le graphe du hero se trace */
.chart-line { animation: drawLine 1.7s cubic-bezier(.4,0,.2,1) .75s both; }
.chart-dot  { animation: popDot .45s cubic-bezier(.34,1.56,.64,1) 2.3s both; transform-origin: 316px 12px; }

/* Les barres poussent quand la tuile apparaît */
.tile.in .bars rect { animation: growBar .65s cubic-bezier(.22,.8,.28,1) both; transform-origin: 50% 100%; }
.tile.in .bars rect:nth-child(1) { animation-delay: .05s; }
.tile.in .bars rect:nth-child(2) { animation-delay: .1s; }
.tile.in .bars rect:nth-child(3) { animation-delay: .15s; }
.tile.in .bars rect:nth-child(4) { animation-delay: .2s; }
.tile.in .bars rect:nth-child(5) { animation-delay: .25s; }
.tile.in .bars rect:nth-child(6) { animation-delay: .3s; }
.tile.in .bars rect:nth-child(7) { animation-delay: .35s; }
.tile.in .bars rect:nth-child(8) { animation-delay: .4s; }
.tile.in .bars rect:nth-child(9) { animation-delay: .45s; }
.tile.in .bars rect:nth-child(10) { animation-delay: .5s; }
.tile.in .bars rect:nth-child(11) { animation-delay: .55s; }
.tile.in .bars > rect:last-child { animation-delay: .6s; }

/* La carte NFC flotte */
.nfc-card { animation: floatCard 6s ease-in-out 1.2s infinite; }
@media (max-width: 980px) { .nfc-card { animation: none; } }

/* Survols */
.tile, .price-card, .stat { transition: transform .35s cubic-bezier(.22,.8,.28,1), box-shadow .35s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.channel { transition: transform .3s cubic-bezier(.22,.8,.28,1), border-color .3s ease; }
.channel:hover { transform: translateX(4px); }
.faq-item summary { transition: color .2s ease; }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.22,.8,.28,1), transform .7s cubic-bezier(.22,.8,.28,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .09s; }
.reveal:nth-child(3) { transition-delay: .18s; }
.reveal:nth-child(4) { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .section-head h2 { clip-path: none !important; }
  .scroll-progress { display: none; }
}
