/* ============================================================================
   live.css — MyLIVE : feuille, docks et pages (Prof_OS, téléphone, ÉlèveOS)
   Langage visuel repris de Géométria : docks flottants en verre dépoli
   au-dessus de la surface de travail.
   ========================================================================== */

.live-racine {
  --live-font: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --live-txt: #1d1d1f;
  --live-txt-doux: #6e6e73;
  --live-verre: rgba(255, 255, 255, 0.74);
  --live-ombre: 0 6px 24px rgba(0, 0, 0, 0.2);
  --live-bleu: #1f5fd1;
  --live-vert: #1f9d55;
  --live-orange: #e69b17;
  --live-rouge: #d42a2a;
  font-family: var(--live-font);
  color: var(--live-txt);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.live-racine *, .live-racine *::before, .live-racine *::after { box-sizing: inherit; }
/* Les boutons et voiles posent leur propre display : sans cette règle,
   l'attribut hidden ne les masquerait pas. */
.live-racine [hidden] { display: none !important; }

/* ── Feuille ─────────────────────────────────────────────────────────────── */

.live-feuille {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #dfe3ea;
}
.live-page {
  position: absolute;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 8px 30px rgba(0, 0, 0, 0.08);
}
/* La page ne tient plus dans la zone : les canvas la couvrent entièrement et
   dessinent eux-mêmes la feuille blanche, avec son ombre, là où la vue la met. */
.live-page.pleine { background: transparent; box-shadow: none; }
.live-page canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.live-vif { cursor: crosshair; touch-action: none; }
.live-lecture .live-vif { cursor: default; }

/* L'atelier : un outil partagé (Géométria…) à la place de la feuille. */
.live-atelier {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #dfe3ea;
}
.live-atelier-cadre { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.live-atelier-vide { max-width: 420px; padding: 24px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--live-txt-doux); }

/* ── Docks ───────────────────────────────────────────────────────────────── */

.live-dock {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--live-verre);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: var(--live-ombre);
}
/* width: max-content — sans lui, un bloc positionné à left: 50% ne dispose que
   de la moitié de la largeur et passe à la ligne bien trop tôt. */
.live-dock-bas { left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 20px); flex-wrap: wrap; justify-content: center; }
.live-dock-haut-gauche { left: 14px; top: 14px; }
.live-dock-haut-droite { right: 14px; top: 14px; }
/* Zoom : contre le bord droit, à mi-hauteur — la page est une A4 debout, on
   n'en voit qu'une partie et on s'y déplace sans cesse. */
