/* ═══════════════════════════════════════════════
   Grand Prix des Lionnes 2026 — refonte
   Palette : nuit rouge-noir, or, crème. Gala nocturne.
   ═══════════════════════════════════════════════ */

:root {
  --night:      #0d0708;
  --night-2:    #150a0b;
  --ember:      #8d271e;
  --ember-deep: #5a000e;
  --gold:       #d6af7b;
  --gold-lit:   #e7c690;
  --gold-deep:  #b8905c;
  --cream:      #f5ede0;
  --cream-dim:  #cdbfae;

  --ff-display: "Fraunces", Georgia, serif;
  --ff-label:   "Bebas Neue", Arial, sans-serif;
  --ff-body:    "Open Sans", Arial, sans-serif;

  --wrap: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --fab: 3.5rem;
  --fab-bottom: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
/* Pendant l'intro : scroll verrouillé (déverrouillé par reveal.js à la fin). */
html.intro-lock, html.intro-lock body { overflow: hidden; height: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--night);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Curseur personnalisé : flèche blanche à liseré bordeaux. Hotspot en haut-gauche. */
  cursor: url("../img/cursor.svg") 4 2, auto;
}
/* Sur les éléments cliquables, on garde une flèche mais on peut varier le hotspot. */
a, button, .btn, [role="button"] { cursor: url("../img/cursor.svg") 4 2, pointer; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ── Eyebrows & titres partagés ── */
.eyebrow {
  font-family: var(--ff-label);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -.01em;
  margin-bottom: 56px;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--ff-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;   /* garde le bokeh sous le texte */
}
/* Bokeh très doux et lent à l'intérieur des boutons : quelques ronds flous
   dorés qui dérivent en boucle. Le texte reste au-dessus (z-index). */
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute; inset: -40%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 40%, rgba(255,255,255,.42) 0 6px, transparent 12px),
    radial-gradient(circle at 68% 30%, rgba(255,255,255,.3)  0 9px, transparent 16px),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,.34) 0 5px, transparent 11px),
    radial-gradient(circle at 40% 78%, rgba(255,255,255,.26) 0 11px, transparent 20px),
    radial-gradient(circle at 12% 82%, rgba(255,255,255,.22) 0 7px, transparent 15px);
  filter: blur(3px);
  opacity: 0;   /* invisible au repos, révélé seulement au survol */
  transition: opacity .5s ease;
  animation: btnBokeh 22s ease-in-out infinite alternate;
  animation-play-state: paused;
}
/* Rollover : bokeh léger qui apparaît en douceur et se met à dériver. */
.btn:hover::before { opacity: .35; animation-play-state: running; }
@keyframes btnBokeh {
  0%   { transform: translate3d(-6%, 4%, 0) scale(1);    }
  50%  { transform: translate3d(4%, -3%, 0) scale(1.12); }
  100% { transform: translate3d(-3%, -6%, 0) scale(1.04); }
}
/* Sur fond clair (bouton doré) : bokeh un peu plus marqué. On mêle des ronds
   clairs et des ronds ambrés plus sombres pour qu'ils ressortent, en overlay. */
.btn--gold::before {
  background:
    radial-gradient(circle at 22% 40%, rgba(255,250,238,.85) 0 6px, transparent 12px),
    radial-gradient(circle at 68% 30%, rgba(150,104,54,.5)   0 9px, transparent 16px),
    radial-gradient(circle at 82% 72%, rgba(255,250,240,.8)  0 5px, transparent 11px),
    radial-gradient(circle at 40% 78%, rgba(140,96,48,.45)   0 11px, transparent 20px),
    radial-gradient(circle at 12% 82%, rgba(255,247,232,.7)  0 7px, transparent 15px);
  filter: blur(3px);
  mix-blend-mode: overlay;
}
.btn--gold:hover::before { opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover::before { animation-play-state: paused; }
}
.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-lit), var(--gold-deep));
  color: var(--night);
  box-shadow: 0 8px 30px -8px rgba(214,175,123,.55);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(214,175,123,.7); }
