/* Nihongo Coach — thème sombre unique, pensé pour le téléphone tenu à une main
   et pour une séance le soir. Tout ce qui est tactile fait au moins 44 px. */

:root {
  --fond: #0f1116;
  --fond-carte: #171a21;
  --fond-creux: #11141a;
  --bord: #262b36;
  --texte: #e8eaf0;
  --texte-doux: #9aa3b5;
  --texte-tres-doux: #6b7488;
  --accent: #e0575f;        /* rouge sourd, rappel du hinomaru sans le criard */
  --accent-doux: #2a1a1e;
  --ok: #4fbf8b;
  --ok-doux: #16241e;
  --attention: #e0a94f;
  --attention-doux: #241e14;
  --jp: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', system-ui, sans-serif;
  --rayon: 14px;
}

* { box-sizing: border-box; }

/* L'attribut `hidden` doit toujours gagner. La règle navigateur
   `[hidden] { display: none }` a une spécificité de 0,1,0 : n'importe quel
   sélecteur de classe un peu précis (ici `.ecran.centre { display: flex }`) la
   bat et rend visible un élément pourtant marqué caché. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.ecran {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}
.ecran.centre { min-height: 92vh; display: flex; align-items: center; justify-content: center; }
.centre-txt { text-align: center; }

/* ------------------------- rail de séance ---------------------------- */

/* Sur grand écran, une colonne fixe à gauche : on voit ce qui reste à faire
   sans jamais remonter. Sur téléphone, la même information devient une barre
   collée en haut, repliée par défaut — il n'y a pas la largeur pour une
   colonne, mais l'information ne doit pas disparaître pour autant. */

#rail {
  background: var(--fond-carte);
  border-bottom: 1px solid var(--bord);
  position: sticky; top: 0; z-index: 40;
}

.rail-tete {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 16px; background: none; border: none;
  color: var(--texte); border-radius: 0; text-align: left;
}
.rail-etape-courante { font-size: 13px; font-weight: 600; }
.rail-etape-courante em { font-style: normal; color: var(--texte-tres-doux); font-weight: 400; }

.rail-chevron {
  flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--texte-tres-doux);
  border-bottom: 2px solid var(--texte-tres-doux); transform: rotate(45deg);
  transition: transform .18s; margin-bottom: 3px;
}
#rail.deplie .rail-chevron { transform: rotate(-135deg); margin: 3px 0 0; }

#rail-corps { padding: 0 16px 14px; }

.rail-etapes { display: flex; flex-direction: column; gap: 1px; }

.rail-etapes li { display: block; }
.rail-etape {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; border-radius: 8px; padding: 8px 9px;
  color: var(--texte-doux); text-align: left; font-size: 13.5px;
}
.rail-etape:disabled { opacity: 1; color: var(--texte-tres-doux); }
.rail-etape:not(:disabled):hover { background: var(--fond-creux); color: var(--texte); }

.rail-puce {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--bord); display: flex; align-items: center;
  justify-content: center; font-size: 10px; color: var(--texte-tres-doux);
}
.rail-etape .rail-nom { flex: 1; min-width: 0; }
.rail-etape .rail-detail {
  flex: 0 0 auto; font-size: 11.5px; color: var(--texte-tres-doux);
  font-variant-numeric: tabular-nums;
}

li.fait .rail-puce { border-color: var(--ok); background: var(--ok); color: #0f1116; }
li.fait .rail-nom { color: var(--texte-tres-doux); }
li.encours .rail-etape { background: var(--accent-doux); color: var(--texte); font-weight: 600; }
li.encours .rail-puce { border-color: var(--accent); color: var(--accent); }

.rail-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--texte-tres-doux); margin: 16px 0 6px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.rail-options { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bord); }

/* Jauge du budget mensuel : elle change de couleur avant d'être pleine, pour
   que le mur se voie venir au lieu d'arriver d'un coup. */
.jauge.budget { height: 6px; background: var(--fond-creux); border-radius: 4px; overflow: hidden; margin: 2px 0 5px; }
.jauge.budget > span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s, background .3s; }
.jauge.budget > span.tendu { background: var(--attention); }
.jauge.budget > span.plein { background: var(--accent); }
.rail-aide { font-size: 11.5px; color: var(--texte-tres-doux); margin: 5px 0 0; line-height: 1.4; }

.bascule { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; }
.bascule input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0;
  border: 1.5px solid var(--bord); border-radius: 5px; background: var(--fond-creux);
  position: relative;
}
.bascule input:checked { background: var(--accent); border-color: var(--accent); }
.bascule input:checked::after {
  content: '✓'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.bascule input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 999px) {
  #rail-corps { display: none; }
  #rail.deplie #rail-corps { display: block; }
}

