/* ==========================================================================
   BTP360 — funnel opt-in → VSL + calendrier → confirmation
   ========================================================================== */

/* Polices auto-hébergées (variables, sous-ensemble latin) */
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('/assets/fonts/oswald-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/public-sans-latin.woff2') format('woff2');
}

:root {
  --bg: #F3F0EA;
  --bg-2: #E8E3D9;
  --surface: #FAF8F4;
  --dark: #1F2328;
  --dark-2: #171A1E;
  --ink: #1F2328;
  --muted: #4A4F57;
  --on-dark: #F3F0EA;
  --on-dark-muted: rgb(243 240 234 / .68);
  --accent: #F26B1D;
  --accent-light: #FF8A47;
  --accent-deep: #C9530F;
  --accent-text: #A8440B; /* orange lisible en petit texte sur fond clair (contraste AA) */
  --yellow: #FFC21A;
  --line: rgb(31 35 40 / .12);
  --line-dark: rgb(243 240 234 / .12);
  --grad: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 45%, var(--accent-deep) 100%);

  --f-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1080px;
  --gutter: 20px;
  --section-y: clamp(56px, 9vw, 104px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Mise en page ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 760px; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.center { text-align: center; }

/* Bande de balisage chantier */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--dark) 12px 24px);
}

/* ---------- Typographie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--yellow); }

.h1, .h2, .h3 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
.h1 { font-weight: 600; font-size: clamp(30px, 7.4vw, 54px); line-height: 1.04; text-wrap: balance; }
.h2 { font-weight: 600; font-size: clamp(28px, 5.2vw, 44px); line-height: 1.06; text-wrap: balance; }
.h3 { font-weight: 600; font-size: 22px; line-height: 1.15; }
.hl { color: var(--accent-deep); }
.section--dark .hl { color: var(--accent-light); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); text-wrap: pretty; }
.section--dark .lead { color: var(--on-dark-muted); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { justify-items: center; }
.section-head .lead { max-width: 60ch; }

/* ---------- Logo (mot-symbole provisoire) ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; }
.logo__mark { font: 700 26px/1 var(--f-display); letter-spacing: .02em; }
.logo__mark span { color: var(--accent); }
.logo__tag { margin-top: 5px; font: 600 9.5px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.section--dark .logo__tag, .footer .logo__tag { color: var(--on-dark-muted); }

/* ---------- Boutons ---------- */
.btn {
  --h: 58px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--h); padding: 0 10px 0 28px;
  border-radius: 10px; background: var(--grad); color: #fff; text-decoration: none;
  font: 600 clamp(16px, 4.6vw, 19px)/1.1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 0 1px 1px rgb(120 40 0 / .35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 0 rgb(0 0 0 / .12),
    0 10px 24px -10px rgb(201 83 15 / .7), 0 2px 4px rgb(31 35 40 / .12);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 0 rgb(0 0 0 / .12), 0 16px 32px -12px rgb(201 83 15 / .8), 0 2px 4px rgb(31 35 40 / .12); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn__arrow {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px;
  background: rgb(255 255 255 / .18); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25);
}
.btn__arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow svg { transform: translateX(3px); }
.btn--down:hover .btn__arrow svg { transform: translateY(3px); }
.btn--block { width: 100%; }
.btn-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.section--dark .btn-note { color: var(--on-dark-muted); }

/* ==========================================================================
   Vidéo : écran de chantier (cadre anthracite, repères d'angle, niveau laser) + façade
   ========================================================================== */
@keyframes laser {
  0% { top: -3%; opacity: 0; }
  10% { opacity: 1; }
  62% { top: 103%; opacity: 1; }
  63%, 100% { top: 103%; opacity: 0; }
}
@keyframes ripple { from { transform: scale(1); opacity: .75; } to { transform: scale(1.85); opacity: 0; } }
@keyframes corners-in { from { inset: -30px; opacity: 0; } to { inset: -12px; opacity: 1; } }

