/* African Heroes : « Le Ciel des Héros », refonte du 24/11/2026 (direction « Du soleil aux étoiles »).
   Système de design complet du SITE public. L'application (/app/) garde la mise en page de
   style.css + app.css, habillée dans le même système par app-theme.css (même jour).

   Pourquoi cette direction (détail : ../REFONTE_SITE_2026-11-24.md) :
   - l'orange du logo des réseaux est le seul signe que l'audience reconnaît ; l'ancien site
     (brun et or) ne le montrait nulle part ;
   - la journée d'un récit va du soleil (on arrive, on est saisi) à la nuit (on a lu, une étoile
     s'allume) : la couleur porte la promesse « Nos histoires méritent la lumière » ;
   - aucune photo n'est encore autorisée pour le site : les héros s'affichent en AFFICHES
     typographiques (nom, numéro, couleur de constellation), jamais en visages inventés. */

/* Les polices embarquées vivent dans polices.css, partagé avec l'application (/app/). */

/* ------------------------------------------------------------------ jetons
   Contrastes calculés (WCAG) : Encre sur Soleil 7,6:1 ; Ivoire sur Braise 4,9:1 ;
   Ivoire sur Nuit 16,4:1 ; Encre sur Papier 17,3:1 ; Terre sur Papier 6,0:1 ;
   Or sur Nuit 9,5:1. Braise ne porte jamais de petit texte sur fond sombre (3,4:1). */
:root {
  --soleil: #F28C1E;
  --soleil-clair: #FFB45A;
  --braise: #BB4601;
  --laterite: #86260F;
  --prune: #4A1638;
  --crepuscule: #27215C;
  --nuit: #121538;
  --nuit-2: #0B0D26;
  --or: #F2B434;
  --foret: #1E4D3A;
  --papier: #FAF6EE;
  --papier-2: #F1E9DA;
  --encre: #17120D;
  --terre: #6B5B4B;
  --ivoire: #FAF6EE;
  --ivoire-70: rgba(250, 246, 238, .72);
  --ivoire-20: rgba(250, 246, 238, .2);
  --encre-10: rgba(23, 18, 13, .1);
  --encre-20: rgba(23, 18, 13, .2);

  --f-titre: "Bricolage", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Newsreader", Charis, Georgia, "Times New Roman", serif;

  /* Échelle typographique fluide (mobile 375 → bureau 1440). */
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.125rem;
  --t-l: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --t-xl: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  --t-2xl: clamp(2.4rem, 1.4rem + 4.2vw, 5rem);
  --t-3xl: clamp(3rem, 1.2rem + 7.6vw, 8.5rem);

  --esp-1: 4px; --esp-2: 8px; --esp-3: 12px; --esp-4: 16px; --esp-5: 24px;
  --esp-6: 32px; --esp-7: 48px; --esp-8: 64px; --esp-9: 96px; --esp-10: 144px;
  --bord: clamp(18px, 4vw, 56px);
  --large: 1320px;
  --lecture: 40rem;
  --rayon: 4px;
  --rayon-l: 18px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-ressort: cubic-bezier(.34, 1.56, .64, 1);
  --duree: .6s;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--soleil); color: var(--encre); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 2px; }
.theme-nuit :focus-visible, .section-nuit :focus-visible { outline-color: var(--or); }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.saut {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--papier); padding: 10px 16px;
  font-family: var(--f-titre); font-weight: 600; text-decoration: none; border-radius: var(--rayon);
}
.saut:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 750; line-height: .98; letter-spacing: -.012em; margin: 0; font-stretch: 85%; }
p { margin: 0 0 1em; }
.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--bord); }

/* L'étiquette : petites capitales espacées, la voix des rubriques. */
.etiquette {
  font-family: var(--f-titre); font-size: var(--t-xs); font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase; font-stretch: 100%;
  display: inline-flex; align-items: center; gap: 10px;
}
.etiquette::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.etiquette.sans-trait::before { display: none; }

