/* ============================================================
   Bar Mitsva de Noam — thème Arcade / jeu vidéo rétro
   Nuit étoilée, néons rose et cyan, pixels.
   ============================================================ */

:root {
  --nuit:    #0B0B1E;
  --nuit-2:  #15123A;
  --violet:  #2A1458;
  --rose:    #FF2E88;
  --cyan:    #00E5FF;
  --jaune:   #FFD23F;
  --vert:    #39FF14;
  --blanc:   #F4F1FF;
  --gris:    #A9A3C9;

  --pixel:  'Press Start 2P', monospace;
  --corps:  'VT323', 'Courier New', monospace;
  --hebreu: 'Secular One', 'Arial Hebrew', sans-serif;

  --hauteur-hud: 44px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--corps);
  font-size: 22px;
  line-height: 1.3;
  color: var(--blanc);
  background: var(--nuit);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.pas-de-scroll { overflow: hidden; height: 100vh; }

p { margin: 0; }

.bsd {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 5;
  font-family: var(--hebreu);
  font-size: 18px;
  color: var(--blanc);
}

/* les lignes d'écran cathodique, très légères, sur tout le site */
.balayage {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px);
}


/* ---------- Les sprites (dessinés en pixels par script.js) ---------- */

.sprite { display: inline-block; line-height: 0; }
.sprite svg { width: 100%; height: auto; shape-rendering: crispEdges; }


/* ---------- Le cadre « pixel » (coins crantés façon console) ---------- */

.cadre-pixel {
  --c: var(--blanc);
  position: relative;
  background: var(--nuit-2);
  box-shadow:
    -4px 0 0 0 var(--c),  4px 0 0 0 var(--c),
     0 -4px 0 0 var(--c), 0 4px 0 0 var(--c),
    -8px 0 0 0 #000,      8px 0 0 0 #000,
     0 -8px 0 0 #000,     0 8px 0 0 #000;
}


/* ============================================================
   1. LA PAGE DE GARDE
   ============================================================ */

.couverture {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--nuit);
}

/* la salle d'arcade en photo, floutée et assombrie derrière la borne */
.couverture::before {
  content: '';
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11, 11, 30, .25), rgba(11, 11, 30, .85) 75%),
    url('images/salle-arcade.jpg') center / cover no-repeat,
    radial-gradient(circle at 20% 30%, rgba(255, 46, 136, .35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, .3), transparent 40%),
    var(--nuit);
  filter: blur(3px) saturate(1.2);
}

.couverture__contenu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 16px 20px;
}

.couverture__appel {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--jaune);
  text-shadow: 0 0 8px rgba(255, 210, 63, .8);
  animation: clignote 1s steps(1) infinite;
}

@keyframes clignote {
  50% { opacity: 0; }
}

/* la page de garde s'éteint comme une vieille télé */
.couverture.eteinte {
  animation: tele-off .7s ease-in forwards;
}

@keyframes tele-off {
  0%   { transform: scale(1, 1);     filter: brightness(1); }
  45%  { transform: scale(1, .006);  filter: brightness(3); }
  75%  { transform: scale(.2, .006); filter: brightness(4); opacity: 1; }
  100% { transform: scale(0, 0);     opacity: 0; }
}


/* ---------- La borne d'arcade ---------- */

.borne {
  --l: min(300px, 78vw);
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--l);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  filter: drop-shadow(0 0 22px rgba(255, 46, 136, .35)) drop-shadow(0 20px 20px rgba(0, 0, 0, .7));
  -webkit-tap-highlight-color: transparent;
}

.borne:focus-visible { outline: 3px solid var(--cyan); outline-offset: 8px; }

/* l'enseigne lumineuse en haut */
.borne__fronton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 10px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #2C0F4F, #160829);
  border: 4px solid #000;
  box-shadow: inset 0 0 0 2px var(--rose), inset 0 0 22px rgba(255, 46, 136, .5);
}

.borne__neon {
  font-family: var(--pixel);
  font-size: calc(var(--l) * .12);
  line-height: 1;
  color: #FFE3F1;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--rose), 0 0 22px var(--rose), 0 0 34px var(--rose);
  animation: neon 4s infinite;
}

@keyframes neon {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63%                     { opacity: .45; }
}

.borne__sous-titre {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}

