/* HUB IA, nouveau site (14 octobre 2026).
   Grammaire tirée de l'étude des huit sites de référence de MA : grands énoncés serrés, sections sombres et claires
   en alternance, trame fine, données en chasse fixe, un seul signal de couleur, scènes épinglées au défilement.
   Aucune couleur ni police en dur : tout passe par styles/jetons.css. */

/* ---------- Socle ---------- */
html { scroll-padding-top: calc(var(--barre) + var(--e-4)); }
body { font-size: var(--t-m); font-kerning: normal; }
::selection { background: var(--accent); color: var(--sur-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.jour :focus-visible { outline-color: var(--texte); }
main { display: block; }
.section { position: relative; background: var(--fond); color: var(--texte); padding-block: clamp(72px, 9vw, 140px); }
.section--serree { padding-block: clamp(56px, 7vw, 104px); }
.contenu--large { width: min(100% - 2 * var(--gouttiere), 1520px); margin-inline: auto; }

/* ---------- Typographie ---------- */
.t-ecran, .t-enorme, .t-titre, .t-sous { font-family: var(--police-titres); font-weight: var(--graisse-titres); }
.t-ecran { font-size: var(--t-ecran); letter-spacing: var(--serrage-ecran); line-height: 0.9; text-wrap: balance; }
.t-enorme { font-size: var(--t-enorme); letter-spacing: -0.046em; line-height: 0.94; text-wrap: balance; }
.t-titre { font-size: var(--t-titre); letter-spacing: var(--serrage-titre); line-height: 1; text-wrap: balance; }
.t-sous { font-size: clamp(1.375rem, calc(1rem + 1vw), 2rem); letter-spacing: -0.022em; line-height: 1.1; }
.t-intro { font-size: var(--t-intro); line-height: 1.3; letter-spacing: -0.012em; text-wrap: pretty; }
.t-doux { color: var(--texte-doux); }
.t-donnees { font-family: var(--police-donnees); font-size: var(--t-donnees); line-height: 1.45; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.t-repere { font-family: var(--police-interface); font-size: var(--t-donnees); color: var(--texte-doux); }
.mesure { max-width: var(--largeur-texte); }
.mesure-courte { max-width: 34ch; }
.pile > * + * { margin-top: var(--e-6); }
.pile-serree > * + * { margin-top: var(--e-3); }
.signal { color: var(--accent); }
.jour .signal { color: var(--texte); background: var(--accent); padding-inline: 0.12em; }
/* Un mot posé dans une pastille, comme un repère sur un plan (accueil, section « relié »). */
.pastille { display: inline-block; padding: 0.02em 0.28em 0.06em; background: var(--accent); color: var(--sur-accent); border-radius: 999px; line-height: 1; }

/* ---------- Boutons et liens ---------- */
.bouton { gap: var(--e-3); min-height: 52px; padding: var(--e-3) var(--e-6); font-size: var(--t-m); }
.bouton svg { width: 18px; height: 18px; flex: none; transition: transform var(--duree) var(--courbe); }
.bouton:hover svg { transform: translateX(3px); }
.bouton:hover { background: var(--texte); border-color: var(--texte); color: var(--fond); }
.bouton--clair { background: transparent; color: var(--texte); border-color: color-mix(in srgb, var(--texte) 40%, transparent); }
.appel-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-4) var(--e-6); }
.tel { font-family: var(--police-interface); font-weight: var(--graisse-interface); text-decoration: none; white-space: nowrap; }
.tel:hover { text-decoration: underline; }
.lien-suite { display: inline-flex; align-items: center; gap: var(--e-2); font-family: var(--police-interface); font-weight: var(--graisse-interface); text-decoration: none; border-bottom: var(--trame) solid currentColor; padding-bottom: 2px; }
.lien-suite svg { width: 16px; height: 16px; }
.lien-suite:hover { color: var(--accent); }
.jour .lien-suite:hover { color: var(--texte); border-bottom-width: 2px; }

/* ---------- Barre du haut ---------- */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--barre);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--fond) 0%, transparent);
  transition: background-color var(--duree-lente) var(--courbe), border-color var(--duree-lente) var(--courbe);
  border-bottom: var(--trame) solid transparent;
}
.barre.est-collee { background: color-mix(in srgb, var(--fond) 94%, transparent); border-bottom-color: color-mix(in srgb, var(--texte) 12%, transparent); }
.barre__rang { display: flex; align-items: center; gap: var(--e-6); width: min(100% - 2 * var(--gouttiere), 1520px); margin-inline: auto; }
.marque { display: inline-flex; align-items: center; gap: 10px; min-height: var(--cible); text-decoration: none; font-family: var(--police-titres); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em; }
.marque__signe { width: 22px; height: 26px; flex: none; }
.marque__signe rect { fill: currentColor; }
.marque__signe .barre-signal { fill: var(--accent); }
.barre__nav { margin-inline: auto; }
.barre__liens { display: flex; gap: var(--e-1); margin: 0; padding: 0; list-style: none; }
.barre__liens a { display: inline-flex; align-items: center; min-height: var(--cible); padding-inline: var(--e-3); text-decoration: none; font-family: var(--police-interface); font-weight: var(--graisse-interface); font-size: var(--t-s); color: var(--texte-doux); transition: color var(--duree) var(--courbe); }
.barre__liens a:hover, .barre__liens a[aria-current="page"] { color: var(--texte); }
.barre__liens a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.barre__droite { display: flex; align-items: center; gap: var(--e-4); }
.barre__droite .tel { font-size: var(--t-s); color: var(--texte-doux); }
.barre__droite .bouton { min-height: 44px; padding: var(--e-2) var(--e-4); font-size: var(--t-s); }
@media (max-width: 1099px) { .barre__droite .tel { display: none; } }
@media (max-width: 759px) {
  :root { --barre: 104px; }
  .barre { height: var(--barre); align-items: stretch; }
  .barre__rang { flex-wrap: wrap; gap: 0 var(--e-3); align-content: center; }
  .barre__nav { order: 3; width: 100%; margin: 0; }
  .barre__liens { justify-content: space-between; }
  .barre__liens a { padding-inline: 0; }
  .barre__droite { margin-left: auto; }
  .barre__droite .bouton { display: none; }
  .barre__droite .tel { display: inline-flex; min-height: var(--cible); align-items: center; }
  .barre { background: color-mix(in srgb, var(--fond) 94%, transparent); }
}

