/* Périhélie : feuille de style unique. Couleurs en OKLCH, uniquement via variables. */

/* Archivo (licence SIL OFL 1.1), servie par le site lui-même : aucun appel à Google Fonts. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin-italic.woff2') format('woff2');
  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;
}

@property --accent { syntax: '<color>'; inherits: true; initial-value: oklch(0.74 0.17 48); }
@property --dmax { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --rx { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --lift { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --space-0: oklch(0.14 0.02 275);
  --space-1: oklch(0.18 0.025 275);
  --space-2: oklch(0.23 0.03 275);
  --ink: oklch(0.95 0.012 85);
  --ink-2: oklch(0.80 0.02 275);
  --ink-3: oklch(0.66 0.025 275);
  --line: oklch(0.95 0.012 85 / 0.14);
  --line-strong: oklch(0.95 0.012 85 / 0.28);
  --braise: oklch(0.74 0.17 48);
  --givre: oklch(0.86 0.07 215);
  --orage: oklch(0.72 0.16 318);
  --lagon: oklch(0.76 0.12 190);
  --soon: oklch(0.82 0.13 85);
  --on-accent: oklch(0.17 0.02 275);
  --accent: var(--braise);

  --font: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --radius-s: 4px;
  --radius-m: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 6vw, 96px);
  --section-gap: clamp(96px, 14vh, 180px);
  --nav-h: 68px;

  color-scheme: dark;
}

/* L'accent de l'interface prend la couleur du monde actif. */
html[data-world="braise"] { --accent: var(--braise); }
html[data-world="givre"] { --accent: var(--givre); }
html[data-world="orage"] { --accent: var(--orage); }
html[data-world="lagon"] { --accent: var(--lagon); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--space-0);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.7;
  background: var(--space-0);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
em { font-style: italic; }

kbd {
  font: inherit;
  font-weight: 600;
  padding: 0 0.35em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.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-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--space-0);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: none; }

section[id] { scroll-margin-top: var(--nav-h); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.btn--accent { background: var(--accent); color: var(--on-accent); }
/* L'accent change d'un coup ; ses consommateurs font leur propre fondu (pas de transition sur :root,
   qui restylait tout le document à chaque image). */
.board__link, .flight__list li::before, .faq__item summary::after, .progress__fill { transition: color 0.8s var(--ease-out), background-color 0.8s var(--ease-out); }
.btn--accent:hover { background: color-mix(in oklch, var(--accent) 80%, var(--ink)); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: 0.875rem; }
.btn span[aria-hidden="true"] { transition: transform 0.3s var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover span[aria-hidden="true"] { transform: translateX(3px); }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.nav.is-solid {
  background: var(--space-0); /* opaque : le nom du monde ne transparaît plus derrière le logo */
  border-bottom-color: var(--line);
}

.nav__brand,
.wordmark {
  font-size: 0.9375rem;
  font-stretch: 125%;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav:not(.is-solid) .btn--accent { background: none; border-color: var(--line-strong); color: var(--ink); }
.nav:not(.is-solid) .btn--accent:hover { border-color: var(--ink); }

.nav__menu { margin-left: auto; }
.nav__menu ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); padding: 0; list-style: none; }
.nav__menu a { color: var(--ink-2); font-size: 0.9375rem; text-decoration: none; transition: color 0.2s; }
.nav__menu a:hover { color: var(--ink); }

@media (max-width: 759px) {
  .nav__menu { display: none; }
  .nav .btn { margin-left: auto; }
}

/* =====================================================================
   Header : le sélecteur de mondes
   Portrait par défaut, paysage dans la media query plus bas.
   ===================================================================== */

.worlds { position: relative; }

.worlds__pin {
  position: relative;
  height: 400vh;
  height: 400svh; /* une scène + trois pas d'un écran : Page suivante avance d'un monde */
}

.stage {
  /* Géométrie de l'orbite, lue aussi par le JS (propriétés enregistrées = résolues en px) */
  --dmax: clamp(180px, min(66vw, 36svh), 460px);
  --cx: 50%;
  --cy: 33%;
  --rx: min(36vw, calc(var(--dmax) * 0.56));
  --lift: calc(var(--dmax) * 0.54);

  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  background: var(--space-0);
}

.stage__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .stage__bg { animation: drift 80s ease-in-out infinite alternate; }
}

@keyframes drift {
  from { transform: scale(1.05) translate3d(-0.8%, 0.5%, 0); }
  to { transform: scale(1.1) translate3d(0.8%, -0.6%, 0); }
}

