/* ============================================================================
   QUI SUIS-JE ? — feuille de styles principale
   Direction artistique : plateau de société rétro-futuriste, cartes en 2.5D,
   lumière chaude, profondeur douce. Aucune ressource externe.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Socle et variables
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --accent: #f7b955;
  --accent-2: #54d6a1;
  --lueur: #f7b955;
  --fond-theme: #0a1915;
  --fond: #060a0f;
  --fond-2: #0b121b;
  --surface: rgba(18, 27, 38, 0.78);
  --surface-forte: rgba(24, 35, 48, 0.94);
  --surface-claire: rgba(255, 255, 255, 0.055);
  --surface-claire-2: rgba(255, 255, 255, 0.09);
  --bord: rgba(255, 255, 255, 0.1);
  --bord-fort: rgba(255, 255, 255, 0.18);
  --texte: #f8f3e8;
  --texte-doux: #a7b5c5;
  --texte-faible: #748294;
  --danger: #ff6b6b;
  --succes: #62e6b0;
  --rayon-petit: 10px;
  --rayon: 18px;
  --rayon-grand: 28px;
  --ombre-douce: 0 18px 50px rgba(0, 0, 0, 0.32);
  --ombre-carte: 0 18px 34px rgba(0, 0, 0, 0.36);
  --police-titre: "Bahnschrift", "Aptos Display", "Trebuchet MS", "Segoe UI", sans-serif;
  --police-corps: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --police-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --largeur-max: 1480px;
  --ease-sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-douce: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  min-height: 100%;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--texte);
  font-family: var(--police-corps);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(110% 70% at 8% -5%, color-mix(in srgb, var(--lueur) 14%, transparent), transparent 58%),
    radial-gradient(90% 65% at 95% 8%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--fond-theme) 0%, var(--fond-2) 42%, var(--fond) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.est-fige {
  overflow: hidden;
}

::selection {
  color: #16100a;
  background: var(--accent);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--police-titre);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a,
select:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. Décor de fond et structure générale
   -------------------------------------------------------------------------- */
.decor-fond {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.decor-fond__halo {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: respirer 14s ease-in-out infinite alternate;
}

.decor-fond__halo--un {
  top: -24vw;
  left: -16vw;
  background: var(--lueur);
}

.decor-fond__halo--deux {
  right: -20vw;
  bottom: -30vw;
  background: var(--accent-2);
  animation-delay: -7s;
}

.decor-fond__grille {
  position: absolute;
  inset: -20%;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(62deg) translateY(34%);
  mask-image: linear-gradient(to bottom, transparent 20%, black 70%, transparent 100%);
}

.decor-fond__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.app {
  position: relative;
  min-height: 100dvh;
}

.page {
  width: min(100%, var(--largeur-max));
  margin: 0 auto;
  padding: 22px clamp(16px, 3.5vw, 52px) 54px;
}

.page--etroite {
  width: min(100%, 980px);
}

.surtitre {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--police-titre);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.surtitre::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.texte-doux {
  color: var(--texte-doux);
}

.texte-accent {
  color: var(--accent);
}

.lien-evitement {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  color: #15100b;
  background: var(--accent);
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.lien-evitement:focus {
  transform: none;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   3. Boutons, champs et éléments d'interface
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--police-titre);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease-sortie),
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.42;
  transform: none;
}

.btn--primaire {
  color: #19130b;
  border-color: color-mix(in srgb, var(--accent) 60%, white 18%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, white), color-mix(in srgb, var(--accent) 82%, #7b4c0a));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16),
    0 10px 26px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn--primaire:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 34px color-mix(in srgb, var(--accent) 36%, transparent);
}

.btn--secondaire {
  color: var(--texte);
  border-color: var(--bord-fort);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(12, 20, 29, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.btn--secondaire:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--bord-fort));
  background: rgba(255, 255, 255, 0.08);
}

.btn--fantome {
  min-height: 42px;
  padding: 0 14px;
  color: var(--texte-doux);
  border-color: transparent;
  background: transparent;
}

.btn--fantome:hover {
  color: var(--texte);
  background: rgba(255, 255, 255, 0.055);
}

.btn--danger {
  color: #ffd7d7;
  border-color: rgba(255, 107, 107, 0.34);
  background: rgba(255, 107, 107, 0.1);
}

.btn--danger:hover {
  background: rgba(255, 107, 107, 0.16);
}

.btn--petit {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 0.8rem;
}

.btn--large {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  font-size: 1rem;
}

.btn--bloc {
  width: 100%;
}

.btn__icone {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.btn__sous-texte {
  color: color-mix(in srgb, #19130b 62%, transparent);
  font-family: var(--police-corps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  color: var(--texte-doux);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.puce--accent {
  color: color-mix(in srgb, var(--accent) 82%, white);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.puce--succes {
  color: var(--succes);
  border-color: rgba(98, 230, 176, 0.28);
  background: rgba(98, 230, 176, 0.08);
}

.puce--danger {
  color: #ff9b9b;
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.08);
}

.icone-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* Ligne de titre de section */
.entete-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 74px 0 26px;
}

.entete-section h2 {
  margin-bottom: 0;
}

.entete-section p {
  max-width: 540px;
  margin-bottom: 4px;
  color: var(--texte-doux);
}

/* --------------------------------------------------------------------------
   4. Bandeau supérieur et marque
   -------------------------------------------------------------------------- */
.bandeau {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, var(--largeur-max));
  margin: 0 auto;
  padding: 18px clamp(16px, 3.5vw, 52px);
}

.bandeau--jeu {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  padding: 10px clamp(12px, 2.4vw, 28px);
  border-bottom: 1px solid var(--bord);
  background: rgba(7, 12, 18, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: var(--texte);
  background: transparent;
  text-align: left;
}

.marque__cube {
  position: relative;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 14px;
  color: #181109;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), transparent 38%),
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 90%, white), color-mix(in srgb, var(--accent-2) 45%, var(--accent)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -5px 10px rgba(97, 48, 0, 0.2),
    5px 6px 0 rgba(0, 0, 0, 0.25),
    0 10px 30px color-mix(in srgb, var(--accent) 22%, transparent);
  font-family: var(--police-titre);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
}

.marque__cube::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(20, 13, 6, 0.2);
  border-radius: 10px;
}

.marque__texte {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.marque__texte strong {
  font-family: var(--police-titre);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marque__texte small {
  margin-top: 3px;
  color: var(--texte-faible);
  font-family: var(--police-serif);
  font-size: 0.76rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.bandeau__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bandeau__separateur {
  width: 1px;
  height: 24px;
  margin: 0 6px;
  background: var(--bord);
}

.pastille-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
}

.pastille-theme__emoji {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   5. Accueil — hero et scène 2.5D
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(24px, 4vw, 68px);
  min-height: min(720px, 78vh);
  padding: clamp(34px, 5vw, 70px) 0 34px;
}

.hero__texte {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 12px 8px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--bord));
  border-radius: 999px;
  color: var(--texte-doux);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__badge span:first-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #1c1307;
  background: var(--accent);
  font-size: 0.82rem;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7.3vw, 7.2rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero h1 .ligne {
  display: block;
}

.hero h1 .ligne--accent {
  color: var(--accent);
  text-shadow:
    0 1px 0 color-mix(in srgb, var(--accent) 70%, white),
    0 4px 0 color-mix(in srgb, var(--accent) 45%, #2b1c0b),
    0 9px 0 rgba(0, 0, 0, 0.28),
    0 22px 36px color-mix(in srgb, var(--accent) 16%, transparent);
  transform: perspective(600px) rotateX(2deg);
  transform-origin: bottom;
}

.hero h1 .ligne--fine {
  font-family: var(--police-serif);
  font-size: 0.36em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: none;
  color: var(--texte-doux);
}

.hero__description {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--texte-doux);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}

.hero__description strong {
  color: var(--texte);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.hero__promesses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: var(--texte-faible);
  font-size: 0.8rem;
}

.hero__promesses li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__promesses li::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 800;
}

/* Scène de cartes flottantes */
.scene {
  position: relative;
  min-height: 560px;
  perspective: 1300px;
  transform-style: preserve-3d;
}

.scene__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, 90%);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    repeating-radial-gradient(circle, transparent 0 28px, rgba(255, 255, 255, 0.055) 29px 30px);
  transform: translate(-50%, -50%) rotateX(58deg);
  box-shadow: 0 0 90px color-mix(in srgb, var(--lueur) 14%, transparent);
}

.scene__socle {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(480px, 94%);
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.58), transparent 66%);
  transform: translateX(-50%);
  filter: blur(8px);
}

.scene__etiquette {
  position: absolute;
  top: 25px;
  right: 9%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--bord-fort);
  border-radius: 999px;
  color: var(--texte);
  background: rgba(11, 18, 26, 0.75);
  box-shadow: var(--ombre-douce);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: flotter 5s ease-in-out infinite;
}

