/* ═══════════════════════════════════════════════════════════════
   ANIA & LUKE — « L’Autoroute du Bonheur » · styles.css
   Romantique × sport auto · mobile-first · aucune dépendance
═══════════════════════════════════════════════════════════════ */

/* Polices de secours calibrées : pas de saut au chargement */
@font-face { font-family: 'Cormorant Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 88%; ascent-override: 96%; descent-override: 30%; }
@font-face { font-family: 'Race Fallback'; src: local('Arial Narrow'), local('Helvetica Neue Condensed Bold'), local('Arial'); size-adjust: 92%; }
@font-face { font-family: 'Script Fallback'; src: local('Snell Roundhand'), local('Brush Script MT'); size-adjust: 96%; }

:root {
  --cream: #fbf4e8;
  --paper: #f6ecdc;
  --paper-d: #ecdcc2;
  --ink: #3a2a35;
  --ink-soft: #6b5763;
  --rose: #e07a9c;
  --rose-l: #f4b3c6;
  --rose-d: #c2456f;
  --raspberry: #85284f;
  --green: #1f5c47;
  --green-d: #143d30;
  --sage: #a9c4b0;
  --gold: #d9a441;
  --gold-l: #f3d58a;
  --gold-d: #a87420;
  --lavender: #b8a9d9;
  --asphalt: #4c4a52;
  --night: #1f1d23;
  --moto-blue: #2c5aa0;

  --script: 'Pinyon Script', 'Script Fallback', cursive;
  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --race: 'Barlow Condensed', 'Race Fallback', 'Arial Narrow', sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --check: repeating-conic-gradient(#1d1d22 0 25%, #fff 0 50%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--rose-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose-d); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 40px, 1080px); margin-inline: auto; position: relative; }
.section { position: relative; padding: 96px 0; overflow-x: clip; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.heart-ico { width: .8em; height: .8em; fill: var(--rose); flex: none; }

/* ─── En-têtes de section ─────────────────────────── */
.head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.head__tag {
  font-family: var(--race); font-weight: 600; font-size: 14px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--rose-d);
  display: inline-flex; align-items: center; gap: 12px;
}
.head__tag::before, .head__tag::after { content: ''; width: 26px; height: 2px; background: var(--check); background-size: 4px 4px; opacity: .8; }
.head__title {
  margin-top: 10px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(31px, 7.6vw, 52px); line-height: 1.08; color: var(--green-d);
}
.head__title em {
  font-family: var(--script); font-style: normal; font-weight: 400;
  font-size: 1.32em; line-height: .8; color: var(--raspberry);
  padding: 0 .06em;
}
.head__sub { margin-top: 14px; font-style: italic; font-size: 20px; color: var(--ink-soft); }
.head--light .head__tag { color: var(--gold-l); }
.head--light .head__title { color: var(--cream); }
.head--light .head__title em { color: var(--rose-l); }

/* ─── Boutons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  font-family: var(--race); font-weight: 700; font-style: italic; font-size: 18px;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent; position: relative; overflow: hidden; isolation: isolate;
}
.btn .ico { width: 19px; height: 19px; }
.btn:active { transform: scale(.97); }
.btn--rose {
  color: #fff; background: linear-gradient(135deg, #e889a8, var(--rose-d) 62%);
  box-shadow: 0 12px 26px -10px rgba(194, 69, 111, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--rose::after, .btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.8s ease-in-out infinite;
}
.btn--gold {
  color: var(--night); background: linear-gradient(135deg, var(--gold-l), var(--gold) 55%, #c18b2c);
  box-shadow: 0 10px 24px -12px rgba(168, 116, 32, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--line { border-color: rgba(58, 42, 53, .28); color: var(--ink); background: rgba(255, 255, 255, .55); }
.btn--ghost { border-color: rgba(251, 244, 232, .4); color: var(--cream); background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.btn--lg { min-height: 60px; padding: 16px 34px; font-size: 21px; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--rose:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(194, 69, 111, .75); }
  .btn--gold:hover { transform: translateY(-2px); }
  .btn--line:hover { background: #fff; }
}
.btn__flag {
  width: 20px; height: 15px; flex: none; border-radius: 2px;
  background: var(--check); background-size: 10px 7.5px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85);
  transform-origin: left center; animation: wave 1.1s ease-in-out infinite alternate;
}

@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
@keyframes wave { from { transform: skewY(-6deg) scaleX(.96); } to { transform: skewY(5deg) scaleX(1); } }

/* ─── Monogramme ──────────────────────────────────── */
.monogram {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--script); font-size: 40px; line-height: 1; color: var(--raspberry);
}
.monogram .heart-ico { width: 18px; height: 18px; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(1); } 42% { transform: scale(1.14); } }

/* ═══════════════════════════════════════════════════════════════
   PÉTALES + PROGRESSION
═══════════════════════════════════════════════════════════════ */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 65; pointer-events: none; }

.tracker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 4px;
  background: rgba(76, 74, 82, .25); pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.tracker.is-on { opacity: 1; }