/* ---------- Ouverture ---------- */
.ouverture { position: relative; min-height: max(720px, 100svh); display: grid; grid-template-rows: 1fr auto; padding-top: var(--barre); overflow: clip; isolation: isolate; }
.ouverture__toile { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.ouverture__statique { position: absolute; right: max(var(--gouttiere), 6vw); top: 50%; z-index: -1; width: min(30vw, 420px); transform: translateY(-50%); opacity: 0.9; }
.js .ouverture__statique { display: none; }
.ouverture__corps { align-self: center; display: grid; gap: var(--e-6); padding-block: clamp(32px, 6vh, 72px); }
.ouverture__pour { max-width: 44ch; color: var(--texte-doux); font-size: var(--t-s); }
.ouverture h1 { max-width: 10.5ch; }
.ouverture__soustitre { max-width: 26ch; }
.ouverture__texte { max-width: 52ch; color: var(--texte-doux); }
.ouverture .appel-ligne { margin-top: var(--e-2); }
.ouverture__hud { position: absolute; inset: calc(var(--barre) + 24px) var(--gouttiere) 120px auto; width: min(40vw, 560px); z-index: -1; pointer-events: none; }
.hud-coin { position: absolute; width: 18px; height: 18px; border: 0 solid color-mix(in srgb, var(--texte) 45%, transparent); }
.hud-coin--hg { left: 0; top: 0; border-left-width: var(--trame); border-top-width: var(--trame); }
.hud-coin--hd { right: 0; top: 0; border-right-width: var(--trame); border-top-width: var(--trame); }
.hud-coin--bg { left: 0; bottom: 0; border-left-width: var(--trame); border-bottom-width: var(--trame); }
.hud-coin--bd { right: 0; bottom: 0; border-right-width: var(--trame); border-bottom-width: var(--trame); }
.hud-note { position: absolute; font-family: var(--police-interface); font-size: 0.8125rem; color: var(--texte-doux); white-space: nowrap; }
.hud-note--1 { left: 26px; top: 4px; }
.hud-note--2 { right: 26px; bottom: 4px; }
@media (max-width: 1099px) { .ouverture__hud { display: none; } .ouverture__statique { opacity: 0.18; width: 70vw; right: -10vw; } }

/* Frise du parcours, en bas de l'ouverture */
.frise { border-top: var(--trame) solid color-mix(in srgb, var(--texte) 16%, transparent); }
.frise ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.frise li { position: relative; padding: var(--e-4) var(--e-4) var(--e-6) 0; }
.frise li + li { padding-left: var(--e-4); border-left: var(--trame) solid color-mix(in srgb, var(--texte) 16%, transparent); }
.frise__duree { display: block; font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(1.125rem, calc(0.8rem + 0.9vw), 1.625rem); letter-spacing: -0.025em; line-height: 1.1; }
.frise__etape { display: block; margin-top: 6px; font-family: var(--police-interface); font-size: var(--t-donnees); color: var(--texte-doux); }
.frise li::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1100ms var(--courbe-sortie); transition-delay: calc(var(--i, 0) * 260ms + 900ms); }
.frise li + li::before { left: -1px; }
.frise.est-visible li::before, .no-mouvement .frise li::before { width: 100%; }
@media (max-width: 759px) {
  .frise ol { grid-template-columns: 1fr 1fr; }
  .frise li:nth-child(3) { border-left: 0; padding-left: 0; }
  .frise li:nth-child(n+3) { border-top: var(--trame) solid color-mix(in srgb, var(--texte) 16%, transparent); }
}