.scene__etiquette::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.carte-hero {
  position: absolute;
  width: clamp(180px, 22vw, 248px);
  aspect-ratio: 0.78;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--teinte-lueur, var(--accent)) 30%, transparent);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 35%),
    var(--teinte-fond, linear-gradient(145deg, #21313d, #0b1118));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 20px rgba(0, 0, 0, 0.2),
    0 3px 0 color-mix(in srgb, var(--teinte-lueur, var(--accent)) 18%, #000),
    0 28px 50px rgba(0, 0, 0, 0.48);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-sortie);
  animation: flotter 7s ease-in-out infinite;
}

.carte-hero::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  pointer-events: none;
}

.carte-hero--gauche {
  top: 35%;
  left: 1%;
  transform: rotateY(18deg) rotateZ(-9deg) translateZ(-20px);
  animation-delay: -2s;
}

.carte-hero--centre {
  top: 10%;
  left: 50%;
  z-index: 3;
  width: clamp(210px, 25vw, 286px);
  transform: translateX(-50%) rotateY(-3deg) rotateX(3deg) translateZ(45px);
  animation-delay: -4s;
}

.carte-hero--droite {
  top: 42%;
  right: 0;
  transform: rotateY(-18deg) rotateZ(8deg) translateZ(-30px);
  animation-delay: -1s;
}

.carte-hero:hover {
  animation-play-state: paused;
}

.carte-hero--gauche:hover {
  transform: rotateY(10deg) rotateZ(-5deg) translateZ(12px) translateY(-8px);
}

.carte-hero--centre:hover {
  transform: translateX(-50%) rotateY(0) rotateX(0) translateZ(68px) translateY(-8px);
}

.carte-hero--droite:hover {
  transform: rotateY(-10deg) rotateZ(4deg) translateZ(4px) translateY(-8px);
}

.carte-hero__haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--police-titre);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.carte-hero__code {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: var(--teinte-lueur, var(--accent));
  background: rgba(0, 0, 0, 0.16);
}

.carte-hero__medaillon {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  margin-top: 12px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--teinte-lueur, var(--accent)) 28%, transparent), transparent 62%),
    rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.carte-hero__medaillon::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 72%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.carte-hero__medaillon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 60%);
  transform: translateX(-100%);
  animation: balayer 6.5s ease-in-out infinite;
}

.carte-hero__emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(4.4rem, 7vw, 6.7rem);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.34));
  transform: translateZ(28px);
}

.carte-hero__nom {
  margin-top: 13px;
  font-family: var(--police-titre);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
}

.carte-hero__sous-titre {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene__medaillon-question {
  /* Les portraits sont désormais visibles : le badge « ? » ne doit plus
     recouvrir un visage. Il reste dans le DOM comme repère de la scène. */
  display: none;
}

.scene__note {
  display: none;
}

/* --------------------------------------------------------------------------
   6. Accueil — modes et thèmes
   -------------------------------------------------------------------------- */
.grille-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mode-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 24px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon-grand);
  color: var(--texte);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(18, 28, 39, 0.9), rgba(10, 16, 23, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--ombre-douce);
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-sortie),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.mode-carte::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--mode-couleur, var(--accent));
  opacity: 0.12;
  filter: blur(18px);
  transition: opacity 0.25s ease, transform 0.4s var(--ease-sortie);
}

.mode-carte::after {
  content: "→";
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--mode-couleur, var(--accent));
  font-size: 1.4rem;
  transition: transform 0.25s var(--ease-sortie);
}

.mode-carte:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--mode-couleur, var(--accent)) 38%, var(--bord));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 54px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--mode-couleur, var(--accent)) 12%, transparent);
}

.mode-carte:hover::before {
  opacity: 0.22;
  transform: translate(-12px, 12px) scale(1.15);
}

.mode-carte:hover::after {
  transform: translateX(5px);
}

.mode-carte--duel {
  --mode-couleur: var(--accent-2);
}

.mode-carte--mystere {
  --mode-couleur: #b895ff;
}

.mode-carte__numero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  color: var(--texte-faible);
  font-family: var(--police-titre);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mode-carte__numero span:last-child {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--mode-couleur, var(--accent)) 24%, var(--bord));
  border-radius: 12px;
  color: var(--mode-couleur, var(--accent));
  background: color-mix(in srgb, var(--mode-couleur, var(--accent)) 8%, transparent);
  font-size: 1.25rem;
}

.mode-carte h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.08;
}

.mode-carte p {
  max-width: 340px;
  margin-bottom: 18px;
  color: var(--texte-doux);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mode-carte__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 30px;
}

.mode-carte__tags span {
  padding: 4px 8px;
  border: 1px solid var(--bord);
  border-radius: 6px;
  color: var(--texte-faible);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Grille des univers */
.grille-themes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.theme-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 16px;
  border: 1px solid var(--bord);
  border-radius: 18px;
  color: var(--texte);
  background:
    radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--theme-accent) 18%, transparent), transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.065), transparent 45%),
    rgba(13, 21, 30, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.2s var(--ease-sortie),
    border-color 0.2s ease,
    background 0.2s ease;
}

.theme-carte:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--theme-accent) 42%, var(--bord));
}

.theme-carte.est-active {
  border-color: var(--theme-accent);
  background:
    radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--theme-accent) 28%, transparent), transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 45%),
    rgba(13, 21, 30, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 3px color-mix(in srgb, var(--theme-accent) 12%, transparent);
}

.theme-carte__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.theme-carte__emoji {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 35%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--theme-accent) 13%, transparent);
  font-size: 1.55rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.theme-carte__coche {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--bord);
  border-radius: 50%;
  color: transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.theme-carte.est-active .theme-carte__coche {
  color: #161009;
  border-color: var(--theme-accent);
  background: var(--theme-accent);
}

.theme-carte h3 {
  margin: 15px 0 3px;
  font-size: 1.04rem;
  line-height: 1.15;
}

.theme-carte__sous-titre {
  color: var(--texte-faible);
  font-family: var(--police-serif);
  font-size: 0.76rem;
  font-style: italic;
}

.theme-carte__apercu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 1.16rem;
  opacity: 0.78;
}

.theme-carte__apercu span:nth-child(n + 4) {
  display: none;
}

.theme-carte__compte {
  position: absolute;
  right: 16px;
  bottom: 15px;
  color: var(--texte-faible);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* Statistiques */
.bande-stats {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  border: 1px solid var(--bord);
  border-radius: 20px;
  background: var(--bord);
  overflow: hidden;
}

.bande-stats__intro,
.bande-stats__case {
  padding: 22px;
  background: rgba(10, 17, 24, 0.9);
}

.bande-stats__intro {
  background:
    radial-gradient(120% 100% at 0 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    rgba(10, 17, 24, 0.94);
}

.bande-stats__intro strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--police-titre);
  font-size: 1rem;
}

.bande-stats__intro p {
  margin: 0;
  color: var(--texte-faible);
  font-size: 0.82rem;
}

.bande-stats__valeur {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-family: var(--police-titre);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.bande-stats__case span:last-child {
  color: var(--texte-faible);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Appel à installer */
.bloc-installation {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, var(--accent-2) 22%, var(--bord));
  border-radius: var(--rayon-grand);
  background:
    radial-gradient(100% 150% at 100% 0%, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 50%),
    rgba(11, 19, 27, 0.84);
  overflow: hidden;
}

.bloc-installation::after {
  content: "⌂";
  position: absolute;
  right: 8%;
  top: 50%;
  color: color-mix(in srgb, var(--accent-2) 10%, transparent);
  font-family: var(--police-titre);
  font-size: 12rem;
  font-weight: 900;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.bloc-installation__texte {
  position: relative;
  z-index: 1;
}

.bloc-installation h2 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.bloc-installation p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--texte-doux);
  font-size: 0.9rem;
}

.bloc-installation__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, var(--largeur-max));
  margin: 0 auto;
  padding: 24px clamp(16px, 3.5vw, 52px) 38px;
  border-top: 1px solid var(--bord);
  color: var(--texte-faible);
  font-size: 0.76rem;
}

.footer p {
  margin: 0;
}

.footer__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   7. Configuration d'une partie
   -------------------------------------------------------------------------- */
.entete-page {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 34px;
}

.entete-page__retour {
  margin-bottom: 24px;
}

.entete-page h1 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 4.7vw, 4.6rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.entete-page p {
  max-width: 620px;
  margin: 0;
  color: var(--texte-doux);
}

.entete-page__sceau {
  display: grid;
  flex: 0 0 auto;
  width: clamp(76px, 10vw, 116px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--bord));
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    rgba(0, 0, 0, 0.18);
  font-size: clamp(2rem, 4vw, 3rem);
  transform: rotate(5deg);
}

.mise-en-page {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: 18px;
}

.panneau {
  border: 1px solid var(--bord);
  border-radius: var(--rayon-grand);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent 45%),
    rgba(12, 20, 29, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--ombre-douce);
}

.panneau--formulaire {
  padding: clamp(18px, 3vw, 32px);
}

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.groupe-champ {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.groupe-champ__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--texte);
  font-family: var(--police-titre);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.groupe-champ__aide {
  color: var(--texte-faible);
  font-family: var(--police-corps);
  font-size: 0.73rem;
  font-weight: 400;
}

