/* ==========================================================================
   Gateway Data Hub · Digital Swivel — feuille de styles du site
   Direction : minimal, épuré, technologique. Un motif : le point et le fil
   (points du globe, nœuds, filets). Sombre par défaut, clair en option.
   Palette client : #071C2D · #16374A · #228B4A · #F6F9F9 · #142F43 · #566877
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  /* couleur (thème sombre) */
  --bg: #04121d;
  --bg-alt: #061826;
  --bg-deep: #030d16;
  --surface: #0a1f2e;
  --surface-2: #0e2738;
  --line: rgba(160, 200, 215, 0.13);
  --line-strong: rgba(160, 200, 215, 0.26);
  --text: #eaf1f4;
  --text-2: #b8c9d2;
  --muted: #8399a5;
  --accent: #51bb71;
  --accent-text: #8cda9b;
  --tint: rgba(81, 187, 113, 0.1);

  --green: #228b4a;
  --green-strong: #0f8448;
  --bright: #51bb71;
  --navy: #071c2d;

  /* typographie : tailles en rem (suivent le réglage de l'utilisateur), interlettrage propre à chaque taille */
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --t-hero: clamp(2.25rem, 3.6vw + 0.7rem, 4rem);
  --t-h2: clamp(1.625rem, 1.9vw + 0.75rem, 2.5rem);
  --t-lead: clamp(1.25rem, 1vw + 0.85rem, 1.75rem);
  --t-h3: 1.125rem;
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* espace */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 136px);
  --radius: 14px;
  --radius-sm: 10px;

  /* mouvement */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --fast: 160ms;
  --base: 240ms;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f9f9;
  --surface: #f3f7f7;
  --surface-2: #ffffff;
  --line: #dfe7e9;
  --line-strong: #c3d1d6;
  --text: #0c2536;
  --text-2: #33505f;
  --muted: #5a6d7a;
  --accent: #228b4a;
  --accent-text: #1b7e46;
  --tint: #edf5f0;
  color-scheme: light;
}
/* Zones toujours sombres, quel que soit le thème */
:root[data-theme="light"] .hero,
:root[data-theme="light"] .is-deep,
:root[data-theme="light"] .footer {
  --bg: #04121d; --surface: #0a1f2e; --surface-2: #0e2738;
  --line: rgba(160, 200, 215, 0.13); --line-strong: rgba(160, 200, 215, 0.26);
  --text: #eaf1f4; --text-2: #b8c9d2; --muted: #8399a5;
  --accent: #51bb71; --accent-text: #8cda9b; --tint: rgba(81, 187, 113, 0.1);
}
/* Changement de thème adouci (évite le saut de luminosité) */
:root.theme-anim, :root.theme-anim *, :root.theme-anim *::before, :root.theme-anim *::after {
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease !important;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-body) / 1.6 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h2 { max-width: 22ch; font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.028em; }
h3 { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.012em; }
p { text-wrap: pretty; }
.accent { color: var(--accent); }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: #fff; }
.shell { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: var(--green-strong); color: #fff; font-weight: 600; }
.skip-link:focus { top: 10px; }

/* Indice chiffré : seul usage du monospace avec les unités et les coordonnées */
.idx { color: var(--accent-text); font: 500 var(--t-micro) var(--mono); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tag { color: var(--accent-text); font-size: var(--t-small); font-weight: 500; }
.fine { color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.intro { max-width: 56ch; margin-top: 20px; color: var(--muted); font-size: 1.0625rem; }

/* ==========================================================================
   En-tête flottant — une matière translucide, le contenu défile dessous
   ========================================================================== */
.topbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1248px, 100% - 24px);
  height: 52px;
  margin-inline: auto;
  padding: 0 8px 0 20px;
  border: 1px solid rgba(160, 200, 215, 0.14);
  border-top-color: rgba(200, 225, 235, 0.22); /* arête haute : la lumière accroche la matière */
  border-radius: 999px;
  background: rgba(4, 18, 29, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
  transition: background-color var(--base) ease;
}
.topbar.is-scrolled { background: rgba(4, 18, 29, 0.84); }
.js .topbar { animation: drop 700ms var(--ease-out) 80ms both; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
.brand { flex-shrink: 0; }
.brand img { width: clamp(140px, 13vw, 176px); }

.nav { position: relative; display: flex; align-items: center; }
.nav a {
  position: relative;
  z-index: 1;
  padding: 8px 13px;
  border-radius: 999px;
  color: #a9bdc7;
  font-size: var(--t-small);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--fast) ease;
}
.nav a[aria-current="true"] { color: #fff; }
.nav .nav-contact { display: none; }
.nav-ink {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 32px;
  margin-top: -16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: transform var(--base) var(--ease-out), width var(--base) var(--ease-out), opacity var(--fast) ease;
}

.tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lang { display: inline-flex; padding: 3px; border: 1px solid rgba(203, 219, 226, 0.2); border-radius: 999px; }
.lang a {
  display: grid; place-items: center; min-width: 32px; height: 28px; padding: 0 8px; border-radius: 999px;
  color: #a9bdc7; font: 500 0.6875rem var(--mono); letter-spacing: 0.06em;
  transition: background-color var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease-out);
}
.lang a[aria-current="true"] { background: #fff; color: var(--navy); }
.theme {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(203, 219, 226, 0.2); border-radius: 50%; background: transparent; color: #d8e5ec; cursor: pointer;
  transition: border-color var(--fast) ease, transform var(--fast) var(--ease-out);
}
.theme svg { width: 17px; height: 17px; }
.theme .i-moon { display: none; }
:root[data-theme="light"] .theme .i-moon { display: block; }
:root[data-theme="light"] .theme .i-sun { display: none; }
html:not(.js) .theme { display: none; }
.cta {
  display: inline-flex; align-items: center; height: 36px; margin-left: 2px; padding: 0 16px; border-radius: 999px;
  background: var(--green-strong); color: #fff; font-size: var(--t-small); font-weight: 600;
  transition: background-color var(--fast) ease, transform var(--fast) var(--ease-out);
}
.burger { display: none; position: relative; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(203, 219, 226, 0.2); border-radius: 50%; background: transparent; cursor: pointer; transition: transform var(--fast) var(--ease-out); }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform var(--base) var(--ease-out); }
.burger i:first-child { top: 13px; }
.burger i:last-child { bottom: 13px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
/* le retour est donné à l'appui, pas au relâchement */
.lang a:active, .theme:active, .cta:active, .burger:active { transform: scale(0.95); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, transform var(--fast) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--base) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn.is-primary { background: var(--green-strong); color: #fff; }
.btn.is-ghost { border-color: rgba(203, 219, 226, 0.32); color: #fff; background: rgba(4, 18, 29, 0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: #fff; }
  .lang a:not([aria-current="true"]):hover { color: #fff; }
  .theme:hover { border-color: rgba(255, 255, 255, 0.7); }
  .cta:hover, .btn.is-primary:hover { background: var(--green); }
  .btn.is-ghost:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
  .btn.is-primary:hover svg { transform: translateY(2px); }
  .btn.is-ghost:hover svg { transform: translateX(2px); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto;
  min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bg); color: #fff;
}
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-stage::after {
  /* voile de lisibilité côté texte + fondu bas */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, #04121d 0%, rgba(4, 18, 29, 0) 24%),
    radial-gradient(80% 100% at 0% 45%, rgba(4, 18, 29, 0.9) 0%, rgba(4, 18, 29, 0) 60%);
}
.hero-halo {
  position: absolute; left: 78%; top: 62%; width: min(120vh, 110vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 139, 74, 0.16), rgba(22, 55, 74, 0.22) 55%, transparent 72%);
  transform: translate(-50%, -50%);
}
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe.is-dragging { cursor: grabbing; }
.hero-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: 0.9; }
.js .hero-fallback { display: none; }
.js.no-globe .hero-fallback { display: block; }
.js.no-globe #globe, .js.no-globe .hud-drag { display: none; }

.hero-inner { align-self: center; padding-top: 104px; padding-bottom: 40px; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--text-2); font-size: var(--t-small); font-weight: 500; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bright); }
.hero h1 { font-size: var(--t-hero); line-height: 1.05; letter-spacing: -0.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero h1 .line > span { display: block; }
.hero h1 .is-accent { color: var(--bright); }
.hero-lead { max-width: 46ch; margin-top: 24px; color: var(--text-2); font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1875rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; }
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--muted); font-size: 0.8125rem; }
.hud-status { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.hud-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bright); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(81, 187, 113, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(81, 187, 113, 0); } }
.hud-coords { font: 500 var(--t-micro) var(--mono); letter-spacing: 0.04em; }
.hud-drag { display: inline-flex; align-items: center; gap: 8px; transition: opacity 400ms ease; }
.hud-drag::before { content: ""; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.7; }
.has-dragged .hud-drag { opacity: 0; }
html:not(.js) .hud-drag { display: none; }
.hero-caption { max-width: 44ch; color: var(--muted); font-size: var(--t-micro); line-height: 1.55; text-align: right; }
.hero-caption .credit { color: var(--text-2); white-space: nowrap; }
.js [data-hero] { visibility: hidden; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); background: var(--bg); color: var(--text); }
.section.is-alt { background: var(--bg-alt); }
.section.is-deep { background: var(--bg-deep); }
.section.is-deep::before {
  /* trame de points, écho du globe */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(160, 200, 215, 0.22) 1px, transparent 1.5px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(70% 80% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(70% 80% at 100% 0%, #000 0%, transparent 70%);
}
.section > * { position: relative; }

.grid { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 9.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rail { position: sticky; top: 96px; display: flex; align-items: baseline; gap: 12px; padding-top: 0.55em; color: var(--muted); font-size: var(--t-small); font-weight: 500; line-height: 1.4; }
.rail-num { color: var(--accent-text); font: 500 var(--t-micro) var(--mono); letter-spacing: 0.04em; }

.statement { max-width: 38ch; margin-top: 28px; color: var(--text); font: 500 var(--t-lead) / 1.36 var(--display); letter-spacing: -0.018em; }
.statement .w { display: inline-block; white-space: pre; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 3vw, 48px); margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.duo p { color: var(--text-2); }
.note { padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted) !important; font-size: var(--t-small); line-height: 1.6; }

/* ---------- 02 Piliers : quatre colonnes séparées par des filets, tout est lisible sans survol ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.pillar { position: relative; padding: 24px 24px 4px 0; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line); }
.pillar::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out);
}
.pillar-top { display: flex; align-items: center; justify-content: space-between; }
.pillar-icon { color: var(--text-2); transition: color var(--fast) ease; }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-top: 40px; font-size: 1.25rem; letter-spacing: -0.018em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover::before { transform: scaleX(1); }
  .pillar:hover .pillar-icon { color: var(--accent); }
}

/* ---------- 03 Programme : un seul chiffre domine ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.tile { display: flex; flex-direction: column; min-height: 168px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.tile-a { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.tile-b { grid-column: 7 / span 3; grid-row: 1; }
.tile-d { grid-column: 10 / span 3; grid-row: 1; }
.tile-c { grid-column: 7 / span 6; grid-row: 2; }
.tile-label { max-width: 26ch; color: var(--text-2); font-size: var(--t-small); line-height: 1.45; }
.tile-fig { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 20px; font: 600 clamp(2rem, 2.2vw + 1rem, 3.25rem) / 1 var(--display); }
.tile-fig b { font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tile-fig.is-lead { margin-top: 28px; padding-top: 0; }
.tile-fig.is-lead { font-size: clamp(3rem, 4.4vw + 1rem, 5.5rem); }
.tile-fig.is-lead b { letter-spacing: -0.05em; }
.tile-fig i { color: var(--muted); font-size: 0.62em; font-style: normal; font-weight: 500; }
.tile-fig small { color: var(--accent-text); font: 500 var(--t-small) var(--mono); letter-spacing: 0.02em; }
.tile-b .tile-fig { margin-top: 16px; padding-top: 0; }
.tile-fig.is-text { font-size: clamp(1.75rem, 1.4vw + 1rem, 2.5rem); white-space: nowrap; }
.tile-fig.is-text b { letter-spacing: -0.03em; }
.gauge { margin-top: auto; padding-top: 32px; }
.gauge-bar { display: flex; height: 6px; border-radius: 999px; background: rgba(160, 200, 215, 0.1); overflow: hidden; }
.gauge-fill { width: 50%; border-radius: 999px; background: var(--bright); transform-origin: left; }
.gauge-ext { flex: 1; background: radial-gradient(circle, rgba(81, 187, 113, 0.55) 1px, transparent 1.4px) 2px 50% / 6px 6px; }
.gauge-legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font: 500 var(--t-micro) var(--mono); letter-spacing: 0.02em; }
.gauge-legend span:first-child { color: var(--accent-text); }
.racks { display: grid; grid-template-columns: repeat(14, 6px); justify-content: space-between; gap: 7px 0; margin-top: auto; padding-top: 20px; }
.racks i { width: 6px; height: 6px; border-radius: 50%; background: var(--bright); }
.program-note { max-width: 62ch; margin-top: 32px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--text-2); line-height: 1.6; }

/* ---------- 04 Territoire ---------- */
.criteria { margin-top: 48px; border-top: 1px solid var(--line); }
.criteria li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.criteria li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.criteria p { color: var(--muted); font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) { .criteria li:hover::after { transform: scaleX(1); } }

/* ---------- 05 Équipe : pas de cadre, la photo fait la carte ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; margin-top: 48px; }
.team.is-partner { margin-top: 32px; }
.person-photo { aspect-ratio: 10 / 9; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: #16374a; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transition: transform 600ms var(--ease-out); }
.person-photo img.is-wide { object-position: 50% 50%; }
.person .role { display: block; margin-top: 2px; color: var(--accent-text); font-size: var(--t-small); font-weight: 500; line-height: 1.45; }
.person p { margin-top: 8px; color: var(--muted); font-size: var(--t-small); }
@media (hover: hover) and (pointer: fine) { .person:hover .person-photo img { transform: scale(1.03); } }
.partner { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 18px 0; border-block: 1px solid var(--line); }
.partner-icon { flex-shrink: 0; color: var(--accent-text); }
.partner-icon svg { width: 24px; height: 24px; }
.partner b { display: block; font: 600 var(--t-body) var(--display); letter-spacing: -0.012em; }
.partner div span { display: block; color: var(--muted); font-size: var(--t-small); }

/* ---------- 06 Avancement ---------- */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 56px; padding-top: 40px; }
.roadmap-line { position: absolute; inset: 5px 0 auto 0; height: 1px; background: radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px) 0 50% / 8px 3px repeat-x; }
.roadmap-line i { display: block; height: 100%; background: var(--accent); transform: scaleX(0.34); transform-origin: left; }
.step { position: relative; }
.step-dot { position: absolute; top: -40px; left: 0; width: 11px; height: 11px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); }
.step.is-done .step-dot { border-color: var(--accent); background: var(--accent); }
.step.is-done .step-dot::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); border-radius: 50%; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }
.step em { display: block; margin-bottom: 8px; color: var(--accent-text); font: 500 var(--t-micro) var(--mono); font-style: normal; letter-spacing: 0.02em; }
.step h3 { font-size: 1.25rem; letter-spacing: -0.018em; }
.roadmap + .duo { margin-top: 40px; }

