/* ==========================================================================
   Les 100 Sondés — habillage FunKey « Groove Machine »
   Base commune reprise de « N'oubliez pas les casseroles » (mêmes composants : en-tête, boutons,
   formulaire, scores, classement), puis les styles propres au jeu en fin de fichier.
   Usage numérique uniquement (projection + poste de régie).

   Ce fichier ne contient QUE de l'apparence. Tous les noms de classes et
   d'identifiants utilisés par les scripts sont conservés à l'identique.
   Trois pages, trois ambiances (classe posée sur <body>) :
     .ecran-lancement  écran de titre / configuration de la partie
     .ecran-joueurs    écran à projeter (lisible à 10 mètres, unités en vh)
     .ecran-regie      poste de l'animateur (dense, sans décor, police Outfit)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices — fichiers WOFF2 hébergés dans le projet (le jeu peut tourner
   sans accès aux serveurs de polices). Chaque police est cherchée d'abord
   dans  assets/fonts/  puis, si ce jeu est installé dans le dossier FunKey,
   dans le dossier  fonts/  situé à la racine de FunKey.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Shrikhand";
  src: local("Shrikhand"), local("Shrikhand-Regular"),
       url("../fonts/Shrikhand-Regular.woff2") format("woff2"),
       url("../../../fonts/Shrikhand-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Righteous";
  src: local("Righteous"), local("Righteous-Regular"),
       url("../fonts/Righteous-Regular.woff2") format("woff2"),
       url("../../../fonts/Righteous-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: local("Outfit"),
       url("../fonts/Outfit-Variable.woff2") format("woff2"),
       url("../../../fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
  /* Palette commune FunKey */
  --fk-chocolat: #3B1F14;   /* fond des écrans joueurs */
  --fk-expresso: #2A150D;   /* fond profond, régie, vignettage */
  --fk-caramel:  #4E2A1B;   /* surfaces : panneaux, cases */
  --fk-creme:    #F5E6C8;   /* tout le texte */
  --fk-sable:    #C9B08A;   /* texte secondaire */

  /* Accents des 4 jeux (couleurs des équipes + rayures 70s) */
  --fk-turquoise: #2BB3A7;
  --fk-moutarde:  #E3A82B;
  --fk-rose:      #E84A8A;
  --fk-orange:    #E8662A;

  /* États */
  --fk-ok:     #7CC46A;
  --fk-erreur: #E5483D;

  /* Couleur de CE jeu : Les 100 Sondés = orange */
  --jeu:        #E8662A;
  --jeu-clair:  #F2915F;
  --jeu-fonce:  #A8461A;

  /* Typographies (avec polices de secours si les fichiers sont absents) */
  --fk-titre:     "Shrikhand", "Arial Black", Impact, sans-serif;
  --fk-jeu-texte: "Righteous", "Trebuchet MS", Verdana, sans-serif;
  --fk-regie:     "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Formes */
  --fk-rayon:   24px;
  --fk-contour: 4px;

  /* Mouvement */
  --fk-rebond: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Noms hérités : certains styles écrits directement par les scripts
     (verdict de La Même Chanson) s'y réfèrent. À ne pas supprimer. */
  --police-affiche: var(--fk-titre);
  --succes: var(--fk-ok);
  --echec:  var(--fk-erreur);
}

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

[hidden] { display: none !important; }

html { background: var(--fk-expresso); }

body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font-family: var(--fk-jeu-texte);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

body.ecran-regie {
  background: var(--fk-expresso);
  font-family: var(--fk-regie);
}

h1, h2, h3, .chiffre {
  font-family: var(--fk-titre);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Righteous n'existe qu'en une graisse : on évite le faux gras */
strong { font-weight: 400; color: var(--jeu-clair); }
.ecran-regie strong { font-weight: 700; }

.centre { text-align: center; }

/* --------------------------------------------------------------------------
   Fond signature : sunburst chocolat/caramel + vignettage + grain pellicule
   (écrans de lancement et joueurs uniquement — jamais sur la régie)
   -------------------------------------------------------------------------- */
.fk-fond {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--fk-expresso);
  pointer-events: none;
}

.fk-sunburst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170vmax;
  height: 170vmax;
  margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(
    from 0deg,
    var(--fk-chocolat) 0deg 7.5deg,
    var(--fk-caramel)  7.5deg 15deg
  );
  animation: fk-tourne 120s linear infinite;
}

.fk-fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(42, 21, 13, 0) 38%,
    rgba(42, 21, 13, 0.92) 100%
  );
}

.fk-grain {
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: fk-grain 1s steps(6) infinite;
}

@keyframes fk-tourne { to { transform: rotate(360deg); } }

@keyframes fk-grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Pendant la lecture du karaoké : on fige le décor pour laisser toute la
   puissance de l'ordinateur à la vidéo et ne rien mettre sur l'image. */
.ecran-joueurs:has(.cadre-video) .fk-sunburst { animation-play-state: paused; }
.ecran-joueurs:has(.cadre-video) .fk-grain    { display: none; }

/* --------------------------------------------------------------------------
   Boutons : pilules, contour crème, texte foncé
   -------------------------------------------------------------------------- */
button {
  font-family: var(--fk-jeu-texte);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  padding: 0.65rem 1.4rem;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: 999px;
  background: var(--jeu);
  color: var(--fk-expresso);
  transition: transform 0.2s var(--fk-rebond), background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.ecran-regie button { font-family: var(--fk-regie); font-weight: 700; }

button:hover:not(:disabled)  { transform: scale(1.04); }
button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { opacity: 0.35; cursor: not-allowed; }

button:focus-visible,
.ligne-categorie:focus-visible,
.bandeau-mc:focus-visible {
  outline: var(--fk-contour) solid var(--fk-creme);
  outline-offset: 3px;
}

.btn-or      { background: var(--jeu); }
.btn-or:hover:not(:disabled)      { background: var(--jeu-clair); }
.btn-corail  { background: var(--fk-orange); }
.btn-corail:hover:not(:disabled)  { background: #F2915F; }
.btn-succes  { background: var(--fk-ok); }
.btn-succes:hover:not(:disabled)  { background: #9AD88A; }
.btn-echec   { background: var(--fk-erreur); }
.btn-echec:hover:not(:disabled)   { background: #EE7168; }
.btn-fantome {
  background: transparent;
  color: var(--fk-creme);
  border: 3px dashed var(--fk-sable);
}
.btn-fantome:hover:not(:disabled) { background: var(--fk-caramel); }

/* --------------------------------------------------------------------------
   En-tête : marque FunKey (disque vinyle + nom) · titre du jeu
   -------------------------------------------------------------------------- */
.entete {
  position: relative;
  display: grid;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.6rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  color: var(--fk-creme);
}

/* disque vinyle dessiné en CSS : étiquette orange, sillons, trou central */
.marque-disque {
  flex: none;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 3px solid var(--fk-creme);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--fk-chocolat) 0 7%, var(--fk-orange) 8% 30%, transparent 31%),
    repeating-radial-gradient(circle at 50% 50%, var(--fk-expresso) 0 2px, var(--fk-chocolat) 2px 4px);
}

.marque-nom {
  font-family: var(--fk-titre);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--fk-creme);
  text-shadow: 2px 2px 0 var(--fk-orange);
}

.titre-jeu {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--fk-creme);
  text-shadow: 3px 3px 0 var(--jeu-fonce);
}

.sous-titre {
  font-family: var(--fk-jeu-texte);
  color: var(--fk-sable);
  font-size: 1.15rem;
}

/* séparateur : les 4 rayures 70s, une par jeu */
.ecran-lancement .entete::after,
.ecran-joueurs .entete::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: linear-gradient(
    to bottom,
    var(--fk-orange)    0 25%,
    var(--fk-moutarde) 25% 50%,
    var(--fk-rose)     50% 75%,
    var(--fk-turquoise) 75% 100%
  );
}

.badge-regie {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font-family: var(--fk-regie);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Scène + pastilles d'équipes
   -------------------------------------------------------------------------- */
.scene { max-width: 1180px; margin: 0 auto; padding: 1.2rem 1.6rem 3rem; }

.tableau-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  margin: 1.2rem 0 1.8rem;
}