.btn--ghost {
  border-color: rgba(214,175,123,.5);
  color: var(--gold);
  background: rgba(214,175,123,.04);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(214,175,123,.1); }

/* ═══════ NAV ═══════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px clamp(24px, 4vw, 56px);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav__inner {
  display: flex; align-items: center; gap: 32px;
}
.nav.is-scrolled {
  background: rgba(13,7,8,.82);
  backdrop-filter: blur(14px);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(214,175,123,.14);
}
/* Logo header : +25 % tout en haut de page, ramené à sa taille normale
   dès qu'on scrolle (.nav.is-scrolled). Transition fluide. */
.nav__brand img {
  height: 46px; width: auto;
  transform: scale(1.5);   /* +50 % au top (1.25 × 1.2) */
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.nav.is-scrolled .nav__brand img { transform: scale(1); }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-family: var(--ff-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--cream-dim);
  transition: color .25s;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

/* ═══════ HERO ═══════ */
/* Dégradé radial : doré en haut → bordeaux en bas.
   Le foyer balaie lentement du coin haut-gauche (-9%) au
   coin haut-droit (89%) puis revient (aller-retour). Seul X
   (--gx) est animé ; @property le rend interpolable. */
@property --gx {
  syntax: '<percentage>'; inherits: false; initial-value: -9%;
}
.hero {
  --gx: -9%; --gy: -29%;
  --gw: 120%; --gh: 120%;
  --gmid: 45%;
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(var(--gw) var(--gh) at var(--gx) var(--gy),
      #b0603a 0%,
      #a9552f calc(var(--gmid) * 0.5),
      #9e4530 calc(var(--gmid) * 0.75),
      #94382b calc(var(--gmid) * 0.92),
      #8a2f26 var(--gmid),
      #6f2019 calc(var(--gmid) + 20%),
      var(--ember-deep) calc(var(--gmid) + 42%),
      #2c0508 100%);
  animation: heroSweep 28s ease-in-out infinite alternate;
}
@keyframes heroSweep {
  from { --gx: -9%; }
  to   { --gx: 89%; }
}
/* Calques lumineux posés par-dessus le dégradé (images en blend). */
.hero__layer {
  position: absolute; inset: 0; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Calque 1 : deux sous-couches (lumière 5 & 6) qui se fondent
   en boucle. soft-light. Cycle 30s = 15s par image. */
.hero__lum {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  mix-blend-mode: soft-light;
}
/* Cycle 50s : 10s image 5 · fondu 15s · 10s image 6 · fondu 15s.
   Le fondu lui-même dure 15s → transition très lente, à peine perceptible. */
.hero__lum--a { background-image: url("../img/lights/5.jpg"); animation: lumFadeA 50s linear infinite; }
.hero__lum--b { background-image: url("../img/lights/6.jpg"); animation: lumFadeB 50s linear infinite; }
@keyframes lumFadeA {
  0%, 20%   { opacity: 1; }   /* image 5 pleine (0–10s) */
  50%, 70%  { opacity: 0; }   /* fondu vers 6 (10–25s), image 6 pleine (25–35s) */
  100%      { opacity: 1; }   /* fondu retour vers 5 (35–50s) */
}
@keyframes lumFadeB {
  0%, 20%   { opacity: 0; }
  50%, 70%  { opacity: 1; }
  100%      { opacity: 0; }
}
/* Calque bokeh : agrandi globalement à 150% (origine haut-centre),
   deux animations désynchronisées par-dessus —
   opacité 0 → 0.20 → 0 sur 30s, et déformation X (±5%) sur 45s.
   Durées différentes → le motif ne se répète jamais à l'identique. */
.hero__layer--2 {
  z-index: 2; background-image: url("../img/bokeh/bokeh-5.jpg");
  mix-blend-mode: lighten; opacity: 0;
  transform-origin: center top;
  transform: scale(1.5);
  animation: bokehAlpha 30s ease-in-out infinite,
             bokehScale 45s ease-in-out infinite;
}
@keyframes bokehAlpha {
  0%   { opacity: 0; }
  50%  { opacity: .20; }
  100% { opacity: 0; }
}
@keyframes bokehScale {
  0%   { transform: scale(1.5) scaleX(1); }
  50%  { transform: scale(1.5) scaleX(1.05); }
  100% { transform: scale(1.5) scaleX(1); }
}
/* Calque courbes : faisceau de lignes fines dorées ondulant
   ensemble en une grande vague, tracé/animé en JS (waves.js). */
.hero__waves {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  pointer-events: none;
  opacity: .5;
}
.hero__content { position: relative; z-index: 4; max-width: 900px; }
/* Contenu placé SOUS le logo (le logo SVG tient lieu de titre). */
.hero__content--below {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + min(150px, 30vw)));
  z-index: 7; width: 100%; max-width: 780px; text-align: center;
}
.hero__content--below .hero__lede {
  margin: 0 auto 34px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);   /* plus gros */
  font-weight: 600;                            /* plus gras */
  color: var(--cream);
}

