/* =====================================================================
   LA STATION — feuille de style (29/09/2026, refonte « flux »)

   Direction artistique conservée : thème sombre, ambre et orange de
   Radar, Space Grotesk pour le texte, JetBrains Mono pour les mentions
   techniques.

   Ce qui change par rapport à la version dialogue : le rythme. Toutes
   les transitions sont courtes (160 à 220 ms). Rien ne fait attendre.
   Une carte cliquée réagit immédiatement.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. LES COULEURS
   --------------------------------------------------------------------- */
:root {
  /* 15/11/2026 — « la Station aux couleurs du cockpit » : mêmes NOMS de jetons qu'avant,
     mais les VALEURS sont celles du cockpit (public/studio-professeur/refonte-studio.css,
     jetons --r-*, thème sombre). Trois jetons en plus : le bleu des boutons du cockpit. */
  --fond:       #0b1222;
  --carte:      #142036;
  --carte-haut: #1a2946;
  --trait:      rgba(56, 189, 248, .16);
  --trait-fort: rgba(56, 189, 248, .36);
  --texte:      #eaf1fb;
  --texte-doux: #a9b8cf;
  --ambre:      #f5b544;
  --orange:     #f5b544;
  --vert:       #34e2c8;
  --primaire:       #38bdf8;
  --primaire-2:     #7dd3fc;
  --primaire-texte: #04121e;
  /* Suppression de compte (06/10/2026) : le seul endroit du site où l'on annonce une
     destruction. Un jeton à part, pour ne pas détourner --orange (qui sert aux alertes
     pédagogiques « notions à revoir » — un ton d'attention, pas de danger). */
  --alerte:     #ff6b6b;
  --alerte-fond: rgba(255, 107, 107, .10);

  --vif: 180ms cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

/* Le halo de la page est ambré : superbe sur le fond spatial, il donnait au mode
   jour une teinte crème alors que la palette claire retenue le 29/09 pour tout le
   site est le bleu marine sur fond bleuté pâle. On remplace donc le halo, on ne
   l'enlève pas : la page garderait un fond parfaitement plat. */
:root[data-theme="jour"] body {
  background-image:
    radial-gradient(1100px 620px at 50% -18%, rgba(31, 75, 122, .10), transparent 68%),
    radial-gradient(800px 460px at 50% 0%,  rgba(31, 75, 122, .05), transparent 64%);
}

:root[data-theme="jour"] {
  /* Valeurs du cockpit, thème clair (15/11/2026). */
  --fond:       #eef5fc;
  --carte:      #ffffff;
  --carte-haut: #f2f7fc;
  --trait:      rgba(31, 75, 122, .14);
  --trait-fort: rgba(31, 75, 122, .28);
  --texte:      #14314c;
  --texte-doux: #4a6580;
  /* Sur fond blanc, l'ambre de nuit devient illisible : celui du cockpit clair est foncé. */
  --ambre:      #a85a12;
  --orange:     #a85a12;
  --vert:       #0b8a52;
  --primaire:       #1f4b7a;
  --primaire-2:     #3a6d9e;
  --primaire-texte: #ffffff;
  /* Sur fond blanc, le rouge de nuit perd son contraste : on le fonce. */
  --alerte:     #c0392b;
  --alerte-fond: rgba(192, 57, 43, .07);
  color-scheme: light;
}

/* ---------------------------------------------------------------------
   2. LA PAGE
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

/* Plusieurs blocs sont affichés en `grid` ou en `flex`. Sans cette ligne,
   ces `display:` l'emportent sur l'attribut `hidden` du HTML et un bloc
   censé être masqué reste visible. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--texte);
  background: var(--fond);
  background-image:
    radial-gradient(1100px 620px at 50% -18%, rgba(246, 196, 83, .12), transparent 68%),
    radial-gradient(800px 460px at 50% 0%,  rgba(232, 120, 52, .07), transparent 64%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.station {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 20px 36px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------------------------------------------------------------------
   3. L'ENSEIGNE
   --------------------------------------------------------------------- */
.enseigne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.enseigne__marque { display: flex; align-items: center; gap: 11px; }

.enseigne__point {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 9px var(--vert);
  animation: respire 3.2s ease-in-out infinite;
}
@keyframes respire { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.enseigne__nom {
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.enseigne__outils { display: flex; align-items: center; gap: 8px; }

/* Le solde de Pages ------------------------------------------------------ */
.solde {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 17px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  transition: border-color var(--vif), box-shadow var(--vif);
}
.solde__glyphe { color: var(--ambre); font-size: .8rem; align-self: center; }
.solde__nombre {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.solde__mot {
  font-family: "JetBrains Mono", monospace;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* Le cadre s'allume une fois quand le solde bouge. Deux couleurs :
   ambre pour un crédit, orange pour un débit. */
.solde--credite { animation: flashSolde 1.2s ease; }
.solde--debite  { animation: flashSoldeDebit 1.2s ease; }
@keyframes flashSolde {
  0%   { border-color: var(--trait); }
  20%  { border-color: var(--ambre); box-shadow: 0 0 20px rgba(246, 196, 83, .32); }
  100% { border-color: var(--trait); box-shadow: none; }
}
@keyframes flashSoldeDebit {
  0%   { border-color: var(--trait); }
  20%  { border-color: var(--orange); box-shadow: 0 0 20px rgba(232, 120, 52, .28); }
  100% { border-color: var(--trait); box-shadow: none; }
}

.bouton-nu {
  font: inherit;
  font-size: .95rem;
  padding: 8px 12px;
  color: var(--texte);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--vif), color var(--vif);
}
.bouton-nu:hover { border-color: var(--trait); }

/* ---------------------------------------------------------------------
   4. LE BANDEAU D'ACCUEIL
   Radar y est une illustration : grand, posé à gauche, il ne demande
   rien et n'attend aucune réponse.
   --------------------------------------------------------------------- */
.accueil {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 26px 18px 18px;
  background: linear-gradient(120deg, var(--carte-haut), var(--carte));
  border: 1px solid var(--trait);
  border-radius: 18px;
}

.accueil__radar {
  width: 96px;
  flex: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4));
}

.accueil__mots { min-width: 0; }

.accueil__surtitre {
  margin: 0 0 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}

.accueil__titre {
  margin: 0 0 6px;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.accueil__titre span { color: var(--ambre); }

.accueil__note { margin: 0; font-size: .86rem; color: var(--texte-doux); }

/* ---------------------------------------------------------------------
   5a. LES ONGLETS
   Deux seulement, soulignés d'un trait ambre. Visuellement plus forts
   que les filtres en dessous : on doit voir d'un coup d'œil qu'on
   change de lieu, pas seulement de tri.
   --------------------------------------------------------------------- */
.onglets {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--trait);
}

.onglet {
  position: relative;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  color: var(--texte-doux);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--vif), border-color var(--vif);
}
.onglet:hover { color: var(--texte); }
.onglet--actif { color: var(--texte); border-bottom-color: var(--ambre); }

/* Le petit compteur à droite du nom de l'onglet. */
.onglet__compte {
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 700;
  padding: 2px 8px;
  color: var(--texte-doux);
  background: color-mix(in srgb, var(--texte-doux) 16%, transparent);
  border-radius: 999px;
  transition: color var(--vif), background var(--vif);
}
.onglet--actif .onglet__compte {
  color: #17120a;
  background: var(--ambre);
}

/* ---------------------------------------------------------------------
   5b. LES FILTRES
   --------------------------------------------------------------------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }

.filtre {
  font: inherit;
  font-size: .84rem;
  padding: 8px 17px;
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--vif), border-color var(--vif), background var(--vif);
}
.filtre:hover { color: var(--texte); border-color: color-mix(in srgb, var(--ambre) 50%, transparent); }
.filtre--actif {
  color: var(--ambre);
  border-color: var(--ambre);
  background: color-mix(in srgb, var(--ambre) 9%, transparent);
}

/* ---------------------------------------------------------------------
   6. LE FLUX ET SES CARTES
   Une carte = un titre, deux lignes, un bouton. Tout est lisible sans
   cliquer, et l'action est au même endroit sur chaque carte.
   --------------------------------------------------------------------- */
.flux { display: flex; flex-direction: column; gap: 12px; }

.carte {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 16px;
  animation: entre .3s var(--vif) both;
  transition: border-color var(--vif), transform var(--vif), background var(--vif);
}
.carte:hover { border-color: color-mix(in srgb, var(--ambre) 40%, transparent); }

@keyframes entre {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Carte déjà traitée : elle reste lisible, mais elle recule visuellement. */
.carte--fait { background: transparent; }
.carte--fait .carte__titre { color: var(--texte-doux); }
.carte--fait .embleme { opacity: .45; }

/* L'emblème hexagonal, à gauche ----------------------------------------- */
.embleme { width: 46px; height: 46px; flex: none; }
.embleme__fond {
  fill: color-mix(in srgb, var(--ambre) 12%, transparent);
  stroke: color-mix(in srgb, var(--ambre) 55%, transparent);
  stroke-width: 2.5;
}
.embleme__trait {
  fill: none;
  stroke: var(--ambre);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Le corps de la carte --------------------------------------------------- */
.carte__corps { min-width: 0; }

.carte__categorie {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}
.carte__date { color: var(--texte-doux); }

/* La pastille « nouveau » : un point, pas un badge rouge criard. */
.carte__neuf {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 8px var(--vert);
}

.carte__titre {
  margin: 0 0 5px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

.carte__resume {
  margin: 0;
  font-size: .89rem;
  line-height: 1.5;
  color: var(--texte-doux);
  text-wrap: pretty;
}

/* Le bouton d'action ------------------------------------------------------
   Toujours au même endroit, toujours de la même taille : on sait où
   cliquer avant même d'avoir lu la carte. */
.carte__action { display: grid; justify-items: end; gap: 5px; flex: none; }

.action {
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 11px 20px;
  color: #17120a;
  background: var(--ambre);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--vif), filter var(--vif), box-shadow var(--vif);
}
.action:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 10px 22px rgba(246, 196, 83, .24);
}
.action:active { transform: translateY(0) scale(.97); }

/* Variante discrète : pour « voir le détail », qui n'est pas une action
   qui engage quelque chose. */
.action--discret {
  color: var(--texte);
  background: transparent;
  border: 1px solid var(--trait);
}
.action--discret:hover {
  border-color: var(--ambre);
  color: var(--ambre);
  background: transparent;
  box-shadow: none;
}

/* Solde insuffisant : le bouton reste lisible mais n'invite plus. */
.action:disabled {
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.carte__cout {
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--texte-doux);
}

/* L'état « c'est fait » : une coche verte et un mot. Aucune animation
   de célébration — l'information suffit. */
.fait {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--vert);
  white-space: nowrap;
  animation: entre .22s var(--vif) both;
}
.fait__coche {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vert) 18%, transparent);
  font-size: .68rem;
}