/* le meuble, avec ses liserés néon sur les côtés */
.borne__corps {
  display: block;
  padding: 14px;
  background: linear-gradient(90deg, #1A0B33, #33166A 50%, #1A0B33);
  border-left: 4px solid #000;
  border-right: 4px solid #000;
  box-shadow: inset 4px 0 0 var(--cyan), inset -4px 0 0 var(--cyan);
}

.borne__ecran {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: 14px / 18px;
  background: radial-gradient(ellipse at 50% 50%, #1B1450 0%, #08061A 80%);
  border: 10px solid #0A0A0A;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .9), 0 0 0 2px #333;
}

/* lignes + reflet bombé de l'écran cathodique */
.borne__ecran::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(255, 255, 255, .12), transparent 40%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px);
  animation: scintille .12s steps(2) infinite;
}

@keyframes scintille {
  50% { opacity: .85; }
}

.ecran__etat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--l) * .03);
  padding: 8px;
  text-align: center;
  font-family: var(--pixel);
  visibility: hidden;
}

/* quel écran est allumé ? (classe posée sur .borne__ecran) */
.borne__ecran:not(.charge):not(.gagne) .ecran__etat--titre,
.borne__ecran.charge .ecran__etat--chargement,
.borne__ecran.gagne .ecran__etat--gagne { visibility: visible; }

.ecran__petit {
  font-size: calc(var(--l) * .03);
  color: var(--jaune);
}

.ecran__nom {
  font-size: calc(var(--l) * .13);
  line-height: 1;
  color: var(--blanc);
  text-shadow: 3px 3px 0 var(--rose), 6px 6px 0 #5B1F8A;
}

.ecran__nom--petit { font-size: calc(var(--l) * .06); text-shadow: 2px 2px 0 var(--rose); }

.ecran__level {
  font-size: calc(var(--l) * .045);
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}

.ecran__level--gros {
  font-size: calc(var(--l) * .08);
  color: var(--jaune);
  text-shadow: 3px 3px 0 #B5480C;
  animation: saute .35s ease-in-out infinite alternate;
}

@keyframes saute {
  to { transform: translateY(-6px); }
}

.sprite--ecran { width: calc(var(--l) * .14); margin: 2px 0; }

.ecran__date {
  font-size: calc(var(--l) * .033);
  color: var(--blanc);
}

.ecran__clignote {
  font-size: calc(var(--l) * .033);
  color: var(--rose);
  animation: clignote .8s steps(1) infinite;
}

/* la jauge de chargement en blocs */
.jauge {
  display: block;
  width: 78%;
  height: calc(var(--l) * .07);
  margin-top: 6px;
  padding: 3px;
  border: 3px solid var(--blanc);
}
.jauge__plein {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--vert) 0 10px, transparent 10px 13px);
}

.ecran__pourcent {
  font-size: calc(var(--l) * .035);
  color: var(--vert);
}