/* ---------- Transition en pixels entre deux sections ---------- */
/* La bande se pose au-dessus de la section qui la porte et prend sa couleur de fond :
   les carrés « mangent » la section précédente au fil du défilement (scripts/site.js). */
.pixels { position: absolute; left: 0; right: 0; top: -1px; z-index: 3; display: none; grid-template-columns: repeat(var(--colonnes, 24), 1fr); grid-auto-rows: calc(100vw / var(--colonnes, 24)); pointer-events: none; }
.js-mouvement .pixels { display: grid; }
/* --accent-2 est le fond de l’autre palette : presque noir dans une section claire, blanc cassé dans une section sombre. */
.pixels span { background: var(--accent-2); }
.pixels span.est-parti { visibility: hidden; }
@media (max-width: 759px) { .pixels { --colonnes: 12; } }

/* ---------- Grilles de section ---------- */
.entete-section { display: grid; gap: var(--e-6); margin-bottom: clamp(40px, 6vw, 88px); }
@media (min-width: 1100px) {
  .entete-section--deux { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--e-12); }
}
.deux-colonnes { display: grid; gap: var(--e-12); }
@media (min-width: 1100px) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 112px); } }
.filet-haut { border-top: var(--trame) solid var(--bordure); padding-top: var(--e-6); }

/* ---------- « Quel dossier vous fait perdre le fil? » ---------- */
.dossiers { margin: 0; padding: 0; list-style: none; border-top: var(--trame) solid var(--bordure); }
.dossiers li { display: grid; gap: var(--e-2) var(--e-8); padding-block: clamp(20px, 2.6vw, 36px); border-bottom: var(--trame) solid var(--bordure); }
@media (min-width: 900px) { .dossiers li { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: baseline; } }
.dossiers q { quotes: "«\00a0" "\00a0»"; font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(1.75rem, calc(0.9rem + 2.9vw), 3.75rem); letter-spacing: -0.035em; line-height: 1.02; }
.dossiers p { color: var(--texte-doux); }
.dossiers strong { display: block; color: var(--texte); font-family: var(--police-interface); font-weight: var(--graisse-interface); }
.dossiers__fin { display: grid; gap: var(--e-6); margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .dossiers__fin { grid-template-columns: 7fr 4fr; align-items: center; } }