/* Le flash qui parcourt une carte au moment de l'action : 400 ms, une
   seule fois. C'est la confirmation visuelle, et elle ne bloque rien. */
.carte--valide { animation: valide .5s ease; }
@keyframes valide {
  0%   { border-color: var(--ambre); box-shadow: 0 0 0 rgba(246, 196, 83, 0); }
  30%  { border-color: var(--ambre); box-shadow: 0 0 26px rgba(246, 196, 83, .26); }
  100% { border-color: var(--trait); box-shadow: none; }
}

/* ---------------------------------------------------------------------
   6b. LE JOURNAL
   Un fil de publications qu'on lit et qu'on peut aimer. Pas de champ de
   commentaire : on approuve, on ne répond pas. C'est un choix, pas un
   manque — modérer des commentaires d'enseignants coûterait du temps
   que personne n'a, et un compteur de « j'aime » suffit à savoir ce qui
   a plu.
   --------------------------------------------------------------------- */
.journal { display: flex; flex-direction: column; gap: 12px; }

.billet {
  padding: 20px 22px 16px;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 16px;
  animation: entre .3s var(--vif) both;
  transition: border-color var(--vif);
}
.billet:hover { border-color: color-mix(in srgb, var(--ambre) 32%, transparent); }

/* L'en-tête : qui parle, et quand. */
.billet__entete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.billet__portrait {
  width: 38px; height: 38px;
  flex: none;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 1px solid var(--trait);
  background: color-mix(in srgb, var(--ambre) 10%, transparent);
}

