/* ==========================================================================
   3CH0 — Recherche. Innovation. Protection.
   Palette reprise du dossier de présentation de l'association :
   slate + sky (les valeurs exactes extraites de ses flux PDF).
   Typographies conservées de la charte : Outfit + Plus Jakarta Sans
   (le dossier est en Calibri, police par défaut de PowerPoint — pas un
   choix de marque, donc non repris).

   Contrastes mesurés sur le fond #0F2038 :
     #F8FAFC 15,6:1 · #CBD5E1 10,9:1 · #94A3B8 6,3:1 · #38BDF8 7,5:1
   ⚠️ #0284C7 ne fait que 4,0:1 : JAMAIS en petit texte. Il sert aux
   icônes, filets, remplissages et grands aplats. Tout texte accentué
   est en --sky-text #38BDF8.
   Dans le bloc clair (#F8FAFC) l'accent texte est #1E3A8A (9,9:1) —
   #0284C7 n'y fait que 3,9:1.
   ========================================================================== */

/* Polices hebergees sur le site : aucune requete vers Google,
   donc aucune adresse IP de visiteur transmise a un tiers. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/outfit-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-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;
}

:root {
  /* palette du dossier */
  --sky:         #0284C7;
  --sky-text:    #38BDF8;
  --sky-deep:    #1E3A8A;
  --slate-900:   #0F172A;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-400:   #94A3B8;
  --slate-300:   #CBD5E1;
  --slate-200:   #E2E8F0;
  --slate-50:    #F8FAFC;
  --white:       #FFFFFF;

  /* surfaces */
  --bg:          #0F2038;
  --bg-deep:     #0F172A;
  --bg-darkest:  #0A1120;
  --surface:     rgba(71, 85, 105, 0.34);
  --surface-2:   rgba(71, 85, 105, 0.52);
  --beige:       #F8FAFC;

  /* signal fonctionnel, hors charte : uniquement les urgences */
  --amber:       #FFB74D;

  /* encres sur fond sombre, toutes ≥ 6,2:1 */
  --text:        #F8FAFC;
  --text-soft:   #CBD5E1;
  --text-dim:    #94A3B8;

  /* encres dans le bloc clair */
  --ink:         #0F172A;
  --ink-soft:    #334155;
  --ink-dim:     #475569;

  /* alias conservés pour ne pas casser les règles existantes */
  --coral:       #0284C7;
  --coral-soft:  #38BDF8;
  --navy:        #0F2038;
  --taupe:       #475569;
  --slate:       #334155;

  --grad-brand:  linear-gradient(120deg, var(--sky), var(--sky-text));

  --line:        rgba(248, 250, 252, 0.13);
  --line-soft:   rgba(248, 250, 252, 0.07);

  --shadow-sm:   0 1px 2px rgba(2, 6, 16, 0.34), 0 2px 8px rgba(2, 6, 16, 0.26);
  --shadow-md:   0 2px 6px rgba(2, 6, 16, 0.36), 0 12px 32px rgba(2, 6, 16, 0.38);
  --shadow-lg:   0 4px 12px rgba(2, 6, 16, 0.38), 0 26px 64px rgba(2, 6, 16, 0.48);

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --nav-top: 14px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toutes les grilles utilisent minmax(min(Xpx, 100%), 1fr) : sans le
   min(), une piste de largeur minimale Xpx deborde des que le conteneur
   est plus etroit que X (constate a 300 px sur les cartes piliers). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.intro-on body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--sky-text); color: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   MATIÈRE
   ========================================================================== */
