/* Eurêka · site vitrine
   Une seule idée : la lumière. L'ampoule s'allume (ouverture), un fil de lumière
   trace le chemin (étapes), l'agenda vit, puis c'est à toi d'allumer la tienne. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Police de secours calée sur Manrope : évite le saut de mise en page au chargement */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 102%;
  descent-override: 29%;
  line-gap-override: 0%;
}

:root {
  --navy: #06183E;
  --navy-2: #0C2352;
  --gold: #C9A24A;
  --gold-dark: #86651A;
  --gold-pale: #F3D98B;
  --white: #FFFFFF;
  --gray: #5B6275;
  --ink-soft: rgba(255, 255, 255, .74);
  --line: rgba(6, 24, 62, .12);
  --line-light: rgba(255, 255, 255, .16);

  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 7rem;
  --s8: 10rem;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 74rem;
  --radius: 6px;
  --focus: var(--gold-dark);

  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  /* le fond derrière la page : bleu nuit, comme l'ouverture et le pied. Sur téléphone, c'est lui
     qui remplit le haut et le bas de l'écran (barres du navigateur, rebond) : jamais de bande blanche */
  background: var(--navy);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark { --focus: var(--gold); }

.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;
}

.skip {
  position: fixed; left: var(--s2); top: var(--s2); z-index: 100;
  padding: .75rem 1rem;
  background: var(--white); color: var(--navy);
  font-weight: 700; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Titres ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -.028em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--gray); max-width: 36rem; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.005em;
  text-decoration: none;
}
.btn svg { width: 1.125rem; height: 1.125rem; transition: transform .18s ease-out; }
.btn:hover { background: var(--gold-pale); }
.btn:hover svg { transform: translateX(4px); }

.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); }

/* =========================================================
   Scène 1 · L'ampoule qui s'allume
   ========================================================= */
.hero { position: relative; height: 500vh; background: var(--navy); }
.hero-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  --copy-top: 78%;
  --fg: 255, 255, 255;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual { display: contents; }
.hero-logo { display: none; }

.hero-bar {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--gutter);
  color: rgb(var(--fg));
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.125rem; letter-spacing: .01em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; padding: 4px; background: #06183E; object-fit: contain; }
.hero-bar nav a { font-weight: 700; font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--gold); }

.hero-copy {
  position: absolute; left: 0; right: 0; top: var(--copy-top); z-index: 2;
  display: grid;
  padding-inline: var(--gutter);
  text-align: center;
}
.hero-copy p {
  grid-area: 1 / 1;
  font-size: clamp(1.375rem, 2.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.2;
  text-wrap: balance;
}
.hero-intro { color: rgba(255, 255, 255, .86); }
.hero-meet, .hero-lit { color: var(--white); opacity: 0; }

.hero-cue {
  position: absolute; left: 50%; z-index: 2;
  bottom: 1.75rem;
  bottom: calc(1.75rem + 100lvh - 100svh);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
/* Légendes de scène (ouverture et pôles) : petites capitales, chiffres tabulaires */
.hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.25rem; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .875rem var(--s4);
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--hud-fg), .62);
  pointer-events: none;
  --hud-fg: 255, 255, 255;
}
.hud-left { display: grid; gap: .5rem; }
.hud-k { color: var(--gold); margin-right: 1em; }
.hud-place sup { font-size: .8em; }
.hud-stats { display: flex; gap: var(--s4); }
.hud-stats div { display: grid; gap: .375rem; justify-items: end; }
.hud-stats dd { font-size: 1rem; letter-spacing: .02em; color: rgb(var(--hud-fg)); }
.hud-bar { grid-column: 1 / -1; position: relative; height: 1px; background: rgba(var(--hud-fg), .16); }
.hud-bar span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.hero-cue { bottom: 4.5rem; bottom: calc(4.5rem + 100lvh - 100svh); }
.hero-hud { bottom: calc(1.25rem + 100lvh - 100svh); }

.hero-cue::after { content: ""; width: 1px; height: 2.5rem; background: linear-gradient(var(--gold), rgba(201, 162, 74, 0)); }

.hero-final {
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: center;
  padding: var(--s6) var(--gutter);
  color: var(--navy);
  opacity: 0;
  pointer-events: none;
}
.hero-final-in {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  column-gap: var(--s5); align-items: end;
}
.hero-final h1 {
  font-size: clamp(2.6rem, 6.4vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.04em;
  max-width: 13ch;
}
.hero-final p {
  max-width: 34rem;
  padding-bottom: .6rem;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--gray);
}