.vsl-frame {
  position: relative; padding: 10px; border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(160deg, #2E343B, var(--dark) 55%, #15181C);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 0 0 1px rgb(255 255 255 / .05),
    0 30px 60px -28px rgb(31 35 40 / .65), 0 60px 110px -50px rgb(201 83 15 / .55);
}
/* repères d'angle orange, comme sur un plan */
.vsl-frame::before {
  --c: var(--accent); --l: 30px; --t: 3px;
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  background:
    linear-gradient(var(--c) 0 0) left top / var(--l) var(--t), linear-gradient(var(--c) 0 0) left top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right top / var(--l) var(--t), linear-gradient(var(--c) 0 0) right top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) left bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) left bottom / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) right bottom / var(--t) var(--l);
  background-repeat: no-repeat;
  animation: corners-in .9s var(--ease) .15s both;
}
/* niveau laser qui balaie l'affiche (disparaît dès que la vidéo est lancée) */
.vsl-frame .video:has(.video__facade)::after {
  content: ""; position: absolute; left: 0; right: 0; top: -3%; height: 2px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-light) 12%, #FFE3CF 50%, var(--accent-light) 88%, transparent);
  box-shadow: 0 0 10px 1px rgb(242 107 29 / .9), 0 0 36px 6px rgb(242 107 29 / .35);
  animation: laser 5s cubic-bezier(.45, 0, .55, 1) 1.2s infinite;
}

.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--dark); isolation: isolate; container-type: inline-size;
  box-shadow: 0 0 0 1px rgb(31 35 40 / .12), 0 10px 30px -12px rgb(31 35 40 / .45);
}
.video > iframe, .video > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video > video { background: #000; object-fit: contain; }

/* Façade : affiche provisoire en CSS + bouton lecture */
.video__facade {
  position: absolute; inset: 0; width: 100%; display: grid; place-items: center; overflow: hidden;
  color: var(--on-dark); text-align: center;
  background:
    radial-gradient(90% 90% at 50% 110%, rgb(242 107 29 / .35), transparent 60%),
    linear-gradient(160deg, #2A2F35, var(--dark-2));
}
.video__facade::before { /* bande de balisage en haut de l'affiche */
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--dark) 10px 20px);
}
.video__facade::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 80% at 50% 45%, transparent 50%, rgb(0 0 0 / .4));
}
.video__poster-title {
  position: absolute; left: 6%; top: 11%; max-width: 62%; text-align: left;
  font: 600 clamp(14px, 4.4cqi, 30px)/1.05 var(--f-display); text-transform: uppercase; color: rgb(243 240 234 / .9);
}
.video__poster-title span { color: var(--accent-light); }
.video__poster-tag {
  position: absolute; right: 5%; top: 11%;
  font: 600 clamp(9px, 1.6cqi, 12px)/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow);
}
.play {
  position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 0 0 1px rgb(255 255 255 / .26), 0 24px 50px -14px rgb(0 0 0 / .7);
  transition: transform .5s var(--ease), background .4s ease;
}
.play::before, .play::after { /* ondes qui partent du bouton */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--accent-light);
  animation: ripple 2.4s var(--ease) infinite;
}
.play::after { animation-delay: 1.2s; }
.play svg { width: 30px; height: 30px; margin-left: 5px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35)); }
.video__facade:hover .play { transform: scale(1.08); background: var(--grad); }
.video__label {
  position: absolute; z-index: 1; left: 50%; bottom: 8%; transform: translateX(-50%); white-space: nowrap;
  font: 600 clamp(13px, 2.6cqi, 20px)/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .85);
}
/* Miniature photo de la VSL (page /video/) : image entière de la vidéo (sans sous-titre), pastille au centre sous le visage */
.video__facade--photo { background: var(--dark); }
.video__facade--photo::before { display: none; }
.video__facade--photo::after { /* léger voile pour faire ressortir la pastille */
  z-index: 1; background: radial-gradient(70% 60% at 50% 62%, rgb(17 19 22 / .35), rgb(17 19 22 / 0) 75%);
}
.vsl-frame .video:has(.video__facade--photo)::after { display: none; } /* pas de niveau laser sur la photo */
.video__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transition: transform 1s var(--ease);
}
.video__facade--photo:hover .video__photo { transform: scale(1.03); }
.video__photo-play { /* centrée, sous le visage (sur le torse) */
  position: absolute; z-index: 2; left: 50%; top: 60%; transform: translate(-50%, -50%);
  justify-content: center;
  display: flex; align-items: center; gap: clamp(8px, 1.8cqi, 16px);
  padding: .5em 1.4em .5em .5em; border-radius: 99px;
  background: rgb(17 19 22 / .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / .22); color: var(--on-dark); white-space: nowrap;
  font: 600 clamp(13px, 2.4cqi, 20px)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 20px 44px -16px rgb(0 0 0 / .7);
  transition: transform .5s var(--ease), background .4s ease, border-color .4s ease;
}
.video__photo-play .play { flex: none; width: clamp(32px, 7cqi, 60px); height: clamp(32px, 7cqi, 60px); background: var(--grad); }
.video__photo-play .play svg { width: 42%; height: 42%; margin-left: 8%; }
.video__facade--photo:hover .video__photo-play { transform: translate(-50%, -50%) scale(1.04); background: rgb(160 64 12 / .9); border-color: rgb(255 179 128 / .55); }
@container (max-width: 360px) { .video__photo-play { top: 66%; } } /* très petit écran : la pastille, plus haute en proportion, ne touche pas le menton */