/* Sur fond sombre le grain se pose en overlay (en multiply il disparaît). */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  16% { transform: translate(-2%, 1%); }
  33% { transform: translate(1%, -2%); }
  50% { transform: translate(-1%, 2%); }
  66% { transform: translate(2%, 1%); }
  83% { transform: translate(-2%, -1%); }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  z-index: 150;
  background: var(--grad-brand);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.6);
  transition: width 0.12s linear;
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  overflow: hidden;
  /* Le fondu démarre pendant que l'écho finit de s'éteindre (~2,2 s),
     sinon on laisse un écran vide avant le site. */
  animation: loaderOut 0.7s var(--ease) 2.05s forwards;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.loader__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.loader__rings span {
  position: absolute;
  width: min(120vmin, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(2, 132, 199, 0.55);
  opacity: 0;
  animation: ringOut 2.2s cubic-bezier(0.16, 0.7, 0.3, 1) 0.35s;
}
.loader__rings span:nth-child(2) { animation-delay: 0.62s; }
.loader__rings span:nth-child(3) { animation-delay: 0.9s; }
.loader__rings span:nth-child(4) { animation-delay: 1.2s; }
@keyframes ringOut {
  0%   { transform: scale(0.04); opacity: 0; }
  12%  { opacity: 0.95; }
  100% { transform: scale(1); opacity: 0; }
}

.loader::before {
  content: "";
  position: absolute;
  width: min(90vmin, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.2), transparent 62%);
  animation: haloPulse 2.5s var(--ease);
}
@keyframes haloPulse {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

.loader__stack { position: relative; display: grid; place-items: center; }
.loader__word {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 30vw, 17rem);
  line-height: 1;
  letter-spacing: 0.04em;
  /* le letter-spacing ajoute une chasse après le dernier caractère :
     on la retire pour que le mot soit optiquement centré */
  margin-right: -0.04em;
  color: var(--beige);
  white-space: nowrap;
  animation: wordMain 2.5s var(--ease) both;
}
@keyframes wordMain {
  0%   { opacity: 0; transform: scale(0.9); filter: blur(18px); }
  20%  { opacity: 1; transform: scale(1);   filter: blur(0); }
  58%  { opacity: 1; transform: scale(1);   filter: blur(0); }
  100% { opacity: 0; transform: scale(1.28); filter: blur(7px); }
}

.loader__word--echo {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--coral);
  animation: wordEcho 2.5s var(--ease) both;
}
.loader__word--echo:nth-child(2) { animation-delay: 0.14s; opacity: 0.8; }
.loader__word--echo:nth-child(3) { animation-delay: 0.3s;  opacity: 0.45; }
@keyframes wordEcho {
  0%, 52% { opacity: 0; transform: scale(1); filter: blur(0); }
  62%     { opacity: 0.6; }
  100%    { opacity: 0; transform: scale(2.1); filter: blur(11px); }
}

.loader__tag {
  position: absolute;
  bottom: clamp(2rem, 8vh, 5rem);
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sky-text);
  animation: tagFade 2.5s var(--ease) both;
}
@keyframes tagFade {
  0%, 15% { opacity: 0; }
  35%, 55% { opacity: 1; }
  100% { opacity: 0; }
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
section { position: relative; }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); isolation: isolate; }

.section--tint { background: var(--bg-deep); }

/* Le seul bloc clair : beige, comme les cartes claires de la planche.
   Toutes les encres y sont inversées. */
.section--panel { background: var(--beige); color: var(--ink); }
.section--panel .h-sec, .section--panel h3 { color: var(--ink); }
.section--panel .lede { color: var(--ink-dim); }
.section--panel .eyebrow { color: var(--taupe); }

.section::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 48% at 10% 0%, rgba(2, 132, 199, 0.11), transparent 62%);
}
.section:nth-of-type(even)::before {
  background: radial-gradient(56% 44% at 90% 6%, rgba(255, 183, 77, 0.09), transparent 60%);
}
.section--panel::before { display: none; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
/* minmax(0, 1fr) et non 1fr : `1fr` vaut minmax(auto, 1fr) et refuse de
   passer sous la largeur du mot le plus long. Un compose allemand faisait
   alors deborder la grille, meme avec overflow-wrap. */
@media (max-width: 880px) { .split, .split--wide-left { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */
/* break-word et non anywhere : la coupure ne s'active que si le mot ne
   tient VRAIMENT pas, ce qui arrive avec les composes allemands. */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; text-wrap: balance;
  color: var(--text); overflow-wrap: break-word; }

.hero h1, .h-sec, .cta h2, .band__quote {
  line-height: 1.06;
  letter-spacing: -0.03em;
}
/* Le mot mis en valeur : corail plein, il passe à 5,4:1 sur le marine.
   Le fond est posé sur le texte (box-decoration-break) et non en
   pseudo-élément positionné, pour qu'il suive les passages à la ligne. */
.hero h1 em, .h-sec em, .cta h2 em { font-style: normal; color: var(--coral); }
.band__quote em { font-style: normal; color: var(--coral); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-text);
  margin-bottom: 1.5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }

.h-sec { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 18ch; }
.lede {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--text-soft);
  max-width: 54ch;
  margin-top: 1.4rem;
  text-wrap: pretty;
}