/* ---------- 07 Publications & actualités ---------- */
.pubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 48px; border-top: 1px solid var(--line); }
.pub { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-cover { border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #fff; transition: transform var(--base) var(--ease-out); }
.pub-cover img { width: 100%; height: auto; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.pub-meta span { color: var(--accent-text); font-weight: 500; }
.pub h3 { margin-top: 8px; }
.pub-summary { margin-top: 8px; color: var(--muted); font-size: var(--t-small); line-height: 1.55; }
.pub-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.pub-link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: var(--t-small); font-weight: 600;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}
.pub-link::after { content: ""; position: absolute; inset: 0; } /* toute la carte ouvre la publication */
.pub-link svg { width: 14px; height: 14px; transition: transform var(--base) var(--ease-out); }
.pub-file { color: var(--muted); font: 500 var(--t-micro) var(--mono); letter-spacing: 0.02em; }
.pub:active .pub-cover { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .pub:hover .pub-cover { transform: translateY(-3px); }
  .pub:hover .pub-link { background: var(--green-strong); border-color: var(--green-strong); color: #fff; }
  .pub:hover .pub-link svg { transform: translate(2px, -2px); }
}

/* ---------- 08 Contact ---------- */
.contact-cols { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact .intro { color: var(--text-2); }
.hint { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); font-size: var(--t-small); }
.people { display: grid; gap: 10px; }
.contact-person { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid transparent; border-radius: var(--radius); background: var(--surface); transition: border-color var(--fast) ease, background-color var(--fast) ease, transform var(--fast) var(--ease-out); }
.contact-person:active { transform: scale(0.985); }
.contact-person img { flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; object-position: 50% 14%; }
.contact-person img.is-wide { object-position: 50% 50%; }
.contact-person > span { display: flex; flex-direction: column; min-width: 0; }
.contact-person em { color: var(--accent-text); font-size: 0.8125rem; font-style: normal; font-weight: 500; }
.contact-person strong { font: 600 1.0625rem / 1.3 var(--display); letter-spacing: -0.012em; }
.contact-person > svg { flex-shrink: 0; width: 18px; height: 18px; margin-left: auto; color: var(--muted); transition: transform var(--base) var(--ease-out), color var(--fast) ease; }
@media (hover: hover) and (pointer: fine) {
  .contact-person:hover { border-color: var(--line-strong); background: var(--surface-2); }
  .contact-person:hover > svg { color: var(--accent-text); transform: translate(2px, -2px); }
}

/* ==========================================================================
   Pages légales et page introuvable
   ========================================================================== */
.legal { min-height: 72vh; padding: clamp(120px, 14vw, 176px) 0 var(--section-y); }
.legal-inner > * { max-width: 760px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--muted); font-size: var(--t-small); font-weight: 500; transition: color var(--fast) ease; }
.back-link svg { width: 14px; height: 14px; }
.legal h1 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.legal .idx { display: block; margin-bottom: 12px; font-size: var(--t-small); }
.legal-updated { margin-top: 16px; color: var(--muted); font-size: var(--t-small); }
.legal h2 { max-width: none; margin-top: 56px; font-size: 1.375rem; letter-spacing: -0.02em; }
.legal h2 + p { margin-top: 16px; }
.legal-inner > p + p { margin-top: 12px; }
.legal-inner > h2 ~ p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.65; }
.legal-inner > h2 ~ p strong { color: var(--text); font-weight: 600; }
.legal a[href^="mailto:"] { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-list { margin: 16px 0 0; border-top: 1px solid var(--line); }
.legal-list div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.legal-list dd { margin: 0; color: var(--muted); }
.legal-action { margin-top: 32px; }
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--text); } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { padding: 64px 0 0; border-top: 1px solid var(--line); background: #020a11; color: #a9bdc7; font-size: var(--t-small); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 40px clamp(24px, 4vw, 64px); }
.footer-brand img { width: 196px; }
.footer-brand p { margin-top: 20px; }
.footer-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--text-2); font-size: 0.8125rem; }
.footer-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bright); }
.footer h2 { max-width: none; margin-bottom: 16px; color: var(--muted); font: 500 0.8125rem / 1.4 var(--body); letter-spacing: 0; }
.footer li + li { margin-top: 10px; }
.footer-grid a { color: #dce8ed; transition: color var(--fast) ease; }
.footer-site-col { display: flex; align-items: flex-start; justify-content: flex-end; }
.footer-site { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text) !important; font-weight: 500; }
.footer-site svg, .footer-top svg { width: 14px; height: 14px; }
.footer-credit { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 16px 0 28px; color: var(--muted); font-size: 0.8125rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { transition: color var(--fast) ease; }
.footer-top { display: inline-flex; align-items: center; gap: 6px; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover, .footer-bottom a:hover { color: #fff; } }

/* ==========================================================================
   Adaptations
   ========================================================================== */
@media (max-width: 1180px) {
  .burger { display: block; }
  .cta { display: none; }
  .nav {
    position: fixed; top: 0; left: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: center;
    width: 100vw; height: 100vh; height: 100dvh; margin: -12px 0 0 calc(50% - 50vw); padding: 96px var(--gutter) 40px;
    background: #030d16; visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 0s 200ms;
  }
  .topbar.is-open .nav { visibility: visible; opacity: 1; margin: 0; transition: opacity 260ms ease; }
  .topbar.is-open { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(160, 200, 215, 0.13); border-radius: 0; color: #fff; font: 600 1.375rem var(--display); letter-spacing: -0.02em; }
  .nav .nav-contact { display: block; margin-top: 24px; padding: 14px 0; border: 0; border-radius: 999px; background: var(--green-strong); font: 600 var(--t-body) var(--body); letter-spacing: 0; text-align: center; }
  .nav-ink { display: none; }
  html:not(.js) .nav { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-site-col { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 1000px) {
  /* hero empilé : le texte en haut, le globe et ses quatre liaisons dans la bande du dessous */
  .hero { min-height: max(100svh, 56.25rem); }
  .hero-inner { align-self: start; padding-top: 128px; padding-bottom: 0; }
  .hero-halo { left: 50%; top: 72%; width: 150vw; }
  .hero-stage::after { background: linear-gradient(to top, #04121d 0%, rgba(4, 18, 29, 0) 12%), linear-gradient(to bottom, rgba(4, 18, 29, 0.9) 0%, rgba(4, 18, 29, 0.6) 34%, rgba(4, 18, 29, 0) 52%); }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .rail { position: static; padding-top: 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .contact-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pubs { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .topbar { top: 8px; height: 50px; padding: 0 7px 0 16px; }
  .brand img { width: 138px; }
  /* un peu plus haut que l'écran : le globe garde la place de montrer ses quatre liaisons sous le texte */
  .hero { min-height: max(100svh, 56.25rem); }
  .hero-halo { left: 50%; top: 76%; width: 150vw; }
  .hero-stage::after { background: linear-gradient(to top, #04121d 0%, rgba(4, 18, 29, 0) 12%), linear-gradient(to bottom, rgba(4, 18, 29, 0.9) 0%, rgba(4, 18, 29, 0.6) 40%, rgba(4, 18, 29, 0) 60%); }
  .hero-inner { align-self: start; padding-top: 96px; padding-bottom: 0; }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 18px; }
  .hud-coords, .hud-drag { display: none; }
  .hero-caption { text-align: left; }
  .statement { margin-top: 20px; }
  .duo { grid-template-columns: 1fr; margin-top: 32px; padding-top: 24px; }
  .pillars { grid-template-columns: 1fr; margin-top: 40px; }
  .pillar, .pillar + .pillar { margin-top: 0; padding: 20px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .pillar h3 { margin-top: 20px; }
  .bento { margin-top: 32px; }
  .tile { min-height: 0; padding: 20px; }
  .bento .tile-a, .bento .tile-b, .bento .tile-c, .bento .tile-d { grid-column: 1 / -1; grid-row: auto; }
  .criteria { margin-top: 32px; }
  .criteria li { grid-template-columns: 32px minmax(0, 1fr); }
  .criteria p { grid-column: 2; }
  .team { grid-template-columns: 1fr; margin-top: 32px; }
  .roadmap { grid-template-columns: 1fr; gap: 32px 0; margin-top: 40px; padding: 0 0 0 32px; }
  .roadmap-line { inset: 6px auto 6px 5px; width: 1px; height: auto; background: radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px) 50% 0 / 3px 8px repeat-y; }
  .roadmap-line i { width: 100%; transform: scaleY(0.2); transform-origin: top; }
  .step-dot { top: 4px; left: -32px; }
  .pubs { margin-top: 32px; }
  .pub { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .legal-list div { grid-template-columns: 1fr; gap: 2px; }
  .contact-person img { width: 52px; height: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand, .footer-site-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 701px) and (max-height: 760px) {
  .hero-inner { padding-top: 88px; padding-bottom: 16px; }
}

/* ---------- Préférences d'accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* moins de mouvement, pas zéro retour : les fondus de couleur et d'opacité restent */
  *, *::before, *::after { animation: none !important; }
  .btn, .cta, .theme, .burger, .lang a, .doc, .contact-person, .person-photo img, .btn svg, .contact-person > svg { transition-property: background-color, border-color, color, filter, opacity !important; }
  .btn:active, .cta:active, .theme:active, .burger:active, .lang a:active, .doc:active, .contact-person:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .topbar.is-scrolled { background: #04121d; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn.is-ghost { background: #04121d; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(200, 225, 235, 0.4); --line-strong: rgba(200, 225, 235, 0.65); --muted: #b8c9d2; }
  :root[data-theme="light"] { --line: #7d909a; --line-strong: #4c5f6a; --muted: #33505f; }
  .topbar { background: #04121d; border-color: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print {
  @page { margin: 14mm 14mm 16mm; }
  /* palette claire imposée, quel que soit le thème affiché */
  :root, :root[data-theme], .hero, .is-deep, .footer {
    --bg: #fff !important; --bg-alt: #fff !important; --bg-deep: #fff !important; --surface: #fff !important; --surface-2: #fff !important;
    --line: #cfd9dc !important; --line-strong: #aebdc3 !important; --text: #0c2536 !important; --text-2: #33505f !important; --muted: #5a6d7a !important;
    --accent: #228b4a !important; --accent-text: #1b7e46 !important; --bright: #228b4a !important; --tint: #edf5f0 !important;
  }
  /* sans cela, les marges de la page héritent du fond sombre du thème */
  :root, :root[data-theme] { color-scheme: light !important; }
  html, body { width: auto !important; min-width: 0 !important; overflow: visible !important; background: #fff !important; color: #0c2536 !important; font-size: 10.5pt; }
  /* tout ce qui déborde ou n'a pas de sens sur papier est retiré : c'est ce débordement qui rétrécissait la page */
  .topbar, .skip-link, .hero-stage, .hero-actions, .hud-coords, .hud-drag, .footer-top, .section.is-deep::before { display: none !important; }
  .shell { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .hero { display: block !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; color: #0c2536 !important; }
  .hero-inner { padding: 0 0 10pt !important; }
  .hero h1 .is-accent { color: #228b4a !important; }
  .hero-lead, .eyebrow, .hud-status { color: #33505f !important; }
  .hero-foot { display: block !important; padding: 0 0 12pt !important; }
  .hero-caption { max-width: none !important; margin-top: 6pt; text-align: left !important; }
  .section { padding-block: 16pt !important; background: #fff !important; border-top: 1px solid #cfd9dc; }
  .grid { display: block !important; }
  .rail { position: static !important; margin-bottom: 6pt; padding: 0 !important; }
  .statement { max-width: none !important; font-size: 13pt !important; }
  h2 { max-width: none !important; font-size: 17pt !important; }
  .hero h1 { font-size: 26pt !important; }
  /* le contenu ne dépend jamais d'une animation pour être imprimé */
  [data-hero], [data-rise], [data-tile], .step, .statement .w, .racks i, .gauge-ext { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .hero h1 .line > span, .gauge-fill { transform: none !important; }
  .roadmap-line i { transform: scaleX(0.34) !important; }
  .tile, .contact-person { border: 1px solid #cfd9dc !important; background: #fff !important; }
  .pub-link { border: 0 !important; height: auto !important; padding: 0 !important; }
  .pub-link::after { content: none !important; }
  .person, .tile, .pub, .criteria li, .step, .contact-person, .partner, .note, .program-note { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .bento, .team, .pubs, .roadmap, .duo, .pillars { margin-top: 12pt !important; }
  .person-photo { max-height: 140pt; }
  .footer { padding-top: 12pt !important; background: #fff !important; color: #33505f !important; border-top: 1px solid #cfd9dc; }
  .footer-grid a, .footer-site { color: #0c2536 !important; }
  .footer-credit { margin-top: 12pt !important; }
  .legal { min-height: 0 !important; padding: 0 0 12pt !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