/* ---------- Statu quo et calcul ---------- */
.couts { margin: 0; padding: 0; list-style: none; counter-reset: cout; }
.couts li { display: grid; grid-template-columns: auto 1fr; gap: var(--e-4); padding-block: var(--e-4); border-top: var(--trame) solid var(--bordure); }
.couts li::before { content: none; }
.couts strong { font-family: var(--police-interface); font-weight: var(--graisse-interface); }
.calcul { background: var(--accent-2); color: var(--sur-accent-2); padding: clamp(24px, 3vw, 44px); display: grid; gap: var(--e-6);
  --texte: var(--sur-accent-2); --texte-doux: color-mix(in srgb, var(--sur-accent-2) 72%, var(--accent-2)); --bordure: color-mix(in srgb, var(--sur-accent-2) 22%, var(--accent-2)); --fond: var(--accent-2); --surface: color-mix(in srgb, var(--sur-accent-2) 7%, var(--accent-2)); }
.calcul h3 { font-size: var(--t-l); letter-spacing: -0.015em; }
.calcul__champs { display: grid; gap: var(--e-4); }
@media (min-width: 560px) { .calcul__champs { grid-template-columns: repeat(3, 1fr); } }
.calcul .champ__libelle { font-size: var(--t-s); color: var(--texte-doux); font-weight: 400; min-height: 2.6em; }
.calcul input { font-family: var(--police-donnees); font-size: 1.125rem; }
.calcul__exemple { color: var(--texte-doux); font-size: var(--t-s); }
.calcul__resultat { display: grid; gap: var(--e-2); padding-top: var(--e-6); border-top: var(--trame) solid var(--bordure); }
.calcul__montant { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(3rem, calc(1.5rem + 5vw), 6.5rem); letter-spacing: -0.05em; line-height: 0.92; font-variant-numeric: tabular-nums; }
.calcul__montant small { font-size: 0.32em; letter-spacing: -0.01em; color: var(--texte-doux); margin-left: 0.2em; }
.calcul__formule { color: var(--texte-doux); }
.calcul__phrase strong { color: var(--accent); font-weight: 500; }
.calcul figcaption { color: var(--texte-doux); font-size: var(--t-s); }

/* ---------- « Dispersé, puis relié » (scène épinglée) ---------- */
.relie { height: 280svh; padding: 0; }
.relie__scene { position: sticky; top: 0; height: 100svh; display: grid; overflow: clip; }
.relie__toile { position: absolute; inset: 0; width: 100%; height: 100%; }
.relie__textes { position: relative; z-index: 1; display: grid; grid-template-areas: "texte"; align-items: end; padding-block: calc(var(--barre) + 24px) clamp(32px, 7vh, 72px); pointer-events: none; }
.relie__etat { grid-area: texte; display: grid; gap: var(--e-4); align-content: end; }
.relie__etat > * { transition: opacity 600ms var(--courbe), transform 600ms var(--courbe); }
.relie__avant { opacity: calc(1 - var(--q, 0) * 2.2); }
.relie__apres { opacity: calc(var(--q, 0) * 2.2 - 1.2); transform: translateY(calc((1 - var(--q, 0)) * 24px)); }
.relie__sources { position: absolute; inset: 0; pointer-events: none; overflow: clip; }
.relie__sources span { position: absolute; font-family: var(--police-interface); font-size: var(--t-donnees); color: var(--texte-doux); opacity: calc(1 - var(--q, 0) * 1.6); transform: translate(-50%, -50%); white-space: nowrap; }
.relie__phrase { max-width: 22ch; }
.relie__phrase .pastille { transform: scale(var(--pastille, 1)); transform-origin: 50% 60%; }

