/* catsignal.fr : une nuit d'août 1989, du pixel, une lampe qui chauffe dans le noir */
@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/PressStart2P.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Pixel Operator";
  src: url("../fonts/PixelOperator.woff2") format("woff2");
  font-display: swap;
}

:root {
  --nuit: #070a1c;
  --nuit-2: #0c1230;
  --carte: #11183a;
  --bord: #26306a;
  --texte: #e7e9f6;
  --texte-doux: #aab2d8;
  --ambre: #ffbe5c;
  --ambre-fonce: #d9872a;
  --vert: #86f7a8;
  --titre: "Press Start 2P", ui-monospace, monospace;
  --pixel: "Pixel Operator", ui-monospace, monospace;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ambre); text-underline-offset: 3px; }
a:hover { color: #ffd896; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }

.contenu { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* ─── En-tête ─────────────────────────────────────────── */
.entete {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(16px, calc((100% - 1100px) / 2));
}
.entete .marque {
  font-family: var(--titre); font-size: 11px; letter-spacing: 1px;
  color: var(--texte); text-decoration: none; white-space: nowrap;
}
.entete .marque span { color: var(--ambre); }
.entete nav { display: flex; align-items: center; gap: 22px; }
.entete nav a {
  font-family: var(--pixel); font-size: 16px; color: var(--texte-doux); text-decoration: none;
}
.entete nav a:hover { color: var(--texte); }
.entete nav a.langue {
  border: 2px solid var(--bord); padding: 2px 10px; color: var(--texte);
}
@media (max-width: 720px) { .entete nav a:not(.langue) { display: none; } }

/* ─── Haut de page : le chat à la fenêtre ─────────────── */
.hero {
  position: relative; min-height: min(92vh, 900px); display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  z-index: -2;
}
.hero::before {          /* fondu vers la nuit + lignes d'écran cathodique */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,10,28,.55) 0%, rgba(7,10,28,0) 22%, rgba(7,10,28,0) 45%, rgba(7,10,28,.85) 78%, var(--nuit) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
}
.hero .contenu { padding-block: 120px 64px; }
.surtitre {
  font-family: var(--pixel); font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--vert); margin: 0 0 18px;
}
.titre {
  font-family: var(--titre); font-weight: normal; margin: 0; line-height: 1.15;
  font-size: clamp(30px, 7.4vw, 76px); letter-spacing: 2px;
  text-shadow: 4px 4px 0 #000, 0 0 24px rgba(120,150,255,.35);
}
.titre .annee {
  display: block; color: var(--ambre); font-size: .62em; margin-top: .35em;
  text-shadow: 3px 3px 0 #000, 0 0 22px rgba(255,170,60,.55);
}
.accroche { max-width: 620px; font-size: 1.15rem; color: #dfe3fb; margin: 26px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

.bouton {
  display: inline-block; font-family: var(--pixel); font-size: 16px; line-height: 1.2; letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 22px; text-decoration: none; color: #1a1006; background: var(--ambre);
  box-shadow: 0 4px 0 var(--ambre-fonce), 0 0 0 3px #000;
}
.bouton:hover { color: #1a1006; background: #ffcd7e; }
.bouton.bientot { background: transparent; color: var(--ambre); box-shadow: inset 0 0 0 3px var(--ambre); cursor: default; }
.lien-bas { font-family: var(--pixel); font-size: 16px; color: var(--texte-doux); text-decoration: none; }
.lien-bas:hover { color: var(--texte); }

/* ─── Sections ────────────────────────────────────────── */
section { padding-block: 72px; }
@media (max-width: 640px) { section { padding-block: 52px; } .hero .contenu { padding-block: 110px 36px; } }
.section-titre {
  font-family: var(--titre); font-weight: normal; font-size: clamp(16px, 2.6vw, 22px);
  color: var(--ambre); margin: 0 0 28px; letter-spacing: 1px;
}
.section-titre::before { content: "> "; color: var(--vert); }

.deux-colonnes { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; gap: 28px; } }
.histoire p { margin: 0 0 1em; }
.histoire .question { font-family: var(--pixel); font-size: 32px; line-height: 1.1; color: var(--ambre); margin-top: 1.2em; }

.cadre {          /* une capture posée comme un écran */
  margin: 0; background: #000; padding: 6px;
  box-shadow: 0 0 0 3px var(--bord), 8px 8px 0 rgba(0,0,0,.6);
}
.cadre img, .cadre video { width: 100%; }
.cadre figcaption { font-family: var(--pixel); font-size: 16px; color: var(--texte-doux); padding: 8px 4px 2px; }

/* ─── Au programme ────────────────────────────────────── */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .atouts { grid-template-columns: 1fr; } }
.atout { background: var(--carte); padding: 24px 22px; box-shadow: 0 0 0 2px var(--bord); }
.atout h3 { font-family: var(--pixel); font-weight: normal; font-size: 32px; line-height: 1; margin: 0 0 14px; color: var(--texte); }
.atout .num { font-family: var(--titre); font-size: 12px; color: var(--vert); display: block; margin-bottom: 14px; }
.atout p { margin: 0; color: var(--texte-doux); }