.tracker__trail {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--sage), var(--gold) 50%, var(--rose));
}
.tracker__car { position: absolute; top: -6px; left: calc(var(--p, 0%) - 22px); width: 34px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.tracker__flag { position: absolute; right: 0; top: -3px; width: 14px; height: 10px; background: var(--check); background-size: 7px 5px; }

/* ═══════════════════════════════════════════════════════════════
   1 · ÉCRAN D’OUVERTURE — papier, ruban d’or, feux de départ
═══════════════════════════════════════════════════════════════ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; overflow: hidden; overflow: clip;
  background: var(--cream);
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
  --hx: 50%; --hy: 40%; --sx: 50%; --sy: 66%;
}
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__paper { position: absolute; inset: 0; background: var(--grain), var(--cream); }
.gate__paper i {
  position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55;
  animation: drift 16s ease-in-out infinite alternate;
}
.gate__paper i:nth-child(1) { width: 60vmax; height: 46vmax; left: -18vmax; top: -16vmax; background: #f6cfae; }
.gate__paper i:nth-child(2) { width: 52vmax; height: 40vmax; right: -20vmax; top: -8vmax; background: #d8ccef; animation-delay: -5s; }
.gate__paper i:nth-child(3) { width: 50vmax; height: 40vmax; left: -14vmax; bottom: -22vmax; background: #c9dfc6; animation-delay: -9s; }
.gate__paper i:nth-child(4) { width: 46vmax; height: 40vmax; right: -16vmax; bottom: -20vmax; background: #f6c4d3; animation-delay: -2s; }
@keyframes drift { to { transform: translate(4vmax, 3vmax) scale(1.08); } }

.gate__video, .gate__screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none;
  transition: opacity .9s ease;
}
.gate__video { background: transparent; }
.gate.is-video .gate__video, .gate.is-video .gate__screen { opacity: 1; }

.gate__ribbon {
  position: absolute; left: 50%; top: 50%; width: 140vmax; height: 70vmax;
  transform: translate(-50%, -54%); pointer-events: none; opacity: .9;
  transition: opacity .6s ease;
}
.gate__ribbon path {
  fill: none; stroke: url(#g-gold); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 4.2s .4s var(--ease) forwards;
  filter: drop-shadow(0 2px 4px rgba(168, 116, 32, .35));
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.gate__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  transition: opacity .6s ease, transform .8s var(--ease);
}
.gate__content > * { animation: rise 1s var(--ease) both; }
.gate__content > :nth-child(2) { animation-delay: .15s; }
.gate__content > :nth-child(3) { animation-delay: .3s; }
.gate__content > :nth-child(4) { animation-delay: .55s; }
.gate__content > :nth-child(5) { animation-delay: .65s; }
.gate__content > :nth-child(6) { animation-delay: .85s; }
.gate__content > :nth-child(7) { animation-delay: 1s; }
.gate__content > :nth-child(8) { animation-delay: 1.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.gate__tag {
  margin-top: 14px; font-family: var(--race); font-weight: 600; font-size: 14px;
  letter-spacing: .34em; text-transform: uppercase; color: var(--green);
}
.gate__names {
  margin-top: 6px; font-family: var(--script);
  font-size: clamp(64px, 17vw, 136px); line-height: 1.05; color: var(--raspberry);
  white-space: nowrap; text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
}
.gate__amp { color: var(--gold-d); font-size: .7em; padding: 0 .08em; }
.gate__date {
  margin-top: 4px; font-family: var(--race); font-weight: 700; font-style: italic;
  font-size: clamp(19px, 5vw, 24px); letter-spacing: .1em; text-transform: uppercase; color: var(--green-d);
}
.gate__places { margin-top: 4px; font-style: italic; font-size: 19px; color: var(--ink-soft); }

/* Feux de départ */
.lights {
  position: relative; display: flex; gap: 8px; margin-top: 28px;
  padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(#2c2a31, #1d1b20);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.lights::before {
  content: ''; position: absolute; left: 50%; top: -14px; width: 60%; height: 14px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0 8%, #2c2a31 8% 12%, transparent 12% 88%, #2c2a31 88% 92%, transparent 92%);
}
.lights__col { display: flex; flex-direction: column; gap: 6px; padding: 5px; border-radius: 8px; background: #121115; }
.lights__col i {
  display: block; width: clamp(18px, 5vw, 24px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a3a3f, #2a2024 70%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
  transition: background .08s linear, box-shadow .08s linear;
}
.lights__col.is-on i {
  background: radial-gradient(circle at 35% 32%, #ffd0c8, #ff3b30 45%, #a8121a 100%);
  box-shadow: 0 0 14px 3px rgba(255, 48, 40, .7), inset 0 -2px 3px rgba(0, 0, 0, .3);
}
.lights.is-go .lights__col i {
  background: radial-gradient(circle at 35% 32%, #e2ffd8, #39d26b 45%, #0f7a35 100%);
  box-shadow: 0 0 16px 4px rgba(57, 210, 107, .7);
}

.gate__start {
  margin-top: 22px; position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 16px 34px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--race); font-weight: 800; font-style: italic; font-size: 22px;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #ea8fb0, var(--rose-d) 60%, #a83560);
  box-shadow: 0 16px 34px -12px rgba(194, 69, 111, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
  overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), opacity .4s ease, filter .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.gate__start::before {
  content: ''; position: absolute; inset: -40%; z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%);
  animation: shine 3.4s ease-in-out infinite;
}
.gate__start::after {
  content: ''; position: absolute; inset: -6px; border-radius: inherit; z-index: -2;
  border: 2px solid rgba(224, 122, 156, .6); animation: ring 2.2s ease-out infinite;
}
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.gate__start-flag {
  width: 26px; height: 19px; border-radius: 2px; background: var(--check); background-size: 13px 9.5px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); transform-origin: left center;
  animation: wave .9s ease-in-out infinite alternate;
}
@media (hover: hover) { .gate__start:hover { transform: translateY(-2px) scale(1.02); } }
.gate__hint {
  margin-top: 14px; font-family: var(--race); font-weight: 600; font-size: 14px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}

.gate.is-counting .gate__start { pointer-events: none; filter: saturate(.5); opacity: .55; transform: scale(.96); }
.gate.is-counting .gate__start::after { animation: none; opacity: 0; }
.gate.is-counting .lights { transform: scale(1.12); transition: transform .5s var(--spring); }
.gate.is-playing .gate__content { opacity: 0; transform: scale(1.05); pointer-events: none; }
.gate.is-playing .gate__ribbon { opacity: 0; }

/* Prénoms pendant la vidéo */
.gate__end {
  position: absolute; left: var(--hx); top: var(--hy); z-index: 3;
  transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease, transform 1.4s var(--ease);
}
.gate.is-end .gate__end { opacity: 1; transform: translate(-50%, -56%); }
.gate__end-names {
  font-family: var(--script); font-size: clamp(40px, 4.4vw, 74px); line-height: 1; white-space: nowrap;
  color: var(--raspberry);
  text-shadow: 0 0 12px rgba(255, 250, 238, .95), 0 0 28px rgba(255, 240, 214, .8);
}
.gate__end-names span { color: var(--gold-d); font-size: .7em; }
.gate__end-date {
  margin-top: 6px; font-family: var(--race); font-weight: 700; font-style: italic;
  font-size: clamp(15px, 1.4vw, 20px); letter-spacing: .3em; color: var(--green-d);
  text-shadow: 0 0 10px rgba(255, 250, 238, .95);
}

.gate__flash {
  position: absolute; left: var(--sx); top: var(--sy); z-index: 4;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fffdf6 0 32%, #fff1cf 48%, rgba(255, 236, 200, 0) 70%);
  opacity: 0; transform: scale(0);
}
.gate.is-flash .gate__flash { animation: flash 1.1s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes flash { 0% { opacity: 0; transform: scale(1); } 25% { opacity: 1; } 100% { opacity: 1; transform: scale(420); } }

.gate__loading {
  position: absolute; left: 0; right: 0; bottom: calc(76px + var(--safe-b)); z-index: 3;
  text-align: center; font-style: italic; color: var(--ink-soft);
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.gate.is-waiting .gate__loading { opacity: 1; }
.gate__skip {
  position: absolute; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 5;
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 16px;
  border: 1px solid rgba(58, 42, 53, .2); border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--race); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
}
.gate__skip .ico { transform: rotate(-90deg); width: 16px; height: 16px; }

/* Mobile portrait : la vidéo devient un bandeau peint posé sur le papier */
@media (max-aspect-ratio: 4/5) {
  .gate__video, .gate__screen {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: 152vw; height: 85.5vw; transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  }
  .gate__end {
    left: 0; right: 0; top: 0; bottom: 0; transform: none;
    display: grid; grid-template-rows: 1fr 85.5vw 1fr; align-items: center;
  }
  .gate.is-playing .gate__end { opacity: 1; transform: none; transition-delay: .6s; }
  .gate.is-end .gate__end { transform: none; }
  .gate__end-names { grid-row: 1; font-size: clamp(54px, 16vw, 80px); }
  .gate__end-date { grid-row: 3; align-self: start; margin-top: 18px; font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   BOUTON SON
═══════════════════════════════════════════════════════════════ */
.sound-btn {
  position: fixed; right: 14px; top: calc(14px + var(--safe-t)); z-index: 80;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6); cursor: pointer; color: var(--raspberry);
  background: rgba(251, 244, 232, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(60, 20, 40, .4);
  opacity: 0; pointer-events: none; transform: scale(.8); transition: opacity .5s ease, transform .5s var(--spring);
}
.sound-btn.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.sound-btn .ico { width: 22px; height: 22px; }
.sound-btn__off { display: none; }
.sound-btn.is-muted .sound-btn__on { display: none; }
.sound-btn.is-muted .sound-btn__off { display: block; }

/* ═══════════════════════════════════════════════════════════════
   2 · LA SCÈNE — vidéo immersive collante + hero + faire-part
═══════════════════════════════════════════════════════════════ */
.stage { position: relative; isolation: isolate; }
.stage__media {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  margin-bottom: -100vh; margin-bottom: -100svh;
  overflow: hidden; z-index: 0;
  background: #efd3c1 url(../hero-poster.jpg) center / cover no-repeat;
}
.stage__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
  transform: scale(calc(1.02 + var(--z, 0) * .08));
}
.stage__video.is-ready { opacity: 1; }
.stage__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(251, 244, 232, .62) 0%, rgba(251, 244, 232, .18) 26%, transparent 42%),
    linear-gradient(to top, rgba(45, 22, 36, .42) 0%, rgba(45, 22, 36, .08) 24%, transparent 38%);
}
.stage__shade::after {
  content: ''; position: absolute; inset: 0; background: rgba(251, 240, 232, .62);
  opacity: calc(var(--z, 0) * .9);
}
.stage__light {
  position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at 70% 40%, rgba(255, 226, 160, .7), transparent 45%);
  animation: leak 9s ease-in-out infinite alternate;
}
@keyframes leak { to { transform: translate(-12%, 6%) scale(1.15); opacity: .6; } }
@media (max-aspect-ratio: 4/5) {
  .stage__media { background-image: url(../hero-mobile-poster.jpg); }
}

.hero {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: calc(72px + var(--safe-t)) 16px calc(22px + var(--safe-b));
  text-align: center;
}
@media (min-width: 600px) { .hero { padding-top: calc(44px + var(--safe-t)); } }
@media (max-width: 420px) {
  .hero__kicker { font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
  .hero__kicker::before, .hero__kicker::after { display: none; }
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__kicker {
  font-family: var(--race); font-weight: 600; font-size: 13.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--green-d); display: inline-flex; align-items: center; gap: 10px;
  text-shadow: 0 0 10px rgba(255, 248, 236, .9);
}
.hero__kicker::before, .hero__kicker::after { content: ''; width: 18px; height: 10px; background: var(--check); background-size: 5px 5px; opacity: .85; }
.hero__names {
  margin-top: 2px; font-family: var(--script); font-weight: 400;
  font-size: clamp(66px, 19vw, 168px); line-height: 1.02; white-space: nowrap;
  color: var(--raspberry);
  text-shadow: 0 0 16px rgba(255, 248, 236, .95), 0 0 40px rgba(255, 238, 214, .8);
}
.hero__amp { display: inline-block; color: var(--gold-d); font-size: .66em; padding: 0 .1em; }
.hero__sub {
  margin-top: -2px; font-family: var(--script); font-size: clamp(34px, 8.6vw, 50px); line-height: 1; color: var(--raspberry);
  text-shadow: 0 0 12px rgba(255, 248, 236, .95), 0 0 30px rgba(255, 240, 220, .8);
}
.hero__foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Plaque façon habillage TV de course */
.plate {
  display: inline-flex; align-items: stretch; overflow: hidden; border-radius: 10px;
  background: rgba(31, 29, 35, .88); color: #fff;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6);
  font-family: var(--race); font-weight: 700; font-style: italic; text-transform: uppercase;
  transform: skewX(-8deg);
}
.plate > * { transform: skewX(8deg); }
.plate__flag { width: 34px; background: var(--check); background-size: 10px 10px; transform: none; }
.plate__date { padding: 10px 14px 10px 16px; font-size: clamp(18px, 5vw, 24px); letter-spacing: .06em; }
.plate__sep { width: 4px; background: linear-gradient(var(--rose), var(--gold)); transform: none; }
.plate__place { padding: 10px 16px; font-size: clamp(18px, 5vw, 24px); letter-spacing: .1em; color: var(--gold-l); }
.hero__places {
  padding: 6px 16px; border-radius: 999px;
  background: rgba(251, 244, 232, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-style: italic; font-size: 17.5px; color: var(--ink);
}
.hero__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--race); font-weight: 600; font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.hero__scroll i {
  position: relative; width: 14px; height: 44px; border-radius: 8px;
  background: linear-gradient(rgba(255, 255, 255, .9) 0 0) center / 2px 100% no-repeat;
  -webkit-mask: repeating-linear-gradient(transparent 0 3px, #000 3px 9px);
  mask: repeating-linear-gradient(transparent 0 3px, #000 3px 9px);
}
.hero__scroll::after {
  content: ''; width: 10px; height: 16px; margin-top: -40px; border-radius: 4px 4px 3px 3px;
  background: linear-gradient(var(--rose-l), var(--rose-d)); box-shadow: 0 0 0 1.5px #fff;
  animation: down 1.8s ease-in-out infinite;
}
@keyframes down { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(32px); opacity: 0; } }

/* Entrée du hero (après l’ouverture) */
.js .hero__kicker, .js .hero__sub, .js .hero__foot > * { opacity: 0; }
.js .hero__name { display: inline-block; clip-path: inset(-20% 100% -30% -5%); }
.js .hero__amp { opacity: 0; transform: scale(.2) rotate(-90deg); }
.hero.is-awake .hero__kicker { animation: rise 1s .3s var(--ease) both; }
.hero.is-awake .hero__name { animation: write 1.5s .6s cubic-bezier(.5, .1, .3, 1) forwards; }
.hero.is-awake .hero__name:last-child { animation-delay: 1.5s; }
.hero.is-awake .hero__amp { animation: amp 1s 1.2s var(--spring) forwards; }
.hero.is-awake .hero__sub { animation: rise 1s 2.5s var(--ease) both; }
.hero.is-awake .plate { animation: zoomIn 1s 2.8s var(--ease) both; }
.hero.is-awake .hero__places { animation: rise 1s 3.1s var(--ease) both; }
.hero.is-awake .hero__scroll { animation: rise 1s 3.4s var(--ease) both; }
@keyframes write { to { clip-path: inset(-20% -10% -30% -5%); } }
@keyframes amp { to { opacity: 1; transform: none; } }
@keyframes zoomIn {
  0% { opacity: 0; transform: skewX(-8deg) translateX(-60vw); filter: blur(6px); }
  70% { filter: blur(0); }
  100% { opacity: 1; transform: skewX(-8deg); }
}

/* Faire-part posé sur la vidéo */
.invite {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 14vh 16px 18vh;
}
.invite__card {
  position: relative; width: min(100%, 620px); padding: 56px 26px 40px; text-align: center;
  background: var(--grain), rgba(251, 244, 232, .93);
  border-radius: 6px; border: 1px solid rgba(217, 164, 65, .55);
  box-shadow: 0 40px 90px -30px rgba(60, 20, 40, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.invite__card::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(217, 164, 65, .45); border-radius: 3px; pointer-events: none;
}
.js .invite__card.reveal { transform: perspective(1200px) rotateX(16deg) translateY(70px) scale(.94); transform-origin: 50% 100%; }
.js .invite__card.reveal.is-visible { transform: none; transition: opacity 1s ease, transform 1.3s var(--ease); }
.invite__tape {
  position: absolute; left: 50%; top: -14px; width: 132px; height: 28px; transform: translateX(-50%) rotate(-3deg);
  background: var(--check); background-size: 14px 14px; opacity: .9; border-radius: 2px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
}
.invite__kicker { font-style: italic; font-size: 20px; color: var(--ink-soft); }
.invite__kicker em { color: var(--rose-d); }
.invite__names { margin: 6px 0 2px; font-family: var(--script); font-size: clamp(58px, 15vw, 88px); line-height: 1.1; }
.invite__amp { font-size: .7em; }
.foil {
  background: linear-gradient(100deg, #a87420 0%, #e6c063 22%, #fff3c4 32%, #d9a441 44%, #8a2c55 70%, #c2456f 86%, #a87420 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 7s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.invite__phrase {
  font-family: var(--race); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--green);
}
.duo { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px auto; }
.duo__line { flex: 1; max-width: 90px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.duo__line:last-child { transform: scaleX(-1); }
.duo__car { width: 46px; height: 22px; }
.duo__car--green { transform: scaleX(-1); }
.duo .heart-ico { width: 22px; height: 22px; }
.js .reveal .duo__car--pink { transform: translateX(-60px); opacity: 0; }
.js .reveal .duo__car--green { transform: scaleX(-1) translateX(-60px); opacity: 0; }
.reveal.is-visible .duo__car--pink { animation: meetL 1.4s .6s var(--ease) forwards; }
.reveal.is-visible .duo__car--green { animation: meetR 1.4s .6s var(--ease) forwards; }
.reveal.is-visible .duo .heart-ico { animation: beat 1.6s 1.8s ease-in-out infinite; }
@keyframes meetL { to { transform: none; opacity: 1; } }
@keyframes meetR { to { transform: scaleX(-1); opacity: 1; } }
.invite__text { margin-top: 14px; font-size: 20px; line-height: 1.6; }
.invite__text em { color: var(--raspberry); }
.invite__chute { margin-top: 22px; font-family: var(--script); font-size: clamp(30px, 8vw, 40px); line-height: 1.2; color: var(--raspberry); }
.invite__chute em { font-style: normal; color: var(--rose-d); }
.invite__sign { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--script); font-size: 28px; color: var(--gold-d); }

/* ═══════════════════════════════════════════════════════════════
   4 · LA ROUTE — défilement horizontal, les fleurs poussent au passage
═══════════════════════════════════════════════════════════════ */
.road { position: relative; background: #f8dcc4; }
.road__pin { position: relative; }
.road__view { position: relative; overflow: hidden; overflow: clip; }

/* Version simple (sans JS ou mouvement réduit) : une colonne de photos */
.road:not(.is-live) .road__view { padding: 80px 20px 96px; background: linear-gradient(#d9cdee, #f6d6c6 40%, var(--cream)); }
.road:not(.is-live) .road__layer:not(.road__world),
.road:not(.is-live) .road__cars,
.road:not(.is-live) .road__hud,
.road:not(.is-live) .road__bar,
.road:not(.is-live) .road__asphalt,
.road:not(.is-live) .road__blooms,
.road:not(.is-live) .road__sky,
.road:not(.is-live) .stop__post,
.road:not(.is-live) .finish__arch { display: none; }
.road:not(.is-live) .road__head { text-align: center; margin-bottom: 36px; }
.road:not(.is-live) .stops { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; display: grid; gap: 40px; }
.road:not(.is-live) .stop { display: flex; justify-content: center; }
.road:not(.is-live) .polaroid { --pw: min(100%, 360px); }

/* Version animée */
.road.is-live { height: var(--road-h, 600vh); }
.road.is-live .road__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.road.is-live .road__view { height: 100%; background: linear-gradient(to bottom, #cbbfe8 0%, #e8c8d8 26%, #f8d7bf 48%, #fbe8d0 60%); }
.road__sky { position: absolute; inset: 0; pointer-events: none; }
.road__sun {
  position: absolute; right: 18%; top: 22%; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #fffdf3 0 26%, #ffe6a8 40%, rgba(255, 220, 160, 0) 70%);
  animation: glow 5s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: scale(1.18); opacity: .85; } }
.road__layer { position: absolute; left: 0; top: 0; height: 100%; width: 800vw; will-change: transform; pointer-events: none; }
.road__clouds {
  top: 3%; height: 28%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='220'%3E%3Cg fill='%23fff' opacity='.8'%3E%3Cellipse cx='120' cy='130' rx='96' ry='24'/%3E%3Cellipse cx='168' cy='112' rx='58' ry='28'/%3E%3Cellipse cx='92' cy='116' rx='42' ry='20'/%3E%3C/g%3E%3Cg fill='%23fde1ea' opacity='.85'%3E%3Cellipse cx='560' cy='70' rx='112' ry='22'/%3E%3Cellipse cx='612' cy='54' rx='60' ry='26'/%3E%3Cellipse cx='520' cy='58' rx='40' ry='18'/%3E%3C/g%3E%3Cg fill='%23fff4e2' opacity='.75'%3E%3Cellipse cx='800' cy='170' rx='70' ry='16'/%3E%3Cellipse cx='828' cy='158' rx='40' ry='18'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 900px 100%;
}
.road__hills {
  top: 36%; height: 26%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220V120C80 90 160 70 240 92s160 58 240 26 140-78 240-54 160 76 260 48 140-42 220 8v100z' fill='%23bdb1dc'/%3E%3Cpath d='M0 220v-60c100-20 180-32 280-14s180 34 280 14 200-42 300-20 200 32 340 20v60z' fill='%23aebfd0' opacity='.85'/%3E%3C/svg%3E") repeat-x left bottom / 1200px 100%;
}
.road__far {
  top: 44%; height: 21%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='240' viewBox='0 0 1400 240' preserveAspectRatio='none'%3E%3Cpath d='M0 240V150c120-30 260-40 380-18s220 38 340 18 220-50 360-32 220 42 320 32v90z' fill='%239cbf7e'/%3E%3Cg fill='%233f6b45'%3E%3Cpath d='M200 152c-7-34-2-66 7-88 9 22 13 54 6 88z'/%3E%3Cpath d='M228 150c-5-26-2-50 5-66 7 16 10 40 5 66z'/%3E%3Cpath d='M1010 124c-7-34-2-66 7-88 9 22 13 54 6 88z'/%3E%3Cpath d='M1290 146c-6-28-2-54 6-72 8 18 11 44 5 72z'/%3E%3C/g%3E%3Cpath d='M598 146h64v-26l-32-18-32 18z' fill='%23f3e1c6'/%3E%3Cpath d='M590 122l40-24 40 24z' fill='%23cf6c4f'/%3E%3Crect x='614' y='128' width='10' height='14' fill='%23a77a5c'/%3E%3Crect x='636' y='126' width='10' height='9' fill='%23a77a5c'/%3E%3Cpath d='M1100 128h48v-20l-24-14-24 14z' fill='%23f3e1c6'/%3E%3Cpath d='M1094 110l30-18 30 18z' fill='%23cf6c4f'/%3E%3C/svg%3E") repeat-x left top / 1400px 70%,
    repeating-linear-gradient(96deg, #a593d4 0 9px, #cfc4ea 9px 20px) left bottom / 100% 34% no-repeat;
}
.road__head {
  position: relative; z-index: 6; text-align: center;
  padding: calc(78px + var(--safe-t)) 20px 0;
}
.road.is-live .road__head { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.sign {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 8px;
  background: var(--moto-blue); color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--moto-blue), 0 10px 20px -10px rgba(0, 0, 0, .5);
  font-family: var(--race); font-weight: 600; text-transform: uppercase;
}
.sign__num { background: #d6262b; border-radius: 4px; padding: 2px 9px; font-weight: 800; font-style: italic; font-size: 18px; box-shadow: inset 0 0 0 1.5px #fff; }
.sign__txt { font-size: 17px; letter-spacing: .08em; }
.road__title { margin-top: 18px; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 8vw, 54px); line-height: 1.05; color: var(--green-d); }
.road__title em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.3em; color: var(--raspberry); }
.road__sub { margin: 10px auto 0; max-width: 460px; font-style: italic; font-size: 19px; color: var(--ink-soft); }

.road__world { z-index: 3; }
.road__asphalt {
  position: absolute; left: 0; right: 0; top: 64%; height: 22%;
  background: linear-gradient(#5d5b63, #48464e 60%, #403e46);
  box-shadow: 0 -5px 0 #8fb875, 0 6px 0 #7fae68;
}
.road__asphalt::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(46% - 2px); height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 52px, transparent 52px 110px);
}
.road__asphalt::after {
  content: ''; position: absolute; left: 0; right: 0; top: 7%; bottom: 7%;
  border-top: 3px solid rgba(255, 255, 255, .75); border-bottom: 3px solid rgba(255, 255, 255, .75);
}
.road__blooms { position: absolute; inset: 0; }
.bloom {
  position: absolute; left: 0; bottom: 0; width: var(--w, 26px); height: auto; aspect-ratio: 40 / 64;
  transform-origin: 50% 100%; transform: translateX(var(--x)) scale(0);
  transition: transform .7s var(--spring);
}
.bloom.is-on { transform: translateX(var(--x)) scale(var(--s, 1)) rotate(var(--r, 0deg)); }
.bloom--far { bottom: 35.4%; }
.bloom--near { bottom: 9.5%; }
.road__verge { position: absolute; left: 0; right: 0; bottom: 0; height: 14.2%; background: linear-gradient(#93c277, #79a861); }

.road.is-live .stops { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.road.is-live .stop { position: absolute; left: 0; bottom: 36%; transform: translateX(var(--x, 0)); }
.stop__fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.road.is-live .stop__fig { transform: translateX(-50%); }
.stop__exit {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 5px 12px 5px 6px; border-radius: 6px; background: var(--moto-blue); color: #fff;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--moto-blue), 0 8px 18px -10px rgba(0, 0, 0, .55);
  font-family: var(--race); font-weight: 600; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.stop__exit-num { background: #fff; color: var(--moto-blue); border-radius: 3px; padding: 1px 6px; font-weight: 800; }
.polaroid {
  --pw: min(58vw, 280px, calc((64svh - 270px) * .8));
  position: relative; width: var(--pw); padding: 10px 10px 14px; margin: 0;
  background: #fffdf8; border-radius: 3px;
  box-shadow: 0 22px 40px -18px rgba(60, 30, 40, .55), 0 2px 6px rgba(60, 30, 40, .12);
  transform: rotate(var(--r, -2deg));
}
.stop:nth-child(even) .polaroid { --r: 2.4deg; }
.stop:nth-child(3n) .polaroid { --r: -1deg; }
.stop--wide .polaroid { --pw: min(80vw, 380px, calc((64svh - 270px) / .75)); }
.polaroid img, .polaroid__empty { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; background: var(--paper-d); }
.stop--wide .polaroid img, .stop--wide .polaroid__empty { aspect-ratio: 4 / 3; }
.polaroid__empty { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--rose-d); font-style: italic; }
.polaroid__empty .heart-ico { width: 34px; height: 34px; }
.polaroid::before {
  content: ''; position: absolute; left: 50%; top: -12px; width: 74px; height: 22px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(244, 179, 198, .75); box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}
.polaroid__cap { display: block; padding: 10px 4px 0; text-align: center; }
.polaroid__title { display: block; font-family: var(--script); font-weight: 400; font-size: 27px; line-height: 1.1; color: var(--raspberry); }
.polaroid__text { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.38; color: var(--ink); }
.polaroid__text em { color: var(--rose-d); }
@media (max-width: 600px) {
  .road.is-live .polaroid { --pw: min(54vw, 230px, calc((64svh - 250px) * .9)); }
  .road.is-live .stop--wide .polaroid { --pw: min(76vw, 300px, calc((64svh - 250px) / .75)); }
  .road.is-live .polaroid img, .road.is-live .polaroid__empty { aspect-ratio: 1; }
  .road.is-live .stop--wide .polaroid img { aspect-ratio: 4 / 3; }
  .polaroid__title { font-size: 24px; }
  .polaroid__text { font-size: 14.5px; line-height: 1.32; }
  .stop__exit { font-size: 13.5px; }
}
.stop__post { width: 8px; height: 30px; margin-top: -2px; border-radius: 2px; background: linear-gradient(90deg, #8d8a92, #c9c6cc 45%, #77737c); }

.road.is-live .stop:not(.stop--finish) .polaroid { transform: rotate(var(--r)) translateY(40px) scale(.5); opacity: 0; transition: transform .8s var(--spring), opacity .4s ease; }
.road.is-live .stop .stop__exit { transform: translateY(-14px) scale(.6); opacity: 0; transition: transform .6s .15s var(--spring), opacity .4s .15s ease; }
.road.is-live .stop .stop__post { transform: scaleY(0); transform-origin: bottom; transition: transform .4s ease; }
.road.is-live .stop.is-in .polaroid { transform: rotate(var(--r)); opacity: 1; }
.road.is-live .stop.is-in .stop__exit { transform: none; opacity: 1; }
.road.is-live .stop.is-in .stop__post { transform: none; }

/* Ligne d’arrivée */
.finish { text-align: center; }
.road.is-live .stop--finish { bottom: 14%; }
.road.is-live .finish { transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.finish__arch {
  order: 2; position: relative; width: clamp(150px, 30vw, 260px); height: calc(50svh * .44); margin-top: 14px;
  border-left: 8px solid #e9e6ec; border-right: 8px solid #e9e6ec;
}
.finish__check {
  position: absolute; left: -8px; right: -8px; top: 0; height: 30px;
  background: var(--check); background-size: 15px 15px; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5);
}
.finish__word {
  position: absolute; left: 50%; top: 36px; transform: translateX(-50%);
  font-family: var(--race); font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .3em; text-transform: uppercase;
  color: #fff; background: var(--rose-d); padding: 2px 12px; border-radius: 4px;
}
.finish__title { font-family: var(--race); font-weight: 700; font-style: italic; font-size: 15px; letter-spacing: .26em; text-transform: uppercase; color: var(--rose-d); }
.finish__date { font-family: var(--script); font-size: clamp(44px, 11vw, 64px); line-height: 1.05; color: var(--raspberry); text-shadow: 0 0 14px rgba(255, 248, 236, .9); }
.finish__place { font-family: var(--race); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d); }
.finish__chute { margin-top: 4px; font-style: italic; font-size: 19px; }
.finish__chute em { color: var(--rose-d); }
.finish__card {
  padding: 14px 22px 16px; border-radius: 16px;
  background: rgba(251, 244, 232, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 36px -20px rgba(60, 30, 40, .5);
}
.road.is-live .finish__card { opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .6s ease, transform .8s var(--spring); }
.road.is-live .stop--finish.is-in .finish__card { opacity: 1; transform: none; }
.road:not(.is-live) .road__verge { display: none; }

/* Les deux voitures */
.road__cars { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.rcar { position: absolute; left: 0; width: clamp(124px, 17vw, 236px); will-change: transform; }
.rcar--green { bottom: 24.5%; width: clamp(110px, 15vw, 210px); z-index: 1; }
.rcar--pink { bottom: 13.6%; z-index: 2; }
.rcar .car { position: relative; z-index: 1; animation: idle .42s ease-in-out infinite alternate; }
@keyframes idle { to { transform: translateY(1.2px); } }
.rcar__trail {
  position: absolute; right: 86%; bottom: 10%; height: 15%; width: 60vw; border-radius: 99px;
  background: linear-gradient(to left, var(--trail), transparent);
  opacity: 0; transform-origin: right center; transform: scaleX(.3); transition: opacity .5s ease, transform .5s var(--ease);
}
.rcar__trail::after { content: ''; position: absolute; left: 0; right: 0; top: 38%; height: 26%; border-radius: inherit; background: linear-gradient(to left, rgba(243, 213, 138, .95), transparent 70%); }
.rcar--pink .rcar__trail { --trail: rgba(244, 163, 190, .9); }
.rcar--green .rcar__trail { --trail: rgba(128, 190, 150, .9); }
.road.is-moving .rcar__trail { opacity: .85; transform: none; }
.car__wheel { transform-box: fill-box; transform-origin: center; }
.road.is-moving .car__wheel, .flyby.is-go .car__wheel, .lane.is-visible .car__wheel { animation: spin .32s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.road__front {
  z-index: 5; top: auto; bottom: -1%; height: 10%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='130' viewBox='0 0 640 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V40c40-12 80-4 120-12s80 10 120 4 80-14 120-6 80 12 120 4 80-12 160 6v94z' fill='%2389ba6c'/%3E%3Cg fill='%2370a356'%3E%3Cpath d='M30 44l4-26 4 26zM150 40l5-30 4 30zM300 42l4-24 4 24zM430 38l5-28 4 28zM560 44l4-22 4 22z'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='60' cy='56' r='5'/%3E%3Ccircle cx='210' cy='70' r='4'/%3E%3Ccircle cx='380' cy='58' r='5'/%3E%3Ccircle cx='520' cy='76' r='4'/%3E%3C/g%3E%3Cg fill='%23f28fb0'%3E%3Ccircle cx='110' cy='72' r='5'/%3E%3Ccircle cx='330' cy='80' r='4.5'/%3E%3Ccircle cx='600' cy='62' r='5'/%3E%3C/g%3E%3Cg fill='%23f6c64f'%3E%3Ccircle cx='60' cy='56' r='1.8'/%3E%3Ccircle cx='380' cy='58' r='1.8'/%3E%3Ccircle cx='250' cy='54' r='3.5'/%3E%3Ccircle cx='470' cy='66' r='3.5'/%3E%3C/g%3E%3Cg fill='%239b86d6'%3E%3Cellipse cx='170' cy='60' rx='3' ry='6'/%3E%3Cellipse cx='176' cy='66' rx='3' ry='6'/%3E%3Cellipse cx='440' cy='76' rx='3' ry='6'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top / 640px 100%;
}
.road__hud {
  position: absolute; left: 14px; right: 14px; top: calc(14px + var(--safe-t)); z-index: 6;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.road.is-driving .road__hud { opacity: 1; }
.odo {
  display: inline-flex; flex-direction: column; padding: 8px 12px 6px; border-radius: 10px;
  background: rgba(31, 29, 35, .85); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6);
}
.odo__num { font-family: var(--race); font-weight: 800; font-style: italic; font-size: 28px; line-height: 1; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--gold-l); }
.odo__unit { font-family: var(--race); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.road__step {
  margin-right: 52px; padding: 8px 12px; border-radius: 10px; background: var(--moto-blue); color: #fff;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--moto-blue);
  font-family: var(--race); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
}
.road__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 6; background: rgba(0, 0, 0, .12); }
.road__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--sage), var(--gold), var(--rose)); }

@media (max-height: 560px) and (orientation: landscape) {
  .road__head { padding-top: 22px; }
  .road__sub { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   5 · LE CIRCUIT DU CŒUR
═══════════════════════════════════════════════════════════════ */
.circuit {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(201, 223, 198, .55), transparent 60%),
    var(--grain), var(--cream);
}
.laps {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--race); font-weight: 600; font-size: 16px; letter-spacing: .12em; text-transform: uppercase;
}
.laps__dots { display: inline-flex; gap: 6px; }
.laps__dots i { width: 18px; height: 13px; border-radius: 2px; background: rgba(58, 42, 53, .14); transition: background .4s ease, transform .4s var(--spring); }
.laps__dots i.is-on { background: var(--check); background-size: 6px 6.5px; transform: scale(1.15); }
.laps__text strong { font-size: 1.2em; color: var(--rose-d); }

.track { position: relative; width: min(100%, 640px); margin: 18px auto 0; aspect-ratio: 600 / 560; }
.track__svg { width: 100%; height: 100%; overflow: visible; }
.track__infield { fill: url(#g-infield); }
.track__kerb { fill: none; stroke: #fff; stroke-width: 48; stroke-linejoin: round; }
.track__kerb--red { stroke: #e2404a; stroke-dasharray: 12 12; }
.track__asphalt { fill: none; stroke: #57555e; stroke-width: 38; stroke-linejoin: round; }
.track__line { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.6; stroke-dasharray: 10 12; }
.track__paint { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 99999; }
.track__paint--pink { stroke: rgba(244, 163, 190, .92); stroke-width: 14; }
.track__paint--green { stroke: rgba(122, 186, 146, .95); stroke-width: 5; }
.track__car { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.tcar__tyre { fill: #1d1d22; }
.tcar__glass { fill: #2b2f3a; }
.tcar--pink .tcar__body { fill: #f2a7bf; }
.tcar--pink .tcar__stripe { fill: #fff; }
.tcar--pink .tcar__wing { fill: var(--rose-d); }
.tcar--green .tcar__body { fill: var(--green); }
.tcar--green .tcar__stripe { fill: var(--gold); }
.tcar--green .tcar__wing { fill: var(--green-d); }

.track__center {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}
.track__center-tag { font-family: var(--race); font-weight: 700; font-size: clamp(10px, 2.6vw, 13px); letter-spacing: .26em; text-transform: uppercase; color: var(--green); }
.track__center-names { font-family: var(--script); font-size: clamp(30px, 8vw, 46px); line-height: 1.1; color: var(--raspberry); white-space: nowrap; }
.track__center-meta { font-family: var(--race); font-weight: 600; font-size: clamp(10px, 2.6vw, 13px); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.turns { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.turns__item { position: absolute; left: var(--tx, 50%); top: var(--ty, 50%); transform: translate(-50%, -50%); }
.turn {
  pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.turn__num {
  position: relative; display: grid; place-items: center; width: clamp(38px, 9vw, 46px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; border: 3px solid var(--night); color: var(--night);
  font-family: var(--race); font-weight: 800; font-style: italic; font-size: clamp(18px, 4.4vw, 22px);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55);
  transition: transform .3s var(--spring), background .3s ease, color .3s ease, border-color .3s ease;
}
.turn__label {
  padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink);
  font-family: var(--race); font-weight: 700; font-size: clamp(11px, 2.8vw, 13.5px); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .5);
}
.turn.is-next .turn__num { animation: next 1.4s ease-in-out infinite; border-color: var(--rose-d); color: var(--rose-d); }
@keyframes next { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 156, .6), 0 6px 14px -6px rgba(0, 0, 0, .55); } 50% { box-shadow: 0 0 0 12px rgba(224, 122, 156, 0), 0 6px 14px -6px rgba(0, 0, 0, .55); } }
.turn.is-done .turn__num { background: var(--green); border-color: var(--gold); color: #fff; }
.turn.is-done .turn__num::after {
  content: ''; position: absolute; right: -6px; top: -6px; width: 16px; height: 12px; border-radius: 2px;
  background: var(--check); background-size: 5.3px 6px; box-shadow: 0 0 0 1.5px #fff;
}
@media (hover: hover) { .turn:hover .turn__num { transform: scale(1.12); } }
.track.is-driving .turn { pointer-events: none; }

.finale {
  margin: 34px auto 0; max-width: 520px; padding: 26px 22px; text-align: center; border-radius: 18px;
  position: relative; overflow: hidden; padding-top: 36px;
  background: #fff; box-shadow: 0 24px 48px -26px rgba(60, 30, 40, .5); outline: none;
  animation: rise .8s var(--ease) both;
}
.finale::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--check); background-size: 12px 12px; }
.finale__title { font-family: var(--race); font-weight: 800; font-style: italic; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--green-d); }
.finale__text { margin: 6px 0 18px; font-style: italic; color: var(--ink-soft); }

/* Panneau des stands (modale) */
.pit { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; justify-items: center; }
.pit__backdrop { position: absolute; inset: 0; background: rgba(40, 24, 34, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .3s ease both; }
.pit__card {
  position: relative; width: min(100%, 560px); max-height: 88vh; max-height: 88svh; overflow: auto; overscroll-behavior: contain;
  padding: 40px 22px calc(22px + var(--safe-b)); border-radius: 22px 22px 0 0;
  background: var(--grain), var(--cream); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); outline: none;
  animation: sheet .5s var(--ease) both;
}
.pit.is-closing .pit__card { animation: sheetOut .3s ease forwards; }
.pit.is-closing .pit__backdrop { animation: fade .3s ease reverse forwards; }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) {
  .pit { align-items: center; padding: 20px; }
  .pit__card { border-radius: 22px; padding-bottom: 28px; }
  @keyframes sheet { from { transform: translateY(40px) scale(.96); opacity: 0; } }
  @keyframes sheetOut { to { transform: translateY(30px) scale(.97); opacity: 0; } }
}
.pit__flag { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--check); background-size: 14px 14px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pit__close {
  position: absolute; right: 12px; top: 24px; width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(58, 42, 53, .08); cursor: pointer;
}
.pit__close .ico { width: 20px; height: 20px; }
.pit__num {
  display: inline-block; padding: 3px 12px; border-radius: 6px; background: var(--night); color: var(--gold-l);
  font-family: var(--race); font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
}
.pit__title { margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; color: var(--green-d); }
.pit__sub { margin-top: 2px; font-family: var(--script); font-size: 28px; line-height: 1.2; color: var(--raspberry); }
.pit__body { margin-top: 18px; }
.pit__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pit__foot .btn { flex: 1 1 auto; }

.place + .place { margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(58, 42, 53, .2); }
.place__kind { font-family: var(--race); font-weight: 700; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-d); }
.place__name { margin-top: 2px; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); }
.place__addr { display: flex; align-items: center; gap: 6px; font-size: 17px; color: var(--ink-soft); }
.place__note { margin-top: 6px; font-size: 18px; }
.place__note em { color: var(--raspberry); }
.place__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.sheet { list-style: none; margin: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--night); color: #fff; }
.sheet__day {
  padding: 8px 14px; background: #2d2b33; font-family: var(--race); font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l);
}
.sheet__row { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sheet__pos { min-width: 30px; text-align: center; padding: 2px 4px; border-radius: 4px; background: var(--rose-d); font-family: var(--race); font-weight: 800; font-style: italic; font-size: 15px; }
.sheet__time { min-width: 64px; font-family: var(--race); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--gold-l); }
.sheet__title { display: block; font-family: var(--race); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.sheet__text { display: block; margin-top: 2px; font-size: 16.5px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.sheet__text em { color: var(--rose-l); }

.dress__title { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); }
.dress__text { margin-top: 4px; }
.dress__text em { color: var(--raspberry); }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--race); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.swatch__dot { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 14px -6px rgba(0, 0, 0, .35); }
.dress__tip { margin-top: 8px; padding-left: 14px; border-left: 3px solid var(--rose-l); font-size: 17.5px; }
.dress__tip em { color: var(--raspberry); }

.infos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.info__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--rose-d); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35); }
.info__ico .ico { width: 22px; height: 22px; }
.info__title { display: block; font-family: var(--race); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--green-d); }
.info__text { display: block; font-size: 17.5px; line-height: 1.45; }
.info__text em { color: var(--raspberry); }

/* ═══════════════════════════════════════════════════════════════
   SÉPARATEUR — la voiture qui fait fleurir la route
═══════════════════════════════════════════════════════════════ */
.lane { position: relative; height: 130px; overflow: hidden; background: var(--cream); }
.lane__road { position: absolute; left: 0; right: 0; bottom: 20px; height: 36px; background: linear-gradient(#5d5b63, #46444c); box-shadow: 0 -4px 0 #8fb875, 0 4px 0 #7fae68; }
.lane__road::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 26px, transparent 26px 56px); }
.lane__car { position: absolute; left: 0; bottom: 4px; width: 112px; transform: translateX(-140px); }
.lane.is-visible .lane__car { animation: laneDrive 2.6s cubic-bezier(.45, .05, .4, 1) forwards; }
@keyframes laneDrive { to { transform: translateX(calc(100vw + 20px)); } }
.lane__bloom { position: absolute; left: 0; right: 0; bottom: 58px; height: 60px; }
.lane__flower { position: absolute; left: var(--x); bottom: 0; width: calc(24px * var(--s)); height: auto; aspect-ratio: 40 / 64; transform-origin: 50% 100%; transform: scale(0); }
.lane.is-visible .lane__flower { animation: bloom .7s var(--d) var(--spring) forwards; }
@keyframes bloom { to { transform: scale(1); } }

/* ═══════════════════════════════════════════════════════════════
   6 · COMPTE À REBOURS — le tableau de bord
═══════════════════════════════════════════════════════════════ */
.countdown {
  color: var(--cream);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 3px, transparent 3px 7px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .08) 0 3px, transparent 3px 7px),
    radial-gradient(ellipse at 50% 0%, #2a7356, var(--green-d) 72%);
}
.countdown::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--check); background-size: 12px 12px; opacity: .9;
}
.dash { display: grid; justify-items: center; gap: 30px; }
@media (min-width: 860px) { .dash { grid-template-columns: auto 1fr; align-items: center; gap: 48px; } }
.tacho {
  position: relative; display: flex; flex-direction: column; align-items: center; width: min(78vw, 300px);
  padding: 18px 18px 14px; border-radius: 50% 50% 22px 22px / 60% 60% 22px 22px; cursor: pointer; color: var(--cream);
  border: 1px solid rgba(217, 164, 65, .4);
  background: radial-gradient(circle at 50% 80%, #1a1a1f, #0e0e12 70%);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7), inset 0 0 0 6px rgba(255, 255, 255, .03);
  -webkit-tap-highlight-color: transparent;
}
.tacho svg { width: 100%; overflow: visible; }
.tacho__arc { fill: none; stroke: rgba(251, 244, 232, .25); stroke-width: 6; }
.tacho__red { fill: none; stroke: #e2404a; stroke-width: 8; }
.tacho__ticks line { stroke: var(--cream); stroke-width: 2.4; }
.tacho__ticks text { fill: var(--cream); font-family: var(--race); font-weight: 700; font-size: 14px; }
.tacho__needle { transform-box: view-box; transform-origin: 110px 120px; transform: rotate(var(--a, -90deg)); }
.tacho__needle path { fill: url(#g-gold); filter: drop-shadow(0 0 4px rgba(243, 213, 138, .7)); }
.tacho__hub { fill: #2d2b33; stroke: var(--gold); stroke-width: 2; }
.tacho__label { margin-top: 4px; font-family: var(--script); font-size: 26px; line-height: 1; color: var(--rose-l); }
.tacho__unit { font-family: var(--race); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.tacho.is-redline { animation: shake .08s linear 10; }
@keyframes shake { 50% { transform: translate(1px, -1px); } }

.cd { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.cd__lights { display: flex; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #0f0f13; }
.cd__lights i { width: 18px; height: 18px; border-radius: 50%; background: #3a2a2e; transition: background .15s, box-shadow .15s; }
.cd__lights i.is-on { background: radial-gradient(circle at 35% 32%, #ffd0c8, #ff3b30 45%, #a8121a); box-shadow: 0 0 10px 2px rgba(255, 48, 40, .7); }
.cd__lights.is-go i { background: radial-gradient(circle at 35% 32%, #e2ffd8, #39d26b 45%, #0f7a35); box-shadow: 0 0 12px 3px rgba(57, 210, 107, .6); }
.cd__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(100%, 560px); }
.cd__box {
  display: flex; flex-direction: column; align-items: center; padding: 14px 4px 10px; border-radius: 14px;
  background: linear-gradient(#123528, #0c271d); border: 1px solid rgba(217, 164, 65, .35);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45);
  transform: skewX(-6deg);
}
.cd__box > * { transform: skewX(6deg); }
.cd__num {
  font-family: var(--race); font-weight: 800; font-style: italic; font-size: clamp(32px, 9vw, 60px); line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(#fff3c4, var(--gold) 60%, #c18b2c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd__label { margin-top: 4px; font-family: var(--race); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.cd__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }

/* ═══════════════════════════════════════════════════════════════
   7 · RSVP — bulletin d’engagement + pass paddock
═══════════════════════════════════════════════════════════════ */
.rsvp { background: linear-gradient(#fbeef0, #f7e1e4 60%, #f6e6dc); }
.rsvp__petals {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(ellipse 14px 8px at 12% 18%, var(--rose-l) 98%, transparent),
    radial-gradient(ellipse 10px 6px at 84% 12%, var(--rose-l) 98%, transparent),
    radial-gradient(ellipse 12px 7px at 92% 64%, #f6c9d6 98%, transparent),
    radial-gradient(ellipse 9px 6px at 6% 72%, #f6c9d6 98%, transparent);
}
.rsvp__cta { display: flex; justify-content: center; }
.rsvp__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.rsvp__panel.is-open { grid-template-rows: 1fr; }
.rsvp__inner { min-height: 0; overflow: hidden; padding: 6px 8px 48px; margin: 0 -8px; }

.form {
  position: relative; max-width: 580px; margin: 8px auto 6px; padding: 0 22px 26px; border-radius: 20px;
  background: #fffdf9; box-shadow: 0 30px 60px -32px rgba(90, 30, 60, .55); overflow: hidden;
}
.form__head {
  display: flex; justify-content: space-between; margin: 0 -22px 20px; padding: 12px 22px;
  background: var(--night); color: var(--gold-l);
  font-family: var(--race); font-weight: 700; font-style: italic; font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  position: relative; margin-bottom: 30px;
}
.form__head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--check); background-size: 8px 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > label:not(.check), .field > legend, .field__label {
  display: block; margin-bottom: 8px; padding: 0;
  font-family: var(--race); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d);
}
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid #e6d5c8; background: #fff;
  font: inherit; font-size: 18px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(224, 122, 156, .18); }
.field .is-invalid { border-color: #d6262b; }
::placeholder { color: #a8979f; font-style: italic; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 8px 10px; text-align: center;
  border-radius: 12px; border: 1.5px solid #e6d5c8; background: #fff; line-height: 1.15;
  font-family: var(--race); font-weight: 700; font-style: italic; font-size: 17px; letter-spacing: .03em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--spring);
}
.seg__opt input:checked + span { background: var(--rose-d); border-color: var(--rose-d); color: #fff; transform: scale(1.02); }
.seg__opt--no input:checked + span { background: var(--night); border-color: var(--night); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--rose-d); outline-offset: 2px; }

.attend { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease), opacity .4s ease; }
.attend.is-collapsed { grid-template-rows: 0fr; opacity: .3; }
.attend__inner { min-height: 0; overflow: hidden; }

.stepper { display: inline-flex; align-items: center; border-radius: 14px; border: 1.5px solid #e6d5c8; background: #fff; overflow: hidden; }
.stepper__btn { width: 52px; height: 52px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--rose-d); }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__btn .ico { width: 22px; height: 22px; }
.stepper__val {
  width: 56px; height: 52px; border: 0; text-align: center; background: none; -moz-appearance: textfield; appearance: textfield;
  font-family: var(--race); font-weight: 800; font-style: italic; font-size: 26px; color: var(--ink);
}
.stepper__val::-webkit-outer-spin-button, .stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; cursor: pointer; font-size: 17.5px; line-height: 1.35; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__box {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 1.5px solid #d8c3b5; background: #fff;
  display: grid; place-items: center; transition: background .2s ease, border-color .2s ease;
}
.check__box::after { content: ''; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--spring); }
.check input:checked + .check__box { background: var(--green); border-color: var(--green); }
.check input:checked + .check__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--rose-d); outline-offset: 2px; }
.check small { display: block; font-size: 15px; color: var(--ink-soft); font-style: italic; }
.form__status { min-height: 1.4em; margin-bottom: 10px; color: #b3202a; font-style: italic; }

/* Le pass paddock */
.ticket {
  position: relative; max-width: 440px; margin: 10px auto 0; padding: 0 24px 24px; text-align: center; outline: none;
  border-radius: 20px; background: linear-gradient(160deg, #fff7f3, #fde3ea 55%, #f9e6cf);
  box-shadow: 0 34px 60px -28px rgba(90, 30, 60, .6);
  -webkit-mask: radial-gradient(circle 14px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 14px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
  transform-origin: 50% -40px; animation: swing 1.4s var(--ease) both;
}
@keyframes swing { 0% { transform: translateY(-80px) rotate(-12deg); opacity: 0; } 40% { opacity: 1; transform: rotate(6deg); } 65% { transform: rotate(-3deg); } 85% { transform: rotate(1.5deg); } 100% { transform: none; } }
.ticket::before {
  content: ''; position: absolute; left: 50%; top: 14px; width: 54px; height: 10px; transform: translateX(-50%);
  border-radius: 99px; background: rgba(58, 42, 53, .18);
}
.ticket__top {
  display: flex; justify-content: space-between; align-items: center; margin: 0 -24px 18px; padding: 34px 22px 12px;
  background: var(--night); color: #fff; border-radius: 20px 20px 0 0;
  font-family: var(--race); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .14em;
}
.ticket__brand { font-size: 20px; }
.ticket__all { padding: 2px 10px; border-radius: 4px; background: var(--gold); color: var(--night); font-size: 13px; }
.ticket__title { font-family: var(--script); font-size: 46px; line-height: 1.1; color: var(--raspberry); }
.ticket__text { margin-top: 6px; font-size: 18px; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 16px; padding: 14px 0; border-top: 2px dashed rgba(58, 42, 53, .2); border-bottom: 2px dashed rgba(58, 42, 53, .2); text-align: left; }
.ticket__grid dt { font-family: var(--race); font-weight: 600; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.ticket__grid dd { margin: 0; font-family: var(--race); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.ticket__code {
  height: 46px; margin: 0 auto 16px; width: 82%;
  background: repeating-linear-gradient(90deg, var(--night) 0 2px, transparent 2px 4px, var(--night) 4px 7px, transparent 7px 9px, var(--night) 9px 10px, transparent 10px 14px);
}
.ticket.is-no { background: linear-gradient(160deg, #f6f2ee, #ece6e2); }
.ticket.is-no .ticket__all { background: #8d8a92; }

/* ═══════════════════════════════════════════════════════════════
   8 · PIED DE PAGE
═══════════════════════════════════════════════════════════════ */
.footer { position: relative; padding: 70px 0 calc(110px + var(--safe-b)); background: var(--night); color: var(--cream); text-align: center; }
.footer__flag { position: absolute; left: 0; right: 0; top: 0; height: 24px; background: var(--check); background-size: 24px 24px; }
.monogram--footer { color: var(--rose-l); font-size: 48px; }
.monogram__heart {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.monogram__heart .heart-ico { width: 22px; height: 22px; }
.footer__date { margin-top: 10px; font-family: var(--race); font-weight: 700; font-style: italic; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); }
.footer__places { font-style: italic; opacity: .85; }
.promo { margin: 40px auto 0; max-width: 460px; padding: 26px 20px; border-radius: 18px; border: 1px solid rgba(217, 164, 65, .3); background: rgba(255, 255, 255, .04); }
.promo__q { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.promo__sub { margin: 6px 0 16px; font-size: 16px; opacity: .75; }
.footer__credit { margin-top: 26px; font-size: 15.5px; opacity: .7; }

/* ─── Bouton collant, toast, passage des voitures ─── */
.sticky-cta {
  position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); z-index: 75;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #e889a8, var(--rose-d) 62%); color: #fff; text-decoration: none;
  font-family: var(--race); font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(194, 69, 111, .8);
  transform: translate(-50%, 150%); transition: transform .5s var(--spring);
}
.sticky-cta.is-shown { transform: translate(-50%, 0); }

.toast {
  position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); z-index: 95; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 14px; background: var(--night); color: #fff; text-align: center;
  font-family: var(--race); font-weight: 600; font-size: 16.5px; letter-spacing: .04em;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .6);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .4s var(--spring);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.flyby { position: fixed; inset: 0; z-index: 85; pointer-events: none; overflow: hidden; visibility: hidden; }
.flyby.is-go { visibility: visible; }
.flyby__car { position: absolute; left: 0; width: clamp(150px, 24vw, 300px); transform: translateX(-40vw); }
.flyby__car .rcar__trail { opacity: .9; transform: none; width: 90vw; }
.flyby__car--green { bottom: 34%; --trail: rgba(128, 190, 150, .9); }
.flyby__car--pink { bottom: 22%; --trail: rgba(244, 163, 190, .9); }
.flyby.is-go .flyby__car--green { animation: flyby 1.6s .1s cubic-bezier(.5, 0, .3, 1) forwards; }
.flyby.is-go .flyby__car--pink { animation: flyby 1.6s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes flyby { to { transform: translateX(150vw); } }

/* Prototype de profil : couleurs */
.car { width: 100%; height: auto; overflow: visible; }
.car__shadow { fill: rgba(0, 0, 0, .22); }
.car__strut { stroke: #2b2a30; stroke-width: 3; fill: none; }
.car__glass { fill: #2b2f3a; }
.car__vent { fill: rgba(0, 0, 0, .25); }
.car__light { fill: #fff6c8; }
.car__roundel { fill: #fff; stroke-width: 2; }
.car__num { font-family: var(--race); font-weight: 800; font-style: italic; font-size: 12px; }
.car__wheel circle:first-child { fill: #1d1d22; }
.car__rim { fill: #c9ccd3; }
.car__spoke { stroke: #6a6d75; stroke-width: 2.4; }
.car--pink .car__body, .car--pink .car__fin { fill: #f2a7bf; }
.car--pink .car__stripe { fill: #fff; }
.car--pink .car__wing { fill: var(--rose-d); }
.car--pink .car__roundel { stroke: var(--rose-d); }
.car--pink .car__num { fill: var(--rose-d); }
.car--green .car__body, .car--green .car__fin { fill: var(--green); }
.car--green .car__stripe { fill: var(--gold); }
.car--green .car__wing { fill: var(--green-d); }
.car--green .car__roundel { stroke: var(--gold); }
.car--green .car__num { fill: var(--green-d); }

/* ═══════════════════════════════════════════════════════════════
   APPARITIONS AU SCROLL
═══════════════════════════════════════════════════════════════ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Ordinateur ──────────────────────────────────── */
@media (min-width: 768px) {
  body { font-size: 20px; }
  .section { padding: 120px 0; }
  .invite__card { padding: 64px 56px 48px; }
  .lane { height: 150px; }
  .lane__car { width: 150px; }
  .road__hud { left: 24px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .hero__kicker, .js .hero__sub, .js .hero__foot > *, .js .hero__amp { opacity: 1; transform: none; }
  .js .hero__name { clip-path: none; }
  .gate__ribbon path { stroke-dashoffset: 0; }
}