.champ-texte {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--bord);
  border-radius: 12px;
  color: var(--texte);
  background: rgba(0, 0, 0, 0.22);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.champ-texte::placeholder {
  color: var(--texte-faible);
}

.champ-texte:focus {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--bord));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.deux-champs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.segment {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--bord);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
}

.segment label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--texte-doux);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
  transition: 0.18s ease;
}

.segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segment input:checked + label {
  color: #171008;
  border-color: color-mix(in srgb, var(--accent) 55%, white);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.segment input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.segment--trois {
  grid-auto-columns: 1fr;
}

.choix-cartes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.choix-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--bord);
  border-radius: 13px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.025);
  transition: 0.18s ease;
}

.choix-carte input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choix-carte:has(input:checked) {
  color: var(--texte);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--bord));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 80%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.choix-carte:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choix-carte__titre {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-family: var(--police-titre);
  font-size: 0.9rem;
  font-weight: 700;
}

.choix-carte__titre span {
  font-size: 1.15rem;
}

.choix-carte small {
  color: var(--texte-faible);
  font-size: 0.72rem;
  line-height: 1.4;
}

.choix-carte__check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--bord);
  border-radius: 50%;
  color: transparent;
  font-size: 0.58rem;
}

.choix-carte:has(input:checked) .choix-carte__check {
  color: #171008;
  border-color: var(--accent);
  background: var(--accent);
}

/* Interrupteur */
.ligne-bascule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--bord);
}

.ligne-bascule:first-child {
  border-top: 0;
}

.ligne-bascule__texte strong {
  display: block;
  margin-bottom: 2px;
  color: var(--texte);
  font-size: 0.87rem;
  font-weight: 650;
}

.ligne-bascule__texte small {
  display: block;
  color: var(--texte-faible);
  font-size: 0.72rem;
}

.bascule {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 27px;
}

.bascule input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bascule span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--bord-fort);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  transition: 0.2s ease;
}

.bascule span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #aebac7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: 0.2s var(--ease-sortie);
}

.bascule input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--bord));
  background: color-mix(in srgb, var(--accent) 80%, #2e2107);
}

.bascule input:checked + span::after {
  left: 22px;
  background: #fff8e7;
}

.bascule input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.actions-formulaire {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 3px;
}

.actions-formulaire__note {
  color: var(--texte-faible);
  font-size: 0.73rem;
}

/* Aperçu latéral */
.apercu {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apercu__scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon-grand);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 64%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 50%),
    rgba(10, 17, 24, 0.78);
  perspective: 1000px;
  overflow: hidden;
}

.apercu__scene::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 50%;
  transform: rotateX(58deg);
}

.apercu__carte {
  position: relative;
  z-index: 1;
  width: 170px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--bord));
  border-radius: 18px;
  background: linear-gradient(155deg, hsl(var(--teinte, 40) 45% 26%), hsl(var(--teinte, 40) 40% 10%));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45), 0 4px 0 rgba(0, 0, 0, 0.22);
  transform: rotateY(-6deg) rotateX(4deg) rotateZ(-2deg);
  transform-style: preserve-3d;
}

.apercu__emoji {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 4rem;
}

.apercu__nom {
  margin-top: 10px;
  font-family: var(--police-titre);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.apercu__legende {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--texte-faible);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.apercu__details {
  padding: 18px 20px;
}

.apercu__details h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.91rem;
}

.apercu__details ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apercu__details li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--texte-doux);
  font-size: 0.77rem;
  line-height: 1.45;
}

.apercu__details li::before {
  content: "◆";
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
  font-size: 0.48rem;
}

.selecteur-theme-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.selecteur-theme-mini button {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--bord);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.05rem;
  transition: 0.18s ease;
}

.selecteur-theme-mini button:hover {
  border-color: var(--theme-accent, var(--accent));
  transform: translateY(-2px);
}

.selecteur-theme-mini button[aria-pressed="true"] {
  border-color: var(--theme-accent, var(--accent));
  background: color-mix(in srgb, var(--theme-accent, var(--accent)) 15%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent, var(--accent)) 18%, transparent);
}

/* --------------------------------------------------------------------------
   8. Écran secret / anti-spoil
   -------------------------------------------------------------------------- */
.ecran-secret {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.ecran-secret__contenu {
  display: grid;
  flex: 1;
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 24px clamp(16px, 3.5vw, 52px) 56px;
  place-items: center;
}

.secret-panneau {
  width: min(100%, 1120px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-grand);
  background:
    radial-gradient(100% 100% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(9, 15, 22, 0.92);
  box-shadow: var(--ombre-douce);
}

.secret-panneau--verrou {
  display: flex;
  max-width: 640px;
  min-height: 480px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
}

.oeil-verrou {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--bord));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  font-size: 3.2rem;
}

.oeil-verrou::before,
.oeil-verrou::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  animation: pulsation 4s ease-in-out infinite;
}

.oeil-verrou::after {
  inset: -25px;
  animation-delay: -2s;
}

.secret-panneau--verrou h1 {
  max-width: 480px;
  margin-bottom: 13px;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  text-transform: uppercase;
}

.secret-panneau--verrou p {
  max-width: 420px;
  margin-bottom: 28px;
  color: var(--texte-doux);
}

.secret-panneau__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.secret-panneau__entete h1 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  text-transform: uppercase;
}

.secret-panneau__entete p {
  max-width: 620px;
  margin: 0;
  color: var(--texte-doux);
  font-size: 0.9rem;
}

.etapes-secret {
  display: flex;
  gap: 10px;
  color: var(--texte-faible);
  font-family: var(--police-titre);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.etapes-secret span {
  padding: 5px 8px;
  border: 1px solid var(--bord);
  border-radius: 6px;
}

.etapes-secret span.est-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--bord));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.onglets-secret {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bord);
}

.onglet-secret {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--texte-doux);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 650;
  transition: 0.18s ease;
}

.onglet-secret:hover {
  color: var(--texte);
  background: rgba(255, 255, 255, 0.05);
}

.onglet-secret[aria-selected="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--bord));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.secret-methode {
  animation: apparaitre 0.28s ease both;
}

.secret-methode--hasard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 8px;
  text-align: center;
}

.secret-methode--code {
  max-width: 560px;
  padding: 14px 0 8px;
}

.secret-grille {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: min(49vh, 480px);
  overflow: auto;
  padding: 4px 5px 12px;
  scrollbar-width: thin;
}

.mini-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--bord);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: 0.16s ease;
  text-align: left;
}

.mini-portrait:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--bord));
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.mini-portrait.est-choisi {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.mini-portrait__emoji {
  display: grid;
  aspect-ratio: 1.1;
  place-items: center;
  border-radius: 8px;
  background: var(--mini-fond, rgba(0, 0, 0, 0.2));
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.mini-portrait__nom {
  padding: 0 2px;
  color: var(--texte-doux);
  font-size: 0.65rem;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-portrait__code {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 1px 4px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.secret-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--bord));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 6%, rgba(0, 0, 0, 0.14));
}

.secret-selection__identite {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.secret-selection__emoji {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 1.8rem;
}

.secret-selection__nom {
  font-family: var(--police-titre);
  font-size: 0.96rem;
  font-weight: 700;
}

.secret-selection__aide {
  color: var(--texte-faible);
  font-size: 0.71rem;
}

.carte-tiree {
  position: relative;
  width: min(250px, 78vw);
  margin: 8px auto 22px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--bord));
  border-radius: 20px;
  background: linear-gradient(155deg, hsl(var(--teinte, 40) 50% 28%), hsl(var(--teinte, 40) 40% 10%));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.46), 0 4px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(-1.5deg);
}

.carte-tiree::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  pointer-events: none;
}

.carte-tiree__emoji {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 5.2rem;
  transition: filter 0.25s ease;
}

.carte-tiree.est-masquee .carte-tiree__emoji {
  filter: blur(16px) saturate(0.2);
  transform: scale(0.94);
}

.carte-tiree__nom {
  margin-top: 10px;
  font-family: var(--police-titre);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.carte-tiree__code {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.bouton-reveler {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  user-select: none;
  touch-action: none;
}

.bouton-reveler.est-presse {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--bord));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.aide-code {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--bord);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.17);
  color: var(--texte-doux);
  font-size: 0.8rem;
  line-height: 1.6;
}

.aide-code strong {
  color: var(--texte);
}

.champ-code {
  max-width: 230px;
  font-family: var(--police-titre);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.erreur-code {
  min-height: 20px;
  margin-top: 7px;
  color: #ff9d9d;
  font-size: 0.74rem;
}

.secret-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--bord);
}

.secret-pied__note {
  max-width: 420px;
  color: var(--texte-faible);
  font-size: 0.73rem;
}

.secret-pied__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   9. Écran de jeu
   -------------------------------------------------------------------------- */
.jeu {
  min-height: 100dvh;
}

.jeu__barre {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(100%, var(--largeur-max));
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px) 0;
}