/* ------------------------------------------------------------------ boutons */
.bouton {
  --fond: var(--encre); --texte: var(--papier);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--fond); color: var(--texte);
  border: 2px solid var(--fond); border-radius: 999px;
  font-family: var(--f-titre); font-weight: 650; font-size: 1rem; font-stretch: 100%;
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-ressort), background .2s, color .2s, box-shadow .25s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(23, 18, 13, .55); }
.bouton:active { transform: translateY(0) scale(.98); }
.bouton .fleche { transition: transform .3s var(--ease); }
.bouton:hover .fleche { transform: translateX(4px); }
.bouton-soleil { --fond: var(--soleil); --texte: var(--encre); }
.bouton-or { --fond: var(--or); --texte: var(--encre); }
.bouton-clair { --fond: var(--papier); --texte: var(--encre); }
.bouton-contour { background: transparent; color: var(--texte-contour, var(--encre)); border-color: currentColor; }
.bouton-contour:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.sur-sombre .bouton-contour, .section-nuit .bouton-contour, .theme-nuit .bouton-contour, .allumage .bouton-contour, .bloc-nuit .bouton-contour { color: var(--papier); }
.sur-sombre .bouton-contour:hover, .section-nuit .bouton-contour:hover, .theme-nuit .bouton-contour:hover { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.bouton.lecture-active { background: var(--soleil); color: var(--encre); border-color: var(--soleil); }
.lien-fleche {
  font-family: var(--f-titre); font-weight: 650; font-stretch: 100%; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px; display: inline-flex; gap: 8px;
}
.lien-fleche:hover { color: var(--braise); }
.section-nuit .lien-fleche:hover, .theme-nuit .lien-fleche:hover { color: var(--or); }

/* ------------------------------------------------------------------ en-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--bord);
  background: rgba(250, 246, 238, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--encre-10);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
}
.entete.cachee { transform: translateY(-100%); }
.theme-soleil .entete.en-haut { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.theme-nuit .entete { background: rgba(18, 21, 56, .82); color: var(--papier); border-color: var(--ivoire-20); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.marque img { width: 42px; height: 42px; border-radius: 50%; transition: transform .8s var(--ease); }
.marque:hover img { transform: rotate(-12deg) scale(1.06); }
.marque .mot { font-family: var(--f-titre); font-weight: 800; font-size: 1.12rem; letter-spacing: .06em; line-height: 1; font-stretch: 100%; }
.marque .mot small { display: block; font-family: var(--f-texte); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: .82rem; margin-top: 4px; opacity: .75; }
.nav-principale { display: flex; align-items: center; gap: 4px; }
.nav-principale a {
  position: relative; padding: 10px 14px; text-decoration: none;
  font-family: var(--f-titre); font-weight: 600; font-size: .98rem; font-stretch: 100%;
}
.nav-principale a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-principale a:hover::after, .nav-principale a[aria-current="page"]::after { transform: scaleX(1); }
.nav-principale a.nav-action {
  margin-left: 10px; background: var(--encre); color: var(--papier); border-radius: 999px; padding: 10px 18px;
}
.nav-principale a.nav-action::after { display: none; }
.theme-nuit .nav-principale a.nav-action { background: var(--or); color: var(--encre); }
#bouton-menu {
  display: none; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
  font-family: var(--f-titre); font-weight: 700; font-size: 1rem; padding: 10px 4px; min-height: 44px;
}
#bouton-menu .barres { width: 26px; height: 12px; position: relative; }
#bouton-menu .barres::before, #bouton-menu .barres::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease);
}
#bouton-menu .barres::before { top: 0; }
#bouton-menu .barres::after { top: 10px; }
#bouton-menu[aria-expanded="true"] .barres::before { top: 5px; transform: rotate(45deg); }
#bouton-menu[aria-expanded="true"] .barres::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  #bouton-menu { display: inline-flex; z-index: 60; }
  .nav-principale {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 0; padding: 90px var(--bord) 40px; background: var(--soleil); color: var(--encre);
    clip-path: circle(0% at calc(100% - 40px) 34px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav-principale.ouverte { clip-path: circle(150% at calc(100% - 40px) 34px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav-principale a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; font-stretch: 80%; padding: 6px 0; letter-spacing: -.02em; }
  .nav-principale a::after { left: 0; right: auto; width: 60px; bottom: 2px; height: 4px; }
  .nav-principale a.nav-action { margin: 24px 0 0; font-size: 1.2rem; padding: 14px 24px; font-stretch: 100%; }
  .menu-ouvert .entete { background: transparent; border-color: transparent; color: var(--encre); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-ouvert { overflow: hidden; }
  .marque .mot small { display: none; }
}

/* ------------------------------------------------------------------ motifs
   Les rayons : le soleil du logo, redessiné en SVG (pas d'image), réutilisé partout. */
.rayons { position: absolute; pointer-events: none; aspect-ratio: 1; }
.rayons svg { width: 100%; height: 100%; animation: tourne 90s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes respire { 50% { transform: scale(1.04); } }

/* ------------------------------------------------------------------ accueil : le lever */
.lever {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 980px);
  margin-top: -71px; padding: 140px var(--bord) 0;
  background:
    radial-gradient(120% 80% at 70% 110%, #FFC46B 0%, rgba(255, 196, 107, 0) 55%),
    linear-gradient(180deg, #F7A23B 0%, var(--soleil) 45%, #E9761A 100%);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: var(--esp-7);
}
.lever .astre {
  position: absolute; z-index: -1; left: 64%; bottom: -46vmin; width: 120vmin; aspect-ratio: 1; translate: -50% 0;
  animation: lever-astre 2.4s var(--ease) both;
}
.lever .astre .disque {
  position: absolute; inset: 27%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFE2A8, #FFC15A 45%, #F7A436 70%);
  box-shadow: 0 0 120px 40px rgba(255, 214, 140, .55);
  animation: respire 7s ease-in-out infinite;
}
.lever .astre .rayons { inset: 0; width: 100%; }
.lever .astre .rayons path { fill: #FFC25E; }
@keyframes lever-astre { from { transform: translateY(34%); opacity: 0; } to { transform: none; opacity: 1; } }
.lever .horizon-bas {
  position: absolute; z-index: -1; left: -5%; right: -5%; bottom: -1px; height: 22vh;
  background: var(--braise); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -2px 0 rgba(23, 18, 13, .05);
}
.lever-texte { padding-bottom: clamp(56px, 12vh, 140px); position: relative; }
.lever h1 {
  font-size: var(--t-3xl); font-weight: 800; font-stretch: 78%; line-height: .88; letter-spacing: -.018em;
  color: var(--encre); text-wrap: balance;
}
.lever h1 .ligne { display: block; overflow: hidden; padding-bottom: .04em; }
.lever h1 .ligne > span { display: inline-block; animation: monte 1.1s var(--ease) both; }
.lever h1 .ligne:nth-child(2) > span { animation-delay: .12s; }
.lever h1 .ligne:nth-child(3) > span { animation-delay: .24s; }
.lever h1 em {
  font-family: var(--f-texte); font-style: italic; font-weight: 500; font-stretch: 100%; letter-spacing: -.03em;
  color: var(--papier); text-shadow: 0 2px 30px rgba(187, 70, 1, .35);
}
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lever .chapo-lever {
  font-size: var(--t-l); line-height: 1.4; max-width: 36rem; margin: 28px 0 32px; color: var(--encre);
  animation: apparait 1s .5s var(--ease) both;
}
.lever .actions { display: flex; flex-wrap: wrap; gap: 12px; animation: apparait 1s .65s var(--ease) both; }
.lever .compteurs {
  display: flex; gap: 32px; margin-top: 40px; font-family: var(--f-titre); font-stretch: 100%;
  animation: apparait 1s .8s var(--ease) both;
}
.lever .compteurs strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; font-stretch: 80%; }
.lever .compteurs span { font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lever-carte { padding-bottom: clamp(48px, 10vh, 120px); animation: apparait 1.2s .9s var(--ease) both; }
/* Sur le soleil, l'affiche à la une passe à l'encre : orange sur orange ne se lirait pas. */
.lever-carte .affiche { --fond: var(--encre); --texte: var(--papier); --rayon-c: rgba(242, 140, 30, .4); transform: rotate(3deg); box-shadow: 0 40px 60px -30px rgba(80, 25, 0, .6); }
.lever-carte .affiche:hover { transform: rotate(0deg) translateY(-6px); }
.lever-carte .sur-affiche {
  font-family: var(--f-titre); font-weight: 700; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--encre);
}
.point-direct { width: 9px; height: 9px; border-radius: 50%; background: var(--encre); box-shadow: 0 0 0 0 rgba(23, 18, 13, .5); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(23, 18, 13, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 18, 13, 0); } }
@media (max-width: 900px) {
  .lever { grid-template-columns: 1fr; padding-top: 120px; min-height: auto; align-items: start; }
  .lever .astre { left: 70%; width: 150vmin; bottom: -60vmin; }
  .lever-texte { padding-bottom: 0; }
  .lever-carte { padding-bottom: 72px; max-width: 360px; }
  .lever .compteurs { gap: 22px; }
}

/* ------------------------------------------------------------------ bandeau défilant */
.defile {
  background: var(--encre); color: var(--papier); overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--encre); padding: 18px 0; position: relative; z-index: 2;
}
.defile .piste { display: inline-flex; gap: 0; animation: defile 70s linear infinite; }
.defile:hover .piste { animation-play-state: paused; }
.defile a {
  font-family: var(--f-titre); font-weight: 750; font-stretch: 80%; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem);
  text-decoration: none; padding: 0 20px; display: inline-flex; align-items: center; gap: 40px; letter-spacing: -.01em;
}
.defile a::after { content: "✦"; color: var(--soleil); font-size: .6em; }
.defile a:hover { color: var(--soleil); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section-papier { background: var(--papier); }
.section-sable { background: var(--papier-2); }
.section-soleil { background: var(--soleil); }
.section-encre { background: var(--encre); color: var(--papier); }
.section-nuit {
  background: radial-gradient(90% 60% at 50% 0%, #2A2470 0%, var(--nuit) 55%, var(--nuit-2) 100%);
  color: var(--papier);
}
.tete-section { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.tete-section h2 { font-size: var(--t-2xl); font-stretch: 78%; max-width: 15ch; text-wrap: balance; margin-top: 14px; }
.tete-section p { max-width: 30rem; font-size: var(--t-m); margin: 0; }
.section-nuit .tete-section p, .section-encre .tete-section p { color: var(--ivoire-70); }

/* ------------------------------------------------------------------ l'histoire à la une */
.une { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.une .accroche-geante {
  font-family: var(--f-texte); font-style: italic; font-weight: 400; font-size: var(--t-2xl); line-height: 1.02;
  letter-spacing: -.025em; margin: 18px 0 28px; text-wrap: balance;
}
.une .accroche-geante::before { content: "« "; color: var(--braise); }
.une .accroche-geante::after { content: " »"; color: var(--braise); }
.une .nom-une { font-size: var(--t-xl); font-stretch: 80%; }
.une .meta-une { color: var(--terre); font-family: var(--f-titre); font-size: var(--t-s); font-weight: 550; margin: 8px 0 22px; font-stretch: 100%; }
.une .resume-une { font-size: var(--t-l); line-height: 1.45; max-width: 34rem; }
@media (max-width: 860px) { .une { grid-template-columns: 1fr; } .une .affiche { max-width: 380px; } }

/* ------------------------------------------------------------------ l'affiche (la carte d'un héros)
   Chaque héros est une affiche : couleur de sa constellation, numéro, nom en grand, rayons.
   Pas de photo : les droits d'image du site ne sont pas encore réglés, et aucun visage
   n'est inventé (règle de marque n°4). */
.affiche {
  --fond: var(--soleil); --texte: var(--encre); --rayon-c: rgba(255, 255, 255, .28);
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  aspect-ratio: 3 / 4; padding: clamp(18px, 2vw, 26px);
  background: var(--fond); color: var(--texte); text-decoration: none; border-radius: var(--rayon);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.affiche:hover { box-shadow: 0 30px 50px -28px rgba(23, 18, 13, .55); }
.affiche .rayons { width: 150%; right: -62%; top: -30%; z-index: -1; opacity: .9; transition: opacity .4s; }
.affiche .rayons path { fill: var(--rayon-c); }
.affiche .rayons svg { animation-duration: 160s; }
.affiche:hover .rayons svg { animation-duration: 24s; }
.affiche .numero {
  font-family: var(--f-titre); font-weight: 700; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; font-stretch: 100%;
  display: flex; justify-content: space-between; gap: 8px;
}
.affiche .etoile-lue { opacity: 0; transform: scale(.4) rotate(-40deg); transition: all .5s var(--ease-ressort); color: var(--texte); }
.affiche.lu .etoile-lue { opacity: 1; transform: none; }
.affiche .initiales {
  margin-top: auto; font-family: var(--f-titre); font-weight: 800; font-stretch: 75%; letter-spacing: -.05em;
  font-size: clamp(4.4rem, 8vw, 7.4rem); line-height: .78; opacity: .16; user-select: none;
  transition: opacity .4s, transform .6s var(--ease);
}
.affiche:hover .initiales { opacity: .26; transform: translateY(-6px); }
.affiche h3 { font-size: clamp(1.55rem, 1.1rem + 1.3vw, 2.15rem); font-weight: 800; font-stretch: 78%; margin-top: 10px; text-wrap: balance; }
.affiche .pays { font-family: var(--f-titre); font-weight: 600; font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; opacity: .85; font-stretch: 100%; }
.affiche .accroche { font-family: var(--f-texte); font-style: italic; font-size: 1rem; line-height: 1.35; margin-top: 12px; opacity: .92;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.affiche-large { aspect-ratio: 4 / 5; }
.affiche-large .initiales { font-size: clamp(6rem, 13vw, 12rem); }
.affiche-large h3 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.affiche-large .accroche { font-size: 1.15rem; -webkit-line-clamp: 4; }

/* Les cinq familles : une couleur par constellation, toujours la même sur tout le site. */
.c-premiers { --fond: var(--soleil); --texte: var(--encre); --rayon-c: rgba(255, 224, 160, .55); --accent: var(--soleil); }
.c-batisseurs { --fond: var(--laterite); --texte: var(--papier); --rayon-c: rgba(242, 140, 30, .28); --accent: var(--laterite); }
.c-guerisseurs { --fond: var(--foret); --texte: var(--papier); --rayon-c: rgba(242, 180, 52, .2); --accent: var(--foret); }
.c-mainsdor { --fond: var(--or); --texte: var(--encre); --rayon-c: rgba(255, 246, 214, .6); --accent: var(--or); }
.c-coeurs { --fond: var(--prune); --texte: var(--papier); --rayon-c: rgba(242, 140, 30, .22); --accent: var(--prune); }

/* ------------------------------------------------------------------ rail défilant d'affiches */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 300px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--bord) 28px; margin: 0 calc(-1 * var(--bord));
  scrollbar-width: thin; scrollbar-color: var(--encre) transparent; overscroll-behavior-x: contain;
}
.rail > * { scroll-snap-align: start; }
.rail-commandes { display: flex; gap: 10px; }
.rond {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid currentColor; background: transparent; cursor: pointer;
  display: grid; place-items: center; font-size: 1.2rem; transition: background .2s, color .2s, transform .3s var(--ease-ressort);
}
.rond:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); transform: scale(1.06); }

/* ------------------------------------------------------------------ constellations (familles) */
.familles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.famille {
  position: relative; overflow: hidden; isolation: isolate; text-decoration: none;
  background: var(--fond); color: var(--texte); border-radius: var(--rayon); padding: 24px 22px; min-height: 340px;
  display: flex; flex-direction: column; transition: flex .6s var(--ease), transform .4s var(--ease);
}
.famille:hover { transform: translateY(-6px); }
.famille .compte { font-family: var(--f-titre); font-weight: 800; font-size: 4.2rem; font-stretch: 75%; line-height: .8; }
.famille h3 { font-size: 1.7rem; font-stretch: 80%; margin-top: auto; }
.famille p { font-style: italic; font-size: 1rem; line-height: 1.35; margin: 10px 0 0; opacity: .9; }
.famille .rayons { width: 190%; left: -45%; bottom: -105%; z-index: -1; transition: transform 1.2s var(--ease); }
.famille:hover .rayons { transform: rotate(25deg) scale(1.05); }
.famille .rayons path { fill: var(--rayon-c); }
@media (max-width: 1080px) { .familles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .famille { min-height: 230px; } .famille:last-child { grid-column: span 2; } }
@media (max-width: 520px) { .familles { grid-template-columns: 1fr; } .famille:last-child { grid-column: auto; } .famille { min-height: 200px; } }

/* ------------------------------------------------------------------ la frise des époques */
.frise { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 2px solid var(--encre); }
.frise .epoque { padding: 26px 20px 10px 0; border-right: 1px solid var(--encre-20); position: relative; }
.frise .epoque:last-child { border-right: 0; }
.frise .epoque::before {
  content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--fond-point, var(--soleil)); border: 2px solid var(--encre);
}
.frise .epoque:nth-child(1) { --fond-point: #FFC15A; }
.frise .epoque:nth-child(2) { --fond-point: var(--soleil); }
.frise .epoque:nth-child(3) { --fond-point: var(--braise); }
.frise .epoque:nth-child(4) { --fond-point: var(--prune); }
.frise .epoque:nth-child(5) { --fond-point: var(--nuit); }
.frise h3 { font-size: 1.6rem; font-stretch: 80%; }
.frise .nb { font-family: var(--f-titre); font-weight: 600; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--terre); margin: 6px 0 16px; font-stretch: 100%; }
.frise ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.frise li a { display: inline-block; padding: 7px 14px; text-decoration: none; font-family: var(--f-titre); font-weight: 600; font-stretch: 95%; font-size: .98rem; border: 1.5px solid var(--encre-20); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.frise li a:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }
@media (max-width: 860px) { .frise { grid-template-columns: 1fr 1fr; } .frise .epoque { padding-right: 14px; } }
@media (max-width: 480px) { .frise { grid-template-columns: 1fr; border-top: 0; } .frise .epoque { border-right: 0; border-top: 2px solid var(--encre); } }

/* ------------------------------------------------------------------ le ciel (section de nuit) */
.ciel-bloc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ciel-bloc h2 { font-size: var(--t-2xl); font-stretch: 78%; margin: 14px 0 22px; }
.ciel-bloc p { color: var(--ivoire-70); font-size: var(--t-m); }
.ciel-carte { position: relative; aspect-ratio: 16 / 10; }
.ciel-carte svg { width: 100%; height: 100%; overflow: visible; }
.ciel-carte .figure { fill: none; stroke: rgba(242, 180, 52, .55); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ciel-carte .lien-const { stroke: rgba(250, 246, 238, .22); stroke-width: 1.6; }
.ciel-carte .etoile-h { cursor: pointer; }
.ciel-carte .etoile-h .forme { fill: rgba(250, 246, 238, .8); transition: fill .3s, transform .4s var(--ease-ressort); transform-box: fill-box; transform-origin: center; }
.ciel-carte .etoile-h .halo { fill: url(#halo-etoile); opacity: 0; transition: opacity .4s; }
.ciel-carte .etoile-h.lu .forme { fill: var(--or); }
.ciel-carte .etoile-h.lu .halo { opacity: .9; }
.ciel-carte .etoile-h:hover .forme, .ciel-carte .etoile-h:focus .forme { fill: var(--soleil-clair); transform: scale(1.7); }
.ciel-carte .etoile-h:hover .halo, .ciel-carte .etoile-h:focus .halo { opacity: 1; }
.ciel-carte .etoile-h:focus { outline: none; }
.ciel-carte .nom-etoile { font-family: var(--f-texte); font-style: italic; font-size: 40px; fill: rgba(250, 246, 238, .0); transition: fill .3s; pointer-events: none; }
.ciel-carte .etoile-h:hover .nom-etoile, .ciel-carte .etoile-h:focus .nom-etoile, .ciel-carte .etoile-h.lu .nom-etoile { fill: rgba(250, 246, 238, .9); }
.ciel-carte .titre-const { font-family: var(--f-titre); font-weight: 700; font-size: 44px; letter-spacing: .14em; fill: rgba(242, 180, 52, .75); text-transform: uppercase; }
.ciel-carte .poussiere circle { fill: var(--papier); }
.ciel-progression { margin: 26px 0; padding: 18px 20px; border: 1px solid var(--ivoire-20); border-radius: var(--rayon-l); }
.ciel-progression .rang { font-family: var(--f-titre); font-weight: 750; font-size: 1.3rem; color: var(--or); font-stretch: 85%; }
@media (max-width: 900px) { .ciel-bloc { grid-template-columns: 1fr; } .ciel-carte { aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--bord) + 6px); } .ciel-carte .nom-etoile { font-size: 40px; } }

/* ------------------------------------------------------------------ la promesse */
.promesse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--encre); }
.promesse > div { padding: 28px 28px 0 0; }
.promesse > div + div { padding-left: 28px; border-left: 1px solid var(--encre-20); }
.promesse .grand { font-family: var(--f-titre); font-weight: 800; font-stretch: 75%; font-size: var(--t-2xl); line-height: .9; letter-spacing: -.015em; }
.promesse p { margin-top: 14px; font-size: var(--t-m); }
@media (max-width: 760px) { .promesse { grid-template-columns: 1fr; } .promesse > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--encre-20); margin-top: 24px; } }