/* ---------- Votre lundi matin (scène épinglée, console) ---------- */
.lundi { height: 380svh; padding: 0; }
.lundi__scene { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-top: var(--barre); }
.lundi__grille { display: grid; gap: var(--e-8); align-items: center; }
@media (min-width: 1100px) { .lundi__grille { grid-template-columns: 4fr 8fr; gap: clamp(40px, 5vw, 88px); } }
.lundi h2 { font-size: clamp(1.75rem, calc(1rem + 1.7vw), 2.75rem); letter-spacing: -0.03em; line-height: 1.05; }
.verbes { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.verbes li { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(2.2rem, calc(1rem + 3.4vw), 4.6rem); letter-spacing: -0.045em; line-height: 1; color: color-mix(in srgb, var(--texte) 22%, transparent); transition: color 500ms var(--courbe); }
.verbes li.est-actif { color: var(--texte); }
.verbes li.est-actif::after { content: ""; display: inline-block; width: 0.22em; height: 0.22em; margin-left: 0.18em; background: var(--accent); vertical-align: 0.12em; }
.lundi__legende { color: var(--texte-doux); font-size: var(--t-s); max-width: 40ch; }
.console { position: relative; background: var(--surface); border: var(--trame) solid var(--bordure); display: grid; grid-template-rows: auto 1fr auto; min-height: min(620px, calc(100svh - var(--barre) - 64px)); font-size: var(--t-s); }
.console__tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-2) var(--e-6); padding: var(--e-3) var(--e-4); border-bottom: var(--trame) solid var(--bordure); font-family: var(--police-donnees); font-size: 0.75rem; color: var(--texte-doux); }
.console__corps { display: grid; gap: 0; }
@media (min-width: 900px) { .console__corps { grid-template-columns: 5fr 7fr; } }
.console__col { padding: var(--e-4); display: grid; align-content: start; gap: var(--e-4); }
.console__col + .console__col { border-top: var(--trame) solid var(--bordure); }
@media (min-width: 900px) { .console__col + .console__col { border-top: 0; border-left: var(--trame) solid var(--bordure); } }
.indicateurs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bordure); border: var(--trame) solid var(--bordure); }
.indicateurs li { background: var(--surface); padding: var(--e-3); display: grid; gap: 2px; }
.indicateurs b { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(1.75rem, calc(1rem + 1.6vw), 2.6rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.indicateurs span { color: var(--texte-doux); font-size: 0.8125rem; line-height: 1.3; }
.indicateurs li.est-alerte b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; vertical-align: 0.5em; background: var(--accent); }
.bulle { padding: var(--e-3) var(--e-4); border: var(--trame) solid var(--bordure); display: grid; gap: var(--e-2); }
.bulle__qui { font-family: var(--police-donnees); font-size: 0.75rem; color: var(--texte-doux); }
.bulle--vous { background: color-mix(in srgb, var(--texte) 6%, var(--surface)); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sources li { font-family: var(--police-donnees); font-size: 0.75rem; padding: 3px 8px; border: var(--trame) solid var(--bordure); color: var(--texte-doux); }
.brouillon { border: var(--trame) dashed color-mix(in srgb, var(--texte) 35%, transparent); padding: var(--e-3) var(--e-4); display: grid; gap: var(--e-2); }
.brouillon__ligne { height: 8px; background: color-mix(in srgb, var(--texte) 14%, transparent); }
.brouillon__ligne:nth-child(3) { width: 82%; } .brouillon__ligne:nth-child(4) { width: 64%; }
.etampe { display: inline-flex; align-items: center; gap: var(--e-2); justify-self: start; padding: 6px 10px; font-family: var(--police-donnees); font-size: 0.75rem; border: var(--trame) solid currentColor; }
.etampe--ok { color: var(--sur-accent); background: var(--accent); border-color: var(--accent); }
.recu { font-family: var(--police-donnees); font-size: 0.75rem; color: var(--texte-doux); display: grid; gap: 2px; padding-top: var(--e-3); border-top: var(--trame) solid var(--bordure); }
[data-phase] { transition: opacity 500ms var(--courbe), transform 500ms var(--courbe); }
.js-mouvement [data-phase]:not(.est-montre) { opacity: 0; transform: translateY(12px); }
.lundi__note { color: var(--texte-doux); font-size: 0.8125rem; padding: var(--e-3) var(--e-4); border-top: var(--trame) solid var(--bordure); }

/* ---------- Deux machines ---------- */
.machines__titre { margin-bottom: clamp(40px, 5vw, 72px); max-width: 15ch; }
.machines__dessin { width: 100%; height: auto; }
.machines__dessin .trait { fill: none; stroke: var(--texte); stroke-width: 1.4; stroke-linejoin: round; }
.machines__dessin .trait-doux { fill: none; stroke: color-mix(in srgb, var(--texte) 35%, transparent); stroke-width: 1; stroke-dasharray: 3 5; }
.machines__dessin .face { fill: var(--surface); }
.machines__dessin .face-ombre { fill: color-mix(in srgb, var(--texte) 8%, var(--surface)); }
.machines__dessin .lueur { fill: var(--accent); }
.machines__dessin .flux { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 8 10; }
.machines__dessin text { font-family: var(--police-interface); font-size: 15px; fill: var(--texte-doux); }
.machines__dessin .etiquette-forte { fill: var(--texte); font-family: var(--police-interface); font-size: 15px; }
.js-mouvement .machines__dessin .flux { animation: flux 1.6s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -36; } }
.machines__noeuds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--bordure); border: var(--trame) solid var(--bordure); }
.machines__noeuds li { background: var(--fond); padding: var(--e-4); display: grid; gap: 4px; }
.machines__noeuds b { font-family: var(--police-interface); font-size: var(--t-donnees); font-weight: 400; color: var(--texte-doux); }