.video__pending {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px;
  background: rgb(23 26 30 / .88); color: var(--on-dark); font-size: 15px; text-align: center;
}
@container (max-width: 520px) {
  .play { width: 62px; height: 62px; }
  .play svg { width: 22px; height: 22px; margin-left: 3px; }
}

/* ==========================================================================
   Hero (VSL + opt-in + confirmation)
   ========================================================================== */
.topbar { padding: 14px var(--gutter) 0; text-align: center; }

.hero { padding: 18px 0 clamp(36px, 6vw, 64px); text-align: center; }
.hero .wrap { display: grid; justify-items: center; }
.hero .eyebrow { margin-bottom: 12px; }
.hero .h1 { max-width: 20ch; }
.hero__video {
  /* titre + vidéo + CTA tiennent dans l'écran ; pleine largeur sur mobile */
  width: min(100%, 940px, max(560px, calc((100svh - 330px) * 16 / 9)));
  margin-top: clamp(18px, 3vh, 30px);
}
.hero__meta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 15px; color: var(--muted); text-wrap: balance;
}
.hero__meta svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.hero__cta { margin-top: 18px; }

/* ==========================================================================
   Page VSL (format court : promesse + vidéo → calendrier → études de cas → CTA)
   ========================================================================== */

/* Dock flottant en bas : apparaît après le titre, barre d'avancement façon balisage */
.dock {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  width: min(calc(100% - 24px), 540px); display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 11px 18px; border-radius: 16px; overflow: hidden;
  background: rgb(31 35 40 / .92); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  color: var(--on-dark); box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 22px 44px -16px rgb(0 0 0 / .6);
  transform: translate(-50%, 160%); transition: transform .55s var(--ease);
}
.dock.is-visible { transform: translate(-50%, 0); }
.dock__logo { font: 700 20px/1 var(--f-display); letter-spacing: .02em; }
.dock__logo span { color: var(--accent); }
.dock__text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btn { --h: 44px; padding: 0 6px 0 16px; gap: 10px; font-size: 15px; }
.dock .btn__arrow { width: 32px; height: 32px; }
.dock__progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; transform-origin: left; transform: scaleX(var(--p, 0));
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--dark) 8px 16px);
}
.page-vsl .footer { padding-bottom: 110px; }
@media (max-width: 480px) {
  .dock__text { display: none; }
  .dock { justify-content: space-between; }
  .hero__trust .nowrap, .hero__trust-line { display: block; }
  .hero__trust .sep { display: none; }
}

.hero--vsl { position: relative; padding-top: 10px; overflow: hidden; }
.hero--vsl::before { /* lueur orange derrière la vidéo */
  content: ""; position: absolute; inset: 30% -20% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgb(242 107 29 / .16), transparent 70%);
}
.hero--vsl .h1 { font-size: clamp(26px, 8.4vw, 64px); line-height: 1; max-width: 18ch; } /* min bas : la partie soulignée ne passe pas à la ligne (320–380 px) */
.hero--vsl .h1 .hl { /* trait souligné, répété sur chaque ligne si la partie orange passe à la ligne */
  background: var(--grad) left bottom / 100% .09em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Badge partenaire FFB sous le bouton */
.partner-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  padding: 6px 18px 6px 6px; border-radius: 999px; text-align: left;
  background: var(--dark); color: var(--on-dark);
  box-shadow: 0 0 0 1px rgb(255 194 26 / .35), 0 12px 28px -14px rgb(31 35 40 / .7);
}
.partner-badge__mark {
  display: grid; place-items: center; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--surface);
}
.partner-badge__mark img { width: auto; height: 30px; }
.partner-badge__text { display: grid; gap: 3px; font: 700 14px/1.1 var(--f-body); }
.partner-badge__text small { font: 600 10px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }

.hero--vsl .hero__video { margin-top: clamp(30px, 4.6vh, 46px); width: min(100%, 940px, max(560px, calc((100svh - 300px) * 16 / 9))); }
.hero--vsl .hero__cta { margin-top: 26px; }
.hero--vsl .topbar { padding-bottom: clamp(14px, 2.4vh, 22px); }
.hero__trust { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-wrap: balance; }
.hero__trust strong { color: var(--ink); }