/* ------------------------------------------------------------------ appel final */
.appel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.appel > a, .appel > div {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--rayon); padding: clamp(28px, 4vw, 52px);
  min-height: 330px; display: flex; flex-direction: column; text-decoration: none;
}
.appel h3 { font-size: var(--t-xl); font-stretch: 78%; max-width: 13ch; }
.appel p { margin: 14px 0 26px; max-width: 26rem; }
.appel .bas { margin-top: auto; }
.appel .rayons { width: 90%; right: -38%; bottom: -55%; z-index: -1; }
.appel .rayons path { fill: rgba(255, 224, 160, .6); }
@media (max-width: 760px) { .appel { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ pages intérieures */
.page-tete { padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.page-tete h1 { font-size: var(--t-3xl); font-stretch: 78%; font-weight: 800; line-height: .9; letter-spacing: -.018em; margin: 16px 0 24px; max-width: 14ch; text-wrap: balance; }
.page-tete .chapo { font-size: var(--t-l); line-height: 1.42; max-width: 40rem; margin: 0; }
.page-tete .rayons { width: min(70vw, 760px); right: -18%; top: -40%; z-index: -1; opacity: .9; }
.page-tete .rayons path { fill: rgba(242, 140, 30, .16); }
.theme-nuit .page-tete .rayons path { fill: rgba(242, 180, 52, .1); }
.page-corps { padding-bottom: clamp(72px, 10vw, 140px); }
.etroit { max-width: 48rem; }

/* La bande de progression : rang, barre, compte, série. */
.bande-quete {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 20px; margin: 0 0 28px;
  border: 2px solid var(--encre); border-radius: 999px; font-family: var(--f-titre); font-stretch: 100%;
}
.bande-quete .bq-rang { font-weight: 750; white-space: nowrap; }
.bande-quete .bq-rang::before { content: "✦ "; color: var(--braise); }
.bande-quete .bq-barre { flex: 1; min-width: 120px; height: 8px; border-radius: 99px; background: var(--encre-10); overflow: hidden; }
.bande-quete .bq-remplie { height: 100%; width: 0; background: linear-gradient(90deg, var(--soleil), var(--braise)); border-radius: 99px; transition: width 1.2s var(--ease); }
.bande-quete .bq-compte, .bande-quete .bq-serie { font-size: var(--t-s); font-weight: 600; white-space: nowrap; }
.bande-quete .bq-serie:empty { display: none; }
.theme-nuit .bande-quete { border-color: var(--ivoire-20); }
.theme-nuit .bande-quete .bq-barre { background: var(--ivoire-20); }

/* Filtres en pastilles + recherche */
.outils-liste { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtres button, .pastille {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--encre-20); background: transparent;
  font-family: var(--f-titre); font-weight: 600; font-size: .95rem; font-stretch: 100%; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, border-color .2s, color .2s;
}
.filtres button:hover, .pastille:hover { border-color: var(--encre); }
.filtres button.actif, .filtres button[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.filtres button .pastille-couleur { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.champ-recherche {
  width: 100%; max-width: 520px; min-height: 54px; padding: 0 22px 0 52px; border-radius: 999px;
  border: 2px solid var(--encre); background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2317120D' stroke-width='2.2'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5'/%3E%3Cpath d='m13.5 13.5 5 5'/%3E%3C/svg%3E") no-repeat 20px center;
  font-family: var(--f-titre); font-size: 1rem; font-stretch: 100%;
}
.champ-recherche::placeholder { color: var(--terre); }
.grille-heros { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44vw), 1fr)); gap: 16px; }
@media (max-width: 520px) { .grille-heros { gap: 10px; } .grille-heros .affiche .accroche { display: none; } .grille-heros .affiche h3 { font-size: 1.35rem; } .grille-heros .affiche .initiales { font-size: 3.6rem; } }
.vide-liste { padding: 40px 0; font-size: var(--t-l); font-style: italic; display: none; }

/* Le fil des histoires */
.fil { border-top: 2px solid var(--encre); }
.fil-entree {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--encre-20); text-decoration: none; position: relative;
  transition: padding .4s var(--ease);
}
.fil-entree::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--bord)); background: var(--accent, var(--soleil)); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.fil-entree:hover { padding-left: 14px; }
.fil-entree:hover::before { transform: scaleY(1); }
.fil-entree.c-batisseurs:hover, .fil-entree.c-guerisseurs:hover, .fil-entree.c-coeurs:hover { color: var(--papier); }
.fil-entree:hover .date, .fil-entree:hover .pilier-tag { color: inherit; }
.fil { position: relative; z-index: 0; }
.fil-entree .date { font-family: var(--f-titre); font-weight: 600; font-size: var(--t-s); color: var(--terre); font-stretch: 100%; }
.fil-entree h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); font-stretch: 78%; }
.fil-entree .accroche { font-style: italic; font-size: var(--t-m); margin-top: 6px; }
.fil-entree .pilier-tag { font-family: var(--f-titre); font-weight: 650; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--terre); font-stretch: 100%; }
.fil-entree.lue h3::after { content: " ✦"; color: var(--braise); font-size: .6em; vertical-align: super; }
@media (max-width: 720px) { .fil-entree { grid-template-columns: 1fr; gap: 6px; } .fil-entree .pilier-tag { order: -1; } }