/* ── INTRO : logo complet aux positions natives du SVG (fleur+lionne à gauche,
   titre à droite). Centré dans la page. ── */
.hero__mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(352px, 50vw); height: auto;   /* -20% */
  z-index: 5; overflow: visible; pointer-events: none;
}
/* Couleurs du logo : blanc (st0/st1), doré (st2). */
.hero__mark .st1, .hero__mark #grand_pix path, .hero__mark #grand_pix polygon,
.hero__mark #grand_pix rect { fill: #fff; }
.hero__mark .st2 { fill: var(--gold); }
/* Titre du milieu (Grand Prix des + Lionnes) : révélé par un MASQUE dont
   l'ouverture est pilotée en JS par le front des particules (voir particles.js).
   État initial : masqué (fermé à droite). Le JS écrit clip-path dynamiquement. */
.hero__mark #grand_pix, .hero__mark #titre_lionnes {
  /* masqué au départ (transparent) ; le JS pilote un masque dégradé qui suit
     le front des particules → apparition en fondu alpha de gauche à droite. */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0) 0%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0) 0%);
}
.hero__mark #montefiroe { opacity: 0; }
.hero__mark #montefiroe.is-in { animation: titleIn 1s ease-out forwards; }
@keyframes titleIn { from { opacity: 0; } to { opacity: 1; } }
/* Pétales blancs qui convergent, séquencés */
.hero__mark .petal { fill: #fff; opacity: 0; animation: petalIn .7s cubic-bezier(.22,.61,.36,1) forwards; }
.hero__mark .p1 { --dx: -34px; --dy:  10px; animation-delay: .06s; }
.hero__mark .p2 { --dx: -14px; --dy:  40px; animation-delay: .24s; }
.hero__mark .p3 { --dx:  32px; --dy:  26px; animation-delay: .42s; }
.hero__mark .p4 { --dx:  38px; --dy: -22px; animation-delay: .60s; }
.hero__mark .p5 { --dx: -20px; --dy: -36px; animation-delay: .78s; }
@keyframes petalIn {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.94); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* Lionne : le contour se dessine (stroke), puis se remplit en blanc.
   Démarre après la fleur (~2.4s). */
.hero__mark .draw {
  fill: #fff;
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 1.2;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  /* démarre dès la fin du 1er pétale (0.8s), tracé rapide (1s),
     remplissage juste avant la fin du tracé (1.6s). */
  animation:
    lionDraw 1s ease-in-out .8s forwards,
    lionFill .55s ease-out 1.55s forwards;
}
@keyframes lionDraw { to { stroke-dashoffset: 0; } }
@keyframes lionFill { to { fill-opacity: 1; stroke-width: 0; } }

/* ── INTRO : Édition 2026 (groupe SVG natif #edition_2026) — traits + chiffres
   à la position exacte du logo d'origine. Doré. Caché au départ, révélé avec
   Montefiore : chiffres en fondu, traits arrivant de gauche/droite. ── */
.hero__mark #edition_2026 { fill: var(--gold); }
.hero__mark #edition_2026 .ed-annee,
.hero__mark #edition_2026 .ed-trait { opacity: 0; transform-box: fill-box; }
.hero__mark #edition_2026.is-in .ed-annee { animation: edFade .7s ease-out .15s forwards; }
.hero__mark #edition_2026.is-in .ed-trait-g { animation: edFromL .7s cubic-bezier(.2,.7,.3,1) forwards; }
.hero__mark #edition_2026.is-in .ed-trait-d { animation: edFromR .7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes edFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes edFromL { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes edFromR { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

/* Canvas des particules (texte formé par le vent) */
.hero__particles {
  /* sous la marque (z 5) : les particules émergent de DERRIÈRE la lionne */
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; pointer-events: none;
}

/* Montefiore : mot en fondu + les 2 traits qui arrivent de gauche / de droite.
   Activé via .is-in (JS, après le titre). transform-box pour translate en unités SVG. */
.hero__mark #montefiroe .monte-mot,
.hero__mark #montefiroe .monte-trait-g,
.hero__mark #montefiroe .monte-trait-d { transform-box: fill-box; }
.hero__mark #montefiroe.is-in .monte-mot { animation: monteWord .7s ease-out forwards; }
.hero__mark #montefiroe.is-in .monte-trait-g { animation: monteFromL .7s cubic-bezier(.2,.7,.3,1) forwards; }
.hero__mark #montefiroe.is-in .monte-trait-d { animation: monteFromR .7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes monteWord { from { opacity: 0; } to { opacity: 1; } }
@keyframes monteFromL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes monteFromR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* Masquage temporaire du contenu du hero pendant l'intro */
.is-hidden { display: none !important; }
.reveal-hidden { opacity: 0; }

/* ═══════ RÉVÉLATION FINALE DU SITE (après l'intro) ═══════ */
/* Header : descend du haut de la fenêtre. */
.nav.reveal-in { animation: navDrop 1s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes navDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Courbes dorées : apparition en fondu. */
.hero__waves.reveal-in { animation: fadeInSoft 1.4s ease-out forwards; }
@keyframes fadeInSoft { from { opacity: 0; } to { opacity: .5; } }  /* .5 = opacité cible des courbes */

/* Logo : zoom (~1.32×) + remontée pour dégager le descriptif + boutons. */
.hero__mark.reveal-in { animation: logoZoom 1.1s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes logoZoom {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, calc(-50% - 78px)) scale(1.32); }
}
/* État « placé » (fin d'anim) : reprend EXACTEMENT la pose finale de logoZoom
   (scale 1.32, remonté de 78px) → bascule invisible, pas de saut. */
.hero__mark.is-placed {
  animation: none;
  transform: translate(-50%, calc(-50% - 78px)) scale(1.32);
}

/* Descriptif (lede) : apparition LETTRE PAR LETTRE de gauche à droite,
   en alpha + flou (chaque lettre est un <span> injecté par reveal.js). */
.hero__content--below.reveal-in { opacity: 1; }
.hero__lede .word { display: inline-block; white-space: nowrap; }  /* mot insécable */
.hero__lede .ltr {
  display: inline-block; white-space: pre;
  opacity: 0; filter: blur(6px);
}
.hero__content--below.reveal-in .hero__lede .ltr {
  animation: ltrIn .5s ease-out both;
  animation-delay: calc(.4s + var(--i) * .018s);   /* cascade gauche→droite */
}
@keyframes ltrIn {
  from { opacity: 0; filter: blur(6px); transform: translateY(2px); }
  to   { opacity: 1; filter: blur(0);   transform: none; }
}

/* Boutons : entrent latéralement (gauche par la gauche, droite par la droite). */
.hero__content--below .btn--in-l,
.hero__content--below .btn--in-r { opacity: 0; }
.hero__content--below.reveal-in .btn--in-l { animation: enterFromL .8s cubic-bezier(.22,.61,.36,1) 1.1s forwards; }
.hero__content--below.reveal-in .btn--in-r { animation: enterFromR .8s cubic-bezier(.22,.61,.36,1) 1.25s forwards; }
@keyframes enterFromL { from { opacity: 0; transform: translateX(-130%); } to { opacity: 1; transform: translateX(0); } }
@keyframes enterFromR { from { opacity: 0; transform: translateX(130%); } to { opacity: 1; transform: translateX(0); } }

/* Indicateur de scroll : remonte depuis l'extérieur (bas) vers sa place. */
.hero__scroll.reveal-in { animation: scrollRise 1s cubic-bezier(.22,.61,.36,1) 1.4s forwards; }
@keyframes scrollRise { from { transform: translate(-50%, 60px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.hero__eyebrow {
  font-family: var(--ff-label);
  letter-spacing: .3em; text-transform: uppercase;
  font-size: 15px; color: var(--gold);
  margin-bottom: 28px;
  opacity: 0; animation: rise .9s var(--ease) .2s forwards;
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-shadow: 0 6px 60px rgba(0,0,0,.5);
}
.hero__title span {
  display: block;
  background: linear-gradient(120deg, var(--gold-lit), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
  font-weight: 400;
}
.hero__title { opacity: 0; animation: rise 1s var(--ease) .35s forwards; }
.hero__lede {
  margin: 30px auto 40px;
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--cream-dim);
  /* pas d'auto-animation : l'apparition est portée par la révélation finale */
}
.hero__actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px;
  border: 1px solid rgba(214,175,123,.5); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
  /* pas d'auto-animation : apparition portée par la révélation finale */
}
.hero__scroll span {
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(-4px)} 40%{opacity:1} 80%,100%{opacity:0;transform:translateY(12px)} }
@keyframes rise { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:none} }

/* ═══════ MANIFESTE ═══════ */
/* Dégradé haut→bas : haut = bordeaux-noir très sombre (échantillon fourni),
   descente vers le noir. */
.manifest {
  padding: clamp(90px,12vw,150px) 0;
  background: linear-gradient(180deg, #1a0605 0%, #120303 50%, var(--night) 100%);
}
.manifest .wrap { max-width: 860px; text-align: center; }
.manifest__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 28px;
}
.manifest__text { color: var(--cream-dim); font-size: 1.12rem; max-width: 640px; margin-inline: auto; }
.crit {
  list-style: none;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 30px;
  margin-top: 64px; text-align: left;
}
.crit li {
  padding-top: 22px;
  border-top: 1px solid rgba(214,175,123,.28);
  color: var(--cream-dim); font-size: .98rem;
}
.crit__k {
  display: block;
  font-family: var(--ff-label);
  letter-spacing: .1em; text-transform: uppercase;
  font-size: 1.35rem; color: var(--gold);
  margin-bottom: 8px;
}

/* ═══════ CALENDRIER ═══════ */
.cal { padding: clamp(90px,12vw,140px) 0; background: linear-gradient(180deg, var(--night), var(--night-2)); }
.cal__steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 0;
  counter-reset: step;
  position: relative;
}
.cal__steps::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,175,123,.4) 15%, rgba(214,175,123,.4) 85%, transparent);
}
.cal__step {
  position: relative; text-align: center; padding: 0 14px;
}
.cal__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--gold);
  font-family: var(--ff-label); font-size: 1.6rem; color: var(--gold);
  margin-bottom: 22px; position: relative; z-index: 1;
  transition: background .3s, color .3s, box-shadow .3s;
}
.cal__step:hover .cal__num { background: var(--gold); color: var(--night); box-shadow: 0 0 30px -4px rgba(214,175,123,.6); }
.cal__step h3 { font-family: var(--ff-label); letter-spacing: .06em; font-size: 1.5rem; margin-bottom: 8px; }
.cal__step p.cal__date {
  color: #f0c357;                 /* jaune-or plus soutenu */
  margin-bottom: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.cal__date .cal__d {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.9rem; line-height: 1;
  letter-spacing: .01em;
}
.cal__date .cal__m {
  font-family: var(--ff-label);
  font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .9;
}
.cal__step p { color: var(--cream-dim); font-size: .92rem; }

/* ═══════ GALA ═══════ */
.gala { padding: clamp(80px,10vw,120px) 0 0; background: var(--night-2); overflow: hidden; }
.gala__strip {
  display: flex; gap: 18px; padding-inline: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gala__strip::-webkit-scrollbar { display: none; }
.gala__strip figure {
  flex: 0 0 clamp(280px, 42vw, 520px);
  scroll-snap-align: center;
  position: relative; border-radius: 3px; overflow: hidden;
}
.gala__strip img {
  width: 100%; height: clamp(220px, 34vw, 360px); object-fit: cover;
  filter: saturate(.92) contrast(1.04);
  transition: transform .8s var(--ease);
}
.gala__strip figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(141,39,30,.35));
  mix-blend-mode: multiply;
}
.gala__strip figure:hover img { transform: scale(1.05); }
.gala__caption { text-align: center; padding-block: 44px; max-width: 640px; }
.gala__caption p:last-child { font-family: var(--ff-display); font-size: clamp(1.3rem,3vw,2rem); font-weight: 300; }

