/* OrienteXpress · système graphique
   Une grotesque (Schibsted Grotesk) pour tout le texte, une mono (IBM Plex Mono) pour les métadonnées,
   noir sur blanc, une seule couleur de signal : le bleu outremer. Valeurs documentées dans DESIGN.md. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0e0e0e;
  --ink-2: #5c5c5c;       /* 6,6:1 sur blanc */
  --line: #e2e2e0;
  --soft: #f3f3f1;
  --bg: #fff;
  --accent: #2a3cff;      /* outremer, 6,9:1 sur blanc : utilisable en texte */

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Échelle ×1,25 (tierce majeure) sur 17 px */
  --fs-0: 1.0625rem;
  --fs-1: clamp(1.125rem, 1.05rem + 0.3vw, 1.33rem);
  --fs-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.66rem);
  --fs-3: clamp(1.35rem, 1.1rem + 1.1vw, 2.075rem);
  --fs-5: clamp(2rem, 1.2rem + 2.8vw, 3.24rem);
  --fs-6: clamp(2.25rem, 1.2rem + 3.6vw, 4.05rem);
  --fs-meta: 0.78rem;

  --pad: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);
  --sec: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
  --dot: 14px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-0); line-height: 1.5;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.mono { font-family: var(--mono); font-size: var(--fs-meta); line-height: 1.5; letter-spacing: 0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: 0.5rem 0.9rem; background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; }
.num { font-variant-numeric: tabular-nums; }

.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  width: min(100% - 2 * var(--pad), 90rem); margin-inline: auto;
}

/* En-tête */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { align-items: center; min-height: 3.5rem; }
.mark { grid-column: 1 / 4; justify-self: start; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; }
.mark:hover { color: inherit; }
/* Symbole : hauteur 1,18 × capitale, centré sur la hauteur de capitale, écart 0,42 × capitale */
.mark-sym { width: 1.07em; height: 0.83em; margin-right: 0.3em; vertical-align: -0.064em; fill: currentColor; }
.mark-dot { fill: var(--accent); }
.nav { grid-column: 4 / -1; justify-self: end; display: flex; gap: clamp(1rem, 0.4rem + 1.4vw, 2rem); }
.nav a { padding-block: 0.45rem; font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.menu-btn {
  display: none; grid-column: 10 / -1; justify-self: end; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.menu-btn i, .menu-btn i::before { display: block; width: 1rem; height: 2px; background: currentColor; transition: transform 0.25s var(--ease); }
.menu-btn i { position: relative; transform: translateY(-3px); }
.menu-btn i::before { content: ""; position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 52rem) {
  .mark { grid-column: 1 / 9; }
  .js .menu-btn { display: inline-flex; }
  .js .nav {
    grid-column: 1 / -1; justify-self: stretch; flex-direction: column; gap: 0;
    padding-bottom: 1rem;
  }
  .js .nav:not(.is-open) { display: none; }
  .js .nav a { padding: 0.8rem 0; border-top: 1px solid var(--line); font-size: var(--fs-1); }
  html:not(.js) .mark { grid-column: 1 / -1; padding-top: 0.7rem; }
  html:not(.js) .nav { grid-column: 1 / -1; justify-self: start; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0.4rem 0 0.7rem; }
}

/* Ouverture : accueil (.hero) et pages (.page-head) */

.hero, .page-head { padding-top: clamp(3.5rem, 1.5rem + 7vw, 9rem); align-items: start; }
.page-head { padding-top: clamp(3rem, 1.5rem + 5vw, 7rem); }
.meta-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; color: var(--ink-2); }
.hero h1, .page-head h1 {
  grid-column: 1 / -1; margin-top: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
}
.hero { align-items: start; }
.hero h1 { font-size: clamp(2.6rem, min(0.9rem + 5vw, 10vh), 6.6rem); line-height: 0.96; letter-spacing: -0.045em; }
/* Accueil : sur un écran large mais peu haut (plein écran d'un portable), l'ouverture se règle aussi sur la
   hauteur de la fenêtre pour que les faits restent visibles sans défiler */
.hero { padding-top: max(2.5rem, min(clamp(3.5rem, 1.5rem + 7vw, 9rem), 7vh)); }
.hero .head-rule { margin-top: max(2rem, min(clamp(2.5rem, 1rem + 4vw, 5rem), 4vh)); }
.hero .facts { margin-top: max(2.5rem, min(clamp(3rem, 1.5rem + 4vw, 6rem), 4vh)); }
.schema .cs-l { width: max(min(100%, 35rem), min(100%, calc(36vh * 620 / 310))); }   /* 35rem : les libellés ne descendent pas sous 11 px */
.page-head h1 { max-width: 22ch; font-size: clamp(2.25rem, 1rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; }
.hero h1 span { display: block; }
.lede { grid-column: 1 / 6; max-width: 36ch; margin-top: clamp(2rem, 1rem + 3vw, 4rem); font-size: var(--fs-1); line-height: 1.45; }
.page-head .lede { grid-column: 1 / 7; max-width: 40ch; }
.fiche { grid-column: 8 / -1; margin-top: clamp(2rem, 1rem + 3vw, 4rem); border-bottom: 1px solid var(--line); }
.fiche div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.fiche dt { color: var(--ink-2); }
.fiche dd { font-weight: 500; }
/* Accueil : filet sous le titre, puis texte d'ouverture à gauche et schéma des promotions à droite */
.head-rule { grid-column: 1 / -1; width: 100%; margin: clamp(2.5rem, 1rem + 4vw, 5rem) 0 0; border: 0; border-top: 1px solid var(--ink); }
.head-rule ~ .lede, .head-rule ~ .fiche:not(.facts) { margin-top: 1.25rem; }
.head-rule ~ .fiche:not(.facts) div:first-child { padding-top: 0.2rem; border-top: 0; }
.schema { grid-column: 7 / -1; margin-top: 1.25rem; }
.cs { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); fill: var(--ink); }
.cs-s { display: none; }
.cs-strong { font-weight: 600; }
.cs-soft { fill: var(--ink-2); }
.cs-mono { font-family: var(--mono); fill: var(--ink-2); }
.cs-now { font-family: var(--mono); fill: var(--accent); }
.cs-halo { paint-order: stroke; stroke: var(--bg); stroke-width: 8px; stroke-linejoin: round; }
.schema-key { display: flex; gap: 1.25rem; margin-top: 0.75rem; color: var(--ink-2); }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: clamp(3rem, 1.5rem + 4vw, 6rem); border-bottom: 0; }
.facts div { display: block; padding: 0.9rem 0 0; }
.facts dt { font-size: 0.82rem; font-weight: 500; }
.facts dd { margin-top: 0.15rem; }
.live { display: inline-block; position: relative; width: 8px; height: 8px; margin-right: 0.55rem; border-radius: 50%; background: var(--accent); vertical-align: 0.1em; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .page-head h1, .lede, .fiche, .schema { animation: rise 0.9s var(--ease) both; }
  .lede, .schema { animation-delay: 0.12s; }
  .fiche { animation-delay: 0.2s; }
  .live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s ease-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.6rem); } }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } 70%, to { transform: scale(1.8); opacity: 0; } }