/* =========================================================
   Scène 2 · Le chemin d'une idée
   ========================================================= */
.chemin { padding: var(--s7) 0 var(--s8); }
.chemin-stage { display: contents; } /* sur ordinateur, l'enveloppe ne compte pas ; sur téléphone, elle se fige */
.chemin-head { display: grid; gap: var(--s3); justify-items: center; text-align: center; }
.path {
  position: relative;
  margin-top: var(--s4);
  --thread-x: 50%;
  --bulb-x: 50%;   /* pied droit du filament, d'où part le fil */
  --bulb-h: 11rem; /* hauteur de la petite ampoule */
  padding-top: calc(var(--bulb-h) + var(--s7));
}
.thread { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.thread-guide { fill: none; stroke: rgba(6, 24, 62, .3); stroke-width: 1.5; stroke-dasharray: 1 8; stroke-linecap: round; }
.thread-start { fill: var(--gold); }
.thread-glow { fill: none; stroke: var(--gold); stroke-opacity: .2; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.thread-line { fill: none; stroke: var(--gold); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.mb-halo { opacity: 0; }
.mb-glass { fill: none; stroke: rgba(6, 24, 62, .32); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.mb-ring { fill: var(--gold); }
.mb-fil { fill: none; stroke: rgba(6, 24, 62, .28); stroke-width: 1.25; stroke-linejoin: round; }
.node-halo { opacity: 0; }
.node-ring { fill: var(--white); stroke: rgba(6, 24, 62, .22); stroke-width: 1.5; }
.node-core { fill: rgba(6, 24, 62, .22); }
.node.on .node-ring { stroke: var(--gold); }
.node.on .node-core { fill: var(--gold); }
.spark { opacity: 0; }

.steps { position: relative; z-index: 1; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--s6);
  align-items: center;
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter) + 7rem);
  margin-inline: auto;
  /* les marges accueillent le fil : il les longe en arc, puis traverse entre deux étapes */
  padding-inline: calc(var(--gutter) + 3.5rem);
}
.step + .step { margin-top: calc(var(--s8) + 3rem); } /* l'espace où le fil traverse */
.step-text { grid-row: 1; grid-column: 1; max-width: 29rem; justify-self: start; }
.step-figure { grid-row: 1; grid-column: 2; justify-self: end; width: 100%; max-width: 31rem; }
.step:nth-child(even) .step-text { grid-column: 2; justify-self: end; }
.step:nth-child(even) .step-figure { grid-column: 1; justify-self: start; }

.step-num {
  font-size: .8125rem; font-weight: 800; letter-spacing: .18em;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}
.step.reached .step-num { color: var(--gold-dark); }
.step h3 { margin-top: var(--s1); }
.step-text > p:not(.step-num):not(.step-gives) { margin-top: var(--s2); color: var(--gray); }
.step-gives {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: .9375rem; font-weight: 700;
}
.step-gives span { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .25rem; }

/* Emplacement photo : à remplacer par <img> quand les vraies photos arrivent */
.photo-slot {
  aspect-ratio: 4 / 3;
  display: grid; place-content: center; gap: .25rem;
  border: 1px dashed rgba(6, 24, 62, .28);
  border-radius: var(--radius);
  background: rgba(6, 24, 62, .035);
  text-align: center;
  padding: var(--s3);
}
.photo-slot figcaption { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }
.photo-slot figcaption span { display: block; margin-top: .375rem; font-size: 1.0625rem; letter-spacing: -.005em; text-transform: none; color: var(--navy); }
.step-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* =========================================================
   Scène 2 bis · Les sept pôles
   ========================================================= */
.poles { --entry-x: 50%; } /* le câble arrive dans l'axe du fil du chemin */
.poles-track { position: relative; height: calc(100vh + 250vh); height: calc(100svh + 250svh); }
.poles-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.poles.is-flow .poles-track { height: auto; }
.poles.is-flow .poles-stage { position: relative; height: auto; padding-block: var(--s7); }
.strands { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.strand-guide { fill: none; stroke: rgba(6, 24, 62, .22); stroke-width: 1.25; stroke-dasharray: 1 7; stroke-linecap: round; }
.strand-glow { fill: none; stroke: var(--gold); stroke-opacity: .2; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.strand-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strand-spark { opacity: 0; }
/* lumières douces : au fond, lentes ; devant, plus nettes et plus rapides */
.glows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glows-front { z-index: 2; }
.glow { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.glows-back .glow { background: radial-gradient(closest-side, rgba(243, 217, 139, .34), rgba(243, 217, 139, 0)); }
.glows-front .glow { background: radial-gradient(closest-side, rgba(201, 162, 74, .9), rgba(201, 162, 74, .25) 45%, rgba(201, 162, 74, 0)); }
.glows-front .glow.soft { background: radial-gradient(closest-side, rgba(201, 162, 74, .16), rgba(201, 162, 74, 0)); }
.poles-hud { --hud-fg: 6, 24, 62; color: rgba(6, 24, 62, .6); }
.poles.is-flow .poles-hud { display: none; }
.poles-hud .hud-bar { display: none; } /* le câble tressé passe au centre du bas de la scène */
.poles-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.poles-num {
  display: block;
  font-size: clamp(5rem, 11vw, 8.5rem);
  line-height: .9; letter-spacing: -.05em;
  color: var(--gold-dark);
}
.poles-head .lede { margin-top: var(--s3); }
.pole-list { display: grid; gap: 1.25rem; padding-left: clamp(7rem, 13vw, 11rem); justify-items: start; }
.pole h3 { font-size: clamp(1.5rem, 2.9vw, 2.625rem); line-height: 1.1; letter-spacing: -.03em; padding-bottom: .375rem; }

/* =========================================================
   Scène 3 · L'agenda vivant
   ========================================================= */
.agenda { position: relative; padding-block: var(--s6) var(--s7); --entry-x: 50%; } /* le câble des pôles y entre dans l'axe */
.agenda-wire { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.agenda-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s6); align-items: center; }
.agenda-info {
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--s3);
  padding-block: var(--s5);
}
.agenda.is-stacked .agenda-grid { align-items: start; }
.agenda.is-stacked .agenda-info { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; }
.live { display: inline-flex; align-items: center; gap: .625rem; font-size: .9375rem; font-weight: 600; color: var(--gray); }
.live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .2); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.stats[hidden] { display: none; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .375rem; }
.stat[hidden] { display: none; }
.stat dt { font-size: .9375rem; font-weight: 600; color: var(--gray); line-height: 1.3; }
.stat dd { font-size: clamp(2.5rem, 4.6vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: color .4s ease-out; }
.stat.is-lit dd { color: var(--gold-dark); } /* allumé par le passage du câble */
.odo { display: inline-flex; height: 1em; overflow: hidden; }
.reel { display: block; width: .62em; height: 1em; overflow: hidden; text-align: center; }
.reel-strip { display: block; will-change: transform; }
.reel-strip span { display: block; height: 1em; line-height: 1; }

.deck-track { position: relative; }
.deck-track.is-stacked { height: calc(100vh + (var(--n) - 1) * 62vh); height: calc(100svh + (var(--n) - 1) * 62svh); }
.deck-sticky {
  display: grid; place-items: center; align-content: center; gap: var(--s3);
  padding-block: var(--s5);
}
.is-stacked .deck-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.deck { position: relative; display: grid; width: min(100%, 25rem); isolation: isolate; }
/* agenda vide : deux cartes fantômes derrière, la pile attend ses dates */
.deck.is-empty::before, .deck.is-empty::after {
  content: ""; grid-area: 1 / 1; z-index: -1;
  border-radius: 14px;
  background: var(--navy);
  transform-origin: 50% 100%;
}
.deck.is-empty::before { opacity: .14; transform: translateY(28px) scale(.9); }
.deck.is-empty::after { opacity: .32; transform: translateY(14px) scale(.95); }
.card {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5);
  min-height: 25rem;
  padding: var(--s4);
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 24px 48px -24px rgba(6, 24, 62, .45),
    0 0 0 1.5px rgba(201, 162, 74, var(--lit, 0)),                                  /* branchée : */
    0 0 calc(var(--lit, 0) * 70px) calc(var(--lit, 0) * 6px) rgba(201, 162, 74, calc(var(--lit, 0) * .4)); /* elle s'illumine */
  transform-origin: 50% 100%;
}
.card-date { display: grid; gap: .25rem; }
.card-day { font-size: 5.5rem; font-weight: 800; line-height: .85; letter-spacing: -.05em; color: var(--gold); font-variant-numeric: tabular-nums; }
.card-month { font-size: 1rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card-when { font-size: .9375rem; font-weight: 600; color: var(--ink-soft); }
.card-title { font-size: 1.625rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.card-place { margin-top: var(--s1); color: var(--ink-soft); font-weight: 600; }
.card-empty { justify-content: flex-start; gap: var(--s3); }
.card-empty .card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card-empty p { color: var(--ink-soft); }
.card-empty .card-title { color: var(--white); }
.card-empty .card-actions { margin-top: auto; display: grid; gap: .5rem; }
.card-empty a { font-weight: 700; color: var(--white); text-decoration-color: var(--gold); }
.card-empty { --focus: var(--gold); }
.deck-count { margin-top: var(--s2); font-size: .875rem; font-weight: 700; letter-spacing: .12em; color: var(--gray); font-variant-numeric: tabular-nums; }

/* =========================================================
   FAQ
   ========================================================= */
/* Déjà vécu : la frise que le fil traverse, entre l'agenda et les questions (mêmes colonnes que la FAQ,
   le fil passe dans l'espace entre les dates et les cartes) */
.histoire { position: relative; padding-block: var(--s7); border-top: 1px solid var(--line); --entry-x: 50%; }
.histoire-wire { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.histoire .wrap { position: relative; z-index: 1; }
.histoire-head, .frise-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); }
.histoire-head { align-items: end; margin-bottom: var(--s6); }
.histoire-head .lede { max-width: 34rem; }
.frise { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.frise-item { align-items: start; }
.frise-date { justify-self: end; padding-right: var(--s4); text-align: right; color: var(--gray); transition: color .4s ease-out; }
.frise-day { display: block; font-size: clamp(3rem, 5.5vw, 4.75rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.frise-month, .frise-label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.frise-month { margin-top: .5rem; }
.frise-big { display: block; font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 800; line-height: .85; letter-spacing: -.06em; color: rgba(6, 24, 62, .08); transition: color .5s ease-out; }
.frise-item.is-lit .frise-date { color: var(--gold-dark); }
.frise-year.is-lit .frise-big { color: rgba(201, 162, 74, .38); }
.frise-card {
  padding: var(--s4); border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(201, 162, 74, var(--lit, 0)), 0 18px 40px -28px rgba(6, 24, 62, calc(.15 + var(--lit, 0) * .25));
  transition: box-shadow .5s ease-out;
}
.frise-item.is-lit .frise-card { --lit: 1; }
.frise-photo { margin: calc(var(--s4) * -1 + 6px) calc(var(--s4) * -1 + 6px) var(--s3); }
.frise-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.frise-place { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.frise-card h3 { margin-top: .375rem; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.frise-summary { margin-top: var(--s2); color: var(--gray); max-width: 38rem; }
.frise-k { margin-top: var(--s3); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }
.frise-speakers { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; color: var(--gray); font-size: .9375rem; }
.frise-speakers strong { color: var(--navy); }
.frise-meta { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: .875rem; font-weight: 700; color: var(--navy); }
.frise-jalon { align-items: baseline; }
.frise-jalon .frise-date { padding-top: .125rem; }
.frise-text { max-width: 34rem; font-weight: 600; color: var(--navy); }

/* apparition (mêmes réglages que les autres sites) : posée par le script seulement, jamais sans animation */
.monte {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease-out, color .4s ease-out;
}
.monte.vue { opacity: 1; transform: none; }

.faq { position: relative; padding-block: var(--s7); border-top: 1px solid var(--line); --entry-x: 50%; }
.tail-wire { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; } /* le fil de fin : passe au-dessus du canvas opaque de l'ampoule finale pour entrer dans son culot */
.faq-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: var(--s3) 0;
  font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 1.25rem; height: 1.25rem;
  background:
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold-dark), var(--gold-dark)) center / 2px 100% no-repeat;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
/* avec JavaScript, l'icône suit l'intention (elle tourne dès le clic, même pendant la fermeture) */
.faq.faq-js details[open] summary::after { transform: none; }
.faq.faq-js details.is-open summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s3); color: var(--gray); max-width: 40rem; }

/* =========================================================
   Final · Rejoins l'aventure
   ========================================================= */
.join { background: var(--navy); color: var(--white); padding-block: var(--s7) var(--s6); overflow: hidden; }
.join-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: center; }
.join-visual { position: relative; width: 100%; max-width: 26rem; aspect-ratio: 1 / 1.1; justify-self: center; }
.join-canvas { width: 100%; height: 100%; }
.join-logo { display: none; }
.join h2 { color: var(--white); }
.join .lede { color: var(--ink-soft); margin-top: var(--s3); }
.join-recrut { margin-top: var(--s4); color: var(--ink-soft); }
.join-recrut strong { color: var(--gold); font-weight: 700; }
.join-recrut a { color: var(--white); font-weight: 700; text-decoration-color: var(--gold); }

/* Les trois portes */
.doors { margin-top: var(--s4); }
.doors-q { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.doors-tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin-top: var(--s1); border-bottom: 1px solid var(--line-light); }
.doors-tabs[hidden] { display: none; }
.doors-tabs button {
  margin: 0 0 -1px; padding: var(--s1) 0 var(--s2);
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  font: inherit; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 800; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.doors-tabs button:hover { color: var(--white); }
.doors-tabs button[aria-selected="true"] { color: var(--white); border-bottom-color: var(--gold); }
.door-panel { margin-top: var(--s3); max-width: 34rem; min-height: 4.7em; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; }
.door-panel[hidden] { display: none; }
.door-panel a { color: var(--white); font-weight: 700; text-decoration-color: var(--gold); }
.door-title { font-size: 1.0625rem; color: var(--white); margin-bottom: .25rem; }
.doors.is-on .door-title { display: none; }
.doors-tabs { position: relative; }
.doors.is-on .doors-tabs button[aria-selected="true"] { border-bottom-color: transparent; }
.doors-ink {
  position: absolute; left: 0; top: 0; height: 2px;
  background: var(--gold);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.doors-ink.is-still { transition: none; }
.join-cta { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--gold); }
.btn.btn-line:hover { background: rgba(201, 162, 74, .14); }
.join-links { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.join-links a { font-weight: 700; text-decoration-color: var(--gold); }

.site-foot { background: var(--navy); color: var(--ink-soft); padding-block: var(--s5) var(--s4); font-size: .9375rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line-light); }
.foot-id { display: flex; gap: var(--s2); align-items: flex-start; max-width: 34rem; }
.foot-id img { width: 40px; height: 40px; border-radius: 10px; flex: none; padding: 5px; background: #06183E; object-fit: contain; }
.foot-id strong { color: var(--white); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-content: flex-start; }
.foot-links a { color: var(--white); text-decoration-color: var(--gold); }

/* =========================================================
   Pages simples (mentions légales, confidentialité, 404)
   ========================================================= */
.page-head { background: var(--navy); color: var(--white); padding-block: var(--s3) var(--s6); }
.page-head .brand { margin-bottom: var(--s6); }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; max-width: 18ch; }
.page-head p { margin-top: var(--s3); color: var(--ink-soft); max-width: 36rem; }
.legal { padding-block: var(--s6) var(--s7); }
.legal-body { max-width: 44rem; }
.legal-body h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-top: var(--s5); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin-top: var(--s2); color: var(--gray); }
.legal-body ul { list-style: disc; padding-left: 1.25rem; }
.legal-body li + li { margin-top: .375rem; }
.legal-body strong { color: var(--navy); }
.legal-body a { color: var(--navy); text-decoration-color: var(--gold-dark); }

.lost { min-height: 100vh; min-height: 100svh; display: grid; background: var(--navy); color: var(--white); }
.lost-in { display: grid; align-content: center; justify-items: center; gap: var(--s3); padding: var(--s6) var(--gutter); text-align: center; }
.lost-in > img { width: min(40vw, 10rem); height: auto; margin-bottom: var(--s2); }
.lost h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.04; }
.lost p { color: var(--ink-soft); max-width: 28rem; }
.lost .btn { margin-top: var(--s3); }

/* =========================================================
   Mobile : pensé à part
   ========================================================= */
.m-bar, .m-menu, .m-action, .m-thread { display: none; }
@media (max-width: 960px) {
  .hero-final-in { grid-template-columns: minmax(0, 1fr); }
  .hero-final p { margin-top: var(--s4); padding-bottom: 0; }
}

/* fenêtre d'ordinateur étroite (à la souris) : on garde la version ordinateur, resserrée ;
   la version téléphone, plus bas, reprend la main sur un écran tactile ou une fenêtre très étroite */
@media (max-width: 760px) and (pointer: fine) {
  .poles-grid { gap: var(--s3); }
  .poles-num { font-size: 4.5rem; }
  .pole-list { padding-left: 3.5rem; gap: 1rem; }
  .pole h3 { font-size: 1.375rem; }
  .agenda-grid { column-gap: var(--s3); }
  .card { padding: var(--s3); min-height: 22rem; }
  .step { column-gap: var(--s3); padding-inline: calc(var(--gutter) + 2.25rem); }
  .faq-grid, .join-grid { gap: var(--s3); }
  .histoire-head, .frise-item { gap: var(--s3); }
  .frise-date { padding-right: var(--s3); }
}

@media (max-width: 760px) and (pointer: coarse), (max-width: 520px) { /* version téléphone : écran tactile étroit, ou fenêtre très étroite */
  body { font-size: 1rem; }
  .hero { height: 390vh; }
  .hero-bar { padding-block: var(--s2); }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .hero-final { align-content: end; padding-bottom: calc(var(--s6) + 100lvh - 100svh); }
  .hero-final p { margin-top: var(--s3); }
  .hud { grid-template-columns: minmax(0, 1fr); gap: .75rem; font-size: .625rem; }
  .hud-place { display: none; }
  .hud-stats { gap: var(--s3); }
  .hud-stats div { justify-items: start; }
  .hud-stats dd { font-size: .9375rem; }
  /* l'invitation à défiler se pose sous la phrase d'ouverture, jamais dessus */
  .hero-cue { top: calc(var(--copy-top) + 4.75rem); bottom: auto; gap: .5rem; }
  .hero-cue::after { height: 1.25rem; }
  .poles-hud { display: none; }

  .chemin { padding: var(--s6) 0 var(--s7); }
  .chemin-head { justify-items: start; text-align: left; }
  .path {
    margin-top: var(--s3);
    --thread-x: calc(var(--gutter) + 9px);
    --bulb-x: calc(var(--gutter) + 3.4rem);
    --bulb-h: 7.5rem;
    padding-top: 0;
  }
  /* le chemin en cartes : figé à l'écran, le défilement les fait passer une à une ;
     le fil devient la frise qui les relie, puis descend vers la suite */
  .chemin { padding: 0; height: calc(100vh + 260vh); height: calc(100svh + 260svh); }
  .chemin-stage {
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    padding: 4.5rem 0 1.5rem;
  }
  .chemin-head { gap: var(--s1); }
  .chemin-head h2 { font-size: 1.875rem; }
  .chemin-head .lede { font-size: .9375rem; }
  .path { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: var(--s2); }
  .path > .thread { display: none; }
  .m-thread { display: block; flex: none; padding-inline: var(--gutter); }
  .m-thread svg { display: block; width: 100%; height: 5.25rem; overflow: visible; }
  .m-thread .node { cursor: pointer; }
  .m-num { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: .16em; fill: var(--gray); }
  .m-num.on { fill: var(--gold-dark); }
  .steps {
    flex: 1; min-height: 0;
    display: flex; align-items: flex-start; gap: .75rem;
    padding: var(--s1) var(--gutter) 0;
    will-change: transform;
  }
  .step, .step + .step {
    flex: 0 0 74%; display: flex; flex-direction: column;
    max-width: none; margin: 0; padding: 0;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: var(--white);
  }
  .step-figure, .step:nth-child(even) .step-figure { order: -1; width: 100%; max-width: none; }
  .step .photo-slot { aspect-ratio: 2 / 1; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--s1); }
  .step .step-figure img { aspect-ratio: 2 / 1; border-radius: 0; }
  .step-text, .step:nth-child(even) .step-text { padding: var(--s2) var(--s2) var(--s3); max-width: none; }
  .step h3 { font-size: 1.25rem; margin-top: .25rem; }
  .step-text > p:not(.step-num):not(.step-gives) { margin-top: .5rem; font-size: .875rem; line-height: 1.5; }
  .step-gives { margin-top: var(--s2); padding-top: var(--s1); font-size: .8125rem; }
  /* téléphone trop bas pour tout montrer : on revient aux cartes qu'on fait glisser du doigt */
  .chemin.is-flow { height: auto; padding: var(--s6) 0 var(--s6); }
  .chemin.is-flow .chemin-stage { position: static; height: auto; overflow: visible; padding: 0; }
  .chemin.is-flow .steps {
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-bottom: var(--s3); scrollbar-width: none; will-change: auto;
  }
  .chemin.is-flow .steps::-webkit-scrollbar { display: none; }
  .chemin.is-flow .step { scroll-snap-align: start; }

  /* sur téléphone, le câble descend le long du rail du chemin et lâche un brin par pôle */
  .poles { --entry-x: calc(var(--gutter) + 9px); }
  .poles-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-left: calc(var(--gutter) + 2.75rem); }
  .poles.is-flow .poles-stage { padding-block: var(--s6); }
  .poles-stage { padding-block: 4rem 5.5rem; } /* la place des barres du haut et du bas */
  .poles-num { font-size: 4.5rem; }
  .poles-head .lede { margin-top: var(--s2); }
  .pole-list { gap: 1rem; padding-left: 1.25rem; }
  .pole h3 { font-size: 1.5rem; }

  .doors-tabs { gap: 0 var(--s3); }

  .agenda { padding-block: var(--s6) var(--s5); }
  .agenda { --entry-x: calc(var(--gutter) + 9px); }
  .agenda-grid { grid-template-columns: minmax(0, 1fr); padding-left: calc(var(--gutter) + 2.75rem); }
  .agenda-info, .agenda.is-stacked .agenda-info { position: static; min-height: 0; padding-block: 0 var(--s2); }
  .stats { gap: var(--s2); }
  .stat dt { font-size: .8125rem; }
  .card { min-height: 22rem; padding: var(--s3); }
  .card-day { font-size: 4.5rem; }

  .faq { padding-block: var(--s6); }
  .faq { --entry-x: calc(var(--gutter) + 9px); }
  /* frise sur téléphone : le fil suit le rail, tout le contenu à sa droite, une seule colonne */
  .histoire { padding-block: var(--s6); --entry-x: calc(var(--gutter) + 9px); }
  .histoire .wrap { padding-left: calc(var(--gutter) + 2.75rem); }
  .histoire-head, .frise-item { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .histoire-head { margin-bottom: var(--s5); }
  .frise { gap: var(--s4); }
  .frise-date { justify-self: start; padding: 0; text-align: left; }
  .frise-day { display: inline; font-size: 2rem; letter-spacing: -.03em; }
  .frise-month { display: inline; margin: 0 0 0 .5rem; }
  .frise-big { font-size: 3.5rem; }
  .frise-card { padding: var(--s3); }
  .frise-photo { margin: calc(var(--s3) * -1 + 5px) calc(var(--s3) * -1 + 5px) var(--s2); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-left: calc(var(--gutter) + 2.75rem); } /* le rail du fil reste libre */
  .faq summary { font-size: 1.0625rem; }

  .join { padding-block: var(--s6) var(--s5); }
  .join-grid { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 2rem; row-gap: 0; } /* le fil de fin passe entre l'ampoule et le titre */
  .join-text { display: contents; }
  .join-visual { grid-column: 1; grid-row: 1; width: 5.5rem; max-width: none; }
  .join h2 { grid-column: 2; grid-row: 1; font-size: 2.125rem; }
  .doors, .join-recrut, .join-cta, .join-links { grid-column: 1 / -1; }
  .doors { margin-top: var(--s3); }
  .doors-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .doors-tabs::-webkit-scrollbar { display: none; }
  .doors-tabs button { flex: none; white-space: nowrap; }
  .join-cta { margin-top: var(--s4); }
  .join-cta .btn { width: 100%; justify-content: center; }
  .join-links { gap: var(--s2) var(--s4); }

  .foot-in { flex-direction: column; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); }

  /* barre du haut, après l'ouverture ; sans flou (pas d'effet verre) */
  .m-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; inset: 0 0 auto 0; z-index: 30;
    padding: .625rem var(--gutter); padding-top: calc(.625rem + env(safe-area-inset-top));
    background: var(--navy); color: var(--white); /* bleu marine, comme les barres du navigateur */
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-105%); visibility: hidden;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .3s, visibility 0s linear .4s;
  }
  .m-bar.is-on, .menu-open .m-bar { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .3s, visibility 0s; }
  .m-bar.is-on.cache { transform: translateY(-105%); visibility: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .3s, visibility 0s linear .4s; }
  .menu-open .m-bar.cache { visibility: visible; }
  .menu-open .m-bar, .menu-open .m-bar.cache { transform: none; background: transparent; color: var(--white); border-bottom-color: transparent; }
  .m-bar .brand img { width: 30px; height: 30px; border-radius: 8px; }
  /* bouton Menu en pastille : deux traits qui se croisent à l'ouverture */
  .m-menu-btn {
    display: inline-flex; align-items: center; gap: .625rem; position: relative; z-index: 2;
    padding: .5625rem .875rem .5625rem 1rem; border: 0; border-radius: 100px;
    background: var(--white); color: var(--navy);
    font: inherit; font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color .35s ease, color .35s ease, transform .2s ease;
  }
  .m-menu-btn:active { transform: scale(.96); }
  .m-menu-btn .traits { position: relative; display: block; width: 14px; height: 8px; }
  .m-menu-btn .traits::before, .m-menu-btn .traits::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
    transition: top .35s cubic-bezier(.2, .7, .2, 1), transform .45s cubic-bezier(.2, .7, .2, 1) .05s;
  }
  .m-menu-btn .traits::before { top: 0; }
  .m-menu-btn .traits::after { top: 6.5px; }
  .menu-open .m-menu-btn { background: var(--white); color: var(--navy); }
  .menu-open .m-menu-btn .traits::before { top: 3.25px; transform: rotate(45deg); }
  .menu-open .m-menu-btn .traits::after { top: 3.25px; transform: rotate(-45deg); }

  /* le menu : un rideau qui descend du haut, les liens montent un à un de leur masque */
  .m-menu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 25;
    padding: calc(5.75rem + env(safe-area-inset-top)) var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
    background: var(--navy); color: var(--white);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .65s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .65s;
  }
  .menu-open .m-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .65s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
  .menu-liens li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
  .menu-liens a {
    display: flex; align-items: baseline; gap: .875rem;
    padding: .875rem 0 .75rem;
    color: var(--white); text-decoration: none;
    font-size: clamp(1.875rem, 8.6vw, 2.5rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05;
    transform: translateY(105%);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  }
  .menu-liens a small { font-size: .625rem; font-weight: 700; letter-spacing: .16em; color: var(--gold); }
  .menu-liens a:active { opacity: .6; }
  .menu-open .menu-liens a { transform: none; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .menu-open .menu-liens li:nth-child(1) a { transition-delay: .22s; }
  .menu-open .menu-liens li:nth-child(2) a { transition-delay: .28s; }
  .menu-open .menu-liens li:nth-child(3) a { transition-delay: .34s; }
  .menu-open .menu-liens li:nth-child(4) a { transition-delay: .40s; }
  .menu-open .menu-liens li:nth-child(5) a { transition-delay: .46s; }
  .menu-open .menu-liens li:nth-child(6) a { transition-delay: .52s; }
  .menu-pied {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
    opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
  }
  .menu-open .menu-pied { opacity: 1; transform: none; transition: opacity .6s ease .56s, transform .6s cubic-bezier(.2, .7, .2, 1) .56s; }
  .menu-pied p { font-size: .75rem; line-height: 1.6; color: var(--ink-soft); }
  .menu-pied p a { color: var(--white); text-decoration-color: var(--gold); }
  .menu-appel {
    flex: none; padding: .625rem 1rem; border-radius: 100px;
    background: var(--white); color: var(--navy); text-decoration: none;
    font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  }
  .menu-open { overflow: hidden; }

  /* les deux boutons d'action, posés en bas sans cadre : une pastille dorée et un bouton rond */
  .m-action {
    display: flex; align-items: center; justify-content: center; gap: .625rem;
    position: fixed; left: 0; right: 0; bottom: calc(.875rem + env(safe-area-inset-bottom)); z-index: 20;
    padding-inline: .875rem;
    pointer-events: none; /* seuls les boutons captent le doigt, pas la bande autour */
    transform: translateY(calc(100% + 2rem));
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
    -webkit-tap-highlight-color: transparent;
  }
  .m-action.is-on { transform: none; }
  .m-action .btn, .m-action-ig { pointer-events: auto; }
  .m-action .btn {
    flex: none; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; font-size: 1rem;
    box-shadow: 0 12px 28px -10px rgba(6, 24, 62, .45);
    --focus: var(--navy);
  }
  .m-action-ig {
    flex: none; width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
    border-radius: 50%;
    background: var(--white); color: var(--navy);
    box-shadow: 0 12px 28px -10px rgba(6, 24, 62, .45), 0 0 0 1px var(--line);
    --focus: var(--navy);
  }
  .m-action-ig svg { width: 1.375rem; height: 1.375rem; }
}

/* téléphones très bas : l'ouverture garde de l'air sous l'invitation à défiler */
@media (max-width: 760px) and (pointer: coarse) and (max-height: 600px), (max-width: 520px) and (max-height: 600px) {
  .hero-hud .hud-stats { display: none; }
}

/* téléphones de hauteur moyenne (barre de Safari affichée) : cartes plus compactes pour que le chemin reste figé */
@media (max-width: 760px) and (pointer: coarse) and (max-height: 760px), (max-width: 520px) and (max-height: 760px) {
  .chemin-stage { padding: 3.75rem 0 1rem; }
  .chemin-head .lede { display: none; }
  .path { margin-top: var(--s1); }
  .m-thread svg { height: 4.75rem; }
  .step, .step + .step { flex-basis: 80%; }
  .step .photo-slot { aspect-ratio: 5 / 2; }
  .step-text, .step:nth-child(even) .step-text { padding: .75rem var(--s2) var(--s2); }
  .step-text > p:not(.step-num):not(.step-gives) { font-size: .8125rem; line-height: 1.45; }
  .step-gives { margin-top: .75rem; }
  .poles-stage { padding-block: 3.5rem 5.25rem; }
  .poles-num { font-size: 3.25rem; }
  .poles-head .lede { display: none; }
  .pole-list { gap: .7rem; }
  .pole h3 { font-size: 1.3rem; }
}