/* ═══════ ÉDITIONS — grilles éditoriales plein écran + frise dock ═══════
   Une grille par édition, plein largeur/plein écran (100vh - header). On navigue
   entre années UNIQUEMENT via la frise-dock en bas (clic) ou trackpad latéral.
   La molette verticale reste le scroll de page (pas détournée). */
.ed {
  --ed-header: 84px;                     /* hauteur du header pour caler sous lui */
  position: relative; overflow: hidden;
  padding-top: var(--ed-header);         /* la grille démarre SOUS le header fixed */
  scroll-margin-top: var(--ed-header);
  background: var(--night);
}
/* Défilement HORIZONTAL des éditions piloté par transform (pas de scroll natif
   → ne bloque pas le scroll vertical de la page). On change d'année en cliquant
   sur une date : le track glisse de gauche à droite (transition). */
.ed__viewport { overflow: hidden; height: calc(100vh - var(--ed-header)); }
.ed__track {
  display: flex; height: 100%;
  transform: translateX(0);
  transition: transform .7s cubic-bezier(.6,0,.2,1);
}
.ed-slide { flex: 0 0 100%; height: 100%; }

/* Grille éditoriale plein cadre. Fond bordeaux→noir (jamais marron).
   Layouts alternés (A: grande gauche, B: grande droite, C: variante). */