.jeu__barre-gauche {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.jeu__mode {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.jeu__mode-emoji {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1rem;
}

.jeu__mode-texte {
  min-width: 0;
}

.jeu__mode-texte strong {
  display: block;
  overflow: hidden;
  font-family: var(--police-titre);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jeu__mode-texte span {
  display: block;
  overflow: hidden;
  color: var(--texte-faible);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jeu__barre-centre {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.jeu__barre-droite {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hud-pastille {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
}

.hud-pastille strong {
  color: var(--texte);
  font-family: var(--police-titre);
  font-size: 0.86rem;
}

.hud-pastille__pastille {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.timer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.timer__icone {
  color: var(--texte-faible);
  font-size: 0.95rem;
}

.timer__valeur {
  min-width: 39px;
  color: var(--texte);
  font-family: var(--police-titre);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timer__barre {
  position: absolute;
  right: 9px;
  bottom: 4px;
  left: 9px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.timer__barre span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--accent-2);
  transform-origin: left;
}

.timer.est-urgent {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.08);
  animation: vibrer 0.85s ease-in-out infinite;
}

.timer.est-urgent .timer__valeur,
.timer.est-urgent .timer__icone {
  color: #ff9c9c;
}

.timer.est-urgent .timer__barre span {
  background: var(--danger);
}

.timer--chrono {
  border-color: color-mix(in srgb, var(--accent-2) 28%, var(--bord));
}

.jeu__corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  align-items: start;
  gap: clamp(14px, 2vw, 24px);
  width: min(100%, var(--largeur-max));
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 32px) 44px;
}

.zone-plateau {
  min-width: 0;
}

.plateau-panneau {
  position: relative;
  padding: clamp(13px, 1.9vw, 22px);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-grand);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), transparent 38%),
    rgba(10, 17, 25, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--ombre-douce);
  overflow: hidden;
}

.plateau-panneau::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 18%;
  width: 420px;
  height: 280px;
  border-radius: 50%;
  background: var(--lueur);
  filter: blur(100px);
  opacity: 0.06;
  pointer-events: none;
}

.plateau-entete {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.plateau-entete__titre {
  min-width: 0;
}

.plateau-entete__titre h2 {
  margin-bottom: 3px;
  overflow: hidden;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plateau-entete__titre p {
  margin: 0;
  color: var(--texte-faible);
  font-size: 0.7rem;
}

.plateau-entete__outils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.interrupteur-outil {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 0 9px;
  border: 1px solid var(--bord);
  border-radius: 8px;
  color: var(--texte-faible);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.68rem;
  font-weight: 600;
  transition: 0.16s ease;
}

.interrupteur-outil:hover {
  color: var(--texte);
  border-color: var(--bord-fort);
}

.interrupteur-outil.est-actif {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--bord));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.plateau-scene {
  position: relative;
  perspective: 1900px;
}

.plateau {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(7px, 1vw, 12px);
  transform: rotateX(2.5deg);
  transform-style: preserve-3d;
  transform-origin: top center;
}

.carte-portrait {
  position: relative;
  min-width: 0;
  transform-style: preserve-3d;
}

.plateau.est-nouveau .carte-portrait {
  animation: distribuer 0.42s var(--ease-sortie) both;
  animation-delay: var(--delai, 0ms);
}

.carte-portrait__principal {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.carte-portrait__surface {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 0.79;
  border: 1px solid color-mix(in srgb, var(--teinte-lueur, var(--accent)) 26%, rgba(255, 255, 255, 0.12));
  border-radius: 15px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), transparent 38%),
    var(--teinte-fond, linear-gradient(150deg, #273744, #0b1118));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 18px rgba(0, 0, 0, 0.15),
    0 3px 0 color-mix(in srgb, var(--teinte-lueur, var(--accent)) 13%, #000),
    0 11px 20px rgba(0, 0, 0, 0.29);
  overflow: hidden;
  transition:
    transform 0.22s var(--ease-sortie),
    box-shadow 0.22s ease,
    filter 0.22s ease,
    opacity 0.22s ease;
  transform-origin: bottom center;
}

.carte-portrait__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--teinte-lueur, var(--accent)) 26%, transparent), transparent 56%),
    linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.1) 46%, transparent 58%);
  pointer-events: none;
}

.carte-portrait:hover .carte-portrait__surface {
  transform: translateY(-5px) rotateX(-4deg) translateZ(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -8px 18px rgba(0, 0, 0, 0.12),
    0 4px 0 color-mix(in srgb, var(--teinte-lueur, var(--accent)) 20%, #000),
    0 22px 32px rgba(0, 0, 0, 0.38),
    0 0 22px color-mix(in srgb, var(--teinte-lueur, var(--accent)) 15%, transparent);
}

.carte-portrait__code {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--police-titre);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.carte-portrait__emoji {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  place-items: center;
  padding: 16px 7px 3px;
  font-size: clamp(1.75rem, 3vw, 3.3rem);
  line-height: 1;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.32));
  transform: translateZ(14px);
  transition: transform 0.22s var(--ease-sortie);
}

.carte-portrait:hover .carte-portrait__emoji {
  transform: translateZ(22px) scale(1.05);
}

.carte-portrait__nom {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 7px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fbf7ed;
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--police-titre);
  font-size: clamp(0.55rem, 0.88vw, 0.72rem);
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.carte-portrait__action {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(7, 12, 17, 0.66);
  backdrop-filter: blur(5px);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translateZ(50px) translateY(-2px);
  transform-style: flat;
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.carte-portrait__action--eliminer {
  top: 6px;
  right: 6px;
}

.carte-portrait__action--fiche {
  right: 6px;
  bottom: 6px;
  font-size: 0.62rem;
}

.carte-portrait:hover .carte-portrait__action,
.carte-portrait__action:focus-visible {
  opacity: 1;
  transform: translateZ(50px);
}

.carte-portrait__action--eliminer:hover {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.85);
}

.carte-portrait.est-eliminee .carte-portrait__surface {
  filter: grayscale(1) brightness(0.62);
  opacity: 0.48;
  transform: scale(0.965) translateZ(-6px);
}

.carte-portrait.est-eliminee .carte-portrait__surface::after {
  content: "✕";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(4, 7, 10, 0.23);
  font-family: var(--police-titre);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carte-portrait.est-eliminee:hover .carte-portrait__surface {
  opacity: 0.7;
  filter: grayscale(0.75) brightness(0.8);
  transform: scale(0.99);
}

.carte-portrait.est-selectionnee .carte-portrait__surface {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 30px color-mix(in srgb, var(--accent) 22%, transparent);
}

.carte-portrait.est-recemment-eliminee .carte-portrait__surface {
  animation: elimination 0.48s var(--ease-sortie);
}

.carte-portrait.est-indice .carte-portrait__surface {
  animation: pulsationCarte 1.7s ease-in-out infinite;
}

.plateau-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 14px;
  color: var(--texte-faible);
  font-size: 0.69rem;
}

.plateau-pied__legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.plateau-pied__legende span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legende-point {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.legende-point--gris {
  background: #65717d;
}

.plateau-pied__compte {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--bord);
  border-radius: 7px;
  color: var(--texte-doux);
  background: rgba(0, 0, 0, 0.16);
}

.plateau-pied__compte strong {
  color: var(--accent);
  font-family: var(--police-titre);
  font-size: 0.88rem;
}

.sceau-reponse {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 12;
  display: grid;
  width: clamp(110px, 18vw, 170px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  color: var(--succes);
  background: rgba(7, 16, 15, 0.76);
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.18), 0 20px 60px rgba(0, 0, 0, 0.4);
  font-family: var(--police-titre);
  font-size: clamp(1.55rem, 3.4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.35);
  pointer-events: none;
}

.sceau-reponse--non {
  color: #ff8585;
}

.sceau-reponse.est-visible {
  animation: sceau 1.3s var(--ease-sortie) both;
}

/* Panneau latéral */
.jeu__lateral {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.carte-panneau {
  padding: 17px;
  border: 1px solid var(--bord);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent 50%),
    rgba(11, 18, 26, 0.83);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.carte-panneau__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.carte-panneau__titre {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--texte-doux);
  font-family: var(--police-titre);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carte-panneau__titre span {
  color: var(--accent);
  font-size: 0.85rem;
}

.tour-actuel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tour-actuel__jeton {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--bord));
  border-radius: 14px;
  color: #161008;
  background: var(--accent);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 40%, #32200a), 0 12px 24px rgba(0, 0, 0, 0.28);
  font-family: var(--police-titre);
  font-size: 1.08rem;
  font-weight: 900;
}

.tour-actuel__texte strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--police-titre);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.tour-actuel__texte span {
  display: block;
  color: var(--texte-faible);
  font-size: 0.72rem;
  line-height: 1.35;
}

.separateur {
  height: 1px;
  margin: 13px 0;
  background: var(--bord);
}

