/* Palette : nuit de salle de contrôle */
:root {
  --nuit: #070a14;
  --encre: #0d1322;
  --acier: #1c2438;
  --cyan: #5ef2ff;
  --cyan-sombre: #0f6b7a;
  --ambre: #ffb347;
  --vert: #7cff6b;
  --vert-sombre: #1d5a2a;
  --rose: #ff6bd6;
  --rouge: #ff4d6d;
  --os: #e8e4d8;
  --gris: #8a93a8;
  --texte-doux: #b7c0d4; /* texte secondaire : plus clair que --gris, qui reste pour le décor */
  --police-titre: 'Press Start 2P', monospace;
  --police-texte: 'VT323', monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--nuit);
  color: var(--os);
  font-family: var(--police-texte);
  overflow: hidden;
  -webkit-font-smoothing: none;
}

#salle {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #0e1426 0%, var(--nuit) 70%);
}
#jeu {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  box-shadow: 0 0 0 2px #1a2238, 0 0 60px rgba(94, 242, 255, 0.08);
  touch-action: none;
}

#hud {
  position: absolute; left: 16px; right: 16px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  pointer-events: none;
  font-size: 20px; line-height: 1.1;
}
.hud-titre {
  font-family: var(--police-titre); font-size: 10px; color: var(--cyan);
  text-shadow: 0 0 8px rgba(94, 242, 255, 0.6); letter-spacing: 1px;
  background: rgba(7, 10, 20, 0.78); padding: 5px 8px; align-self: flex-start;
}
.hud-gauche { display: flex; flex-direction: column; gap: 6px; }
.hud-radio { color: var(--ambre); font-size: 19px; line-height: 1; background: rgba(7, 10, 20, 0.78); padding: 4px 8px; align-self: flex-start; }
.hud-radio[hidden] { display: none; }
.hud-radio .note { display: inline-block; animation: saute 0.8s steps(2) infinite; }
@keyframes saute { 50% { transform: translateY(-2px); } }
.hud-aide {
  color: var(--texte-doux); text-align: right; max-width: 62ch;
  background: rgba(7, 10, 20, 0.8); border: 1px solid #1a2238; padding: 5px 9px;
}
.hud-aide strong { color: var(--ambre); }

/* Intro */
.intro {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(7, 10, 20, 0.86); z-index: 5;
}
.intro[hidden] { display: none; }
.intro-boite {
  max-width: 560px; width: calc(100% - 32px);
  border: 2px solid var(--cyan-sombre); background: var(--encre);
  padding: 28px 28px 24px; box-shadow: 0 0 40px rgba(94, 242, 255, 0.15), inset 0 0 0 2px #000;
  text-align: center;
}
.intro-titre {
  font-family: var(--police-titre); font-size: 16px; color: var(--cyan);
  text-shadow: 0 0 10px rgba(94, 242, 255, 0.7); margin-bottom: 20px; line-height: 1.6;
}
.intro-texte { font-size: 24px; line-height: 1.15; color: var(--os); margin-bottom: 18px; }
.intro-touches { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; font-size: 20px; color: var(--texte-doux); margin-bottom: 22px; }
kbd {
  font-family: var(--police-texte); font-size: 18px; color: var(--ambre);
  border: 1px solid #4a3a1a; border-bottom-width: 3px; padding: 0 6px; background: #1a1408;
}
.btn {
  font-family: var(--police-titre); font-size: 12px; color: var(--nuit);
  background: var(--cyan); border: 0; padding: 12px 18px; cursor: pointer;
  box-shadow: 0 4px 0 var(--cyan-sombre);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cyan-sombre); }
.curseur { animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

/* Écran plein : moniteur CRT */
.ecran {
  position: fixed; inset: 0; z-index: 10;
  background: #000;
  display: grid; place-items: center;
}
.ecran[hidden] { display: none; }
.crt {
  --teinte: var(--cyan);
  --teinte-rgb: 94, 242, 255;
  position: relative;
  width: min(100vw, 1280px); height: min(100vh, 100%);
  max-height: 100vh;
  background:
    radial-gradient(ellipse at center, rgba(var(--teinte-rgb), 0.07) 0%, rgba(0,0,0,0) 65%),
    #050810;
  border-radius: 18px / 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 22px 28px 16px;
  color: var(--os);
  box-shadow: inset 0 0 90px rgba(0,0,0,0.9), inset 0 0 12px rgba(var(--teinte-rgb), 0.25);
  animation: allumage 0.55s cubic-bezier(.2,.9,.3,1) both;
  transform-origin: center;
}
.crt::before {
  /* scanlines */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0px, rgba(0,0,0,0.28) 1px, transparent 2px, transparent 4px);
  mix-blend-mode: multiply;
}
.crt::after {
  /* vignette + scintillement */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  animation: scintille 0.12s steps(2) infinite;
}
@keyframes allumage {
  0%   { transform: scale(1, 0.004); filter: brightness(6); }
  45%  { transform: scale(1.02, 0.02); filter: brightness(4); }
  70%  { transform: scale(1, 1); filter: brightness(1.8); }
  100% { transform: scale(1, 1); filter: brightness(1); }
}
@keyframes scintille { 50% { opacity: 0.92; } }
.crt.video::before, .crt.video::after { display: none; }
.crt.extinction { animation: extinction 0.35s ease-in both; }
@keyframes extinction {
  0%   { transform: scale(1, 1); filter: brightness(1); }
  60%  { transform: scale(1, 0.01); filter: brightness(5); }
  100% { transform: scale(0, 0.004); filter: brightness(8); }
}