.mask { clip-path: inset(0 0 110% 0); transition: clip-path 1.05s var(--ease); }
.mask.is-in { clip-path: inset(0 0 -25% 0); }
@media (prefers-reduced-motion: reduce) { .mask { clip-path: none; } }

/* ==========================================================================
   HEADER — barre flottante, verre teinté marine
   ========================================================================== */
.site-header {
  position: fixed;
  top: var(--nav-top);
  left: 0; right: 0;
  z-index: 100;
  padding-inline: var(--gut);
}
/* .wrap est la pilule ; le gutter est porté par le header. */
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  padding-inline: 1.5rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-sm);
  transition: background 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft);
}
.site-header.is-stuck .wrap {
  background: rgba(15, 23, 42, 0.93);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
/* logo en currentColor : corail partout, beige dans le bloc clair */
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--coral); }
.brand:hover .ring-a { animation: pulseRing 1.6s var(--ease) infinite; }
.brand:hover .ring-b { animation: pulseRing 1.6s var(--ease) 0.18s infinite; }
@keyframes pulseRing { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.25; } }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.14em; color: var(--text); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav__links { display: flex; gap: 0.2rem; }
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 500;
  color: var(--text-soft);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface); }

.lang {
  display: flex; align-items: center; gap: 0.1rem;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600;
  background: rgba(10, 17, 32, 0.6);
  border-radius: var(--r-pill);
  padding: 0.25rem;
}
.lang a { color: var(--text-dim); padding: 0.3rem 0.62rem; border-radius: var(--r-pill); transition: color 0.25s, background 0.25s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--bg-deep); background: var(--sky-text); }

.nav-toggle { display: none; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s, color 0.3s, border-color 0.3s;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* corail plein, texte marine : 5,4:1 */
.btn--primary {
  /* fond clair du duo : #38BDF8 donne 8,2:1 avec le texte marine,
     alors que #0284C7 tomberait a 4,0:1. */
  background: var(--sky-text);
  color: var(--bg-deep);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28), 0 12px 32px rgba(2, 6, 16, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--sky);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.36), 0 16px 40px rgba(2, 6, 16, 0.34);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--sky); color: var(--sky-text); }

/* dans le bloc clair */
.section--panel .btn--ghost { background: transparent; border-color: rgba(15, 32, 56, 0.2); color: var(--ink); }
.section--panel .btn--ghost:hover { border-color: var(--coral); color: var(--taupe); }

/* ==========================================================================
   IMAGES — duotone corail / marine
   ========================================================================== */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-deep);
  isolation: isolate;
  box-shadow: var(--shadow-md);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
  transform: scale(1.03);
  transition: transform 1.6s var(--ease), filter 1s var(--ease);
}
.media::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(2, 132, 199, 0.9), rgba(15, 32, 56, 0.9));
  mix-blend-mode: color;
}
.media::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(10, 17, 32, 0.7), transparent 58%);
}
.media:hover img { transform: scale(1.07); filter: grayscale(0.4) contrast(1.05) brightness(0.95); }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }

.media__veil {
  position: absolute; inset: 0; z-index: 4;
  background: var(--bg);
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 1.25s var(--ease);
}
.reveal.is-in .media__veil { transform: scaleY(0); }