.compteurs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.compteur {
  padding: 10px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.compteur__valeur {
  display: block;
  margin-bottom: 1px;
  color: var(--texte);
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.compteur__label {
  color: var(--texte-faible);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.objectif-texte {
  margin: 0;
  color: var(--texte-doux);
  font-size: 0.79rem;
  line-height: 1.5;
}

.objectif-texte strong {
  color: var(--texte);
}

.vies {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  font-size: 1rem;
}

.vie {
  color: var(--danger);
  filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.25));
}

.vie.est-perdue {
  color: rgba(255, 255, 255, 0.16);
  filter: none;
}

.jauge {
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.jauge span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.4s var(--ease-sortie);
}

.secret-joueur {
  display: flex;
  align-items: center;
  gap: 11px;
}

.secret-joueur__emoji {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--bord));
  border-radius: 13px;
  background: linear-gradient(150deg, hsl(var(--teinte, 40) 45% 25%), hsl(var(--teinte, 40) 40% 10%));
  font-size: 1.85rem;
  filter: blur(0);
  transition: filter 0.2s ease;
}

.secret-joueur__emoji.est-masque {
  filter: blur(9px) saturate(0.25);
}

.secret-joueur__texte {
  min-width: 0;
}

.secret-joueur__label {
  display: block;
  margin-bottom: 2px;
  color: var(--texte-faible);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secret-joueur__nom {
  display: block;
  overflow: hidden;
  font-family: var(--police-titre);
  font-size: 0.87rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bouton-oeil {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--bord);
  border-radius: 8px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.85rem;
  user-select: none;
  touch-action: none;
}

.bouton-oeil.est-presse {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--bord));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.secret-joueur__aide {
  margin: 8px 0 0;
  color: var(--texte-faible);
  font-size: 0.66rem;
}

/* Choix de question */
.question-panneau {
  position: relative;
  overflow: hidden;
}

.question-panneau::before {
  content: "?";
  position: absolute;
  right: -8px;
  bottom: -42px;
  color: color-mix(in srgb, var(--accent) 6%, transparent);
  font-family: var(--police-titre);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.question-panneau > * {
  position: relative;
  z-index: 1;
}

.question-panneau__titre {
  margin-bottom: 5px;
  font-size: 1.02rem;
}

.question-panneau__aide {
  margin-bottom: 14px;
  color: var(--texte-faible);
  font-size: 0.73rem;
  line-height: 1.45;
}

.suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 11px;
}

.suggestion-question {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 41px;
  padding: 7px 10px;
  border: 1px solid var(--bord);
  border-radius: 9px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: left;
  transition: 0.16s ease;
}

.suggestion-question:hover {
  color: var(--texte);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--bord));
  background: color-mix(in srgb, var(--accent) 6%, rgba(255, 255, 255, 0.03));
  transform: translateX(2px);
}

.suggestion-question__icone {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
}

.suggestion-question__texte {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-panneau__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.derniere-reponse {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.derniere-reponse__sceau {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(98, 230, 176, 0.36);
  border-radius: 50%;
  color: var(--succes);
  background: rgba(98, 230, 176, 0.08);
  font-family: var(--police-titre);
  font-size: 0.71rem;
  font-weight: 900;
  transform: rotate(-6deg);
}

.derniere-reponse__sceau--non {
  color: #ff8e8e;
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(255, 107, 107, 0.08);
}

.derniere-reponse__texte {
  min-width: 0;
}

.derniere-reponse__question {
  display: block;
  overflow: hidden;
  color: var(--texte-doux);
  font-size: 0.7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.derniere-reponse__detail {
  display: block;
  margin-top: 2px;
  color: var(--texte-faible);
  font-size: 0.63rem;
}

.actions-tour {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.note-tour {
  margin: 9px 0 0;
  color: var(--texte-faible);
  font-size: 0.66rem;
  line-height: 1.44;
}

.pc-jauge {
  margin-top: 8px;
}

.pc-jauge__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--texte-faible);
  font-size: 0.67rem;
}

.pc-jauge__entete strong {
  color: var(--texte-doux);
  font-family: var(--police-titre);
  font-size: 0.75rem;
}

/* Barre mobile du jeu */
.barre-mobile {
  display: none;
}

/* Passation de tour */
.passage-tour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 30px 18px 50px;
  text-align: center;
}

.passage-tour__jeton {
  display: grid;
  width: 100px;
  height: 100px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--bord));
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 45%),
    var(--accent);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--accent) 38%, #2b1b08), 0 24px 50px rgba(0, 0, 0, 0.4);
  color: #171008;
  font-family: var(--police-titre);
  font-size: 2.2rem;
  font-weight: 900;
  transform: rotate(-4deg);
}

.passage-tour h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.passage-tour p {
  max-width: 440px;
  margin-bottom: 26px;
  color: var(--texte-doux);
}

/* --------------------------------------------------------------------------
   10. Modales
   -------------------------------------------------------------------------- */
.calque-modale {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
}

.calque-modale[hidden] {
  display: none !important;
}

.modale {
  position: relative;
  display: flex;
  width: min(100%, 680px);
  max-height: min(90dvh, 900px);
  flex-direction: column;
  border: 1px solid var(--bord-fort);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.075), transparent 36%),
    rgba(10, 17, 25, 0.97);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 34px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: monterModale 0.24s var(--ease-sortie) both;
}

.modale--large {
  width: min(100%, 880px);
}

.modale--etroite {
  width: min(100%, 510px);
}

.modale--pleine {
  width: min(100%, 1060px);
}

.modale__fond {
  position: fixed;
  inset: 0;
  z-index: -1;
  border: 0;
  background: rgba(2, 5, 8, 0.72);
  backdrop-filter: blur(9px);
  animation: apparaitre 0.2s ease both;
}

.modale__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--bord);
}

.modale__entete h2 {
  margin-bottom: 3px;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.05;
}

.modale__entete p {
  margin: 0;
  color: var(--texte-faible);
  font-size: 0.75rem;
}

.modale__fermer {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--bord);
  border-radius: 9px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.2rem;
  line-height: 1;
}

.modale__fermer:hover {
  color: var(--texte);
  background: rgba(255, 255, 255, 0.08);
}

.modale__corps {
  min-height: 0;
  padding: 20px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.modale__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 22px 20px;
  border-top: 1px solid var(--bord);
}

.modale__pied--entre {
  justify-content: space-between;
}

.modale__note {
  margin-right: auto;
  color: var(--texte-faible);
  font-size: 0.7rem;
  line-height: 1.4;
}

.question-annonce {
  margin: 4px 0 22px;
  color: var(--texte);
  font-family: var(--police-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.28;
  text-align: center;
}

.question-annonce::before,
.question-annonce::after {
  color: var(--accent);
  font-family: var(--police-titre);
  font-style: normal;
  font-weight: 800;
}

.question-annonce::before {
  content: "« ";
}

.question-annonce::after {
  content: " »";
}

.reponse-boutons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reponse-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 112px;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--bord);
  border-radius: 16px;
  color: var(--texte);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.03);
  font-family: var(--police-titre);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: 0.2s var(--ease-sortie);
}

.reponse-btn small {
  color: var(--texte-faible);
  font-family: var(--police-corps);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.reponse-btn:hover {
  transform: translateY(-3px);
}

.reponse-btn--oui:hover {
  border-color: rgba(98, 230, 176, 0.48);
  background-color: rgba(98, 230, 176, 0.08);
  box-shadow: 0 12px 30px rgba(98, 230, 176, 0.1);
}

.reponse-btn--non:hover {
  border-color: rgba(255, 107, 107, 0.44);
  background-color: rgba(255, 107, 107, 0.07);
}

.reponse-btn__symbole {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
}

.reponse-btn--oui .reponse-btn__symbole {
  color: var(--succes);
}

.reponse-btn--non .reponse-btn__symbole {
  color: #ff8d8d;
}

.dialogue-pc {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--bord);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.dialogue-pc__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent-2) 26%, var(--bord));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 9%, transparent);
  font-size: 1.2rem;
}

.dialogue-pc__texte strong {
  display: block;
  font-size: 0.83rem;
}

.dialogue-pc__texte span {
  color: var(--texte-faible);
  font-size: 0.72rem;
}

/* Fiche personnage */
.fiche-personnage {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: start;
}

.fiche-personnage__portrait {
  position: relative;
  display: grid;
  aspect-ratio: 0.82;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--bord));
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    linear-gradient(150deg, hsl(var(--teinte, 40) 43% 24%), hsl(var(--teinte, 40) 38% 9%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), 0 15px 30px rgba(0, 0, 0, 0.3);
  font-size: 4.6rem;
  overflow: hidden;
}

.fiche-personnage__portrait span {
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.3));
}

.fiche-personnage__code {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--police-titre);
  font-size: 0.55rem;
}

.fiche-personnage__entete {
  margin-bottom: 15px;
}

.fiche-personnage__entete h3 {
  margin-bottom: 3px;
  font-size: 1.45rem;
}

.fiche-personnage__entete p {
  margin: 0;
  color: var(--texte-faible);
  font-size: 0.75rem;
}

.liste-attributs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attribut-fiche {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--bord);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
}

.attribut-fiche__icone {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.73rem;
}

.attribut-fiche__texte {
  min-width: 0;
  line-height: 1.2;
}