.stage__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--space-0) 0%, color-mix(in oklch, var(--space-0) 70%, transparent) 30%, transparent 50%),
    radial-gradient(ellipse 70% 40% at var(--cx) var(--cy), color-mix(in oklch, var(--accent) 12%, transparent), transparent 70%);
}

/* ---------- Orbite et planètes ---------- */

.orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.planet {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: var(--dmax);
  height: var(--dmax);
  margin: calc(var(--dmax) / -2) 0 0 calc(var(--dmax) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 50%;
  -webkit-tap-highlight-color: transparent;
}

.planet[aria-selected="true"] { cursor: default; }
.planet { will-change: transform; }

.planet__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Ombre : un disque calé sur la planète (92 % de l'image), seule l'opacité est animée. */
.planet__shade {
  position: absolute;
  inset: 4%;
  z-index: 2;
  border-radius: 50%;
  background: var(--space-0);
  opacity: 0;
  pointer-events: none;
}

.planet__glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--world) 40%, transparent) 62%, transparent);
  opacity: 0;
  pointer-events: none;
}

/* Anneau de survol et de focus, calé sur le disque (qui occupe 92 % de l'image) */
.planet::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 4%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--world) 80%, transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

@media (hover: hover) {
  .planet[aria-selected="false"]:hover::after { opacity: 1; }
}

.planet:focus-visible { outline: none; }

.planet:focus-visible::after {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 10px color-mix(in oklch, var(--accent) 25%, transparent);
}

.planet[data-world="braise"] { --world: var(--braise); }
.planet[data-world="givre"] { --world: var(--givre); }
.planet[data-world="orage"] { --world: var(--orage); }
.planet[data-world="lagon"] { --world: var(--lagon); }

/* Positions de départ = état 0 du JS (aucun saut quand le script prend la main) */
.planet:nth-child(1) { z-index: 101; }
.planet:nth-child(2) { z-index: 51; transform: translate3d(var(--rx), calc(var(--lift) * -0.5), 0) scale(0.46); }
.planet:nth-child(3) { z-index: 1; transform: translate3d(0, calc(var(--lift) * -1), 0) scale(0.28); }
.planet:nth-child(4) { z-index: 51; transform: translate3d(calc(var(--rx) * -1), calc(var(--lift) * -0.5), 0) scale(0.46); }
.planet:nth-child(1) .planet__glow { opacity: 1; }
.planet:nth-child(2) .planet__glow,
.planet:nth-child(4) .planet__glow { opacity: 0.25; }
.planet:nth-child(2) .planet__shade,
.planet:nth-child(4) .planet__shade { opacity: 0.55; }
.planet:nth-child(3) .planet__shade { opacity: 0.65; }

/* ---------- Panneaux ---------- */

.panels {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(clamp(14px, 3.2svh, 36px) + 64px + env(safe-area-inset-bottom, 0px)); /* au-dessus de la barre du bas */
  display: grid;
}

.panel {
  grid-area: 1 / 1;
  align-self: end;
  visibility: hidden;
  transition: visibility 0s linear 0.22s;
}

.panel.is-active { visibility: visible; transition-delay: 0s; }

.panel > * {
  opacity: 0;
  transform: translate3d(calc(var(--dir, 1) * 24px), 0, 0);
  transition: opacity 0.15s ease-in, transform 0s linear 0.15s;
}

.panel.is-active > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}

.panel.is-active > :nth-child(1) { transition-delay: 0.10s; }
.panel.is-active > :nth-child(2) { transition-delay: 0.15s; }
.panel.is-active > :nth-child(3) { transition-delay: 0.20s; }
.panel.is-active > :nth-child(4) { transition-delay: 0.25s; }
.panel.is-active > :nth-child(5) { transition-delay: 0.30s; }

.panel:focus-visible { outline-offset: 8px; }

.panel__meta {
  display: flex;
  gap: 0.8em;
  align-items: baseline;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  font-stretch: 110%;
}


.panel__name {
  margin: 0.1em 0 0.25em;
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.panel__text {
  max-width: 36ch;
  margin-bottom: 1em;
  color: var(--ink-2);
  font-size: 0.975rem;
  line-height: 1.6;
}

.panel__text em { color: var(--ink); }

.panel__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.6em;
  margin-bottom: 1.1em;
  padding-top: 0.7em;
  border-top: 1px solid var(--line);
}

.panel__facts dt { color: var(--ink-3); font-size: 0.8125rem; }
.panel__facts dd { margin: 0.1em 0 0; font-size: 1rem; font-weight: 620; font-variant-numeric: tabular-nums; }

/* ---------- Barre du bas : progression, indice, évitement ---------- */