.crt-tete {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 2px solid rgba(var(--teinte-rgb), 0.35);
  padding-bottom: 10px; margin-bottom: 14px;
}
.crt-titre {
  font-family: var(--police-titre); font-size: clamp(11px, 1.6vw, 16px);
  color: var(--teinte); text-shadow: 0 0 10px rgba(var(--teinte-rgb), 0.8);
  display: flex; align-items: center; gap: 12px;
}
/* La police pixel n'a pas de capitales accentuées : les titres qui en ont passent en police texte, plus grande */
.crt-titre.accentue { font-family: var(--police-texte); font-size: clamp(24px, 2.8vw, 32px); letter-spacing: 1px; line-height: 1; }
.led {
  display: inline-block; width: 10px; height: 10px; background: var(--rouge);
  box-shadow: 0 0 8px var(--rouge); animation: clignote 1.2s steps(1) infinite;
}
.led.ok { background: var(--vert); box-shadow: 0 0 8px var(--vert); animation: none; }
.crt-sous { color: var(--texte-doux); font-size: 20px; margin-top: 6px; }
.crt-horloge { text-align: right; white-space: nowrap; }
.crt-horloge .heure {
  font-family: var(--police-titre); font-size: clamp(16px, 2.6vw, 26px);
  color: var(--teinte); text-shadow: 0 0 12px rgba(var(--teinte-rgb), 0.8);
}
.crt-horloge .lieu { color: var(--texte-doux); font-size: 20px; margin-top: 6px; }

.crt-corps { flex: 1; min-height: 0; position: relative; }
.crt-pied {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 2px solid rgba(var(--teinte-rgb), 0.35);
  padding-top: 10px; margin-top: 12px; font-size: 19px; color: var(--texte-doux);
}
.crt-pied .source { color: var(--os); }
.crt-pied .source a { color: var(--teinte); text-decoration: none; }
.crt-pied button {
  font-family: var(--police-texte); font-size: 19px; color: var(--teinte);
  background: transparent; border: 2px solid rgba(var(--teinte-rgb), 0.5); padding: 4px 12px; cursor: pointer;
}

/* Blocs communs aux écrans */
.cartouche {
  position: absolute; top: 6px; left: 10px; font-family: var(--police-texte); font-size: 19px; line-height: 1; letter-spacing: 1px; text-transform: uppercase;
  color: var(--teinte); text-shadow: 0 0 6px rgba(var(--teinte-rgb), 0.8); background: rgba(0,0,0,0.65); padding: 3px 6px; z-index: 1;
}
.coin {
  position: absolute; right: 8px; bottom: 6px; font-size: 18px; color: var(--os);
  background: rgba(0,0,0,0.7); padding: 2px 6px; max-width: 70%; text-align: right; z-index: 1;
}
.photo {
  position: relative; background: #000; overflow: hidden; min-height: 0; min-width: 0;
  border: 2px solid rgba(var(--teinte-rgb), 0.3); display: grid; place-items: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; filter: saturate(0.9) contrast(1.05); }
.photo .neige {
  position: absolute; inset: 0; display: none; place-items: center;
  font-family: var(--police-titre); font-size: 11px; color: var(--os);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 5px),
    #15161c;
  animation: neige 0.25s steps(3) infinite;
}
.photo.perdu img { display: none; }
.photo.perdu .neige { display: grid; }
.photo.attente img { opacity: 0.35; }
.photo.attente::after {
  content: 'RÉCEPTION'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--police-texte); font-size: 24px; letter-spacing: 2px; color: var(--teinte); background: rgba(0,0,0,0.6); padding: 2px 8px; animation: clignote 0.8s steps(1) infinite;
}
@keyframes neige { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 7px, 11px 0; } }
.colonne { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.carte { border: 2px solid rgba(var(--teinte-rgb), 0.3); background: #02050a; position: relative; min-height: 0; }
.carte canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; object-fit: contain; }
.carte .stat { position: absolute; bottom: 6px; left: 10px; right: 10px; font-size: 18px; color: var(--texte-doux); background: rgba(2,5,10,0.8); padding: 2px 4px; }
.carte .stat b { color: var(--os); font-weight: normal; }
.infos { border: 2px solid rgba(var(--teinte-rgb), 0.3); padding: 8px 10px; font-size: 19px; line-height: 1.2; min-height: 0; overflow: hidden; }
.infos h3, .liste h3, .prevision h3 { margin: 0 0 6px; font-family: var(--police-texte); font-size: 20px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; font-weight: normal; color: var(--teinte); }
.ligne-info { color: var(--os); margin-top: 6px; }
.ligne-info.astuce { color: var(--texte-doux); }
.horloge-utc { font-family: var(--police-titre); font-size: clamp(14px, 2vw, 22px); color: var(--teinte); text-shadow: 0 0 12px rgba(var(--teinte-rgb), 0.8); margin: 4px 0 8px; }

/* Terre */
.terre { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; height: 100%; }
.terre .colonne { display: grid; grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; }
.terre .photo.disque img { filter: none; }
.terre .photo.petit { aspect-ratio: auto; }

/* Soleil */
.soleil { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; height: 100%; }
.soleil .photo img { filter: none; }
.soleil .colonne { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.soleil .liste { border: 2px solid rgba(var(--teinte-rgb), 0.3); padding: 8px 10px; overflow: auto; min-height: 0; }
.onde {
  display: grid; grid-template-columns: 22px 72px 1fr; gap: 8px; align-items: center; width: 100%;
  background: transparent; border: 0; border-bottom: 1px dashed rgba(var(--teinte-rgb), 0.15);
  color: var(--os); font-family: var(--police-texte); font-size: 20px; text-align: left; padding: 3px 4px; cursor: pointer;
}
.onde .cle { font-family: var(--police-titre); font-size: 10px; color: var(--texte-doux); }
.onde .nm { color: var(--teinte); }
.onde.actif { background: rgba(var(--teinte-rgb), 0.15); }
.onde.actif .cle { color: var(--teinte); }
.onde:hover { background: rgba(var(--teinte-rgb), 0.08); }
.soleil .desc { font-size: 21px; color: var(--os); }

/* Aurores */
.aurores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; height: 100%; }
.aurores .photo.ovale img { filter: none; object-fit: cover; }
.aurores .kp { position: relative; border: 2px solid rgba(var(--teinte-rgb), 0.3); background: #05030c; min-height: 0; }
.aurores .kp canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; object-fit: fill; padding-top: 24px; box-sizing: border-box; }
.gros-kp { display: flex; align-items: baseline; gap: 14px; margin: 2px 0 4px; }
.gros-kp .val { font-family: var(--police-titre); font-size: clamp(22px, 3.4vw, 36px); color: var(--teinte); text-shadow: 0 0 14px rgba(var(--teinte-rgb), 0.9); }
.gros-kp .niv { font-size: 22px; color: var(--os); text-transform: uppercase; }
.prevision { margin-top: 10px; }
.ligne-prev { display: grid; grid-template-columns: 64px 1fr 40px auto; gap: 8px; align-items: center; padding: 2px 0; }
.ligne-prev .barre { height: 8px; background: rgba(var(--teinte-rgb), 0.12); position: relative; }
.ligne-prev .barre i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teinte); box-shadow: 0 0 6px rgba(var(--teinte-rgb), 0.7); }
.ligne-prev b { font-family: var(--police-titre); font-size: 10px; color: var(--teinte); font-weight: normal; }
.ligne-prev small { color: var(--texte-doux); font-size: 18px; }

