/* AERO — le manuel. Même cockpit de nuit que le reste du site, mais une
   page qui se LIT : pas de globe, un couloir de vol vertical que l'avion
   descend au fil de la lecture, et des chapitres qui se posent un par un. */

.page-doc {
  min-height: 100%;
  background: var(--nuit);
}

/* ---- le ciel de fond : un dégradé qui respire et des étoiles */
.ciel-doc { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ciel-lueur {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(125, 255, 160, .10), transparent 62%),
    radial-gradient(70% 50% at 50% 110%, rgba(125, 255, 160, .06), transparent 60%),
    linear-gradient(180deg, #05080f 0%, #04060b 55%, #03050a 100%);
}
#etoiles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- le couloir de vol : la colonne de gauche */
.couloir {
  position: fixed;
  left: clamp(1.1rem, 4.5vw, 4rem);
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}
.couloir-ligne,
.couloir-trace {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  width: 1.5px;
  top: 16vh;
  bottom: 12vh;
}
/* la route à parcourir : pointillés fins */
.couloir-ligne {
  background: repeating-linear-gradient(180deg,
    var(--hud-25) 0 6px, transparent 6px 14px);
  opacity: .55;
}
/* la trace déjà volée : pleine, lumineuse, sa hauteur suit la lecture */
.couloir-trace {
  bottom: auto;
  height: 0;
  background: linear-gradient(180deg, rgba(125, 255, 160, .15), var(--hud));
  box-shadow: 0 0 10px rgba(125, 255, 160, .5);
}
.couloir-avion {
  position: absolute;
  left: 50%;
  top: 16vh;
  translate: -50% -50%;
  line-height: 0;
  will-change: transform, top;
}
.couloir-avion svg {
  display: block;
  fill: var(--hud);
  /* le nez vers le BAS : on descend la page */
  rotate: 180deg;
  filter: drop-shadow(0 0 6px rgba(125, 255, 160, .8));
}
/* les jalons : un point par chapitre, qui s'allume au passage */
/* Un jalon par chapitre. Non franchi : un cercle creux, visible sans
   crier. Franchi : un point plein cerclé de nuit, pour qu'il se détache
   de la trace lumineuse qui passe dessous. */
.jalon {
  position: absolute;
  left: 50%;
  width: 9px; height: 9px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--nuit);
  border: 1.5px solid rgba(125, 255, 160, .45);
  transition: background .35s ease, border-color .35s ease,
              box-shadow .35s ease, scale .35s cubic-bezier(.2, 1.6, .4, 1);
}
.jalon.passe {
  background: var(--hud);
  border-color: var(--nuit);
  box-shadow: 0 0 0 1.5px var(--hud), 0 0 10px rgba(125, 255, 160, .9);
  scale: 1.15;
}
/* la traînée de condensation : de petites bouffées qui s'évaporent */
.bouffee {
  position: absolute;
  left: 50%;
  width: 4px; height: 4px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(125, 255, 160, .5);
  animation: bouffee 1.5s ease-out forwards;
}
@keyframes bouffee {
  to { opacity: 0; scale: 3.6; filter: blur(3px); }
}

/* ---- l'en-tête */
.doc-tete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.1rem, 5vw, 3rem);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  background: linear-gradient(180deg, rgba(4, 6, 11, .92), transparent);
}
.doc-tete .hud-gauche { display: flex; align-items: center; gap: .85rem; }
.doc-tete .hud-x {
  display: grid;
  place-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  color: var(--sourd);
  transition: color .2s, border-color .2s, background .2s;
}
.doc-tete .hud-x svg { display: block; fill: currentColor; }
.doc-tete .hud-x:hover { color: var(--nuit); background: var(--hud); border-color: var(--hud); }
.doc-retour { color: var(--hud); text-decoration: none; }
.doc-retour:hover { text-decoration: underline; }
.doc-alt { color: var(--sourd); }

/* ---- le corps du manuel */
.doc {
  position: relative;
  z-index: 3;
  max-width: 42rem;
  margin-inline: auto;
  padding: 0 clamp(1.2rem, 5vw, 2rem) 6rem;
  padding-left: clamp(3.4rem, 11vw, 7.5rem);
}

.doc-heros { padding: 24vh 0 18vh; }
.doc-kicker {
  margin: 0 0 1.2rem;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  color: var(--hud);
}
.doc-heros h1 {
  margin: 0 0 1.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 13vw, 6rem);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.doc-heros h1 .ligne { display: block; }
.doc-sous {
  margin: 0 0 2.4rem;
  max-width: 30rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--sourd);
}
.doc-defile {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  color: var(--hud);
  animation: respire 2.6s ease-in-out infinite;
}
@keyframes respire { 50% { opacity: .35; } }

/* ---- un chapitre */
.etape {
  padding: 10vh 0;
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1);
}
.etape.posee { opacity: 1; translate: 0 0; }
.etape-num {
  margin: 0 0 .7rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--hud);
}
/* La pastille « pas encore » : un chapitre qui décrit ce qui vient, pas
   ce qui marche aujourd'hui. Même langage que le 03 / HUNT de l'accueil. */
.etape-bientot {
  display: inline-block;
  margin-left: .55rem;
  padding: .22rem .55rem;
  border: 1px solid var(--hud-25, rgba(125, 255, 160, .25));
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--hud);
  vertical-align: middle;
}

.etape h2 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 5.6vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
/* Le sous-titre d'un chapitre : plus petit que le titre, plus fort que le
   texte. Il ouvre le passage sur le don, qui mérite d'être trouvé sans
   lire tout le chapitre. */