/* Sections : filet noir, titre à gauche (3 colonnes), contenu à droite (8 colonnes) */

.sec { margin-top: var(--sec); padding-top: 1.1rem; border-top: 1px solid var(--ink); align-items: start; }
.sec-title { grid-column: 1 / 4; font-size: var(--fs-0); font-weight: 600; letter-spacing: -0.01em; }
.sec-body, .sec-wide { grid-column: 5 / -1; }
.sec-full { grid-column: 1 / -1; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.spaced { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.sec-body > * + * { margin-top: 1.25rem; }
.statement { max-width: 30ch; font-size: var(--fs-3); font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; }
.sec-body > .statement + * { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.prose { max-width: 38rem; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.go { margin-top: 2.25rem; }
/* Appel à participer : une ligne sous filet, question à gauche, lien à droite */
.cta { grid-column: 5 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 2rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.cta p:first-child { font-size: var(--fs-2); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.cta .go { margin: 0; font-size: var(--fs-1); }
.go a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 0.15rem; }
.go a:hover { color: var(--accent); }
.go a span { display: inline-block; transition: transform 0.25s var(--ease); }
.go a:hover span { transform: translateX(4px); }
.sub-title { font-size: var(--fs-1); font-weight: 600; letter-spacing: -0.01em; }

/* Listes de définitions en colonnes (2 ou 3) */

.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--gap); }
.defs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.defs > div { padding-top: 0.75rem; border-top: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dt.mono { font-weight: 400; color: var(--ink-2); }
.defs dd { margin-top: 0.4rem; color: var(--ink-2); max-width: 38ch; }
.defs.large dd { margin-top: 0.6rem; color: var(--ink); font-size: var(--fs-1); line-height: 1.45; max-width: 34ch; }

/* Graphique en barres (part des filles) */

.bars { max-width: 48rem; }
.bars-row { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 6rem; gap: 1.25rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.bars-label { font-weight: 500; line-height: 1.25; }
.bars-track { position: relative; height: 0.9rem; background: var(--soft); }
.bars-track span { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--ink); }
.bars-row.is-key .bars-track span { background: var(--accent); }
.bars-track::after { content: ""; position: absolute; left: 50%; top: -0.6rem; bottom: -0.6rem; border-left: 1px solid var(--ink); }
.bars-val { font-size: var(--fs-3); font-weight: 500; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.bars figcaption { padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--ink-2); }

/* Schéma des promotions (frise par promotion) */

.cohort { position: relative; --cols: 6; }
.cohort-head { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); color: var(--ink-2); }
.cohort-now {
  position: absolute; top: -2.1rem; bottom: 3rem; left: calc(100% * 1.56 / var(--cols) + var(--dot) / 2);
  display: flex; align-items: flex-start; border-left: 1px solid var(--accent); pointer-events: none;
}
.cohort-now span { padding: 0.15rem 0.4rem; background: var(--accent); color: #fff; font-size: 0.7rem; white-space: nowrap; }
.cohort-row { padding: 1.4rem 0 1.9rem; border-bottom: 1px solid var(--line); }
.cohort-row h3 { position: relative; z-index: 2; width: fit-content; padding-right: 0.5rem; background: var(--bg); font-size: var(--fs-0); font-weight: 600; }
.cohort-row h3 span { margin-left: 0.6rem; font-weight: 400; color: var(--ink-2); }
.track { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin-top: 1.5rem; padding: 0; list-style: none; }
.track::before {
  content: ""; grid-row: 1; grid-column: var(--line); align-self: start;
  height: 2px; margin-top: calc(var(--dot) / 2 - 1px); background: var(--ink);
}
.is-planned .track::before, .is-open .track::before { background: repeating-linear-gradient(90deg, var(--ink-2) 0 6px, transparent 6px 11px); }
/* Horizon : objectif sans date, pointillé qui s'efface vers la droite */
.is-horizon .track::before {
  height: 4px; margin-top: calc(var(--dot) / 2 - 2px);
  background: radial-gradient(circle, var(--ink) 1.5px, transparent 2px) 0 50% / 9px 4px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent);
}
.note { color: var(--ink-2); }
.is-horizon .note { max-width: 46ch; color: var(--ink); }
.track li { grid-row: 1; grid-column: var(--c); position: relative; z-index: 1; padding: calc(var(--dot) + 0.8rem) 1rem 0 0; font-size: 0.95rem; line-height: 1.35; }
.is-planned .track li { color: var(--ink-2); }
.node::before {
  content: ""; position: absolute; top: 0; left: 0; z-index: 1;
  width: var(--dot); height: var(--dot); border-radius: 50%; border: 2px solid var(--ink-2); background: var(--bg);
}
.node.is-done::before { background: var(--accent); border-color: var(--accent); }
.node.is-next::before { border-color: var(--accent); border-width: 3px; }
.node em { display: block; margin-top: 0.25rem; font-family: var(--mono); font-size: 0.72rem; font-style: normal; color: var(--ink-2); }
.band { color: var(--ink-2); }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) / 2 - 4px); height: 8px;
  background: repeating-linear-gradient(-45deg, var(--ink-2) 0 1px, transparent 1px 5px);
}
.when, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 1rem; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 0.45rem; }
.key i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-2); }
.key .k-done { background: var(--accent); border-color: var(--accent); }
.key .k-next { border-color: var(--accent); }
.key .k-horizon { width: 18px; height: 4px; border: 0; border-radius: 0; background: radial-gradient(circle, var(--ink) 1.5px, transparent 2px) 0 50% / 6px 4px repeat-x; }

