/* 0.9.17 — lot « lecture suivie » (docs/lots-0.9.17/CONTRAT.md) : la phrase, et le mot quand la voix
   le dit, suivis pendant la lecture à voix haute d'un texte ; les voix Gemini des textes. */

/* Les deux boutons sur le coin du texte (public/js/sheet/render.js, texteALire) : « 🔊 Écouter le
   texte » et « 🐢 Plus lent », posés comme le bouton de la 0.9.15 (rien ne bouge dans la mise en page,
   jamais imprimés). « Plus lent » au coin : il ne bouge pas quand l'autre devient « Arrêter ». */
.lu-cmd { position: absolute; z-index: 4; right: -4pt; top: -11pt; display: inline-flex; align-items: center; gap: 4pt; }
.sh-band-text > .lu-cmd { top: -8pt; right: 8pt; }
.lu-cmd > .lu-btn { position: relative; right: auto; top: auto; }
/* « Un exercice » : au-dessus du texte, sur la ligne de « Fiche entière » (il y a la place) : un long
   titre, qui passe à la ligne sur un téléphone, n'est pas caché par les deux boutons. */
.sheet.step-sheet .rd > .lu-cmd { top: -21pt; }
.lu-lent { position: relative; display: inline-flex; align-items: center; gap: 2pt; height: 15pt; padding: 0 6pt 0 4pt; margin: 0; border: .7pt solid #9db6d6; border-radius: 8pt; background: #fff; color: #1c4fa8; box-shadow: 0 1pt 2pt rgb(0 0 0 / 12%); cursor: pointer; font: 600 7.5pt/1 var(--ui-font, sans-serif); letter-spacing: 0; white-space: nowrap; }
.lu-lent::after { content: ''; position: absolute; inset: -5pt -5pt -5pt -2pt; }
.lu-lent:hover, .lu-lent:focus-visible { background: #e8f1fb; }
/* Enfoncé : la couleur des boutons enfoncés des textes à écouter (sheet.css, rd-ecoute-btn). */
.lu-lent[aria-pressed="true"] { background: #fff4d6; border-color: #d68910; color: #8a5a00; }

/* La phrase lue : le jaune pâle de la 0.9.15, sur elle seule (le paragraphe qui la contient ne l'est
   plus : la phrase se détache mieux pour un lecteur lent, sans fond autour qui brouille). */
.lu-p.lu-suivi.lu-en-cours { background: none; box-shadow: none; }
.lu-ph.lu-lue { background: #fff1b8; box-shadow: 0 0 0 1.5pt #fff1b8; border-radius: 2pt; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Le mot dit (« Suivre mot à mot ») : un jaune plus soutenu, dans la phrase lue ; le texte reste noir. */
.lu-m.lu-dit { background: #ffcd57; box-shadow: 0 0 0 1pt #ffcd57; border-radius: 2pt; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Une phrase se touche (un texte de plusieurs phrases) pour l'écouter seule. Le survol, seulement là où
   il existe (sur l'iPad, il resterait après le toucher). */
.lu-actif .lu-ph[data-act] { cursor: pointer; }
@media (hover: hover) {
  .lu-actif .lu-ph[data-act]:hover { background: #eef4fc; }
  .lu-actif .lu-ph[data-act].lu-lue:hover { background: #fff1b8; }
}

/* Sur papier : rien de tout cela. */
@media print {
  .lu-cmd, .lu-lent { display: none !important; }
  .lu-ph, .lu-ph.lu-lue, .lu-m, .lu-m.lu-dit { background: none !important; box-shadow: none !important; }
}

/* Élèves → sa fiche → « Confort sur la tablette » (public/js/teacher/student.js) : sous « Lecture à
   voix haute », ses deux choix, montrés quand elle est cochée (la même case que les autres). */
.comfort-lu { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.comfort-lu-choix { display: grid; gap: 8px; margin: 10px 0 2px 32px; }
.comfort-lu-choix[hidden] { display: none; }
.check.comfort-sous { font-size: 14.5px; }
.check.comfort-sous small { display: block; }

/* La voix Gemini des textes, côté enseignant (public/js/teacher/voix-textes.js) : sur chaque niveau de
   la page d'une activité, au-dessus de ses cases ; la carte des Réglages ; la page #/sons/textes (les
   lignes de « Contrôler les sons », sons.css). Au doigt : 44 px au moins. */
.vt { display: grid; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.vt-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.vt-tete .btn { margin-left: auto; }
.vt .btn { min-height: 44px; }
.vt-detail { margin: 0; color: var(--ink-2); }
.vt-textes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vt-texte { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; min-width: 0; }
.vt-nom { min-width: 0; overflow-wrap: anywhere; font-weight: 600; color: var(--ink); }
.vt-nom .muted { font-weight: 400; }
.vt-texte .tag { white-space: normal; }
.vt-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-ecouter.playing { background: var(--brand); border-color: var(--brand); color: var(--on-color); }
.vt-compte { margin: 4px 0 10px; font-weight: 600; color: var(--ink-2); }
.vt-wav { color: var(--coral-text); font-weight: 600; }
.vt-reglage .btn { margin-top: 4px; }
.vt-message { margin: 0; overflow-wrap: anywhere; }