/* ---------- Commencer petit : parcours et protections ---------- */
.parcours { margin: 0; padding: 0; list-style: none; position: relative; }
.parcours::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: var(--trame); background: var(--bordure); }
.parcours::after { content: ""; position: absolute; left: 6px; top: 10px; width: 3px; height: calc((100% - 20px) * var(--p, 0)); background: var(--accent); }
.parcours > li { position: relative; display: grid; gap: var(--e-2); padding: 0 0 var(--e-8) 40px; }
.parcours > li:last-child { padding-bottom: 0; z-index: 1; background: linear-gradient(to right, var(--fond) 16px, transparent 16px) no-repeat 0 calc(0.42em + 15px) / 100% 100%; }
.parcours > li::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0.42em; width: 15px; height: 15px; background: var(--fond); border: 2px solid var(--texte); }
.parcours__quand { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(1.5rem, calc(1rem + 1.4vw), 2.375rem); letter-spacing: -0.035em; line-height: 1.05; }
.parcours dl { display: grid; gap: var(--e-2); margin: 0; }
@media (min-width: 760px) { .parcours dl { grid-template-columns: 9.5em 1fr; gap: var(--e-2) var(--e-4); } }
.parcours dt { font-family: var(--police-interface); font-size: var(--t-donnees); color: var(--texte-doux); padding-top: 0.2em; }
.parcours dd { margin: 0; }
.protections { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--bordure); border: var(--trame) solid var(--bordure); }
@media (min-width: 760px) { .protections { grid-template-columns: 1fr 1fr; } }
.protections li { background: var(--surface); padding: var(--e-6); display: grid; align-content: start; gap: var(--e-2); }
.protections strong { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: var(--t-l); letter-spacing: -0.02em; line-height: 1.15; }
.protections p { color: var(--texte-doux); }

/* ---------- Questions ---------- */
.questions { border-top: var(--trame) solid var(--bordure); }
.questions details { border-bottom: var(--trame) solid var(--bordure); }
.questions summary { display: grid; grid-template-columns: 1fr auto; gap: var(--e-4); align-items: center; padding-block: var(--e-6); cursor: pointer; list-style: none; font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(1.25rem, calc(0.9rem + 1vw), 1.875rem); letter-spacing: -0.025em; line-height: 1.15; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--duree) var(--courbe); }
.questions details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.questions summary:hover { color: var(--texte); }
.questions details > div { padding: 0 0 var(--e-6); max-width: 64ch; color: var(--texte-doux); }
.questions details > div a { color: var(--texte); }

