/* =====================================================================
   Écran de projection
   Scène fluide : toutes les mesures sont exprimées en --u, qui vaut
   1px sur un écran 1920×1080 et suit la plus petite dimension de
   l'écran (vw / vh), quelle que soit la taille du vidéoprojecteur.
   Langage : aplats de couleur, aucun dégradé ni halo ; le safran est
   la seule couleur d'attention (buzz, indice en cours, la main).
   ===================================================================== */

html, body.scene { height: 100%; overflow: hidden; }
body.scene { background: var(--encre); cursor: default; }
body.scene.curseur-cache { cursor: none; }

:root {
  --u: min(calc(100vw / 1920), calc(100vh / 1080));
  --brume-2: #8C86C4;        /* texte discret sur encre (5:1) */
  --sur-majorelle: #E4E0FF;  /* texte secondaire sur Majorelle */
  --sur-safran: #170F00;
}

.scene-fond { position: fixed; inset: 0; background: var(--encre); }

.stage {
  position: fixed; inset: 0;
  color: var(--platre);
  overflow: hidden;
  font-size: calc(22 * var(--u));
}

/* Bandeau du haut ----------------------------------------------------- */
.bandeau {
  display: flex; align-items: center; gap: calc(16 * var(--u));
  min-width: 0;
  font-size: calc(24 * var(--u)); color: var(--brume);
  white-space: nowrap;
}
.marque { display: flex; align-items: center; gap: calc(14 * var(--u)); min-width: 0; flex: none; }
.marque img { height: calc(104 * var(--u)); width: auto; max-width: calc(380 * var(--u)); object-fit: contain; filter: drop-shadow(0 0 calc(14 * var(--u)) rgba(255, 184, 28, .35)); }
.marque .etoile-logo { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.marque-titre {
  font-family: var(--police-titre); font-weight: 700; color: var(--platre);
  font-size: calc(27 * var(--u));
  overflow: hidden; text-overflow: ellipsis; max-width: calc(620 * var(--u));
}
.contexte { display: flex; align-items: center; gap: calc(16 * var(--u)); min-width: 0; overflow: hidden; }
.marque + .contexte::before { content: "·"; color: var(--brume-2); }
.contexte > *:not(:empty) ~ *:not(:empty)::before { content: '·'; margin-inline-end: calc(16 * var(--u)); color: var(--brume-2); }
.contexte > *:empty { display: none; }
.manche-pastille { color: var(--platre); font-weight: 600; }
.compteur { color: var(--brume); }
.contexte .barrage { color: var(--safran); font-weight: 700; }

/* Vues ----------------------------------------------------------------- */
.vue { position: absolute; inset: 0; }
.vue-entree { animation: vue-entree .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes vue-entree { from { opacity: 0; } to { opacity: 1; } }

/* Vues simples : bandeau + contenu en colonne */
.vue-simple {
  display: flex; flex-direction: column;
  padding: calc(56 * var(--u)) calc(86 * var(--u)) calc(56 * var(--u));
}
.titre-vue {
  margin-top: calc(70 * var(--u));
  font-family: var(--police-titre); font-weight: 800;
  font-size: calc(110 * var(--u)); line-height: 1; letter-spacing: -0.01em;
}
.consigne { margin-top: calc(18 * var(--u)); font-size: calc(34 * var(--u)); color: var(--brume); }

/* Accueil (avant la partie) ------------------------------------------- */
.vue-accueil { display: grid; grid-template-columns: minmax(0, 1fr) calc(720 * var(--u)); }
.accueil-gauche {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--majorelle); color: #fff;
  padding: calc(72 * var(--u)) calc(86 * var(--u)) calc(64 * var(--u));
}
.accueil-logo { align-self: flex-start; margin-bottom: calc(34 * var(--u)); }
.accueil-logo img { height: calc(400 * var(--u)); max-width: calc(980 * var(--u)); }
.accueil-gauche .etoile-logo { width: calc(84 * var(--u)); height: calc(84 * var(--u)); margin-bottom: calc(40 * var(--u)); }
.accueil-gauche .etoile-logo path:first-child { fill: var(--majorelle-fonce); }
.grand-titre {
  font-family: var(--police-titre); font-weight: 800;
  font-size: calc(112 * var(--u)); line-height: .92; letter-spacing: -0.02em;
  overflow-wrap: anywhere; text-align: start;
}
.sous-titre { font-size: calc(36 * var(--u)); color: var(--sur-majorelle); margin-top: calc(24 * var(--u)); text-align: start; }
.inscrits-titre { margin-top: auto; padding-top: calc(32 * var(--u)); font-size: calc(28 * var(--u)); color: var(--sur-majorelle); }
.liste-inscrits {
  list-style: none; margin: calc(18 * var(--u)) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: calc(12 * var(--u));
  max-height: calc(300 * var(--u)); overflow: hidden;
}
.liste-inscrits li {
  display: inline-flex; align-items: center; gap: calc(12 * var(--u));
  padding: calc(8 * var(--u)) calc(20 * var(--u)) calc(8 * var(--u)) calc(14 * var(--u));
  border-radius: calc(8 * var(--u));
  background: var(--majorelle-fonce); color: #fff;
  font-family: var(--police-titre); font-weight: 700; font-size: calc(30 * var(--u));
}
.liste-inscrits li .puce { width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--c); box-shadow: none; }
.liste-inscrits li.hors { background: transparent; box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--majorelle-fonce); color: var(--sur-majorelle); }
.liste-inscrits li.hors .puce { background: transparent; border: calc(3 * var(--u)) solid var(--c); }
.liste-inscrits li.arrive { animation: arrive .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes arrive { from { transform: translateY(calc(16 * var(--u))); opacity: 0; } to { transform: none; opacity: 1; } }
.aucun-inscrit { font-size: calc(28 * var(--u)); color: var(--sur-majorelle); font-family: var(--police-texte) !important; font-weight: 400 !important; }

.accueil-droite {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(64 * var(--u)) calc(80 * var(--u));
}
.carte-qr { text-align: start; }
.carte-qr #qr { background: #fff; padding: calc(22 * var(--u)); width: calc(500 * var(--u)); }
.carte-qr .qr { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.qr-consigne { font-family: var(--police-titre); font-weight: 700; font-size: calc(38 * var(--u)); line-height: 1.1; margin-top: calc(30 * var(--u)); }
.qr-url { font-size: calc(24 * var(--u)); color: var(--brume); margin-top: calc(8 * var(--u)); word-break: break-all; }
.code-partie { display: flex; gap: calc(10 * var(--u)); margin-top: calc(36 * var(--u)); }
.code-partie span {
  width: calc(76 * var(--u)); height: calc(92 * var(--u)); display: grid; place-items: center;
  background: var(--encre-2); color: var(--platre);
  border-bottom: calc(5 * var(--u)) solid var(--majorelle);
  font-family: var(--police-titre); font-size: calc(62 * var(--u)); font-weight: 800; line-height: 1;
}
.code-legende { font-size: calc(22 * var(--u)); color: var(--brume); margin-top: calc(10 * var(--u)); }

.carte-connexion { text-align: start; max-width: calc(560 * var(--u)); }
.connexion-surtitre { font-size: calc(26 * var(--u)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--safran); }
.connexion-compteur { font-family: var(--police-titre); font-weight: 800; line-height: .9; margin-top: calc(18 * var(--u)); }
.connexion-compteur strong { font-size: calc(240 * var(--u)); color: var(--platre); }
.connexion-compteur span { font-size: calc(110 * var(--u)); color: var(--brume); }
.connexion-legende { font-family: var(--police-titre); font-weight: 700; font-size: calc(44 * var(--u)); margin-top: calc(6 * var(--u)); }
.connexion-consigne { font-size: calc(26 * var(--u)); line-height: 1.4; color: var(--brume); margin-top: calc(36 * var(--u)); padding-top: calc(24 * var(--u)); border-top: calc(2 * var(--u)) solid var(--encre-3); }

/* Tableau des scores (bandeau du bas, manche 1) ------------------------ */
.tableau-scores {
  display: grid; column-gap: calc(40 * var(--u)); row-gap: 0;
  grid-template-columns: repeat(var(--colonnes, 4), minmax(0, 1fr));
  align-content: center;
  background: var(--encre-2);
  padding: calc(22 * var(--u)) calc(86 * var(--u));
}
.tuile {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-items: center; column-gap: calc(14 * var(--u));
  min-height: calc(64 * var(--u)); padding: calc(10 * var(--u)) 0;
  border-bottom: calc(2 * var(--u)) solid var(--encre-3);
  transition: opacity .3s, color .3s;
}
.tuile::before {
  content: ''; grid-row: 1 / span 2; grid-column: 1;
  width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--c);
}
.tuile-nom {
  grid-column: 2; grid-row: 1;
  font-size: calc(28 * var(--u)); font-weight: 600; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tuile-info { display: none; }
.tuile-score {
  grid-column: 3; grid-row: 1 / span 2;
  font-family: var(--police-titre); font-weight: 800; font-size: calc(40 * var(--u)); line-height: 1;
}
.tuile-etat { grid-column: 2; grid-row: 2; font-size: calc(18 * var(--u)); color: var(--brume-2); line-height: 1.2; }
.tuile-etat:empty { display: none; }
.tableau-scores.compact { padding-top: calc(14 * var(--u)); padding-bottom: calc(14 * var(--u)); }
.tableau-scores.compact .tuile { min-height: calc(50 * var(--u)); padding: calc(6 * var(--u)) 0; }
.tableau-scores.compact .tuile-nom { font-size: calc(24 * var(--u)); }
.tableau-scores.compact .tuile-score { font-size: calc(32 * var(--u)); }

.tuile.exclu .tuile-nom { color: var(--brume-2); text-decoration: line-through; text-decoration-thickness: calc(2 * var(--u)); }
.tuile.exclu .tuile-score { color: var(--brume-2); }
.tuile.inactif { opacity: .45; }
.tuile.qualifie .tuile-etat { color: var(--safran); font-weight: 700; }
.tuile.buzz .tuile-nom, .tuile.buzz .tuile-score { color: var(--safran); font-weight: 700; }
.tuile.buzz { border-bottom-color: var(--safran); }
.score-plus {
  position: absolute; inset-inline-end: 0; top: calc(-26 * var(--u));
  font-family: var(--police-titre); font-size: calc(34 * var(--u)); font-weight: 800; color: #5BE5B7;
  animation: score-plus 1.6s ease-out forwards; pointer-events: none;
}
.score-plus.negatif { color: #FF8597; }
@keyframes score-plus { 0% { opacity: 0; transform: translateY(calc(20 * var(--u))); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(-20 * var(--u))); } }

/* Test des buzzers : grandes cases */
.vue-test .tableau-scores {
  margin-top: calc(56 * var(--u)); padding: 0; background: none;
  grid-template-columns: repeat(var(--colonnes, 4), minmax(0, 1fr)); gap: calc(18 * var(--u));
}
.vue-test .tuile {
  min-height: calc(140 * var(--u)); padding: calc(18 * var(--u)) calc(24 * var(--u));
  background: var(--encre-2); border: none; column-gap: calc(16 * var(--u));
}
.vue-test .tuile-nom { font-family: var(--police-titre); font-weight: 700; font-size: calc(36 * var(--u)); }
.vue-test .tuile-info { display: block; grid-column: 2; grid-row: 2; font-size: calc(20 * var(--u)); color: var(--brume); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vue-test .tuile-etat { position: absolute; inset-inline-end: calc(24 * var(--u)); bottom: calc(10 * var(--u)); }
.vue-test .tuile-score { font-size: calc(48 * var(--u)); color: var(--brume-2); }
.vue-test .tuile.ok { background: var(--emeraude); color: #04281D; }
.vue-test .tuile.ok .tuile-info, .vue-test .tuile.ok .tuile-score, .vue-test .tuile.ok .tuile-etat { color: #04281D; }
.vue-test .tuile.ok::before { box-shadow: 0 0 0 calc(2 * var(--u)) #04281D; }
.vue-test .tuile.sans-tablette { opacity: .55; }
.vue-test .tuile.eclair { animation: eclair .9s ease-out, test-saut .45s ease-out; }
@keyframes test-saut { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.test-bilan {
  align-self: flex-start; margin-top: calc(26 * var(--u)); padding: calc(12 * var(--u)) calc(28 * var(--u));
  border-radius: 999px; background: var(--encre-2); color: var(--platre);
  font-size: calc(34 * var(--u)); font-weight: 600;
}
.test-bilan:empty { display: none; }
.test-bilan .chiffres { font-family: var(--police-titre); font-weight: 800; color: var(--safran); }
.test-bilan.complet { background: var(--emeraude); color: #04281D; animation: test-saut .6s ease-out; }
.tuile.eclair { animation: eclair .9s ease-out; }
@keyframes eclair { 0% { background: var(--safran); color: var(--sur-safran); } 100% { } }

/* Manche 1 : intro et question ---------------------------------------- */
.vue-m1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 33.75%;
  grid-template-rows: minmax(0, 1fr) auto;
}
.m1-gauche {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: calc(64 * var(--u)) calc(76 * var(--u)) 0 calc(86 * var(--u));
}
.m1-champ {
  background: var(--majorelle); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(22 * var(--u)); padding: calc(40 * var(--u));
  min-height: 0;
}
.vue-m1 > .tableau-scores { grid-column: 1 / -1; }

.intro-texte { margin-top: auto; margin-bottom: auto; }
.intro-texte .surtitre { font-size: calc(30 * var(--u)); color: var(--brume); }
.intro-texte h1 {
  margin-top: calc(14 * var(--u));
  font-family: var(--police-titre); font-weight: 800;
  font-size: calc(128 * var(--u)); line-height: .95; letter-spacing: -0.01em; text-align: start;
}
.intro-texte p { margin-top: calc(28 * var(--u)); font-size: calc(34 * var(--u)); color: var(--brume); max-width: calc(980 * var(--u)); }
.intro-etoile { position: relative; width: calc(400 * var(--u)); height: calc(400 * var(--u)); }
.intro-etoile svg { width: 100%; height: 100%; overflow: visible; }
.intro-etoile path { fill: var(--majorelle-fonce); stroke: var(--safran); stroke-width: 5; stroke-linejoin: round; }
.intro-etoile span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--police-titre); font-size: calc(200 * var(--u)); font-weight: 800; line-height: 1; padding-top: 6%; }

.zone-question { display: contents; }
.question-carte { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.question-tete { display: flex; align-items: center; flex-wrap: wrap; gap: calc(14 * var(--u)); margin-top: calc(90 * var(--u)); min-height: calc(46 * var(--u)); }
.question-theme, .question-points {
  display: inline-flex; align-items: center;
  padding: calc(7 * var(--u)) calc(20 * var(--u)); border-radius: 999px;
  font-size: calc(26 * var(--u)); line-height: 1.2;
}
.question-theme { background: var(--encre-2); color: #CFC9FF; }
.question-points { background: var(--safran); color: var(--sur-safran); font-weight: 600; }
.question-texte {
  flex: 1; min-height: 0;
  display: flex; align-items: flex-start;
  margin: calc(30 * var(--u)) 0 calc(36 * var(--u));
  font-family: var(--police-titre); font-weight: 700;
  font-size: calc(100 * var(--u)); line-height: 1.04; letter-spacing: -0.01em;
  text-align: start;
  overflow: hidden; overflow-wrap: anywhere;
}
.question-texte > span { display: block; max-width: calc(1180 * var(--u)); text-wrap: balance; }

/* Bande du bas de la colonne question : buzz, verdict, réponse */
.question-bas { flex: none; margin-inline: calc(-86 * var(--u)) calc(-76 * var(--u)); margin-bottom: calc(48 * var(--u)); }
.question-bas:empty { display: none; }
.question-bas > * { padding-inline: calc(86 * var(--u)) calc(76 * var(--u)); }

.bloc-buzz {
  position: relative; overflow: hidden;
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: calc(28 * var(--u));
  padding-top: calc(26 * var(--u)); padding-bottom: calc(30 * var(--u));
  background: var(--safran); color: var(--sur-safran);
  animation: bande-entree .35s cubic-bezier(.2, .8, .2, 1);
}
.bb-haut { font-size: calc(26 * var(--u)); font-weight: 600; }
.bb-nom {
  font-family: var(--police-titre); font-weight: 800;
  font-size: calc(80 * var(--u)); line-height: 1;
  min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-bas { font-size: calc(26 * var(--u)); margin-inline-start: auto; }
.bloc-buzz .annonce-barre { height: calc(8 * var(--u)); background: var(--sur-safran); opacity: .5; }

.bloc-mauvaise {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: calc(28 * var(--u));
  padding-top: calc(26 * var(--u)); padding-bottom: calc(26 * var(--u));
  background: var(--grenade-fonce); color: #fff;
  animation: bande-entree .3s ease-out, secoue .5s .05s;
}
.bloc-mauvaise span { font-size: calc(26 * var(--u)); font-weight: 600; }
.bloc-mauvaise strong { font-family: var(--police-titre); font-weight: 800; font-size: calc(72 * var(--u)); line-height: 1.05; }
.bloc-temps {
  padding-top: calc(24 * var(--u)); padding-bottom: calc(24 * var(--u));
  background: var(--grenade-fonce); color: #fff;
  font-family: var(--police-titre); font-size: calc(60 * var(--u)); font-weight: 800; line-height: 1.1;
  animation: bande-entree .3s ease-out;
}
.bloc-temps.discret { background: var(--encre-2); color: var(--brume); font-size: calc(40 * var(--u)); }
.bloc-verdict {
  display: flex; align-items: stretch; padding-inline: 0 !important;
  animation: bande-entree .35s cubic-bezier(.2, .8, .2, 1);
}
.bv-gauche {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(20 * var(--u)) calc(36 * var(--u)) calc(20 * var(--u)) calc(86 * var(--u));
  min-width: 0; max-width: 50%;
}
.bloc-verdict.bonne .bv-gauche { background: var(--emeraude); color: #04281D; }
.bloc-verdict.rate .bv-gauche { background: var(--grenade-fonce); color: #fff; }
.bv-label { font-size: calc(24 * var(--u)); font-weight: 600; }
.bv-gauche strong { font-family: var(--police-titre); font-size: calc(60 * var(--u)); line-height: 1.05; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc-verdict.rate .bv-gauche strong { font-size: calc(40 * var(--u)); white-space: normal; }
.bv-points { font-family: var(--police-titre); font-size: calc(30 * var(--u)); font-weight: 800; }
.bv-reponse {
  flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0;
  padding: calc(18 * var(--u)) calc(76 * var(--u)) calc(18 * var(--u)) calc(40 * var(--u));
  background: var(--platre); color: var(--encre);
}
.bv-reponse small { font-size: calc(24 * var(--u)); font-weight: 600; color: var(--gris-texte); }
.bv-reponse span { font-family: var(--police-titre); font-size: calc(60 * var(--u)); font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; text-align: start; }
.bloc-verdict.seul .bv-gauche { max-width: none; flex: 1; padding-inline-end: calc(76 * var(--u)); }
@keyframes bande-entree { from { opacity: 0; transform: translateY(calc(16 * var(--u))); } to { opacity: 1; transform: none; } }

.chrono-etat { font-size: calc(26 * var(--u)); color: #fff; min-height: calc(36 * var(--u)); text-align: center; max-width: calc(420 * var(--u)); }

/* Chrono étoile (le tracé est créé par commun.js) ---------------------- */
.chrono { position: relative; }
.chrono svg { width: 100%; height: 100%; overflow: visible; }
.chrono-fond { fill: var(--encre-2); stroke: var(--encre-3); stroke-width: 5; stroke-linejoin: round; }
.chrono-trace { fill: none; stroke: var(--safran); stroke-width: 5; stroke-linejoin: round; stroke-linecap: butt; }
.chrono-texte {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--police-titre); font-weight: 800; line-height: 1; padding-top: 4%;
}
.chrono.grand { width: calc(440 * var(--u)); height: calc(440 * var(--u)); }
.chrono.grand .chrono-texte { font-size: calc(180 * var(--u)); }
.chrono.grand .chrono-fond { fill: var(--majorelle-fonce); stroke: var(--majorelle-clair); }
.chrono.moyen { width: calc(168 * var(--u)); height: calc(168 * var(--u)); }
.chrono.moyen .chrono-texte { font-size: calc(64 * var(--u)); }
.chrono.urgent .chrono-texte { color: var(--safran); animation: battement 1s ease-in-out infinite; }
.chrono.fini .chrono-texte { color: var(--brume); }
.chrono.grand.fini .chrono-texte { color: var(--sur-majorelle); }
.chrono.pause .chrono-texte { opacity: .75; }
.chrono.vide .chrono-trace { stroke: transparent; }
@keyframes battement { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.chrono-unite { font-size: calc(24 * var(--u)); color: var(--sur-majorelle); margin-top: calc(-8 * var(--u)); min-height: calc(30 * var(--u)); }

/* Annonces (qualifié, la main passe) ---------------------------------- */
.annonce {
  position: absolute; left: 0; right: 0; top: calc(395 * var(--u)); height: calc(290 * var(--u));
  display: flex; align-items: flex-start; justify-content: center; flex-direction: column;
  padding: 0 calc(86 * var(--u));
  background: var(--fond-annonce, var(--safran));
  color: var(--texte-annonce, var(--sur-safran));
  z-index: 20;
  animation: annonce-entree .35s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}
.annonce-haut { font-size: calc(32 * var(--u)); font-weight: 600; }
.annonce-grand {
  font-family: var(--police-titre); font-size: calc(124 * var(--u)); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.annonce-bas { font-size: calc(32 * var(--u)); margin-top: calc(6 * var(--u)); }
.annonce-barre { position: absolute; left: 0; bottom: 0; height: calc(10 * var(--u)); width: 100%; background: currentColor; opacity: .4; transform-origin: left center; }
.annonce.sortie { animation: annonce-sortie .35s ease-in forwards; }
.annonce.secoue { animation: annonce-entree .35s cubic-bezier(.2, .8, .2, 1), secoue .5s .1s; }
@keyframes annonce-entree { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes annonce-sortie { to { clip-path: inset(50% 0 50% 0); } }
@keyframes secoue { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(calc(-20 * var(--u))); } 40% { transform: translateX(calc(16 * var(--u))); } 60% { transform: translateX(calc(-10 * var(--u))); } 80% { transform: translateX(calc(6 * var(--u))); } }

/* Classement ----------------------------------------------------------- */
.vue-classement .titre-vue { margin-top: calc(56 * var(--u)); }
.classement {
  flex: 1; min-height: 0;
  list-style: none; margin: calc(40 * var(--u)) 0 0; padding: 0;
  display: grid; row-gap: 0; column-gap: calc(64 * var(--u)); align-content: start;
  grid-template-columns: repeat(var(--colonnes, 1), minmax(0, 1fr));
  max-width: calc(1400 * var(--u));
}
.classement.deux-colonnes { max-width: none; grid-auto-flow: column; grid-template-rows: repeat(var(--lignes, 6), auto); }
.classement li {
  display: grid; grid-template-columns: calc(80 * var(--u)) minmax(0, 1fr) auto; align-items: center; column-gap: calc(24 * var(--u));
  min-height: calc(84 * var(--u)); padding: calc(8 * var(--u)) calc(24 * var(--u));
  border-bottom: calc(2 * var(--u)) solid var(--encre-3);
  font-size: calc(36 * var(--u));
  animation: ligne-entree .45s cubic-bezier(.2, .8, .2, 1) both;
}
.classement.deux-colonnes li { min-height: calc(70 * var(--u)); font-size: calc(30 * var(--u)); }
.classement .rang { font-family: var(--police-titre); font-weight: 800; color: var(--brume-2); font-size: 1.1em; display: flex; align-items: center; gap: calc(14 * var(--u)); }
.classement .rang::after { content: ''; width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--c); }
.classement .nom { min-width: 0; display: flex; align-items: baseline; gap: calc(16 * var(--u)); white-space: nowrap; overflow: hidden; font-weight: 600; }
.classement .nom > span[dir] { overflow: hidden; text-overflow: ellipsis; }
.classement .nom small { font-size: .62em; color: var(--brume); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.classement .score { font-family: var(--police-titre); font-weight: 800; font-size: 1.3em; }
.classement .finaliste { background: var(--majorelle); border-bottom-color: var(--majorelle); color: #fff; }
.classement .finaliste .rang { color: #fff; }
.classement .finaliste .nom small { color: var(--sur-majorelle); }
.classement .mention {
  flex: none; align-self: center;
  padding: calc(3 * var(--u)) calc(14 * var(--u)); border-radius: 999px;
  background: var(--safran); color: var(--sur-safran);
  font-size: calc(20 * var(--u)); font-weight: 600; line-height: 1.3;
}
.note-egalite { margin: calc(24 * var(--u)) calc(-86 * var(--u)) calc(-56 * var(--u)); padding: 0 calc(86 * var(--u)); font-family: var(--police-titre); font-size: calc(36 * var(--u)); font-weight: 800; background: var(--safran); color: var(--sur-safran); line-height: 2.2; }
.note-egalite:empty { display: none; }
@keyframes ligne-entree { from { opacity: 0; transform: translateX(calc(-30 * var(--u))); } to { opacity: 1; transform: none; } }

/* Face-à-face : grille commune (intro et jeu) -------------------------- */
.vue-m2, .vue-m2intro { display: grid; grid-template-columns: 25% minmax(0, 1fr) 25%; }

/* Introduction */
.duelliste {
  display: flex; flex-direction: column; justify-content: flex-end; gap: calc(14 * var(--u));
  padding: calc(64 * var(--u)) calc(52 * var(--u));
  background: var(--encre-2); color: var(--platre); min-width: 0;
}
.duelliste.commence { background: var(--majorelle); color: #fff; }
.duelliste > span { font-family: var(--police-titre); font-weight: 800; font-size: calc(72 * var(--u)); line-height: 1; overflow-wrap: anywhere; }
.duelliste small { font-size: calc(24 * var(--u)); color: var(--brume); }
.duelliste.commence small { color: var(--sur-majorelle); }
.duelliste::before { content: ''; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: calc(4 * var(--u)); background: var(--c); margin-bottom: auto; }
.duelliste.g { animation: duel-g .6s cubic-bezier(.2, .8, .2, 1) both; }
.duelliste.d { animation: duel-d .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes duel-g { from { transform: translateX(-30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes duel-d { from { transform: translateX(30%); opacity: 0; } to { transform: none; opacity: 1; } }
.duel-centre { display: flex; flex-direction: column; min-width: 0; padding: calc(64 * var(--u)) calc(76 * var(--u)); }
.titre-face { margin-top: calc(40 * var(--u)); font-family: var(--police-titre); font-weight: 800; font-size: calc(96 * var(--u)); line-height: 1; }
.regle-face { margin-top: calc(26 * var(--u)); font-size: calc(30 * var(--u)); color: var(--brume); }
.bareme { list-style: none; margin: calc(34 * var(--u)) 0 0; padding: 0; display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.bareme li {
  display: grid; grid-template-columns: calc(130 * var(--u)) 1fr; align-items: center; gap: calc(24 * var(--u));
  padding: calc(16 * var(--u)) calc(28 * var(--u)); border-radius: calc(16 * var(--u));
  background: var(--encre-2); color: var(--brume); font-size: calc(30 * var(--u));
  animation: monte .5s both;
}
.bareme li:nth-child(2) { animation-delay: .1s; } .bareme li:nth-child(3) { animation-delay: .2s; } .bareme li:nth-child(4) { animation-delay: .3s; }
.bareme-pts { font-family: var(--police-titre); font-weight: 800; font-size: calc(42 * var(--u)); color: var(--platre); }
.qui-commence { margin-top: auto; padding-top: calc(24 * var(--u)); font-size: calc(32 * var(--u)); color: var(--platre); }
.qui-commence strong { color: var(--safran); font-family: var(--police-titre); font-weight: 800; }

/* Panneaux des deux joueurs */
.joueur-face {
  display: flex; flex-direction: column; gap: calc(16 * var(--u)); min-width: 0; min-height: 0;
  padding: calc(64 * var(--u)) calc(52 * var(--u));
  background: var(--encre-2); color: #CFC9FF;
  transition: background-color .35s, color .35s;
  --pip: var(--majorelle-clair);
}
.jf-statut { display: flex; min-height: calc(46 * var(--u)); }
.main-pastille, .attend-pastille {
  display: none; align-items: center;
  padding: calc(6 * var(--u)) calc(18 * var(--u)); border-radius: 999px;
  font-size: calc(24 * var(--u)); line-height: 1.3; white-space: nowrap;
}
.main-pastille { background: var(--safran); color: var(--sur-safran); font-weight: 600; }
.attend-pastille { box-shadow: inset 0 0 0 calc(2 * var(--u)) #3A3380; color: #CFC9FF; }
.joueur-face.a-la-main .main-pastille { display: inline-flex; animation: monte .35s both; }
.joueur-face.attend .attend-pastille { display: inline-flex; }
.jf-nom {
  margin-top: calc(14 * var(--u));
  font-family: var(--police-titre); font-weight: 800; font-size: calc(66 * var(--u)); line-height: 1; color: var(--platre);
  overflow-wrap: anywhere;
  display: flex; align-items: baseline; gap: calc(14 * var(--u));
}
.jf-nom::before { content: ''; flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--c); transform: translateY(calc(-6 * var(--u))); }
.jf-info { font-size: calc(24 * var(--u)); min-height: calc(30 * var(--u)); }
.jf-score {
  margin-top: auto;
  font-family: var(--police-titre); font-weight: 800; font-size: calc(240 * var(--u)); line-height: .8; color: var(--platre);
  transform-origin: left bottom;
}
.jf-score.bondit { animation: bondit .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes bondit { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.jf-etoiles { display: grid; grid-template-columns: repeat(var(--colonnes-etoiles, 9), minmax(0, 1fr)); gap: calc(7 * var(--u)); margin-top: calc(18 * var(--u)); }
.jf-etoiles svg { width: 100%; height: auto; display: block; overflow: visible; }
.jf-etoiles path { stroke: var(--pip); stroke-width: 8; stroke-linejoin: round; }
.jf-etoiles .e-vide { fill: none; }
.jf-etoiles .e-pleine { fill: var(--pip); }
.jf-etoiles .e-neuve { animation: etoile-neuve .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: center; transform-box: fill-box; }
@keyframes etoile-neuve { from { transform: scale(0); } to { transform: none; } }
.jf-sur { font-size: calc(24 * var(--u)); line-height: 1.3; min-height: calc(62 * var(--u)); }
.jf-etat { min-height: calc(46 * var(--u)); font-family: var(--police-titre); font-size: calc(34 * var(--u)); font-weight: 800; color: var(--platre); }
.jf-etat:empty { visibility: hidden; }

.joueur-face.a-la-main { background: var(--majorelle); color: var(--sur-majorelle); --pip: var(--safran); }
.joueur-face.a-la-main .jf-nom, .joueur-face.a-la-main .jf-score { color: #fff; }
.joueur-face.repond .jf-etat:not(:empty) {
  align-self: flex-start; padding: calc(2 * var(--u)) calc(18 * var(--u));
  background: var(--safran); color: var(--sur-safran);
}

/* Colonne centrale */
.centre-face { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: calc(64 * var(--u)) calc(76 * var(--u)) calc(48 * var(--u)); }
.face-meta { display: flex; justify-content: space-between; gap: calc(24 * var(--u)); font-size: calc(24 * var(--u)); color: var(--brume); white-space: nowrap; }
.face-meta > span { overflow: hidden; text-overflow: ellipsis; }
.face-tete { display: flex; align-items: center; justify-content: space-between; gap: calc(30 * var(--u)); margin-top: calc(28 * var(--u)); }
.enigme-titre {
  min-width: 0;
  font-family: var(--police-titre); font-weight: 700; font-size: calc(64 * var(--u)); line-height: 1.05; color: var(--platre);
  text-align: start; overflow-wrap: anywhere;
}
.enigme-titre strong { font-weight: 800; }
.centre-face .chrono { flex: none; }
.indices { list-style: none; margin: calc(30 * var(--u)) 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: calc(14 * var(--u)); min-height: 0; }
.indice {
  display: grid; grid-template-columns: calc(120 * var(--u)) minmax(0, 1fr); align-items: center; column-gap: calc(26 * var(--u));
  min-height: calc(84 * var(--u)); padding: calc(18 * var(--u)) calc(28 * var(--u)); border-radius: calc(16 * var(--u));
  border: calc(2 * var(--u)) dashed #3A3380; color: var(--brume-2);
  transition: background-color .3s, color .3s;
}
.indice-points { font-family: var(--police-titre); font-weight: 800; font-size: calc(40 * var(--u)); line-height: 1; white-space: nowrap; }
.indice-points small { font-size: .7em; }
.indice-texte { font-size: calc(28 * var(--u)); line-height: 1.22; overflow-wrap: anywhere; text-align: start; }
.indice.revele { border: none; background: var(--encre-2); color: var(--brume); padding: calc(20 * var(--u)) calc(30 * var(--u)); }
.indice.revele .indice-points { color: var(--brume-2); }
.indice.revele .indice-texte { font-size: calc(32 * var(--u)); color: var(--platre); }
.indice.passe .indice-texte { color: var(--brume); }
.indice.actuel {
  background: var(--platre); color: var(--encre);
  box-shadow: 0 0 0 calc(5 * var(--u)) var(--safran);
  padding: calc(26 * var(--u)) calc(30 * var(--u));
  animation: indice-entree .45s cubic-bezier(.2, .8, .2, 1);
}
.indice.actuel .indice-points { color: var(--majorelle); font-size: calc(48 * var(--u)); }
.indice.actuel .indice-texte { color: var(--encre); font-size: calc(38 * var(--u)); font-weight: 500; }
@keyframes indice-entree { from { transform: translateY(calc(14 * var(--u))); opacity: 0; } to { transform: none; opacity: 1; } }

#enigme-reponse { width: 100%; margin-top: auto; padding-top: calc(20 * var(--u)); }
#enigme-reponse:empty { padding-top: 0; }
.centre-face .bloc-verdict, .centre-face .bloc-temps { border-radius: calc(16 * var(--u)); overflow: hidden; }
.centre-face .bloc-temps { padding: calc(16 * var(--u)) calc(30 * var(--u)); font-size: calc(44 * var(--u)); }
.centre-face .bv-gauche { padding: calc(16 * var(--u)) calc(28 * var(--u)); }
.centre-face .bv-reponse { padding: calc(14 * var(--u)) calc(28 * var(--u)); }
.centre-face .bv-gauche strong { font-size: calc(42 * var(--u)); }
.centre-face .bv-reponse span { font-size: calc(46 * var(--u)); }
.centre-face .bv-label, .centre-face .bv-reponse small { font-size: calc(20 * var(--u)); }
.centre-face .bv-points { font-size: calc(24 * var(--u)); }
.centre-face .bloc-verdict.seul .bv-gauche { padding-inline-end: calc(28 * var(--u)); }

/* Champion -------------------------------------------------------------- */
.vue-champion {
  display: grid; grid-template-columns: minmax(0, 1fr) 36%; align-items: end;
  background: var(--majorelle); color: #fff;
  padding: calc(86 * var(--u));
}
.champion-texte { min-width: 0; padding-bottom: calc(20 * var(--u)); }
.trophee { align-self: center; justify-self: center; width: calc(460 * var(--u)); aspect-ratio: 200 / 220; animation: trophee .9s cubic-bezier(.2, .8, .2, 1) both; }
.trophee svg { width: 100%; height: 100%; }
@keyframes trophee { from { transform: translateY(calc(-60 * var(--u))); opacity: 0; } to { transform: none; opacity: 1; } }
.champion-titre { font-family: var(--police-titre); font-size: calc(64 * var(--u)); font-weight: 800; color: var(--safran); line-height: 1; animation: monte .6s .4s both; }
.champion-nom {
  font-family: var(--police-titre); font-weight: 800;
  font-size: calc(176 * var(--u)); line-height: .92; letter-spacing: -0.02em; margin-top: calc(18 * var(--u));
  overflow-wrap: anywhere; text-align: start;
  animation: monte .6s .6s both;
}
.champion-info { font-size: calc(34 * var(--u)); color: var(--sur-majorelle); margin-top: calc(22 * var(--u)); animation: monte .6s .8s both; }
.champion-score {
  display: inline-block; margin-top: calc(40 * var(--u)); padding: calc(10 * var(--u)) calc(24 * var(--u));
  background: var(--majorelle-fonce); font-size: calc(32 * var(--u));
  animation: monte .6s 1s both;
}
@keyframes monte { from { opacity: 0; transform: translateY(calc(24 * var(--u))); } to { opacity: 1; transform: none; } }

/* Écran de pause (par défaut) ------------------------------------------ */
.vue-logo {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--majorelle); color: #fff; overflow: hidden;
  padding: calc(70 * var(--u)) calc(110 * var(--u)) calc(80 * var(--u));
}
.vue-logo > :not(.pause-decor) { position: relative; z-index: 1; }

/* Décor : rosace d'étoiles à huit branches qui tourne, étoiles qui flottent */
.pause-decor { position: absolute; inset: 0; pointer-events: none; }
.rosace {
  position: absolute; width: calc(1180 * var(--u)); height: calc(1180 * var(--u));
  right: calc(-260 * var(--u)); top: calc(-50 * var(--u));
}
.rosace .anneau { fill: none; stroke-width: 7; stroke-linejoin: round; transform-origin: 0 0; }
.rosace .a0 { fill: var(--majorelle-fonce); stroke: none; animation: tourne 140s linear infinite; }
.rosace .a1 { stroke: var(--majorelle-clair); animation: tourne 90s linear infinite reverse; }
.rosace .a2 { fill: var(--majorelle); stroke: var(--safran); stroke-width: 9; animation: tourne 70s linear infinite; }
.rosace .a3 { stroke: var(--majorelle-clair); stroke-dasharray: 18 22; animation: tourne 50s linear infinite reverse; }
.rosace .a4 { fill: var(--safran); stroke: none; animation: tourne 30s linear infinite, pouls 4s ease-in-out infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08) rotate(11.25deg); } }

.flotte { position: absolute; width: calc(var(--t) * var(--u)); height: calc(var(--t) * var(--u)); left: var(--x); top: var(--y);
  animation: flotte var(--d) ease-in-out var(--r) infinite alternate; }
.flotte path { fill: var(--c, var(--majorelle-clair)); }
@keyframes flotte {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(calc(30 * var(--u)), calc(-70 * var(--u))) rotate(90deg); }
}
.f0 { --t: 46; --x: 6%;  --y: 12%; --d: 7s;  --r: 0s;   --c: var(--safran); }
.f1 { --t: 22; --x: 38%; --y: 8%;  --d: 9s;  --r: -3s; }
.f2 { --t: 30; --x: 52%; --y: 78%; --d: 8s;  --r: -1s;  --c: var(--safran); }
.f3 { --t: 18; --x: 28%; --y: 62%; --d: 11s; --r: -6s; }
.f4 { --t: 60; --x: 44%; --y: 30%; --d: 13s; --r: -2s;  --c: var(--majorelle-fonce); }
.f5 { --t: 26; --x: 90%; --y: 86%; --d: 10s; --r: -5s;  --c: var(--safran); }
.f6 { --t: 16; --x: 14%; --y: 88%; --d: 6s;  --r: -4s; }
.f7 { --t: 36; --x: 66%; --y: 6%;  --d: 12s; --r: -7s;  --c: var(--majorelle-fonce); }
.f8 { --t: 20; --x: 3%;  --y: 50%; --d: 9s;  --r: -2s;  --c: var(--safran); }

.pause-haut { display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--u)); }
.pause-pastille {
  display: inline-flex; align-items: center; gap: calc(14 * var(--u));
  padding: calc(12 * var(--u)) calc(26 * var(--u)); border-radius: 999px;
  background: var(--encre); color: var(--platre); font-size: calc(28 * var(--u)); font-weight: 600;
}
.pause-point { width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: var(--safran); animation: clignote 1.6s ease-in-out infinite; }
@keyframes clignote { 50% { opacity: .25; } }
.pause-heure { font-family: var(--police-titre); font-weight: 800; font-size: calc(64 * var(--u)); color: #fff; line-height: 1; }
.pause-heure .deux-points { animation: clignote 2s steps(1) infinite; }

.pause-centre { display: flex; flex-direction: column; align-items: flex-start; max-width: calc(1080 * var(--u)); }
.pause-logo { margin-bottom: calc(36 * var(--u)); }
.pause-logo img { height: calc(460 * var(--u)); max-width: calc(1100 * var(--u)); }
.vue-logo .etoile-logo { width: calc(150 * var(--u)); height: calc(150 * var(--u)); margin-bottom: calc(36 * var(--u)); animation: tourne 40s linear infinite; }
.vue-logo h1 { font-family: var(--police-titre); font-weight: 800; font-size: calc(160 * var(--u)); line-height: .92; letter-spacing: -0.02em; text-align: start; overflow-wrap: anywhere; animation: arrive .8s .35s both; }
.vue-logo .pause-centre p { font-size: calc(40 * var(--u)); color: var(--sur-majorelle); margin-top: calc(24 * var(--u)); text-align: start; animation: arrive .8s .5s both; }

.pause-tete { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)); min-height: calc(64 * var(--u)); }
.pause-tete li:not(.pause-tete-titre) {
  display: inline-flex; align-items: center; gap: calc(14 * var(--u));
  padding: calc(10 * var(--u)) calc(22 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u)); border-radius: 999px;
  background: var(--encre); font-size: calc(30 * var(--u)); font-weight: 600; animation: arrive .6s both;
}
.pause-tete li:nth-child(3) { animation-delay: .1s; }
.pause-tete li:nth-child(4) { animation-delay: .2s; }
.pause-tete .rang {
  display: grid; place-items: center; width: calc(46 * var(--u)); height: calc(46 * var(--u)); border-radius: 50%;
  background: var(--c); color: var(--ct); font-family: var(--police-titre); font-weight: 800;
}
.pause-tete .score { font-family: var(--police-titre); font-weight: 800; color: var(--safran); }
.pause-tete .score small { font-size: .6em; color: var(--brume); }
.pause-tete-titre { font-size: calc(28 * var(--u)); color: var(--sur-majorelle); margin-inline-end: calc(6 * var(--u)); }

/* Écrans de pause importés : plein écran, fondu enchaîné */
.vue-pauses { background: var(--encre); }
.vue-pauses img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.vue-pauses img.visible { opacity: 1; }

/* Logo en vedette (accueil, pause) ------------------------------------- */
.logo-vedette {
  position: relative; display: inline-block; line-height: 0;
  animation: logo-entree 1s cubic-bezier(.2, .9, .3, 1.15) both, logo-flotte 6s ease-in-out 1s infinite alternate;
}
.logo-vedette img {
  display: block; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 calc(36 * var(--u)) rgba(255, 184, 28, .45)) drop-shadow(0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(15, 12, 46, .45));
}
.logo-reflet {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  animation: logo-reflet 5s ease-in-out 1.4s infinite;
}
@keyframes logo-entree { from { opacity: 0; transform: scale(.82) translateY(calc(20 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes logo-flotte { from { transform: translateY(0); } to { transform: translateY(calc(-10 * var(--u))); } }
@keyframes logo-reflet { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }

/* Démarrage (premier clic : son + plein écran) -------------------------- */
.demarrage {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: var(--encre);
}
.demarrage-carte {
  width: min(560px, 100%); padding: 32px;
  border-radius: 16px;
  background: var(--encre-2); color: var(--platre); text-align: start;
}
.demarrage-carte .etoile-logo { width: 48px; height: 48px; }
.demarrage-carte h1 { font-size: 34px; margin: 18px 0 6px; }
.demarrage-carte .muet { color: var(--brume); }
.demarrage-carte .btn { width: 100%; margin-top: 12px; }
.demarrage-carte .btn-contour { background: transparent; border-color: var(--encre-3); color: var(--platre); }
.demarrage-carte .aide { color: var(--brume); }
.demarrage-carte form { display: flex; gap: 10px; margin-top: 18px; }
.demarrage-carte form input {
  text-transform: uppercase; text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .12em;
  background: var(--encre); border-color: var(--encre-3); color: var(--platre);
}
.demarrage-carte form .btn { width: auto; margin-top: 0; }
.parties-liste { list-style: none; padding: 0; margin: 18px 0 0; }
.parties-liste button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 4px; border: none; border-bottom: 1.5px solid var(--encre-3); border-radius: 0;
  background: transparent; color: var(--platre); cursor: pointer; font-weight: 600; text-align: start;
}
.parties-liste button:hover { color: #fff; border-bottom-color: var(--majorelle-clair); }
.parties-liste .code { font-family: var(--police-titre); font-weight: 800; color: var(--safran); letter-spacing: .08em; }

.commandes-ecran {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; gap: 8px; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.commandes-ecran.visible { opacity: 1; pointer-events: auto; }
.commandes-ecran .btn { background: var(--encre-2); border-color: var(--encre-3); color: var(--platre); }

.hors-ligne {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  padding: 8px 18px; text-align: center; background: var(--grenade-fonce); color: #fff; font-weight: 700;
}

#confettis { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* Mouvement réduit : aucun déplacement ni pulsation ---------------------- */
@media (prefers-reduced-motion: reduce) {
  .vue-entree, .liste-inscrits li.arrive, .bloc-buzz, .bloc-mauvaise, .bloc-temps, .bloc-verdict,
  .annonce, .annonce.secoue, .annonce.sortie, .classement li, .duelliste.g, .duelliste.d, .bareme li,
  .indice.actuel, .jf-score.bondit, .jf-etoiles .e-neuve, .trophee, .champion-titre, .champion-nom,
  .champion-info, .champion-score, .chrono.urgent .chrono-texte, .score-plus, .tuile.eclair, .test-bilan.complet,
  .joueur-face.a-la-main .main-pastille,
  .logo-vedette, .logo-reflet, .rosace .anneau, .flotte, .pause-point, .pause-heure .deux-points, .pause-logo, .vue-logo .etoile-logo,
  .vue-logo h1, .vue-logo .pause-centre p, .pause-tete li {
    animation: none !important;
  }
  .vue-pauses img { transition: none; }
  .score-plus { opacity: 1; }
}