.bonus { margin-top: 44px; }
.bonus h3 { font-family: var(--pixel); font-weight: normal; font-size: 32px; line-height: 1; margin: 0 0 10px; }
.bonus .etiquette {
  display: inline-block; font-family: var(--titre); font-size: 10px; color: #06120a; background: var(--vert);
  padding: 6px 8px; margin-bottom: 14px;
}
.bonus p { color: var(--texte-doux); margin: 0 0 1em; }

/* ─── Images du jeu ───────────────────────────────────── */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .galerie { grid-template-columns: 1fr; } }
.galerie a { display: block; }
.galerie a:hover img { filter: brightness(1.12); }

/* ─── Chapitre 1 ──────────────────────────────────────── */
.fiche { background: var(--carte); box-shadow: 0 0 0 3px var(--bord); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .fiche { grid-template-columns: 1fr; padding: 24px 20px; } }
.fiche dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.fiche dt { font-family: var(--pixel); font-size: 16px; padding-top: 3px; color: var(--vert); }
.fiche dd { margin: 0; }
@media (max-width: 420px) { .fiche dl { grid-template-columns: 1fr; gap: 2px; } .fiche dd { margin-bottom: 10px; } }

/* ─── Studio ──────────────────────────────────────────── */
.studio { background: linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%); }
.studio .contenu { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
@media (max-width: 640px) { .studio .contenu { grid-template-columns: 1fr; } }
.lampe {            /* une triode qui chauffe */
  width: 74px; height: 120px; margin-inline: auto; position: relative;
  border: 4px solid #8d97c9; border-radius: 37px 37px 10px 10px; background: rgba(255,190,92,.06);
  box-shadow: 0 0 40px rgba(255,170,60,.25);
}
.lampe::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 26px; height: 26px; translate: -50% -50%;
  background: var(--ambre); box-shadow: 0 0 18px 6px rgba(255,170,60,.7); border-radius: 50%;
  animation: chauffe 3.5s ease-in-out infinite;
}
.lampe::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -20px; height: 16px; background: #3a4170;
}
@keyframes chauffe { 50% { opacity: .65; box-shadow: 0 0 10px 3px rgba(255,170,60,.45); } }
@media (prefers-reduced-motion: reduce) { .lampe::before { animation: none; } }
.studio h2 { font-family: var(--titre); font-weight: normal; font-size: 18px; color: var(--ambre); margin: 0 0 14px; }
.studio p { margin: 0 0 1em; color: var(--texte-doux); }
.courriel { font-family: var(--pixel); font-size: 32px; }
@media (max-width: 380px) { .courriel { font-size: 16px; } }

/* ─── Pied de page ────────────────────────────────────── */
.pied { border-top: 2px solid var(--bord); padding-block: 26px 40px; color: var(--texte-doux); font-size: .95rem; }
.pied .contenu { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied a { color: var(--texte-doux); }
.pied a:hover { color: var(--texte); }

/* ─── Pages de texte (mentions, confidentialité) ──────── */
.page-texte .contenu { max-width: 760px; padding-block: 120px 60px; }
.page-texte h1 { font-family: var(--titre); font-weight: normal; font-size: clamp(18px, 3vw, 26px); color: var(--ambre); line-height: 1.4; margin: 0 0 10px; }
.page-texte .maj { color: var(--texte-doux); margin: 0 0 36px; }
.page-texte h2 { font-family: var(--pixel); font-weight: normal; font-size: 32px; line-height: 1.1; color: var(--vert); margin: 36px 0 8px; }
.page-texte p, .page-texte li { color: #d5d9f0; }
.page-texte ul { padding-left: 1.2em; }