@media (min-width: 1000px) {
  #rail {
    position: fixed; left: 0; top: 0; bottom: 0; width: 242px;
    border-bottom: none; border-right: 1px solid var(--bord);
    overflow-y: auto; padding-top: env(safe-area-inset-top);
  }
  #rail-corps { display: block; }
  .rail-chevron { display: none; }
  .rail-tete { padding: 18px 16px 8px; cursor: default; }
  .rail-etape-courante { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-tres-doux); }
  body.avec-rail { padding-left: 242px; }
}

/* ---------------------------- romaji ------------------------------- */

/* Masqué par défaut et révélé par une classe sur <body> : une seule case à
   cocher pilote tout l'affichage, sans avoir à redessiner quoi que ce soit. */
.romaji { display: none; }
body.montre-romaji .romaji { display: block; }

.romaji {
  font-size: 13px; color: #8fa6bd; letter-spacing: .01em;
  font-style: italic; margin: 2px 0 0;
}
.liste-exemples .romaji { font-size: 12.5px; }
.bulle .romaji { margin-top: 5px; font-size: 12.5px; }

/* ------------------------------ entêtes ------------------------------ */

.entete {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 6px 0 16px;
}
.entete h2 { margin: 0; font-size: 20px; }

.logo { font-family: var(--jp); font-size: 22px; margin: 0; font-weight: 600; letter-spacing: .02em; }
.logo span {
  font-family: system-ui, sans-serif; font-size: 13px; font-weight: 500;
  color: var(--texte-tres-doux); margin-left: 8px; letter-spacing: .08em; text-transform: uppercase;
}

.fil {
  display: flex; gap: 6px; margin-bottom: 14px;
  font-size: 11.5px; color: var(--texte-tres-doux);
  overflow-x: auto; scrollbar-width: none;
}
.fil::-webkit-scrollbar { display: none; }
.fil span { white-space: nowrap; padding: 4px 9px; border-radius: 20px; background: var(--fond-creux); }
.fil .actif { color: var(--texte); background: var(--accent-doux); box-shadow: inset 0 0 0 1px var(--accent); }

/* ------------------------------- cartes ------------------------------ */

.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 20px;
  margin-bottom: 14px;
}
.carte.etroite { max-width: 340px; width: 100%; }
.carte.scenario { background: var(--fond-creux); }
.carte.avertissement { border-color: var(--attention); background: var(--attention-doux); font-size: 14px; }

h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--texte-tres-doux); margin: 22px 0 8px; font-weight: 600;
}
h3 .discret { text-transform: none; letter-spacing: 0; font-weight: 400; }

.surtitre {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--texte-tres-doux); margin: 0 0 4px;
}
.titre-point { font-size: 25px; line-height: 1.2; margin: 0 0 4px; }
.jp-point { font-family: var(--jp); font-size: 17px; color: var(--accent); margin: 0 0 12px; }
.corps { font-size: 15px; color: var(--texte-doux); margin: 0 0 12px; }
.corps.accent { color: var(--texte); }
.discret { font-size: 13px; color: var(--texte-tres-doux); margin: 4px 0; }
.erreur { color: var(--accent); font-size: 14px; }

/* Pourquoi ce point aujourd'hui. Un badge « consolidation » ne dit rien à
   l'usage : la phrase, si. */
.pourquoi {
  font-size: 13.5px; color: var(--texte-doux); margin: 0 0 14px;
  padding-left: 11px; border-left: 2px solid var(--accent);
}

.memo {
  background: var(--accent-doux); border-left: 3px solid var(--accent);
  padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14.5px; margin: 20px 0;
}

/* ------------------------------ badges ------------------------------- */

.ligne-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.badge {
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; background: var(--accent-doux); color: #f0a0a5;
  border: 1px solid rgba(224, 87, 95, .3);
}
.badge.sourd { background: var(--fond-creux); color: var(--texte-doux); border-color: var(--bord); }

.mini-grille {
  display: grid; gap: 1px; background: var(--bord);
  border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; margin: 18px 0;
}
.mini-grille > div { background: var(--fond-creux); padding: 10px 13px; display: flex; justify-content: space-between; gap: 12px; }
.cle { font-size: 13px; color: var(--texte-tres-doux); }
.val { font-size: 13.5px; text-align: right; }

/* ------------------------------ boutons ------------------------------ */

button { font: inherit; cursor: pointer; border-radius: 10px; transition: filter .12s, background .12s; }
button:disabled { opacity: .45; cursor: default; }