.stage__bar {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(clamp(14px, 3.2svh, 36px) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.progress { display: flex; align-items: center; gap: 0.9rem; }
.progress__count { font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.progress__current { color: var(--ink); }

.progress__track {
  position: relative;
  width: clamp(72px, 12vw, 160px);
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.progress__fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}

.hint { display: none; }
.hint > span { grid-area: 1 / 1; transition: opacity 0.5s var(--ease-out); }
.hint__end { opacity: 0; }
.has-interacted .hint__start,
.is-last .hint__start { opacity: 0; }
.is-last .hint__end { opacity: 1; }

.hint__skip {
  margin-left: auto;
  padding: 0.5em 0.2em;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.hint__skip:hover { color: var(--accent); }

/* ---------- Téléphones courts (barres du navigateur visibles) ---------- */

@media (orientation: portrait) and (max-height: 760px) {
  .stage {
    --dmax: clamp(150px, min(66vw, 26svh), 460px);
    --cy: calc(var(--nav-h) + var(--dmax) * 0.72);
  }
}

@media (orientation: portrait) and (max-height: 620px) {
  .panel__facts { display: none; }
  .panel__name { font-size: 2.25rem; }
}

/* ---------- Paysage : texte à gauche, orbite à droite ---------- */

@media (min-width: 640px) and (min-aspect-ratio: 11/10) {
  .stage {
    --dmax: clamp(260px, min(60svh, 36vw), 640px);
    /* Au moins 64 % de la largeur, et jamais assez à gauche pour que la planète latérale touche le texte */
    --cx: max(64%, calc(var(--gutter) + min(28vw, 420px) + var(--rx) + var(--dmax) * 0.28));
    --cy: 56%;
    --rx: min(18vw, calc(var(--dmax) * 0.52));
  }

  .stage__veil {
    background:
      linear-gradient(90deg, color-mix(in oklch, var(--space-0) 78%, transparent) 0%, color-mix(in oklch, var(--space-0) 34%, transparent) 30%, transparent 46%),
      linear-gradient(0deg, var(--space-0) 0%, transparent 30%),
      radial-gradient(ellipse 42% 52% at var(--cx) var(--cy), color-mix(in oklch, var(--accent) 12%, transparent), transparent 70%);
  }

  .panels {
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(28vw, 420px);
    transform: translateY(-46%);
  }

  .panel { align-self: start; } /* même hauteur de départ pour les 4 : pas de saut vertical */
  .panel__name { font-size: clamp(2.75rem, 5.6vw, 6.5rem); }
  .panel__text { margin-bottom: 1.4em; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.7; }
  .panel__facts { gap: 0.6em 1.8em; margin-bottom: 1.6em; padding-top: 1em; }
  .panel__facts dd { font-size: 1.0625rem; }

  .hint { position: relative; display: grid; margin-left: auto; }
  .hint__skip { margin-left: 0; }
}

/* ---------- Apparition ---------- */

@media (scripting: enabled) {
  .orbit, .panels, .stage__bar {
    opacity: 0;
    animation: reveal 0s linear 3s forwards; /* filet de sécurité si le script échoue */
  }

  .is-ready .orbit, .is-ready .panels, .is-ready .stage__bar {
    opacity: 1;
    animation: none;
    transition: opacity 0.9s var(--ease-out);
  }
}

@keyframes reveal { to { opacity: 1; } }

@media (scripting: enabled) {
  .planet__img { opacity: 0; transition: opacity 0.6s var(--ease-out); }
  .planet.is-loaded .planet__img { opacity: 1; }
}

@media (scripting: none) {
  .worlds__pin { height: auto; }
  .stage { position: relative; }
  .stage__bar { display: none; }
}

/* =====================================================================
   Suite de la page
   ===================================================================== */

.section { position: relative; padding: var(--section-gap) var(--gutter); }

.h-display {
  font-size: clamp(2.25rem, 1.1rem + 3.8vw, 4.75rem);
  font-stretch: 118%;
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h-display em { font-weight: 500; color: var(--ink-2); }

.lead {
  max-width: 44ch;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
}

/* ---------- Vus du sol ---------- */

.grounds__head { margin-bottom: clamp(48px, 8vh, 96px); }

.grounds__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: clamp(48px, 9vh, 120px);
}

.ground { grid-column: 1 / -1; }
.ground--braise { --world: var(--braise); }
.ground--givre { --world: var(--givre); }
.ground--orage { --world: var(--orage); }
.ground--lagon { --world: var(--lagon); }

@media (min-width: 900px) {
  .ground--braise { grid-column: 1 / span 7; }
  .ground--givre { grid-column: 8 / span 5; align-self: end; }
  .ground--orage { grid-column: 2 / span 5; }
  .ground--lagon { grid-column: 7 / span 6; margin-top: 18vh; }
}

.ground__frame {
  overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 3 / 2;
  background: var(--space-1);
}

.ground__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ground:hover .ground__frame img { transform: scale(1.03); }
}

.ground figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.8rem;
  margin-top: 1rem;
  color: var(--ink-2);
}

.ground figcaption strong {
  color: var(--ink);
  font-stretch: 125%;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dot {
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--world);
}

/* ---------- Le vol ---------- */

.flight { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }

@media (min-width: 900px) {
  .flight { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.flight .h-display { font-size: clamp(2rem, 1rem + 2.4vw, 3.5rem); }
.flight .h-display em { display: block; }

.flight__media {
  overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 16 / 9;
  background: var(--space-1);
}

.flight__media img { width: 100%; height: 100%; object-fit: cover; }

.flight__list {
  display: grid;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  counter-reset: flight;
}

.flight__list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  counter-increment: flight;
}

.flight__list li::before {
  content: counter(flight, decimal-leading-zero);
  padding-top: 0.15em;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Départs ---------- */

.departures__head { margin-bottom: clamp(32px, 5vh, 56px); }

.board { border-top: 1px solid var(--line-strong); }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }

.board th,
.board td {
  padding: 1.15rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.board thead th { padding-block: 0.9rem; color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }

.board tbody th {
  font-stretch: 118%;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.board td:last-child { text-align: right; }
.board__dest { display: inline-flex; align-items: center; gap: 0.8rem; }
.board__dest img { width: 28px; height: 28px; }
.board tr.is-full { color: var(--ink-3); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--open { color: var(--ink-2); }
.status--soon { color: var(--soon); }
.status--full { color: var(--ink-3); }

.board__link { color: var(--accent); font-weight: 650; text-decoration: none; white-space: nowrap; }
.board__link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 759px) {
  .board thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .board tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
  }

  .board th,
  .board td { padding: 0; border: 0; }

  .board tbody th { grid-column: 1 / -1; margin-bottom: 0.3rem; }
  .board td:last-child { text-align: left; }
  .board td[data-label]::before { content: attr(data-label) "\202F: "; color: var(--ink-3); }
}

/* ---------- Questions ---------- */

.faq { display: grid; gap: clamp(32px, 5vw, 80px); }

@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .faq__head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
}

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 620;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
}

.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { max-width: 60ch; padding-bottom: 1.5rem; color: var(--ink-2); }

/* ---------- Appel final ---------- */

.final {
  display: grid;
  align-content: center;
  gap: 2.5rem;
  min-height: 80vh;
  overflow: hidden;
}

.final__planet {
  position: absolute;
  z-index: 0;
  right: -16vw;
  bottom: -36vw;
  width: min(62vw, 820px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 55%, transparent 95%);
  mask-image: linear-gradient(to bottom, var(--ink) 55%, transparent 95%);
}

.final h2,
.final__actions { position: relative; z-index: 1; }

.final h2 {
  max-width: min(14ch, 58vw); /* ne passe plus sur la planète dès 1280 px */
  font-size: clamp(2.75rem, 1.2rem + 6vw, 7rem);
  font-stretch: 122%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.final h2 em { display: block; font-weight: 500; color: var(--ink-2); text-wrap: balance; }
.final__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Pied de page ---------- */

.footer {
  display: grid;
  gap: 2.5rem;
  padding: clamp(56px, 8vh, 96px) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--space-1);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .footer { grid-template-columns: 2fr 1fr 2fr; align-items: start; }
}

.footer .wordmark { display: block; margin-bottom: 0.75rem; color: var(--ink); }
.footer ul { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer__legal p + p { margin-top: 0.5rem; color: var(--ink-3); }
.footer__legal a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Page mentions légales ---------- */

.legal {
  max-width: 72ch;
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 96px)) var(--gutter) clamp(64px, 10vh, 120px);
  margin-inline: auto;
  box-sizing: content-box;
}
.legal h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.legal__intro { color: var(--ink-2); }
.legal h2 {
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-stretch: 112%;
  font-weight: 700;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.legal h3 { margin: 1.5rem 0 0.25rem; font-size: 1.125rem; font-weight: 650; }
.legal p, .legal ul { color: var(--ink-2); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.75rem; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--ink); text-underline-offset: 0.2em; }
.legal__date { margin-top: 3rem; color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .panel > * { transform: none; }
}