/* Quand l'auteur n'a pas de portrait, une pastille avec ses initiales. */
.billet__initiales {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: .76rem;
  font-weight: 700;
  color: var(--ambre);
  background: color-mix(in srgb, var(--ambre) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ambre) 40%, transparent);
}

.billet__qui { min-width: 0; }
.billet__auteur { margin: 0; font-size: .94rem; font-weight: 600; }
.billet__meta {
  margin: 1px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.billet__texte {
  margin: 0;
  font-size: .96rem;
  line-height: 1.62;
  white-space: pre-line;      /* les sauts de ligne du texte sont respectés */
  text-wrap: pretty;
}

/* Une étiquette de sujet, facultative. */
.billet__sujet {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 34%, transparent);
  border-radius: 999px;
}

/* Le pied du billet : le bouton « j'aime », et rien d'autre. */
.billet__pied {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--trait);
}

.jaime {
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--vif), border-color var(--vif), background var(--vif);
}
.jaime:hover { color: var(--ambre); border-color: color-mix(in srgb, var(--ambre) 55%, transparent); }

/* L'état « aimé » : le bouton se remplit, discrètement. Un deuxième clic
   le retire — on peut toujours changer d'avis. */
.jaime--actif {
  color: var(--ambre);
  border-color: var(--ambre);
  background: color-mix(in srgb, var(--ambre) 11%, transparent);
}

.jaime__signe {
  font-size: .95rem;
  line-height: 1;
  transition: transform var(--vif);
}
/* Le petit ressaut du signe au moment du clic : 320 ms, c'est tout. */
.jaime--pulse .jaime__signe { animation: pulseJaime .32s ease; }
@keyframes pulseJaime {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.jaime__nombre { font-variant-numeric: tabular-nums; }

.billet__mention {
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  color: var(--texte-doux);
}

/* ---------------------------------------------------------------------
   7. LA VUE DÉTAIL
   Elle remplace le flux, sans fondu long ni panneau qui glisse : on
   clique, c'est affiché.
   --------------------------------------------------------------------- */
.detail {
  display: grid;
  gap: 12px;
  padding: 26px 28px 24px;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 18px;
  animation: entre .2s var(--vif) both;
}

.detail__retour {
  justify-self: start;
  font: inherit;
  font-size: .82rem;
  padding: 7px 15px 7px 11px;
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--vif), border-color var(--vif);
}
.detail__retour:hover { color: var(--texte); border-color: var(--ambre); }

.detail__categorie {
  margin: 8px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}

.detail__titre { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; }

.detail__resume {
  margin: 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texte-doux);
}

.detail__points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.detail__points li {
  position: relative;
  padding-left: 22px;
  font-size: .92rem;
  line-height: 1.5;
}
.detail__points li::before {
  content: "◈";
  position: absolute;
  left: 0;
  color: var(--ambre);
  font-size: .72rem;
  top: .25em;
}

.detail__pied {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--trait);
}

.detail__mention {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
  color: var(--texte-doux);
}

.bouton-principal {
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: 13px 26px;
  color: #17120a;
  background: var(--ambre);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--vif), filter var(--vif), box-shadow var(--vif);
}
.bouton-principal:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 10px 24px rgba(246, 196, 83, .24);
}
.bouton-principal:disabled {
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  cursor: not-allowed;
  transform: none; filter: none; box-shadow: none;
}

/* ---------------------------------------------------------------------
   8. LE JETON DE PAGES
   Il part du bouton cliqué et rejoint le solde en haut à droite. C'est
   la seule animation « spectaculaire » qui reste — et elle sert à
   expliquer où sont passées les Pages, pas à célébrer.
   --------------------------------------------------------------------- */
.effets { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

.jeton-vol {
  position: absolute;
  padding: 6px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: .84rem;
  font-weight: 700;
  color: #17120a;
  background: var(--ambre);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(246, 196, 83, .32);
  transform: translate(-50%, -50%);
  transition: transform 620ms cubic-bezier(.45, 0, .2, 1), opacity 240ms ease 420ms;
}
.jeton-vol--debit { background: var(--orange); color: #fff; }
.jeton-vol--parti { opacity: 0; }

/* ---------------------------------------------------------------------
   9. LE PIED DE PAGE
   --------------------------------------------------------------------- */
.pied {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  color: var(--texte-doux);
}
.pied__marque { letter-spacing: .1em; }

/* ---------------------------------------------------------------------
   10. TABLETTE ET TÉLÉPHONE
   Sur téléphone, la carte passe en deux lignes : le contenu, puis le
   bouton en pleine largeur. Le bouton reste toujours le dernier élément,
   donc toujours au même endroit sous le pouce.
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
  .station { padding: 16px 14px 26px; gap: 18px; }

  .accueil { padding: 16px; gap: 16px; }
  .accueil__radar { width: 72px; }
  .accueil__titre { font-size: 1.1rem; }

  .carte {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .carte__action {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
  .action, .fait { width: 100%; justify-content: center; text-align: center; }
  .carte__cout { text-align: center; }

  .detail { padding: 20px 18px; }
  .detail__titre { font-size: 1.32rem; }

  /* Les deux onglets se partagent la largeur de l'écran. */
  .onglet { flex: 1; justify-content: center; padding: 12px 8px; font-size: .94rem; }

  .billet { padding: 16px 16px 14px; }
  .billet__pied { flex-wrap: wrap; gap: 10px; }
  .billet__mention { font-size: .62rem; }
}

/* ---------------------------------------------------------------------
   11. CONFORT
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =====================================================================
   12. LES TROIS VISAGES (02/10/2026)

   Ajout, pas refonte : tout ce qui précède est la Station du 29/09 et
   n'a pas été touché. Ce bloc habille les trois états décidés le 29/09
   (visiteur / découverte / carrefour), le voile du QR code et le
   formulaire de contact.

   Les couleurs passent toutes par les variables --fond, --carte,
   --ambre… déclarées au §1 : aucune teinte n'est écrite en dur, sinon
   le mode jour (bleu marine sur fond bleuté, choisi le 29/09) se
   retrouverait avec des morceaux de thème nuit.
   ===================================================================== */

/* --- Le bouton unique et énorme des deux premiers visages ------------
   Un seul chemin, pas trois boutons de même taille (décision §2). */
.bouton-geant {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 20px 26px;
  color: #17120a;
  background: var(--ambre);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform var(--vif), filter var(--vif), box-shadow var(--vif);
}
.bouton-geant:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(246, 196, 83, .26);
}