/* Frise simple (cycle annuel) */

.cycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 2.25rem; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.cycle li { position: relative; padding: 1.25rem 1rem 0 0; }
.cycle li::before { content: ""; position: absolute; top: calc(-1 * var(--dot) / 2 - 1px); left: 0; width: var(--dot); height: var(--dot); border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); }
.cycle li.is-school::before { background: var(--accent); border-color: var(--accent); }
.cycle time { display: block; color: var(--ink-2); }
.cycle p { margin-top: 0.35rem; font-weight: 500; line-height: 1.35; }
.cycle p, .track li, .defs dt, .steps h3 { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 64rem) {
  .cycle { grid-template-columns: minmax(0, 1fr); margin-top: 0.5rem; border-top: 0; border-left: 2px solid var(--ink); margin-left: calc(var(--dot) / 2 - 1px); }
  .cycle li { padding: 0 0 1.25rem 1.5rem; }
  .cycle li:last-child { padding-bottom: 0; }
  .cycle li::before { top: 0.2rem; left: calc(-1 * var(--dot) / 2 - 1px); }
}

/* Étapes numérotées */

.steps { padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr) 11rem; gap: 0.25rem var(--gap); padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-meta); color: var(--accent); }
.steps h3 { font-size: var(--fs-0); font-weight: 600; }
.steps p { grid-column: 2; color: var(--ink-2); }
.steps .who { grid-column: 3; grid-row: 1; justify-self: end; color: var(--ink-2); text-align: right; }

