/* 0x55 — feuille de style commune à 0x55.app, 0x04.app et aux pages annexes.
   Direction A2 « terminal radio, version vitrine » : l'univers transmission sert
   de cadre, le contenu reste lisible par tout le monde.
   Aucune ressource tierce : polices hébergées ici (OFL, licences dans fonts/). */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --fond: #06080a;
  --fond-2: #0a0f0c;
  --trait: #1f4a33;
  --signal: #3dff8f;
  --signal-clair: #b6ffd3;
  --texte: #d6e4dc;
  --texte-2: #a9bfb2;
  --texte-3: #8fb29c;
  --discret: #6fa987;
  --titre: #f2fff7;
  --lien: #c2d6ca;
  --pcb: #3fe0ff;
  --pcb-fond: #0b1020;
  --pcb-trait: #24345c;
  --pcb-legende: #8c9bc0;
  --bh: #e2b66e;
  --bh-fond: #15110b;
  --bh-trait: #4a3a22;
  --bh-legende: #b89d74;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --titres: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--fond);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--signal);
}
a:hover {
  color: var(--signal-clair);
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
}
.lien-evitement:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--signal);
  color: #04140a;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}
.page--etroite {
  max-width: 960px;
}

.mono {
  font-family: var(--mono);
}

/* ── En-tête ─────────────────────────────────────────────── */
.entete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px dashed var(--trait);
}
.logo {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  color: var(--signal);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  color: var(--lien);
  text-decoration: none;
}
.nav a:hover {
  color: var(--titre);
}
.nav .bouton-contour {
  color: var(--signal);
}
.retour {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--texte-3);
  text-decoration: none;
}

/* ── Boutons ─────────────────────────────────────────────── */
.bouton,
.bouton-contour {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.bouton {
  background: var(--signal);
  color: #04140a;
}
.bouton:hover {
  background: var(--signal-clair);
  color: #04140a;
}
.bouton-contour {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--signal);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}
.bouton--pcb {
  background: var(--pcb);
  color: #061018;
}
.bouton--pcb:hover {
  background: #a5efff;
  color: #061018;
}
.etiquette-bientot {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px dashed var(--bh);
  color: var(--bh);
  font-family: var(--mono);
  font-size: 15px;
}

/* ── Accueil ─────────────────────────────────────────────── */
.accroche {
  padding: clamp(56px, 9vw, 88px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px;
  align-items: center;
}
.accroche__texte {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.accroche__texte p {
  margin: 0;
}
.surtitre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--discret);
}
h1 {
  margin: 0;
  font-family: var(--titres);
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--titre);
  letter-spacing: -0.02em;
}
.chapeau {
  margin: 0;
  font-size: 19px;
  color: var(--texte-2);
  max-width: 40ch;
}
.invite {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--signal);
}
.curseur {
  animation: clignote 1s steps(1) infinite;
}
@keyframes clignote {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .curseur {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.terminal {
  border: 1px solid var(--trait);
  background: var(--fond-2);
  font-family: var(--mono);
}
.terminal__barre {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--trait);
  font-size: 12px;
  color: var(--discret);
}
.terminal__corps {
  margin: 0;
  padding: 24px;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 2;
  color: #a9d9bc;
  list-style: none;
}
.terminal__corps .dim {
  color: var(--discret);
}
.statut-pcb {
  color: var(--pcb);
}
.statut-bh {
  color: var(--bh);
}

/* ── Jeux ────────────────────────────────────────────────── */
.section {
  padding: 64px 0;
  border-top: 1px dashed var(--trait);
}
.jeux {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.commande {
  margin: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--signal);
}
.commande span {
  color: var(--discret);
}
.jeu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: center;
}
.jeu__visuel {
  margin: 0;
  border: 1px solid var(--pcb-trait);
  background: var(--pcb-fond);
}
.jeu__visuel figcaption {
  padding: 9px 14px;
  border-bottom: 1px solid var(--pcb-trait);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--pcb-legende);
}
.jeu--bh .jeu__visuel {
  border-color: var(--bh-trait);
  background: var(--bh-fond);
}
.jeu--bh .jeu__visuel figcaption {
  border-color: var(--bh-trait);
  color: var(--bh-legende);
}
.jeu__visuel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.jeu__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.jeu__genre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--pcb-legende);
}
.jeu--bh .jeu__genre {
  color: var(--bh-legende);
}
h3 {
  margin: 0;
  font-family: var(--titres);
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--pcb);
}
.jeu--bh h3 {
  color: var(--bh);
}
.jeu__resume {
  margin: 0;
  font-size: 18px;
}
.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: var(--texte-2);
}
.points li::before {
  content: '› ';
  font-family: var(--mono);
  color: var(--pcb);
}
.jeu--bh .points li::before {
  color: var(--bh);
}

/* ── Studio ──────────────────────────────────────────────── */
.studio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
  align-items: start;
}
h2 {
  margin: 0;
  font-family: var(--titres);
  font-size: 32px;
  font-weight: 700;
  color: var(--titre);
  line-height: 1.2;
}
.studio p {
  margin: 0;
  line-height: 1.7;
  color: var(--texte-2);
}
.binaire {
  font-family: var(--mono);
  color: var(--signal);
}

/* ── Pied de page ────────────────────────────────────────── */
.pied {
  padding: 28px 0 44px;
  border-top: 1px dashed var(--trait);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--texte-3);
}
.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.pied__liens a {
  color: var(--lien);
}
.lien-mono {
  font-family: var(--mono);
  text-decoration: none;
}

/* ── Pages de texte (mentions légales) ───────────────────── */
.texte-long {
  padding: 56px 0 72px;
  max-width: 70ch;
}
.texte-long h1 {
  font-size: clamp(34px, 5vw, 44px);
  margin-bottom: 32px;
}
.texte-long h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.texte-long p {
  margin: 0 0 14px;
  color: var(--texte-2);
}
.texte-long strong {
  color: var(--texte);
}

/* ── 0x04 et 404 ─────────────────────────────────────────── */
.fin {
  padding: clamp(64px, 10vw, 96px) 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.fin p {
  margin: 0;
}
.fin__code {
  font-family: var(--mono);
  font-size: clamp(88px, 16vw, 136px);
  line-height: 1;
  font-weight: 800;
  color: var(--signal);
  text-shadow: 0 0 24px rgba(61, 255, 143, 0.3);
}
.fin h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.generique {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.generique h2,
.titre-espace {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--signal);
}
.generique dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.generique dl div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.generique dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--discret);
}
.generique dd {
  margin: 0;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 30px;
  color: var(--titre);
}
.generique dd.petit {
  font-size: 20px;
  color: var(--lien);
}
.generique dd.signal {
  color: var(--signal);
}
.cimetiere {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cimetiere__intro p {
  margin: 8px 0 0;
  color: var(--texte-2);
}
.tombes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.tombe {
  border: 1px solid var(--trait);
  border-radius: 90px 90px 4px 4px;
  background: var(--fond-2);
  padding: 44px 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tombe--libre {
  border-style: dashed;
}
.tombe__rip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--discret);
}
.tombe__nom {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 22px;
  color: var(--titre);
}
.tombe__dates {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--texte-3);
}
.tombe__cause {
  font-size: 14px;
  color: var(--texte-2);
}