.principal {
  background: var(--accent); color: #fff; border: none;
  padding: 13px 20px; font-weight: 600; font-size: 15px; min-height: 48px;
}
.principal:hover:not(:disabled) { filter: brightness(1.1); }
.principal.large { width: 100%; margin-top: 20px; }

.fantome {
  background: transparent; color: var(--texte-doux);
  border: 1px solid var(--bord); padding: 9px 14px; font-size: 14px; min-height: 40px;
}
.fantome:hover:not(:disabled) { background: var(--fond-creux); color: var(--texte); }
.fantome.petit { padding: 5px 11px; font-size: 12.5px; min-height: 32px; }

.fantome.large { width: 100%; margin-top: 8px; }

/* ---------------------------- catalogue ---------------------------- */

.catalogue { display: flex; flex-direction: column; gap: 8px; }

.catalogue > li {
  background: var(--fond-carte); border: 1px solid var(--bord);
  border-radius: var(--rayon); overflow: hidden;
}
.catalogue > li.ouvert { border-color: var(--accent); }

.cat-tete {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 15px; background: none; border: none; color: var(--texte);
  text-align: left; border-radius: 0;
}
.cat-tete:hover { background: var(--fond-creux); }
.cat-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--fond-creux);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--texte-tres-doux); border: 1px solid var(--bord);
}
.catalogue > li.acquis .cat-num { border-color: var(--ok); color: var(--ok); }
.cat-nom { flex: 1; min-width: 0; }
.cat-nom b { display: block; font-size: 15px; font-weight: 600; }
.cat-nom span { display: block; font-family: var(--jp); font-size: 12.5px; color: var(--accent); }
.cat-etat { flex: 0 0 auto; text-align: right; font-size: 11.5px; color: var(--texte-tres-doux); }
.cat-etat .jauge { width: 54px; height: 5px; background: var(--fond-creux); border-radius: 4px; overflow: hidden; margin: 4px 0 0 auto; }
.cat-etat .jauge span { display: block; height: 100%; background: var(--ok); }

.cat-corps { padding: 0 15px 15px; border-top: 1px solid var(--bord); }
.cat-corps p { font-size: 13.5px; color: var(--texte-doux); margin: 13px 0; }
.cat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--texte-tres-doux); margin: 14px 0 7px; font-weight: 600;
}
.puces { display: flex; flex-wrap: wrap; gap: 7px; }
.puce {
  background: var(--fond-creux); border: 1px solid var(--bord); color: var(--texte-doux);
  padding: 8px 12px; font-size: 13px; border-radius: 8px; min-height: 38px;
}
.puce:hover { color: var(--texte); border-color: var(--texte-tres-doux); }
.puce[aria-pressed="true"] {
  background: var(--accent-doux); border-color: var(--accent); color: #f0a0a5; font-weight: 600;
}
.puce.diff { min-width: 42px; text-align: center; }

.lien {
  background: none; border: none; color: var(--texte-tres-doux);
  text-decoration: underline; font-size: 13px; padding: 12px 4px; width: 100%;
}
.lien:hover { color: var(--texte-doux); }

.ligne-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ligne-actions.compacte { margin: 0 0 10px; align-items: center; justify-content: center; }
.ligne-actions .principal { flex: 1; min-width: 120px; }

form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
input {
  background: var(--fond-creux); border: 1px solid var(--bord); color: var(--texte);
  padding: 13px 14px; border-radius: 10px; font: inherit; min-height: 48px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ------------------------------- micro ------------------------------- */

.zone-micro { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 24px 0 8px; }

.micro {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--accent-doux); border: 2px solid var(--accent); color: var(--texte);
}
.micro.grand { width: 122px; height: 122px; }
.micro:hover:not(:disabled) { filter: brightness(1.25); }
.micro-icone {
  width: 17px; height: 26px; border-radius: 9px 9px 9px 9px / 9px 9px 11px 11px;
  background: var(--accent); position: relative;
}
.micro-icone::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  width: 25px; height: 11px; border: 2px solid var(--accent); border-top: none;
  border-radius: 0 0 14px 14px;
}
.micro-txt { font-size: 12px; letter-spacing: .04em; margin-top: 8px; }

.micro.ecoute { animation: pulse 1.3s ease-in-out infinite; background: var(--accent); }
.micro.ecoute .micro-icone { background: #fff; }
.micro.ecoute .micro-icone::after { border-color: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 87, 95, .5); }
  50% { box-shadow: 0 0 0 16px rgba(224, 87, 95, 0); }
}
@media (prefers-reduced-motion: reduce) { .micro.ecoute { animation: none; } }

