/* Polices hébergées avec l'outil (SIL Open Font License 1.1, voir polices/) : rien ne part chez un tiers, tout marche hors ligne. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../polices/cormorant-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../polices/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../polices/cormorant-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(../polices/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../polices/inter-latin-wght-normal.woff2) format('woff2'); }

/* Oreille — « salle de concert la nuit ». Un fond noir chaud, un seul accent or pâle. */
:root {
  --fond: #0d0b09; --fond-2: #120f0c; --surface: #17140f; --surface-2: #1e1a14; --trait: #2c261e; --trait-fort: #463c2e;
  --texte: #ede5d7; --doux: #a3978a; --discret: #6f665a;
  --or: #d2b679; --or-pale: #ead7aa; --or-voile: rgba(210, 182, 121, .12);
  --ambre: #c98a62; --ambre-voile: rgba(201, 138, 98, .14);
  --rayon: 16px; --rayon-s: 10px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--fond); }
body {
  margin: 0; min-height: 100dvh; color: var(--texte); background:
    radial-gradient(120% 60% at 50% -10%, #1d1810 0%, transparent 60%), var(--fond);
  font: 15px/1.55 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.page { max-width: 680px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.marque { font: 500 22px/1 var(--serif); letter-spacing: .02em; color: var(--texte); background: none; border: 0; padding: 0; cursor: pointer; }
.marque em { color: var(--or); font-style: italic; }
.synchro { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--discret); }
.synchro i { width: 6px; height: 6px; border-radius: 50%; background: var(--discret); }
.synchro[data-mode="base"] i { background: var(--or); box-shadow: 0 0 8px var(--or); }
.synchro[data-attente="1"] i { background: var(--ambre); box-shadow: none; }

/* Titres */
h1 { font: 400 40px/1.08 var(--serif); margin: 0 0 8px; letter-spacing: -.005em; }
h1 em { color: var(--or); }
.chapo { color: var(--doux); margin: 0 0 32px; max-width: 34em; }
h2 { font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--discret); margin: 32px 0 12px; }
h2 .aide { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.filet { height: 1px; background: linear-gradient(90deg, transparent, var(--trait-fort), transparent); margin: 32px 0; border: 0; }

/* Boutons */
button { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 22px;
  border-radius: var(--rayon); border: 1px solid var(--trait); background: var(--surface); color: var(--texte);
  font-weight: 500; cursor: pointer; transition: border-color .3s, background .3s, transform .1s, opacity .3s; touch-action: manipulation;
}
.btn:hover { border-color: var(--trait-fort); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .3; cursor: default; }
.btn.or { border-color: rgba(210, 182, 121, .55); color: var(--or-pale);
  background: linear-gradient(180deg, #231d13, #17130d); box-shadow: inset 0 1px 0 rgba(234, 215, 170, .08); }
.btn.or:hover { border-color: var(--or); }
.btn.large { width: 100%; min-height: 68px; font-size: 17px; }
.btn.discret { background: transparent; border-color: transparent; color: var(--doux); min-height: 44px; padding: 10px 14px; }
.btn.discret:hover { color: var(--texte); }

/* Cartes */
.carte { background: linear-gradient(180deg, var(--surface), var(--fond-2)); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; }
.carte + .carte { margin-top: 12px; }
.carte h3 { font: 500 24px/1.2 var(--serif); margin: 0 0 4px; }
.carte p { color: var(--doux); margin: 0; }
.cartes-action { display: grid; gap: 12px; }
.carte-action { text-align: left; cursor: pointer; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; transition: border-color .3s; }
.carte-action:hover { border-color: var(--trait-fort); }
.carte-action .fleche { color: var(--or); font: 400 28px var(--serif); }
.etiquette { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin-bottom: 8px; }

/* Réglages */
.reglage { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.reglage:last-child { border-bottom: 0; }
.reglage > label, .reglage > .nom { color: var(--doux); font-size: 13px; }
.segment { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fond); border: 1px solid var(--trait); border-radius: 12px; padding: 3px; }
.segment button { border: 0; background: transparent; color: var(--doux); padding: 10px 16px; min-height: 44px; border-radius: 9px; cursor: pointer; font-weight: 500; transition: background .25s, color .25s; }
.segment button[aria-pressed="true"] { background: var(--surface-2); color: var(--or-pale); box-shadow: 0 0 0 1px var(--trait-fort); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { min-width: 48px; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--trait); background: transparent; color: var(--doux);
  font: 500 16px var(--sans); cursor: pointer; transition: all .25s; }
.puce[aria-pressed="true"] { border-color: var(--or); color: var(--or-pale); background: var(--or-voile); }
.puce.ancre[aria-pressed="true"] { border-color: var(--trait-fort); color: var(--texte); background: var(--surface-2); }
.aide { color: var(--discret); font-size: 13px; }

/* Séance */
.seance { display: flex; flex-direction: column; min-height: calc(100dvh - 80px); }
.progression { display: flex; align-items: center; gap: 14px; color: var(--discret); font-size: 13px; }
.progression .piste { flex: 1; height: 2px; background: var(--trait); border-radius: 2px; overflow: hidden; }
.progression .piste i { display: block; height: 100%; width: 0; background: var(--or); transition: width .6s ease; }
.scene { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 0 20px; min-height: 220px; }
.consigne { font: italic 400 21px/1.4 var(--serif); color: var(--doux); max-width: 20em; margin: 0; transition: opacity .6s; }
.consigne b { font-weight: 500; color: var(--or-pale); font-style: normal; }
.onde { width: 120px; height: 120px; margin-bottom: 22px; position: relative; }
.onde span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--or); opacity: 0; }
.onde[data-etat="joue"] span { animation: onde 1.8s ease-out infinite; }
.onde[data-etat="joue"] span:nth-child(2) { animation-delay: .6s; }
.onde[data-etat="joue"] span:nth-child(3) { animation-delay: 1.2s; }
.onde .coeur { position: absolute; inset: 44px; border-radius: 50%; background: radial-gradient(circle, var(--or-pale), var(--or) 60%, transparent 70%); opacity: .25; transition: opacity .4s, transform .4s; }
.onde[data-etat="ecoute"] .coeur { opacity: .9; transform: scale(1.08); }
.onde[data-etat="juste"] .coeur { opacity: 1; transform: scale(1.25); }
.onde[data-etat="faux"] .coeur { background: radial-gradient(circle, #f0c9ad, var(--ambre) 60%, transparent 70%); opacity: .9; }
@keyframes onde { from { transform: scale(.35); opacity: .55; } to { transform: scale(1); opacity: 0; } }
.verdict { min-height: 28px; margin-top: 14px; font: 500 15px var(--sans); color: var(--doux); }
.verdict b { color: var(--or-pale); font-weight: 600; }
.verdict .ambre { color: var(--ambre); }

/* Clavier des degrés : rangée chromatique décalée au-dessus de la diatonique, comme un clavier. */
.clavier { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; user-select: none; }
.clavier .touche {
  grid-row: 2; grid-column: span 2; min-height: 84px; border-radius: 14px; border: 1px solid var(--trait);
  background: linear-gradient(180deg, #1c1813, #141109); color: var(--texte); font: 400 34px/1 var(--serif);
  cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation;
  transition: border-color .25s, background .25s, color .25s, transform .08s, opacity .3s, box-shadow .3s;
}
.clavier .touche.chroma { grid-row: 1; min-height: 56px; font-size: 22px; color: var(--doux); background: var(--fond-2); }
.clavier .touche.un { border-color: rgba(210, 182, 121, .45); }
.clavier .touche:active { transform: scale(.97); }
.clavier .touche:disabled { cursor: default; }
.clavier .touche.inactif { opacity: .12; }
.clavier[data-attente="1"] .touche:not(.inactif) { opacity: .45; }
.clavier .touche.juste { border-color: var(--or); background: var(--or-voile); color: var(--or-pale); box-shadow: 0 0 24px rgba(210, 182, 121, .25); }
.clavier .touche.faux { border-color: var(--ambre); background: var(--ambre-voile); color: #f0c9ad; }
.clavier .touche.sonne { box-shadow: 0 0 0 2px var(--or-pale); }
.clavier .touche.choisie { border-color: var(--doux); background: var(--surface-2); }
.barre-bas { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* Résultats */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 8px; }
.chiffre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 14px; }
.chiffre b { display: block; font: 300 32px/1.05 var(--sans); font-variant-numeric: proportional-nums; letter-spacing: -.01em; color: var(--or-pale); }
.chiffre span em { display: block; font-style: normal; color: var(--discret); font-size: 11px; margin-top: 2px; }
.chiffres.deux { grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
.chiffre span { font-size: 12px; color: var(--doux); }
table.degres { width: 100%; border-collapse: collapse; font-size: 14px; }
table.degres th { text-align: left; font-weight: 500; color: var(--discret); font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--trait); }
table.degres td { padding: 10px 6px; border-bottom: 1px solid var(--trait); }
table.degres td:first-child { font: 400 22px var(--serif); width: 48px; }
.jauge { height: 4px; background: var(--trait); border-radius: 4px; overflow: hidden; min-width: 60px; }
.jauge i { display: block; height: 100%; background: var(--or); }

table.degres td, table.degres th { white-space: nowrap; }
table.degres td.confusion { color: var(--ambre); }
@media (hover: none) { #aide-clavier { display: none; } }

.carte-cle { margin-bottom: 16px; }
.ligne-cle { display: flex; gap: 10px; margin-top: 16px; }
.ligne-cle input { flex: 1; min-width: 0; min-height: 56px; padding: 0 16px; border-radius: var(--rayon); border: 1px solid var(--trait-fort);
  background: var(--fond); color: var(--texte); font: 500 16px var(--sans); letter-spacing: .04em; outline: none; transition: border-color .3s; }
.ligne-cle input:focus { border-color: var(--or); }
.synchro { cursor: pointer; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 12px; }

footer.mentions { margin-top: 48px; color: var(--discret); font-size: 12px; line-height: 1.7; }
footer.mentions a { color: var(--doux); }

.fondu { animation: fondu .5s ease both; }
@keyframes fondu { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 640px) {
  h1 { font-size: 48px; }
  .clavier .touche { min-height: 96px; font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Étape 3 : accueil, journal, statistiques, placement, données ---------- */
.surtitre { color: var(--discret); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.carte-action.inactive { cursor: default; opacity: .55; }
.carte-action.a-faire { border-color: rgba(210, 182, 121, .35); }
.carte.chanson h3 { margin-bottom: 6px; }
.actions-carte { display: flex; gap: 6px; margin: 10px -14px -6px; flex-wrap: wrap; }
.actions-carte .btn { text-decoration: none; }
.actions-fin { display: grid; gap: 10px; margin-top: 24px; }
.liens-bas { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--trait); }
.lien { background: none; border: 0; color: var(--doux); font: 500 14px var(--sans); padding: 10px 4px; min-height: 44px; cursor: pointer; letter-spacing: .02em; transition: color .25s; }
.lien:hover { color: var(--or-pale); }
.jauge-fine { height: 2px; background: var(--trait); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.jauge-fine i { display: block; height: 100%; width: 0; background: var(--or); border-radius: 0 2px 2px 0; transition: width .6s ease; }
.ligne-chiffre { display: flex; justify-content: space-between; align-items: baseline; color: var(--doux); }
.ligne-chiffre b { color: var(--texte); font-weight: 500; }
.titre-seance { color: var(--doux); font-size: 13px; letter-spacing: .04em; }
.vide { color: var(--discret); font-style: italic; margin: 8px 0; }

.reglage .segment { display: grid; width: 100%; }
.segment button { padding: 10px 10px; }
.champ { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond);
  color: var(--texte); font: 400 16px var(--sans); outline: none; transition: border-color .3s; }
.champ:focus { border-color: var(--or); }
select.champ { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--doux) 50%), linear-gradient(135deg, var(--doux) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.reglage > b { font-weight: 500; }
.reglage a, .aide a { color: var(--or-pale); }

.points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.points button { min-height: 48px; border-radius: 12px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font: 500 16px var(--sans); cursor: pointer; transition: all .25s; }
.points button[aria-pressed="true"] { border-color: var(--or); background: var(--or-voile); color: var(--or-pale); }

.nav-jour { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; }
.nav-jour h1 { text-align: center; font-size: 34px; margin: 0; }
.nav-jour .btn { font-size: 20px; padding: 0; min-width: 44px; }
.statut { text-align: center; min-height: 1.4em; margin: 4px 0 0; }
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.liste li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--trait); color: var(--doux); font-size: 14px; }
.liste li span:last-child { color: var(--texte); white-space: nowrap; }
.liste li.vide { justify-content: center; }

.filtres { display: grid; gap: 8px; margin: 18px 0 6px; }
.filtres .segment { display: grid; width: 100%; }
.prop { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--trait); color: var(--doux); font-size: 14px; }
.prop:last-child { border-bottom: 0; }
.prop b { color: var(--texte); font: 400 20px/1.2 var(--serif); white-space: nowrap; }
.grille-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
label.btn { cursor: pointer; }

/* Barres par degré : barre de 10 px, bout arrondi côté valeur, intervalle à 95 %, repère du seuil. */
.barres-degres { display: grid; gap: 2px; }
.barres-degres .tete, .barres-degres .rang { display: grid; grid-template-columns: 30px 1fr 50px 70px; align-items: center; gap: 10px; }
.barres-degres .tete { color: var(--discret); font-size: 11px; height: 22px; }
.barres-degres .echelle { position: relative; height: 14px; }
.barres-degres .echelle em { position: absolute; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.barres-degres .echelle em:first-child { transform: none; }
.barres-degres .echelle em.cran { color: var(--doux); }
.barres-degres .rang { min-height: 40px; border-radius: 8px; outline: none; }
.barres-degres .rang:hover, .barres-degres .rang:focus-visible { background: var(--surface); }
.barres-degres .lib { font: 400 24px/1 var(--serif); text-align: center; color: var(--texte); }
.barres-degres .piste { position: relative; height: 10px; background: var(--surface-2); border-radius: 0 4px 4px 0; }
.barres-degres .barre { position: absolute; left: 0; top: 0; bottom: 0; background: var(--or); border-radius: 0 4px 4px 0; }
.barres-degres .moustache { position: absolute; top: 50%; height: 1px; background: var(--texte); opacity: .55; }
.barres-degres .moustache::before, .barres-degres .moustache::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--texte); }
.barres-degres .moustache::before { left: 0; }
.barres-degres .moustache::after { right: 0; }
.barres-degres .seuil { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--trait-fort); text-decoration: none; }
.barres-degres .val { text-align: right; color: var(--texte); font-size: 14px; white-space: nowrap; }
.barres-degres .detail { color: var(--discret); font-size: 12px; white-space: nowrap; text-align: right; }

/* Matrice des confusions */
.matrice { display: grid; gap: 2px; font-size: 13px; }
.matrice .coin { grid-column: 1; font-size: 9px; color: var(--discret); line-height: 1.1; align-self: end; padding-bottom: 4px; }
.matrice .entete { display: flex; align-items: center; justify-content: center; font: 400 18px/1 var(--serif); color: var(--doux); min-height: 28px; }
.legende-matrice { margin: 0 0 10px; }
.matrice .case { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--surface); color: var(--texte); font-size: 12px; outline: none; }
.matrice .case.nulle { background: var(--fond-2); }
.matrice .case.diag { background: transparent; box-shadow: inset 0 0 0 1px var(--trait-fort); color: var(--doux); font-size: 11px; }
.matrice .case:focus-visible { box-shadow: 0 0 0 2px var(--or-pale); }
.legende-gamme { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; color: var(--discret); font-size: 11px; }
.legende-gamme span { width: 100%; }
.legende-gamme i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.legende-gamme em { font-style: normal; margin-right: 6px; }

/* Courbes */
.courbe { width: 100%; }
.courbe svg { display: block; overflow: visible; }
.courbe .grille { stroke: var(--trait); stroke-width: 1; }
.courbe .axe { fill: var(--discret); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.courbe .trait { fill: none; stroke: var(--or); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.courbe .point { fill: var(--or); stroke: var(--fond); stroke-width: 2; }
.courbe .reticule { stroke: var(--trait-fort); stroke-width: 1; }
.courbe .zone { fill: transparent; outline: none; }

/* Infobulle */
.infobulle { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: #221d16; border: 1px solid var(--trait-fort); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.45;
  color: var(--texte); box-shadow: 0 8px 28px rgba(0, 0, 0, .45); max-width: 260px; }
.infobulle b { color: var(--or-pale); font-weight: 600; }

@media (max-width: 380px) {
  .barres-degres .tete, .barres-degres .rang { grid-template-columns: 26px 1fr 46px 62px; gap: 7px; }
  .barres-degres .val { font-size: 13px; }
  .chiffre b { font-size: 26px; }
}

/* ---------- Pool, D1, bilans ---------- */
ul.pool { list-style: none; margin: 0; padding: 0; }
ul.pool li { padding: 12px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 8px; }
.rayer { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.rayer input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--or); flex: none; }
.titre-pool { display: grid; gap: 2px; }
.titre-pool b { font-weight: 500; color: var(--texte); }
.titre-pool em { font-style: normal; color: var(--discret); font-size: 13px; }
ul.pool li.rayee .titre-pool b { text-decoration: line-through; color: var(--discret); }
ul.pool li.rayee .familiarite { opacity: .3; pointer-events: none; }
.familiarite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-left: 34px; }
.familiarite button { min-height: 36px; border-radius: 10px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font: 500 13px var(--sans); cursor: pointer; }
.familiarite button[aria-pressed="true"] { border-color: var(--or); color: var(--or-pale); background: var(--or-voile); }

.titre-diag { margin-top: 14px; }
.nom-champ { display: block; color: var(--doux); font-size: 13px; margin: 14px 0 8px; }
.carte.seconde { border-color: rgba(210, 182, 121, .35); }
.carte.seconde .btn { margin: 6px 0; }
.verrouille { opacity: .35; pointer-events: none; }
.ligne-boutons { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mini-clavier { position: relative; height: 120px; margin-top: 4px; }
.mini-clavier button { position: absolute; top: 0; border: 1px solid var(--trait-fort); cursor: pointer; transition: background .2s, box-shadow .2s; touch-action: manipulation; }
.mini-clavier .blanche { width: calc(100% / 7 - 4px); height: 120px; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #2a241b, #1d1913); }
.mini-clavier .noire { width: 9%; height: 74px; z-index: 1; border-radius: 0 0 8px 8px; background: #0b0907; }
.mini-clavier .choisie { background: var(--or-voile); box-shadow: inset 0 -3px 0 var(--or); border-color: var(--or); }
.mini-clavier .noire.choisie { background: #3a2f1c; }
.cases { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.case-degre { min-width: 48px; height: 52px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); color: var(--texte); font: 400 24px var(--serif); cursor: pointer; }
.case-degre.active { border-color: var(--or); box-shadow: 0 0 0 1px var(--or); }
.pave { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.pave button { min-height: 44px; border-radius: 10px; border: 1px solid var(--trait); background: var(--surface-2); color: var(--texte); font: 400 20px var(--serif); cursor: pointer; padding: 0; }
.pave button[data-alt], .pave button[data-eff] { font-family: var(--sans); font-size: 16px; color: var(--doux); }
.carte.correction { margin-top: 12px; }
.carte.correction h3 { margin-bottom: 8px; }
@media (max-width: 380px) { .pave { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Règles ---------- */
.carte.regle { margin-top: 12px; }
.tete-regle { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.tete-regle h3 { margin: 0; font-size: 22px; }
.pastille { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--discret); white-space: nowrap; }
.carte.regle.declenchee { border-color: rgba(210, 182, 121, .55); }
.carte.regle.declenchee .pastille { color: var(--or); }
.carte.regle.rappel .pastille { color: var(--ambre); }
.carte.regle.insuffisant p { color: var(--discret); }
.proposition { color: var(--texte) !important; margin-top: 10px !important; padding-left: 12px; border-left: 2px solid var(--or); }
.actions-regle { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Yeux fermés : une seule grande surface, presque rien à voir ---------- */
.yeux { display: flex; flex-direction: column; min-height: calc(100dvh - 80px); cursor: pointer; user-select: none; touch-action: manipulation; }
.yeux .scene { flex: 1; }
.onde.grande { width: 180px; height: 180px; }
.onde.grande .coeur { inset: 68px; }
.yeux[data-etat="joue"] .onde span { animation: onde 1.8s ease-out infinite; }
.yeux[data-etat="joue"] .onde span:nth-child(2) { animation-delay: .6s; }
.yeux[data-etat="joue"] .onde span:nth-child(3) { animation-delay: 1.2s; }
.yeux[data-etat="ecoute"] .coeur { opacity: .9; transform: scale(1.08); }
.yeux[data-etat="engage"] .coeur { opacity: 1; transform: scale(1.2); box-shadow: 0 0 40px rgba(210, 182, 121, .35); }
.yeux[data-etat="voix"] .coeur { opacity: .5; }
.degre-voix { font: 400 64px/1 var(--serif); color: var(--or-pale); min-height: 64px; margin: 8px 0 12px; }
.centre { text-align: center; }