/* Blocs (IA, soutenir) */
.blocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.bloc {
  border: 2px solid var(--encre); border-radius: var(--rayon-l); padding: clamp(24px, 3vw, 40px); background: var(--papier);
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; isolation: isolate;
}
.bloc h2 { font-size: var(--t-xl); font-stretch: 78%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bloc p { margin: 10px 0 0; }
.bloc .ligne-champ { margin-top: 22px; }
.bloc-plein { grid-column: 1 / -1; }
.bloc-soleil { background: var(--soleil); border-color: var(--soleil); }
.bloc-nuit { background: var(--nuit); color: var(--papier); border-color: var(--nuit); }
.etat { font-family: var(--f-titre); font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; font-stretch: 100%; }
.etat.dispo { background: var(--foret); color: var(--papier); }
.etat.bientot { background: transparent; border: 1.5px solid currentColor; }
.ligne-champ { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ligne-champ input { flex: 1; min-width: 220px; }
input[type="text"], input[type="email"], textarea {
  min-height: 54px; padding: 12px 18px; border: 2px solid var(--encre); border-radius: 12px; background: var(--papier);
  font-family: var(--f-titre); font-size: 1rem; font-stretch: 100%; width: 100%;
}
.bloc-soleil input[type="text"] { background: rgba(250, 246, 238, .9); }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.resultat-generateur { margin-top: 20px; max-width: 320px; }
#radio-etat { margin-top: 18px; font-family: var(--f-titre); font-stretch: 100%; }

/* Formulaire de nomination */
.formulaire { display: grid; gap: 6px; max-width: 44rem; }
.formulaire label { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; margin-top: 22px; font-stretch: 90%; }
.formulaire .aide { font-size: var(--t-s); color: var(--terre); margin: 4px 0 0; }
.zone-copie { display: none; white-space: pre-wrap; margin-top: 18px; padding: 20px; border-radius: 12px; background: var(--papier-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
#nomination-confirmation { margin-top: 18px; font-weight: 600; }
.etapes-nomination { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.etapes-nomination li { counter-increment: etape; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.etapes-nomination li::before { content: counter(etape); font-family: var(--f-titre); font-weight: 800; font-size: 2.6rem; line-height: .9; font-stretch: 75%; color: var(--braise); }
.etapes-nomination strong { font-family: var(--f-titre); font-stretch: 90%; display: block; font-size: 1.15rem; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* Pages légales : lecture sobre. */
.legal h2 { font-size: var(--t-l); margin: 40px 0 12px; font-stretch: 90%; }
.legal p, .legal li { font-size: var(--t-m); }

/* ------------------------------------------------------------------ la fiche d'un héros */
.fiche-tete {
  position: relative; overflow: hidden; isolation: isolate; background: var(--fond); color: var(--texte);
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); margin-top: -71px; padding-top: calc(71px + clamp(40px, 6vw, 80px));
}
.fiche-tete .rayons { width: min(120vw, 1300px); right: -38%; top: -45%; z-index: -1; }
.fiche-tete .rayons path { fill: var(--rayon-c); }
.fiche-tete .initiales-fond {
  position: absolute; right: 4vw; bottom: -5vw; z-index: -1; font-family: var(--f-titre); font-weight: 800; font-stretch: 75%;
  font-size: clamp(12rem, 34vw, 32rem); line-height: .75; letter-spacing: -.04em; opacity: .12; user-select: none; pointer-events: none;
}
.fil-ariane { font-family: var(--f-titre); font-weight: 600; font-size: var(--t-s); font-stretch: 100%; display: flex; gap: 8px; flex-wrap: wrap; opacity: .85; }
.fil-ariane a { text-decoration: none; border-bottom: 1px solid currentColor; }
.fiche-tete .etiquette { margin-top: 36px; }
.fiche-tete h1 {
  font-size: clamp(3.2rem, 1rem + 9.5vw, 10rem); font-weight: 800; font-stretch: 75%; line-height: .84; letter-spacing: -.02em;
  margin: 16px 0 26px; max-width: 12ch; text-wrap: balance;
}
.fiche-tete .accroche {
  font-family: var(--f-texte); font-style: italic; font-size: var(--t-xl); line-height: 1.12; letter-spacing: -.015em;
  max-width: 24ch; text-wrap: balance;
}
.fiche-tete .meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-family: var(--f-titre); font-weight: 600; font-size: var(--t-s); font-stretch: 100%; }
.fiche-tete .meta span { display: inline-flex; align-items: center; gap: 8px; }
.fiche-tete .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* --tt et --tf figent les couleurs de la constellation au niveau de l'en-tête : .bouton
   redéfinit --fond et --texte pour lui-même, on ne peut donc pas s'y référer depuis le bouton. */
.fiche-tete { --tt: var(--texte); --tf: var(--fond); }
.fiche-tete .bouton-contour { color: var(--tt); }
.fiche-tete.c-batisseurs .bouton-contour:hover, .fiche-tete.c-guerisseurs .bouton-contour:hover, .fiche-tete.c-coeurs .bouton-contour:hover { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.fiche-tete .bouton-plein { background: var(--tt); color: var(--tf); border-color: var(--tt); }

.progression-lecture { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; pointer-events: none; }
.progression-lecture span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--soleil), var(--braise) 70%, var(--prune)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.recit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--lecture)) minmax(0, 1fr); padding: clamp(48px, 7vw, 96px) var(--bord) 0; }
.recit > * { grid-column: 2; }
.recit .chapeau { font-size: var(--t-l); line-height: 1.45; font-weight: 500; margin-bottom: 1.3em; }
.recit .chapeau::first-letter {
  float: left; font-family: var(--f-titre); font-weight: 800; font-stretch: 75%; font-size: 5.4em; line-height: .78; padding: .06em .1em 0 0; color: var(--braise);
}
.recit p { font-size: 1.24rem; line-height: 1.68; margin-bottom: 1.15em; }
@media (max-width: 600px) { .recit p { font-size: 1.14rem; } }
.recit h2 { font-size: var(--t-xl); font-stretch: 78%; margin: 64px 0 22px; }
.jalons { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--encre); }
.jalons li { position: relative; padding: 0 0 22px 28px; font-family: var(--f-titre); font-weight: 550; font-size: 1.08rem; line-height: 1.4; font-stretch: 95%; }
.jalons li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent, var(--soleil)); border: 2px solid var(--encre); }
.jalons li:last-child { padding-bottom: 0; }
.sources-liste { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sources-liste li { counter-increment: s; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--encre-20); position: relative; font-size: 1.05rem; }
.sources-liste li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--f-titre); font-weight: 700; font-size: var(--t-xs); color: var(--braise); }
.sources-liste a { text-decoration-color: var(--soleil); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.note-verite { margin-top: 22px; padding: 18px 20px; background: var(--papier-2); border-radius: 12px; font-size: 1rem; font-style: italic; }

/* L'allumage : à la fin du récit, l'étoile monte (et seulement là). */
.allumage {
  margin-top: clamp(64px, 9vw, 120px); text-align: center; padding: clamp(64px, 9vw, 120px) var(--bord) clamp(56px, 8vw, 100px);
  background: linear-gradient(180deg, var(--papier) 0%, #F7B15B 14%, var(--braise) 36%, var(--prune) 62%, var(--nuit) 100%);
  color: var(--papier); position: relative; overflow: hidden;
}
.allumage .scene { position: relative; height: 220px; max-width: 420px; margin: 0 auto; }
.allumage .etoile-montante {
  position: absolute; left: 50%; bottom: 0; width: 86px; height: 86px; translate: -50% 0; color: var(--or);
  filter: drop-shadow(0 0 22px rgba(242, 180, 52, .85)); opacity: .35; transform: translateY(40px) scale(.6);
  transition: transform 1.8s var(--ease), opacity 1.2s;
}
.allumage.allumee .etoile-montante { transform: translateY(-110px) scale(1) rotate(180deg); opacity: 1; }
.allumage .ligne-horizon { position: absolute; left: 0; right: 0; bottom: 30px; height: 1px; background: rgba(250, 246, 238, .45); }
.allumage h2 { font-size: var(--t-2xl); font-stretch: 78%; max-width: 16ch; margin: 18px auto 14px; }
.allumage p { color: var(--ivoire-70); max-width: 34rem; margin: 0 auto 26px; }
.allumage .ou-suivre { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.voisins { padding: clamp(56px, 8vw, 110px) 0; background: var(--nuit); color: var(--papier); }
.voisins .rail { scrollbar-color: var(--papier) transparent; }
.suite-fiche { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ivoire-20); margin-top: 56px; }
.suite-fiche a { padding: 28px 0; text-decoration: none; display: block; }
.suite-fiche a + a { text-align: right; border-left: 1px solid var(--ivoire-20); }
.suite-fiche .sens { display: block; font-family: var(--f-titre); font-weight: 650; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ivoire-70); margin-bottom: 8px; }
.suite-fiche strong { font-family: var(--f-titre); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); font-stretch: 78%; font-weight: 800; transition: color .2s; }
.suite-fiche a:hover strong { color: var(--or); }