.etape-sous {
  margin: 2.2rem 0 .9rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.etape p { margin: 0 0 1rem; font-size: clamp(.98rem, 2.4vw, 1.06rem); line-height: 1.65; }
.etape b { color: var(--texte); font-weight: 500; }
.etape-note {
  padding-left: 1rem;
  border-left: 2px solid var(--hud-25);
  color: var(--sourd);
  font-size: .93rem !important;
}

/* ---- LES TROIS PANIERS
   Ce que les holders reçoivent, montré plutôt que décrit. Les logos sont
   les vrais, servis par nous, ramenés au blanc comme dans le bandeau du
   bas : sur une page de nuit, trois chartes graphiques se battraient. */
.paniers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.4rem, 1fr));
  gap: .6rem;
  margin: 1.8rem 0 2rem;
}
.panier {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.1rem 1.1rem 1rem;
  background: rgba(6, 10, 18, .78);
  border: 1px solid var(--trait);
  border-left: 2px solid var(--hud);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.panier-logo {
  height: 18px;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
  opacity: .85;
}
/* Firefly n'a pas de logo librement diffusé : son nom, dans notre fonte */
.panier-mot {
  margin: 0 !important;
  font-family: var(--mono);
  font-size: 13px !important;
  letter-spacing: .3em;
  line-height: 18px;
  color: var(--texte);
}
.panier-nom {
  margin: 0 !important;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--display);
  font-size: 1.05rem !important;
  font-weight: 600;
}
.panier-nom span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--hud);
}
.panier-txt {
  margin: 0 !important;
  font-size: .92rem !important;
  line-height: 1.5;
  color: var(--sourd);
}
/* Sur un téléphone, une colonne : deux cartes de 150 px côte à côte
   tiennent, mais on n'y lit plus ni le nom ni l'adresse. */
@media (max-width: 640px) {
  .paniers { grid-template-columns: 1fr; }
}
.panier-adr {
  margin: auto 0 0 !important;
  padding-top: .4rem;
  font-family: var(--mono);
  font-size: 9.5px !important;
  letter-spacing: .14em;
  color: var(--sourd);
  opacity: .7;
}

/* ---- le panneau de trésorerie en direct */
.tresorerie-live {
  margin-top: 2rem;
  padding: 1.2rem 1.3rem 1rem;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-left: 2px solid var(--hud);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.tl-titre {
  margin: 0 0 1rem !important;
  font-family: var(--mono);
  font-size: 10px !important;
  letter-spacing: .28em;
  color: var(--hud);
}
.tl-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.1rem;
}
.tl-grille div { display: grid; gap: .25rem; }
.tl-grille span {
  font-family: var(--display);
  /* Les montants se lisent en ETH depuis que les frais tombent en natif :
     « 0.000404 ETH » est long, et cassait sur deux lignes au téléphone.
     Le plancher descend donc juste ce qu'il faut pour tenir sur une. */
  font-size: clamp(1.05rem, 4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.tl-grille i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--sourd);
}
.tl-etat {
  margin: 1rem 0 0 !important;
  font-family: var(--mono);
  font-size: 10px !important;
  letter-spacing: .12em;
  color: var(--sourd);
}

/* ---- le registre des dons : une ligne par versement, sa preuve au bout */
.dons-liste {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}
.dons-liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .9rem;
  padding-top: .5rem;
  border-top: 1px solid var(--trait);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--sourd);
}
.dons-liste b { color: var(--texte); font-weight: 500; }
.dons-liste code {
  font-size: 9.5px;
  opacity: .75;
  word-break: break-all;
}
.dons-liste a { color: var(--hud); text-decoration: none; }
.dons-liste a:hover { text-decoration: underline; }

/* Le lien du dernier achat : dans l'état, mais cliquable et vert HUD —
   c'est une preuve, elle doit se voir comme telle. */
.tl-etat a { color: var(--hud); text-decoration: none; }
.tl-etat a:hover { text-decoration: underline; }

/* ---- les chiffres en ligne */
.liste-chiffres {
  margin: 1.4rem 0 1.4rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.liste-chiffres li {
  display: grid;
  gap: .15rem;
  padding: .7rem .95rem;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-radius: 10px;
}
.liste-chiffres b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hud);
}
.liste-chiffres span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--sourd); }

/* ---- la fin */
.boucle {
  padding: 1.2rem 1.3rem;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-radius: 14px;
  font-family: var(--mono) !important;
  font-size: .86rem !important;
  line-height: 1.9 !important;
  letter-spacing: .02em;
  color: var(--texte);
}
.doc-sorties { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 1.4rem; }
.doc-cta {
  display: inline-block;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  background: var(--hud);
  color: var(--nuit);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-decoration: none;
  transition: opacity .2s;
}
.doc-cta:hover { opacity: .85; }
.doc-cta-fin { background: none; border: 1px solid var(--hud-25); color: var(--hud); }

.doc-pied {
  position: relative;
  z-index: 3;
  padding: 2rem clamp(1.2rem, 5vw, 3rem) 3.5rem;
  padding-left: clamp(3.4rem, 11vw, 7.5rem);
  max-width: 42rem;
  margin-inline: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--sourd);
}

/* ---- petits écrans : le couloir se resserre, rien ne déborde */
@media (max-width: 640px) {
  .couloir { width: 22px; left: .7rem; }
  .doc { padding-left: 2.9rem; }
  .doc-pied { padding-left: 2.9rem; }
  .doc-heros { padding: 20vh 0 14vh; }
  .etape { padding: 8vh 0; }
  .rep-barre { height: 34px; }
  .rp-gaz i { font-size: 8.5px; }
}

/* ---- sans mouvement : tout est posé, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  .etape { opacity: 1; translate: none; transition: none; }
  .rp { width: var(--p); transition: none; }
  .doc-defile { animation: none; }
  .couloir-avion { display: none; }
  .bouffee { display: none; }
}