.lien-discret {
  display: block;
  text-align: center;
  font-size: .88rem;
  color: var(--texte-doux);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: center;
  transition: color var(--vif), border-color var(--vif);
}
.lien-discret:hover { color: var(--texte); border-color: var(--trait); }

.bouton-nu--texte {
  font-size: .78rem;
  font-weight: 500;
  color: var(--texte-doux);
  text-decoration: none;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
}

/* --- Les trois marches du fonctionnement ---------------------------- */
.marches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.marche {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 18px 16px;
}
.marche__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .76rem;
  color: var(--ambre);
  border: 1px solid var(--trait);
  border-radius: 999px;
}
.marche__titre { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.marche__texte { margin: 6px 0 0; font-size: .84rem; color: var(--texte-doux); line-height: 1.5; }

/* --- Visage 1 : le visiteur ----------------------------------------- */
.visiteur {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  text-align: center;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 20px;
  padding: 30px 26px;
}
.visiteur__radar { width: 128px; align-self: center; }
.visiteur__titre { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.22; }
.visiteur__sous-titre {
  margin: 0 auto;
  max-width: 54ch;
  font-size: .98rem;
  color: var(--texte-doux);
  line-height: 1.6;
}
.visiteur__note {
  margin: 0;
  font-size: .84rem;
  color: var(--texte-doux);
}
.visiteur .marches { text-align: left; }

/* --- Visage 2 : le tapis d'accueil ---------------------------------- */
.tapis {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 20px;
  padding: 30px 26px;
}
.tapis__radar { width: 120px; align-self: center; }
.tapis__titre { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.tapis__page {
  margin: 0;
  font-size: .9rem;
  color: var(--texte-doux);
  line-height: 1.6;
}
.tapis__page strong { color: var(--ambre); }
.marches--tapis { margin-top: 6px; text-align: left; }
.marches--tapis .marche { padding: 14px; }

/* Les 2 Pages d'essai, à récupérer sur le tapis (14/11/2026). */
.tapis__cadeau {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tapis__cadeau-statut { font-size: .9rem; color: var(--vert); }
.tapis__cadeau-statut:empty { display: none; }

/* --- Dans le cockpit (14/11/2026) ------------------------------------ */
/* Le poste « La Station » du cockpit affiche déjà le solde, la déconnexion, le thème,
   Radar et le menu des postes. La Station ouverte DANS le cockpit (classe posée dans
   index.html) retire ses propres exemplaires. Ouverte seule, elle garde tout. */
.dans-cockpit .enseigne,
.dans-cockpit .nouvelles__radar,
.dans-cockpit .tapis__radar,
.dans-cockpit .titre-portes,
.dans-cockpit .portes { display: none; }
.dans-cockpit .nouvelles { grid-template-columns: 1fr; }

/* --- Visage 3 : le carrefour ---------------------------------------- */
.carrefour {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* a) Les nouvelles de ses classes : le haut de l'écran lui appartient. */
.nouvelles {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 20px;
  padding: 22px;
}
.nouvelles__radar { width: 92px; }
.nouvelles__mots { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.nouvelles__bonjour {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.nouvelles__phrase { margin: 0; font-size: 1.14rem; font-weight: 600; line-height: 1.4; }
.nouvelles__phrase strong { color: var(--ambre); }
.nouvelles__notions { margin: 0; font-size: .9rem; color: var(--texte-doux); }
.nouvelles__mots .bouton-principal { margin-top: 4px; text-decoration: none; }

/* b) Reprendre : trois parcours récents, l'action de 7h50 dessus. */
.reprendre {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.reprise {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 16px;
}
.reprise__discipline {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.reprise__titre { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.reprise__qr {
  margin-top: auto;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  /* Énorme sur six pouces : c'est l'exigence explicite du 29/09 pour cet
     écran, le seul qui doive être testé en mobile avant la mise en ligne. */
  padding: 15px 14px;
  color: #17120a;
  background: var(--ambre);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: filter var(--vif), transform var(--vif);
}
.reprise__qr:hover { filter: brightness(1.06); transform: translateY(-1px); }
.reprise__ouvrir { font-size: .84rem; color: var(--texte-doux); text-decoration: none; }
.reprise__ouvrir:hover { color: var(--texte); text-decoration: underline; }
.reprise__attente {
  margin-top: auto;
  font-size: .82rem;
  color: var(--texte-doux);
  padding: 15px 0 0;
  border-top: 1px solid var(--trait);
}

/* c) Les deux portes. */
.portes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.porte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--carte-haut);
  border: 1px solid var(--trait);
  border-radius: 16px;
  padding: 20px;
  transition: border-color var(--vif), transform var(--vif);
}
.porte:hover { border-color: var(--ambre); transform: translateY(-2px); }
.porte__glyphe { font-size: 1.5rem; }
.porte__nom { font-size: 1.06rem; font-weight: 700; }
.porte__note { font-size: .84rem; color: var(--texte-doux); line-height: 1.45; }
/* « Nouveau parcours » reste en taille normale, sous les deux portes :
   il occupe toute la largeur sans pour autant crier plus fort (§6). */
.porte--mineure { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 14px 20px; }
.porte--mineure .porte__glyphe { font-size: 1.1rem; }
.porte--mineure .porte__nom { font-size: .96rem; }
.porte--mineure .porte__note { margin-left: auto; }

/* --- Le titre d'un bloc --------------------------------------------- */
.titre-bloc {
  margin: 4px 0 -6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* --- Écrire à l'équipe ---------------------------------------------- */
.contact { display: flex; flex-direction: column; gap: 10px; }
.contact__forme {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 16px;
  padding: 18px;
}
.contact__etiquette { font-size: .88rem; color: var(--texte-doux); line-height: 1.5; }
.contact__zone {
  font: inherit;
  font-size: .94rem;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
}
.contact__zone:focus { outline: 2px solid var(--ambre); outline-offset: 1px; }
.contact__pied { display: flex; align-items: center; gap: 14px; }
.contact__statut { font-size: .84rem; color: var(--texte-doux); }

/* --- Inviter un collègue (parrainage, 03/10/2026) -------------------- */
.parrainage { display: flex; flex-direction: column; gap: 10px; }
.parrainage__boite {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 16px;
  padding: 18px;
}
.parrainage__regle { margin: 0; font-size: .92rem; line-height: 1.5; }
.parrainage__lien { display: flex; gap: 10px; }
.parrainage__adresse {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .84rem;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 10px 12px;
}
.parrainage__adresse:focus { outline: 2px solid var(--ambre); outline-offset: 1px; }
.parrainage__chiffres, .parrainage__statut { margin: 0; font-size: .84rem; color: var(--texte-doux); }
.parrainage__statut:empty { display: none; }
.parrainage__filleul { display: flex; flex-direction: column; gap: 8px; font-size: .86rem; color: var(--texte-doux); }
.invite { display: flex; flex-direction: column; }
.visiteur__parrain { margin: 0; font-size: .92rem; text-align: center; }

/* --- Le voile du QR code -------------------------------------------- */
.qr-voile {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 7, 14, .82);
  backdrop-filter: blur(3px);
}
.qr-boite {
  position: relative;
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 20px;
  padding: 26px 24px 22px;
}
.qr-fermer {
  position: absolute;
  top: 12px;
  right: 12px;
  font: inherit;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 999px;
  cursor: pointer;
}
.qr-fermer:hover { color: var(--texte); }
.qr-surtitre {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.qr-titre { margin: 8px 0 14px; font-size: 1.22rem; font-weight: 700; line-height: 1.3; }

/* Le choix de la classe, juste au-dessus du QR : on voit tout de suite pour quel
   groupe on projette, et on en change sans quitter l'écran. */
.qr-classes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.qr-classe {
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  padding: 8px 14px;
  color: var(--texte-doux);
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--vif), border-color var(--vif), background var(--vif);
}
.qr-classe:hover { color: var(--texte); border-color: var(--texte-doux); }
.qr-classe--actif {
  color: #17120a;
  background: var(--ambre);
  border-color: var(--ambre);
}
/* Le QR est toujours posé sur du blanc, dans les deux thèmes : un QR en
   négatif sur fond sombre n'est pas lu par tous les téléphones. */
.qr-cadre {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
}
.qr-image { display: block; width: 100%; height: auto; }
.qr-adresse {
  margin: 16px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .8rem;
  color: var(--texte);
  word-break: break-all;
}
.qr-note { margin: 10px 0 0; font-size: .82rem; color: var(--texte-doux); }

/* --- Téléphone ------------------------------------------------------
   L'écran du carrefour est celui qui doit tenir dans un couloir : les
   trois colonnes deviennent une seule, et le bouton du QR code garde
   toute la largeur. */
@media (max-width: 640px) {
  .marches, .reprendre, .portes { grid-template-columns: 1fr; }

  /* L'enseigne porte maintenant trois choses : le nom du lieu, le solde et
     « Se déconnecter ». Sur six pouces, cela dépassait de quinze pixels et
     faisait défiler toute la page de biais. Le bouton de déconnexion doit
     rester VISIBLE (ordinateur partagé de la salle des profs, décision du
     29/09) : on le fait donc passer à la ligne, on ne le cache pas. */
  .enseigne { flex-wrap: wrap; gap: 10px; }
  .enseigne__outils { flex-wrap: wrap; justify-content: flex-end; }

  .visiteur, .tapis { padding: 22px 18px; }
  .visiteur__titre { font-size: 1.3rem; }
  .visiteur__radar { width: 104px; }
  .tapis__titre { font-size: 1.26rem; }
  .bouton-geant { font-size: 1rem; padding: 18px 20px; }

  .nouvelles { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .nouvelles__radar { width: 76px; }
  .nouvelles__phrase { font-size: 1.06rem; }
  .nouvelles__mots .bouton-principal { width: 100%; text-align: center; }

  .reprise__qr { padding: 17px 14px; font-size: .98rem; }

  .porte--mineure { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .porte--mineure .porte__note { margin-left: 0; }

  .qr-boite { padding: 22px 16px 18px; }
  .qr-titre { font-size: 1.08rem; }
}


/* =====================================================================
   SUPPRESSION DE COMPTE (06/10/2026) — droit à l'effacement, RGPD art. 17.
   Deux objets : le bandeau d'avertissement d'un compte en sursis (en haut
   de page, impossible à manquer) et la zone repliée en bas de page.
   Aucune couleur en dur : tout passe par --alerte / --alerte-fond, définis
   dans les deux thèmes.
   ===================================================================== */

.bandeau-alerte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--alerte);
  border-left-width: 4px;
  border-radius: 10px;
  background: var(--alerte-fond);
  color: var(--texte);
}
.bandeau-alerte__texte { flex: 1 1 320px; font-size: .92rem; line-height: 1.55; }
.bandeau-alerte__texte strong { color: var(--alerte); }
.bandeau-alerte__statut { font-size: .85rem; color: var(--texte-doux); }

/* La zone repliée : volontairement discrète. C'est une sortie de secours,
   pas une fonctionnalité — elle ne doit pas attirer l'œil d'une enseignante
   qui cherchait seulement à changer son adresse. */
.compte { margin-top: 10px; }
.compte__replie {
  border: 1px solid var(--trait);
  border-radius: 10px;
  background: var(--carte);
}
.compte__sommaire {
  padding: 12px 16px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--texte-doux);
  list-style: none;
}
.compte__sommaire::-webkit-details-marker { display: none; }
.compte__sommaire::before { content: "▸ "; }
.compte__replie[open] .compte__sommaire { color: var(--alerte); }
.compte__replie[open] .compte__sommaire::before { content: "▾ "; }
.compte__sommaire:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }

.compte__corps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 16px 16px;
  border-top: 1px solid var(--trait);
}
.compte__avertissement,
.compte__delai { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--texte-doux); }
.compte__avertissement strong { color: var(--alerte); }
.compte__delai strong { color: var(--texte); }

.compte__forme { display: flex; flex-direction: column; gap: 8px; }
.compte__etiquette { font-size: .85rem; color: var(--texte-doux); }
.compte__saisie {
  padding: 10px 12px;
  border: 1px solid var(--trait);
  border-radius: 8px;
  background: var(--carte-haut);
  color: var(--texte);
  font: inherit;
  font-size: .92rem;
}
.compte__saisie:focus { outline: 2px solid var(--alerte); outline-offset: 1px; }
.compte__pied { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compte__statut { font-size: .85rem; color: var(--texte-doux); }

/* Le bouton de destruction : reconnaissable au premier regard, et jamais
   confondu avec .bouton-principal, qui est le bouton des bonnes nouvelles. */
.bouton-danger {
  padding: 10px 18px;
  border: 1px solid var(--alerte);
  border-radius: 8px;
  background: transparent;
  color: var(--alerte);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--vif), color var(--vif);
}
.bouton-danger:hover:not(:disabled) { background: var(--alerte); color: var(--fond); }
.bouton-danger:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }
.bouton-danger:disabled { opacity: .5; cursor: default; }


/* Compte en cours de suppression : les portes de sortie vers la Salle de contrôle sont
   neutralisées. Le serveur les refuserait de toute façon (403 compte_en_suppression) ;
   ce qui se joue ici, c'est de ne pas inviter au clic pour répondre par une erreur.
   `pointer-events: none` suffit sur des liens <a> — et `tabindex` n'est pas en cause,
   le clavier aboutirait au même refus serveur. */
body.compte-gele .bouton-geant,
body.compte-gele .tapis__cadeau,
body.compte-gele .porte,
body.compte-gele .reprendre {
  opacity: .38;
  pointer-events: none;
  filter: grayscale(1);
}

/* ---------------------------------------------------------------------
   LE CIEL ET LE VERRE DE LA SALLE DE CONTRÔLE (22/10/2026)
   La Station s'ouvre dans la Salle : elle en prend le décor. Nuit : les trois
   nébuleuses (indigo, ciel, violet). Jour : le « ciel du matin » (soleil
   levant, lavande, ciel, pêche, horizon doré). Les cartes deviennent du
   verre ; l'ambre de Radar reste la couleur des boutons.
   --------------------------------------------------------------------- */
:root {
  --st-nebuleuse-1: rgba(79, 70, 229, .28);
  --st-nebuleuse-2: rgba(14, 165, 233, .20);
  --st-nebuleuse-3: rgba(168, 85, 247, .16);
  --st-soleil: transparent;
  --st-horizon: transparent;
  --st-reflet: rgba(255, 255, 255, .05);
  --carte: rgba(16, 27, 45, .78);
  --carte-haut: rgba(20, 34, 58, .82);
}
:root[data-theme="jour"] {
  --st-nebuleuse-1: rgba(139, 120, 246, .30);
  --st-nebuleuse-2: rgba(56, 170, 236, .26);
  --st-nebuleuse-3: rgba(251, 146, 92, .22);
  --st-soleil: rgba(255, 228, 196, .85);
  --st-horizon: rgba(253, 186, 140, .38);
  --st-reflet: rgba(255, 255, 255, .55);
  --carte: rgba(255, 255, 255, .80);
  --carte-haut: rgba(247, 250, 253, .86);
}
body,
:root[data-theme="jour"] body {
  background-image:
    radial-gradient(45vw 40vh at 88% -6%, var(--st-soleil), transparent 70%),
    radial-gradient(60vw 50vh at 18% 8%, var(--st-nebuleuse-1), transparent 70%),
    radial-gradient(55vw 55vh at 92% 30%, var(--st-nebuleuse-2), transparent 70%),
    radial-gradient(70vw 50vh at 55% 105%, var(--st-nebuleuse-3), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--st-horizon));
}
/* Le reflet du verre en haut des cartes, comme les panneaux de la Salle */
.carte, .nouvelles, .tapis {
  background-image: linear-gradient(180deg, var(--st-reflet), transparent 120px);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}