.live-dock-zoom { right: 14px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.live-zoom-taux { min-width: 44px; height: 30px; font: 600 12px var(--live-font); color: var(--live-txt-doux); font-variant-numeric: tabular-nums; }
.live-btn.live-suivre { background: var(--live-bleu); color: #fff; }
.live-btn.live-suivre:hover { background: #1a51b3; }

.live-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(0, 0, 0, 0.12); }

.live-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--live-txt);
  font: 600 13px var(--live-font);
  cursor: pointer;
  touch-action: manipulation;
}
.live-btn:hover { background: rgba(0, 0, 0, 0.06); }
.live-btn:disabled { opacity: 0.35; cursor: default; background: transparent; }
.live-btn.actif { background: var(--live-txt); color: #fff; }
.live-btn.danger { background: var(--live-rouge); color: #fff; }
.live-btn svg { width: 22px; height: 22px; display: block; }
.live-btn-texte { display: inline-flex; gap: 8px; align-items: center; padding: 0 14px; }
.live-btn-primaire { background: var(--live-bleu); color: #fff; }
.live-btn-primaire:hover { background: #1a51b3; }

.live-couleur {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.live-btn.actif .live-couleur { box-shadow: 0 0 0 2px #fff; }

.live-trait { display: block; width: 20px; border-radius: 4px; background: currentColor; }

.live-page-num { min-width: 46px; text-align: center; font: 600 13px var(--live-font); color: var(--live-txt-doux); font-variant-numeric: tabular-nums; }

.live-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: var(--live-ombre);
  white-space: nowrap;
}
.live-menu .live-btn { justify-content: start; }
/* Menu d'un dock du haut : il s'ouvre vers le bas. */
.live-menu.bas { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; transform: none; }

/* ── Pastilles d'état ────────────────────────────────────────────────────── */

.live-etat { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; height: 40px; font-size: 13px; white-space: nowrap; }
.live-point { width: 9px; height: 9px; border-radius: 50%; background: #b0b3b8; flex-shrink: 0; }
.live-point.connecte { background: var(--live-vert); }
.live-point.connexion { background: var(--live-orange); animation: live-pulse 1.1s ease-in-out infinite; }
.live-point.coupe { background: var(--live-rouge); animation: live-pulse 0.8s ease-in-out infinite; }
.live-etat small { color: var(--live-txt-doux); font-size: 11.5px; }

@keyframes live-pulse { 50% { opacity: 0.35; } }

/* ── Moniteur du son (son.js) ────────────────────────────────────────────── */

.live-son {
  gap: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.live-son:hover { background: rgba(0, 0, 0, 0.05); }
.live-son:focus-visible { outline: 2px solid var(--live-bleu); outline-offset: 1px; }
.live-son-voie { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1; }
.live-etat .live-son-voie small { font-size: 10.5px; letter-spacing: 0.02em; }
.live-son-jauge { width: 40px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.live-son-jauge i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--live-vert);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 70ms linear;
}
.live-etat .live-son-note { display: none; color: var(--live-rouge); font-weight: 600; }
.live-son-voie.muet .live-son-jauge { display: none; }
.live-son-voie.muet .live-son-note { display: block; }
.live-etat .live-son-voie.neutre .live-son-note { color: var(--live-txt-doux); font-weight: 500; }
.live-son-avis { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12.5px; font-weight: 600; line-height: 1.1; color: var(--live-txt-doux); }
.live-son-avis.bon { color: var(--live-vert); }
.live-son-avis.moyen { color: #a86400; }
.live-son-avis.mauvais { color: var(--live-rouge); }
.live-etat .live-son-avis small { font-size: 11px; font-weight: 500; color: var(--live-txt-doux); }

.live-son-detail {
  position: absolute;
  top: 66px;
  z-index: 6;
  width: min(360px, calc(100% - 28px));
  padding: 12px 14px;
  background: var(--live-verre);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: var(--live-ombre);
  font-size: 12.5px;
}
.live-son-detail.gauche { left: 14px; }
.live-son-detail.droite { right: 14px; }
.live-son-detail > p:first-child { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.live-son-detail > div { display: grid; gap: 2px; padding: 7px 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.live-son-detail > div span { font-size: 11.5px; color: var(--live-txt-doux); }
.live-son-detail > div strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.live-son-conseil { margin: 8px 0 0; line-height: 1.4; color: var(--live-txt-doux); }

@media (prefers-reduced-motion: reduce) {
  .live-son-jauge i { transition: none; }
}

/* ── Réactions et messages écrits (echange.js) ────────────────────────────
   Colonne de boutons en bas à gauche, dans la marge de la feuille : le dock
   d'écriture occupe déjà le bas, au centre. Les bulles et le fil s'ouvrent
   juste à droite, au-dessus de la bande du bas. */

.live-echange { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.live-echange > * { pointer-events: auto; }
.live-echange-dock { left: 14px; bottom: 14px; flex-direction: column; gap: 2px; }
.live-reaction { font-size: 21px; line-height: 1; }
.live-reaction:disabled, .live-echange-saisie button:disabled { opacity: 0.4; cursor: default; }
.live-ecrire { position: relative; }
.live-non-lu { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--live-rouge); box-shadow: 0 0 0 2px #fff; }

.live-echange-fil {
  position: absolute;
  left: 76px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(340px, calc(100% - 90px));
  pointer-events: none;
}
.live-echange-fil.seul { left: 14px; bottom: 14px; z-index: 6; max-width: min(340px, calc(100% - 28px)); }

.live-bulle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  padding: 7px 12px 8px;
  border-radius: 14px 14px 14px 4px;
  background: var(--live-verre);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--live-ombre);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  animation: live-bulle-arrive 220ms ease-out;
}
.live-bulle small { font-size: 11px; font-weight: 600; color: var(--live-txt-doux); }
.live-bulle.moi { background: rgba(31, 95, 209, 0.14); }
.live-bulle.moi small { color: var(--live-bleu); }
.live-bulle.reaction span { font-size: 30px; line-height: 1.1; }
.live-bulle.part { opacity: 0; transform: translateY(6px); transition: opacity 380ms, transform 380ms; }
@keyframes live-bulle-arrive { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

.live-echange-panneau {
  position: absolute;
  left: 76px;
  bottom: 80px;
  width: min(360px, calc(100% - 90px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: var(--live-verre);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--live-ombre);
}
.live-echange-historique { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-height: min(44vh, 320px); overflow-y: auto; }
.live-echange-historique .live-bulle { box-shadow: none; animation: none; background: rgba(255, 255, 255, 0.7); }
.live-echange-historique .live-bulle.moi { align-self: flex-end; background: rgba(31, 95, 209, 0.14); border-radius: 14px 14px 4px 14px; }
.live-echange-historique p { margin: 4px 2px; font-size: 12.5px; line-height: 1.45; color: var(--live-txt-doux); }
.live-echange-saisie { display: flex; gap: 6px; }
.live-echange-saisie input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #fff;
  font: 14px var(--live-font);
  color: var(--live-txt);
}
.live-echange-saisie input:focus-visible { outline: 2px solid var(--live-bleu); outline-offset: 1px; }

/* Fenêtre étroite : le dock d'écriture du bas s'étale jusqu'aux bords ; la
   colonne remonte au-dessus de lui. */
.mylive-seance, .seance-eleve { container-type: inline-size; }
/* Assez large : la feuille laisse la marge gauche à la colonne. Elle n'y perd
   rien, sa taille étant limitée par la hauteur. */
@container (min-width: 761px) {
  .live-feuille { left: 70px; }
}
@container (max-width: 760px) {
  .live-echange-dock { bottom: 80px; }
  .live-echange-fil, .live-echange-panneau { bottom: 146px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-bulle { animation: none; }
  .live-bulle.part { transition: none; }
}

/* ── Voiles et cartes ────────────────────────────────────────────────────── */

.live-voile {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(223, 227, 234, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.live-carte {
  width: min(440px, 100%);
  padding: 26px 26px 22px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: var(--live-ombre);
  text-align: center;
}
.live-carte h1, .live-carte h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.live-carte p { margin: 0 0 16px; line-height: 1.5; color: var(--live-txt-doux); }
.live-carte .live-btn-texte { height: 46px; font-size: 15px; border-radius: 14px; }

.live-vumetre { height: 8px; margin: 6px 0 18px; border-radius: 4px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.live-vumetre i { display: block; height: 100%; width: 0; background: var(--live-vert); transition: width 80ms linear; }

.live-avis { margin: 10px 0 0; font-size: 12.5px; color: var(--live-rouge); }

/* Connexion de l'élève avec son identifiant DMI. */
.live-connexion { display: grid; gap: 12px; margin: 4px 0 2px; text-align: left; }
.live-champ { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.live-champ input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--live-txt);
  font: 16px var(--live-font);
}
.live-champ input:focus { outline: 2px solid var(--live-bleu); outline-offset: 1px; }
.live-connexion .live-btn-texte { margin-top: 4px; }
.live-carte p.live-aide { margin: 16px 0 0; font-size: 12.5px; }
.live-choix { display: grid; gap: 8px; }
.live-choix .live-btn-texte { background: rgba(0, 0, 0, 0.05); }
.live-racine a.live-btn { text-decoration: none; }

/* MyLIVE : choix de l'élève à la création d'une salle. */
.mylive-onglets { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.06); }
.mylive-onglets button { border: 0; padding: 6px 12px; border-radius: 8px; background: transparent; color: var(--live-txt-doux); font: 600 13px var(--live-font); cursor: pointer; }
.mylive-onglets button.actif { background: #fff; color: var(--live-txt); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.mylive-form select {
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: #fff;
  font: 14px var(--live-font);
}
.mylive-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(31, 95, 209, 0.1);
  color: var(--live-bleu);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: 2px;
}

/* ── Prof_OS : fenêtre MyLIVE ────────────────────────────────────────────── */

.mylive { position: relative; height: 100%; display: flex; flex-direction: column; background: #f5f6f8; font-size: 13px; }

.mylive-entete { display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; }
.mylive-entete h2 { margin: 0; font-size: 17px; flex: 1; }
.mylive-intro { margin: 0 20px 12px; color: var(--live-txt-doux); line-height: 1.5; max-width: 640px; }

.mylive-liste { flex: 1; overflow: auto; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.mylive-vide { padding: 40px 20px; text-align: center; color: var(--live-txt-doux); }

.mylive-salle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.mylive-salle .nom { flex: 1; min-width: 0; }
.mylive-salle .nom strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mylive-salle .nom small { color: var(--live-txt-doux); }
.mylive-salle .live-btn { height: 34px; min-width: 34px; border-radius: 10px; }
.mylive-salle .live-btn svg { width: 18px; height: 18px; }

.mylive-form { display: flex; gap: 8px; padding: 0 20px 12px; }
.mylive-form input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font: 14px var(--live-font);
}

.mylive-seance { position: relative; flex: 1; min-height: 0; }

.mylive-qr {
  position: absolute;
  z-index: 15;
  top: 64px;
  right: 14px;
  width: 260px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: var(--live-ombre);
  text-align: center;
}
.mylive-qr svg { width: 200px; height: 200px; display: block; margin: 4px auto 10px; }
.mylive-qr p { margin: 0 0 6px; color: var(--live-txt-doux); line-height: 1.45; font-size: 12.5px; }
.mylive-qr code { display: block; margin-top: 6px; font-size: 10.5px; color: var(--live-txt-doux); word-break: break-all; user-select: all; }

/* Fiche de l'élève : le QR code de son lien, à l'écran avant de l'imprimer. */
.mylive-fiche { width: min(380px, 100%); max-height: calc(100% - 24px); overflow-y: auto; padding: 22px 22px 18px; }
.mylive-fiche h1 { font-size: 19px; }
.mylive-fiche p { margin-bottom: 10px; font-size: 13px; }
.mylive-fiche svg { display: block; margin: 2px auto 14px; border-radius: 10px; }
.mylive-fiche code {
  display: block;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11.5px;
  color: var(--live-txt-doux);
  word-break: break-all;
  user-select: all;
}
.mylive-fiche .mylive-fiche-garde { font-size: 12.5px; color: var(--live-rouge); }

.mylive-toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.9);
  color: #fff;
  font-size: 13px;
  pointer-events: none;
}

/* ── Pages plein écran (téléphone, élève) ────────────────────────────────── */

html.live-plein, html.live-plein body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #dfe3ea;
}
.live-ecran { position: fixed; inset: 0; }

/* Téléphone en portrait : on invite à le tourner, la page est en 16:10. */
.stylet-tourner { display: none; }
@media (orientation: portrait) and (max-width: 700px) {
  .stylet-tourner {
    position: absolute; inset: 0; z-index: 25;
    display: grid; place-items: center; padding: 30px;
    background: rgba(223, 227, 234, 0.94);
    text-align: center; font-size: 16px; line-height: 1.5;
  }
}

/* Prof_OS : la page se tient entre les docks du haut et du bas. */
.mylive-seance { background: #dfe3ea; }
.mylive-seance .live-feuille { top: 66px; bottom: 72px; background: transparent; }

/* Interrupteur allumé (pointeur laser) : distinct de l'outil choisi, en noir. */
.live-btn.allume { color: var(--live-rouge); }

/* Élève autorisé à écrire : la page laisse la place au dock du bas. */
.seance-eleve.ecriture .live-feuille { bottom: 72px; }

/* Élève : la barre d'état ne masque pas le coin où l'on commence à écrire. */
.seance-eleve .live-feuille { top: 64px; }

/* L'atelier prend la place de la feuille, aux mêmes bords. */
.mylive-seance .live-atelier { top: 66px; bottom: 72px; }
.seance-eleve .live-atelier { top: 64px; }

/* Téléphone en paysage, bien plus large que la page 16:10 : les docks passent
   dans les marges latérales, la feuille reste entièrement libre sous le stylet. */
@media (min-aspect-ratio: 2/1) {
  .stylet .live-dock-bas {
    left: auto; right: 8px; bottom: auto; top: 50%;
    transform: translateY(-50%);
    width: auto; max-width: none; max-height: calc(100% - 12px);
    display: grid; grid-template-columns: repeat(2, 40px); gap: 2px; padding: 5px;
  }
  .stylet .live-dock-bas .live-sep { grid-column: span 2; width: auto; height: 1px; margin: 3px 4px; }
  .stylet .live-dock-bas .live-page-num { grid-column: span 2; height: 22px; line-height: 22px; }
  .stylet .live-dock-bas .live-menu { bottom: auto; top: 50%; left: auto; right: calc(100% + 8px); transform: translateY(-50%); }
  /* Le dock d'écriture occupe déjà toute la colonne de droite : le zoom va en
     bas à gauche, couché, sous la pastille d'état. */
  .stylet .live-dock-zoom {
    right: auto; left: 8px; top: auto; bottom: 6px;
    transform: none; flex-direction: row; padding: 4px;
  }
  .stylet .live-dock-haut-gauche { left: 8px; top: 50%; transform: translateY(-50%); flex-direction: column; padding: 6px 4px; }
  .stylet .live-dock-haut-gauche .live-etat {
    flex-direction: column; height: auto; padding: 6px 2px; max-width: 92px;
    white-space: normal; text-align: center; font-size: 11.5px; line-height: 1.25;
  }
}

@media (max-height: 460px) {
  .live-dock-bas { bottom: 6px; padding: 4px; }
  .live-dock-haut-gauche, .live-dock-haut-droite { top: 6px; }
  .live-dock-zoom { right: 6px; padding: 4px; }
  .live-btn { min-width: 36px; height: 36px; }
}

/* Un fichier glissé sur la séance : il sera importé sous la feuille. */
.mylive-seance.mylive-depot::after {
  content: 'Déposez le PDF ou l’image : il sera importé sous la feuille';
  position: absolute;
  inset: 12px;
  z-index: 30;
  display: grid;
  place-items: center;
  border: 3px dashed var(--live-bleu, #1f5fd1);
  border-radius: 16px;
  background: rgba(31, 95, 209, 0.08);
  color: var(--live-bleu, #1f5fd1);
  font: 600 18px/1.4 system-ui, 'Segoe UI', sans-serif;
  pointer-events: none;
}

/* Correction : saisie au clavier posée sur le texte de la zone. Transparente,
   pour laisser voir l'écriture à la main de la zone ; mêmes chasses que le
   texte dessiné (Arial ≈ Helvetica), pour que les lignes tombent pareil. */
.live-correction-saisie {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 2px dashed rgba(31, 95, 209, 0.55);
  outline-offset: -3px;
  background: transparent;
  color: #1d1d1f;
  font-family: Arial, Helvetica, sans-serif;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  caret-color: #1f5fd1;
}

/* Fiche d'un bouton de la page : son texte, ce qu'il fait, son adresse. */
.live-dialogue-bouton { display: grid; gap: 14px; text-align: left; }
.live-dialogue-bouton h1 { margin: 0; }
.live-dialogue-bouton [hidden] { display: none; }
.live-choix-type { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; font-size: 14px; }
.live-choix-type legend { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; }
.live-choix-type label { display: flex; gap: 8px; align-items: baseline; line-height: 1.35; cursor: pointer; }
.live-choix-type input { accent-color: var(--live-bleu); }
.live-dialogue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.live-dialogue-actions .live-btn-texte { padding: 0 16px; }
.live-dialogue-bouton .live-avis { margin: 0; }