.ed-grid {
  display: grid; height: 100%; gap: 2px;
  background: rgba(214,175,123,.28);     /* le gap = filets dorés */
}
.ed-cell { position: relative; overflow: hidden; }
.ed-cell img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.96); transition: transform .8s var(--ease); }
.ed-cell:not(.ed-cell--intro):hover img { transform: scale(1.05); }
/* case texte : fond bordeaux profond → noir (charte, PAS d'or translucide) */
.ed-cell--intro {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(34px,4vw,72px);
  background: linear-gradient(160deg, var(--ember-deep) 0%, #1a0605 60%, var(--night) 100%);
}
/* voile rouge signature sur les photos */
.ed-cell:not(.ed-cell--intro):not(.ed-cell--logo)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(141,39,30,.35));
  mix-blend-mode: multiply;
}

/* Layout A : grande GAUCHE | intro (haut-droite) ; sm1 | sm2 (bas-droite) */
.ed-grid--A {
  grid-template-columns: 1.2fr .85fr .55fr;
  grid-template-rows: 1.25fr 1fr;
  grid-template-areas: "big intro intro" "big sm1 sm2";
}
/* Layout B : miroir — grande DROITE, intro haut-gauche, photos bas-gauche */
.ed-grid--B {
  grid-template-columns: .55fr .85fr 1.2fr;
  grid-template-rows: 1.25fr 1fr;
  grid-template-areas: "intro intro big" "sm1 sm2 big";
}
/* Layout C : grande GAUCHE, mais intro en BAS-droite, photos en haut (varie) */
.ed-grid--C {
  grid-template-columns: 1.2fr .6fr .6fr;
  grid-template-rows: 1fr 1.2fr;
  grid-template-areas: "big sm1 sm2" "big intro intro";
}
.ed-cell--big   { grid-area: big; }
.ed-cell--intro { grid-area: intro; }
.ed-cell--sm1   { grid-area: sm1; }
.ed-cell--sm2   { grid-area: sm2; }