/* =====================================================================
   ERGONOMIE DE LA STATION (15/11/2026) — chantier « ergonomie et interface ».
   Rien de neuf à l'écran : on agrandit ce qui se lisait ou se touchait mal,
   et on habille les quatre pièces ajoutées par le chantier. Couleurs : les
   jetons de la Station, comme partout.
   ===================================================================== */

/* --- Les petites lettres : 10–11 px mesurés dans Chrome, portés à 12 px.
       L'interlettrage est resserré pour que la ligne ne s'allonge pas. --- */
.carte__categorie { font-size: .75rem; letter-spacing: .1em; }
.reprise__discipline { font-size: .75rem; }
.solde__mot { font-size: .75rem; letter-spacing: .1em; }
.pied { font-size: .75rem; }

/* --- Ce qui se touche fait au moins 44 px de haut (un doigt, dans un couloir). --- */
.filtre, .action, .bouton-principal, .bouton-danger { min-height: 44px; }
.parrainage__adresse, .compte__saisie { min-height: 44px; }
.compte__sommaire { min-height: 44px; display: flex; align-items: center; }
.bouton-nu { min-height: 44px; }
/* « Ouvrir dans le Laboratoire → » ne faisait que 17 px de haut. La zone touchée grandit ;
   les marges négatives évitent d'écarter le titre et le bouton du QR code. */