.transcription {
  font-family: var(--jp); font-size: 17px; min-height: 26px; text-align: center;
  color: var(--texte); margin: 0; word-break: break-word;
}
.transcription:empty::before { content: '…'; color: var(--texte-tres-doux); }

/* ------------------------------- drill ------------------------------- */

/* Pendant que les phrases du jour se fabriquent, celles du curriculum restent
   lisibles mais discrètement estompées : l'écran n'est jamais vide. */
.phrase-fr.en-attente { opacity: .45; transition: opacity .2s; }

.phrase-fr { font-size: 21px; line-height: 1.35; margin: 10px 0 0; font-weight: 500; }

.retour { border-top: 1px solid var(--bord); margin-top: 20px; padding-top: 18px; }
.verdict { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 10px; }
.verdict.juste { color: var(--ok); }
.verdict.presque { color: var(--attention); }
.verdict.faux { color: var(--accent); }
.jp-corrige { font-family: var(--jp); font-size: 21px; margin: 0 0 2px; }
.kana { font-family: var(--jp); font-size: 14px; color: var(--texte-tres-doux); margin: 0 0 12px; }
.bonpoint { font-size: 13.5px; color: var(--ok); margin: 8px 0 0; }

/* Quand la reconnaissance vocale a dérapé, il faut le dire : sans ça l'élève
   croit avoir mal parlé alors que sa phrase était bonne. */
.note-transcription {
  font-size: 13px; color: #8fa6bd; margin: 10px 0 0;
  background: rgba(143, 166, 189, .09); border-left: 2px solid #8fa6bd;
  padding: 8px 11px; border-radius: 0 6px 6px 0;
}
.note-transcription::before { content: '🎙 '; }

/* ---------------------------- jeu de rôle ---------------------------- */

.conversation { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.bulle { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 16px; }
.bulle.ia { background: var(--fond-carte); border: 1px solid var(--bord); border-bottom-left-radius: 5px; align-self: flex-start; }
.bulle.moi { background: var(--accent-doux); border: 1px solid rgba(224, 87, 95, .3); border-bottom-right-radius: 5px; align-self: flex-end; }
.bulle .jp { font-family: var(--jp); line-height: 1.6; }
.bulle .fr { font-size: 13.5px; color: var(--texte-tres-doux); margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--bord); }
.bulle .fr[hidden] { display: none; }
.bulle.pense .jp::after { content: '···'; color: var(--texte-tres-doux); }

/* Les corrections vivent dans le fil mais ne doivent pas casser l'illusion de
   conversation : discrètes par défaut, dépliables à la demande. */
.correction {
  align-self: stretch; font-size: 12.5px; background: transparent;
  border: none; border-left: 2px solid var(--attention);
  padding: 3px 0 3px 10px; margin: -4px 0 0; color: #b9a377;
  opacity: .75; transition: opacity .15s;
}
.correction:hover { opacity: 1; }
.conversation.sans-corrections .correction { display: none; }

/* --------------------------- objectifs ---------------------------- */

.obj-compte {
  font-size: 12px; font-weight: 700; color: var(--texte-doux);
  background: var(--fond-carte); border: 1px solid var(--bord);
  padding: 2px 9px; border-radius: 20px; font-variant-numeric: tabular-nums;
}
.obj-compte.complet { color: var(--ok); border-color: var(--ok); background: var(--ok-doux); }

.liste-objectifs { display: flex; flex-direction: column; gap: 2px; }

