/* Charte du funnel. Remplace ces jetons par tes couleurs et tes polices :
   tout le reste du fichier en dépend. */
:root {
  --surface: #f4f5f2;        /* fond de page */
  --card: #ffffff;           /* fond du bloc formulaire */
  --ink: #1f2522;            /* texte principal */
  --ink-2: #4b5550;          /* texte secondaire */
  --muted: #7d8681;          /* indications */
  --accent: #2f6b5e;         /* boutons, progression, sélection */
  --accent-deep: #24564b;    /* survol des boutons */
  --accent-soft: #e2ede8;    /* fond d'une option choisie */
  --warn: #a8571f;           /* messages d'erreur, ton doux */
  --line: #1f25221f;         /* bordures légères */
  --line-strong: #1f252247;  /* bordures des champs */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { max-width: 880px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.site-header { padding-block: 28px 0; text-align: center; }
.brand { font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; }

.hero { text-align: center; padding-block: 44px 0; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -.015em; margin: 0 auto; max-width: 22ch; text-wrap: balance; }
.hero p { color: var(--ink-2); max-width: 56ch; margin: 18px auto 0; text-wrap: pretty; }

.video { margin-top: 36px; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-width: 100%; }
.video > * { width: 100%; height: 100%; display: block; }

.funnel-section { padding-block: 44px 96px; }
#funnel { max-width: 620px; margin: 0 auto; scroll-margin-top: 16px; }

/* Verrou avant la présentation de l'offre */
.gate { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.gate-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; color: var(--ink-2); font-size: 15.5px; }
.gate-bar { height: 4px; border-radius: 99px; background: var(--line); margin: 18px auto 0; max-width: 320px; overflow: hidden; }
.gate-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s ease; }
.gate-hint { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; }

/* Formulaire */
.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 2px 10px #1f25220d; }
.appear { animation: appear .45s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .appear { animation: none; } .gate-bar span { transition: none; } }

.form-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(25px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 8px; text-align: center; text-wrap: balance; }
.form-lede { color: var(--ink-2); text-align: center; margin: 0 auto 26px; max-width: 46ch; font-size: 16px; }

.progress { display: flex; gap: 5px; }
.progress span { flex: 1; height: 3px; border-radius: 99px; background: var(--line); }
.progress span.done { background: var(--accent); }
.step-count { margin: 10px 0 18px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.step-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.2; margin: 0 0 6px; outline: none; text-wrap: pretty; }
.step-hint { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14.5px; color: var(--ink-2); }
.input { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.5; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 140px; resize: vertical; }
.has-err { border-color: var(--warn); }
.err { color: var(--warn); font-size: 14px; margin: 4px 0 0; }
.phone-row { display: flex; gap: 10px; }
.phone-row .input:not(.dial) { flex: 1; min-width: 0; }
.dial { width: auto; flex: none; padding-inline: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 14px 16px; font-size: 16px; transition: border-color .12s, background .12s; }
.choice:hover, .choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--card); position: relative; }
.choice.sel .box { background: var(--accent); border-color: var(--accent); }
.choice.sel .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.primary { flex: 1; min-height: 50px; padding: 0 22px; border: none; border-radius: 8px; background: var(--accent); color: var(--card); font-weight: 600; font-size: 16px; transition: background .12s; }
.primary:hover:not(:disabled) { background: var(--accent-deep); }
.primary:disabled { opacity: .5; cursor: default; }
.back { min-height: 50px; padding: 0 18px; border: none; border-radius: 8px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; }
.back:hover { color: var(--ink); }

.days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.day, .slot { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.slot { font-variant-numeric: tabular-nums; }
.day.sel, .slot.sel, .day:hover, .slot:hover { border-color: var(--accent); background: var(--accent-soft); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.notice { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 20px 18px; margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 15px; outline: none; }

.outcome { text-align: center; }
.outcome-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }

.site-footer { padding-block: 0 40px; text-align: center; color: var(--muted); font-size: 13.5px; }
.site-footer a { color: inherit; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .video { margin-top: 26px; border-radius: 0; margin-left: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px))); }
  .form-wrap { padding: 26px 18px; }
  .row { flex-direction: column; gap: 0; }
  .actions { flex-direction: column-reverse; }
  .primary, .back { width: 100%; }
}