.attribut-fiche__nom {
  display: block;
  color: var(--texte-faible);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.attribut-fiche__valeur {
  display: block;
  overflow: hidden;
  color: var(--texte-doux);
  font-size: 0.73rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attribut-fiche__valeur--oui {
  color: var(--succes);
}

.attribut-fiche__valeur--non {
  color: #d58b8b;
}

/* Choix de question en modale */
.groupes-questions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.groupe-questions__titre {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--texte-faible);
  font-family: var(--police-titre);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.groupe-questions__titre span {
  font-size: 0.84rem;
}

.grille-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.bouton-question {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid var(--bord);
  border-radius: 9px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.024);
  font-size: 0.76rem;
  line-height: 1.3;
  text-align: left;
  transition: 0.16s ease;
}

.bouton-question:hover {
  color: var(--texte);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--bord));
  background: color-mix(in srgb, var(--accent) 6%, rgba(255, 255, 255, 0.025));
}

.bouton-question:disabled {
  opacity: 0.35;
}

.bouton-question__icone {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.86rem;
}

/* Deviner */
.grille-devine {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  max-height: 54vh;
  padding: 4px;
  overflow: auto;
  scrollbar-width: thin;
}

.devine-carte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: 0.16s ease;
}

.devine-carte:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--bord));
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.devine-carte.est-choisie {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
}

.devine-carte.est-eliminee {
  opacity: 0.4;
}

.devine-carte__emoji {
  display: grid;
  aspect-ratio: 1.1;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.17);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.devine-carte__nom {
  overflow: hidden;
  color: var(--texte-doux);
  font-size: 0.6rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.devine-selection {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 23%, var(--bord));
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 5%, rgba(0, 0, 0, 0.12));
  font-size: 0.8rem;
}

.devine-selection__emoji {
  font-size: 1.5rem;
}

/* Journal */
.journal-resume {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 17px;
}

.journal-groupe {
  margin-bottom: 20px;
}

.journal-groupe:last-child {
  margin-bottom: 0;
}

.journal-groupe__titre {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--texte-faible);
  font-family: var(--police-titre);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-groupe__titre::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bord);
}

.journal-liste {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.journal-ligne {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--bord);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.journal-ligne--info {
  border-color: transparent;
  background: transparent;
  color: var(--texte-faible);
  font-size: 0.71rem;
  font-style: italic;
  padding: 4px 2px;
}

.journal-ligne--annonce {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--bord));
  background: color-mix(in srgb, var(--accent) 4%, rgba(255, 255, 255, 0.02));
}

.journal-ligne__numero {
  flex: 0 0 auto;
  min-width: 22px;
  color: var(--texte-faible);
  font-family: var(--police-titre);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.journal-ligne__corps {
  min-width: 0;
  flex: 1;
}

.journal-ligne__auteur {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 2px;
  color: var(--texte-faible);
  font-size: 0.62rem;
}

.journal-ligne__auteur strong {
  color: var(--texte-doux);
  font-weight: 650;
}

.journal-ligne__question {
  margin: 0;
  color: var(--texte-doux);
  font-size: 0.76rem;
  line-height: 1.4;
}

.journal-ligne__reponse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--police-titre);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journal-ligne__reponse--oui {
  color: var(--succes);
  background: rgba(98, 230, 176, 0.09);
  border: 1px solid rgba(98, 230, 176, 0.2);
}

.journal-ligne__reponse--non {
  color: #ff9a9a;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.journal-vide {
  padding: 30px;
  color: var(--texte-faible);
  font-family: var(--police-serif);
  font-style: italic;
  text-align: center;
}

/* Aide */
.aide-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aide-bloc {
  padding: 15px;
  border: 1px solid var(--bord);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.aide-bloc h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.92rem;
}

.aide-bloc p,
.aide-bloc li {
  color: var(--texte-doux);
  font-size: 0.77rem;
  line-height: 1.55;
}

.aide-bloc p:last-child {
  margin-bottom: 0;
}

.aide-bloc ul {
  margin: 0;
  padding-left: 16px;
}

.aide-bloc li + li {
  margin-top: 4px;
}

.aide-raccourcis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.touche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 23px;
  padding: 0 6px;
  border: 1px solid var(--bord-fort);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--texte-doux);
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--police-titre);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Confirmation */
.confirmation-texte {
  margin: 0 0 22px;
  color: var(--texte-doux);
  font-size: 0.92rem;
  line-height: 1.6;
}

.confirmation-texte strong {
  color: var(--texte);
}

/* --------------------------------------------------------------------------
   11. Résultats
   -------------------------------------------------------------------------- */
.ecran-resultat {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.resultat-contenu {
  display: flex;
  flex: 1;
  width: min(100%, 1040px);
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 26px clamp(16px, 3.5vw, 42px) 50px;
}

.resultat-banniere {
  position: relative;
  padding: clamp(25px, 4vw, 44px);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-grand);
  background:
    radial-gradient(100% 100% at 50% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 64%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 40%),
    rgba(10, 17, 24, 0.9);
  box-shadow: var(--ombre-douce);
  text-align: center;
  overflow: hidden;
  animation: apparaitreResultat 0.55s var(--ease-sortie) both;
}

.resultat-banniere--perdu {
  animation: apparaitreDefaite 0.7s var(--ease-sortie) both;
}

.revelation-carte {
  animation: apparaitre 0.5s ease both;
}

.resultat-banniere::before,
.resultat-banniere::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.resultat-banniere::before {
  top: -110px;
  left: -60px;
}

.resultat-banniere::after {
  right: -70px;
  bottom: -130px;
}

.resultat-banniere__sceau {
  display: grid;
  width: clamp(74px, 9vw, 96px);
  aspect-ratio: 1;
  margin: 0 auto 17px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--bord));
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.38), transparent 40%),
    var(--accent);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--accent) 38%, #2e1c08), 0 18px 34px rgba(0, 0, 0, 0.28);
  color: #1a1208;
  font-size: 2rem;
  transform: rotate(-5deg);
}

.resultat-banniere--perdu .resultat-banniere__sceau {
  background: #54616e;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 7px 0 #2a323b, 0 18px 34px rgba(0, 0, 0, 0.28);
  color: #f2e9dc;
}

.resultat-banniere h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 5.7vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -0.045em;
}

.resultat-banniere__raison {
  max-width: 600px;
  margin: 0 auto;
  color: var(--texte-doux);
  font-family: var(--police-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-style: italic;
  line-height: 1.5;
}

.score-final {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 21px 0 0;
  font-family: var(--police-titre);
}

.score-final__chiffre {
  display: grid;
  min-width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--bord);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 1.3rem;
  font-weight: 800;
}

.score-final__chiffre--gagnant {
  color: #171008;
  border-color: var(--accent);
  background: var(--accent);
}

.score-final__nom {
  margin-left: 4px;
  color: var(--texte-doux);
  font-family: var(--police-corps);
  font-size: 0.77rem;
}

.score-final__milieu {
  color: var(--texte-faible);
}

.resultat-revelations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.revelation-carte {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--bord);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.revelation-carte__emoji {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: linear-gradient(150deg, hsl(var(--teinte, 40) 45% 25%), hsl(var(--teinte, 40) 38% 9%));
  font-size: 2.1rem;
}

.revelation-carte__label {
  display: block;
  margin-bottom: 2px;
  color: var(--texte-faible);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.revelation-carte__nom {
  display: block;
  font-family: var(--police-titre);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.resultat-mensonge {
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--bord));
  border-radius: 10px;
  color: var(--texte-doux);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: left;
}

.resultat-mensonge strong {
  color: var(--accent);
}

.resultat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.resultat-actions .btn--fantome {
  color: var(--texte-faible);
}

.resultat-serie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--texte-faible);
  font-size: 0.7rem;
}

.resultat-serie strong {
  color: var(--texte-doux);
}

/* Confettis */
.zone-confettis {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: tomber 2.9s linear forwards;
}

/* --------------------------------------------------------------------------
   12. Toasts, chargement, erreurs
   -------------------------------------------------------------------------- */
.zone-toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--bord-fort);
  border-radius: 11px;
  color: var(--texte-doux);
  background: rgba(14, 23, 33, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  font-size: 0.77rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: 0.22s var(--ease-sortie);
}

.toast.est-visible {
  opacity: 1;
  transform: none;
}

.toast__icone {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent);
}

.toast--succes {
  border-color: rgba(98, 230, 176, 0.3);
}

.toast--succes .toast__icone {
  color: var(--succes);
}

.toast--erreur {
  border-color: rgba(255, 107, 107, 0.32);
}

.toast--erreur .toast__icone {
  color: #ff8c8c;
}

.chargement {
  display: grid;
  min-height: 100dvh;
  padding: 20px;
  place-items: center;
}

.chargement__carte {
  width: min(100%, 380px);
  padding: 32px;
  border: 1px solid var(--bord);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 45%),
    rgba(10, 17, 24, 0.9);
  box-shadow: var(--ombre-douce);
  text-align: center;
}

.chargement__question {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 21px;
  place-items: center;
  border-radius: 18px;
  color: #191108;
  background: var(--accent);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--accent) 40%, #2c1b08);
  font-family: var(--police-titre);
  font-size: 2.8rem;
  font-weight: 900;
  animation: flotter 2.4s ease-in-out infinite;
}