.liste-objectifs li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; line-height: 1.4; color: var(--texte-doux); padding: 5px 0;
  transition: color .2s;
}
.liste-objectifs .case {
  flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px;
  border: 1.5px solid var(--bord); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; color: transparent;
  transition: border-color .2s, background .2s, color .2s;
}
.liste-objectifs li.fait { color: var(--texte-tres-doux); text-decoration: line-through; text-decoration-color: var(--texte-tres-doux); }
.liste-objectifs li.fait .case { border-color: var(--ok); background: var(--ok); color: #0f1116; }

/* Signal visuel au moment où une case se cocheveut : bref, pas clinquant. */
.liste-objectifs li.vient-de-tomber { animation: coche .7s ease-out; }
@keyframes coche {
  0% { background: var(--ok-doux); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .liste-objectifs li.vient-de-tomber { animation: none; } }

/* Un incident technique ne doit pas se confondre avec une correction de langue,
   ni disparaître avec elles quand on les masque. */
.incident {
  align-self: stretch; font-size: 13px; background: var(--accent-doux);
  border-left: 3px solid var(--accent); padding: 9px 13px;
  border-radius: 0 8px 8px 0; color: #f0a0a5;
}

/* --- états du micro en conversation continue --- */

/* Décompte du silence : un anneau qui se vide sous le bouton, pour qu'on voie
   la main passer au lieu de se faire couper sans prévenir. */
.jauge-silence {
  position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 3px; background: rgba(255, 255, 255, .16);
  border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .15s;
}
.jauge-silence > span {
  display: block; height: 100%; width: 100%;
  background: #fff; transform-origin: left center;
}
.micro.ecoute .jauge-silence { opacity: 1; }
.micro { position: relative; }

.etat-conv {
  font-size: 12.5px; color: var(--texte-tres-doux); margin: 10px 0 2px;
  min-height: 18px; text-align: center; letter-spacing: .02em;
}

.micro.reflexion { animation: respire 1.6s ease-in-out infinite; }
.micro.parole { border-color: var(--ok); background: var(--ok-doux); }
.micro.parole .micro-icone { background: var(--ok); }
.micro.parole .micro-icone::after { border-color: var(--ok); }
@keyframes respire {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .micro.reflexion { animation: none; } }

.barre-basse {
  position: sticky; bottom: 0; background: linear-gradient(to top, var(--fond) 55%, transparent);
  padding: 14px 0 6px; display: flex; flex-direction: column; align-items: center;
}
.barre-basse .lien { margin-top: 6px; }

/* ------------------------------- bilan ------------------------------- */

.note-bloc { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.note {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
  background: var(--accent-doux); border: 2px solid var(--accent);
}
.note.bien { background: var(--ok-doux); border-color: var(--ok); color: var(--ok); }
.note.moyen { background: var(--attention-doux); border-color: var(--attention); color: var(--attention); }

/* ------------------------------- listes ------------------------------ */

ul { list-style: none; padding: 0; margin: 0; }

.liste-structure li { padding: 11px 0; border-bottom: 1px solid var(--bord); }
.liste-structure li:last-child { border-bottom: none; }
.liste-structure .forme { font-family: var(--jp); font-size: 15.5px; color: var(--texte); display: block; }
.liste-structure .regle { font-size: 13.5px; color: var(--texte-doux); }

.liste-exemples li {
  padding: 11px 13px; margin-bottom: 7px; background: var(--fond-creux);
  border: 1px solid var(--bord); border-radius: 9px; cursor: pointer;
}
.liste-exemples li:hover { border-color: var(--accent); }
.liste-exemples li:active { background: var(--accent-doux); }
.liste-exemples .jp { font-family: var(--jp); font-size: 17px; display: block; }
.liste-exemples .kana { font-family: var(--jp); font-size: 12.5px; color: var(--texte-tres-doux); margin: 2px 0; }
.liste-exemples .fr { font-size: 13.5px; color: var(--texte-doux); }

.liste-pieges li {
  font-size: 14px; color: var(--texte-doux); padding: 7px 0 7px 20px; position: relative;
}
.liste-pieges li::before { content: '⚠'; position: absolute; left: 0; color: var(--attention); font-size: 12px; }
.liste-pieges.positive li::before { content: '✓'; color: var(--ok); }

.liste-erreurs li {
  padding: 11px 0; border-bottom: 1px solid var(--bord); font-size: 14px;
}
.liste-erreurs li:last-child { border-bottom: none; }
.liste-erreurs .dit { font-family: var(--jp); color: var(--accent); text-decoration: line-through; text-decoration-color: rgba(224,87,95,.5); }
.liste-erreurs .fleche { color: var(--texte-tres-doux); margin: 0 7px; }
.liste-erreurs .bon { font-family: var(--jp); color: var(--ok); }
.liste-erreurs .regle { display: block; font-size: 12.5px; color: var(--texte-tres-doux); margin-top: 3px; }

.liste-maitrise li { display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 14px; }
.liste-maitrise .nom { flex: 1; }
.liste-maitrise .jauge { flex: 0 0 76px; height: 6px; background: var(--fond-creux); border-radius: 4px; overflow: hidden; }
.liste-maitrise .jauge span { display: block; height: 100%; background: var(--ok); }
.liste-maitrise .pct { flex: 0 0 40px; text-align: right; font-size: 12.5px; color: var(--texte-tres-doux); }
.liste-maitrise .neuf { color: var(--texte-tres-doux); font-size: 12px; }

.liste-sessions li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--bord); font-size: 13.5px; }
.liste-sessions li:last-child { border-bottom: none; }
.liste-sessions .quand { color: var(--texte-tres-doux); }

/* ------------------------------- toast ------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px));
  background: var(--fond-carte); border: 1px solid var(--accent);
  padding: 12px 17px; border-radius: 10px; font-size: 14px; z-index: 50;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
}