/* le tableau de commande : manette + boutons */
.borne__panneau {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(var(--l) * .27);
  margin: 0 -10px;
  padding: 0 22px;
  background: linear-gradient(180deg, #3D1C78, #1E0B3D);
  border: 4px solid #000;
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
}

.manche {
  position: relative;
  width: 10px;
  height: 34px;
  margin-top: 4px;
  background: linear-gradient(90deg, #555, #DDD 45%, #777);
  border-radius: 3px;
  transform-origin: 50% 100%;
}
.manche::after {           /* le socle */
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 34px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #0A0A0A;
}
.manche__boule {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF9AC8, var(--rose) 45%, #8A0F45);
}
.borne.joue .manche { animation: manche .5s ease-in-out 2; }

@keyframes manche {
  25% { transform: rotate(-22deg); }
  75% { transform: rotate(22deg); }
}

.bouton-start {
  padding: 9px 10px 8px;
  border-radius: 6px;
  background: var(--jaune);
  box-shadow: 0 5px 0 #B5480C, 0 0 16px rgba(255, 210, 63, .7);
  font-family: var(--pixel);
  font-size: 10px;
  color: #3A1A00;
  animation: pulse-start 1s ease-in-out infinite;
}
.borne.joue .bouton-start { transform: translateY(4px); box-shadow: 0 1px 0 #B5480C; animation: none; }

@keyframes pulse-start {
  50% { box-shadow: 0 5px 0 #B5480C, 0 0 28px rgba(255, 210, 63, 1); }
}

.bouton-rond {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--pixel);
  font-size: 9px;
  color: #fff;
}
.bouton-rond--a { background: var(--rose); box-shadow: 0 4px 0 #8A0F45; }
.bouton-rond--b { background: #00A6C9; box-shadow: 0 4px 0 #005A6E; margin-top: 12px; }

/* le bas de la borne avec les fentes à pièces */
.borne__pied {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 14px 10px 16px;
  background: linear-gradient(180deg, #24104A, #12072A);
  border: 4px solid #000;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.fente {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: #0A0A0A;
  border: 2px solid #444;
  font-family: var(--pixel);
  font-size: 6px;
  color: #FF6B6B;
}
.fente i {
  width: 4px;
  height: 16px;
  background: #FF3B3B;
  box-shadow: 0 0 8px #FF3B3B;
}


/* ---------- Le compte à rebours de la page de garde ---------- */

.compteur {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compteur__case {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
}

.compteur--couverture .compteur__chiffre {
  font-family: var(--pixel);
  font-size: 18px;
  line-height: 1.2;
  color: var(--blanc);
  text-shadow: 2px 2px 0 var(--rose);
}

.compteur__libelle {
  margin-top: 6px;
  font-family: var(--pixel);
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
}


/* ============================================================
   2. LE JEU (l'invitation)
   ============================================================ */

/* la barre de score en haut */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--hauteur-hud);
  padding: 0 14px;
  background: rgba(11, 11, 30, .92);
  border-bottom: 3px solid var(--rose);
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--blanc);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hud b { font-weight: 400; color: var(--jaune); }
.hud__vies { display: flex; gap: 4px; }
.sprite--vie { width: 16px; }

.jeu {
  position: relative;
  padding: calc(var(--hauteur-hud) + 46px) 16px 0;
  /* un ciel d'étoiles en pixels, et une grille néon tout en bas */
  background:
    radial-gradient(circle at 12% 8%,  #fff 0 1px, transparent 2px),
    radial-gradient(circle at 80% 14%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 46% 30%, var(--cyan) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 46%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 24% 60%, var(--rose) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 78%, #fff 0 1px, transparent 2px),
    linear-gradient(180deg, var(--nuit) 0%, #120B33 50%, #1C0B3D 100%);
  background-size: 210px 210px, 260px 260px, 330px 330px, 190px 190px, 280px 280px, 240px 240px, 100% 100%;
  animation: etoiles 60s linear infinite;
}

@keyframes etoiles {
  to { background-position: 0 210px, 0 260px, 0 330px, 0 190px, 0 280px, 0 240px, 0 0; }
}


/* ---------- Titres ---------- */

.surtitre,
.titre-jeu {
  margin: 0 0 28px;
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.surtitre {
  font-size: 12px;
  color: var(--vert);
  text-shadow: 0 0 8px rgba(57, 255, 20, .6);
}

.titre-jeu {
  font-size: clamp(18px, 5.5vw, 28px);
  color: var(--jaune);
  text-shadow: 3px 3px 0 var(--rose);
}


/* ---------- La fiche du joueur ---------- */

.fiche-joueur {
  --c: var(--cyan);
  max-width: 380px;
  margin: 0 auto;
  padding: 26px 22px 24px;
  text-align: center;
}

.fiche-joueur__avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  padding: 14px;
  background: radial-gradient(circle, #3D1C78, #1A0B33);
  box-shadow: 0 0 0 4px var(--rose), 0 0 24px rgba(255, 46, 136, .5);
}
.sprite--avatar { width: 100%; animation: respire 1.2s steps(2) infinite; }

@keyframes respire {
  50% { transform: translateY(-3px); }
}

.nom-joueur {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(20px, 6.4vw, 30px);
  line-height: 1.3;
  color: var(--blanc);
  text-shadow: 3px 3px 0 var(--rose), 0 0 18px rgba(255, 46, 136, .6);
}

.nom-hebreu {
  margin-top: 8px;
  font-family: var(--hebreu);
  font-size: 36px;
  line-height: 1.2;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, .6);
}

.stats {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.stats li {
  display: grid;
  grid-template-columns: 82px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 20px;
}
.stats b { font-family: var(--pixel); font-weight: 400; font-size: 9px; color: var(--jaune); text-align: right; }

.stats__barre {
  height: 14px;
  border: 2px solid var(--blanc);
  background:
    linear-gradient(90deg, var(--vert) var(--v), transparent 0) 0 0 / 0 100% no-repeat,
    #000;
  transition: background-size 1.4s steps(12);
}
.stats__barre--max { background-image: linear-gradient(90deg, var(--rose), var(--jaune), var(--cyan)); }
.visible .stats__barre,
html:not(.js) .stats__barre { background-size: 100% 100%; }


/* ---------- La boîte de dialogue ---------- */

.dialogue {
  position: relative;
  max-width: 420px;
  min-height: 250px;
  margin: 48px auto 0;
  padding: 20px 20px 34px;
  background: #000;
  border: 4px solid var(--blanc);
  outline: 4px solid #000;
  box-shadow: 0 0 0 8px var(--violet), 0 14px 30px rgba(0, 0, 0, .6);
  font-size: 23px;
  line-height: 1.35;
}

.dialogue__ligne--espace { margin-top: 14px; }

.dialogue__ligne--nom {
  margin-top: 10px;
  font-family: var(--pixel);
  font-size: 16px;
  color: var(--jaune);
}

.dialogue__suite {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 18px;
  color: var(--blanc);
  animation: clignote .7s steps(1) infinite;
}


/* ---------- Les niveaux ---------- */

.niveaux { padding-top: 76px; }

.stages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.stage {
  --c: var(--blanc);
  width: min(360px, 100%);
  padding: 22px 20px 26px;
  text-align: center;
  transition: transform .2s steps(3);
}
.stage:hover { transform: translateY(-6px); }

.stage--boss {
  --c: var(--rose);
  background: linear-gradient(180deg, #2A0C2E, var(--nuit-2));
}

.stage__monde {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cyan);
}
.stage__monde--boss { color: #FF5A5A; animation: clignote 1.2s steps(1) infinite; }

.sprite--stage { width: 64px; margin: 18px 0 12px; }

.stage__titre {
  margin: 0 0 14px;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--jaune);
}

.stage__date { font-size: 24px; }
.stage__date span { display: block; font-size: 19px; color: var(--gris); }

.stage__heure {
  margin-top: 10px;
  font-family: var(--pixel);
  font-size: 22px;
  color: var(--blanc);
  text-shadow: 3px 3px 0 var(--rose);
}

.stage__lieu {
  margin-top: 16px;
  font-size: 21px;
  line-height: 1.25;
}
.stage__lieu strong { color: var(--cyan); font-weight: 400; }

.stage__note {
  margin-top: 10px;
  font-size: 19px;
  color: var(--gris);
}

.bouton-jeu {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 16px 11px;
  background: var(--rose);
  box-shadow: 0 6px 0 #8A0F45, 0 0 0 3px #000;
  font-family: var(--pixel);
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  transition: transform .1s steps(2), box-shadow .1s steps(2);
}
.bouton-jeu:hover  { transform: translateY(-2px); }
.bouton-jeu:active { transform: translateY(5px); box-shadow: 0 1px 0 #8A0F45, 0 0 0 3px #000; }


/* ---------- Le compte à rebours en blocs bonus ---------- */

.rebours { padding-top: 80px; }

.compteur--blocs { gap: 12px; flex-wrap: wrap; }
.compteur--blocs .compteur__case { min-width: 0; }

.compteur--blocs .compteur__chiffre {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--jaune);
  border: 4px solid #000;
  box-shadow: inset -5px -5px 0 #C98A00, inset 5px 5px 0 #FFF0A8;
  font-family: var(--pixel);
  font-size: 18px;
  color: #5A2A00;
  animation: bloc 1.6s ease-in-out infinite;
}
/* les quatre rivets */
.compteur--blocs .compteur__chiffre::before {
  content: '';
  position: absolute;
  inset: 4px;
  --rivet: radial-gradient(circle, #5A2A00 0 2px, transparent 2.5px);
  background:
    var(--rivet) 0 0 / 7px 7px no-repeat,
    var(--rivet) 100% 0 / 7px 7px no-repeat,
    var(--rivet) 0 100% / 7px 7px no-repeat,
    var(--rivet) 100% 100% / 7px 7px no-repeat;
}
.compteur--blocs .compteur__case:nth-child(2) .compteur__chiffre { animation-delay: -.4s; }
.compteur--blocs .compteur__case:nth-child(3) .compteur__chiffre { animation-delay: -.8s; }
.compteur--blocs .compteur__case:nth-child(4) .compteur__chiffre { animation-delay: -1.2s; }

@keyframes bloc {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.compteur--blocs .compteur__libelle { margin-top: 10px; font-size: 8px; }


/* ---------- La quête (le verset) ---------- */

.quete {
  --c: var(--vert);
  max-width: 440px;
  margin: 90px auto 0;
  padding: 26px 22px;
  text-align: center;
  background: #031407;
}

.quete__titre {
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--vert);
  text-shadow: 0 0 8px rgba(57, 255, 20, .7);
}

.quete__hebreu {
  margin-top: 18px;
  font-family: var(--hebreu);
  font-size: 25px;
  line-height: 1.5;
  color: var(--blanc);
}

.quete__francais {
  margin-top: 12px;
  font-size: 22px;
  color: #C9FFC0;
}

.quete__source {
  margin-top: 12px;
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--vert);
}


/* ---------- La pensée ---------- */

.pensee {
  max-width: 420px;
  margin: 70px auto 0;
  font-size: 22px;
  text-align: center;
  color: var(--gris);
}


/* ---------- Le pied de page ---------- */

.pied {
  margin: 90px -16px 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(255, 46, 136, .12));
}

.pied__pieces {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.sprite--piece { width: 30px; animation: piece 1s steps(4) infinite; }
.sprite--piece:nth-child(2) { animation-delay: -.33s; }
.sprite--piece:nth-child(3) { animation-delay: -.66s; }

@keyframes piece {
  0%   { transform: scaleX(1); }
  25%  { transform: scaleX(.5); }
  50%  { transform: scaleX(.12); }
  75%  { transform: scaleX(.5); }
}

.pied__merci {
  margin-top: 26px;
  font-family: var(--pixel);
  font-size: clamp(16px, 5vw, 24px);
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--blanc);
  text-shadow: 3px 3px 0 var(--rose);
}

.pied__continue {
  margin-top: 18px;
  font-family: var(--pixel);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--cyan);
}
.pied__continue span { display: block; margin-top: 10px; color: var(--jaune); animation: clignote 1s steps(1) infinite; }

.pied__mot {
  padding: 30px 24px 44px;
  font-size: 24px;
  color: var(--blanc);
}

.barre-signature {
  padding: 14px 16px 70px;
  background: #000;
  border-top: 3px solid var(--rose);
}
.barre-signature p {
  font-family: var(--corps);
  font-size: 17px;
  letter-spacing: .05em;
  color: var(--gris);
}


/* ---------- Apparition au défilement (par « marches », façon pixel) ---------- */

.js .apparait {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s steps(4), transform .6s steps(4);
}
.js .apparait.visible { opacity: 1; transform: none; }


/* ============================================================
   LE BOUTON MUSIQUE (composant commun à tous les sites)
   ============================================================ */

.musique {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  background: var(--rose);
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transition: transform .2s ease, background-color .3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.musique.visible { display: flex; }

/* l'onde qui s'echappe du bouton pendant la lecture */
.musique::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--rose);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

.musique.joue { animation: musique-respire 2s infinite ease-in-out; }
.musique.joue::before { animation: musique-onde 1.5s infinite ease-out; }

@keyframes musique-respire {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

@keyframes musique-onde {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}

/* les quatre barres de l'egaliseur */
.musique__barres {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 16px;
}

.musique__barres span {
  width: 2.5px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}

/* a l'arret les barres restent basses ; en lecture elles montent en vague */
.musique.joue .musique__barres span {
  animation: musique-vague .45s infinite ease-in-out alternate;
}

.musique.joue .musique__barres span:nth-child(1) { animation-delay: 0s; }
.musique.joue .musique__barres span:nth-child(2) { animation-delay: .15s; }
.musique.joue .musique__barres span:nth-child(3) { animation-delay: .3s; }
.musique.joue .musique__barres span:nth-child(4) { animation-delay: .1s; }

@keyframes musique-vague {
  from { height: 3px; }
  to   { height: 16px; }
}


/* ============================================================
   ÉCRANS PLUS LARGES
   ============================================================ */

@media (min-width: 768px) {
  .hud { font-size: 11px; padding: 0 28px; }

  .stages {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 56px;
  }

  .compteur--blocs { gap: 22px; }
  .compteur--blocs .compteur__chiffre { width: 92px; height: 92px; font-size: 24px; }
}

@media (min-width: 768px) and (min-height: 800px) {
  .borne { --l: 340px; }
}

/* petits téléphones : on resserre la page de garde */
@media (max-height: 700px) {
  .borne { --l: min(250px, 66vw); }
  .couverture__contenu { gap: 10px; padding-top: 16px; }
}

@media (max-width: 360px) {
  .hud { font-size: 7px; padding: 0 8px; }
}


/* Respecte les personnes qui ont désactivé les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01s !important;
  }
}