/* ISS */
.iss { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; height: 100%; }
.iss .video { position: relative; background: #000; border: 2px solid rgba(var(--teinte-rgb), 0.3); flex: 1; min-height: 240px; }
.iss .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.iss .colonne:last-child { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 12px; }
.iss .carte { min-height: 0; }
.chiffres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; }
.chiffres .case { display: flex; flex-direction: column; gap: 4px; }
.chiffres small { font-family: var(--police-texte); font-size: 17px; line-height: 1; letter-spacing: 1px; color: var(--texte-doux); }
.chiffres b { font-family: var(--police-titre); font-size: clamp(9px, 0.95vw, 12px); color: var(--teinte); font-weight: normal; text-shadow: 0 0 8px rgba(var(--teinte-rgb), 0.8); white-space: nowrap; }

/* État de l'écran : connexion / signal perdu */
.etat {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: rgba(5, 8, 16, 0.92); z-index: 2;
}
.etat .gros {
  font-family: var(--police-titre); font-size: clamp(16px, 3vw, 30px); color: var(--teinte);
  text-shadow: 0 0 14px rgba(var(--teinte-rgb), 0.9); line-height: 1.7;
}
.etat.perdu .gros { color: var(--rouge); text-shadow: 0 0 14px rgba(255, 77, 109, 0.9); animation: clignote 1.6s steps(1) infinite; }
.etat .detail { color: var(--texte-doux); font-size: 22px; margin-top: 12px; max-width: 60ch; }
.etat .detail code { color: var(--os); }