/* Figures : captures, photos */

.shot img { width: 100%; border: 1px solid var(--line); background: var(--soft); }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; margin-top: 0.75rem; color: var(--ink-2); }
.tag { padding: 0.1rem 0.45rem; background: var(--ink); color: #fff; font-weight: 500; white-space: nowrap; }
.shots { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: clamp(2rem, 1rem + 2vw, 3rem) var(--gap); align-items: end; }   /* légendes alignées en bas */
.phone { max-width: 17rem; }
.phone img { border-radius: 1.4rem; border: 6px solid var(--ink); }

/* Tableau comparatif */

.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; }
.compare caption { caption-side: bottom; padding-top: 0.9rem; text-align: left; color: var(--ink-2); }
.compare th, .compare td { padding: 1rem 1.25rem 1rem 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { padding-top: 0; border-top: 0; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: var(--fs-meta); font-weight: 400; color: var(--ink-2); }
.compare tbody th { width: 24%; font-weight: 600; }
.compare td { width: 38%; color: var(--ink-2); }
.compare .ours { color: var(--ink); }
.compare thead .ours { color: var(--accent); }
.compare td.ours { border-top-color: var(--accent); }

/* Deux colonnes avec listes (les deux questionnaires) */

.waves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.wave { padding-top: 0.75rem; border-top: 2px solid var(--ink); }
.wave .when-label { display: block; color: var(--accent); }
.wave h3 { margin-top: 0.5rem; font-size: var(--fs-2); font-weight: 500; letter-spacing: -0.02em; }
.wave p { margin-top: 0.4rem; color: var(--ink-2); }
.wave ul { margin-top: 1rem; padding: 0; list-style: none; }
.wave li { padding: 0.55rem 0; border-top: 1px solid var(--line); }

/* Questions fréquentes */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0;
  font-weight: 500; list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); color: var(--accent); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40rem; padding-bottom: 1.25rem; color: var(--ink-2); }