/* Case texte : contenu */
.ed-year { font-family: var(--ff-label); font-size: clamp(3rem,6vw,4.6rem); color: var(--gold); line-height: 1; display: block; margin-bottom: 16px; }
.ed-title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: 16px; }
.ed-lead { color: var(--cream-dim); font-size: 1.02rem; line-height: 1.65; margin-bottom: 26px; max-width: 44ch; }
.ed-cta { align-self: flex-start; }

/* Édition 2022 sobre : intro (gauche) + logo (droite), bordeaux/noir */
.ed-grid--sober {
  grid-template-columns: 1.15fr .85fr;
  grid-template-areas: "intro logo";
}
.ed-cell--logo { grid-area: logo; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a0605, var(--night)); padding: clamp(30px,5vw,70px); }
.ed-cell--logo img { width: auto; max-width: 72%; height: auto; object-fit: contain; filter: none; }

/* ── Frise DOCK : dates en bas, incrustées, effet "génie" (l'active ressort) ── */
.ed-dock {
  position: absolute; left: 50%; bottom: clamp(18px,3vh,34px);
  transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: clamp(14px,2.2vw,30px);
  padding: 12px clamp(20px,3vw,36px);
  background: linear-gradient(180deg, rgba(13,7,8,.35), rgba(13,7,8,.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(214,175,123,.28); border-radius: 999px;
}
.ed-dock__year {
  font-family: var(--ff-label); letter-spacing: .06em;
  font-size: clamp(20px,2vw,26px); line-height: 1;
  color: var(--cream-dim); background: none; border: 0; cursor: pointer;
  padding: 4px 8px; transition: color .3s, transform .3s;
  transform-origin: center center;   /* effet génie depuis le centre */
}
.ed-dock__year:hover { color: var(--cream); transform: scale(1.15); }
.ed-dock__year.is-active {
  color: var(--gold); transform: scale(1.5);   /* l'active ressort, centré */
  text-shadow: 0 4px 20px rgba(214,175,123,.5);
}

/* ═══════ PARTENAIRES ═══════ */
.parts { padding: clamp(90px,12vw,130px) 0; background: var(--night); }
.parts__grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.parts__grid figure {
  display: flex; align-items: center; justify-content: center;
  height: 108px; padding: 20px 26px;
  background: var(--cream); border-radius: 6px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.parts__grid figure:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(214,175,123,.5); }
.parts__grid img { max-height: 100%; width: auto; object-fit: contain; }

/* ═══════ CTA FINAL ═══════ */
.final {
  padding: clamp(100px,14vw,170px) 0; text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(141,39,30,.5), transparent 65%),
    var(--night-2);
}
.final__title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem,5vw,3.6rem); margin-bottom: 40px; letter-spacing: -.01em; }