/* ---------- Appel final ---------- */
.appel { overflow: clip; isolation: isolate; }
.appel__toile { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.appel__etapes { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: color-mix(in srgb, var(--texte) 16%, transparent); border-block: var(--trame) solid color-mix(in srgb, var(--texte) 16%, transparent); }
@media (min-width: 900px) { .appel__etapes { grid-template-columns: repeat(3, 1fr); } }
.appel__etapes li { background: var(--fond); padding: var(--e-6) var(--e-6) var(--e-6) 0; display: grid; gap: var(--e-2); }
@media (min-width: 900px) { .appel__etapes li + li { padding-left: var(--e-6); } }
.appel__etapes strong { font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: var(--t-l); letter-spacing: -0.02em; }
.appel__etapes p { color: var(--texte-doux); }
.grand-appel { display: inline; font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(1.75rem, calc(0.6rem + 4.2vw), 5.25rem); letter-spacing: -0.045em; line-height: 1; text-decoration: none; color: var(--texte); }
.grand-appel span[aria-hidden] { color: var(--accent); font-weight: 400; transition: transform var(--duree-lente) var(--courbe-sortie); display: inline-block; }
.grand-appel span[aria-hidden]:first-child { margin-right: 0.18em; }
.grand-appel span[aria-hidden]:last-child { margin-left: 0.18em; }
.grand-appel:hover span[aria-hidden]:first-child { transform: translateX(-0.12em); }
.grand-appel:hover span[aria-hidden]:last-child { transform: translateX(0.12em); }
.grand-appel:hover .grand-appel__texte { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }

/* ---------- Pied de page ---------- */
.pied { background: var(--fond); color: var(--texte); padding-top: clamp(56px, 7vw, 96px); overflow: clip; }
.pied__haut { display: grid; gap: var(--e-8); padding-bottom: var(--e-12); border-bottom: var(--trame) solid color-mix(in srgb, var(--texte) 16%, transparent); }
@media (min-width: 900px) { .pied__haut { grid-template-columns: 6fr 3fr 3fr; } }
.pied__phrase { max-width: 36ch; font-size: var(--t-l); line-height: 1.35; letter-spacing: -0.01em; }
.pied h2 { font-family: var(--police-interface); font-size: var(--t-s); font-weight: 400; color: var(--texte-doux); margin-bottom: var(--e-3); letter-spacing: 0; }
.pied ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.pied ul a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.pied ul a:hover { color: var(--accent); }
.pied__precisions { padding-block: var(--e-6); color: var(--texte-doux); font-size: 0.8125rem; display: grid; gap: var(--e-2); border-bottom: var(--trame) solid color-mix(in srgb, var(--texte) 16%, transparent); }
.pied__precisions ul { gap: 4px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-2) var(--e-6); padding-block: var(--e-4); font-family: var(--police-interface); font-size: 0.75rem; color: var(--texte-doux); }
.pied__marque { margin-top: var(--e-6); padding-inline: var(--gouttiere); line-height: 0; color: var(--texte); user-select: none; }

/* ---------- Pages intérieures : en-tête de page ---------- */
.tete-page { position: relative; padding-top: calc(var(--barre) + clamp(56px, 9vw, 128px)); padding-bottom: clamp(56px, 7vw, 104px); overflow: clip; isolation: isolate; }
.tete-page__echo { position: absolute; inset: auto -2vw -0.18em; z-index: -1; font-family: var(--police-titres); font-weight: var(--graisse-titres); font-size: clamp(6rem, 22vw, 24rem); letter-spacing: -0.06em; line-height: 0.8; color: color-mix(in srgb, var(--texte) 5%, transparent); white-space: nowrap; pointer-events: none; }
.tete-page__meta { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-6); margin-top: var(--e-8); padding-top: var(--e-4); border-top: var(--trame) solid color-mix(in srgb, var(--texte) 16%, transparent); font-family: var(--police-interface); font-size: var(--t-donnees); color: var(--texte-doux); }