/* Calendrier directement sous la vidéo */
.agenda { padding: 8px 0 clamp(56px, 8vw, 96px); scroll-margin-top: 70px; }
.agenda .calendar { max-width: 760px; margin-inline: auto; }
.agenda__head { display: grid; justify-items: center; gap: 8px; margin: 18px 0 22px; text-align: center; }
.agenda__step {
  padding: 6px 10px; border: 1px dashed rgb(31 35 40 / .3); border-radius: 6px;
  font: 600 10.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.agenda__title { font: 600 clamp(26px, 6vw, 38px)/1.05 var(--f-display); text-transform: uppercase; }
.agenda__sub { font-size: 14.5px; color: var(--muted); }

/* Études de cas : fiches chantier sur fond béton, avant → après */
.cases { display: grid; gap: 16px; }
.case {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 22px 22px; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 24px 50px -36px rgb(31 35 40 / .55);
}
.case::before { /* bande de balisage en tête de fiche */
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--dark) 10px 20px);
}
.case__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case__name { font: 600 24px/1.05 var(--f-display); text-transform: uppercase; }
.case__meta { margin-top: 6px; font: 600 12px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case__n {
  flex: none; padding: 6px 8px; border: 1px dashed rgb(31 35 40 / .3); border-radius: 6px;
  font: 600 10.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
/* mobile : avant ↓ après, empilés ; desktop : avant → après côte à côte */
.case__flow { display: grid; grid-template-columns: 1fr; justify-items: stretch; gap: 0; }
.case__box {
  position: relative; display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "label label" "value caption";
  align-items: center; gap: 6px 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
}
.case__box--after {
  background: radial-gradient(120% 120% at 100% 0%, rgb(242 107 29 / .3), transparent 60%), var(--dark);
  border-color: var(--dark); color: var(--on-dark);
}
.case__label { grid-area: label; font: 600 10.5px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.case__box--after .case__label { color: var(--accent-light); }
.case__value { grid-area: value; font: 600 30px/1 var(--f-display); text-transform: uppercase; white-space: nowrap; color: #6E737A; }
.case__box--after .case__value { color: var(--on-dark); }
.case__caption { grid-area: caption; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.case__box--after .case__caption { color: rgb(243 240 234 / .82); }
.case__stamp { /* tampon « Livré » */
  position: absolute; right: 10px; top: 10px; padding: 4px 8px 3px; border: 2px solid var(--accent-light); border-radius: 5px;
  font: 600 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light);
  transform: rotate(-8deg); opacity: .92;
}
.case__arrow { /* flèche entre avant et après */
  position: relative; z-index: 1; justify-self: center; margin: -8px 0;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: 0 0 0 5px var(--surface), 0 10px 24px -8px rgb(242 107 29 / .9);
}
.case__arrow svg { width: 17px; height: 17px; transform: rotate(90deg); }

.case__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto;
  min-height: 48px; padding-top: 16px; border-top: 1px dashed rgb(31 35 40 / .2);
}
.case__text { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.case--you { border: 2px dashed rgb(242 107 29 / .55); background: linear-gradient(180deg, rgb(242 107 29 / .06), transparent 60%), var(--surface); }
.case--you::before { display: none; }
.case--you .case__foot { border-top: 0; padding-top: 0; }
.case--you .btn { --h: 52px; font-size: 16px; white-space: nowrap; padding-left: 18px; gap: 10px; }

/* CTA final clair, grand titre */
.final--light { background: radial-gradient(70% 90% at 50% 100%, rgb(242 107 29 / .16), transparent 70%), var(--bg); }
.final--light::before { display: none; }
.final--light .h2 { font-size: clamp(32px, 6.4vw, 58px); line-height: 1.02; max-width: 20ch; }

.calendar {
  min-height: 440px; border-radius: calc(var(--radius) + 4px); background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(31 35 40 / .45); overflow: hidden;
}
.agenda .calendar { border-color: rgb(242 107 29 / .35); box-shadow: 0 0 0 6px rgb(242 107 29 / .06), 0 40px 80px -50px rgb(201 83 15 / .6); }
.calendar iframe { width: 100%; min-height: 700px; border: 0; }
.cal__heading { font: 600 clamp(22px, 5vw, 28px)/1.1 var(--f-display); text-transform: uppercase; }
.cal__sub { font-size: 14.5px; color: var(--muted); }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgb(242 107 29 / .28), transparent 70%);
}
.final .wrap { position: relative; display: grid; justify-items: center; gap: 26px; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; background: var(--dark-2); color: var(--on-dark-muted); font-size: 13.5px; }
.footer .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer .logo__mark { color: var(--on-dark); font-size: 22px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer__disclaimer { max-width: 70ch; font-size: 12.5px; }

/* ==========================================================================
   Opt-in
   ========================================================================== */
.optin { padding: 18px 0 48px; }
.optin__grid { display: grid; gap: 22px; }
.optin__text { display: grid; gap: 14px; justify-items: center; text-align: center; }
.optin__text .h1 { font-size: clamp(30px, 7.6vw, 52px); }
.optin__locked { position: relative; }
.optin__locked .video__facade { cursor: pointer; }
.optin__locked .video__poster-title { filter: blur(3px); opacity: .7; }
.lock {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px;
}
.lock__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 0 0 1px rgb(255 255 255 / .26);
}
.lock__icon svg { width: 26px; height: 26px; }
.lock__label { font: 600 clamp(15px, 3.4cqi, 22px)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }

.form-card {
  display: grid; gap: 14px; padding: 22px; border-radius: calc(var(--radius) + 4px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(31 35 40 / .45);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input {
  height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid rgb(31 35 40 / .2); background: #fff;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(242 107 29 / .15); }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.field__error { font-size: 13px; color: #B03A2E; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.form-note span { display: inline-flex; align-items: center; gap: 6px; }
.form-note svg { width: 14px; height: 14px; color: var(--accent-deep); }
.form-legal { font-size: 12px; color: var(--muted); text-align: center; }
/* Popup d'opt-in (formulaire GHL) */
.optin-modal {
  width: min(calc(100% - 24px), 520px); max-height: calc(100svh - 24px); padding: 22px 12px 8px; overflow: auto;
  border: 0; border-radius: 18px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px rgb(242 107 29 / .35), 0 40px 80px -30px rgb(0 0 0 / .6);
}
.optin-modal::before { /* bande de balisage en tête */
  content: ""; position: absolute; inset: 0 0 auto; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--dark) 10px 20px);
}
.optin-modal[open] { animation: modal-in .45s var(--ease); }
/* Fermée : mise en page hors écran (pas display:none) pour que GHL mesure la vraie hauteur pendant le préchargement */
.optin-modal:not([open]) { display: block; position: fixed; inset: 0 auto auto -10000px; margin: 0; visibility: hidden; pointer-events: none; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.optin-modal::backdrop { background: rgb(15 17 20 / .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.optin-modal__close {
  position: absolute; right: 8px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-2); font-size: 20px; line-height: 1; color: var(--ink);
}
.optin-modal__head { display: grid; gap: 4px; padding: 0 34px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.optin-modal__head .cal__heading { font-size: clamp(20px, 5vw, 24px); }
.optin-modal__head .cal__sub { font-size: 13px; }
.optin-modal__body iframe { width: 100%; border: 0; }

/* Qui suis-je : badge d'accès chantier + texte */
.about { display: grid; gap: 36px; justify-items: center; max-width: 960px; margin-inline: auto; }
.site-badge {
  position: relative; width: min(100%, 300px); padding: 40px 24px 0; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); text-align: center;
  box-shadow: inset 0 1px 0 #fff, 0 30px 60px -34px rgb(31 35 40 / .6);
  transform: rotate(-2deg);
}
.site-badge::before { /* bande de balisage en tête */
  content: ""; position: absolute; inset: 0 0 auto; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--dark) 10px 20px);
}
.site-badge__clip { /* fente du porte-badge */
  position: absolute; left: 50%; top: 18px; width: 48px; height: 8px; border-radius: 99px; transform: translateX(-50%);
  background: var(--bg-2); box-shadow: inset 0 1px 2px rgb(31 35 40 / .25);
}
.site-badge__photo {
  display: grid; place-items: center; width: 168px; aspect-ratio: 1; margin: 0 auto 18px; border-radius: 14px;
  background: radial-gradient(120% 120% at 100% 0%, rgb(242 107 29 / .4), transparent 60%), var(--dark);
  color: var(--on-dark); font: 600 46px/1 var(--f-display); letter-spacing: .04em;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px rgb(31 35 40 / .14);
}
img.site-badge__photo { height: auto; object-fit: cover; }
.site-badge__name { font: 600 26px/1.05 var(--f-display); text-transform: uppercase; }
.site-badge__role { margin-top: 8px; font: 600 12px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-badge__access {
  display: flex; justify-content: space-between; align-items: center; margin: 22px -24px 0; padding: 14px 24px;
  background: var(--dark); color: var(--on-dark); font: 600 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
}
.site-badge__access span { font: 600 10.5px/1 var(--f-body); letter-spacing: .18em; color: var(--accent-light); }
.about__body { display: grid; gap: 16px; max-width: 60ch; }
.about__text { color: var(--muted); }
.about__text strong { color: var(--ink); }
.about__text .about__hl { color: var(--accent-text); }
.about__proofs { display: grid; gap: 10px; margin-top: 8px; }
.about__proofs li {
  display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.about__proofs b { font: 600 26px/1 var(--f-display); text-transform: uppercase; color: var(--accent-deep); white-space: nowrap; }
.about__proofs span { font-size: 14.5px; line-height: 1.4; color: var(--ink); }

/* ==========================================================================
   Confirmation
   ========================================================================== */
.success-badge {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgb(201 83 15 / .7), 0 0 0 8px rgb(242 107 29 / .12);
}
.success-badge svg { width: 30px; height: 30px; }
/* ---------- Confirmation : checklist par étapes ---------- */
.hero--steps .h1 { font-size: clamp(30px, 7.6vw, 52px); max-width: 18ch; }
.steps-progress { width: min(100%, 640px); margin-top: clamp(28px, 4vh, 38px); }
.steps-progress__label {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.steps-progress__track { height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 1px 2px rgb(31 35 40 / .15); }
.steps-progress__bar {
  display: block; height: 100%; border-radius: 99px; transform-origin: left; transform: scaleX(var(--p, .04));
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--dark) 8px 16px);
  transition: transform .7s var(--ease);
}

.steps { display: grid; gap: 12px; width: min(100%, 640px); margin-top: 18px; text-align: left; }
.step {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -34px rgb(31 35 40 / .5);
  transition: border-color .4s, box-shadow .4s, opacity .4s;
}
.step.is-current {
  border-color: rgb(242 107 29 / .45);
  box-shadow: 0 0 0 6px rgb(242 107 29 / .07), 0 30px 60px -40px rgb(201 83 15 / .65);
}
.step.is-current::before { /* bande de balisage sur l'étape en cours */
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--dark) 10px 20px);
}
.step.is-locked { display: none; } /* étapes à venir : invisibles, même le titre */
.step { animation: step-in .6s var(--ease); } /* rejouée quand l'étape apparaît */
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } }

.step__head {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 18px 16px; text-align: left; cursor: default;
}
.step.is-done .step__head { cursor: pointer; }
.step.is-current .step__head { padding-top: 24px; }
.step__n {
  position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px dashed rgb(31 35 40 / .3); font: 600 15px/1 var(--f-display); color: var(--muted);
  transition: background .4s, border-color .4s, color .4s;
}
.step__n svg { position: absolute; width: 20px; height: 20px; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .45s var(--ease); }
.step.is-current .step__n { border-style: solid; border-color: var(--dark); background: var(--dark); color: var(--yellow); }
.step.is-done .step__n { border: 0; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgb(201 83 15 / .8); }
.step.is-done .step__n b { opacity: 0; }
.step.is-done .step__ok { opacity: 1; transform: none; }
.step__title { flex: 1; font: 600 clamp(18px, 4.4vw, 22px)/1.15 var(--f-display); text-transform: uppercase; }
.step.is-done .step__title { color: var(--muted); }
.step__state {
  display: none; padding: 5px 9px 4px; border: 2px solid var(--accent); border-radius: 5px; transform: rotate(-6deg);
  font: 600 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.step.is-done .step__state { display: inline-block; }

/* Ouverture / fermeture fluide (grid 0fr → 1fr) */
.step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.step.is-current .step__body, .step.is-open .step__body { grid-template-rows: 1fr; }
.step__inner { min-height: 0; overflow: hidden; display: grid; gap: 16px; padding: 0 18px; }
.step.is-current .step__inner, .step.is-open .step__inner { padding-bottom: 20px; }
.step__text { font-size: 16px; color: var(--muted); }
.step__text strong { color: var(--ink); }
.step__appt { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step__date { font: 600 clamp(20px, 5vw, 24px)/1.1 var(--f-display); text-transform: uppercase; }
.step__fallback { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.step__fallback svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.step__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.step__meta span { display: inline-flex; align-items: center; gap: 6px; }
.step__meta svg { width: 16px; height: 16px; color: var(--accent); }
.step [hidden] { display: none; }
.step__video { padding: 6px; }
.step__video::before { inset: -8px; --l: 22px; }

/* Case à cocher : grande zone cliquable, coche qui se dessine */
.check {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid rgb(31 35 40 / .16); font-weight: 600; line-height: 1.35;
  transition: border-color .25s, background .25s, transform .2s var(--ease);
}
.check:hover { border-color: var(--accent); }
.check:active { transform: scale(.985); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid rgb(31 35 40 / .3); background: var(--surface); color: #fff;
  transition: background .25s, border-color .25s, transform .35s var(--ease);
}
.check__box svg { width: 17px; height: 17px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s ease .05s; }
.check input:checked + .check__box { background: var(--grad); border-color: transparent; transform: scale(1.08); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check:has(input:checked) { border-color: rgb(242 107 29 / .5); background: rgb(242 107 29 / .06); }
.check input:focus-visible + .check__box { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Fin de checklist */
/* ---------- Page /appel/ : formulaire de qualification en étapes ---------- */
.hero__sub { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--muted); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice--wide { grid-column: 1 / -1; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: grid; place-items: center; min-height: 56px; padding: 10px; border-radius: 12px;
  background: #fff; border: 1.5px solid rgb(31 35 40 / .16);
  font: 600 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.choice:hover span { border-color: var(--accent); }
.choice:active span { transform: scale(.97); }
.choice input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgb(201 83 15 / .8); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.calendar--step { min-height: 520px; border: 0; box-shadow: none; border-radius: var(--radius); }
body[data-page="appel"] .step__state { border-color: var(--line); color: var(--muted); transform: none; font-size: 10px; }
body[data-page="appel"] .partner-badge { margin-top: 28px; }

/* Questionnaire /appel/ : une question à la fois, puis le calendrier */
.quiz { width: min(100%, 640px); margin-top: clamp(24px, 3.6vh, 34px); text-align: left; }
.quiz .steps-progress { width: 100%; margin-top: 0; }
.quiz__back { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--accent-text); }
.quiz__card {
  position: relative; overflow: hidden; margin-top: 14px; padding: 26px 20px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid rgb(242 107 29 / .45);
  box-shadow: 0 0 0 6px rgb(242 107 29 / .07), 0 30px 60px -40px rgb(201 83 15 / .65);
}
.quiz__card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--dark) 10px 20px);
}
.quiz__q { display: none; gap: 18px; }
.quiz__q.is-active { display: grid; animation: quiz-in .45s var(--ease); }
.quiz__q.is-active.is-back { animation-name: quiz-back; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes quiz-back { from { opacity: 0; transform: translateX(-28px); } }
.quiz__title { font: 600 clamp(22px, 5vw, 28px)/1.1 var(--f-display); text-transform: uppercase; text-align: center; text-wrap: balance; }
.quiz__q--cal .calendar { margin-inline: -10px; }

/* Mobile : l'étape en cours doit tenir dans l'écran sans scroller (iPhone SE inclus) */
@media (max-width: 600px) {
  .hero--steps { padding-top: 0; }
  .hero--steps .topbar { padding-top: 10px; padding-bottom: 8px; }
  .hero--steps .logo__mark { font-size: 22px; }
  .hero--steps .h1 { font-size: 28px; }
  .steps-progress { margin-top: 12px; }
  .steps-progress__label { margin-bottom: 6px; }
  .steps { margin-top: 10px; gap: 10px; }
  .step__head { gap: 12px; padding: 14px 14px 12px; }
  .step.is-current .step__head { padding-top: 14px; }
  .step__n { width: 36px; height: 36px; font-size: 14px; }
  .step__title { font-size: 17px; }
  .step__inner { gap: 10px; padding: 0 14px; }
  .step.is-current .step__inner, .step.is-open .step__inner { padding-bottom: 14px; }
  .step__appt { gap: 8px; padding: 12px 14px; }
  .step__fallback { font-size: 14.5px; }
  .step__meta { font-size: 13px; gap: 4px 12px; }
  .step__text { font-size: 15px; line-height: 1.5; }
  .check { min-height: 48px; padding: 8px 14px; }
  .quiz { margin-top: 18px; }
  .quiz__card { padding: 22px 14px 14px; }
  .quiz__title { font-size: 21px; }
  .hero__sub { margin-top: 16px; font-size: 14px; }
  .choices { gap: 8px; }
  .choice span { min-height: 50px; font-size: 18px; }
}
@media (max-width: 359px) { .choice span { font-size: 15.5px; padding: 8px 6px; line-height: 1.1; text-align: center; } } /* 320 px : « 150 salariés et plus » sur 2 lignes max */
.steps-final {
  position: relative; display: grid; gap: 12px; width: min(100%, 640px); margin-top: 16px; padding: 30px 22px 22px;
  border-radius: 16px; background: radial-gradient(120% 120% at 100% 0%, rgb(242 107 29 / .35), transparent 60%), var(--dark);
  color: var(--on-dark); text-align: center; animation: modal-in .6s var(--ease);
}
.steps-final[hidden] { display: none; }
.steps-final__stamp {
  position: absolute; right: 14px; top: 14px; padding: 5px 9px 4px; border: 2px solid var(--accent-light); border-radius: 5px; transform: rotate(-8deg);
  font: 600 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light);
}
.steps-final__title { font: 600 clamp(26px, 6vw, 34px)/1.05 var(--f-display); text-transform: uppercase; }
.steps-final__title span { color: var(--accent-light); }
.steps-final__text { color: var(--on-dark-muted); }
.appointment {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin-top: 18px;
  padding: 14px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 15px;
}
.appointment span { display: inline-flex; align-items: center; gap: 8px; }
.appointment svg { width: 18px; height: 18px; color: var(--accent); }
.prep { display: grid; gap: 14px; }
.prep li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.prep__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--dark); color: var(--yellow); font: 600 20px/1 var(--f-display); }
.btn--ghost {
  background: transparent; color: var(--ink); text-shadow: none; box-shadow: inset 0 0 0 2px var(--ink);
  padding: 0 24px;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-deep); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero .h1 { max-width: 26ch; }
  .cases { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .case { padding: 26px; }
  .case__flow { grid-template-columns: 1fr 36px 1fr; align-items: stretch; gap: 0 8px; }
  .case__box { grid-template-columns: 1fr; grid-template-areas: "label" "value" "caption"; align-content: start; align-items: start; gap: 10px; min-height: 150px; }
  .case__value { font-size: 40px; }
  .case__arrow { align-self: center; margin: 0; }
  .case__arrow svg { transform: none; }
  .hero--vsl .h1 { max-width: 32ch; font-size: clamp(40px, 4.2vw, 60px); }
  .hero--vsl:not(.hero--steps) .h1, .hero--steps.hero--quiz .h1 { max-width: 44ch; font-size: clamp(40px, 4.2vw, 56px); } /* titre long : 2 lignes sur ordi */
  .about { grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
  .optin { padding-top: 36px; }
  .optin__grid { grid-template-columns: 1fr 1.05fr; gap: 22px 56px; align-items: start; }
  .optin__text { justify-items: start; text-align: left; }
  .optin__media { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .optin__lead { grid-row: 2; text-align: left; }
  .optin__grid .form-card { grid-row: 3; }
}
@media (max-width: 899px) {
  /* mobile : titre → vidéo verrouillée → formulaire, le sous-titre passe sous le formulaire */
  .optin__grid { gap: 18px; }
  .optin__lead { order: 4; font-size: 15.5px; text-align: center; }
  .form-card { padding: 18px; gap: 12px; }
  .field input { height: 48px; }
  .form-card .btn { padding-left: 18px; gap: 10px; letter-spacing: .02em; }
  .form-card .btn__arrow { width: 34px; height: 34px; }
  .optin__text .eyebrow::before { display: none; }
}
.section-head.center .eyebrow::before, .hero .eyebrow::before { display: none; }
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .btn { font-size: 17px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* Pages légales */
.legal__logo { display: inline-flex; margin-bottom: 28px; }
.legal__logo .logo__mark span { color: var(--accent-deep); } /* lien : contraste suffisant sur fond clair */
.legal__title { margin-bottom: 28px; }
.legal { color: var(--muted); }
.legal h2 { margin: 36px 0 12px; font: 600 22px/1.2 var(--f-display); text-transform: uppercase; color: var(--ink); }
.legal h3 { margin: 22px 0 8px; font: 700 16px/1.35 var(--f-body); color: var(--ink); }
.legal p, .legal ul { margin-bottom: 12px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li { margin-bottom: 4px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__table { margin: 8px 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }

/* Mobile : titre long sur toute la largeur (4 lignes au lieu de 5) pour garder le bouton au-dessus de 550 px */
@media (max-width: 600px) {
  .hero--vsl:not(.hero--steps) .h1 { max-width: none; font-size: min(7.8vw, 30px); }
  .hero--steps.hero--quiz .h1 { max-width: none; font-size: min(6.8vw, 25px); }
}

/* Confirmation, petits téléphones (≤ 374 px) : titre d'étape long, la case à cocher reste au-dessus de 550 px */
@media (max-width: 374px) {
  .hero--steps .topbar { padding-bottom: 4px; }
  .hero--steps .steps-progress { margin-top: 8px; }
  .step__title { font-size: 16px; }
  .step__head { padding: 12px 12px 10px; }
  .step__inner { gap: 8px; }
}
