/* Lecteur d'un document de cours (public/app/lecteur-document.js) : plein écran sur téléphone, grande fenêtre sinon. */
dialog.lecteur-document { width: min(1000px, 100vw); height: min(92vh, 100dvh); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: var(--rayon-carte);
  background: var(--fond); color: var(--texte); display: flex; flex-direction: column; overflow: hidden; }
dialog.lecteur-document:not([open]) { display: none; }
dialog.lecteur-document::backdrop { background: color-mix(in srgb, var(--encre) 55%, transparent); }
.ld-tete { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--trait); background: var(--surface); }
.ld-tete h2 { flex: 1; margin: 0; font-size: var(--t-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-zone { flex: 1; overflow: auto; padding: 14px; display: grid; justify-items: center; align-content: start; gap: 14px; }
.ld-attente { color: var(--texte-discret); }
.ld-page { background: var(--papier); box-shadow: 0 1px 4px color-mix(in srgb, var(--encre) 18%, transparent); max-width: 100%; }
.ld-image { max-width: 100%; height: auto; }
.ld-texte { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 46rem; width: 100%; font-family: var(--f-read); font-size: var(--t-texte); line-height: 1.6; margin: 0; }
.ld-word { width: 100%; overflow-x: auto; }
.ld-word .docx-wrapper { background: transparent; padding: 0; }
.ld-diapo { margin: 0; width: 100%; max-width: 900px; background: var(--papier); box-shadow: 0 1px 4px color-mix(in srgb, var(--encre) 18%, transparent); }
.ld-diapo svg { display: block; width: 100%; height: auto; }
.ld-zone video, .ld-zone audio { max-width: 100%; }
@media (max-width: 640px) { dialog.lecteur-document { width: 100vw; height: 100dvh; border-radius: 0; } .ld-zone { padding: 8px; } }
.ld-tete a { text-decoration: none; display: inline-flex; align-items: center; }