/* Équipe */

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gap); padding: 0; list-style: none; }
.people img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.people a { display: block; margin-top: 0.8rem; font-size: var(--fs-1); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.people span { display: block; margin-top: 0.15rem; font-size: 0.92rem; line-height: 1.4; color: var(--ink-2); }

/* Partenaires : une colonne par rôle (rôle au-dessus, logos en dessous, filet en tête), la recherche
   en double largeur car elle a deux logos ; 2 × 2 sur écran moyen, une colonne sur téléphone.
   Logos en couleur d'origine, hauteur optique réglée par logo (--h), centrés dans une bande de 4,5rem */

.partners { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 2.25rem var(--gap); }
.partners div { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.partners dt { color: var(--ink-2); }
.partners dd { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.5rem, 0.5rem + 2.5vw, 3rem); min-height: 4.5rem; margin-top: 1rem; }
.partners a { display: block; }
.partners img { height: var(--h); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 84rem) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Presse : filtres par type, regroupement par année */

.press-filter { display: none; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
.js .press-filter { display: flex; }
.press-filter button {
  padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-2);
  font: inherit; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.press-filter button:hover { border-color: var(--ink); color: var(--ink); }
.press-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.press-filter sup { margin-left: 0.35em; font-size: 1em; vertical-align: baseline; opacity: 0.6; }
.press-year { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--gap); padding-top: 0.8rem; border-top: 1px solid var(--ink); }
.press-year + .press-year { margin-top: 2.5rem; }
.press-year[hidden], .press li[hidden] { display: none; }
.press-year h3 { font-family: var(--mono); font-size: var(--fs-meta); font-weight: 500; }
.press { padding: 0; list-style: none; }
.press li { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 0.2rem var(--gap); padding: 0 0 1rem; align-items: baseline; }
.press li + li { padding-top: 1rem; border-top: 1px solid var(--line); }
.press a { font-weight: 500; text-decoration: none; }
.press .src { grid-column: 1; color: var(--ink-2); }
.press .type { grid-column: 2; grid-row: 1; justify-self: end; color: var(--ink-2); }

/* Contact, mentions, pied de page */

.mail { display: inline-block; font-size: var(--fs-3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.addr { color: var(--ink-2); }
.legal { max-width: 42rem; }
.legal p { color: var(--ink-2); }
.legal p + p { margin-top: 0.9rem; }
.legal p strong { color: var(--ink); font-weight: 600; }
.legal dl { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.75rem var(--gap); }
.legal dt { font-weight: 600; }
.legal dd { color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: var(--sec); padding: 1.25rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--ink-2); }

/* Petits écrans */

@media (max-width: 56rem) {
  .sec-title, .sec-body, .sec-wide, .lede, .page-head .lede, .fiche, .schema, .cta { grid-column: 1 / -1; }
  .head-rule ~ .fiche:not(.facts) { margin-top: 2rem; }
  .head-rule ~ .fiche:not(.facts) div:first-child { padding-top: 0.65rem; border-top: 1px solid var(--line); }
  .schema { margin-top: 2.5rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .sec-title { margin-bottom: 1.5rem; }
  .defs.three { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .waves { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cohort-head, .cohort-now { display: none; }
  .cohort-row h3 span { display: block; margin: 0.1rem 0 0; }
  .track { display: block; position: relative; margin-top: 1.25rem; }
  .track::before { position: absolute; left: calc(var(--dot) / 2 - 1px); top: 0.5rem; bottom: 0.5rem; align-self: stretch; width: 2px; height: auto; margin: 0; }
  .is-planned .track::before, .is-open .track::before { background: repeating-linear-gradient(180deg, var(--ink-2) 0 6px, transparent 6px 11px); }
  .is-horizon .track::before {
    left: calc(var(--dot) / 2 - 2px); width: 4px; height: auto; margin: 0;
    background: radial-gradient(circle, var(--ink) 1.5px, transparent 2px) 50% 0 / 4px 9px repeat-y;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent);
  }
  .track li { padding: 0 0 1.1rem 2rem; }
  .track li:last-child { padding-bottom: 0; }
  .node::before { top: 0.15rem; }
  .band::before { left: calc(var(--dot) / 2 - 4px); right: auto; top: 0; bottom: 0; width: 8px; height: auto; }
  .when { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); }

}

@media (max-width: 40rem) {
  .hero h1 span { display: inline; }
  .hero h1, .page-head h1 { line-height: 1.1; }
  .hero h1 { line-height: 1.02; letter-spacing: -0.04em; }
  .cs-l { display: none; }
  .cs-s { display: block; }
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: 0.25rem; }
  .defs { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .bars-row { grid-template-columns: minmax(0, 1fr) 4.5rem; gap: 0.5rem 1rem; }
  .bars-label { grid-column: 1 / -1; }
  .fiche div { grid-template-columns: 8rem minmax(0, 1fr); }
  .steps li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .steps .who { grid-column: 2; grid-row: auto; justify-self: start; text-align: left; }
  .press-year { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .press li { grid-template-columns: minmax(0, 1fr); }
  .press .type { grid-column: 1; grid-row: auto; justify-self: start; }
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .partners { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .partners dd { margin-top: 0.75rem; }
  .legal dd + dt { margin-top: 0.8rem; }
  .bleed { margin-inline: calc(-1 * var(--pad)); }
  .bleed img { border-inline: 0; }
  .bleed figcaption { padding-inline: var(--pad); }
  .shots .phone { display: none; }

  /* Tableau comparatif : une carte par critère */
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { padding: 1rem 0; border-top: 1px solid var(--line); }
  .compare tbody th, .compare td { padding: 0.25rem 0; border: 0; }
  .compare td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: var(--fs-meta); color: var(--ink-2); }
  .compare td.ours::before { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .top, .skip, .press-filter, .menu-btn { display: none !important; }
  .sec { margin-top: 2.5rem; break-inside: avoid-page; }
  .foot { margin-top: 2.5rem; }
  a { text-decoration: none; }
}