.media__cap {
  position: absolute; z-index: 5;
  left: 1.5rem; bottom: 1.3rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--beige);
  text-shadow: 0 1px 10px rgba(2, 6, 16, 0.7);
}
.media__cap::before {
  content: ""; display: block; width: 24px; height: 3px;
  background: var(--coral); border-radius: 3px; margin-bottom: 0.7rem;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding-block: 10rem 4rem;
  overflow: hidden;
  isolation: isolate;
}
/* La photo doit lire comme une lueur au bout du couloir : mesurée à +35
   points de luminance au-dessus du marine. Plus sombre, elle disparaît
   (écart de 3 points = invisible). Le titre reste à 8:1 malgré tout,
   parce que le voile ci-dessous masque la photo dans sa zone. */
.hero__bg { position: absolute; z-index: -3; inset: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.8) contrast(0.95);
  transform: scale(1.05);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(2, 132, 199, 0.85), rgba(15, 32, 56, 0.85));
  mix-blend-mode: color;
}
.hero::after {
  content: "";
  position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(52% 42% at 44% 36%, rgba(2, 132, 199, 0.16), transparent 70%),
    linear-gradient(100deg, var(--bg) 18%, rgba(15, 32, 56, 0.82) 55%, rgba(15, 32, 56, 0.45) 100%),
    linear-gradient(to bottom, rgba(15, 32, 56, 0.9) 0%, transparent 28%, var(--bg) 96%);
}

.echo { position: absolute; z-index: -2; top: 44%; left: 50%; width: min(180vw, 1500px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.echo span {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
  border-radius: 50%; border: 1.5px solid rgba(2, 132, 199, 0.32);
  opacity: 0; animation: echoOut 10s cubic-bezier(0.16, 0.6, 0.3, 1) infinite;
}
.echo span:nth-child(2) { animation-delay: 2s; }
.echo span:nth-child(3) { animation-delay: 4s; }
.echo span:nth-child(4) { animation-delay: 6s; }
.echo span:nth-child(5) { animation-delay: 8s; }
@keyframes echoOut {
  0%   { transform: scale(0.05); opacity: 0; }
  8%   { opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .echo span { opacity: 0.25; animation: none; }
  .echo span:nth-child(1) { transform: scale(0.3); }
  .echo span:nth-child(2) { transform: scale(0.5); }
  .echo span:nth-child(3) { transform: scale(0.7); }
  .echo span:nth-child(4) { transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6.8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero__sub {
  margin-top: 1.9rem;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  color: var(--text-soft);
  max-width: 42ch;
  padding-left: 1.3rem;
  border-left: 3px solid var(--coral);
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(158px, 100%), 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.stat {
  position: relative;
  padding: 1.4rem 1.3rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--coral); opacity: 0;
}
.stat:first-child::before { opacity: 1; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 700; letter-spacing: -0.04em;
  color: var(--coral);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.stat__lbl { margin-top: 0.7rem; font-size: 0.78rem; color: var(--text-dim); line-height: 1.45; text-wrap: pretty; }

/* ---------- Bandeau statut ---------- */
.status-bar { background: var(--bg-darkest); position: relative; z-index: 2; }
.status-bar .wrap { display: flex; align-items: flex-start; gap: 0.85rem; padding-block: 0.9rem; font-size: 0.84rem; color: var(--text-soft); }
.status-bar svg { flex-shrink: 0; margin-top: 3px; color: var(--amber); }
.status-bar strong { color: var(--amber); font-weight: 700; }
.status-bar a { color: var(--amber); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Têtes de section ---------- */
.sec-head { margin-bottom: clamp(2.75rem, 5.5vw, 4rem); }
.sec-head--split { display: grid; gap: 1.4rem 4.5rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; }
.sec-head--split .lede { margin-top: 0; padding-bottom: 0.4rem; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ==========================================================================
   BANDE
   ========================================================================== */
.band {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  text-align: center;
  border-radius: var(--r-lg);
  margin-inline: var(--gut);
  margin-block: clamp(1rem, 3vw, 2rem);
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.55) contrast(1.1);
  transform: scale(1.06);
}
.band__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(2, 132, 199, 0.9), rgba(15, 32, 56, 0.95));
  mix-blend-mode: color;
}
.band::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(55% 75% at 50% 50%, rgba(2, 132, 199, 0.22), transparent 68%),
    linear-gradient(to bottom, rgba(10, 17, 32, 0.82), rgba(10, 17, 32, 0.9));
}
.band__quote { font-size: clamp(1.75rem, 4.2vw, 3rem); max-width: 18ch; margin-inline: auto; color: var(--beige); }
.band__src {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--stone);
}

/* ==========================================================================
   CARTES
   ========================================================================== */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.card:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }

.card__idx {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky-text);
}
.card h3 { margin-top: 0.85rem; font-size: 1.08rem; }
.card p { margin-top: 0.65rem; color: var(--text-soft); font-size: 0.9rem; text-wrap: pretty; }
.card__icon { width: 32px; height: 32px; color: var(--coral); margin-bottom: 1.2rem; }

/* dans le bloc clair */
.section--panel .card { background: var(--white); box-shadow: inset 0 0 0 1px rgba(15, 32, 56,0.08), var(--shadow-sm); }
.section--panel .card p { color: var(--ink-dim); }
.section--panel .card__idx { color: var(--taupe); }

/* ==========================================================================
   PILIERS
   ========================================================================== */
.pillars { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.45), var(--shadow-lg); }