.reprise__ouvrir { display: inline-flex; align-items: center; min-height: 44px; margin: -9px 0; align-self: flex-start; }
.lien-discret { min-height: 44px; display: flex; align-items: center; justify-content: center; }

/* --- La condition d'une récompense : une phrase, plus un bouton grisé. --- */
.carte__attente {
  max-width: 22ch;
  font-size: .86rem;
  line-height: 1.35;
  text-align: right;
  color: var(--texte-doux);
}

/* --- « Voir les nouveautés plus anciennes » : au bout du fil raccourci. --- */
.flux__suite {
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 20px;
  color: var(--texte);
  background: transparent;
  border: 1px dashed var(--trait);
  border-radius: 16px;
  cursor: pointer;
  transition: color var(--vif), border-color var(--vif);
}
.flux__suite:hover, .flux__suite:focus-visible { color: var(--ambre); border-color: var(--ambre); }
.flux__suite:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }

/* --- « J'ai reçu un code d'invitation » : une ligne discrète sous le lien de parrainage. --- */
.lien-bouton {
  align-self: flex-start;
  font: inherit;
  font-size: .86rem;
  min-height: 44px;
  padding: 0;
  color: var(--texte-doux);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lien-bouton:hover, .lien-bouton:focus-visible { color: var(--texte); }
.lien-bouton:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }

/* --- Visiteur : « Ce que vous gagnez », trois lignes au lieu de trois cartes à bouton. --- */
.gains {
  text-align: left;
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--carte);
}
.gains__titre {
  margin: 0 0 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.gains__liste { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .92rem; line-height: 1.45; color: var(--texte-doux); }
.gains__liste strong { color: var(--ambre); font-weight: 600; }

@media (max-width: 640px) {
  .carte__attente { max-width: none; text-align: left; }
}


/* =====================================================================
   LA STATION AUX COULEURS DU COCKPIT (15/11/2026)
   Demande de Bilal : « comme au cockpit, en gardant les fonctionnalités ».
   Les jetons du haut de ce fichier portent déjà les valeurs du cockpit ;
   ce bloc reprend ses lettres (Nunito, Space Grotesk pour les titres), ses
   boutons bleus, ses cadres, et habille les pièces nouvelles : l'écran de
   bord, les cartes « Reprendre », « Toutes les nouvelles ».
   Aucune couleur écrite en dur : tout passe par les jetons.
   ===================================================================== */
body {
  font-family: "Nunito", "Avenir Next", system-ui, sans-serif;
  background-image:
    radial-gradient(1100px 620px at 50% -18%, color-mix(in srgb, var(--primaire) 13%, transparent), transparent 68%),
    radial-gradient(800px 460px at 50% 0%, color-mix(in srgb, var(--primaire) 6%, transparent), transparent 64%);
}
:root[data-theme="jour"] body {
  background-image:
    radial-gradient(1100px 620px at 50% -18%, color-mix(in srgb, var(--primaire) 10%, transparent), transparent 68%),
    radial-gradient(800px 460px at 50% 0%, color-mix(in srgb, var(--primaire) 5%, transparent), transparent 64%);
}
/* Dans le cockpit, la Station se fond dans le panneau qui la porte. */
.dans-cockpit { --fond: #0f1728; }
.dans-cockpit[data-theme="jour"] { --fond: #ffffff; }
.dans-cockpit body { background-image: none; }

h1, h2, h3, .carte__titre, .detail__titre, .reprise__titre, .porte__nom, .qr-titre, .enseigne__nom {
  font-family: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
}
.station { max-width: 980px; }

/* --- Les boutons : le bleu du cockpit. Le QR code reste le plus gros de la page. --- */
.bouton-principal, .bouton-geant, .action, .reprise__qr {
  color: var(--primaire-texte);
  background: linear-gradient(180deg, var(--primaire-2), var(--primaire));
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primaire) 25%, transparent);
}
.bouton-principal:hover, .bouton-geant:hover, .action:hover, .reprise__qr:hover {
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primaire) 34%, transparent);
}
.bouton-principal:focus-visible, .bouton-geant:focus-visible, .action:focus-visible, .reprise__qr:focus-visible,
.ecran__fleche:focus-visible, .ecran__point:focus-visible, .toutes__sommaire:focus-visible {
  outline: 2px solid var(--ambre); outline-offset: 2px;
}
.bouton-geant { border-radius: 16px; }
.action--discret {
  color: var(--texte);
  background: none;
  border: 1px solid var(--trait-fort);
  box-shadow: none;
}
.filtre { border-radius: 12px; font-weight: 700; }
.filtre--actif { color: var(--primaire-2); border-color: var(--primaire); background: color-mix(in srgb, var(--primaire) 13%, transparent); }
:root[data-theme="jour"] .filtre--actif { color: var(--primaire); }
.filtre:hover { border-color: var(--trait-fort); }

/* --- L'ÉCRAN DE BORD ------------------------------------------------- */
.ecran {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--trait-fort);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--primaire) 16%, transparent), transparent 55%),
    var(--carte);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--fond) 60%, transparent);
}
.ecran__barre { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--trait); }
.ecran__voyant { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--vert); box-shadow: 0 0 10px var(--vert); }
.ecran__nom {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--texte-doux);
}
.ecran__compte { margin-left: auto; flex: none; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .75rem; color: var(--texte-doux); }
.ecran__scene { display: grid; grid-template-columns: 150px 1fr; gap: 8px 22px; align-items: center; padding: 20px 22px 14px; min-height: 236px; }
.ecran__radar { width: 150px; height: 200px; object-fit: contain; }
.dans-cockpit .ecran__scene { grid-template-columns: 1fr; min-height: 200px; }
.ecran__annonces { display: contents; }
/* Toutes les nouvelles occupent la MÊME case : l'écran prend la hauteur de la plus longue et
   ne change donc pas de taille en défilant (sinon toute la page sautait toutes les 7 s). */
