/* ============================================================
   LES MURS — la feuille
   ------------------------------------------------------------
   ⚠️ UN SEUL DESIGN, SIX TEINTES. Chaque outil pose `--mu-t` sur
      `<html>` : six portes se distinguent sans six feuilles a tenir.

   ⚠️ TOUT CE QUI SE PROJETTE EST EN `em`, JAMAIS EN `px` NI EN `vw`.
      Un vidéoprojecteur de classe fait 1024×768 ou 1280×720, parfois
      des proportions presque carrees. Une taille en `vw` seule
      s'effondre sur un ecran peu large mais haut : la racine mele
      donc les DEUX dimensions (§7.70).
   ============================================================ */

:root {
  --mu-t:      #7c3aed;   /* la teinte de l'outil, posee par la page */
  --mu-t-pale: #f5f3ff;
  --mu-encre:  #1a1430;
  --mu-gris:   #64748b;
  --mu-bord:   #e2e8f0;
  --mu-fond:   #fbfaff;
  --mu-carte:  #ffffff;
  --mu-vert:   #16a34a;
  --mu-ambre:  #d97706;
  --mu-rouge:  #dc2626;
  --mu-ombre:  0 1px 2px rgba(26,20,48,.06), 0 8px 24px rgba(26,20,48,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--mu-fond);
  color: var(--mu-encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--mu-t); }

/* ------------------------------------------------------------
   Les boutons
   ------------------------------------------------------------
   ⚠️ `.mu-b-plein` NE PORTE PAS `width:100%`. Dans OQuiz, cette
   seule ligne a casse trois ecrans : dans un conteneur flex, le
   bouton reclame toute la largeur, le `flex-shrink` le ramene a une
   fraction, et ce qui est a cote se retrouve ecrase — un titre
   affiche un mot par ligne (§7.121). Quand il doit faire toute la
   largeur, on l'ecrit sur place avec `.mu-b-large`.
   ------------------------------------------------------------ */