/* ═══════ FOOTER ═══════ */
.foot { padding: 54px 0; background: var(--night); border-top: 1px solid rgba(214,175,123,.14); }
.foot__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.foot__logo { height: 54px; width: auto; opacity: .9; }
.foot__nav { display: flex; gap: 24px; }
.foot__nav a { font-family: var(--ff-label); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--cream-dim); transition: color .25s; }
.foot__nav a:hover { color: var(--gold); }
.foot__meta { font-size: .85rem; color: var(--cream-dim); }

/* ═══════ REVEAL (IntersectionObserver) ═══════ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.cal__step.reveal { transition-delay: calc(var(--i) * .09s); }

/* ═══════ FLOATING ACTION BUTTONS (burger + scroll-top) ═══════ */
.fab {
  display: none;
  position: fixed;
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom));
  width: var(--fab); height: var(--fab);
  border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(13,7,8,.85);
  border: 1px solid rgba(214,175,123,.5);
  backdrop-filter: blur(10px);
  color: var(--gold);
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6);
  transition: background .25s, border-color .25s, opacity .3s, transform .3s;
}
.fab--burger { left: calc(50% - (var(--fab) / 2) - 8px); transform: translateX(-100%); flex-direction: column; gap: 5px; }
/* Scroll-up : overlay permanent en bas à droite (desktop + mobile),
   masqué uniquement tout en haut de page. */