/* ------------------------------------------------------------------ mon ciel */
.theme-nuit { background: var(--nuit); color: var(--papier); }
.theme-nuit .page-tete .chapo { color: var(--ivoire-70); }
#toile-mon-ciel { width: 100%; height: auto; border-radius: var(--rayon-l); border: 1px solid var(--ivoire-20); }
.liste-lus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.liste-lus .pastille { border-color: var(--ivoire-20); color: var(--papier); }
.liste-lus .pastille:hover { border-color: var(--or); color: var(--or); }
.stats-ciel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ivoire-20); margin: 8px 0 30px; }
.stats-ciel > div { padding: 22px 20px 6px 0; }
.stats-ciel > div + div { padding-left: 20px; border-left: 1px solid var(--ivoire-20); }
.stats-ciel strong { display: block; font-family: var(--f-titre); font-weight: 800; font-size: var(--t-2xl); font-stretch: 75%; line-height: .9; color: var(--or); }
.stats-ciel span { font-family: var(--f-titre); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ivoire-70); }
@media (max-width: 600px) { .stats-ciel { grid-template-columns: 1fr; } .stats-ciel > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ivoire-20); } }

/* ------------------------------------------------------------------ pied de page */
.pied { background: var(--encre); color: var(--papier); padding: clamp(64px, 9vw, 120px) 0 28px; position: relative; overflow: hidden; }
.pied .grand-mot {
  font-family: var(--f-titre); font-weight: 800; font-stretch: 75%; letter-spacing: -.04em; line-height: .8;
  font-size: clamp(4rem, 15.5vw, 15rem); white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(250, 246, 238, .3);
  margin: 0 0 clamp(40px, 6vw, 72px);
}
.pied .grand-mot span { color: var(--soleil); -webkit-text-stroke: 0; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pied h3 { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--soleil); margin-bottom: 16px; font-stretch: 100%; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li a { display: inline-block; padding: 6px 0; text-decoration: none; font-family: var(--f-titre); font-weight: 600; font-stretch: 95%; font-size: 1.08rem; }
.pied li a:hover { color: var(--soleil); }
.pied .engagement { font-family: var(--f-texte); font-style: italic; font-size: var(--t-l); line-height: 1.3; margin-bottom: 14px; }
.pied p { color: var(--ivoire-70); font-size: 1rem; }
.pied .fin { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ivoire-20); font-family: var(--f-titre); font-size: var(--t-xs); color: var(--ivoire-70); font-stretch: 100%; }
.pied .fin a { text-decoration: none; }
.pied .fin a:hover { color: var(--soleil); }
@media (max-width: 860px) { .pied-grille { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ toast (célébration) */
.toast-ah {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100vw - 32px);
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--encre); color: var(--papier); padding: 14px 22px; border-radius: 999px;
  font-family: var(--f-titre); font-weight: 650; font-size: .98rem; font-stretch: 100%;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); transition: transform .6s var(--ease-ressort), opacity .4s;
}
.toast-ah.visible { transform: translate(-50%, 0); opacity: 1; }
.toast-ah::first-letter { color: var(--or); }

