/* ================================================================
   1. VARIABLES — Palette CRT ambre (phosphore P3/P4)
   Inspirée des vrais terminaux ambre (VT320)
   ================================================================ */
:root {
  --crt-bg: #0a0500;
  --crt-amber: #ffb000;
  --crt-amber-bright: #ffcc33;
  --crt-amber-dim: #cc8800;
}

/* ================================================================
   2. STRUCTURE — police, halo de texte et structure d'écran
   ================================================================ */
body {
  background-color: var(--crt-bg);
  color: var(--crt-amber);
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
  margin: 0;
  position: relative;
  text-shadow:
    0 0 1px rgba(255, 176, 0, 0.9),
    0 0 4px rgba(255, 176, 0, 0.5),
    0 0 10px rgba(255, 176, 0, 0.35),
    0 0 18px rgba(255, 176, 0, 0.15);
  overflow-x: hidden;
  height: 100dvh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#entete {
  background-color: var(--crt-amber);
  color: var(--crt-bg);
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.55), 0 0 8px rgba(255, 204, 51, 0.4);
  padding: 5px;
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
  text-align: center;
  font-weight: bold;
  user-select: none;
}

#entete p {
  margin: 0;
}

#pied {
  text-align: center;
  font-size: 0.75rem;
}

/* ================================================================
   3. EFFETS D'ÉCRAN — Halo central, scanlines, scintillement
   ================================================================ */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255,176,0,0.04) 0%, rgba(0,0,0,0) 65%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  body::after {
    animation: flicker 8s infinite;
  }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.85; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

/* ================================================================
   4. STYLES
   ================================================================ */

strong {
  color: var(--crt-amber-bright);
  text-shadow: 
    0 0 4px rgba(255, 204, 51, 0.9), 
    0 0 10px rgba(255, 204, 51, 0.5);
  font-weight: bold;
}

main ul {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}

main li {
  margin: 0.4em 0;
}

main li::before {
  content: "— ";
}

/* ================================================================
   5. CURSEUR — Bloc plein clignotant en fin de page
   ================================================================ */

.curseur::after {
  content: "█";
  color: var(--crt-amber-bright);
  animation: clignoter 1s steps(1) infinite;
}

@keyframes clignoter {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ================================================================
   6. APPARENCE DE LA SÉLECTION
   ================================================================ */
::selection {
  background-color: var(--crt-amber);
  color: var(--crt-bg);
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--crt-amber);
  color: var(--crt-bg);
  text-shadow: none;
}

/* ================================================================
   7. SCROLLBAR — Barre de défilement ambre
   ================================================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--crt-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--crt-amber-dim);
  border: 2px solid var(--crt-bg);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--crt-amber);
}

html {
  scrollbar-color: var(--crt-amber-dim) var(--crt-bg);
  scrollbar-width: thin;
}

/* ================================================================
   8. SOURIS — se cache après 2,5 s d'immobilité (classe ajoutée en JS)
   ================================================================ */
body.curseur-souris-cachee {
  cursor: none;
  }