.mu-b {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45em;
  padding: .7rem 1.2rem; border-radius: 12px;
  border: 1px solid var(--mu-bord); background: #fff;
  color: var(--mu-encre); font: inherit; font-weight: 600;
  font-size: 1rem; line-height: 1.2;
  cursor: pointer;
  /* 44 px : la cible minimale qu'un doigt atteint sans viser. */
  min-height: 44px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.mu-b:hover  { box-shadow: var(--mu-ombre); }
.mu-b:active { transform: translateY(1px); }
.mu-b:focus-visible { outline: 3px solid var(--mu-t); outline-offset: 2px; }
.mu-b[disabled] { opacity: .5; cursor: not-allowed; }

.mu-b-plein  { background: var(--mu-t); border-color: var(--mu-t); color: #fff; }
a.mu-b { text-decoration: none; }
.mu-b-large  { width: 100%; }
.mu-b-danger { border-color: #fecaca; color: var(--mu-rouge); }

/* ------------------------------------------------------------
   Les pages ordinaires (hors projection)
   ------------------------------------------------------------ */
.mu-page { max-width: 62rem; margin: 0 auto; padding: 1.2rem 1rem 4rem; }
.mu-etroit { max-width: 32rem; }

.mu-haut {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1rem; margin-bottom: 1.4rem;
  background: #fff; border-bottom: 1px solid var(--mu-bord);
}
.mu-marque { display: flex; align-items: center; gap: .6rem;
             font-weight: 800; font-size: 1.05rem; text-decoration: none;
             color: var(--mu-encre); }
.mu-marque span.e { font-size: 1.5rem; line-height: 1; }

.mu-carte {
  background: var(--mu-carte); border: 1px solid var(--mu-bord);
  border-radius: 18px; padding: 1.3rem; box-shadow: var(--mu-ombre);
}

h1 { font-size: 1.6rem; margin: 0 0 .4rem; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
.mu-sous { color: var(--mu-gris); margin: 0 0 1.2rem; line-height: 1.5; }

label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
input[type=text], input[type=password], input[type=number],
textarea, select {
  width: 100%; padding: .75rem .9rem; font: inherit;
  border: 1px solid var(--mu-bord); border-radius: 12px;
  background: #fff; color: var(--mu-encre);
  /* ⚠️ `min-width:0` : un `<select>` prend la largeur de sa plus
     longue option et deborde de sa colonne sans cela (§7.69). */
  min-width: 0;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--mu-t); outline-offset: 1px; border-color: var(--mu-t);
}
textarea { min-height: 6rem; resize: vertical; }

.mu-aide { color: var(--mu-gris); font-size: .9rem; margin: .35rem 0 0; }
.mu-err {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; font-weight: 600;
}
.mu-ok {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; font-weight: 600;
}

/* ------------------------------------------------------------
   L'accueil : les six portes
   ------------------------------------------------------------ */
.mu-portes {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  margin: 1.5rem 0;
}
.mu-porte {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--mu-bord); border-radius: 18px;
  padding: 1.2rem; box-shadow: var(--mu-ombre);
  border-top: 4px solid var(--p, var(--mu-t));
  transition: transform .14s ease, box-shadow .14s ease;
}
.mu-porte:hover { transform: translateY(-2px);
                  box-shadow: 0 10px 30px rgba(26,20,48,.12); }
.mu-porte .e  { font-size: 2rem; line-height: 1; display: block; margin-bottom: .5rem; }
.mu-porte .n  { font-weight: 800; font-size: 1.1rem; display: block; }
.mu-porte .q  { color: var(--mu-gris); font-size: .92rem; margin-top: .3rem;
                line-height: 1.45; }
.mu-porte .a  { color: var(--p, var(--mu-t)); font-size: .85rem; font-weight: 700;
                margin-top: .7rem; display: block; }

/* ------------------------------------------------------------
   Le code — saisi, et projete
   ------------------------------------------------------------ */
.mu-code-champ {
  font-size: 2rem; font-weight: 800; letter-spacing: .35em;
  text-align: center; text-transform: uppercase;
  padding: .9rem .5rem .9rem .85em;   /* le letter-spacing decale a droite */
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LA PROJECTION
   ============================================================ */

/* ⚠️ LA RACINE MELE LARGEUR ET HAUTEUR (§7.70), et `--mu-auto` est
   CHERCHE par dichotomie a chaque ecran (§7.41, §7.121) : la formule
   directe se mord la queue, puisque agrandir change le nombre de
   lignes d'un titre, donc la hauteur. `--mu-z` est le zoom que le
   professeur regle — lui seul voit le fond de la salle. */
.mu-ecran {
  --mu-auto: 1;
  --mu-z: 1;
  /* §7.190 : base relevee (13 → 26 px) — a 1366 × 768, l'ancienne
     donnait 13 px avant toute reduction, et 12 px de texte au final. */
  font-size: calc(clamp(13px, .8vw + .8vh, 26px) * var(--mu-auto) * var(--mu-z));
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--mu-fond);
  overflow: hidden;
}
.mu-ecran-tete {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1em; padding: .7em 1.4em;
  border-bottom: 1px solid var(--mu-bord); background: #fff;
  /* ⚠️ TAILLE FIXE, HORS DE `--mu-auto` (§7.190) : la question doit
     rester lisible du fond, quel que soit le nombre de reponses. */
  font-size: calc(clamp(12px, .8vw + .9vh, 28px) * var(--mu-z));
}
.mu-tete-g { min-width: 0; }
.mu-tete-d { text-align: right; flex: 0 0 auto; }
.mu-ecran-titre { font-size: .95em; font-weight: 700; color: var(--mu-gris); margin: 0; }
/* ⚠️ LA QUESTION EN GRAND ET EN NOIR, le nom de l'outil en petit :
   c'etait l'inverse, et c'est la question qu'on lit de loin (§7.190). */
.mu-ecran-q { font-size: 1.9em; font-weight: 800; color: var(--mu-encre);
              margin: .1em 0 0; line-height: 1.15; }
.mu-ecran-q:empty { display: none; }

.mu-ecran-corps {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  /* ⚠️ `safe center` : avec `center`, un contenu plus grand que la
     boite deborde DES DEUX COTES et le haut devient inatteignable
     (§7.42, §7.121). */
  justify-content: safe center;
  align-items: center;
  padding: 1em 1.4em;
  overflow: hidden;
}
.mu-ecran-pied {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1em; padding: .5em 1.4em;
  border-top: 1px solid var(--mu-bord); background: #fff;
  /* ⚠️ TAILLE FIXE, comme l'en-tete : le QR et le code rapetissaient
     avec un mur plein (94 px, puis 67 px en 1366 × 768, §7.190). */
  font-size: calc(clamp(12px, .7vw + .8vh, 24px) * var(--mu-z));
}

/* Le code au tableau : c'est le seul chiffre que toute la classe doit
   lire du fond de la salle. */
.mu-gros-code {
  font-size: 2.6em; font-weight: 800; letter-spacing: .14em; line-height: 1.05;
  color: var(--mu-t); font-variant-numeric: tabular-nums;
}
.mu-gens { font-size: 1.05em; font-weight: 600; color: var(--mu-gris); }
.mu-gens b { color: var(--mu-encre); font-size: 1.15em; }

/* ------------------------------------------------------------
   Le nuage de mots
   ------------------------------------------------------------ */
.mu-nuage { width: 100%; height: 100%; display: block; }
.mu-nuage text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800; letter-spacing: -.01em;
  transform-box: fill-box; transform-origin: center;
}
/* §7.190 — la place (glissement + croissance) est un `transform` CSS du
   groupe : une transition, pas de JS, jamais de saut. */
.mu-nuage g.mu-nm { transition: transform 1.1s cubic-bezier(.22,.9,.25,1); }
.mu-nuage g.mu-flot { transform-box: fill-box;
                      animation: mu-flot 6s ease-in-out infinite alternate; }
@keyframes mu-flot { from { transform: translateY(-3%); } to { transform: translateY(3%); } }
.mu-nuage text.neuf  { animation: mu-entre-mot .8s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes mu-entre-mot { from { opacity: 0; transform: translateY(40%) scale(.2); }
                          to   { opacity: 1; transform: none; } }
.mu-nuage text.pulse { animation: mu-pulse .7s ease-out; }
@keyframes mu-pulse { 40% { transform: scale(1.14); } }
.mu-nuage g.part text { animation: mu-evapore .75s ease-in forwards; }
@keyframes mu-evapore { to { opacity: 0; transform: translateY(-25%) scale(1.3); filter: blur(4px); } }
@keyframes mu-pop {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* ------------------------------------------------------------
   Le sondage
   ------------------------------------------------------------ */
.mu-barres { width: 100%; max-width: 48em; display: flex;
             flex-direction: column; gap: .75em; }
.mu-barre-l { display: grid; grid-template-columns: 1fr auto; gap: .5em .9em; }
.mu-barre-t { font-size: 1.15em; font-weight: 700; display: flex; gap: .5em; align-items: baseline; }
.mu-barre-l.tete .mu-barre-f { box-shadow: inset 0 0 0 .15em rgba(255,255,255,.45); }
.mu-barres.cachees .mu-barre-p { background: repeating-linear-gradient(45deg, #f1f5f9 0 .6em, #fff .6em 1.2em); }
.mu-barres-tot { margin-top: 1em; font-size: 1.1em; font-weight: 700; color: var(--mu-gris); text-align: center; }
.mu-lettre { display: inline-flex; align-items: center; justify-content: center;
             min-width: 1.6em; height: 1.6em; border-radius: .45em; flex: 0 0 auto;
             background: var(--mu-t); color: #fff; font-weight: 800; font-size: .9em; }
.mu-barre-n { font-size: 1.15em; font-weight: 800; color: var(--mu-t);
              font-variant-numeric: tabular-nums; }
.mu-barre-p { grid-column: 1 / -1; height: 1.5em; border-radius: 999px;
              background: #fff; border: 1px solid var(--mu-bord); overflow: hidden; }
.mu-barre-f { height: 100%; border-radius: 999px; background: var(--mu-t);
              transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* ------------------------------------------------------------
   Les cartes : post-it, questions, brainstorming
   ------------------------------------------------------------ */
.mu-cartes {
  width: 100%; height: 100%;
  display: grid; gap: .8em; align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
  overflow: hidden;
}
.mu-c {
  background: #fff; border: 1px solid var(--mu-bord);
  border-left: .35em solid var(--c, var(--mu-t));
  border-radius: 14px; padding: .85em 1em;
  box-shadow: var(--mu-ombre);
}
/* ⚠️ L'ANIMATION D'ENTREE NE VIT QUE SUR `.neuf`, retiree a la fin :
   posee sur `.mu-c`, elle se rejouait a chaque deplacement de nœud, et
   le tableau clignotait toutes les 2,5 s (§7.190). */
.mu-c.neuf { animation: mu-entre .45s cubic-bezier(.2,.9,.3,1.1); }
.mu-c.cache-place { display: none; }
.mu-c-rep { margin-top: .45em; font-size: .95em; font-weight: 700; color: var(--mu-vert); }
/* ⚠️ L'ENTRÉE DESCEND D'EN HAUT, PAS D'EN BAS (§7.190 undecies) : une
   carte décalée vers le bas allonge `scrollHeight` pendant .45 s, et la
   dichotomie, qui mesure à ce moment-là, cachait la dernière rangée. */
@keyframes mu-entre {
  from { opacity: 0; transform: translateY(-.6em) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.mu-c-txt  { font-size: 1.05em; line-height: 1.45; }
.mu-c-bas  { display: flex; align-items: center; justify-content: space-between;
             gap: .6em; margin-top: .6em; font-size: .85em; color: var(--mu-gris); }
.mu-c-aime { font-weight: 800; color: var(--mu-t); }
.mu-c.epinglee { border-color: var(--mu-ambre); background: #fffbeb; }
.mu-c.traitee  { opacity: .55; }
.mu-c.traitee .mu-c-txt { text-decoration: line-through;
                          text-decoration-color: rgba(26,20,48,.3); }

/* ------------------------------------------------------------
   Le pendu
   ------------------------------------------------------------ */
.mu-pendu { display: flex; flex-direction: column; align-items: center;
            gap: .8em; width: 100%; height: 100%;
            justify-content: safe center; }
.mu-scene { flex: 0 1 auto; max-height: 52%; }
/* ⚠️ LA SCENE DU T-REX A SA HAUTEUR GARANTIE (§7.190) : 45 % du corps,
   le mot prend le reste. En `flex: 1 1 auto`, elle tombait a 0 px. */
.mu-scene-h { flex: 0 0 48%; min-height: 0; width: 100%;
              display: flex; align-items: center; justify-content: center; }
.mu-scene-h svg { height: 100%; width: 100%; max-height: none; }
.mu-scene-h.secousse { animation: mu-secousse .5s ease; }
.mu-scene-h.alerte { background: radial-gradient(closest-side, rgba(220,38,38,.12), transparent); }
@keyframes mu-secousse { 0%,100% { transform: none; } 25% { transform: translateX(-1.5%); }
                         75% { transform: translateX(1.5%); } }
.mu-fin { font-size: 1.5em; font-weight: 800; min-height: 1.3em; text-align: center; }
.mu-fin.gagne { color: var(--mu-vert); animation: mu-pop .5s cubic-bezier(.2,.9,.3,1.3); }
.mu-fin.perdu { color: var(--mu-rouge); }
.mu-tour-proj { width: min(40em, 100%); text-align: center; }
.mu-tour-l { font-size: 1.4em; font-weight: 700; }
.mu-tour-l b { color: var(--mu-t); font-size: 1.2em; }
.mu-tour-calme { color: var(--mu-gris); font-size: 1.1em; font-weight: 600; }
.mu-tour-barre { height: .5em; border-radius: 999px; background: var(--mu-bord);
                 overflow: hidden; margin-top: .4em; }
.mu-tour-barre i { display: block; height: 100%; width: 100%; background: var(--mu-t); }
.mu-mot   { display: flex; flex-wrap: wrap; gap: .3em; justify-content: center; }
.mu-l {
  width: 1.3em; height: 1.7em;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2em; font-weight: 800;
  border-bottom: .12em solid var(--mu-encre);
}
.mu-l.sep { border-bottom: none; width: .7em; }
.mu-l.pleine { animation: mu-pop .4s cubic-bezier(.2,.9,.3,1.3); }
.mu-ratees { display: flex; gap: .35em; flex-wrap: wrap; justify-content: center;
             font-size: 1.3em; font-weight: 800; color: var(--mu-rouge); }
.mu-ratees span { text-decoration: line-through; }
.mu-indice { font-size: 1.1em; color: var(--mu-gris); font-style: italic; }

/* ------------------------------------------------------------
   Le téléphone de l'élève
   ------------------------------------------------------------ */
.mu-tel { min-height: 100svh; display: flex; flex-direction: column; }
/* ⚠️ `svh` ET NON `vh` : sur un telephone, `vh` compte une barre de
   navigateur qui n'est pas la, et le bouton d'envoi tombe sous le
   bord de l'ecran (§7.121). */
.mu-tel-corps { flex: 1 1 auto; padding: 1.1rem 1rem 2rem; }

.mu-choix { display: grid; gap: .7rem; margin: 1.2rem 0; }
.mu-choix button {
  text-align: left; padding: 1rem 1.1rem; font-size: 1.05rem;
  border-radius: 14px; border: 2px solid var(--mu-bord); background: #fff;
  font: inherit; font-weight: 600; cursor: pointer; min-height: 56px;
}
.mu-choix button.pris {
  border-color: var(--mu-t); background: var(--mu-t-pale); color: var(--mu-t);
}

.mu-clavier { display: grid; grid-template-columns: repeat(7, 1fr);
              gap: .4rem; margin: 1rem 0; }
.mu-clavier button {
  aspect-ratio: 1; font-size: 1.1rem; font-weight: 800;
  border-radius: 10px; border: 1px solid var(--mu-bord); background: #fff;
  font-family: inherit; cursor: pointer; min-height: 0;
}
.mu-clavier button.jouee  { opacity: .3; cursor: not-allowed; }
.mu-clavier button.juste  { background: #f0fdf4; border-color: #86efac; color: #166534; }
.mu-clavier button.ratee  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ------------------------------------------------------------
   La liste du professeur
   ------------------------------------------------------------ */
.mu-liste { display: grid; gap: .8rem; }
.mu-m {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--mu-bord); border-radius: 14px;
  padding: .9rem 1rem; border-left: 4px solid var(--c, var(--mu-t));
}
.mu-m-e { font-size: 1.6rem; line-height: 1; }
.mu-m-t { flex: 1 1 12rem; min-width: 0; }
.mu-m-t b { display: block; font-size: 1.02rem; }
.mu-m-t span { color: var(--mu-gris); font-size: .85rem; }
.mu-m-c { font-weight: 800; letter-spacing: .1em; color: var(--mu-t); }
.mu-badge { font-size: .72rem; font-weight: 800; text-transform: uppercase;
            letter-spacing: .04em; padding: .25em .6em; border-radius: 999px;
            background: var(--mu-t-pale); color: var(--mu-t); }
.mu-badge.ouvert { background: #f0fdf4; color: #166534; }
.mu-badge.ferme  { background: #f1f5f9; color: var(--mu-gris); }
.mu-badge.pause  { background: #fffbeb; color: #92400e; }

/* ------------------------------------------------------------
   Les mots du nuage, cote Maitre
   ------------------------------------------------------------
   ⚠️ LE ✕ FAIT 34 px DE COTE. Le professeur pilote en circulant dans
      la classe : un emoji a la taille du texte ne se touche pas
      (§7.119, ou un bouton tombe a 16 px avait rendu toute la barre
      inutilisable au doigt).
   ------------------------------------------------------------ */
.mu-nmots { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.mu-nmot { display: inline-flex; align-items: center; gap: .35rem;
           padding: .2rem .25rem .2rem .7rem; border-radius: 999px;
           background: var(--mu-t-pale); color: var(--mu-t);
           font-size: .82rem; }
.mu-nmot b { font-weight: 800; text-transform: uppercase;
             letter-spacing: .03em; }
.mu-nx { width: 34px; height: 34px; min-height: 34px; flex: 0 0 34px;
         display: inline-flex; align-items: center; justify-content: center;
         border: 0; border-radius: 999px; cursor: pointer;
         background: #fff; color: var(--mu-gris);
         font-size: .9rem; line-height: 1; padding: 0; }
.mu-nx:hover, .mu-nx:focus-visible { background: #fee2e2; color: #b91c1c; }
.mu-nx[disabled] { opacity: .5; cursor: default; }

/* ------------------------------------------------------------
   Le QR
   ------------------------------------------------------------ */
.mu-qr { background: #fff; padding: .8rem; border-radius: 14px;
         border: 1px solid var(--mu-bord); display: inline-block; }
.mu-qr svg { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------
   Sous 760 px
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  .mu-page { padding: 1rem .8rem 3rem; }
  .mu-cartes { grid-template-columns: 1fr; }
  .mu-haut { padding: .7rem .8rem; }
}

/* ============================================================
   §7.190 — LA PROJECTION : rejoindre, accueil, réseau, familles
   ============================================================ */

/* Le QR du pied : une taille en vh, jamais en em (§7.190). 19 % de
   la hauteur = ~205 px en 1080p, ~137 px en 720p, soit plus de 3 px
   par module pour un QR de 41 modules. */
.mu-rejoindre { display: flex; align-items: center; gap: .9em; cursor: pointer; }
.mu-qr-pied { width: min(19vh, 15vw); padding: .35em; flex: 0 0 auto; }
.mu-qr-pied img, .mu-qr-grand img { display: block; width: 100%; height: auto; }
.mu-adresse { font-size: 1.25em; font-weight: 800; color: var(--mu-encre); }
.mu-fin-proche { font-size: .9em; font-weight: 700; color: var(--mu-ambre); }

.mu-svc { display: flex; gap: .4em; align-items: center; flex-wrap: wrap;
          transition: opacity .3s ease; }
/* Sans souris depuis 4 s, les boutons de service s'effacent. */
.mu-ecran.calme .mu-svc-boutons { opacity: 0; pointer-events: none; }

.mu-reste { position: absolute; right: 1.4em; bottom: calc(min(19vh, 15vw) + 2.6em);
            background: var(--mu-encre); color: #fff; font-weight: 700;
            padding: .4em .9em; border-radius: 999px; font-size: clamp(12px, .7vw + .8vh, 22px);
            box-shadow: var(--mu-ombre); }

.mu-reseau { position: fixed; left: 50%; top: .8rem; transform: translateX(-50%);
             z-index: 90; background: #7f1d1d; color: #fff; font-weight: 700;
             padding: .55rem 1rem; border-radius: 999px; box-shadow: var(--mu-ombre);
             font-size: .95rem; max-width: calc(100% - 2rem); text-align: center; }

.mu-attente { text-align: center; color: var(--mu-gris); }
.mu-attente b { display: block; font-size: 1.4em; margin: .4em 0; color: var(--mu-encre); }
.mu-attente strong { color: var(--mu-encre); }

/* L'accueil : le QR en grand, tant que personne n'a répondu. */
.mu-accueil { position: absolute; inset: 0; z-index: 40; background: var(--mu-fond);
              display: flex; flex-direction: column; align-items: center; justify-content: center;
              gap: 2.5vh; padding: 3vh 4vw;
              font-size: calc(clamp(12px, .9vw + 1vh, 30px) * var(--mu-z)); }
.mu-accueil[hidden] { display: none; }
.mu-accueil-q { font-size: 2.1em; font-weight: 800; text-align: center; max-width: 34em; line-height: 1.15; }
.mu-accueil-l { display: flex; align-items: center; gap: 5vw; flex-wrap: wrap; justify-content: center; }
.mu-qr-grand { width: min(56vh, 44vw); padding: 1.2vh; border-width: 2px; }
.mu-accueil-t { display: flex; flex-direction: column; gap: .3em; }
.mu-accueil-etape { font-size: 1.3em; color: var(--mu-gris); font-weight: 700; }
.mu-accueil-adr { font-size: 2.2em; font-weight: 800; color: var(--mu-encre); }
.mu-accueil-code { font-size: 5em; font-weight: 900; letter-spacing: .14em; color: var(--mu-t); line-height: 1; }
.mu-accueil-gens { margin-top: .6em; font-size: 1.3em; font-weight: 700; color: var(--mu-vert); }
.mu-accueil .mu-b { font-size: .8em; }

/* Le brainstorming en colonnes (phase 2). */
.mu-familles { width: 100%; height: 100%; display: grid; gap: .8em;
               grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.mu-fam { background: #fff; border: 1px solid var(--mu-bord); border-radius: 16px;
          display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.mu-fam-t { padding: .55em .8em; font-weight: 800; font-size: 1.1em;
            background: var(--mu-t-pale); color: var(--mu-t); }
.mu-fam-t span { float: right; opacity: .7; }
.mu-fam-reste { background: #f8fafc; border-style: dashed; }
.mu-fam-reste .mu-fam-t { background: #f1f5f9; color: var(--mu-gris); }
.mu-fam-c { padding: .6em; display: flex; flex-direction: column; gap: .55em; overflow: hidden; flex: 1 1 auto; }
.mu-fam-c .mu-c { padding: .55em .7em; }
.rangeable .mu-c { cursor: grab; touch-action: none; }
.mu-c.saisie { position: relative; z-index: 30; cursor: grabbing; box-shadow: 0 12px 30px rgba(26,20,48,.25); }
.mu-c.choisie { outline: .2em solid var(--mu-t); outline-offset: 2px; }
.mu-fois { display: inline-block; font-weight: 800; color: #fff; background: var(--mu-t);
           border-radius: 999px; padding: 0 .45em; font-size: .85em; }

/* ============================================================
   §7.190 — LE TÉLÉPHONE DE L'ÉLÈVE
   ============================================================ */
.mu-tel-q { font-size: 1.3rem; }
/* La place du message est réservée : il ne décale plus la page. */
.mu-msg { min-height: 0; margin: 0 0 .6rem; }
.mu-msg:empty { display: none; }
.mu-msg.mu-ok, .mu-msg.mu-err { margin: 0 0 .6rem; }
.mu-prenom { display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.mu-prenom label { margin: 0; flex: 0 0 auto; font-size: .92rem; }
.mu-prenom label span { font-weight: 400; color: var(--mu-gris); }
.mu-prenom input { padding: .5rem .7rem; }
/* ⚠️ LE BOUTON ENVOYER COLLE AU BAS DE L'ÉCRAN : clavier ouvert, il
   passait sous le pli (§7.190). */
.mu-envoi { position: sticky; bottom: 0; z-index: 5; background: #fff;
            padding: .7rem 0 .3rem; margin-top: .4rem;
            display: flex; flex-direction: column; gap: .2rem; align-items: center; }
.mu-m-tel { align-items: flex-start; }
.mu-m-tel.amoi { background: var(--mu-t-pale); }
.mu-aime { min-height: 48px; min-width: 64px; padding: .45rem .8rem; }
.mu-aime.oui { border-color: var(--mu-t); color: var(--mu-t); background: var(--mu-t-pale); }
.mu-m-moi { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
/* « Retirer » : loin du 👍, et assez grand pour ne pas se rater. */
.mu-b-petit { min-height: 44px; padding: .4rem .9rem; font-size: .88rem; }
.mu-rep { display: block; color: var(--mu-vert) !important; font-weight: 700; }
.mu-mesmots { margin-top: 1rem; }
.mu-puces { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.mu-puce { padding: .3rem .7rem; border-radius: 999px; background: var(--mu-t-pale);
           color: var(--mu-t); font-weight: 700; animation: mu-pop .45s cubic-bezier(.2,.9,.3,1.3); }
.mu-puce.fort { background: var(--mu-t); color: #fff; }
.mu-puce i { font-style: normal; opacity: .85; }
.mu-choix button { display: flex; gap: .7rem; align-items: center; }
.mu-minibarres { display: grid; gap: .35rem; margin-top: .6rem; }
.mu-minibarres div { display: grid; grid-template-columns: 1.4rem 1fr 3rem; gap: .5rem; align-items: center; }
.mu-minibarres i { display: block; height: .7rem; border-radius: 999px; background: var(--mu-bord); }
.mu-minibarres .mien i { background: var(--mu-t); }
.mu-minibarres b { text-align: right; font-size: .85rem; }
.mu-minitrex { width: 100%; max-width: 15rem; margin: 0 auto .4rem; aspect-ratio: 400 / 230; }
.mu-minitrex svg { width: 100%; height: 100%; display: block; }
.mu-motel { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin: .3rem 0; }
.mu-motel span { width: 1.45rem; height: 1.9rem; border-bottom: 3px solid var(--mu-encre);
                 display: flex; align-items: center; justify-content: center;
                 font-size: 1.25rem; font-weight: 800; }
.mu-motel i { width: .7rem; font-style: normal; text-align: center; font-weight: 800; color: var(--mu-gris); }
.mu-tour { display: flex; gap: .6rem; align-items: center; margin: .5rem 0; font-size: .9rem; }
.mu-tour b { color: var(--mu-t); }
.mu-tour-barre { flex: 1 1 auto; }
/* Six colonnes et non sept : a 360 px, sept touches faisaient 35 px
   (sous les 44 px d'un doigt) et la derniere debordait (§7.190). */
.mu-clavier { grid-template-columns: repeat(6, 1fr); }
.mu-clavier button { min-height: 0; min-width: 0; }
.mu-clavier-maitre { grid-template-columns: repeat(7, 1fr); }
.mu-clavier button.vote { background: var(--mu-t); border-color: var(--mu-t); color: #fff; }

/* ============================================================
   §7.190 — LE TÉLÉPHONE DU PROFESSEUR (pilotage)
   ============================================================ */
.mu-haut-collant { position: sticky; top: 0; z-index: 20; margin-bottom: 1rem; }
.mu-msg-flottant { position: sticky; top: 4rem; z-index: 19; }
.mu-msg-flottant .mu-ok, .mu-msg-flottant .mu-err { margin: 0 0 .6rem; box-shadow: var(--mu-ombre); }
#pilote > div + div { margin-top: 1rem; }
#pilote > div:empty { display: none; }
.mu-etat { display: grid; gap: .7rem; }
.mu-etat.ouvert { border-color: #bbf7d0; }
.mu-etat.salon { border-color: #fde68a; background: #fffbeb; }
.mu-etat-l { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.mu-etat-b { font-weight: 800; font-size: 1.15rem; }
.mu-etat-g { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.mu-b-geant { min-height: 60px; font-size: 1.15rem; }
.mu-lien { background: none; border: 0; padding: 0; font: inherit; color: var(--mu-t);
           text-decoration: underline; cursor: pointer; min-height: 0; }
.mu-alerte { color: #92400e; font-weight: 700; }
.mu-question-t { font-size: 1.2rem; font-weight: 800; margin: .2rem 0 .6rem; }
.mu-question textarea { margin-top: .5rem; min-height: 3.5rem; }
.mu-relire { border-color: #fde68a; background: #fffbeb; }
.mu-relire h2 { margin-top: 0; }
.mu-cachees summary { cursor: pointer; font-weight: 700; }
.mu-gestes { display: flex; gap: .4rem; flex-wrap: wrap; width: 100%; margin-top: .3rem; }
.mu-gestes .mu-b, .mu-fam-choix .mu-b { min-height: 44px; padding: .4rem .7rem; font-size: .9rem; }
/* ⚠️ LE GESTE DESTRUCTEUR EST LOIN DES AUTRES (§7.190). */
.mu-loin { margin-left: auto; }
.mu-m-maitre { flex-direction: column; align-items: stretch; }
.mu-m-maitre.choisie { outline: 3px solid var(--mu-t); }
.mu-rang { display: inline-block; font-weight: 800; color: var(--mu-t); margin-right: .4rem; }
.mu-phases { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mu-phases .mu-aide { grid-column: 1 / -1; }
.mu-phase { text-align: center; padding: .7rem .5rem; border-radius: 12px; font-weight: 700;
            border: 2px solid var(--mu-bord); cursor: pointer; }
.mu-phase.on { border-color: var(--mu-t); background: var(--mu-t-pale); color: var(--mu-t); }
.mu-fam-ed { grid-column: 1 / -1; display: grid; gap: .4rem; }
.mu-fam-choix { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.mu-repondre { margin-top: .5rem; display: grid; gap: .5rem; }
.mu-sond-l { display: flex; gap: .6rem; align-items: center; padding: .5rem 0;
             border-bottom: 1px solid var(--mu-bord); }
.mu-sond-t { flex: 1 1 auto; min-width: 0; }
.mu-clavier-maitre button { min-height: 44px; }
.mu-case { display: flex; gap: .5rem; align-items: center; font-weight: 600; cursor: pointer; }
.mu-case input { width: auto; }
.mu-tour-maitre { background: var(--mu-t-pale); border-radius: 12px; padding: .7rem;
                  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mu-motel-maitre span { width: 1.3rem; font-size: 1.1rem; }
.mu-garder hr { border: 0; border-top: 1px solid var(--mu-bord); margin: 1rem 0 .8rem; }

/* ============================================================
   §7.190 — LES THÈMES DU « PENDU (LE MOT MYSTÈRE) » (FORMAT.md v2)
   Une image par étape, fondu enchaîné entre deux calques.
   ⛔ Rien qui évoque une pendaison : la menace APPROCHE.
   ============================================================ */
.mu-th { position: relative; height: 100%; width: auto; max-width: 100%;
         aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; border-radius: 14px;
         background: #e2e8f0; }
.mu-th-i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
           opacity: 0; transition: opacity .7s ease; }
.mu-th-i.on { opacity: 1; }
.mu-th.tension { box-shadow: 0 0 0 .25em rgba(220,38,38,.55); }
.mu-th.gagne { box-shadow: 0 0 0 .25em rgba(22,163,74,.6); }

.mu-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; }
.mu-theme { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; padding: .35rem;
            border: 2px solid var(--mu-bord); border-radius: 12px; background: #fff; font: inherit;
            font-size: .85rem; font-weight: 700; cursor: pointer; text-align: center; }
.mu-theme img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.mu-theme-e { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
              font-size: 2rem; background: var(--mu-t-pale); border-radius: 8px; }
.mu-theme.on { border-color: var(--mu-t); background: var(--mu-t-pale); color: var(--mu-t); }

/* ============================================================
   §7.190 — LA BOÎTE À OUTILS (prof.php) : vignettes animées
   ⚠️ Animations en CSS seulement, figées par le bloc reduced-motion
      qui clôt la feuille.
   ============================================================ */
.mu-intro { max-width: 46rem; }
.mu-outil-l { display: flex; flex-direction: column; gap: .3rem; }
.mu-outil-l .mu-outil { flex: 1 1 auto; }
.mu-outils { display: grid; gap: 1rem; margin: 1rem 0 2rem;
             grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.mu-outil { display: flex; flex-direction: column; gap: .35rem; text-align: left;
            background: #fff; border: 1px solid var(--mu-bord); border-top: 4px solid var(--p);
            border-radius: 18px; padding: .9rem 1rem 1rem; font: inherit; color: inherit;
            cursor: pointer; box-shadow: var(--mu-ombre);
            transition: transform .15s ease, box-shadow .15s ease; }
.mu-outil:hover, .mu-outil:focus-visible { transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(26,20,48,.12); outline: none; }
.mu-outil:focus-visible { outline: 3px solid var(--p); outline-offset: 2px; }
.mu-outil-v { display: block; border-radius: 12px; overflow: hidden;
              background: color-mix(in srgb, var(--p) 8%, #fff); background-color: #f8fafc; }
.mu-outil-n { font-weight: 800; font-size: 1.1rem; margin-top: .3rem; }
.mu-outil-q { color: var(--mu-gris); font-size: .9rem; line-height: 1.45; flex: 1 1 auto; }
.mu-outil-a { color: var(--p); font-weight: 800; font-size: .9rem; }

.mu-v { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mu-v text { font-family: system-ui, sans-serif; font-weight: 800; }
/* Le nuage : les mots poussent un à un. */
.mu-v-nuage text { fill: var(--p); transform-box: fill-box; transform-origin: center;
                   animation: mu-v-pousse 4s var(--d) ease-in-out infinite; opacity: 0; }
@keyframes mu-v-pousse { 0% { opacity: 0; transform: scale(.3); } 15%, 85% { opacity: 1; transform: none; }
                         100% { opacity: 0; } }
/* Le sondage : les barres montent. */
.mu-v-sondage rect { fill: var(--p); transform-box: fill-box; transform-origin: bottom;
                     animation: mu-v-monte 3.6s var(--d) cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes mu-v-monte { 0% { transform: scaleY(.05); } 40%, 85% { transform: scaleY(var(--h)); }
                        100% { transform: scaleY(.05); } }
/* Les post-it tombent. */
.mu-v-postit rect { fill: var(--p); opacity: .85; transform-box: fill-box; transform-origin: center;
                    animation: mu-v-tombe 4s var(--d) ease-out infinite; }
@keyframes mu-v-tombe { 0% { transform: translateY(-120%) rotate(0); opacity: 0; }
                        20%, 85% { transform: translateY(0) rotate(var(--r)); opacity: .85; } 100% { opacity: 0; } }
/* Les questions : les mains se lèvent, la plus soutenue en tête. */
.mu-v-questions rect { fill: color-mix(in srgb, var(--p) 18%, #fff); fill: #ede9fe; }
.mu-v-questions g { animation: mu-v-leve 3.6s var(--d) ease-in-out infinite; }
.mu-v-questions text { fill: var(--p); }
@keyframes mu-v-leve { 0%, 100% { transform: translateX(-6px); opacity: .3; } 25%, 80% { transform: none; opacity: 1; } }
/* Le brainstorming : les idées se rangent en colonnes. */
.mu-v-brain .col { fill: #fff; stroke: #cbd5e1; }
.mu-v-brain rect:not(.col) { fill: var(--p); animation: mu-v-range 4.4s var(--d) ease-in-out infinite; }
@keyframes mu-v-range { 0% { transform: translate(40px, 50px); opacity: 0; } 25%, 85% { transform: none; opacity: 1; }
                        100% { opacity: 0; } }
/* Le pendu : la menace avance, le bonhomme détale (aucune corde). */
.mu-v-pendu .trex { fill: var(--p); animation: mu-v-avance 4s ease-in-out infinite; }
.mu-v-pendu .fuit { animation: mu-v-court .5s ease-in-out infinite alternate; }
@keyframes mu-v-avance { 0% { transform: translateX(16px); } 70%, 100% { transform: translateX(-36px); } }
@keyframes mu-v-court { to { transform: translateY(-2px); } }

/* Le dialogue */
.mu-pop { position: fixed; inset: 0; background: rgba(26,20,48,.5); z-index: 60; padding: 1rem; overflow: auto; }
.mu-pop-boite { max-width: 36rem; margin: 3vh auto; animation: mu-entre .3s ease; }
.mu-form-t { display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; }
.mu-form-t span { font-size: 2rem; }
.mu-form-t h2 { margin: 0; font-size: 1.3rem; color: var(--p); }
.mu-leger { font-weight: 400; color: var(--mu-gris); }
.mu-modeles { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .2rem; }
.mu-modeles .mu-b { min-height: 36px; padding: .3rem .7rem; font-size: .85rem; }
.mu-plus { margin-top: 1rem; border-top: 1px solid var(--mu-bord); padding-top: .6rem; }
.mu-plus summary { cursor: pointer; font-weight: 700; color: var(--mu-gris); }
.mu-form-g { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.3rem; align-items: center; }
.mu-form-g .mu-b-geant { flex: 1 1 14rem; }
.mu-pret { text-align: center; }
.mu-pret-e { font-size: 2.6rem; line-height: 1; animation: mu-pop .5s cubic-bezier(.2,.9,.3,1.3); }
.mu-pret h2 { margin: .3rem 0 .2rem; }
.mu-pret-code { font-size: 2.6rem; font-weight: 800; letter-spacing: .14em; color: var(--mu-t); }
.mu-pret-g { display: grid; gap: .5rem; margin-top: 1rem; }
.mu-act-g { display: flex; gap: .4rem; flex-wrap: wrap; width: 100%; }
@media (min-width: 900px) { .mu-act-g { width: auto; } }

/* Le clavier du prof sous le pendu projeté : touches ≥ 56 px (TBI). */
.mu-clavier-proj { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr));
                   gap: .3em; width: min(100%, 60em); flex: 0 0 auto; }
.mu-clavier-proj button { min-height: max(56px, 5.5vh); font: inherit; font-weight: 800;
                          font-size: max(18px, 1.2em); border-radius: 10px; cursor: pointer;
                          border: 1px solid var(--mu-bord); background: #fff; color: var(--mu-encre); }
.mu-clavier-proj button.juste { background: #dcfce7; border-color: #86efac; color: #166534; }
.mu-clavier-proj button.ratee { background: #fee2e2; border-color: #fecaca; color: #991b1b;
                                text-decoration: line-through; }
.mu-clavier-proj button[disabled] { cursor: default; opacity: .8; }
/* Le champ du mot secret : masqué, avec un œil pour vérifier. */
.mu-secret { display: flex; gap: .4rem; }
.mu-secret input { flex: 1 1 auto; }
.mu-aide-ecran { display: grid; gap: .6rem; margin: .8rem 0; }
.mu-aide-ecran > div { border: 1px solid var(--mu-bord); border-radius: 12px; padding: .7rem .8rem; background: #f8fafc; }
.mu-aide-ecran b { display: block; margin-bottom: .2rem; }

/* L'indice du pendu : caché par défaut, la lampe l'allume (§7.190). */
.mu-indice-l { display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 1.6em; }
.mu-indice { opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap;
             transition: opacity .6s ease, max-width .8s ease; }
.mu-indice.vu { opacity: 1; max-width: 40em; }
.mu-lampe { border: 0; background: none; cursor: pointer; font-size: 1.4em; line-height: 1;
            filter: grayscale(1) opacity(.45); transition: filter .5s ease, transform .3s ease; }
.mu-lampe.allumee { filter: drop-shadow(0 0 .35em #fde047); transform: scale(1.12); }

/* ============================================================
   §7.190 — LA DÉMO D'UN OUTIL (demo.php, sans serveur)
   ============================================================ */
/* La bulle se pose dans le PIED, à droite du QR : au-dessus du corps,
   elle cachait justement ce qu'elle commentait (le clavier du pendu). */
.mu-demo-bulle { position: absolute; right: 1em; bottom: .5em;
                 z-index: 50; width: min(40em, calc(100% - min(19vh, 15vw) - 16em)); background: var(--mu-encre); color: #fff;
                 border-radius: 16px; padding: .8em 1em; box-shadow: 0 16px 40px rgba(26,20,48,.35);
                 font-size: clamp(13px, .7vw + .8vh, 22px); }
.mu-demo-t { font-weight: 700; line-height: 1.35; min-height: 2.7em; }
.mu-demo-barre { margin: .4em 0 !important; }
.mu-demo-t.neuve { animation: mu-entre .4s ease; }
.mu-demo-barre { height: 4px; background: rgba(255,255,255,.2); border-radius: 99px; margin: .6em 0; overflow: hidden; }
.mu-demo-barre i { display: block; height: 100%; width: 0; background: var(--mu-t); }
.mu-demo-g { display: flex; gap: .4em; justify-content: flex-end; flex-wrap: wrap; }
.mu-demo-g .mu-b { min-height: 38px; padding: .4em .8em; font-size: .85em; }
.mu-qr-faux { aspect-ratio: 1; background:
  repeating-conic-gradient(#1a1430 0 25%, #fff 0 50%) 0 0 / 22% 22%; opacity: .85; }
.mu-qr-pied.mu-qr-faux { height: min(19vh, 15vw); }
/* Le cadre de démo dans la boîte à outils */
.mu-demo-cadre { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 12px; display: block;
                 background: var(--mu-fond); }
.mu-pop-boite.large { max-width: 64rem; }
.mu-outil-demo { align-self: flex-start; font-size: .85rem; }

/* Le compte rendu du nuage, à l'écran (§7.190). */
.mu-cr { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .92rem; }
.mu-cr th, .mu-cr td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--mu-bord); }
.mu-cr td:nth-child(2) { font-weight: 800; text-align: right; width: 5.5rem; }
.mu-cr th:nth-child(2) { text-align: right; }
.mu-cr td:nth-child(3) { color: var(--mu-gris); }

/* Les autres outils de la classe (§7.190) */
.mu-autres-g { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.mu-autres-g .mu-b { min-height: 40px; padding: .45rem .8rem; font-size: .9rem; }
.mu-v-otableau .tab { fill: #fff; stroke: #cbd5e1; stroke-width: 2; }
.mu-v-otableau .tel { fill: var(--p); }
.mu-v-otableau .page rect { fill: #f8fafc; stroke: var(--p); stroke-width: 1.5; }
.mu-v-otableau .page { animation: mu-v-apparait 3.6s ease-in-out infinite; }
.mu-v-otableau .flash { fill: #fff; animation: mu-v-flash 3.6s ease-out infinite; }
@keyframes mu-v-apparait { 0%, 25% { opacity: 0; transform: translateX(-30px) scale(.6); } 45%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mu-v-flash { 0%, 15% { opacity: 0; } 20% { opacity: 1; } 35%, 100% { opacity: 0; } }
.mu-v-plan .bureau { fill: #475569; }
.mu-v-plan .tables rect { fill: #fff; stroke: #cbd5e1; stroke-width: 2; }
.mu-v-plan .eleve { fill: var(--p); }
.mu-v-plan .eleve.a { animation: mu-v-echange-a 4s ease-in-out infinite; }
.mu-v-plan .eleve.b { animation: mu-v-echange-b 4s ease-in-out infinite; }
@keyframes mu-v-echange-a { 0%, 30% { transform: none; } 60%, 100% { transform: translate(90px, 30px); } }
@keyframes mu-v-echange-b { 0%, 30% { transform: none; } 60%, 100% { transform: translate(-90px, -30px); } }
.mu-v-explique .q { fill: #64748b; }
.mu-v-explique .rep rect { fill: var(--p); }
.mu-v-explique .rep { animation: mu-v-apparait2 4s ease-in-out infinite; }
.mu-v-explique .lignes { stroke-dasharray: 90; animation: mu-v-ecrit 4s ease-in-out infinite; }
@keyframes mu-v-apparait2 { 0%, 15% { opacity: 0; transform: translateY(8px); } 30%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mu-v-ecrit { 0%, 30% { stroke-dashoffset: 90; } 70%, 100% { stroke-dashoffset: 0; } }

/* Retest du 30/10 : clavier du prof ouvert → la scène cède de la place ;
   le clavier garde une taille fixe (hors `--mu-auto`). */
.mu-pendu.avec-clavier .mu-scene-h { flex-basis: 34%; }
.mu-clavier-proj { font-size: clamp(14px, 1.1vw + .6vh, 26px); }
.mu-accueil #b-accueil-fermer { font-size: 1em; min-height: 48px; }

/* ============================================================
   §7.190 quinquies — LE MUR DE POST-IT (écran projeté)
   Papier pastel, rotation stable, scotch / punaise / coin corné /
   bord déchiré, ombre portée ; police manuscrite lisible si elle est
   là (assets/mu-polices-postit.css), repli propre sinon.
   ============================================================ */
.mu-mur-pi { gap: 1.2em 1.1em; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); padding: 1.1em 1.3em; }
.mu-c.mu-pi { position: relative; border: 0; border-radius: 2px; padding: 1.1em 1em .8em;
  background: var(--pi, #fff59d);
  background-image: linear-gradient(170deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%),
                    linear-gradient(0deg, rgba(0,0,0,.035), rgba(0,0,0,0) 30%);
  transform: rotate(var(--rot, 0deg));
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 .5em .9em -.3em rgba(26,20,48,.35), .15em .9em 1.2em -.8em rgba(26,20,48,.4);
  /* `aspect-ratio` sans `min-height: 0` : la hauteur n'est qu'un
     MINIMUM, un texte qui ne tient pas au plancher allonge le papier. */
  aspect-ratio: 1 / .92; display: flex; flex-direction: column; }
.mu-c.mu-pi .mu-c-txt { font-family: 'Mu Main', 'Patrick Hand', 'Kalam', 'Segoe Print', 'Comic Sans MS',
  'Chalkboard SE', system-ui, sans-serif; font-size: 1.3em; line-height: 1.18; color: #2b2340; flex: 1 1 auto;
  /* §7.190 sexies : la taille est calculée post-it par post-it ; un mot
     trop long se coupe plutôt que de déborder, et rien n'est rogné. */
  overflow-wrap: anywhere; word-break: normal; hyphens: auto;
  display: flex; flex-direction: column; justify-content: center; }
.mu-c.mu-pi .mu-c-bas { color: #5b5470; }
.mu-c.mu-pi .mu-c-aime { color: #c2185b; font-size: 1.1em; }
.mu-c.mu-pi.neuf { animation: mu-pose .6s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes mu-pose { from { opacity: 0; transform: translateY(-1.2em) rotate(calc(var(--rot) * 3)) scale(1.08); }
                     to { opacity: 1; transform: rotate(var(--rot)); } }
/* forme 0 : un morceau de scotch en haut */
.mu-c.mu-pi.forme-0::before { content: ''; position: absolute; top: -.55em; left: 50%; width: 3.6em; height: 1.1em;
  transform: translateX(-50%) rotate(-3deg); background: rgba(255,255,255,.55);
  box-shadow: 0 1px 2px rgba(0,0,0,.12); }
/* forme 1 : une punaise */
.mu-c.mu-pi.forme-1::before { content: ''; position: absolute; top: .35em; left: 50%; width: .9em; height: .9em;
  margin-left: -.45em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a80, #c62828 70%);
  box-shadow: 0 .15em .2em rgba(0,0,0,.35); }
/* forme 2 : le coin corné (un pli dessiné par-dessus) */
.mu-c.mu-pi.forme-2::before { content: ''; position: absolute; top: 0; right: 0; width: 1.55em; height: 1.55em;
  background: linear-gradient(225deg, var(--mu-fond) 50%, rgba(0,0,0,.14) 50%, rgba(255,255,255,.75) 62%, var(--pi) 75%); }
/* forme 3 : un rectangle au bord bas déchiré */
.mu-c.mu-pi.forme-3 { aspect-ratio: 1 / .72; padding-bottom: 1.2em;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 100%, 84% 95%, 75% 100%, 66% 95%, 57% 100%, 48% 95%,
                     39% 100%, 30% 95%, 21% 100%, 12% 95%, 4% 100%, 0 95%); }
.mu-c.mu-pi.cache-place { display: none; }
.mu-c.mu-pi.retire { opacity: 0; transform: rotate(var(--rot)) scale(.85); transition: opacity .3s, transform .3s; }
.mu-pi-x { position: absolute; top: .3em; right: .3em; width: 1.9em; height: 1.9em; border-radius: 50%;
  border: 0; background: rgba(26,20,48,.75); color: #fff; font-size: .8em; cursor: pointer;
  opacity: 0; transition: opacity .2s; }
.mu-c.mu-pi:hover .mu-pi-x, .mu-pi-x:focus-visible { opacity: 1; }
.mu-annuler { position: absolute; left: 50%; bottom: calc(min(19vh, 15vw) + 2.4em); transform: translateX(-50%);
  z-index: 60; background: var(--mu-encre); color: #fff; padding: .6em 1em; border-radius: 999px;
  font-weight: 700; font-size: clamp(13px, .7vw + .8vh, 22px); }
.mu-annuler button { margin-left: .6em; background: #fff; color: var(--mu-encre); border: 0;
  border-radius: 999px; padding: .3em .9em; font: inherit; cursor: pointer; }
/* Sur le téléphone, la liste du post-it prend la couleur du papier */
.mu-m-tel.pi { border-left-color: transparent; }

/* ============================================================
   §7.190 septies — LA PAGE ÉLÈVE « Tape le code » (code.missionstmg.re)
   ============================================================ */
.mu-code-page { min-height: 100svh; margin: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 1rem;
  background: radial-gradient(circle at 20% 15%, #fde68a 0, transparent 35%),
              radial-gradient(circle at 85% 25%, #f9a8d4 0, transparent 35%),
              radial-gradient(circle at 50% 95%, #a5f3fc 0, transparent 40%), #f5f3ff; }
.mu-code-boite { width: min(26rem, 100%); background: #fff; border-radius: 28px; padding: 1.6rem 1.3rem 1.3rem;
  box-shadow: 0 20px 50px rgba(95,61,196,.18); text-align: center; }
.mu-code-boite h1 { font-size: 2rem; margin: .4rem 0 .2rem; }
.mu-code-sous { color: var(--mu-gris); margin: 0 0 1rem; }
.mu-code-bulles { display: flex; justify-content: center; gap: .35rem; font-size: 1.6rem; }
.mu-code-bulles span { animation: mu-flotte 3s ease-in-out infinite alternate; }
.mu-code-bulles span:nth-child(2n) { animation-delay: -1.5s; }
@keyframes mu-flotte { to { transform: translateY(-6px); } }
.mu-code-grand { width: 100%; font-size: 2.6rem; font-weight: 900; letter-spacing: .3em; text-align: center;
  text-transform: uppercase; padding: .8rem .3rem .8rem .6em; border: 3px solid #ddd6fe; border-radius: 18px;
  color: #5f3dc4; }
.mu-code-grand:focus { outline: none; border-color: #5f3dc4; box-shadow: 0 0 0 5px rgba(95,61,196,.15); }
.mu-code-entrer { margin-top: 1rem; min-height: 56px; font-size: 1.2rem; background: #5f3dc4; border-color: #5f3dc4; }
.mu-code-aide { color: var(--mu-gris); font-size: .9rem; margin: 1rem 0 0; }
.mu-code-pied { margin-top: 1.2rem; font-size: .8rem; }
.mu-code-pied a { color: #7c6ba8; }
.mu-cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.mu-ou-code-adr { font-size: clamp(1.6rem, 6vw, 2.8rem); font-weight: 900; color: #5f3dc4; margin: .4rem 0 .6rem; }

/* ============================================================
   §7.190 nonies — LE SONDAGE REFAIT (« comme pour Explique »)
   Une couleur franche et douce par lettre, partagée par le tableau,
   le téléphone et le pilotage.
   ============================================================ */
:root { --sd-0: #3b82f6; --sd-1: #ec4899; --sd-2: #f59e0b; --sd-3: #10b981;
        --sd-4: #8b5cf6; --sd-5: #14b8a6; --sd-6: #f97316; --sd-7: #ef4444; }
.mu-sd-lettre { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1.9em; height: 1.9em; border-radius: .6em; background: var(--sd, var(--mu-t)); color: #fff;
  font-weight: 900; box-shadow: 0 .25em .6em -.2em var(--sd, var(--mu-t)); }

/* --- Le tableau --- */
.mu-sd { position: relative; flex: 0 0 auto; width: min(56em, 100%); padding: 1.4em 1.6em 1.6em; border-radius: 1.4em;
  background: rgba(255,255,255,.88); box-shadow: 0 1.2em 3em -1.2em rgba(26,20,48,.25);
  overflow: hidden; isolation: isolate; font-family: 'Mu Outfit', system-ui, sans-serif; }
.mu-sd-halo { position: absolute; z-index: -1; width: 26em; height: 26em; border-radius: 50%;
  filter: blur(60px); opacity: .35; pointer-events: none; }
.mu-sd-halo.a { background: #c4b5fd; top: -12em; left: -8em; animation: mu-derive1 26s ease-in-out infinite alternate; }
.mu-sd-halo.b { background: #fbcfe8; bottom: -14em; right: -8em; animation: mu-derive2 32s ease-in-out infinite alternate; }
@keyframes mu-derive1 { to { transform: translate(6em, 4em) scale(1.08); } }
@keyframes mu-derive2 { to { transform: translate(-5em, -4em) scale(.92); } }
.mu-sd-liste { display: grid; gap: .8em; }
.mu-sd-l { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  column-gap: .8em; row-gap: .35em; align-items: center;
  animation: mu-sd-entre .5s calc(var(--i) * .08s) cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes mu-sd-entre { from { opacity: 0; transform: translateY(.8em); } }
.mu-sd-l .mu-sd-lettre { grid-row: 1 / 3; width: 2.4em; height: 2.4em; font-size: 1.15em; }
.mu-sd-tx { font-size: 1.25em; font-weight: 700; color: var(--mu-encre); }
.mu-sd-val { text-align: right; white-space: nowrap; }
.mu-sd-val b { font-size: 1.6em; font-weight: 900; color: var(--sd); font-family: 'Mu Manrope', system-ui, sans-serif; }
.mu-sd-val small { display: block; color: var(--mu-gris); font-weight: 600; }
.mu-sd-piste { grid-column: 2 / 4; height: 1.5em; border-radius: 999px; background: rgba(26,20,48,.06); overflow: hidden; }
.mu-sd-piste i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--sd), color-mix(in srgb, var(--sd) 70%, #fff));
  transition: width 1.1s cubic-bezier(.34,1.45,.64,1); }
.mu-sd-l.gagne .mu-sd-piste i { box-shadow: 0 0 1em color-mix(in srgb, var(--sd) 60%, transparent); }
.mu-sd-l.gagne .mu-sd-lettre { animation: mu-sd-brille 1.6s ease-in-out infinite alternate; }
@keyframes mu-sd-brille { to { transform: scale(1.12); box-shadow: 0 0 1.2em var(--sd); } }
/* Caché ou vide : pas de barres à zéro — un grand compteur et l'attente. */
.mu-sd-attente { display: none; flex-direction: column; align-items: center; gap: .4em; margin-bottom: 1.1em; }
.mu-sd.cache .mu-sd-attente, .mu-sd.vide .mu-sd-attente { display: flex; }
.mu-sd.cache .mu-sd-piste, .mu-sd.cache .mu-sd-val, .mu-sd.vide .mu-sd-piste { visibility: hidden; height: 0; }
.mu-sd.cache .mu-sd-l, .mu-sd.vide .mu-sd-l { grid-template-rows: auto; }
.mu-sd-compte { display: flex; align-items: baseline; gap: .4em; }
.mu-sd-compte b { font-size: 4em; font-weight: 900; color: var(--mu-t); font-family: 'Mu Manrope', system-ui, sans-serif; line-height: 1; }
.mu-sd-compte span { font-size: 1.5em; font-weight: 700; color: var(--mu-gris); }
.mu-sd-compte.saute b { animation: mu-pop .5s cubic-bezier(.2,.9,.3,1.4); }
.mu-sd-points { display: flex; gap: .4em; }
.mu-sd-points i { width: .55em; height: .55em; border-radius: 50%; background: var(--mu-t); opacity: .3;
  animation: mu-sd-point 1.2s ease-in-out infinite; }
.mu-sd-points i:nth-child(2) { animation-delay: .2s; } .mu-sd-points i:nth-child(3) { animation-delay: .4s; }
@keyframes mu-sd-point { 50% { opacity: 1; transform: translateY(-.3em); } }
.mu-sd-suspense { display: none; font-size: 1.6em; font-weight: 800; color: var(--mu-t); }
.mu-sd.suspense .mu-sd-attente { display: flex; }
.mu-sd.suspense .mu-sd-compte { display: none; }
.mu-sd.suspense .mu-sd-suspense { display: block; animation: mu-sd-roule .15s linear infinite alternate; }
@keyframes mu-sd-roule { to { transform: translateX(.08em) rotate(.6deg); } }
/* Le donut */
.mu-sd-donut { display: none; width: min(22em, 60%); margin: 0 auto 1em; }
.mu-sd.donut { display: grid; grid-template-columns: minmax(10em, 20em) 1fr; align-items: center; column-gap: 2em; }
.mu-sd.donut .mu-sd-attente { grid-column: 1 / -1; }
.mu-sd.donut .mu-sd-donut { display: block; grid-column: 1; grid-row: 2; width: 100%; margin: 0; }
.mu-sd.donut .mu-sd-liste { grid-column: 2; grid-row: 2; }
.mu-sd.donut .mu-sd-piste { display: none; }
.mu-sd-donut circle { fill: none; stroke-width: 16; transition: stroke-dasharray 1.1s cubic-bezier(.34,1.3,.64,1), stroke-dashoffset 1.1s ease; }
.mu-sd-donut-n { font-size: 22px; font-weight: 900; fill: var(--mu-encre); font-family: 'Mu Manrope', system-ui, sans-serif; }
.mu-sd-donut-l { font-size: 9px; fill: var(--mu-gris); }
/* Les confettis, discrets */
.mu-sd-confettis { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mu-sd-confettis i { position: absolute; top: -1em; width: .5em; height: .8em; border-radius: .15em;
  animation: mu-sd-tombe 2.6s cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes mu-sd-tombe { to { transform: translate(var(--dx), 40em) rotate(540deg); opacity: 0; } }

/* --- Le téléphone --- */
.mu-sdt-cartes { display: grid; gap: .7rem; margin: .4rem 0 1rem; }
.mu-sdt-c { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 64px; padding: .8rem 1rem;
  border: 0; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; font-weight: 700; font-size: 1.08rem;
  color: var(--mu-encre); background: color-mix(in srgb, var(--sd) 12%, #fff);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sd) 35%, transparent), 0 .4rem 1rem -.6rem var(--sd);
  transition: transform .15s ease, box-shadow .2s ease;
  animation: mu-sd-entre .45s calc(var(--i) * .06s) cubic-bezier(.2,.9,.3,1.2) both; }
.mu-sdt-c:active { transform: scale(.97); }
.mu-sdt-c.pris { background: var(--sd); color: #fff; transform: scale(1.02); }
.mu-sdt-c.pris .mu-sd-lettre { background: #fff; color: var(--sd); }
.mu-sdt-c .mu-sd-lettre { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
.mu-sdt-ok { text-align: center; background: #fff; border-radius: 22px; padding: 1.2rem 1rem;
  box-shadow: var(--mu-ombre); }
.mu-sdt-coche { width: 3.2rem; height: 3.2rem; margin: 0 auto .4rem; border-radius: 50%; background: #10b981;
  color: #fff; font-size: 1.8rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
  animation: mu-pop .5s cubic-bezier(.2,.9,.3,1.4); }
.mu-sdt-choix { display: inline-flex; align-items: center; gap: .6rem; margin: .7rem 0 .2rem; padding: .5rem .9rem;
  border-radius: 14px; background: color-mix(in srgb, var(--sd) 12%, #fff); font-weight: 700; }
.mu-sdt-avec { font-size: 1.1rem; margin: .8rem 0 .4rem; }
.mu-sdt-avec b { font-size: 1.5rem; color: var(--mu-t); }
.mu-sdt-changer { margin-top: 1rem; border: 2px solid var(--mu-t); color: var(--mu-t); font-weight: 800; }
.mu-sdt-barres { display: grid; gap: .5rem; text-align: left; margin-top: .6rem; }
.mu-sdt-b { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem;
  animation: mu-sd-entre .4s calc(var(--i) * .07s) ease both; }
.mu-sdt-b .mu-sd-lettre { width: 1.9rem; height: 1.9rem; font-size: .95rem; }
.mu-sdt-b small { grid-column: 2 / 4; margin-top: -.3rem; font-weight: 800; color: var(--sd); font-size: .78rem; }
.mu-sdt-b.mien { background: color-mix(in srgb, var(--sd) 10%, transparent); border-radius: 12px; padding: .25rem .35rem; }
.mu-sdt-piste { display: block; height: .8rem; border-radius: 999px; background: rgba(26,20,48,.07); overflow: hidden; }
.mu-sdt-piste i { display: block; height: 100%; border-radius: 999px; background: var(--sd, var(--mu-t));
  width: var(--w, 0); animation: mu-sdt-monte 1s .2s cubic-bezier(.34,1.45,.64,1) both; }
@keyframes mu-sdt-monte { from { width: 0; } }
/* --- Le pilotage --- */
.mu-sond-l .mu-sd-lettre { width: 2rem; height: 2rem; }
.mu-sond-l .mu-sdt-piste { margin-top: .3rem; }
.mu-sond-l small { color: var(--mu-gris); font-weight: 600; }

/* ============================================================
   §7.190 decies — LE PENDU, L'IMAGE EN STAR + BULLES DE BD
   Avec un thème : l'image d'étape remplit tout le corps (cover, zoom
   lent « Ken Burns »), et tout le reste vient PAR-DESSUS, sur les
   bords : indice et tour en haut, lettres ratées en haut à droite,
   l'issue, le mot (bandeau sombre, lettres blanches) et le clavier en
   bas. Les bulles restent en haut / au milieu : le mot est en bas.
   ============================================================ */
.mu-pendu { position: relative; }
/* Hors plein écran, le bas s'efface : ses enfants reprennent leur ordre. */
.mu-pendu:not(.plein) .mu-bas { display: contents; }
.mu-pendu:not(.plein) .mu-scene-h  { order: 0; position: relative; }
.mu-pendu:not(.plein) .mu-indice-l { order: 1; }
.mu-pendu:not(.plein) .mu-mot      { order: 2; }
.mu-pendu:not(.plein) .mu-tour-proj{ order: 3; }
.mu-pendu:not(.plein) .mu-ratees   { order: 4; }
.mu-pendu:not(.plein) .mu-fin      { order: 5; }
.mu-pendu:not(.plein) .mu-clavier-proj { order: 6; }

.mu-pendu.plein { display: block; overflow: hidden; border-radius: 18px; background: #0f0a1e;
                  box-shadow: 0 18px 50px rgba(15,10,30,.35); }
.mu-pendu.plein .mu-scene-h { position: absolute; inset: 0; display: block; }
.mu-pendu.plein .mu-th { width: 100%; height: 100%; max-width: none; aspect-ratio: auto;
                         border-radius: 0; background: #0f0a1e; box-shadow: none; }
.mu-pendu.plein .mu-th-i.on { animation: mu-kenburns 22s ease-in-out infinite alternate; }
@keyframes mu-kenburns { from { transform: scale(1.02) translate(0, 0); }
                         to   { transform: scale(1.1) translate(-1.2%, -1%); } }
/* Un voile en bas et en haut, pour lire le mot et l'indice sur l'image. */
.mu-pendu.plein .mu-scene-h::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,10,30,.45), transparent 18%, transparent 55%, rgba(15,10,30,.72)); }
.mu-pendu.plein .mu-scene-h.alerte { background: none; }
.mu-pendu.plein .mu-th.tension { box-shadow: inset 0 0 6em rgba(220,38,38,.55); }

.mu-pendu.plein .mu-indice-l { position: absolute; top: .7em; left: .8em; z-index: 3; max-width: 46%;
  justify-content: flex-start; color: #fff; }
.mu-pendu.plein .mu-indice { color: #fff; font-style: italic; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.mu-pendu.plein .mu-lampe { filter: grayscale(1) opacity(.7) drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.mu-pendu.plein .mu-lampe.allumee { filter: drop-shadow(0 0 .35em #fde047); }
.mu-pendu.plein .mu-tour-proj { position: absolute; top: .6em; left: 50%; transform: translateX(-50%);
  z-index: 3; width: min(24em, 44%); padding: .35em .8em .45em; border-radius: 14px; color: #fff;
  background: rgba(15,10,30,.6); backdrop-filter: blur(6px); }
.mu-pendu.plein .mu-tour-proj:empty { display: none; }
.mu-pendu.plein .mu-tour-l { font-size: 1.15em; }
.mu-pendu.plein .mu-tour-l b { color: #fde047; }
.mu-pendu.plein .mu-tour-calme { color: rgba(255,255,255,.85); font-size: .95em; }
.mu-pendu.plein .mu-tour-barre { background: rgba(255,255,255,.2); }
.mu-pendu.plein .mu-tour-barre i { background: #fde047; }
.mu-tour-s { display: inline-block; min-width: 2.2em; font-variant-numeric: tabular-nums;
             font-weight: 900; color: var(--mu-t); }
.mu-pendu.plein .mu-tour-s { color: #fde047; }
.mu-pendu.plein .mu-ratees { position: absolute; top: .7em; right: .8em; z-index: 3; max-width: 22%;
  justify-content: flex-end; font-size: 1.05em; color: #fecaca; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.mu-pendu.plein .mu-ratees:empty { display: none; }

.mu-pendu.plein .mu-bas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5em; padding: 0 1em .9em; }
.mu-pendu.plein .mu-mot { padding: .15em .7em .35em; border-radius: 16px; max-width: 100%;
  background: rgba(15,10,30,.62); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mu-pendu.plein .mu-l { color: #fff; border-bottom-color: rgba(255,255,255,.9); }
.mu-pendu.plein .mu-l.pleine { color: #fde047; }
.mu-pendu.plein .mu-fin { min-height: 0; font-size: 1.25em; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.mu-pendu.plein .mu-fin:empty { display: none; }
.mu-pendu.plein .mu-clavier-proj { gap: .25em; }
.mu-pendu.plein .mu-clavier-proj button { background: rgba(255,255,255,.88); border-color: transparent;
  min-height: max(44px, 4.6vh); }
.mu-pendu.plein .mu-clavier-proj button.juste { background: rgba(220,252,231,.92); }
.mu-pendu.plein .mu-clavier-proj button.ratee { background: rgba(254,226,226,.75); }

/* Le choc d'une erreur : un éclair rouge et l'image qui « encaisse ». */
.mu-pendu.plein::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; background: radial-gradient(closest-side, transparent 40%, rgba(220,38,38,.65)); }
.mu-pendu.plein.choc::before { animation: mu-eclair .8s ease-out; }
.mu-pendu.plein.choc .mu-th { animation: mu-encaisse .6s cubic-bezier(.2,.9,.3,1.2); }
@keyframes mu-eclair { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mu-encaisse { 0% { transform: scale(1); } 30% { transform: scale(1.06) rotate(-.6deg); }
                         60% { transform: scale(.99) rotate(.3deg); } 100% { transform: none; } }
/* Gagné : halo vert, mot vert. Perdu : vignette sombre. */
.mu-pendu.plein.gagne { box-shadow: 0 0 0 .3em #22c55e, 0 18px 50px rgba(22,163,74,.4); }
.mu-pendu.plein.gagne .mu-mot { background: rgba(21,128,61,.82); animation: mu-pop .6s cubic-bezier(.2,.9,.3,1.3); }
.mu-pendu.plein.gagne .mu-l.pleine { color: #fff; }
.mu-pendu.plein.gagne .mu-fin { font-size: 2em; animation: mu-pop .6s cubic-bezier(.2,.9,.3,1.3); }
.mu-pendu.plein.perdu .mu-scene-h::after { background: radial-gradient(closest-side, transparent 55%, rgba(15,10,30,.75)),
  linear-gradient(to bottom, transparent 55%, rgba(15,10,30,.8)); }
.mu-pendu.plein.perdu .mu-fin { font-size: 1.5em; color: #fecaca; }

/* Les bulles de BD et les cartouches du narrateur. */
.mu-bulles { position: absolute; inset: 0; z-index: 2; pointer-events: none;
             font-family: 'Mu Main', 'Patrick Hand', 'Kalam', 'Segoe Print', 'Comic Sans MS', cursive; }
.mu-pendu.plein .mu-bulles { top: 4.4em; bottom: 32%; }
.mu-bulle { position: absolute; max-width: 27%; padding: .4em .75em; line-height: 1.2;
  font-size: 1.1em; color: #1a1430; animation: mu-bulle-pop .55s cubic-bezier(.2,.9,.3,1.35) both;
  animation-delay: calc(var(--i, 0) * .45s); }
.mu-bulle.parle { background: #fff; border: .14em solid #1a1430; border-radius: 1.1em;
  box-shadow: .18em .22em 0 rgba(26,20,48,.85); }
.mu-bulle.parle small { display: block; font-size: .62em; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--mu-t); font-family: 'Mu Outfit', system-ui, sans-serif; }
.mu-bulle.parle::after { content: ''; position: absolute; bottom: -.62em; left: 1.4em; width: .9em; height: .9em;
  background: #fff; border-right: .14em solid #1a1430; border-bottom: .14em solid #1a1430;
  transform: skewX(25deg) rotate(45deg); }
.mu-bulle.narr { background: #fde68a; border: .1em solid #1a1430; border-radius: .2em; font-size: 1em;
  box-shadow: .15em .18em 0 rgba(26,20,48,.8); }
.mu-bulle.pos-hg { top: 0; left: 2.5%; }
.mu-bulle.pos-hc { top: 0; left: 50%; translate: -50% 0; }
.mu-bulle.pos-hd { top: 0; right: 2.5%; }
.mu-bulle.pos-hd.parle::after { left: auto; right: 1.4em; transform: skewX(-25deg) rotate(45deg); }
.mu-bulle.pos-mg { top: 45%; left: 2.5%; }
.mu-bulle.pos-md { top: 45%; right: 2.5%; }
/* Deux bulles au même endroit : la seconde descend d'un cran. */
.mu-bulle.pos-hc ~ .mu-bulle.pos-hc, .mu-bulle.pos-hg ~ .mu-bulle.pos-hg,
.mu-bulle.pos-hd ~ .mu-bulle.pos-hd { top: 30%; }
@keyframes mu-bulle-pop { 0% { opacity: 0; transform: scale(.3) rotate(-4deg); }
                          70% { opacity: 1; transform: scale(1.06) rotate(1deg); }
                          100% { opacity: 1; transform: none; } }
.mu-pendu:not(.plein) .mu-bulle { font-size: 1em; max-width: 34%; }

/* La carte d'intro, avant la première lettre. */
.mu-pd-intro { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center;
            justify-content: center; pointer-events: none; }
.mu-pd-intro:empty { display: none; }
.mu-pd-intro-c { max-width: min(30em, 80%); text-align: center; padding: 1em 1.4em; border-radius: 20px;
  background: rgba(15,10,30,.72); color: #fff; backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4); animation: mu-bulle-pop .7s cubic-bezier(.2,.9,.3,1.3) both; }
.mu-pd-intro-c b { display: block; font-size: 1.6em; line-height: 1.25; font-family: 'Mu Outfit', system-ui, sans-serif; }
.mu-pd-intro-c span { display: block; margin-top: .5em; color: #fde047; font-weight: 800; font-size: 1.1em; }
.mu-pendu:not(.plein) .mu-pd-intro-c { background: rgba(255,255,255,.95); color: var(--mu-encre);
  border: 1px solid var(--mu-bord); }
.mu-pendu:not(.plein) .mu-pd-intro-c span { color: var(--mu-t); }

/* Le téléphone : l'image en pleine largeur, le mot par-dessus. */
.mu-pt-scene { position: relative; margin: 0 -.2rem .5rem; border-radius: 14px; overflow: hidden;
               background: #0f0a1e; }
.mu-pt-scene .mu-minitrex { max-width: none; margin: 0; aspect-ratio: 16 / 10; background: #fff; }
.mu-pt-scene .mu-th { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.mu-pt-scene .mu-motel { position: absolute; left: .4rem; right: .4rem; bottom: .4rem; margin: 0;
  padding: .15rem .4rem .3rem; border-radius: 10px; background: rgba(15,10,30,.68); }
/* Le mot tient sur UNE ligne : les cases rétrécissent (jusqu'à ~12 px). */
.mu-pt-scene .mu-motel { gap: .12rem; flex-wrap: nowrap; }
.mu-pt-scene .mu-motel span { color: #fde047; border-bottom-color: #fff;
  flex: 1 1 0; min-width: 0; max-width: 1.3rem; height: 1.6rem; font-size: 1.05rem; }
.mu-pt-scene .mu-motel i { flex: 0 1 .5rem; min-width: 0; }
.mu-pt-scene .mu-motel i { color: rgba(255,255,255,.7); }
.mu-pt-bulle { margin: .2rem 0 .6rem; padding: .45rem .7rem; border: 2px solid var(--mu-encre);
  border-radius: 12px; background: #fff; font-size: .95rem; line-height: 1.3;
  font-family: 'Mu Main', 'Patrick Hand', 'Segoe Print', 'Comic Sans MS', cursive; }
/* (pas d'animation : le formulaire du téléphone se reconstruit souvent,
   elle rejouerait à chaque fois — clignotement) */
.mu-tour .mu-tour-s { min-width: 2.4rem; font-size: 1.1rem; }
/* Retour immédiat : la lettre touchée s'allume avant la réponse du serveur. */
.mu-clavier button.envoyee { background: var(--mu-t); border-color: var(--mu-t); color: #fff;
  animation: mu-pop .35s cubic-bezier(.2,.9,.3,1.4); }

/* ============================================================
   §7.190 undecies — NUAGE, QUESTIONS, BRAINSTORMING : LA FAMILLE
   VISUELLE DU SONDAGE (« comme Explique »)
   Halos qui dérivent derrière le contenu, cartes blanches arrondies,
   Outfit / Manrope (déjà servies au tableau), couleurs franches et
   douces (`--sd-0…7`), mouvements en transform seulement — rien qui
   se rejoue à chaque sondage.
   ============================================================ */
.mu-ecran[data-outil="nuage"] .mu-ecran-corps,
.mu-ecran[data-outil="questions"] .mu-ecran-corps,
.mu-ecran[data-outil="brainstorming"] .mu-ecran-corps { position: relative; isolation: isolate; }
.mu-ecran[data-outil="nuage"] .mu-ecran-corps::before,
.mu-ecran[data-outil="nuage"] .mu-ecran-corps::after,
.mu-ecran[data-outil="questions"] .mu-ecran-corps::before,
.mu-ecran[data-outil="questions"] .mu-ecran-corps::after,
.mu-ecran[data-outil="brainstorming"] .mu-ecran-corps::before,
.mu-ecran[data-outil="brainstorming"] .mu-ecran-corps::after {
  content: ''; position: absolute; z-index: -1; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; pointer-events: none; }
.mu-ecran[data-outil] .mu-ecran-corps::before { top: -24vmax; left: -14vmax; animation: mu-derive1 28s ease-in-out infinite alternate; }
.mu-ecran[data-outil] .mu-ecran-corps::after  { bottom: -26vmax; right: -14vmax; animation: mu-derive2 34s ease-in-out infinite alternate; }
.mu-ecran[data-outil="nuage"] .mu-ecran-corps::before { background: #f9a8d4; }
.mu-ecran[data-outil="nuage"] .mu-ecran-corps::after  { background: #c4b5fd; }
.mu-ecran[data-outil="questions"] .mu-ecran-corps::before { background: #93c5fd; }
.mu-ecran[data-outil="questions"] .mu-ecran-corps::after  { background: #c4b5fd; }
.mu-ecran[data-outil="brainstorming"] .mu-ecran-corps::before { background: #fcd34d; }
.mu-ecran[data-outil="brainstorming"] .mu-ecran-corps::after  { background: #5eead4; }

/* --- Le nuage : l'entrée d'un mot (flou → net, petit rebond) --- */
.mu-nuage text.neuf { animation: mu-entre-mot2 1s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes mu-entre-mot2 { 0% { opacity: 0; transform: translateY(30%) scale(.2); filter: blur(8px); }
                           60% { opacity: 1; transform: scale(1.1); filter: blur(0); }
                           100% { opacity: 1; transform: none; filter: none; } }

/* --- Les questions --- */
.mu-ecran[data-outil="questions"] .mu-cartes { gap: 1em; grid-template-columns: repeat(auto-fill, minmax(19em, 1fr)); }
.mu-ecran[data-outil="questions"] .mu-c { position: relative; border: 0; border-radius: 1.1em;
  padding: .95em 1.1em .8em 1.35em; background: rgba(255,255,255,.93); font-family: 'Mu Outfit', system-ui, sans-serif;
  box-shadow: 0 .9em 2.2em -1.1em rgba(26,20,48,.32), inset 0 0 0 1px rgba(26,20,48,.06); }
.mu-ecran[data-outil="questions"] .mu-c::before { content: ''; position: absolute; left: 0; top: .9em; bottom: .9em;
  width: .3em; border-radius: 0 .3em .3em 0; background: var(--mu-t); }
.mu-ecran[data-outil="questions"] .mu-c-txt { font-size: 1.15em; font-weight: 600; line-height: 1.35; color: var(--mu-encre); }
/* Un mot interminable se coupe : sinon il élargit la carte, la
   dichotomie croit que tout déborde et cache des questions pour rien. */
.mu-ecran[data-outil="questions"] .mu-c-txt,
.mu-ecran[data-outil="brainstorming"] .mu-c-txt { overflow-wrap: anywhere; }
.mu-ecran[data-outil="questions"] .mu-c-bas { margin-top: .7em; font-size: .85em; }
.mu-c-moi { position: relative; display: inline-flex; align-items: baseline; gap: .3em; padding: .15em .75em;
  border-radius: 999px; background: color-mix(in srgb, var(--mu-t) 12%, #fff); color: var(--mu-t); font-weight: 700;
  white-space: nowrap; }
.mu-c-moi b { font-family: 'Mu Manrope', system-ui, sans-serif; font-size: 1.35em; font-weight: 900; }
.mu-c-moi.zero { opacity: .45; }
.mu-c.monte .mu-c-moi { animation: mu-q-monte .7s cubic-bezier(.2,.9,.3,1.4); }
.mu-c.monte .mu-c-moi::after { content: '+1'; position: absolute; right: .2em; top: -.3em; font-weight: 900;
  color: var(--mu-t); animation: mu-q-plus .7s ease-out forwards; }
@keyframes mu-q-monte { 40% { transform: scale(1.22); background: var(--mu-t); color: #fff; } }
@keyframes mu-q-plus { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-1.6em); } }
/* La réponse du prof, en bulle sous la question. */
.mu-ecran[data-outil="questions"] .mu-c-rep { position: relative; margin-top: .75em; padding: .55em .85em;
  border-radius: 1em 1em 1em .3em; background: #ecfdf5; color: #065f46; font-weight: 600; font-size: .98em;
  line-height: 1.35; box-shadow: inset 0 0 0 1px #a7f3d0; }
.mu-ecran[data-outil="questions"] .mu-c-rep::before { content: ''; position: absolute; top: -.5em; left: 1.3em;
  border: .5em solid transparent; border-top: 0; border-bottom-color: #a7f3d0; }
.mu-ecran[data-outil="questions"] .mu-c-rep small,
.mu-rep-b small { display: block; font-size: .7em; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: #059669; }
/* Traitée : elle glisse en bas (FLIP) et s'efface un peu ; épinglée : un liseré doré. */
.mu-ecran[data-outil="questions"] .mu-c.traitee { opacity: .58; filter: saturate(.55); }
.mu-ecran[data-outil="questions"] .mu-c.traitee::before { background: #10b981; }
.mu-ecran[data-outil="questions"] .mu-c.traitee .mu-c-txt { text-decoration: none; }
.mu-ecran[data-outil="questions"] .mu-c.epinglee { background: #fffbeb;
  box-shadow: 0 0 0 .16em #fbbf24, 0 .9em 2.2em -1.1em rgba(217,119,6,.45); }
.mu-ecran[data-outil="questions"] .mu-c.epinglee::before { background: #f59e0b; }
.mu-c-ok { font-style: normal; color: #059669; font-weight: 800; }

/* --- Le brainstorming : des étiquettes de couleur --- */
.mu-ecran[data-outil="brainstorming"] .mu-cartes { display: flex; flex-wrap: wrap; align-content: flex-start;
  justify-content: center; gap: .75em; }
.mu-ecran[data-outil="brainstorming"] .mu-c { --ic: var(--mu-t); border: 0; border-radius: 1em; padding: .6em 1em .55em;
  max-width: 24em; font-family: 'Mu Outfit', system-ui, sans-serif;
  background: color-mix(in srgb, var(--ic) 13%, #fff);
  box-shadow: inset 0 0 0 .12em color-mix(in srgb, var(--ic) 38%, transparent), 0 .6em 1.3em -.8em var(--ic); }
.mu-ecran[data-outil="brainstorming"] .mu-c-txt { font-weight: 700; font-size: 1.1em; line-height: 1.3;
  color: color-mix(in srgb, var(--ic) 32%, #1a1430); }
.mu-ecran[data-outil="brainstorming"] .mu-c-bas { margin-top: .35em; font-size: .8em; }
.mu-ecran[data-outil="brainstorming"] .mu-fois { background: var(--ic); font-family: 'Mu Manrope', system-ui, sans-serif;
  font-weight: 900; padding: .05em .55em; box-shadow: 0 .2em .5em -.15em var(--ic); }
/* Phase « ranger » : des colonnes-familles, une couleur chacune. */
.mu-ecran[data-outil="brainstorming"] .mu-familles { gap: 1em; }
.mu-ecran[data-outil="brainstorming"] .mu-fam { --fc: #94a3b8; border: 0; border-radius: 1.2em;
  background: color-mix(in srgb, var(--fc) 8%, rgba(255,255,255,.88));
  box-shadow: inset 0 0 0 .1em color-mix(in srgb, var(--fc) 28%, transparent), 0 1em 2em -1.4em rgba(26,20,48,.35);
  transition: box-shadow .25s ease, transform .25s ease; }
.mu-ecran[data-outil="brainstorming"] .mu-fam-reste { --fc: #94a3b8; background: rgba(248,250,252,.8);
  box-shadow: inset 0 0 0 .12em #cbd5e1; }
.mu-ecran[data-outil="brainstorming"] .mu-fam-t { display: flex; align-items: center; gap: .5em; background: transparent;
  color: color-mix(in srgb, var(--fc) 65%, #1a1430); font-family: 'Mu Outfit', system-ui, sans-serif;
  font-size: 1.15em; padding: .75em .9em .45em; }
.mu-ecran[data-outil="brainstorming"] .mu-fam-reste .mu-fam-t { background: transparent; color: var(--mu-gris); }
.mu-fam-pt { flex: 0 0 auto; width: .75em; height: .75em; border-radius: 50%; background: var(--fc);
  box-shadow: 0 0 0 .22em color-mix(in srgb, var(--fc) 25%, transparent); }
.mu-ecran[data-outil="brainstorming"] .mu-fam-t span { float: none; margin-left: auto; min-width: 1.7em; text-align: center;
  padding: .05em .5em; border-radius: 999px; background: var(--fc); color: #fff; opacity: 1;
  font-family: 'Mu Manrope', system-ui, sans-serif; font-weight: 900; font-size: .9em; }
.mu-ecran[data-outil="brainstorming"] .mu-fam-t span:empty { display: none; }
.mu-fam-t span.saute { animation: mu-saute .45s cubic-bezier(.2,.9,.3,1.5); }
@keyframes mu-saute { 40% { transform: scale(1.3); } }
.mu-ecran[data-outil="brainstorming"] .mu-fam .mu-c { max-width: none; background: #fff;
  box-shadow: inset .3em 0 0 var(--fc), 0 .45em 1em -.7em rgba(26,20,48,.35); }
.mu-ecran[data-outil="brainstorming"] .mu-fam .mu-c-txt { color: var(--mu-encre); font-size: 1em; }
.mu-ecran[data-outil="brainstorming"] .mu-fam-reste .mu-c { background: color-mix(in srgb, var(--ic) 10%, #fff);
  box-shadow: inset .3em 0 0 var(--ic), 0 .45em 1em -.7em rgba(26,20,48,.35); }
.mu-ecran[data-outil="brainstorming"] .mu-fam.survol { transform: translateY(-.25em);
  box-shadow: inset 0 0 0 .2em var(--fc), 0 1.4em 2.6em -1.2em color-mix(in srgb, var(--fc) 55%, transparent); }
.mu-ecran[data-outil="brainstorming"] .mu-c.saisie { transition: none;
  box-shadow: inset .3em 0 0 var(--fc, var(--ic)), 0 1.4em 2.6em -.8em rgba(26,20,48,.45); }

/* --- Le téléphone (et le pilotage) : mêmes couleurs, mêmes états --- */
/* Un mot interminable se coupe : il poussait « Moi aussi » hors de l'écran à 360 px. */
.mu-m-t b, .mu-m-t span { overflow-wrap: anywhere; }
/* En colonne, `flex: 1 1 12rem` donnait 12rem de HAUTEUR au texte :
   un grand vide entre la question et ses boutons, au pilotage. */
.mu-m-maitre .mu-m-t { flex: 0 0 auto; }
.mu-l2 .mu-m, .mu-l2-m { border: 0; border-radius: 16px;
  box-shadow: 0 .5rem 1.2rem -.8rem rgba(26,20,48,.3), inset 0 0 0 1px rgba(26,20,48,.07); }
.mu-l2.o-questions .mu-m, .mu-l2-m.o-questions { box-shadow: inset 4px 0 0 var(--mu-t), 0 .5rem 1.2rem -.8rem rgba(26,20,48,.3),
  inset 0 0 0 1px rgba(26,20,48,.07); }
.mu-l2 .mu-m.traitee, .mu-l2-m.traitee { opacity: .62; }
.mu-l2 .mu-m.epinglee, .mu-l2-m.epinglee { background: #fffbeb; box-shadow: 0 0 0 2px #fbbf24; }
.mu-rep-b { display: block; position: relative; margin-top: .5rem; padding: .45rem .75rem;
  border-radius: 14px 14px 14px 4px; background: #ecfdf5; color: #065f46 !important; font-weight: 600;
  font-size: .92rem !important; box-shadow: inset 0 0 0 1px #a7f3d0; }
.mu-m-t .mu-c-ok { display: inline-block; margin-top: .3rem; color: #059669 !important; font-size: .8rem !important; }
.mu-l2.o-brainstorming .mu-m, .mu-l2-m.o-brainstorming { background: color-mix(in srgb, var(--ic) 12%, #fff);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ic) 32%, transparent); }
.mu-l2.o-brainstorming .mu-fois, .mu-l2-m.o-brainstorming .mu-fois { background: var(--ic); }
.mu-l2.o-questions .mu-aime.oui { background: var(--mu-t); color: #fff; border-color: var(--mu-t); }
.mu-aime.saute { animation: mu-saute .4s cubic-bezier(.2,.9,.3,1.5); }
/* Les mots de l'élève : la couleur qu'ils ont au tableau. Pas
   d'animation : la liste se reconstruit à chaque nouveau compte. */
.mu-puce.mu-puce-n { animation: none; background: color-mix(in srgb, var(--pc, var(--mu-t)) 14%, #fff);
  color: var(--pc, var(--mu-t)); font-weight: 800;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc, var(--mu-t)) 35%, transparent); }
.mu-puce.mu-puce-n.fort { background: var(--pc, var(--mu-t)); color: #fff; }
.mu-puce.mu-puce-n.attend { opacity: .55; }

/* ============================================================
   §7.190 duodecies — SCANNER LE QR DANS LA PAGE (code.missionstmg.re)
   ============================================================ */
.mu-code-ou { display: flex; align-items: center; gap: .7rem; margin: 1rem 0 .8rem; color: var(--mu-gris);
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mu-code-ou::before, .mu-code-ou::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--mu-bord); }
.mu-code-scan { width: 100%; min-height: 56px; font-size: 1.1rem; font-weight: 800; color: #5f3dc4;
  background: #f5f3ff; border: 2px solid #c4b5fd; }
.mu-code-scan:active { transform: scale(.98); }
.mu-scan-repli { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: #f5f3ff; text-align: center;
  box-shadow: inset 0 0 0 1px #ddd6fe; }
.mu-scan-repli p { margin: .4rem 0 0; line-height: 1.4; }
.mu-scan-raison { color: #9a3412; font-weight: 700; font-size: .92rem; }
.mu-scan-raison:empty { display: none; }

/* La caméra, en plein écran, avec un viseur. */
body.mu-scan-ouvert { overflow: hidden; }
.mu-scan { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem; padding: 1rem; background: rgba(15,10,30,.94); color: #fff; }
.mu-scan-cadre { position: relative; width: min(92vw, 26rem); aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.mu-scan-cadre video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mu-scan-viseur { position: absolute; inset: 14%; pointer-events: none; }
.mu-scan-viseur i { position: absolute; width: 22%; height: 22%; border: 5px solid #fff; border-radius: 6px;
  animation: mu-scan-respire 1.6s ease-in-out infinite alternate; }
.mu-scan-viseur i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.mu-scan-viseur i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.mu-scan-viseur i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.mu-scan-viseur i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.mu-scan-viseur b { position: absolute; left: 4%; right: 4%; top: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent); box-shadow: 0 0 12px #a78bfa;
  animation: mu-scan-balaye 2.2s ease-in-out infinite alternate; }
@keyframes mu-scan-respire { to { transform: scale(1.06); opacity: .75; } }
@keyframes mu-scan-balaye { to { top: calc(100% - 3px); } }
.mu-scan.lu .mu-scan-viseur i { border-color: #4ade80; animation: none; }
.mu-scan.lu .mu-scan-viseur b { display: none; }
.mu-scan-statut { margin: 0; min-height: 2.8em; max-width: 24rem; text-align: center; font-weight: 700; font-size: 1.05rem; }
.mu-scan-statut.refus { color: #fde68a; }
.mu-scan-statut.ok { color: #4ade80; }
.mu-scan-fermer { min-height: 48px; padding: .6rem 1.4rem; background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.35); }

/* ============================================================
   ⚠️ CE BLOC DOIT RESTER LE DERNIER DE LA FEUILLE.
      Toute animation ecrite APRES lui LUI ECHAPPE, et rien ne le
      signale — c'est §7.121, ou une fin de commentaire orpheline (etoile-barre) avait avale le bloc
      entier : 45 regles s'animaient sans contre-ordre et la mesure
      rendait `blocs_media: 0`.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