/* ------------------------------------------------------------------ 404 */
.page-404 { min-height: 80svh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--soleil), var(--braise) 60%, var(--prune)); color: var(--encre); position: relative; overflow: hidden; isolation: isolate; margin-top: -71px; padding-top: 71px; }
.page-404 h1 { font-size: var(--t-3xl); font-stretch: 75%; font-weight: 800; line-height: .86; max-width: 12ch; margin: 14px auto 22px; }
.page-404 p { max-width: 30rem; margin: 0 auto 28px; font-size: var(--t-l); }
.page-404 .rayons { width: 110vmin; left: 50%; bottom: -70vmin; translate: -50% 0; z-index: -1; }
.page-404 .rayons path { fill: rgba(255, 210, 140, .35); }

/* ------------------------------------------------------------------ apparition au défilement
   Seulement quand le JS tourne (classe .js sur <html>) : sans JS, tout reste visible. */
.js .revele { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--retard, 0s); }
.js .revele.vu { opacity: 1; transform: none; }
.js .figure-trace { stroke-dasharray: var(--long, 2000); stroke-dashoffset: var(--long, 2000); transition: stroke-dashoffset 2.6s var(--ease); }
.js .vu .figure-trace { stroke-dashoffset: 0; }

/* Transitions entre pages (navigateurs qui les connaissent ; les autres chargent normalement).
   L'affiche cliquée devient le titre de la fiche : le nom « voyage » d'une page à l'autre. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }

/* ------------------------------------------------------------------ mouvement réduit
   Respecté partout : plus de rotation, de défilement ni de montée, le contenu reste. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .defile .piste { animation: none; flex-wrap: wrap; white-space: normal; }
  .js .revele { opacity: 1; transform: none; }
  .js .figure-trace { stroke-dashoffset: 0; }
  @view-transition { navigation: none; }
}

@media print {
  .entete, .pied, .allumage, .voisins, .progression-lecture, .defile { display: none !important; }
  .fiche-tete { background: none; color: #000; margin: 0; padding: 0; }
}

/* ------------------------------------------------------------------ compléments */
[hidden] { display: none !important; }
/* Sur le soleil (accueil) et sur l'en-tête coloré d'une fiche, l'en-tête prend la couleur du texte de la page. */
.theme-soleil .entete.en-haut { color: var(--texte, var(--encre)); }
.theme-soleil .entete.en-haut .nav-principale a.nav-action { background: var(--texte, var(--encre)); color: var(--fond, var(--papier)); }
@media (max-width: 960px) { .theme-soleil .entete.en-haut .nav-principale a.nav-action { background: var(--encre); color: var(--papier); } }
.menu-ouvert .entete { color: var(--encre) !important; }