.fab--top {
  display: flex;
  right: calc(var(--fab-bottom) + env(safe-area-inset-right));
  bottom: calc(var(--fab-bottom) + env(safe-area-inset-bottom));
  left: auto;
  opacity: 0; pointer-events: none; transform: translateY(10px);
}
.fab--top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab--top:hover { background: rgba(141,39,30,.9); border-color: var(--gold-lit); }
.burger-line { width: 20px; height: 2px; background: var(--gold); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.fab--burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fab--burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.fab--burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════ VOLET MENU MOBILE ═══════ */
.mmenu {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(13,7,8,.96);
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
  padding: 90px 32px calc(var(--fab) + var(--fab-bottom) * 2 + env(safe-area-inset-bottom));
}
.mmenu.is-open { transform: translateY(0); }
.mmenu__logo {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  height: 40px; width: auto;
  opacity: 0; transition: opacity .5s var(--ease) .15s;
}
.mmenu.is-open .mmenu__logo { opacity: 1; }
.mmenu__links {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 480px; margin-inline: auto;
}
.mmenu__links a {
  font-family: var(--ff-label);
  letter-spacing: .1em; text-transform: uppercase;
  font-size: 1.4rem; color: var(--cream);
  width: 100%; text-align: center;
  padding: 16px 12px;
  min-height: 44px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s;
}
.mmenu.is-open .mmenu__links a {
  opacity: 1; transform: none;
}
.mmenu.is-open .mmenu__links a:nth-child(1) { transition-delay: .12s; }
.mmenu.is-open .mmenu__links a:nth-child(2) { transition-delay: .18s; }
.mmenu.is-open .mmenu__links a:nth-child(3) { transition-delay: .24s; }
.mmenu.is-open .mmenu__links a:nth-child(4) { transition-delay: .3s; }
.mmenu.is-open .mmenu__links a:nth-child(5) { transition-delay: .36s; }
.mmenu__links .btn { margin-top: 14px; width: 100%; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__inner { min-height: 46px; justify-content: center; }
  .nav__brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
  .nav.is-scrolled {
    background: rgba(13,7,8,.82);
    backdrop-filter: blur(14px);
    padding: 18px clamp(24px, 4vw, 56px);
  }
  .fab { display: flex; }
  .mmenu { display: block; }

  .crit { grid-template-columns: 1fr; gap: 0; }
  .crit li { padding-block: 22px; }
  .cal__steps { grid-template-columns: 1fr 1fr; gap: 40px 12px; }
  .cal__steps::before { display: none; }
  .parts__grid { grid-template-columns: repeat(2,1fr); gap: 34px; }

  .foot { padding-bottom: calc(var(--fab) + var(--fab-bottom) * 2 + 16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .cal__steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .foot__inner { flex-direction: column; text-align: center; gap: 18px; }
}

/* ═══════ TOUCH : désactivation des hovers ═══════ */
@media (hover: none) {
  .btn--gold:hover { transform: none; box-shadow: 0 8px 30px -8px rgba(214,175,123,.55); }
  .btn--ghost:hover { border-color: rgba(214,175,123,.5); background: rgba(214,175,123,.04); }
  .nav__links a:hover { color: var(--cream-dim); }
  .nav__links a:hover::after { width: 0; }
  .cal__step:hover .cal__num { background: var(--night); color: var(--gold); box-shadow: none; }
  .gala__strip figure:hover img { transform: none; }
  .tl__card:hover { border-color: rgba(214,175,123,.22); transform: none; }
  .parts__grid figure:hover { transform: none; box-shadow: none; }
}

/* ═══════ SAFE AREAS iOS ═══════ */
@supports (padding: max(0px)) {
  .nav { padding-top: max(18px, env(safe-area-inset-top)); }
}

/* ═══════ REDUCED MOTION ═══════ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .hero__eyebrow, .hero__title, .hero__lede, .hero__actions, .hero__scroll { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; }
}