/* Sismographe */
.seismes { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr auto; gap: 12px; height: 100%; }
.seismes .carte { grid-row: 1 / 3; }
.seismes canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; object-fit: contain; }
.seismes .liste { border: 2px solid rgba(var(--teinte-rgb), 0.3); padding: 8px 10px; overflow: hidden; min-height: 0; font-size: 19px; line-height: 1.2; }
.seismes .liste h3 { margin: 0 0 6px; font-family: var(--police-texte); font-size: 20px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; font-weight: normal; color: var(--teinte); }
.seismes .liste .ligne { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding: 2px 0; border-bottom: 1px dashed rgba(var(--teinte-rgb), 0.15); }
.seismes .liste .mag { font-family: var(--police-titre); font-size: 10px; color: var(--teinte); align-self: center; }
.seismes .liste .mag.fort { color: var(--rouge); text-shadow: 0 0 8px var(--rouge); }
.seismes .liste .lieu { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seismes .liste .quand { color: var(--texte-doux); white-space: nowrap; text-align: right; }
.seismes .trace { border: 2px solid rgba(var(--teinte-rgb), 0.3); height: 150px; position: relative; background: #02050a; }
.seismes .trace .cartouche { top: 4px; left: 8px; }

/* Panneau de la radio */
.radio {
  position: fixed; inset: 0; z-index: 8; display: grid; place-items: center;
  background: rgba(7, 10, 20, 0.6);
}
.radio[hidden] { display: none; }
.radio-boite {
  width: min(640px, calc(100% - 24px)); background: #1a1408; border: 3px solid #6b4c36;
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(255, 179, 71, 0.25), inset 0 0 0 2px #2a1d10;
  padding: 14px 16px 12px; color: var(--os);
}
.radio-tete {
  font-family: var(--police-titre); font-size: 12px; color: var(--ambre); text-shadow: 0 0 10px rgba(255,179,71,0.7);
  display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #4a3426; padding-bottom: 10px; margin-bottom: 8px;
}
.radio-etat { margin-left: auto; font-family: var(--police-texte); font-size: 19px; line-height: 1; letter-spacing: 1px; color: #d9c9a3; text-shadow: none; }
.voyant { width: 10px; height: 10px; background: #3a2a14; display: inline-block; }
.voyant.lecture { background: var(--ambre); box-shadow: 0 0 8px var(--ambre); }
.voyant.connexion { background: var(--ambre); animation: clignote 0.6s steps(1) infinite; }
.voyant.erreur { background: var(--rouge); box-shadow: 0 0 8px var(--rouge); animation: clignote 1s steps(1) infinite; }
.radio-liste { display: flex; flex-direction: column; }
.station {
  display: grid; grid-template-columns: 18px 1.1fr 1fr 56px; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  width: 100%; background: transparent; border: 0; border-bottom: 1px dashed #4a3426; padding: 6px 6px;
  font-family: var(--police-texte); font-size: 21px; color: var(--os); text-align: left; cursor: pointer; line-height: 1.05;
}
.station .marque { grid-row: 1 / 3; font-family: var(--police-titre); font-size: 10px; color: var(--ambre); }
.station .nomst { color: var(--os); }
.station .lieu { color: #d9c9a3; }
.station .heure { font-family: var(--police-titre); font-size: 9px; color: var(--ambre); text-align: right; }
.station .genre { grid-column: 2 / 5; color: var(--texte-doux); font-size: 18px; }
.station.choisie { background: rgba(255, 179, 71, 0.14); outline: 2px solid rgba(255, 179, 71, 0.6); }
.station.encours .nomst { color: var(--ambre); }
.radio-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 18px; color: var(--texte-doux); }
.radio-pied .vol { color: var(--ambre); letter-spacing: 1px; }
.radio-pied kbd { font-size: 15px; padding: 0 4px; }
.radio-note { margin-top: 8px; font-size: 18px; color: #c4b28c; }

/* Panneau du vestiaire (même famille que la radio, teinte bois et ambre) */
.vestiaire {
  position: fixed; inset: 0; z-index: 8; display: grid; place-items: center;
  background: rgba(7, 10, 20, 0.6);
}
.vestiaire[hidden] { display: none; }
.vest-boite {
  width: min(600px, calc(100% - 24px)); background: #1a1408; border: 3px solid #6b4c36;
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(255, 179, 71, 0.25), inset 0 0 0 2px #2a1d10;
  padding: 14px 16px 12px; color: var(--os);
}
.vest-boite.secoue { animation: secoue 0.25s steps(3) 1; }
@keyframes secoue { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.vest-tete {
  font-family: var(--police-titre); font-size: 12px; color: var(--ambre); text-shadow: 0 0 10px rgba(255,179,71,0.7);
  display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #4a3426; padding-bottom: 10px; margin-bottom: 8px;
}
.vest-etat { margin-left: auto; font-family: var(--police-texte); font-size: 19px; line-height: 1; letter-spacing: 1px; color: #d9c9a3; text-align: right; text-shadow: none; }
.vest-liste { display: flex; flex-direction: column; }
.tenue {
  display: grid; grid-template-columns: 18px 14px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  width: 100%; background: transparent; border: 0; border-bottom: 1px dashed #4a3426; padding: 6px 6px;
  font-family: var(--police-texte); font-size: 21px; color: var(--os); text-align: left; cursor: pointer; line-height: 1.05;
}
.tenue .marque { grid-row: 1 / 3; font-family: var(--police-titre); font-size: 10px; color: var(--ambre); }
.tenue .apercu { grid-row: 1 / 3; width: 12px; height: 24px; image-rendering: pixelated; box-shadow: 0 0 0 1px #000; }
.tenue .nomt { color: var(--os); }
.tenue .nomt small { color: var(--texte-doux); font-size: 17px; }
.tenue .desct { color: var(--texte-doux); font-size: 18px; }
.tenue.choisie { background: rgba(255, 179, 71, 0.14); outline: 2px solid rgba(255, 179, 71, 0.6); }
.tenue.portee .nomt { color: var(--ambre); }
.tenue.verrou .nomt { color: var(--gris); letter-spacing: 2px; }
.tenue.verrou .desct { color: #c4b28c; font-style: italic; }
.tenue.accessoire { border-top: 2px solid #4a3426; margin-top: 4px; }
.cadenas {
  display: inline-block; width: 8px; height: 6px; background: var(--gris); position: relative; vertical-align: middle;
}
.cadenas::before { content: ''; position: absolute; left: 1px; top: -5px; width: 4px; height: 5px; border: 1px solid var(--gris); border-bottom: 0; }
.cadenas::after { content: ''; position: absolute; left: 3px; top: 2px; width: 2px; height: 2px; background: #1a1408; }
.vest-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 18px; color: var(--texte-doux); }
.vest-pied kbd { font-size: 15px; padding: 0 4px; }

/* Terminal du serveur */
.crt.terminal { cursor: text; }
.crt.terminal .crt-sous b { color: var(--teinte); font-weight: normal; }
.term-corps { overflow-y: auto; overflow-x: hidden; font-size: 22px; line-height: 1.15; color: var(--teinte); text-shadow: 0 0 6px rgba(124, 255, 107, 0.45); padding-right: 6px; }
.term-sortie { margin: 0; font-family: inherit; white-space: pre-wrap; word-break: break-word; }
.term-sortie a { color: var(--cyan); text-decoration: none; }
.term-sortie b { color: var(--os); font-weight: normal; }
.term-echo { color: var(--os); }
.term-titre { color: var(--os); letter-spacing: 1px; }
.term-dim { color: #7fd978; }
.term-erreur { color: var(--rouge); text-shadow: 0 0 6px rgba(255, 77, 109, 0.5); }
.term-ligne { white-space: pre-wrap; word-break: break-word; }
.term-invite { color: var(--os); }
.term-curseur { animation: clignote 1s steps(1) infinite; }
.term-ligne { position: relative; }
.term-saisie {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; margin: 0;
  font-family: var(--police-texte); font-size: 22px;
}

@media (max-width: 760px) {
  .crt { padding: 14px 14px 10px; border-radius: 0; }
  .crt-tete { flex-direction: column; gap: 6px; }
  .crt-horloge { text-align: left; }
  .terre, .soleil, .iss { grid-template-columns: 1fr; grid-template-rows: minmax(200px, 1fr) minmax(0, 1fr); }
  .terre .colonne, .soleil .colonne, .iss .colonne:last-child { display: flex; overflow: auto; }
  .terre .photo.petit, .iss .carte, .terre .carte { min-height: 150px; flex: none; }
  .soleil .liste { flex: none; max-height: 200px; }
  .iss .video { min-height: 200px; }
  .aurores { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(140px, 1fr) minmax(0, 1fr); }
  .chiffres { grid-template-columns: repeat(3, 1fr); }
  .station { grid-template-columns: 18px 1fr 56px; }
  .term-corps { font-size: 19px; }
  .station .lieu { grid-column: 2; }
  .station .genre { grid-column: 2 / 4; }
  .seismes { grid-template-columns: 1fr; grid-template-rows: minmax(140px, 1fr) minmax(0, 1fr) 100px; }
  .seismes .carte { grid-row: auto; }
  .seismes .liste { overflow: auto; }
  .seismes .trace { height: auto; }
  #hud { font-size: 17px; left: 10px; right: 10px; }
  .intro-texte { font-size: 20px; }
}

/* HUD du vaisseau : section courante et bouton du plan (tactile) */
.hud-piece { color: var(--texte-doux); text-shadow: none; margin-left: 10px; letter-spacing: 1px; }
.hud-btn {
  pointer-events: auto; align-self: flex-start; cursor: pointer;
  font-family: var(--police-titre); font-size: 9px; color: var(--cyan);
  background: var(--encre); border: 2px solid var(--cyan-sombre); padding: 6px 8px; letter-spacing: 1px;
}
.hud-btn kbd { font-size: 14px; padding: 0 4px; vertical-align: middle; }
.hud-btn:active { transform: translateY(1px); }
.hud-boutons { display: flex; gap: 6px; align-self: flex-start; }
.hud-btn.coupe { color: var(--gris); border-color: #2c3a62; text-decoration: line-through; }
.hud-btn.coupe kbd { color: var(--gris); border-color: #2c3a62; }

/* Vue contemplative : la baie du pont d'observation en plein écran */
.baie { position: fixed; inset: 0; z-index: 10; background: #000; overflow: hidden; animation: baie-ouverture 0.9s ease-out both; }
.baie[hidden] { display: none; }
.baie.extinction { animation: baie-fermeture 0.38s ease-in both; }
@keyframes baie-ouverture { 0% { opacity: 0; filter: brightness(2.5); } 100% { opacity: 1; filter: brightness(1); } }
@keyframes baie-fermeture { 0% { opacity: 1; } 100% { opacity: 0; } }
.baie-ciel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.baie-verre {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0px, rgba(0,0,0,0.22) 1px, transparent 2px, transparent 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.6) 100%);
  animation: scintille 0.12s steps(2) infinite;
}
.baie-cadre { position: absolute; inset: 0; pointer-events: none; z-index: 3; box-shadow: inset 0 0 0 6px #1a2138, inset 0 0 0 8px #3b4870, inset 0 0 80px rgba(0,0,0,0.8); }
.baie-tete { position: absolute; top: 22px; left: 28px; right: 28px; z-index: 4; display: flex; justify-content: space-between; align-items: baseline; pointer-events: none; }
.baie-titre { font-family: var(--police-titre); font-size: 10px; color: var(--texte-doux); letter-spacing: 2px; text-shadow: 0 0 8px rgba(94,242,255,0.3); background: rgba(5, 8, 16, 0.7); padding: 5px 8px; }
.baie-heure { font-family: var(--police-titre); font-size: clamp(12px, 1.8vw, 18px); color: var(--cyan); text-shadow: 0 0 12px rgba(94,242,255,0.8); background: rgba(5, 8, 16, 0.7); padding: 5px 8px; }
.baie-pied { position: absolute; left: 28px; right: 28px; bottom: 20px; z-index: 4; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.baie-texte { max-width: 68ch; font-size: 19px; line-height: 1.15; color: var(--texte-doux); background: rgba(5, 8, 16, 0.74); border: 1px solid #1a2238; padding: 8px 10px; }
.baie-texte b { color: var(--os); font-weight: normal; }
.baie-ligne + .baie-ligne { margin-top: 4px; }
.baie-etat { color: var(--os); }
.baie-sources { font-size: 17px; color: #a2abc0; }
.baie-boutons { white-space: nowrap; }
.baie-boutons button {
  font-family: var(--police-texte); font-size: 19px; color: var(--cyan);
  background: rgba(5, 8, 16, 0.7); border: 2px solid rgba(94, 242, 255, 0.5); padding: 4px 12px; cursor: pointer;
}

/* Plan du vaisseau (même famille que la radio et le vestiaire, teinte coque et cyan) */
.plan { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(7, 10, 20, 0.6); }
.plan[hidden] { display: none; }
.plan-boite {
  width: min(820px, calc(100% - 24px)); background: var(--encre); border: 3px solid #2c3a62;
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(94, 242, 255, 0.18), inset 0 0 0 2px #121a2e;
  padding: 14px 16px 12px; color: var(--os);
}
.plan-tete {
  font-family: var(--police-titre); font-size: 12px; color: var(--cyan); text-shadow: 0 0 10px rgba(94,242,255,0.7);
  display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #1f2a48; padding-bottom: 10px; margin-bottom: 10px; white-space: nowrap;
}
.plan-icone { width: 10px; height: 10px; background: var(--ambre); box-shadow: 0 0 8px var(--ambre); animation: clignote 1s steps(1) infinite; }
.plan-etat { margin-left: auto; font-family: var(--police-texte); font-size: 19px; line-height: 1; letter-spacing: 1px; color: var(--texte-doux); text-align: right; text-shadow: none; white-space: normal; }
.plan-plan { width: 100%; height: auto; display: block; image-rendering: pixelated; image-rendering: crisp-edges; border: 2px solid #1f2a48; background: var(--encre); }
.plan-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 19px; color: var(--texte-doux); }
.plan-legende .leg { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; border: 1px solid #2c3a62; }
.leg-vue { background: #1f2a48; border-color: var(--cyan) !important; }
.leg-inconnue { background: repeating-linear-gradient(45deg, #1a2138 0 2px, var(--encre) 2px 5px); }
.leg-scellee { background: repeating-linear-gradient(45deg, #2a1d28 0 2px, var(--encre) 2px 5px); border-color: #6b2a3a !important; }
.leg-ici { background: var(--ambre); border-color: var(--ambre) !important; animation: clignote 1s steps(1) infinite; }
.plan-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 18px; color: var(--texte-doux); }
.plan-pied kbd { font-size: 15px; padding: 0 4px; }

@media (max-width: 760px) {
  .baie-tete { left: 14px; right: 14px; top: 14px; }
  .baie-pied { left: 14px; right: 14px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 10px; }
  .baie-texte { font-size: 17px; }
  .baie-sources { font-size: 16px; }
  .hud-piece { display: block; margin: 4px 0 0; }
}

/* Intro : partie retrouvée, et le bouton discret de la visite libre */
.intro-reprise { margin: -6px 0 16px; font-size: 19px; color: var(--ambre); }
.intro-reprise[hidden] { display: none; }
.intro-visite { margin-top: 16px; font-size: 18px; color: var(--texte-doux); }
.btn-discret {
  font-family: var(--police-texte); font-size: 19px; color: var(--cyan);
  background: transparent; border: 0; border-bottom: 1px dashed var(--cyan-sombre); padding: 0 2px; cursor: pointer;
}
.btn-discret:hover { border-bottom-style: solid; }

/* Le réveil : noir, quelques lignes qui apparaissent, passables d'une touche */
.reveil { position: absolute; inset: 0; z-index: 6; background: #000; display: grid; place-items: center; cursor: pointer; }
.reveil[hidden] { display: none; }
.reveil.ouvre { animation: reveil-ouvre 0.9s ease-in both; pointer-events: none; }
@keyframes reveil-ouvre { 0% { opacity: 1; } 100% { opacity: 0; } }
.reveil-texte { max-width: 56ch; width: calc(100% - 48px); font-size: 26px; line-height: 1.2; color: var(--os); text-align: center; }
.reveil-texte p { margin: 0 0 18px; animation: reveil-ligne 1.1s ease-out both; }
.reveil-texte p:last-child { color: var(--os); }
.reveil-texte p:not(:last-child) { color: var(--texte-doux); }
@keyframes reveil-ligne { 0% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
.reveil-pied { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; color: var(--texte-doux); }
.reveil-aide { animation: clignote 1.6s steps(1) infinite; }
.reveil-passer { font-family: var(--police-texte); font-size: 18px; color: var(--cyan); background: transparent; border: 2px solid var(--cyan-sombre); padding: 4px 12px; cursor: pointer; }

/* Le journal de bord : panneau de lecture, bois et ambre, comme la radio */
.journal { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(7, 10, 20, 0.6); }
.journal[hidden] { display: none; }
.journal-boite {
  width: min(640px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: #1a1408; border: 3px solid #6b4c36;
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(255, 179, 71, 0.25), inset 0 0 0 2px #2a1d10;
  padding: 14px 18px 12px; color: var(--os);
}
.journal-tete {
  font-family: var(--police-titre); font-size: 12px; color: var(--ambre); text-shadow: 0 0 10px rgba(255,179,71,0.7);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; border-bottom: 2px solid #4a3426; padding-bottom: 10px; margin-bottom: 12px;
}
.journal-sous { margin-left: auto; font-family: var(--police-texte); font-size: 19px; color: #d9c9a3; text-shadow: none; }
.journal-texte { font-size: 23px; line-height: 1.2; color: #ece4cf; }
.journal-texte p { margin: 0 0 12px; animation: reveil-ligne 0.9s ease-out both; }
.journal-signature { text-align: right; color: var(--ambre); font-style: italic; }
.journal-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; padding-top: 10px; border-top: 2px solid #4a3426; font-size: 18px; color: var(--texte-doux); }
.journal-pied kbd { font-size: 15px; padding: 0 4px; }

/* Le reroutage d'énergie : au-dessus du terminal, même teinte verte */
.energie { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); }
.energie[hidden] { display: none; }
.energie-boite {
  width: min(620px, calc(100% - 24px)); background: #050810; border: 3px solid rgba(124, 255, 107, 0.45);
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(124, 255, 107, 0.2), inset 0 0 0 2px #0a1a0c;
  padding: 14px 16px 12px; color: var(--os);
}
.energie-tete {
  font-family: var(--police-titre); font-size: 12px; color: var(--vert); text-shadow: 0 0 10px rgba(124,255,107,0.7);
  display: flex; align-items: center; gap: 10px; border-bottom: 2px solid rgba(124, 255, 107, 0.3); padding-bottom: 10px; margin-bottom: 10px;
}
.energie-etat { margin-left: auto; font-family: var(--police-texte); font-size: 19px; line-height: 1; letter-spacing: 1px; color: var(--ambre); text-shadow: none; text-align: right; }
.energie-conseil { font-size: 19px; line-height: 1.15; color: var(--texte-doux); margin-bottom: 10px; }
.energie-conseil b { color: var(--os); font-weight: normal; }
.energie-grille { width: 100%; height: auto; display: block; image-rendering: pixelated; image-rendering: crisp-edges; border: 2px solid rgba(124, 255, 107, 0.3); background: var(--encre); cursor: pointer; outline: none; }
.energie-grille:focus { border-color: rgba(124, 255, 107, 0.7); }
.energie-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 18px; color: var(--texte-doux); align-items: center; }
.energie-pied kbd { font-size: 15px; padding: 0 4px; }
.energie-pied button { font-family: var(--police-texte); font-size: 19px; color: var(--vert); background: transparent; border: 2px solid rgba(124, 255, 107, 0.5); padding: 4px 12px; cursor: pointer; }
.energie-pied .energie-compteur { color: var(--texte-doux); margin-right: 6px; }
.energie-pied .energie-indice.suggere { color: var(--cyan); border-color: var(--cyan); animation: clignote 1s steps(1) infinite; }
.energie-message { min-height: 1.3em; margin-top: 8px; font-size: 19px; line-height: 1.15; color: var(--texte-doux); }
.energie-message.indice { color: var(--cyan); }
.energie-message.ok { color: var(--vert); }
.energie-message.suggestion { color: var(--ambre); }
.term-alerte { color: var(--rouge); text-shadow: 0 0 6px rgba(255, 77, 109, 0.5); }
.term-ok { color: var(--os); }

/* Plan : légende des sections ouvertes, prochaine étape */
.leg-ouverte { background: #182038; border-color: var(--cyan) !important; border-style: dashed !important; }
.plan-etape { margin-top: 10px; font-size: 19px; color: var(--texte-doux); }
.plan-etape b { color: var(--ambre); font-weight: normal; }

@media (max-width: 760px) {
  .reveil-texte { font-size: 21px; }
  .journal-texte { font-size: 20px; }
}

/* Le Cœur : le jeu des anneaux, au-dessus du vaisseau, teinte coque et cyan comme le plan */
.coeur { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); }
.coeur[hidden] { display: none; }
.coeur-boite {
  width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 16px); overflow: auto; background: var(--encre); border: 3px solid #2c3a62;
  box-shadow: 0 0 0 2px #000, 0 0 50px rgba(94, 242, 255, 0.22), inset 0 0 0 2px #121a2e;
  padding: 14px 16px 12px; color: var(--os);
}
.coeur-tete {
  font-family: var(--police-titre); font-size: 12px; color: var(--cyan); text-shadow: 0 0 10px rgba(94,242,255,0.7);
  display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #1f2a48; padding-bottom: 10px; margin-bottom: 10px;
}
.coeur-tete .led { background: var(--ambre); box-shadow: 0 0 8px var(--ambre); }
.coeur-tete .led.ok { background: var(--vert); box-shadow: 0 0 8px var(--vert); }
.coeur-etat { margin-left: auto; font-family: var(--police-texte); font-size: 19px; line-height: 1; letter-spacing: 1px; color: var(--ambre); text-shadow: none; text-align: right; }
.coeur-conseil { font-size: 19px; line-height: 1.15; color: var(--texte-doux); margin-bottom: 10px; }
.coeur-conseil b { color: var(--os); font-weight: normal; }
.coeur-vue { width: min(100%, 360px); height: auto; display: block; margin: 0 auto; image-rendering: pixelated; image-rendering: crisp-edges; border: 2px solid #1f2a48; background: var(--encre); cursor: pointer; outline: none; touch-action: manipulation; }
.coeur-vue:focus { border-color: rgba(94, 242, 255, 0.6); }
.coeur-message { min-height: 1.3em; margin-top: 8px; font-size: 19px; line-height: 1.15; color: var(--texte-doux); }
.coeur-message.indice { color: var(--cyan); }
.coeur-message.ok { color: var(--vert); }
.coeur-message.rate { color: var(--ambre); }
.coeur-message.suggestion { color: var(--ambre); }
.coeur-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 18px; color: var(--texte-doux); align-items: center; }
.coeur-pied kbd { font-size: 15px; padding: 0 4px; }
.coeur-pied button { font-family: var(--police-texte); font-size: 19px; color: var(--cyan); background: transparent; border: 2px solid rgba(94, 242, 255, 0.5); padding: 4px 12px; cursor: pointer; }
.coeur-pied .coeur-arreter { color: var(--nuit); background: var(--cyan); border-color: var(--cyan); }
.coeur-pied .coeur-compteur { color: var(--texte-doux); margin-right: 6px; }
.coeur-pied .coeur-aide.suggere { color: var(--ambre); border-color: var(--ambre); animation: clignote 1s steps(1) infinite; }
/* Le nom de la section dans le HUD : la police pixel n'a pas de capitales accentuées (LE CŒUR) */
.hud-piece.accentue { font-family: var(--police-texte); font-size: 17px; letter-spacing: 2px; vertical-align: -1px; }
@media (max-width: 760px) {
  .coeur-boite { padding: 10px 10px 8px; }
  .coeur-conseil { font-size: 17px; }
  .coeur-vue { width: min(100%, 300px); }
  .coeur-pied { font-size: 16px; }
  .coeur-pied > span:first-child { display: none; }
}

/* L'antenne : les deux consoles (pointage, cadran), au-dessus du vaisseau, dans la famille du Cœur ; le cadran en bois et ambre comme la radio */
.antenne { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); }
.antenne[hidden] { display: none; }
.antenne-boite {
  width: min(600px, calc(100% - 24px)); max-height: calc(100vh - 16px); overflow: auto; background: var(--encre); border: 3px solid #2c3a62;
  box-shadow: 0 0 0 2px #000, 0 0 50px rgba(94, 242, 255, 0.22), inset 0 0 0 2px #121a2e;
  padding: 14px 16px 12px; color: var(--os);
}
.antenne-boite.cadran { background: #1a1408; border-color: #6b4c36; box-shadow: 0 0 0 2px #000, 0 0 40px rgba(255, 179, 71, 0.25), inset 0 0 0 2px #2a1d10; width: min(680px, calc(100% - 24px)); }
.antenne-tete {
  font-family: var(--police-titre); font-size: 12px; color: var(--cyan); text-shadow: 0 0 10px rgba(94,242,255,0.7);
  display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #1f2a48; padding-bottom: 10px; margin-bottom: 10px;
}
.cadran .antenne-tete { color: var(--ambre); text-shadow: 0 0 10px rgba(255,179,71,0.7); border-bottom-color: #4a3426; }
.antenne-tete .led { background: var(--ambre); box-shadow: 0 0 8px var(--ambre); }
.antenne-tete .led.ok { background: var(--vert); box-shadow: 0 0 8px var(--vert); animation: none; }
.antenne-etat { margin-left: auto; font-family: var(--police-texte); font-size: 19px; line-height: 1; letter-spacing: 1px; color: var(--ambre); text-shadow: none; text-align: right; }
.cadran .antenne-etat { color: #d9c9a3; }
.antenne-conseil { font-size: 19px; line-height: 1.15; color: var(--texte-doux); margin-bottom: 10px; }
.antenne-conseil b { color: var(--os); font-weight: normal; }
.antenne-scene { position: relative; }
.antenne-vue { width: min(100%, 480px); height: auto; display: block; margin: 0 auto; image-rendering: pixelated; image-rendering: crisp-edges; border: 2px solid #1f2a48; background: var(--encre); cursor: grab; outline: none; touch-action: none; }
.antenne-vue:focus { border-color: rgba(94, 242, 255, 0.6); }
.cadran-vue { width: min(100%, 640px); border-color: #4a3426; background: #1a1408; }
.cadran .antenne-vue:focus { border-color: rgba(255, 179, 71, 0.6); }
.antenne-croix { position: absolute; left: 4px; bottom: 4px; width: 84px; height: 84px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; pointer-events: none; }
.antenne-croix .dir, .cadran-boutons .dir {
  pointer-events: auto; font-family: var(--police-texte); font-size: 20px; line-height: 1; color: var(--cyan); background: rgba(13, 19, 34, 0.85);
  border: 2px solid rgba(94, 242, 255, 0.5); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; padding: 0;
}
.antenne-croix .haut { grid-column: 2; grid-row: 1; } .antenne-croix .gauche { grid-column: 1; grid-row: 2; } .antenne-croix .droite { grid-column: 3; grid-row: 2; } .antenne-croix .bas { grid-column: 2; grid-row: 3; }
.cadran-boutons { position: absolute; right: 4px; top: 4px; display: flex; gap: 4px; }
.cadran-boutons .dir { color: var(--ambre); background: rgba(26, 20, 8, 0.85); border-color: rgba(255, 179, 71, 0.5); width: 40px; height: 32px; }
.antenne-message { min-height: 1.3em; margin-top: 8px; font-size: 19px; line-height: 1.15; color: var(--texte-doux); }
.antenne-message.indice { color: var(--cyan); }
.cadran .antenne-message.indice { color: var(--ambre); }
.antenne-message.ok { color: var(--vert); }
.antenne-message.rate, .antenne-message.suggestion { color: var(--ambre); }
.antenne-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 18px; color: var(--texte-doux); align-items: center; }
.antenne-pied kbd { font-size: 15px; padding: 0 4px; }
.antenne-pied button { font-family: var(--police-texte); font-size: 19px; color: var(--cyan); background: transparent; border: 2px solid rgba(94, 242, 255, 0.5); padding: 4px 12px; cursor: pointer; }
.cadran .antenne-pied button { color: var(--ambre); border-color: rgba(255, 179, 71, 0.5); }
.cadran .antenne-pied .antenne-verrou { color: var(--nuit); background: var(--ambre); border-color: var(--ambre); }
.antenne-pied .antenne-aide.suggere { color: var(--ambre); border-color: var(--ambre); animation: clignote 1s steps(1) infinite; }
.cadran .antenne-pied .antenne-aide.suggere { color: var(--os); border-color: var(--os); }
@media (max-width: 760px) {
  .antenne-boite { padding: 10px 10px 8px; }
  .antenne-conseil { font-size: 17px; }
  .antenne-pied { font-size: 16px; }
  .antenne-pied > span:first-child { display: none; }
  .antenne-croix { width: 96px; height: 96px; }
  .cadran-boutons .dir { width: 48px; height: 40px; }
}

/* Le générique : par-dessus la baie du pont, il défile doucement ; la baie masque ses textes pendant ce temps */
.generique { position: fixed; inset: 0; z-index: 11; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, rgba(5, 8, 16, 0.55) 0%, rgba(5, 8, 16, 0.2) 40%, rgba(5, 8, 16, 0.2) 60%, rgba(5, 8, 16, 0.65) 100%); animation: baie-ouverture 1.2s ease-out both; }
.generique[hidden] { display: none; }
.generique.fin { animation: baie-fermeture 0.5s ease-in both; }
.generique-colonne { position: absolute; left: 0; right: 0; top: 100%; text-align: center; animation-name: generique-defile; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes generique-defile { 0% { transform: translateY(0); } 100% { transform: translateY(calc(-100% - 100vh)); } }
.generique-titre { font-family: var(--police-titre); font-size: clamp(12px, 2vw, 18px); color: var(--cyan); text-shadow: 0 0 10px rgba(94,242,255,0.7); letter-spacing: 2px; margin: 10px 0; }
.generique-gros { font-family: var(--police-texte); font-size: clamp(26px, 3.4vw, 36px); color: var(--os); text-shadow: 0 0 12px rgba(0,0,0,0.9); margin: 6px 0; }
.generique-ligne { font-family: var(--police-texte); font-size: clamp(20px, 2.4vw, 26px); color: var(--os); text-shadow: 0 0 10px rgba(0,0,0,0.95); margin: 4px 0 0; }
.generique-dim { font-family: var(--police-texte); font-size: clamp(17px, 2vw, 21px); color: var(--texte-doux); text-shadow: 0 0 10px rgba(0,0,0,0.95); margin: 0 auto 6px; max-width: 70ch; padding: 0 16px; }
.generique-vide { height: 18px; }
.generique-pied { position: absolute; left: 28px; right: 28px; bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; color: var(--texte-doux); pointer-events: none; }
.generique-aide { background: rgba(5, 8, 16, 0.7); padding: 4px 8px; }
.generique-passer { pointer-events: auto; font-family: var(--police-texte); font-size: 19px; color: var(--cyan); background: rgba(5, 8, 16, 0.7); border: 2px solid rgba(94, 242, 255, 0.5); padding: 4px 12px; cursor: pointer; }
.baie.generique-en-cours .baie-pied, .baie.generique-en-cours .baie-tete { opacity: 0; transition: opacity 0.6s; }
@media (max-width: 760px) { .generique-pied { left: 14px; right: 14px; bottom: 12px; } .generique-aide { display: none; } }