.pillar__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.pillar__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.72) contrast(1.05);
  transform: scale(1.04);
  transition: transform 1.5s var(--ease), filter 1s;
}
.pillar__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(2, 132, 199, 0.9), rgba(15, 32, 56, 0.9));
  mix-blend-mode: color;
}
.pillar__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(15, 32, 56, 0.95), transparent 62%);
}
.pillar:hover .pillar__media img { transform: scale(1.1); filter: grayscale(0.3) brightness(0.85) contrast(1.02); }

.pillar__n {
  position: absolute; z-index: 3; left: 1.6rem; bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 3.4rem; font-weight: 700; line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--coral);
  text-shadow: 0 2px 16px rgba(2, 6, 16, 0.7);
}
.pillar__body { padding: 1.5rem 1.7rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.pillar h3 { font-size: 1.18rem; }
.pillar p { margin-top: 0.7rem; color: var(--text-soft); font-size: 0.9rem; text-wrap: pretty; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1.5rem; }
.tag {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  color: var(--coral-soft); background: rgba(2, 132, 199, 0.14);
  border-radius: var(--r-pill); padding: 0.35rem 0.8rem;
  transition: background 0.3s, color 0.3s;
}
.tag:hover { background: rgba(2, 132, 199, 0.26); color: var(--beige); }

/* ==========================================================================
   LISTE DES DÉFAILLANCES
   ========================================================================== */
.fail-list { border-top: 1px solid var(--line); }
.fail {
  position: relative;
  display: grid; grid-template-columns: 3.2rem minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 0.6rem 2.25rem; align-items: baseline;
  padding: 1.5rem 1rem; margin-inline: -1rem;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: background 0.4s var(--ease);
}
.fail:hover { background: var(--surface); }
.fail__n { font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; color: var(--sky-text); letter-spacing: 0.14em; }
.fail__t { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.fail__d { color: var(--text-soft); font-size: 0.9rem; text-wrap: pretty; }
@media (max-width: 800px) {
  .fail { grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.4rem 1rem; }
  .fail__d { grid-column: 2; }
}

/* ==========================================================================
   CHAÎNE DE POSSESSION
   ========================================================================== */
.chain { position: relative; padding-left: 2.75rem; }
.chain::before {
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--coral), rgba(2, 132, 199, 0.1));
}
.chain__step { position: relative; padding-bottom: 2rem; }
.chain__step:last-child { padding-bottom: 0; }
.chain__step::before {
  content: ""; position: absolute; left: -2.75rem; top: 0.5rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--coral), 0 0 18px rgba(2, 132, 199, 0.5);
}
.chain__step h3 { font-size: 1.02rem; }
.chain__step p { margin-top: 0.4rem; color: var(--text-soft); font-size: 0.89rem; max-width: 50ch; text-wrap: pretty; }