.ecran__diapos { display: grid; align-items: center; min-width: 0; }
.diapo { grid-area: 1 / 1; visibility: hidden; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.diapo--active { visibility: visible; animation: diapo-entre .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes diapo-entre { from { opacity: 0; transform: translateX(26px); } }
.diapo__corps { display: flex; flex-direction: column; gap: 10px; }
.diapo__famille {
  margin: 0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ambre);
}
.diapo__titre {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  font-size: 1.5rem; font-weight: 600; line-height: 1.25;
  color: var(--texte);
}
.diapo__texte { margin: 0; max-width: 62ch; color: var(--texte-doux); }
.diapo .bouton-principal { text-decoration: none; display: inline-flex; align-items: center; }
.diapo .carte__action { justify-items: start; }
.diapo .carte__attente { max-width: none; text-align: left; font-weight: 700; }
.ecran__pied { display: flex; align-items: center; gap: 12px; padding: 0 18px 12px; }
.ecran__fleche {
  width: 44px; height: 44px; flex: none;
  font: inherit; font-size: 1.3rem; line-height: 1;
  color: var(--texte);
  background: none;
  border: 1px solid var(--trait-fort);
  border-radius: 12px;
  cursor: pointer;
}
.ecran__fleche:hover { color: var(--primaire-2); border-color: var(--primaire); }
.ecran__points { flex: 1; display: flex; justify-content: center; gap: 2px; }
.ecran__point { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.ecran__point::before { content: ""; width: 26px; height: 5px; border-radius: 3px; background: var(--trait-fort); }
.ecran__point--actif::before { background: var(--primaire); box-shadow: 0 0 10px var(--primaire); }
.ecran__temps { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primaire); }
.ecran__temps--tourne { animation: ecran-temps 7s linear forwards; }
@keyframes ecran-temps { to { width: 100%; } }
/* Le détail d'une annonce prend la place de l'écran : même cadre. */
.carrefour .detail { border: 1px solid var(--trait-fort); border-radius: 20px; background: var(--carte); padding: 20px 22px; }

/* --- REPRENDRE : une planète, la discipline, le titre, le QR code. --- */
.reprise { border-radius: 16px; border-color: var(--trait); }
.reprise__tete { display: flex; align-items: center; gap: 12px; }
.reprise__mots { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reprise__planete {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--ambre) 55%, var(--texte)), var(--ambre) 46%, color-mix(in srgb, var(--ambre) 35%, var(--fond)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--ambre) 30%, transparent);
}
.reprise:nth-child(3n+2) .reprise__planete {
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--primaire) 45%, var(--texte)), var(--primaire) 46%, color-mix(in srgb, var(--primaire) 35%, var(--fond)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--primaire) 30%, transparent);
}
.reprise:nth-child(3n+3) .reprise__planete {
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--vert) 45%, var(--texte)), var(--vert) 46%, color-mix(in srgb, var(--vert) 35%, var(--fond)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--vert) 30%, transparent);
}
.reprise__qr { min-height: 58px; font-size: 1.05rem; }
.reprise__ouvrir { margin: -6px 0; color: var(--primaire-2); font-weight: 700; }
:root[data-theme="jour"] .reprise__ouvrir { color: var(--primaire); }

/* --- INVITER et ÉCRIRE, côte à côte quand la place le permet. --- */
.duo { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.duo > * { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.duo .parrainage__boite, .duo .contact__forme { flex: 1; }

/* --- TOUTES LES NOUVELLES : la liste complète, repliée. --- */
.toutes { border: 1px solid var(--trait); border-radius: 16px; background: var(--carte); }
.toutes__sommaire {
  list-style: none; cursor: pointer;
  min-height: 52px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
}
.toutes__sommaire::-webkit-details-marker { display: none; }
.toutes__sommaire::after { content: "▾"; margin-left: auto; color: var(--primaire); transition: transform var(--vif); }
.toutes[open] .toutes__sommaire::after { transform: rotate(180deg); }
.toutes__titre { margin: 0; font-size: 1rem; font-weight: 600; color: var(--texte); }
.toutes .filtres { padding: 0 18px 12px; }
.toutes .flux { padding: 0 18px 18px; }
.toutes .carte { background: var(--fond); }

@media (max-width: 640px) {
  /* Téléphone : l'écran de bord reste court, pour que le premier QR code soit visible sans
     défiler. Il ne montre que le titre de la nouvelle ; le texte se lit dans le détail ou
     dans « Toutes les nouvelles ». */
  .ecran__barre { padding: 8px 12px; }
  .ecran__bonjour { display: none; }
  .ecran__scene, .dans-cockpit .ecran__scene { grid-template-columns: 1fr; gap: 4px 10px; padding: 10px 12px 4px; min-height: 124px; align-items: start; }
  .ecran__radar { display: none; }
  .diapo, .diapo__corps { gap: 6px; }
  .diapo__titre { font-size: 1.04rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .diapo__texte { display: none; }
  .diapo .carte__attente { display: block; font-size: .84rem; }
  .diapo .bouton-principal, .diapo .action {
    min-height: 44px; padding: 8px 14px; font-size: .92rem;
    color: var(--primaire-2); background: none; border: 1px solid var(--trait-fort); box-shadow: none;
  }
  :root[data-theme="jour"] .diapo .bouton-principal, :root[data-theme="jour"] .diapo .action { color: var(--primaire); }
  .nouvelles__mots .bouton-principal { width: auto; }
  .ecran__pied { padding: 0 6px 2px; gap: 0; }
  .ecran__fleche { border-color: transparent; }
  .ecran__point::before { width: 16px; }
  .toutes .filtres, .toutes .flux { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .diapo--active { animation: none; }
  .ecran__temps { display: none; }
}


/* --- LES TITRES DE BLOC (15/11/2026, remarque de Bilal : « pas assez visibles »).
   Avant : 12 px, majuscules espacées, gris — plus discrets que le texte qu'ils annoncent.
   Maintenant : un vrai titre, dans l'écriture des titres du cockpit, de la couleur du texte.
   « Inviter un collègue » et « Écrire à l'équipe » sont posés DANS leur carte (index.html). --- */
.titre-bloc {
  margin: 6px 0 -8px;
  font-family: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  color: var(--texte);
}
.parrainage__boite > .titre-bloc, .contact__forme > .titre-bloc { margin: 0; }


/* --- La vraie planète du parcours (15/11/2026) : quand son image est arrivée, elle remplace
   la boule de couleur. Radar, lui, ne se montre plus au centre de l'écran d'accueil dans le
   cockpit (règle .dans-cockpit .tapis__radar, plus haut) : il y est déjà, à droite. --- */
.reprise__planete--image { background: none !important; box-shadow: none !important; border-radius: 0; }
.reprise__planete img { width: 100%; height: 100%; object-fit: contain; display: block; }