/* Pages légales : elles gardent leur balisage, rendu ici dans le nouveau système. */
.page { max-width: var(--large); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--bord); }
.page-etroite { max-width: calc(52rem + 2 * var(--bord)); }
.surtitre { font-family: var(--f-titre); font-size: var(--t-xs); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--braise); }
.titre-page { font-size: var(--t-2xl); font-stretch: 75%; font-weight: 800; line-height: .9; margin: 14px 0 22px; }
.page .chapo { font-size: var(--t-l); line-height: 1.42; color: var(--terre); }

.une .accroche-geante.longue { font-size: var(--t-xl); line-height: 1.12; }
/* Deux vues des mêmes héros : en affiches ou en liste. */
.bascule-vue { display: inline-flex; padding: 4px; border: 2px solid var(--encre); border-radius: 999px; margin-bottom: 22px; }
.bascule-vue a { padding: 8px 20px; border-radius: 999px; text-decoration: none; font-family: var(--f-titre); font-weight: 650; font-stretch: 100%; }
.bascule-vue a[aria-current="page"] { background: var(--encre); color: var(--papier); }
#toile-mon-ciel { max-width: 560px; }
@media (max-width: 600px) { .bande-quete { border-radius: 18px; } .lever .compteurs { gap: 18px; } .lever .compteurs strong { font-size: 2rem; } }