.carte-equipe {
  --eq: var(--fk-orange);
  --eq-fonce: #A8461A;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0.45rem 0.4rem 1.3rem;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: 999px;
  background: var(--eq);
  color: var(--fk-chocolat);
  box-shadow: 6px 6px 0 var(--eq-fonce);
  transition: transform 0.3s var(--fk-rebond), box-shadow 0.2s ease-out;
}
/* une couleur par équipe, tirée des 4 accents */
.carte-equipe:nth-child(4n+2) { --eq: var(--fk-moutarde);  --eq-fonce: #A6791A; }
.carte-equipe:nth-child(4n+3) { --eq: var(--fk-rose);      --eq-fonce: #A8305F; }
.carte-equipe:nth-child(4n+4) { --eq: var(--fk-turquoise); --eq-fonce: #1D7A72; }

.carte-equipe .nom-equipe {
  max-width: 12em;
  font-size: 1.1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.carte-equipe .score {
  min-width: 2.1em;
  padding: 0.12em 0.45em;
  border-radius: 999px;
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font-family: var(--fk-jeu-texte);
  font-size: 1.6rem;
  line-height: 1.25;
  text-align: center;
}

/* l'équipe qui a la main : pastille agrandie, contour lumineux, flèche
   (la flèche garantit que l'info ne repose pas sur la couleur seule) */
.carte-equipe.active {
  position: relative;
  z-index: 1;
  transform: scale(1.1);
  outline: var(--fk-contour) solid var(--fk-creme);
  outline-offset: 4px;
  box-shadow: 0 0 0 10px rgba(245, 230, 200, 0.22), 6px 6px 0 var(--eq-fonce);
}
.carte-equipe.active .nom-equipe::before { content: "▶ "; }

/* --------------------------------------------------------------------------
   Joker « initiales » : pastille « J » sur les équipes qui l'ont encore,
   et bouton de la régie
   -------------------------------------------------------------------------- */
.joker-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75em;
  aspect-ratio: 1;
  border: 2px solid var(--fk-chocolat);
  border-radius: 50%;
  background: var(--fk-creme);
  color: var(--fk-chocolat);
  font-family: var(--fk-jeu-texte);
  font-size: 0.95rem;
  line-height: 1;
}

.btn-joker { background: var(--fk-moutarde); }
.btn-joker:hover:not(:disabled) { background: #F2C960; }

.aide-option {
  margin: 0.4rem 0 0 2.2rem;
  color: var(--fk-sable);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Bandeau « La Même Chanson »
   -------------------------------------------------------------------------- */
.bandeau-mc {
  max-width: 40rem;
  margin: 0 auto 1.6rem;
  padding: 0.85rem 1rem;
  border: 3px dashed var(--fk-sable);
  border-radius: var(--fk-rayon);
  background: transparent;
  color: var(--fk-sable);
  font-family: var(--fk-jeu-texte);
  letter-spacing: 1px;
  text-align: center;
}

.bandeau-mc.deverrouille {
  border: var(--fk-contour) solid var(--fk-creme);
  background: var(--fk-creme);
  color: var(--fk-chocolat);
  box-shadow: 6px 6px 0 var(--jeu);
}

.bandeau-mc.jouee {
  border: 3px solid var(--fk-ok);
  background: transparent;
  color: var(--fk-ok);
  box-shadow: none;
}

.bandeau-mc.cliquable { cursor: pointer; transition: transform 0.2s var(--fk-rebond), background-color 0.15s; }
.bandeau-mc.cliquable:hover,
.bandeau-mc.cliquable:focus-visible { background: var(--jeu-clair); transform: scale(1.03); }

/* --------------------------------------------------------------------------
   Indicateur « T1 » (régie)
   -------------------------------------------------------------------------- */
.indicateur-t1 {
  max-width: 40rem;
  margin: 0 auto 1.2rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: var(--fk-regie);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.indicateur-t1.visible { background: var(--fk-caramel); color: var(--fk-creme); border: 3px solid var(--fk-sable); }
.indicateur-t1.masque  { background: var(--fk-moutarde); color: var(--fk-expresso); border: 3px solid var(--fk-creme); }

/* --------------------------------------------------------------------------
   Liste des 5 catégories (50 en haut)
   -------------------------------------------------------------------------- */
.liste-categories {
  max-width: 40rem;
  margin: 1.4rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ligne-categorie {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: var(--fk-rayon);
  background: var(--jeu);
  color: var(--fk-chocolat);
  font-family: var(--fk-jeu-texte);
  font-size: 1.5rem;
  box-shadow: 6px 6px 0 var(--jeu-fonce);
  transition: transform 0.2s var(--fk-rebond), background-color 0.15s ease-out;
}
.ligne-categorie .valeur-points { letter-spacing: 1px; }

.ligne-categorie.cliquable { cursor: pointer; }
.ligne-categorie.cliquable:hover,
.ligne-categorie.cliquable:focus-visible { background: var(--jeu-clair); transform: scale(1.04); outline-offset: 5px; }

/* catégorie déjà jouée : « case éteinte » en pointillés + coche
   (distincte des disponibles par la forme, pas seulement par la couleur) */
.ligne-categorie.jouee {
  border: 3px dashed var(--fk-sable);
  background: var(--fk-caramel);
  color: var(--fk-sable);
  box-shadow: none;
  opacity: 0.6;
}
.ligne-categorie.jouee::after {
  content: "✓";
  position: absolute;
  right: 22px;
  font-size: 1.4rem;
}
.ligne-categorie.ouverte { border-color: var(--fk-orange); }

/* --------------------------------------------------------------------------
   Zone de manche : panneau + cartes de propositions
   -------------------------------------------------------------------------- */
.zone-manche {
  max-width: 56rem;
  margin: 1.4rem auto 0;
  padding: 1.4rem;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: var(--fk-rayon);
  background: var(--fk-caramel);
  box-shadow: 8px 8px 0 var(--jeu-fonce);
}

.propositions { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }

.carte-proposition {
  min-width: 220px;
  padding: 1.3rem 1.6rem;
  border: var(--fk-contour) solid var(--fk-sable);
  border-radius: var(--fk-rayon);
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  box-shadow: 6px 6px 0 var(--fk-expresso);
  transition: transform 0.2s var(--fk-rebond), border-color 0.15s ease-out;
}
button.carte-proposition:hover:not(:disabled),
button.carte-proposition:focus-visible { border-color: var(--jeu); }
.carte-proposition.choisie { border-color: var(--fk-ok); }

.carte-proposition .titre   { font-size: 1.2rem; margin-bottom: 0.25rem; }
.carte-proposition .artiste { margin-bottom: 0.5rem; color: var(--fk-sable); }
.carte-proposition .nombre-mots {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.2em 0.9em;
  border-radius: 999px;
  background: var(--fk-expresso);
  color: var(--jeu-clair);
  font-size: 0.92rem;
}
.carte-proposition .statut-choisie { margin-top: 0.7rem; color: var(--fk-ok); }

.cover-proposition {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.9rem;
  object-fit: cover;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: 16px;
}
.cover-proposition.cover-manquante {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed var(--fk-sable);
  background: var(--fk-caramel);
  font-size: 2.2rem;
}

/* --------------------------------------------------------------------------
   Lecteur karaoké + calque « mots à trous » (écran joueurs)
   Le calque doit rester 100 % opaque : il cache les paroles de la vidéo.
   -------------------------------------------------------------------------- */
.cadre-video {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  container-type: inline-size;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: var(--fk-rayon);
  background: var(--fk-expresso);
  box-shadow: 8px 8px 0 var(--jeu-fonce);
}
/* le lecteur seul remplit le cadre (le calque et la plaque ont leurs propres règles) */
.cadre-video iframe, .cadre-video > #lecteur-yt { width: 100%; height: 100%; border: 0; display: block; }

.cache-paroles {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;                 /* le script l'affiche en display:flex */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  padding: 3cqw;
  text-align: center;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    var(--fk-chocolat) 0deg 7.5deg,
    var(--fk-caramel)  7.5deg 15deg
  );
}

.cache-paroles .nb-mots-cache {
  margin: 0;
  font-family: var(--fk-titre);
  font-size: 4.6vh;
  font-size: calc(min(5vh, 5.4cqw) * var(--fk-texte-doux, 1));
  line-height: 1.1;
  color: var(--jeu-clair);
  text-shadow: 3px 3px 0 var(--fk-expresso);
}

.cache-paroles .contexte {
  margin: 0;
  max-width: 92%;
  font-size: 3.2vh;
  font-size: calc(min(3.4vh, 3.6cqw) * var(--fk-texte-doux, 1));
  color: var(--fk-sable);
}

.cache-paroles .blancs { display: flex; flex-direction: column; gap: 1.6cqw; align-items: center; max-width: 100%; }
.cache-paroles .ligne-blancs { display: flex; flex-wrap: wrap; gap: 1.1cqw; justify-content: center; align-items: center; }

/* case cachée : caramel, pointillés sable, point d'interrogation en filigrane */
.cache-paroles .blanc-mot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.4cqw;
  height: 5cqw;
  border: 0.4cqw dashed var(--fk-sable);
  border-radius: 1.2cqw;
  background: var(--fk-caramel);
  color: rgba(201, 176, 138, 0.55);
  font-size: 3.4cqw;
  line-height: 1;
}
.cache-paroles .blanc-mot::after { content: "?"; }

/* mot déjà tapé par la régie (pas encore jugé) */
.cache-paroles .mot-tape {
  display: inline-block;
  padding: 0.5cqw 1.5cqw;
  border: 0.4cqw solid var(--fk-sable);
  border-radius: 1.2cqw;
  background: var(--fk-caramel);
  color: var(--fk-creme);
  font-size: 3.2vh;
  font-size: calc(min(3.5vh, 3.8cqw) * var(--fk-texte-doux, 1));
  line-height: 1.2;
}

/* joker « initiales » : la case vide montre la première lettre du mot attendu
   (case révélée : couleur du jeu, texte chocolat) */
.cache-paroles .blanc-mot.initiale {
  border: 0.4cqw solid var(--fk-creme);
  background: var(--jeu);
  color: var(--fk-chocolat);
  font-size: 3.4vh;
  font-size: calc(min(3.6vh, 3.9cqw) * var(--fk-texte-doux, 1));
}
.cache-paroles .blanc-mot.initiale::after { content: none; }

.cache-paroles .joker-actif {
  margin: 0;
  padding: 0.5cqw 2.2cqw;
  border: 0.45cqw solid var(--fk-creme);
  border-radius: 999px;
  background: var(--fk-moutarde);
  color: var(--fk-expresso);
  font-size: 3.2vh;
  font-size: calc(min(3.4vh, 3.6cqw) * var(--fk-texte-doux, 1));
  line-height: 1.2;
}

/* phrase jugée : verte + ✔, rouge + ✘, ou révélée en crème */
.cache-paroles .phrase-complete {
  display: inline-block;
  padding: 0.8cqw 2cqw;
  border: 0.45cqw solid var(--fk-creme);
  border-radius: 2.4cqw;
  background: var(--fk-caramel);
  color: var(--fk-creme);
  font-size: 3.4vh;
  font-size: calc(min(3.5vh, 3.8cqw) * var(--fk-texte-doux, 1));
  line-height: 1.2;
}
.cache-paroles .ligne-blancs.valide .phrase-complete { background: var(--fk-ok);      color: var(--fk-expresso); }
.cache-paroles .ligne-blancs.valide .phrase-complete::before { content: "✔ "; }
.cache-paroles .ligne-blancs.refuse .phrase-complete { background: var(--fk-erreur);  color: var(--fk-expresso); }
.cache-paroles .ligne-blancs.refuse .phrase-complete::before { content: "✘ "; }
.cache-paroles .ligne-blancs.revele .phrase-complete { background: var(--fk-creme);   color: var(--fk-chocolat); }
.cache-paroles .ligne-blancs.revele .phrase-complete::before { content: "➜ "; }

/* La Même Chanson : message plein calque */
.message-mc {
  margin: 0;
  font-family: var(--fk-titre);
  font-size: 5vh;
  font-size: calc(min(6vh, 6.8cqw) * var(--fk-texte-doux, 1));
  line-height: 1.15;
  text-shadow: 3px 3px 0 var(--fk-expresso);
}
.message-mc.attente  { color: var(--jeu-clair); }
.message-mc.reussite { color: var(--fk-ok); }
.message-mc.echec    { color: var(--fk-erreur); }

/* ==========================================================================
   ÉCRAN DE LANCEMENT (index.html) — écran de titre + formulaire
   ========================================================================== */
.ecran-lancement .entete {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.5rem;
  padding: 2.2rem 1.6rem 2rem;
  text-align: center;
}
.ecran-lancement .marque { justify-self: center; }
.ecran-lancement .titre-jeu {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  text-shadow: 4px 4px 0 var(--jeu-fonce);
}

.formulaire-config {
  max-width: 560px;
  margin: 2rem auto 3rem;
  padding: 2rem;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: var(--fk-rayon);
  background: var(--fk-caramel);
  box-shadow: 8px 8px 0 var(--jeu-fonce);
}

.logo-camping {
  display: block;
  width: min(100%, 500px);
  height: auto;
  margin: 0 auto 1rem;
}

.titre-formulaire { margin: 0 0 0.4rem; font-size: 1.9rem; color: var(--fk-creme); }

.formulaire-config label {
  display: block;
  margin: 0.9rem 0 0.4rem;
  color: var(--fk-sable);
  font-size: 1.05rem;
}

.formulaire-config input[type="text"],
.formulaire-config input[type="number"] {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 3px solid var(--fk-sable);
  border-radius: 14px;
  background: var(--fk-expresso);
  color: var(--fk-creme);
  font-family: var(--fk-jeu-texte);
  font-size: 1.1rem;
}
.formulaire-config input[type="text"]:focus,
.formulaire-config input[type="number"]:focus {
  outline: none;
  border-color: var(--jeu-clair);
  box-shadow: 0 0 0 4px rgba(43, 179, 167, 0.35);
}

.ligne-equipe { display: flex; gap: 0.5rem; margin-bottom: 0.55rem; align-items: center; }
.ligne-equipe input { flex: 1; }
.ligne-equipe .btn-retirer {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 3px solid var(--fk-erreur);
  background: transparent;
  color: var(--fk-erreur);
  font-size: 1.5rem;
  line-height: 1;
}

.ligne-option { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.2rem; }
.ligne-option input[type="checkbox"] { width: 1.5rem; height: 1.5rem; accent-color: var(--jeu); }
.ligne-option label { margin: 0; color: var(--fk-creme); }

.btn-lancer { width: 100%; margin-top: 1.4rem; padding: 0.9rem; font-size: 1.4rem; }

.message-erreur {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 3px solid var(--fk-erreur);
  border-radius: 14px;
  background: rgba(229, 72, 61, 0.18);
  color: var(--fk-creme);
  font-size: 0.98rem;
}
.message-erreur::before { content: "⚠ "; color: var(--fk-erreur); }

.bandeau-reprise {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: var(--fk-contour) solid var(--fk-moutarde);
  border-radius: var(--fk-rayon);
  background: var(--fk-caramel);
}
.bandeau-reprise p { margin: 0; }
.actions-reprise { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ==========================================================================
   ÉCRAN JOUEURS (joueurs.html) — projection, lisible à 10 mètres
   Tout est en vh : on conçoit pour 1920×1080 et ça s'adapte à tout écran.
   Rien de plus petit que ~3,5 vh (≈ 38 px en 1080p).
   Marges de sécurité de 5 % : certains projecteurs rognent les bords.
   ========================================================================== */
.ecran-joueurs {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ecran-joueurs .entete {
  grid-template-columns: 1fr auto 1fr;
  min-height: 11vh;
  padding: 1.2vh 5vw 2.2vh;
}
.ecran-joueurs .marque { grid-column: 1; gap: 1.2vh; }
.ecran-joueurs .marque-disque { width: 5.6vh; }
.ecran-joueurs .marque-nom { font-size: calc(4vh * var(--fk-texte-doux, 1)); }
.ecran-joueurs .titre-jeu {
  grid-column: 2;
  font-size: min(6.2vh, 3.3vw);
  text-align: center;
}

.ecran-joueurs .scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.2vh 5vw 1.4vh;
}

/* le plateau (bandeau + catégories ou manche) est centré entre l'en-tête
   et le bandeau des scores, qui reste collé en bas */
.ecran-joueurs .plateau {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4vh;
}

.ecran-joueurs .bandeau-mc {
  width: min(100%, 100vh);
  max-width: none;
  margin: 0 auto;
  padding: 0.9vh 2vh;
  border-width: 0.5vh;
  border-radius: 3vh;
  font-size: calc(3.4vh * var(--fk-texte-doux, 1));
  line-height: 1.2;
}
.ecran-joueurs .bandeau-mc.deverrouille { box-shadow: 0.9vh 0.9vh 0 var(--jeu); }

.ecran-joueurs .liste-categories {
  width: min(100%, 110vh);
  max-width: none;
  margin: 0 auto;
  gap: 1.3vh;
}
.ecran-joueurs .ligne-categorie {
  height: 8vh;
  border-width: 0.5vh;
  border-radius: 3vh;
  font-size: calc(4.6vh * var(--fk-texte-doux, 1));
  line-height: 1;
  box-shadow: 0.9vh 0.9vh 0 var(--jeu-fonce);
}
.ecran-joueurs .ligne-categorie.jouee { border-width: 0.4vh; box-shadow: none; }
.ecran-joueurs .ligne-categorie.jouee::after { right: 4vh; font-size: 4vh; }

.ecran-joueurs .zone-manche {
  width: min(100%, 130vh);
  max-width: none;
  margin: 0 auto;
  padding: 1.8vh 3vh 2.4vh;
  border-width: 0.5vh;
  border-radius: 3vh;
  box-shadow: 1vh 1vh 0 var(--jeu-fonce);
  font-size: calc(3.7vh * var(--fk-texte, 1));
}
.ecran-joueurs .zone-manche > p { margin: 0 0 1.2vh; font-size: calc(3.7vh * var(--fk-texte, 1)); line-height: 1.2; }

.ecran-joueurs .propositions { gap: 3vh; }
.ecran-joueurs .carte-proposition {
  width: min(56vh, 44vw);
  min-width: 0;
  padding: 1.8vh 2.4vh 2.2vh;
  border-width: 0.5vh;
  border-radius: 3vh;
  box-shadow: 0.9vh 0.9vh 0 var(--fk-expresso);
  font-size: calc(3.7vh * var(--fk-texte, 1));
}
.ecran-joueurs .carte-proposition .titre   { font-size: calc(3.9vh * var(--fk-texte, 1)); line-height: 1.1; margin-bottom: 0.5vh; }
.ecran-joueurs .carte-proposition .artiste { font-size: calc(3.4vh * var(--fk-texte, 1)); margin-bottom: 1vh; }
.ecran-joueurs .carte-proposition .nombre-mots { font-size: calc(3.4vh * var(--fk-texte-doux, 1)); white-space: nowrap; }
.ecran-joueurs .cover-proposition {
  width: 16vh;
  height: 16vh;
  margin-bottom: 1.4vh;
  border-width: 0.5vh;
  border-radius: 2vh;
  font-size: 7vh;
}

/* lecteur : aussi grand que la hauteur d'écran le permet */
.ecran-joueurs .cadre-video {
  width: min(100%, 94vh);
  max-width: none;
  border-width: 0.5vh;
  border-radius: 3vh;
  box-shadow: 1vh 1vh 0 var(--jeu-fonce);
}

/* bandeau des scores, en bas : pastilles d'équipes */
.ecran-joueurs .tableau-scores {
  gap: 2.2vh;
  margin: 0;
  padding-top: 1.2vh;
}
.ecran-joueurs .carte-equipe {
  gap: 1.8vh;
  padding: 0.7vh 0.8vh 0.7vh 2.8vh;
  border-width: 0.5vh;
  box-shadow: 0.9vh 0.9vh 0 var(--eq-fonce);
}
.ecran-joueurs .carte-equipe.active {
  outline-width: 0.5vh;
  outline-offset: 0.6vh;
  box-shadow: 0 0 0 1.4vh rgba(245, 230, 200, 0.22), 0.9vh 0.9vh 0 var(--eq-fonce);
}
.ecran-joueurs .carte-equipe .nom-equipe { font-size: calc(3.6vh * var(--fk-texte-doux, 1)); }
.ecran-joueurs .carte-equipe .joker-badge { font-size: calc(3vh * var(--fk-texte-doux, 1)); border-width: 0.4vh; }
.ecran-joueurs .carte-equipe .score      { font-size: calc(4.8vh * var(--fk-texte-doux, 1)); }

/* 5 équipes ou plus : tout se resserre pour que rien ne sorte de l'écran */
.ecran-joueurs:has(.carte-equipe:nth-child(5)) .cadre-video { width: min(100%, 80vh); }
.ecran-joueurs:has(.carte-equipe:nth-child(5)) .carte-equipe { padding-left: 2vh; gap: 1.2vh; }
.ecran-joueurs:has(.carte-equipe:nth-child(5)) .carte-equipe .nom-equipe { font-size: 3vh; }
.ecran-joueurs:has(.carte-equipe:nth-child(5)) .carte-equipe .score      { font-size: 4vh; }

/* ==========================================================================
   POSTE DE RÉGIE (regie.html) — dense, sans décor : police Outfit, fond
   expresso. Seule la couleur du jeu apparaît, dans l'en-tête.
   ========================================================================== */
.ecran-regie .entete {
  grid-template-columns: auto 1fr auto;
  padding: 0.7rem 1.4rem;
  background: var(--jeu);
  color: var(--fk-chocolat);
}
.ecran-regie .marque-nom { color: var(--fk-chocolat); text-shadow: none; font-size: 1.5rem; }
.ecran-regie .marque-disque { border-color: var(--fk-chocolat); width: 2.2rem; }
.ecran-regie .titre-jeu {
  font-family: var(--fk-regie);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fk-chocolat);
  text-shadow: none;
}

.ecran-regie .tableau-scores { margin: 1rem 0 1.4rem; gap: 0.8rem; }
.ecran-regie .carte-equipe { box-shadow: none; padding: 0.3rem 0.35rem 0.3rem 1rem; gap: 0.7rem; }
.ecran-regie .carte-equipe .nom-equipe { font-size: 1rem; }
.ecran-regie .carte-equipe .joker-badge { font-size: 0.85rem; }
.ecran-regie .carte-equipe .score { font-size: 1.3rem; }
.ecran-regie .carte-equipe.active { box-shadow: 0 0 0 8px rgba(245, 230, 200, 0.2); }

.ecran-regie .bandeau-mc { font-size: 0.95rem; box-shadow: none; }
.ecran-regie .bandeau-mc.deverrouille { box-shadow: none; }

.ecran-regie .ligne-categorie { height: 58px; font-size: 1.4rem; box-shadow: none; }

.ecran-regie .zone-manche {
  border: 3px solid var(--fk-sable);
  box-shadow: none;
  padding: 1.2rem;
}
.ecran-regie .zone-manche .artiste { color: var(--fk-sable); }
.ecran-regie .carte-proposition { box-shadow: none; font-family: var(--fk-regie); }
.ecran-regie .carte-proposition .titre { font-weight: 700; }
.ecran-regie .carte-proposition .nombre-mots { font-weight: 600; }

/* La Même Chanson : paroles cliquables */
.paroles-cliquables {
  max-width: 720px;
  margin: 0 auto 0.5rem;
  text-align: center;
  line-height: 2.6;
  font-size: 1.1rem;
}
.mot-cliquable {
  display: inline-block;
  margin: 0.1rem;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.mot-cliquable:hover { background: var(--fk-chocolat); }
.mot-cliquable.trouve { background: rgba(124, 196, 106, 0.18); color: var(--fk-ok); font-weight: 700; }
.mot-cliquable.echec {
  background: rgba(229, 72, 61, 0.2);
  color: var(--fk-erreur);
  font-weight: 700;
  text-decoration: underline wavy;
  text-underline-offset: 5px;
}
.mot-cliquable.non-atteint { opacity: 0.4; }

/* Réponses de l'animateur */
.reponses-regie { max-width: 640px; margin: 0 auto 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.ligne-reponse-regie { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: center; }

.champ-reponse {
  flex: 1;
  min-width: 220px;
  padding: 0.55rem 0.9rem;
  border: 3px solid var(--fk-sable);
  border-radius: 14px;
  background: var(--fk-expresso);
  color: var(--fk-creme);
  font-family: var(--fk-regie);
  font-size: 1rem;
}
.champ-reponse:focus { outline: none; border-color: var(--jeu-clair); box-shadow: 0 0 0 4px rgba(43, 179, 167, 0.3); }
.champ-reponse:disabled { opacity: 0.6; }

.ligne-reponse-regie button { padding: 0.45rem 1rem; font-size: 0.9rem; border-width: 3px; white-space: nowrap; }
.btn-valider { background: var(--fk-ok); }
.btn-valider:hover:not(:disabled) { background: #9AD88A; }
.btn-refuser { background: var(--fk-erreur); }
.btn-refuser:hover:not(:disabled) { background: #EE7168; }
.btn-afficher-reponse { background: var(--fk-creme); }
.btn-afficher-reponse:hover:not(:disabled) { background: #fff3da; }

/* Réponse attendue (visible de l'animateur seulement) */
.reponse-attendue {
  max-width: 640px;
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border-left: 6px solid var(--jeu);
  border-radius: 8px;
  background: var(--fk-expresso);
  font-family: var(--fk-regie);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fk-creme);
}

.controles { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

/* --------------------------------------------------------------------------
   Accessibilité : « réduire les animations » → décor figé, pas de mouvement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Petits écrans (fenêtre de régie réduite, tablette) */
@media (max-width: 720px) {
  .ecran-lancement .formulaire-config { margin-inline: 1rem; padding: 1.4rem; }
  .ecran-regie .entete { grid-template-columns: 1fr auto; }
  .ecran-regie .marque { display: none; }
}

/* ==========================================================================
   Réglages communs FunKey lus par le jeu (posés sur <html> par js/reglages.js)
   - texte       : --fk-texte (textes libres) et --fk-texte-doux (éléments à dimensions
                   serrées : plafonné pour que rien ne sorte de l'écran projeté)
   - contraste   : palette resserrée sur les extrêmes, contours épais
   - animations  : calmes = décor figé · aucune = plus aucun mouvement
   Sans js/reglages.js (jeu ouvert seul), rien de tout cela ne s'applique : le jeu garde son aspect normal.
   ========================================================================== */
:root { --fk-texte: 1; --fk-texte-doux: 1; }
html[data-texte="grand"]      { --fk-texte: 1.15; --fk-texte-doux: 1.1; }
html[data-texte="tres-grand"] { --fk-texte: 1.3;  --fk-texte-doux: 1.15; }

/* Lancement et régie sont dimensionnés en rem : on agrandit la base. (L'écran joueurs, en vh, utilise les variables ci-dessus.) */
html:has(body.ecran-regie),
html:has(body.ecran-lancement) { font-size: calc(100% * var(--fk-texte, 1)); }

html[data-contraste="fort"] {
  --fk-chocolat: #24110A;
  --fk-expresso: #150904;
  --fk-caramel:  #3A1E12;
  --fk-creme:    #FFF6E0;
  --fk-sable:    #E6D2AC;
  --fk-contour:  6px;
}

html[data-animations="calmes"] .fk-sunburst,
html[data-animations="calmes"] .fk-grain { animation: none !important; }

html[data-animations="aucune"] *,
html[data-animations="aucune"] *::before,
html[data-animations="aucune"] *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/* ==========================================================================
   Écran de projection, menu FunKey, messages, rappel du son
   ========================================================================== */
.entete-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}
.ecran-lancement .entete-actions { position: absolute; top: 1rem; right: 1.6rem; }

.btn-projection,
.lien-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 1em;
  border: 3px solid var(--fk-creme);
  border-radius: 999px;
  background: var(--fk-caramel);
  color: var(--fk-creme);
  font-family: var(--fk-jeu-texte);
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--fk-rebond), background-color 0.15s;
}
.ecran-regie .btn-projection,
.ecran-regie .lien-menu { font-family: var(--fk-regie); font-weight: 700; }
.btn-projection:hover,
.lien-menu:hover { background: var(--fk-chocolat); transform: scale(1.04); }
.lien-menu { background: transparent; border-style: dashed; border-color: var(--fk-sable); }
.ecran-regie .lien-menu { border-color: var(--fk-chocolat); color: var(--fk-chocolat); }
.ecran-regie .lien-menu:hover { background: rgba(36, 17, 10, 0.15); }

/* voyant : anneau vide = fermé, rond plein vert = ouvert (la forme change, pas seulement la couleur) */
.btn-projection .voyant {
  flex: none;
  width: 0.95em;
  aspect-ratio: 1;
  border: 3px solid var(--fk-creme);
  border-radius: 50%;
  background: var(--fk-expresso);
}
.btn-projection[data-etat="ouvert"] .voyant {
  background: var(--fk-ok);
  box-shadow: 0 0 0 3px rgba(124, 196, 106, 0.35);
}

.info {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 40;
  translate: -50% 0;
  max-width: min(92vw, 46rem);
  margin: 0;
  padding: 0.7rem 1.2rem;
  border: 3px solid var(--fk-creme);
  border-radius: 20px;
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font-family: var(--fk-jeu-texte);
  font-size: 0.98rem;
  line-height: 1.3;
  text-align: center;
}
.ecran-regie .info { font-family: var(--fk-regie); font-weight: 600; }

.rappel-son {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  max-width: 56rem;
  margin: 0.8rem auto 0;
  padding: 0.6rem 1rem;
  border: 3px solid var(--fk-moutarde);
  border-radius: 14px;
  background: rgba(227, 168, 43, 0.14);
  font-size: 0.95rem;
  text-align: center;
}
.rappel-son button { padding: 0.35rem 1rem; font-size: 0.88rem; border-width: 3px; }

/* ==========================================================================
   Fin de partie : classement final (écran joueurs et régie)
   ========================================================================== */
.classement-final { text-align: center; }
.titre-classement {
  margin: 0 0 0.9rem;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--fk-creme);
  text-shadow: 3px 3px 0 var(--jeu-fonce);
}

.classement {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 38rem;
  margin: 0 auto 1rem;
  padding: 0;
  list-style: none;
}

.rang {
  --eq: var(--fk-orange);
  --eq-fonce: #A8461A;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.5rem 0.45rem 1.3rem;
  border: var(--fk-contour) solid var(--fk-creme);
  border-radius: 999px;
  background: var(--eq);
  color: var(--fk-chocolat);
  font-family: var(--fk-jeu-texte);
  font-size: 1.15rem;
  box-shadow: 5px 5px 0 var(--eq-fonce);
  text-align: left;
}
.rang.eq-1 { --eq: var(--fk-moutarde);  --eq-fonce: #A6791A; }
.rang.eq-2 { --eq: var(--fk-rose);      --eq-fonce: #A8305F; }
.rang.eq-3 { --eq: var(--fk-turquoise); --eq-fonce: #1D7A72; }
.rang-premier { transform: scale(1.04); }

.rang-num { flex: none; min-width: 3.4em; line-height: 1.05; }
.rang-num small { display: block; font-size: 0.55em; }
.rang-nom { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.1; }
.rang-score {
  flex: none;
  min-width: 2.3em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font-size: 1.25em;
  text-align: center;
}
.ecran-regie .rang { box-shadow: none; }

/* écran joueurs : le classement remplace tout le plateau (plus de bandeau, plus de scores en bas) */
.ecran-joueurs:has(.classement-final) .tableau-scores,
.ecran-joueurs:has(.classement-final) .bandeau-mc { display: none; }

.ecran-joueurs .titre-classement { margin-bottom: 1.4vh; font-size: calc(6.4vh * var(--fk-texte-doux, 1)); line-height: 1; }
.ecran-joueurs .classement { gap: 1.4vh; max-width: 100vh; }
.ecran-joueurs .rang {
  gap: 2.4vh;
  padding: 0.7vh 0.9vh 0.7vh 3.2vh;
  border-width: 0.5vh;
  box-shadow: 0.8vh 0.8vh 0 var(--eq-fonce);
  font-size: calc(4.2vh * var(--fk-texte-doux, 1));
  line-height: 1.1;
}
.ecran-joueurs .rang-num { min-width: 4.8em; }
.ecran-joueurs .rang-num small { display: inline; margin-left: 0.5em; font-size: 0.5em; }
.ecran-joueurs .rang-score { font-size: 0.95em; line-height: 1.25; }

/* 5 équipes ou plus, puis 7 ou plus : le classement se resserre pour toujours tenir à l'écran */
.ecran-joueurs .classement:has(.rang:nth-child(5)) { gap: 1vh; }
.ecran-joueurs .classement:has(.rang:nth-child(5)) .rang { font-size: calc(3.6vh * var(--fk-texte-doux, 1)); padding-top: 0.5vh; padding-bottom: 0.5vh; box-shadow: 0.6vh 0.6vh 0 var(--eq-fonce); }
.ecran-joueurs .classement:has(.rang:nth-child(7)) { gap: 0.7vh; }
.ecran-joueurs .classement:has(.rang:nth-child(7)) .rang { font-size: calc(3vh * var(--fk-texte-doux, 1)); padding-top: 0.3vh; padding-bottom: 0.3vh; border-width: 0.4vh; }

/* ==========================================================================

/* ==========================================================================
   LES 100 SONDÉS — styles propres au jeu
   ========================================================================== */

/* --- Pastille « Manche double ×2 » (régie et écran) --- */
.badge-mult {
  display: inline-block;
  padding: 0.1em 0.7em;
  border: 3px solid var(--fk-creme);
  border-radius: 999px;
  background: var(--fk-rose);
  color: var(--fk-chocolat);
  font-family: var(--fk-jeu-texte);
  font-size: 0.8em;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- Écran joueurs : bandeau de la manche --- */
.bandeau-manche {
  margin: 0 auto 1.6vh;
  padding: 0.8vh 3vh;
  border: 0.45vh solid var(--fk-creme);
  border-radius: 999px;
  background: var(--fk-caramel);
  color: var(--fk-creme);
  font-family: var(--fk-jeu-texte);
  font-size: calc(3.4vh * var(--fk-texte-doux, 1));
  text-align: center;
  box-shadow: 0.7vh 0.7vh 0 var(--jeu-fonce);
  width: fit-content;
  max-width: 100%;
}
.bandeau-manche.vol { background: var(--fk-rose); color: var(--fk-chocolat); }
.bandeau-manche.fin { background: var(--jeu); color: var(--fk-chocolat); }

/* --- Écran joueurs : attente entre deux manches --- */
.ecran-joueurs .attente-manche { text-align: center; padding: 5vh 3vh 6vh; }
.attente-manche .intro { margin: 0 0 1vh; color: var(--fk-sable); font-size: calc(4vh * var(--fk-texte, 1)); }
.attente-manche h2 { margin: 0 0 2vh; font-size: calc(13vh * var(--fk-texte-doux, 1)); line-height: 1; color: var(--jeu-clair); text-shadow: 0.8vh 0.8vh 0 var(--fk-expresso); }
.attente-manche .badge-mult { font-size: calc(4vh * var(--fk-texte-doux, 1)); border-width: 0.5vh; }
.attente-manche .sous { margin: 3vh 0 0; font-size: calc(3.8vh * var(--fk-texte, 1)); }

/* --- Écran joueurs : le plateau (question + tableau + cagnotte) --- */
.ecran-joueurs .plateau-sondage { width: min(100%, 150vh); padding: 2vh 3vh 2.4vh; }
.question-carte { text-align: center; margin-bottom: 2.4vh; }
.question-carte .sur-titre { margin: 0 0 0.6vh; color: var(--fk-sable); font-size: calc(3vh * var(--fk-texte, 1)); }
.question-carte .sur-titre .badge-mult { font-size: calc(2.6vh * var(--fk-texte-doux, 1)); border-width: 0.4vh; margin-left: 1vh; }
.question-carte .question { margin: 0; font-size: calc(5.6vh * var(--fk-texte-doux, 1)); line-height: 1.1; color: var(--fk-creme); text-shadow: 0.5vh 0.5vh 0 var(--fk-expresso); }

/* Tableau : 2 colonnes, remplies de haut en bas (1 à 4 à gauche, 5 à 8 à droite) */
.tableau-reponses {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(var(--lignes, 4), 1fr);
  gap: 1.4vh 2.4vh;
}
.case-reponse {
  display: flex;
  align-items: center;
  min-height: 8.6vh;
  padding: 0 1.4vh 0 2.4vh;
  border: 0.45vh solid var(--fk-sable);
  border-radius: 1.6vh;
  background: var(--fk-expresso);
  box-shadow: 0.6vh 0.6vh 0 rgba(0, 0, 0, 0.35);
  font-size: calc(3.8vh * var(--fk-texte-doux, 1));
}
.case-reponse.cachee { justify-content: center; background: repeating-linear-gradient(135deg, var(--fk-caramel) 0 1.4vh, var(--fk-expresso) 1.4vh 2.8vh); }
.case-reponse.cachee .num {
  display: grid;
  place-items: center;
  width: 6vh;
  height: 6vh;
  border: 0.45vh solid var(--fk-creme);
  border-radius: 50%;
  background: var(--jeu);
  color: var(--fk-chocolat);
  font-family: var(--fk-titre);
  font-size: calc(3.6vh * var(--fk-texte-doux, 1));
}
.case-reponse .texte { flex: 1; min-width: 0; line-height: 1.1; overflow-wrap: anywhere; }
.case-reponse .points {
  flex: none;
  min-width: 8vh;
  margin-left: 1.4vh;
  padding: 0.4vh 1vh;
  border-radius: 1vh;
  background: var(--jeu);
  color: var(--fk-chocolat);
  font-family: var(--fk-titre);
  text-align: center;
}
.case-reponse.trouvee { border-color: var(--fk-creme); background: var(--fk-caramel); }
.case-reponse.devoilee { opacity: 0.6; border-style: dashed; }
.case-reponse.devoilee .points { background: var(--fk-sable); }

.pied-plateau { display: flex; align-items: center; justify-content: center; gap: 5vh; margin-top: 2.4vh; }
.cagnotte {
  display: flex;
  align-items: baseline;
  gap: 1.4vh;
  padding: 0.8vh 3vh;
  border: 0.45vh solid var(--fk-creme);
  border-radius: 999px;
  background: var(--fk-chocolat);
  font-size: calc(3.2vh * var(--fk-texte-doux, 1));
}
.cagnotte b { font-family: var(--fk-titre); font-weight: 400; font-size: 1.6em; color: var(--jeu-clair); }
.cagnotte small { font-size: 0.9em; color: var(--fk-rose); }
.croix { display: flex; gap: 1.2vh; }
.croix span {
  display: grid;
  place-items: center;
  width: 7vh;
  height: 7vh;
  border: 0.45vh dashed var(--fk-sable);
  border-radius: 1.4vh;
  color: transparent;
  font-size: 5vh;
  line-height: 1;
}
.croix span.pleine { border: 0.45vh solid var(--fk-creme); background: var(--fk-erreur); color: var(--fk-creme); }

/* --- Régie --- */
.ecran-regie .panneau-attente h2 { margin: 0 0 0.6rem; font-size: 1.6rem; }
.ecran-regie .panneau-attente p { color: var(--fk-sable); }
.manche-regie .tete-manche { margin: 0 0 0.4rem; color: var(--fk-sable); display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.manche-regie .theme { padding: 0.05rem 0.6rem; border: 2px solid var(--fk-sable); border-radius: 999px; font-size: 0.85rem; }
.manche-regie .question-regie { margin: 0 0 0.6rem; font-size: 1.6rem; line-height: 1.15; }
.manche-regie .consigne { margin: 0 0 0.9rem; padding: 0.6rem 0.9rem; border-left: 5px solid var(--jeu); border-radius: 8px; background: rgba(245, 230, 200, 0.06); }
.manche-regie.phase-vol .consigne { border-left-color: var(--fk-rose); }
.manche-regie.phase-fin .consigne { border-left-color: var(--fk-ok); }
.croix-regie { color: var(--fk-erreur); font-weight: 800; letter-spacing: 0.2em; }

.reponses-regie { display: grid; grid-auto-flow: column; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); gap: 0.5rem 0.8rem; }
.reponse-regie {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border: 3px solid var(--fk-sable);
  border-radius: 12px;
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font: 600 1rem var(--fk-regie);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.reponse-regie:hover:not(:disabled) { border-color: var(--jeu-clair); background: var(--fk-caramel); }
.reponse-regie:focus-visible { outline: 3px solid var(--jeu-clair); outline-offset: 2px; }
.reponse-regie:disabled { cursor: default; opacity: 1; }
.reponse-regie .num-rang { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--jeu); color: var(--fk-chocolat); font-weight: 800; }
.reponse-regie .texte { flex: 1; min-width: 0; }
.reponse-regie .texte small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--fk-sable); }
.reponse-regie .points { flex: none; font-weight: 800; color: var(--jeu-clair); }
.reponse-regie.trouvee { border-color: var(--fk-ok); background: rgba(124, 196, 106, 0.16); }
.reponse-regie.devoilee { opacity: 0.55; border-style: dashed; }
.reponse-regie.trouvee .num-rang { background: var(--fk-ok); }

.cagnotte-regie { margin: 0.9rem 0 0.6rem; text-align: center; font-size: 1.1rem; }
.cagnotte-regie b { color: var(--jeu-clair); }
.actions-manche { align-items: center; }
.btn-croix {
  padding: 0.55rem 1.2rem;
  border: 3px solid var(--fk-creme);
  border-radius: 999px;
  background: var(--fk-erreur);
  color: var(--fk-creme);
  font: 800 1.05rem var(--fk-regie);
  cursor: pointer;
}
.btn-croix:hover { filter: brightness(1.1); }
.groupe-equipes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.groupe-equipes > span { color: var(--fk-sable); margin-right: 0.2rem; }
.btn-equipe {
  --eq: var(--fk-orange);
  padding: 0.45rem 1rem;
  border: 3px solid var(--eq);
  border-radius: 999px;
  background: transparent;
  color: var(--fk-creme);
  font: 700 1rem var(--fk-regie);
  cursor: pointer;
}
.btn-equipe.eq-1 { --eq: var(--fk-moutarde); }
.btn-equipe.eq-2 { --eq: var(--fk-rose); }
.btn-equipe.eq-3 { --eq: var(--fk-turquoise); }
.btn-equipe:hover, .btn-equipe.choisie { background: var(--eq); color: var(--fk-chocolat); }
.groupe-equipes.petit .btn-equipe { padding: 0.25rem 0.7rem; font-size: 0.88rem; }
.btn-annuler { font-size: 0.9rem; }

/* --- Lancement : liste déroulante du nombre de manches (même look que les champs texte) --- */
.formulaire-config .champ-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 3px solid var(--fk-sable);
  border-radius: 14px;
  background: var(--fk-expresso);
  color: var(--fk-creme);
  font: 1.1rem var(--fk-jeu-texte);
}
.formulaire-config .champ-select:focus { outline: none; border-color: var(--jeu); }

/* ======================== Effets repris des Casseroles (confettis, victoire, animations communes) ======================== */
/* ==========================================================================
   Confettis (créés et animés par effets.js)
   ========================================================================== */
.confettis {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}
.confettis .confetti {
  position: absolute;
  left: 0;
  top: 0;
  margin: -6px 0 0 -6px;
  border-radius: 2px;
  will-change: transform, opacity;
}

/* ==========================================================================
   Victoire : animation du classement final (écran joueurs)
   Les lignes arrivent de la dernière place à la première (--delai posé par effets.js),
   puis les gagnants : projecteurs, trophée qui se balance, halo qui pulse, confettis.
   ========================================================================== */
.classement-final.victoire .titre-classement { animation: titre-tombe 0.6s var(--fk-rebond) both; }
.classement-final.victoire .rang { animation: rang-entree 0.6s var(--fk-rebond) var(--delai, 0ms) both; }
.classement-final.victoire .rang-premier {
  animation: gagnant-entree 0.9s var(--fk-rebond) var(--delai, 0ms) both,
             gagnant-halo 1.6s ease-in-out calc(var(--delai, 0ms) + 0.9s) infinite;
}
.classement-final.victoire .rang-premier .rang-nom { display: inline-block; transform-origin: 30% 80%; animation: trophee 0.8s ease-in-out calc(var(--delai, 0ms) + 0.9s) 4 alternate; }
.classement-final.victoire.calme .titre-classement,
.classement-final.victoire.calme .rang,
.classement-final.victoire.calme .rang-premier { animation: fondu-entree 0.45s ease-out var(--delai, 0ms) both; }
.classement-final.victoire.calme .rang-premier .rang-nom { animation: none; }

@keyframes rang-entree {
  from { opacity: 0; transform: translateX(-60vw) rotate(-6deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes gagnant-entree {
  0%   { opacity: 0; transform: scale(0.2); }
  60%  { opacity: 1; transform: scale(1.18) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1.04); }
}
@keyframes gagnant-halo {
  0%, 100% { transform: scale(1.04); box-shadow: 0.8vh 0.8vh 0 var(--eq-fonce), 0 0 0 0 rgba(245, 230, 200, 0.55); }
  50%      { transform: scale(1.08); box-shadow: 0.8vh 0.8vh 0 var(--eq-fonce), 0 0 0 2.4vh rgba(245, 230, 200, 0); }
}
@keyframes trophee { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes titre-tombe {
  from { opacity: 0; transform: translateY(-30vh) scale(1.4); }
  to   { opacity: 1; transform: none; }
}

/* deux projecteurs qui se croisent sur les gagnants */
.victoire-projecteurs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.victoire-projecteurs .vp {
  position: absolute;
  bottom: -10vh;
  width: 40vmin;
  height: 140vh;
  margin-left: -20vmin;
  transform-origin: 50% 100%;
  clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0);
  filter: blur(8px);
  opacity: 0;
  animation: faisceau-allume 0.5s ease-out var(--delai-gagnant, 0ms) forwards, faisceau-balaie 2.4s ease-in-out var(--delai-gagnant, 0ms) 3 alternate;
}
.victoire-projecteurs .vp.g { left: 12%; background: linear-gradient(to top, rgba(227, 168, 43, 0.6), transparent 80%); --a: 30deg; --b: 8deg; }
.victoire-projecteurs .vp.d { left: 88%; background: linear-gradient(to top, rgba(232, 74, 138, 0.6), transparent 80%); --a: -30deg; --b: -8deg; }

/* ==========================================================================
   Animations communes aux effets
   ========================================================================== */
@keyframes fondu-entree { from { opacity: 0; } }
@keyframes fondu-sortie { to { opacity: 0; } }
@keyframes flash-sortie { from { opacity: 0.95; } to { opacity: 0; } }
@keyframes rayons-entree { from { opacity: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(4vmin); } }
@keyframes titre-tampon {
  0%   { opacity: 0; transform: scale(2.6) rotate(8deg); }
  60%  { opacity: 1; transform: scale(0.94) rotate(-4deg); }
  100% { opacity: 1; }
}
@keyframes lettre-tombe {
  0%   { opacity: 0; transform: translateY(-70vh) rotate(-25deg); }
  70%  { opacity: 1; transform: translateY(1.5vmin) rotate(4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes neon {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    color: var(--fk-moutarde);
    text-shadow: 0.6vmin 0.6vmin 0 var(--fk-chocolat), 1.2vmin 1.2vmin 0 var(--fk-rose), 1.8vmin 1.8vmin 0 var(--fk-turquoise),
                 0 0 4vmin rgba(227, 168, 43, 0.75);
  }
  20%, 24%, 55% {
    color: #8A6418;
    text-shadow: 0.6vmin 0.6vmin 0 var(--fk-chocolat), 1.2vmin 1.2vmin 0 var(--fk-rose), 1.8vmin 1.8vmin 0 var(--fk-turquoise);
  }
}
@keyframes pulse-cta { 50% { transform: scale(1.06); } }

/* projecteurs (repris de l'annonce des Casseroles) */
@keyframes faisceau-allume { to { opacity: 0.85; } }
@keyframes faisceau-balaie {
  from { transform: rotate(var(--a)); }
  to   { transform: rotate(var(--b)); }
}


/* ==========================================================================
   LES 100 SONDÉS — animations (étape 2)
   ========================================================================== */

/* --- Case qui se retourne (réponse trouvée) --- */
.case-reponse.anim-retourne { animation: case-retourne 0.7s var(--fk-rebond) both; transform-origin: center; }
.case-reponse.anim-retourne .points { animation: points-pop 0.5s var(--fk-rebond) 0.45s both; }
.case-reponse.anim-devoile { animation: case-retourne 0.6s ease-out both; animation-delay: calc(var(--k, 0) * 180ms); }
@keyframes case-retourne {
  0%   { transform: perspective(60vh) rotateX(90deg); background: var(--jeu); }
  60%  { transform: perspective(60vh) rotateX(-12deg); }
  100% { transform: none; }
}
@keyframes points-pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: none; } }
.cagnotte.anim-cagnotte b { display: inline-block; animation: points-pop 0.6s var(--fk-rebond) 0.3s both; }

/* --- Score de l'équipe qui remporte la manche --- */
.carte-equipe.anim-score .score { animation: score-gagne 0.9s var(--fk-rebond) both; }
@keyframes score-gagne { 0% { transform: scale(1); } 40% { transform: scale(1.45); background: var(--fk-ok); } 100% { transform: none; } }

/* --- Grandes croix rouges --- */
.croix-geante {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(229, 72, 61, 0.25), rgba(42, 21, 13, 0.55) 70%);
  animation: fondu-entree 0.15s ease-out both;
}
.croix-geante .cg-ligne { display: flex; gap: 4vmin; }
.croix-geante span {
  display: grid;
  place-items: center;
  width: 30vmin;
  height: 30vmin;
  border: 1.4vmin solid var(--fk-creme);
  border-radius: 4vmin;
  background: var(--fk-erreur);
  color: var(--fk-creme);
  font-size: 24vmin;
  line-height: 1;
  box-shadow: 1.6vmin 1.6vmin 0 var(--fk-expresso);
  animation: croix-tampon 0.45s var(--fk-rebond) both, croix-vibre 0.45s ease-in-out 0.45s both;
  animation-delay: calc(var(--k) * 90ms), calc(0.45s + var(--k) * 90ms);
}
.croix-geante.sortie { animation: fondu-sortie 0.4s ease-in both; }
.croix-geante.calme span { animation: fondu-entree 0.25s ease-out both; }
@keyframes croix-tampon { 0% { opacity: 0; transform: scale(2.4) rotate(15deg); } 70% { opacity: 1; transform: scale(0.92); } 100% { transform: none; } }
@keyframes croix-vibre {
  0%, 100% { transform: none; }
  20%, 60% { transform: translateX(-2.4vmin) rotate(-3deg); }
  40%, 80% { transform: translateX(2.4vmin) rotate(3deg); }
}

/* --- Bannières (« Vol ! », « Manche double ! », « Le Sprint », « Sprint réussi ! ») --- */
.banniere {
  --bn: var(--fk-orange);
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle, rgba(59, 31, 20, 0.85), rgba(42, 21, 13, 0.96) 70%);
  text-align: center;
  animation: fondu-entree 0.25s ease-out both;
}
.banniere.bn-rose      { --bn: var(--fk-rose); }
.banniere.bn-moutarde  { --bn: var(--fk-moutarde); }
.banniere.bn-turquoise { --bn: var(--fk-turquoise); }
.bn-rayons {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160vmax;
  height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  background: repeating-conic-gradient(from 0deg, var(--bn) 0deg 8deg, transparent 8deg 16deg);
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 55%);
          mask-image: radial-gradient(circle, #000 10%, transparent 55%);
  animation: rayons-entree 0.4s ease-out both, fk-tourne 14s linear infinite;
}
.bn-scene { position: relative; padding: 0 4vmin; }
.bn-titre {
  margin: 0;
  font-family: var(--fk-titre);
  font-size: 18vmin;
  line-height: 1;
  color: var(--bn);
  text-shadow: 0.8vmin 0.8vmin 0 var(--fk-creme), 1.6vmin 1.6vmin 0 var(--fk-expresso);
  transform: rotate(-4deg);
  animation: titre-tampon 0.6s var(--fk-rebond) both;
}
.bn-sous {
  display: inline-block;
  margin: 4vmin 0 0;
  padding: 0.8vmin 4vmin;
  border: 0.6vmin solid var(--fk-creme);
  border-radius: 999px;
  background: var(--fk-chocolat);
  color: var(--fk-creme);
  font-family: var(--fk-jeu-texte);
  font-size: 5vmin;
  animation: monte 0.5s ease-out 0.45s both;
}
.banniere.sortie { animation: fondu-sortie 0.45s ease-in both; }
.banniere.calme .bn-rayons { animation: rayons-entree 0.4s ease-out both; }
.banniere.calme .bn-titre, .banniere.calme .bn-sous { animation: fondu-entree 0.4s ease-out both; }

/* --- Attente : la pastille « Manche double / triple » pulse --- */
.attente-manche h2 { animation: titre-tombe 0.7s var(--fk-rebond) both; }
.attente-manche .badge-mult { animation: pulse-cta 1.2s ease-in-out 0.8s infinite; }

/* --- Bandeau du Sprint --- */
.bandeau-manche.sprint { background: var(--fk-turquoise); color: var(--fk-chocolat); }

/* ==========================================================================
   Finale « Le Sprint » — écran joueurs
   ========================================================================== */
.ecran-joueurs .plateau-sprint { width: min(100%, 150vh); padding: 2vh 3vh 2.4vh; }
.sprint-intro { text-align: center; margin-bottom: 2.4vh; }
.sprint-intro h2 { margin: 0; font-size: calc(10vh * var(--fk-texte-doux, 1)); line-height: 1; color: var(--fk-turquoise); text-shadow: 0.7vh 0.7vh 0 var(--fk-expresso); animation: titre-tombe 0.7s var(--fk-rebond) both; }
.sprint-intro p { margin: 1.4vh 0 0; font-size: calc(3.4vh * var(--fk-texte, 1)); color: var(--fk-sable); }
.sprint-intro.reussi h2 { color: var(--jeu-clair); }
.sprint-intro.rate h2 { color: var(--fk-rose); }

.sprint-haut { display: flex; align-items: center; gap: 3vh; margin-bottom: 2.4vh; }
.sprint-haut .sprint-question { flex: 1; margin: 0; text-align: left; }
.sprint-haut .question { font-size: calc(4.8vh * var(--fk-texte-doux, 1)); }
.chrono {
  flex: none;
  display: grid;
  place-items: center;
  width: 16vh;
  height: 16vh;
  border: 0.8vh solid var(--fk-creme);
  border-radius: 50%;
  background: var(--fk-turquoise);
  color: var(--fk-chocolat);
  font-family: var(--fk-titre);
  font-size: 8vh;
  line-height: 1;
  box-shadow: 0.9vh 0.9vh 0 var(--fk-expresso);
}
.chrono.urgent { background: var(--fk-moutarde); animation: chrono-urgent 1s ease-in-out infinite; }
.chrono.fini { background: var(--fk-erreur); color: var(--fk-creme); font-size: 4vh; animation: none; }
@keyframes chrono-urgent { 50% { transform: scale(1.08); } }

.tableau-sprint { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1vh 2.4vh; }
.tableau-sprint .tete-col { text-align: center; color: var(--fk-sable); font-size: calc(3vh * var(--fk-texte, 1)); }
.cellule-sprint {
  display: flex;
  align-items: center;
  min-height: 7vh;
  padding: 0 1.2vh 0 2vh;
  border: 0.45vh solid var(--fk-sable);
  border-radius: 1.4vh;
  background: var(--fk-caramel);
  font-size: calc(3.4vh * var(--fk-texte-doux, 1));
}
.cellule-sprint .texte { flex: 1; min-width: 0; line-height: 1.1; overflow-wrap: anywhere; }
.cellule-sprint .points { flex: none; min-width: 7vh; margin-left: 1vh; padding: 0.3vh 1vh; border-radius: 1vh; background: var(--jeu); color: var(--fk-chocolat); font-family: var(--fk-titre); text-align: center; }
.cellule-sprint.vide { background: var(--fk-expresso); border-style: dashed; }
.cellule-sprint.vide.courante { border-style: solid; border-color: var(--fk-turquoise); box-shadow: 0 0 0 0.5vh rgba(43, 179, 167, 0.35); }
.cellule-sprint.zero .texte { color: var(--fk-erreur); }
.cellule-sprint.zero .points { background: var(--fk-sable); }
.cellule-sprint.masquee { justify-content: center; background: repeating-linear-gradient(135deg, var(--fk-caramel) 0 1.4vh, var(--fk-expresso) 1.4vh 2.8vh); color: var(--fk-sable); font-family: var(--fk-titre); }
.cellule-sprint.anim-cellule { animation: case-retourne 0.6s var(--fk-rebond) both; }
.cellule-sprint.zero.anim-cellule { animation: croix-vibre 0.5s ease-in-out both; }
.total-sprint b { color: var(--fk-turquoise); }

/* --- Régie : tableau du Sprint --- */
.question-sprint { margin: 0 0 0.7rem; font-size: 1.3rem; }
.question-sprint small { display: block; margin-top: 0.2rem; font: 600 0.9rem var(--fk-regie); color: var(--fk-moutarde); }
.chrono-regie { color: var(--fk-turquoise); font-size: 1.2em; }
.sprint-regie { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.95rem; }
.sprint-regie th, .sprint-regie td { padding: 0.4rem 0.6rem; border-bottom: 1px solid rgba(245, 230, 200, 0.15); text-align: left; }
.sprint-regie th { color: var(--fk-sable); font-weight: 600; }
.sprint-regie tbody tr[data-action] { cursor: pointer; }
.sprint-regie tbody tr[data-action]:hover { background: rgba(245, 230, 200, 0.06); }
.sprint-regie tr.courante { background: rgba(43, 179, 167, 0.18); }
.sprint-regie .vide { color: var(--fk-sable); }
.sprint-regie .zero { color: var(--fk-erreur); font-weight: 700; }
.sprint-regie b { color: var(--jeu-clair); }
.sprint-regie tfoot td { font-size: 1.1rem; border-bottom: 0; }