/* ==========================================================================
   TABLEAU — dans le bloc clair
   ========================================================================== */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(15, 32, 56, 0.08), var(--shadow-sm);
}
.cmp { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 0.89rem; }
.cmp th, .cmp td { text-align: left; padding: 1.25rem 1.4rem; border-bottom: 1px solid rgba(15, 32, 56, 0.08); vertical-align: top; }
.cmp thead th {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim);
  padding-block: 1rem; border-bottom-color: rgba(15, 32, 56, 0.16);
}
.cmp tbody th { font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; color: var(--ink); width: 24%; }
.cmp .col-old { color: var(--ink-dim); width: 38%; }
.cmp .col-new { color: var(--ink); width: 38%; background: rgba(2, 132, 199, 0.09); }
.cmp thead .col-new { color: var(--navy); background: rgba(2, 132, 199, 0.09); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   CHIFFRE EN VEDETTE
   ========================================================================== */
.figure {
  padding: clamp(2rem, 4.5vw, 3rem);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(2, 132, 199, 0.12), var(--surface) 60%);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.figure__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
  color: var(--coral); font-variant-numeric: tabular-nums;
}
.figure p { color: var(--text-soft); margin-top: 1.1rem; text-wrap: pretty; }
.figure strong { color: var(--text); font-weight: 700; }
.figure__src {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 1.2rem;
}

/* ==========================================================================
   CONSORTIUM
   ========================================================================== */
.partners { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.partner {
  position: relative;
  padding: 1.6rem;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.partner:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.45), var(--shadow-md); }
.partner__role { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-text); }
.partner h3 { margin-top: 0.8rem; font-size: 1rem; }
.partner p { margin-top: 0.45rem; color: var(--text-dim); font-size: 0.85rem; }

/* ==========================================================================
   ROADMAP
   ========================================================================== */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1.1rem; }
.milestone {
  position: relative;
  padding: 1.9rem 1.6rem;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
}
.milestone::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; background: var(--coral);
}
.milestone__year {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.milestone__t {
  margin-top: 0.7rem; font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sky-text);
}
.milestone p { margin-top: 0.55rem; color: var(--text-soft); font-size: 0.86rem; text-wrap: pretty; }

/* ==========================================================================
   CTA — bloc beige, l'inverse du reste
   ========================================================================== */
.cta {
  position: relative; text-align: center;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  overflow: hidden; isolation: isolate;
  background: var(--beige);
  color: var(--ink);
}
.cta::before {
  content: ""; position: absolute; z-index: -1;
  inset: auto 50% -65% auto; transform: translateX(50%);
  width: min(140vw, 1100px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.3), transparent 62%);
}
.cta .eyebrow { color: var(--taupe); }
.cta h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 16ch; margin-inline: auto; color: var(--ink); }
.cta h2 em { color: var(--taupe); }
.cta .lede { margin-inline: auto; color: var(--ink-dim); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2.6rem; }
.cta .btn--primary { background: var(--navy); color: var(--beige); box-shadow: 0 8px 30px rgba(15, 32, 56, 0.28); }
.cta .btn--primary:hover { background: var(--slate); box-shadow: 0 10px 34px rgba(15, 32, 56, 0.34); }
.cta .btn--ghost { background: transparent; border-color: rgba(15, 32, 56, 0.22); color: var(--ink); }
.cta .btn--ghost:hover { border-color: var(--navy); color: var(--taupe); }
.cta__who { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2.8rem; }
.cta__who .tag { background: rgba(15, 32, 56, 0.08); color: var(--taupe); }
.cta__who .tag:hover { background: rgba(2, 132, 199, 0.24); color: var(--navy); }

/* ==========================================================================
   URGENCES — seul emploi de l'ambre
   ========================================================================== */
.emergency { background: var(--bg-darkest); padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.emergency__label {
  display: block;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 1.4rem;
}

/* Le 142 est le numero vital : il doit se voir avant tous les autres. */
.emergency__hero {
  display: block;
  position: relative;
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22), rgba(56, 189, 248, 0.09));
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.emergency__hero:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--sky-text), var(--shadow-md); }
.emergency__badge {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg-deep); background: var(--sky-text);
  border-radius: var(--r-pill); padding: 0.25rem 0.7rem;
}
.emergency__hero-num {
  display: block;
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: var(--sky-text); font-variant-numeric: tabular-nums;
  margin-top: 0.7rem;
}
.emergency__hero-txt { display: block; margin-top: 0.5rem; font-size: 0.95rem; color: var(--text); }