.chargement__carte h1 {
  margin-bottom: 16px;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.chargement__barre {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.chargement__barre span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: charger 1.4s ease-in-out infinite;
}

.chargement__texte {
  margin: 13px 0 0;
  color: var(--texte-faible);
  font-size: 0.73rem;
}

.erreur-chargement {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 20px;
  background: rgba(35, 15, 15, 0.75);
  text-align: center;
}

.erreur-chargement h1 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.erreur-chargement p {
  color: var(--texte-doux);
}

.sans-javascript {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  padding: 30px;
  place-content: center;
  background: #080d14;
  color: #f7f1e6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   13. Animations
   -------------------------------------------------------------------------- */
@keyframes respirer {
  from { transform: scale(1) translate3d(0, 0, 0); opacity: 0.12; }
  to { transform: scale(1.12) translate3d(3%, 2%, 0); opacity: 0.2; }
}

@keyframes flotter {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -11px; }
}

@keyframes balayer {
  0%, 65% { transform: translateX(-120%); }
  90%, 100% { transform: translateX(120%); }
}

@keyframes distribuer {
  from {
    opacity: 0;
    transform: translateY(16px) rotateX(-9deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes apparaitre {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes monterModale {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes pulsation {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

@keyframes pulsationCarte {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
}

@keyframes elimination {
  0% { transform: scale(1); }
  40% { transform: scale(1.04) rotateY(-4deg); }
  100% { transform: scale(0.965); }
}

@keyframes vibrer {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes sceau {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1.45); }
  18% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  76% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(0.95); }
}

@keyframes charger {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(190%); }
  100% { transform: translateX(310%); }
}

@keyframes tomber {
  0% { transform: translate3d(0, -30px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--derive, 40px), 105vh, 0) rotate(var(--rotation, 720deg)); opacity: 0.15; }
}

@keyframes apparaitreResultat {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes apparaitreDefaite {
  0% { opacity: 0; transform: translateY(18px) scale(0.985); }
  55% { opacity: 1; transform: translateY(-3px) scale(1.002); }
  100% { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr 0.9fr;
  }

  .scene {
    min-height: 510px;
  }

  .jeu__corps {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .carte-portrait__nom {
    font-size: 0.62rem;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 36px;
  }

  .hero__texte {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 11.2vw, 7.4rem);
  }

  .scene {
    min-height: 440px;
    max-width: 660px;
    width: 100%;
    margin: 10px auto 0;
  }

  .scene__note {
    display: none;
  }

  .jeu__corps {
    grid-template-columns: 1fr;
    padding-bottom: 96px;
  }

  .jeu__lateral {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .jeu__lateral > .carte-panneau:first-child {
    grid-column: 1 / -1;
  }

  .jeu__lateral .question-panneau {
    grid-column: 1 / -1;
  }

  .barre-mobile {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bord-fort);
    background: rgba(7, 12, 18, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.25);
  }

  .barre-mobile__info {
    min-width: 0;
    flex: 1;
  }

  .barre-mobile__info strong {
    display: block;
    overflow: hidden;
    font-family: var(--police-titre);
    font-size: 0.77rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .barre-mobile__info span {
    display: block;
    overflow: hidden;
    color: var(--texte-faible);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .barre-mobile__actions {
    display: flex;
    gap: 6px;
  }

  .barre-mobile .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .barre-mobile .btn--primaire {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 5px 14px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 900px) {
  .bandeau {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .bandeau__actions .btn--texte-large {
    display: none;
  }

  .grille-modes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mode-carte {
    min-height: 210px;
  }

  .mode-carte__numero {
    margin-bottom: 18px;
  }

  .mode-carte p {
    max-width: 560px;
  }

  .grille-themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entete-section {
    align-items: start;
    flex-direction: column;
    gap: 9px;
    margin-top: 58px;
  }

  .bande-stats {
    grid-template-columns: 1fr 1fr;
  }

  .bande-stats__intro {
    grid-column: 1 / -1;
  }

  .bloc-installation {
    grid-template-columns: 1fr;
  }

  .bloc-installation__actions {
    justify-content: flex-start;
  }

  .mise-en-page {
    grid-template-columns: 1fr;
  }

  .apercu {
    position: static;
    order: 2;
  }

  .apercu__scene {
    min-height: 220px;
  }

  .apercu__carte {
    width: 138px;
  }

  .apercu__emoji {
    font-size: 3.2rem;
  }

  .secret-grille {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
  }

  .bandeau--jeu {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .jeu__barre {
    flex-wrap: wrap;
    padding-top: 12px;
  }

  .jeu__barre-centre {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .jeu__barre-droite {
    margin-left: auto;
  }

  .jeu__mode-texte span {
    display: none;
  }

  .entete-page {
    margin-top: 10px;
  }

  .entete-page__sceau {
    display: none;
  }

  .resultat-revelations {
    grid-template-columns: 1fr;
  }

  .fiche-personnage {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    padding-bottom: 36px;
  }

  .marque__texte small {
    display: none;
  }

  .marque__cube {
    width: 39px;
    height: 39px;
    font-size: 1.55rem;
    border-radius: 11px;
  }

  .marque__texte strong {
    font-size: 0.86rem;
  }

  .bandeau__actions .btn--fantome {
    min-width: 38px;
    padding: 0 9px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .hero__description {
    font-size: 0.94rem;
  }

  .scene {
    min-height: 370px;
  }

  .carte-hero {
    width: clamp(140px, 30vw, 180px);
    padding: 9px;
    border-radius: 16px;
  }

  .carte-hero--centre {
    width: clamp(165px, 36vw, 210px);
  }

  .carte-hero__emoji {
    font-size: clamp(3rem, 10vw, 4.2rem);
  }

  .carte-hero__nom {
    font-size: 0.75rem;
    margin-top: 8px;
  }

  .carte-hero__sous-titre {
    font-size: 0.55rem;
  }

  .scene__medaillon-question {
    width: 64px;
    font-size: 2.1rem;
  }

  .scene__etiquette {
    right: 2%;
    top: 12px;
    font-size: 0.58rem;
  }

  .bande-stats {
    margin-top: 44px;
  }

  .bande-stats__valeur {
    font-size: 1.4rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .deux-champs {
    grid-template-columns: 1fr;
  }

  .choix-cartes {
    grid-template-columns: 1fr;
  }

  .choix-carte {
    min-height: 78px;
  }

  .panneau--formulaire {
    padding: 17px;
  }

  .secret-panneau {
    padding: 15px;
  }

  .secret-panneau--verrou {
    min-height: 440px;
    padding: 28px 20px;
  }

  .secret-panneau__entete {
    flex-direction: column;
    gap: 13px;
  }

  .etapes-secret {
    align-self: flex-start;
  }

  .secret-pied {
    flex-direction: column;
    align-items: stretch;
  }

  .secret-pied__actions {
    justify-content: stretch;
  }

  .secret-pied__actions .btn {
    flex: 1;
  }

  .secret-selection {
    flex-direction: column;
    align-items: stretch;
  }

  .secret-selection .btn {
    width: 100%;
  }

  .secret-grille {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .mini-portrait__nom {
    font-size: 0.58rem;
  }

  .plateau {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    transform: none;
  }

  .carte-portrait__surface {
    border-radius: 11px;
    aspect-ratio: 0.76;
  }

  .carte-portrait__emoji {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    padding-top: 16px;
  }

  .carte-portrait__nom {
    min-height: 30px;
    padding: 5px;
    font-size: clamp(0.5rem, 2.1vw, 0.61rem);
  }

  .carte-portrait__action {
    opacity: 1;
    transform: translateZ(50px);
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
  }

  .carte-portrait__action--fiche {
    display: none;
  }

  .carte-portrait__code {
    font-size: 0.4rem;
    padding: 1px 3px;
  }

  .plateau-panneau {
    padding: 11px;
    border-radius: 18px;
  }

  .plateau-entete {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .plateau-entete__outils {
    justify-content: flex-start;
  }

  .jeu__corps {
    padding: 13px 10px 100px;
    gap: 12px;
  }

  .jeu__barre {
    padding: 10px 10px 0;
    gap: 8px;
  }

  .jeu__mode-emoji {
    width: 31px;
    height: 31px;
  }

  .jeu__mode-texte strong {
    font-size: 0.74rem;
  }

  .jeu__barre-droite .btn--fantome {
    width: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
  }

  .jeu__barre-droite .btn--fantome .btn__icone {
    font-size: 1rem;
  }

  .hud-pastille {
    min-height: 33px;
    padding: 0 8px;
    font-size: 0.65rem;
  }

  .timer {
    min-height: 35px;
    min-width: 76px;
  }

  .timer__valeur {
    font-size: 0.8rem;
  }

  .jeu__lateral {
    grid-template-columns: 1fr;
  }

  .jeu__lateral .question-panneau {
    grid-column: auto;
  }

  .question-panneau .suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .suggestion-question {
    min-height: 46px;
  }

  .barre-mobile {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .barre-mobile__info {
    display: none;
  }

  .barre-mobile__actions {
    width: 100%;
  }

  .barre-mobile__actions .btn {
    flex: 1;
  }

  .calque-modale {
    align-items: end;
    padding: 0;
  }

  .modale {
    width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }

  .modale__entete {
    padding: 17px 16px 13px;
  }

  .modale__corps {
    padding: 16px;
  }

  .modale__pied {
    padding: 13px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .modale__fermer {
    width: 33px;
    height: 33px;
  }

  .question-annonce {
    margin-bottom: 18px;
    font-size: clamp(1.25rem, 5.6vw, 1.7rem);
  }

  .reponse-btn {
    min-height: 96px;
  }

  .reponse-boutons {
    gap: 7px;
  }

  .fiche-personnage {
    grid-template-columns: 105px 1fr;
    gap: 13px;
  }

  .fiche-personnage__portrait {
    font-size: 3rem;
    border-radius: 13px;
  }

  .fiche-personnage__entete h3 {
    font-size: 1.15rem;
  }

  .liste-attributs {
    grid-template-columns: 1fr;
  }

  .grille-questions {
    grid-template-columns: 1fr;
  }

  .grille-devine {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 48vh;
  }

  .aide-grille {
    grid-template-columns: 1fr;
  }

  .resultat-contenu {
    padding-top: 16px;
  }

  .resultat-banniere {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .resultat-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resultat-actions .btn {
    width: 100%;
  }

  .zone-toasts {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
  }

  .passage-tour {
    min-height: 55vh;
  }

  .passage-tour__jeton {
    width: 84px;
    height: 84px;
    font-size: 1.9rem;
  }

  .scene__halo {
    width: 320px;
  }
}

@media (max-width: 430px) {
  .page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .bandeau {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 15.2vw, 4.2rem);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__promesses {
    gap: 6px 12px;
    font-size: 0.72rem;
  }

  .scene {
    min-height: 330px;
    transform: scale(0.96);
    margin-top: 0;
  }

  .carte-hero--gauche {
    top: 39%;
    left: 0;
  }

  .carte-hero--droite {
    top: 44%;
    right: 0;
  }

  .scene__etiquette {
    display: none;
  }

  .entete-section {
    margin-top: 46px;
  }

  .grille-themes {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .theme-carte {
    min-height: 162px;
    padding: 12px;
  }

  .theme-carte h3 {
    font-size: 0.86rem;
  }

  .theme-carte__sous-titre {
    font-size: 0.65rem;
  }

  .theme-carte__emoji {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .theme-carte__apercu {
    font-size: 1rem;
  }

  .bande-stats {
    grid-template-columns: 1fr;
  }

  .bande-stats__intro {
    grid-column: auto;
  }

  .bloc-installation {
    padding: 20px;
  }

  .bloc-installation__actions {
    flex-direction: column;
  }

  .bloc-installation__actions .btn {
    width: 100%;
  }

  .secret-grille {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plateau-entete__titre h2 {
    font-size: 1.03rem;
  }

  .carte-portrait__surface {
    border-radius: 9px;
  }

  .carte-portrait__emoji {
    font-size: 1.5rem;
  }

  .carte-portrait__nom {
    font-size: 0.48rem;
    min-height: 28px;
  }

  .carte-portrait.est-eliminee .carte-portrait__surface::after {
    font-size: 1.35rem;
  }

  .question-panneau .suggestions {
    grid-template-columns: 1fr;
  }

  .compteurs {
    grid-template-columns: 1fr 1fr;
  }

  .fiche-personnage {
    grid-template-columns: 80px 1fr;
  }

  .fiche-personnage__portrait {
    font-size: 2.2rem;
  }

  .revelation-carte {
    padding: 11px;
  }

  .revelation-carte__emoji {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .secret-panneau--verrou {
    min-height: auto;
    padding: 22px;
  }

  .oeil-verrou {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
    font-size: 2rem;
  }

  .secret-grille {
    max-height: 50vh;
  }

  .modale {
    max-height: 94dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .carte-portrait,
  .carte-hero,
  .scene__etiquette {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   15. Portraits illustrés locaux
   -------------------------------------------------------------------------- */

.portrait-art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.12);
}

.portrait-art__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--texte);
  font-size: inherit;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.portrait-art__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(1.04) contrast(1.025);
  border-radius: inherit;
}

.carte-hero__emoji {
  width: 100%;
  height: 100%;
  font-size: clamp(4.4rem, 7vw, 6.7rem);
}

.carte-hero__emoji .portrait-art__image {
  object-position: 50% 22%;
}

.carte-portrait__emoji {
  position: relative;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.carte-portrait__emoji .portrait-art__image {
  object-position: 50% 24%;
}

.carte-portrait:hover .carte-portrait__emoji .portrait-art__image {
  transform: scale(1.035);
  transition: transform 0.32s var(--ease-sortie);
}

.mini-portrait__emoji {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.mini-portrait__emoji .portrait-art__image {
  object-position: 50% 25%;
}

.apercu__emoji {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.apercu__emoji .portrait-art__image {
  object-position: 50% 24%;
}

.carte-tiree__emoji {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.carte-tiree__emoji .portrait-art__image {
  object-position: 50% 24%;
}

.secret-selection__emoji {
  position: relative;
  overflow: hidden;
  font-size: 1.8rem;
}

.secret-selection__emoji .portrait-art__image {
  object-position: 50% 25%;
}

.secret-joueur__emoji {
  position: relative;
  overflow: hidden;
  font-size: 1.85rem;
}

.secret-joueur__emoji .portrait-art__image {
  object-position: 50% 24%;
}

.fiche-personnage__portrait {
  overflow: hidden;
}

.fiche-personnage__portrait .portrait-art__image {
  object-position: 50% 22%;
}

.fiche-personnage__portrait .portrait-art {
  filter: none;
}

.fiche-personnage__code {
  z-index: 3;
}

.revelation-carte__emoji {
  position: relative;
  overflow: hidden;
}

.revelation-carte__emoji .portrait-art__image {
  object-position: 50% 24%;
}

.devine-carte__emoji {
  position: relative;
  overflow: hidden;
}

.devine-carte__emoji .portrait-art__image {
  object-position: 50% 24%;
}

.devine-selection__emoji {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--bord);
  border-radius: 10px;
  font-size: 1.45rem;
}

.devine-selection__emoji .portrait-art__image {
  object-position: 50% 24%;
}

/* Le portrait doit rester net même lorsque la carte est petite. */
.carte-portrait__surface {
  isolation: isolate;
}

/* --------------------------------------------------------------------------
   15 bis. Ajustements spécifiques aux vues générées
   -------------------------------------------------------------------------- */
.choix-cartes--quatre {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resultat-revelations--une {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
}

.entete-page__retour {
  margin-bottom: 18px;
}

.entete-page__sceau .icone-svg {
  width: clamp(28px, 4vw, 42px);
  height: clamp(28px, 4vw, 42px);
}

.mode-carte__numero .icone-svg {
  width: 21px;
  height: 21px;
}

.resultat-banniere__sceau .icone-svg {
  width: 2.4rem;
  height: 2.4rem;
}

.carte-panneau__titre .icone-svg {
  width: 15px;
  height: 15px;
}

.timer__icone .icone-svg {
  width: 16px;
  height: 16px;
}

.hud-pastille .icone-svg {
  width: 14px;
  height: 14px;
}

.journal-resume .puce .icone-svg {
  width: 13px;
  height: 13px;
}

.apercu__details h3 .icone-svg {
  width: 19px;
  height: 19px;
}

.apercu__details h3 {
  align-items: center;
}

.aide-bloc h3 .icone-svg {
  width: 18px;
  height: 18px;
}

.modale__note .icone-svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.bouton-oeil .icone-svg {
  width: 16px;
  height: 16px;
}

.bouton-reveler .icone-svg {
  width: 16px;
  height: 16px;
}

.bandeau__actions .btn .icone-svg {
  width: 17px;
  height: 17px;
}

.pastille-theme {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecran-accueil .bandeau,
.ecran-configuration .bandeau,
.ecran-secret .bandeau,
.ecran-resultat .bandeau {
  flex: 0 0 auto;
}

.secret-panneau .surtitre {
  justify-content: flex-start;
}

.secret-panneau--verrou .surtitre {
  justify-content: center;
}

.secret-grille details summary {
  font-size: 0.76rem;
}

.secret-grille {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.carte-panneau .chargement__barre {
  margin-top: 18px;
}

.modale code {
  padding: 1px 5px;
  border: 1px solid var(--bord);
  border-radius: 4px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9em;
}

/* Le fond de modale est un bouton : on neutralise son apparence native. */
button.modale__fond {
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

/* Empêche la sélection de texte pendant les appuis longs. */
[data-hold-cible] {
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 720px) {
  .choix-cartes--quatre {
    grid-template-columns: 1fr;
  }

  .resultat-revelations--une {
    grid-template-columns: 1fr;
  }

  .secret-panneau .surtitre {
    justify-content: flex-start;
  }

  .bandeau__actions .pastille-theme {
    display: none;
  }
}