/* Sommaire collant des pages intérieures */
.sommaire { position: sticky; top: var(--barre); z-index: 20; background: color-mix(in srgb, var(--fond) 96%, transparent); border-block: var(--trame) solid color-mix(in srgb, var(--texte) 12%, transparent); }
.sommaire ol { display: flex; gap: var(--e-1); margin: 0 auto; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; width: min(100% - 2 * var(--gouttiere), 1520px); }
.sommaire a { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 48px; padding-inline: var(--e-3); white-space: nowrap; text-decoration: none; font-family: var(--police-interface); font-weight: var(--graisse-interface); font-size: var(--t-s); color: var(--texte-doux); }
.sommaire a b { font-family: var(--police-donnees); font-weight: 400; font-size: 0.75rem; }
.sommaire a:hover, .sommaire a.est-actif { color: var(--texte); }
.sommaire a.est-actif { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Entrées au défilement (un seul mécanisme, scripts/site.js) ---------- */
.js-mouvement [data-entree] { opacity: 0; transform: translateY(28px); transition: opacity var(--duree-entree) var(--courbe-sortie), transform var(--duree-entree) var(--courbe-sortie); transition-delay: calc(var(--i, 0) * 90ms); }
.js-mouvement [data-entree].est-visible { opacity: 1; transform: none; }
.js-mouvement [data-mots] .mot { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 700ms var(--courbe-sortie), transform 900ms var(--courbe-sortie); transition-delay: calc(var(--m, 0) * 55ms); }
.js-mouvement [data-mots].est-visible .mot { opacity: 1; transform: none; }
.js-mouvement [data-mots="defile"] .mot { opacity: max(0.16, var(--allume, 0)); transform: none; transition: opacity 240ms linear; }
.mot { white-space: pre; }

/* Sur téléphone, la console du lundi se lit d’un bloc, sans épinglage. */
@media (max-width: 899px) {
  .lundi { height: auto; }
  .lundi__scene { position: relative; height: auto; padding-block: calc(var(--barre) + 24px) 64px; }
  .js-mouvement .lundi [data-phase] { opacity: 1; transform: none; }
  .verbes li { color: var(--texte); }
  .relie { height: 240svh; }
}
@media (prefers-reduced-motion: reduce) {
  .lundi { height: auto; }
  .lundi__scene { position: relative; height: auto; }
  .frise li::before { width: 100%; transition: none; }
}
/* Scène « relié », sans animation (réglage du système) ou sans JavaScript : le H déjà formé en haut, puis les deux états
   l'un sous l'autre, jamais superposés. */
.no-mouvement .relie, html:not(.js) .relie { height: auto; }
.no-mouvement .relie__scene, html:not(.js) .relie__scene { position: relative; height: auto; display: block; }
.no-mouvement .relie__toile { position: relative; display: block; height: clamp(220px, 44svh, 440px); }
html:not(.js) .relie__toile { display: none; }
.no-mouvement .relie__sources, html:not(.js) .relie__sources { display: none; }
.no-mouvement .relie__textes, html:not(.js) .relie__textes { grid-template-areas: none; gap: var(--e-12); }
.no-mouvement .relie__etat, html:not(.js) .relie__etat { grid-area: auto; }
.no-mouvement .relie__avant, .no-mouvement .relie__apres, html:not(.js) .relie__avant, html:not(.js) .relie__apres { opacity: 1; transform: none; }

/* Sur téléphone : les étiquettes de la scène « relié » restent dans l'écran ; les étiquettes du dessin des machines, trop
   petites pour se lire, laissent la place au titre et à la légende. */
@media (max-width: 600px) {
  .relie__sources span:nth-child(2), .relie__sources span:nth-child(4) { left: 74% !important; }
  .relie__sources span:nth-child(1), .relie__sources span:nth-child(3) { left: 24% !important; }
  .machines__dessin text { display: none; }
}