.emergency__nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 0.5rem; margin-top: 1rem;
}
.emergency__nums a {
  display: block; padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  font-size: 0.87rem; color: var(--text-soft);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.emergency__nums a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--sky); transform: translateY(-2px); }
.emergency__nums b {
  font-family: var(--font-display); color: var(--sky-text); font-weight: 700;
  font-variant-numeric: tabular-nums; margin-right: 0.55rem; font-size: 1.02rem;
}
.emergency__note {
  margin-top: 1.4rem; font-size: 0.8rem; color: var(--text-dim);
  max-width: 78ch; text-wrap: pretty;
}

/* ---------- Repartition des roles : deux colonnes qui s'empilent ----------
   Remplace le tableau : sur mobile, le contenu d'un tableau a 3 colonnes
   passait hors ecran et devenait invisible. */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.role {
  position: relative;
  padding: 1.9rem 1.75rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), var(--shadow-sm);
}
.role::before {
  content: ""; position: absolute; top: 0; left: 1.75rem; right: 1.75rem; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--sky);
}
.role--partner::before { background: var(--slate-400); }
.role__who {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-deep);
  margin-bottom: 1.2rem;
}
.role--partner .role__who { color: var(--ink-dim); }
.role__list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.role__list li {
  position: relative; padding-left: 1.2rem;
  font-size: 0.9rem; color: var(--ink-soft); text-wrap: pretty;
}
.role__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sky);
}
.role--partner .role__list li::before { background: var(--slate-400); }
.role__list b { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- Phrase d'accroche du CTA ---------- */
.cta__punch {
  margin: 2.6rem auto 0;
  max-width: 56ch;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500; line-height: 1.45;
  color: var(--ink-soft); text-wrap: pretty;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-darkest); color: var(--text); padding-block: clamp(3rem, 6vw, 4.25rem) 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.25rem 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer__about { color: var(--text-dim); font-size: 0.86rem; max-width: 38ch; margin-top: 1.1rem; text-wrap: pretty; }
.footer h4 { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-text); margin-bottom: 1.1rem; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer__list a { font-size: 0.86rem; color: var(--text-soft); transition: color 0.25s, padding-left 0.3s var(--ease); }
.footer__list a:hover { color: var(--sky-text); padding-left: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.9rem; font-family: var(--font-display); font-size: 0.74rem; color: var(--text-dim); }
/* Les colonnes `1fr` ne peuvent pas devenir plus etroites que leur
   contenu minimum : l'adresse e-mail (142 px, insecable) et les mots
   composes allemands faisaient deborder la grille sous 375 px.
   D'ou la colonne unique en dessous, plus la coupure de securite. */
.footer__list a, .footer__about { overflow-wrap: anywhere; }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brandcol { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Quitter vite ---------- */
.quick-exit {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  padding: 0.75rem 1.2rem; border-radius: var(--r-pill);
  background: rgba(10, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
  color: var(--text-soft);
  transition: color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.quick-exit:hover { color: var(--sky-text); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--sky), var(--shadow-lg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   NAV MOBILE
   ========================================================================== */
@media (max-width: 940px) {
  .site-header .wrap { padding-inline: 1.1rem 0.6rem; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; margin-left: auto; width: 42px; height: 42px;
    border-radius: var(--r-pill); background: var(--surface);
  }
  .nav-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* .nav est un enfant de .wrap, qui porte un backdrop-filter : .wrap est
     donc le bloc conteneur de ce position:fixed, pas la fenêtre. On cale
     en pourcentage de la pilule — le panneau s'aligne pile dessous. */
  .nav {
    position: fixed;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(18px);
    border-radius: var(--r-lg);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0.15rem; }
  .nav__links a { font-size: 0.95rem; padding: 0.85rem 1rem; border-radius: var(--r-sm); }
  .lang { align-self: flex-start; margin: 1rem 0 0.25rem 1rem; }
}

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; justify-content: center; }
  .quick-exit { right: 0.8rem; bottom: 0.8rem; }
  .hero__sub { padding-left: 1rem; }
  .band { margin-inline: 0; border-radius: 0; }
}
