.hors-ligne { background: #3a2a10; color: #f2d49b; font-size: 0.85rem; padding: 8px 16px; text-align: center; }

.entete, .onglets, .scene { width: 100%; max-width: 1100px; margin: 0 auto; padding-inline: 16px; }

.entete { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: flex-end; padding-top: 20px; }
.entete h1 { font-size: 1.6rem; margin-top: 4px; }
.entete .acte { color: var(--texte-2); margin-top: 4px; font-variant-numeric: tabular-nums; }

.onglets { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--trait); overflow-x: auto; }
.onglets button {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--texte-2); padding: 10px 14px; min-height: 44px; cursor: pointer; white-space: nowrap;
}
.onglets button[aria-selected="true"] { color: var(--or-clair); border-bottom-color: var(--or); }

.scene { display: grid; gap: 18px; padding-block: 18px 40px; }

.clans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.clan { border-color: color-mix(in srgb, var(--clan) 50%, var(--trait)); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; }
.clan .nom { font-family: var(--titre); font-size: 1.15rem; color: var(--clan); }
.clan .score { font-family: var(--titre); font-size: 1.6rem; font-variant-numeric: tabular-nums; }

.grille { width: 100%; border-collapse: collapse; }
.grille th { text-align: left; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-3); padding: 8px 10px; }
.grille td { padding: 12px 10px; border-top: 1px solid var(--trait); vertical-align: middle; }
.grille .nombre { text-align: right; font-variant-numeric: tabular-nums; }
.grille .prenom { font-weight: 600; }
.grille .objectif { color: var(--texte-2); font-size: 0.85rem; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grille .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.badge { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--trait); color: var(--texte-2); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.badge.secret { color: var(--or); border-color: var(--or-sombre); }

.temps { font-variant-numeric: tabular-nums; font-weight: 600; }
.temps.vert { color: var(--vert); }
.temps.orange { color: var(--orange); }
.temps.rouge { color: var(--rouge); }

@media (max-width: 760px) {
  .grille thead { display: none; }
  .grille, .grille tbody, .grille tr, .grille td { display: block; }
  .grille tr { border: 1px solid var(--trait); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--carte); }
  .grille td { border: none; padding: 3px 0; }
  .grille .nombre { text-align: left; }
  .grille td[data-titre]::before { content: attr(data-titre) " : "; color: var(--texte-3); font-size: 0.85rem; font-weight: 400; }
  .grille .actions { justify-content: flex-start; margin-top: 8px; }
  .grille .objectif { white-space: normal; }
}

.antiseche { display: grid; gap: 12px; }
.antiseche h3 { font-size: 1.1rem; }
.antiseche dl { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 0.93rem; }
.antiseche dt { color: var(--texte-3); }
.antiseche dd { margin: 0; }
.antiseche .reponse { color: var(--or-clair); font-weight: 600; letter-spacing: 0.04em; }

.planche { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.etiquette-qr { text-align: center; display: grid; gap: 6px; justify-items: center; break-inside: avoid; }
.etiquette-qr .prenom { font-family: var(--titre); font-size: 1.25rem; }
.qr { background: #fff; padding: 10px; border-radius: 10px; width: min(100%, 240px); margin: 0 auto; line-height: 0; }
.qr svg { width: 100%; height: auto; }

.reglages { display: grid; gap: 16px; max-width: 560px; }
.reglages fieldset { border: 1px solid var(--trait); border-radius: 12px; padding: 16px; display: grid; gap: 12px; margin: 0; }
.reglages legend { padding: 0 8px; color: var(--or); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.reglages .trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.case { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.case input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--or); flex: none; }

.journal { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.journal .plus { color: var(--vert); }
.journal .moins { color: var(--rouge); }

@media print {
  body { background: #fff; color: #000; }
  .entete, .onglets, .hors-ligne, .sans-impression { display: none !important; }
  .carte { border-color: #999; background: #fff; }
  .pastille { color: #000; border-color: #000; }
  .discret { color: #333; }
}

.alerte { position: fixed; inset: 12px 12px auto; z-index: 10; max-width: 560px; margin: 0 auto; }

/* ---------- Lot 1 : consignes, présence, messages ---------- */

.consignes { flex-basis: 100%; display: grid; gap: 6px; background: var(--fond-2); border: 1px solid var(--or-sombre); border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; }
.consignes strong { color: var(--or-clair); font-weight: 600; }

.presence { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--texte-3); }
.presence.en-ligne { background: var(--vert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vert) 25%, transparent); }
.presence.absent { background: var(--orange); }
.presence.jamais { background: transparent; border: 2px solid var(--rouge); }

.annonces { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.annonce {
  display: grid; gap: 4px; text-align: left;
  min-height: 64px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--or-sombre);
  background: var(--carte-2); color: var(--texte); cursor: pointer;
  font-size: 0.95rem; line-height: 1.35;
}
.annonce:hover { border-color: var(--or); }
.annonce:active { transform: scale(0.98); background: color-mix(in srgb, var(--or) 18%, var(--carte-2)); }

.journal.messages { gap: 10px; }
.journal.messages li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 1px solid var(--trait); padding-top: 10px; }
.journal.messages li:first-child { border-top: none; padding-top: 0; }
.journal.messages p { margin-top: 2px; }

.scene > h2 { font-size: 1.2rem; margin-top: 6px; }
.antiseche > h2 { font-size: 1.2rem; }

/* ---------- Lot 2 : planning, minuteur, télé ---------- */

.planning { flex-basis: 100%; color: var(--texte-2); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.planning strong.vert { color: var(--vert); }
.planning strong.orange { color: var(--orange); }
.planning strong.rouge { color: var(--rouge); }

.commande-minuteur {
  flex-basis: 100%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  border: 1px solid var(--trait); border-radius: 12px; padding: 10px 14px; background: var(--fond-2);
}
.commande-minuteur.actif { border-color: var(--or-sombre); }
.commande-minuteur .compte { font-family: var(--titre); font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--or-clair); }
.commande-minuteur .compte.orange { color: var(--orange); }
.commande-minuteur .compte.rouge { color: var(--rouge); font-size: 1.1rem; }

.tele-acces { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; max-width: 760px; }
.tele-acces .qr { width: 150px; }
@media (max-width: 560px) { .tele-acces { grid-template-columns: 1fr; } }

/* ---------- Lot 3 : bibliothèque et sons ---------- */

.depot { border: 2px dashed var(--trait); border-radius: 12px; padding: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; color: var(--texte-2); }
.depot.survol { border-color: var(--or); background: color-mix(in srgb, var(--or) 8%, transparent); }
progress { width: 100%; height: 10px; accent-color: var(--or); }
.liste-sons { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.liste-sons .son { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--trait); }
.liste-sons .son p { overflow-wrap: anywhere; }
code { font-size: 0.85em; color: var(--or-clair); }

.console-sons { border-color: var(--or-sombre); }
.volume { width: 100%; accent-color: var(--or); }
.sons-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.son-carte { display: grid; gap: 6px; }
.son-bouton {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  text-align: left; min-height: 64px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--trait); background: var(--carte-2); color: var(--texte); cursor: pointer;
}
.son-bouton:hover { border-color: var(--or-sombre); }
.son-bouton:active { transform: scale(0.98); }
.son-bouton:disabled { opacity: 0.45; cursor: not-allowed; }
.son-bouton .icone { grid-row: 1 / 3; font-size: 1.3rem; width: 28px; text-align: center; color: var(--or); }
.son-bouton .titre { font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
.son-bouton .detail { font-size: 0.75rem; color: var(--texte-3); text-transform: uppercase; letter-spacing: 0.06em; }
.son-bouton .avancement { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--or); transition: width 0.25s linear; }
.son-carte.joue .son-bouton { border-color: var(--or); background: color-mix(in srgb, var(--or) 14%, var(--carte-2)); }
.son-carte.joue .icone { animation: pulse 1.2s ease-in-out infinite; }
.son-carte.erreur .son-bouton { border-color: var(--rouge); }
.son-carte.voix .icone { color: var(--or-clair); }
.son-carte.ambiance .icone, .son-carte.boucle .icone, .son-carte.musique .icone { color: var(--vert); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Lot 4 : vote ---------- */

.decompte { display: grid; gap: 10px; }
.ligne-vote { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 32px; gap: 12px; align-items: center; }
.barre-vote { height: 12px; border-radius: 6px; background: var(--fond-2); border: 1px solid var(--trait); overflow: hidden; }
.barre-vote span { display: block; height: 100%; background: var(--or); }
.ligne-vote strong { text-align: right; font-variant-numeric: tabular-nums; }
.verdict-regie.demasque { border-color: var(--vert); }
.verdict-regie.echec { border-color: var(--rouge); }

/* ---------- Lot 5 : assistant ---------- */

.texte-assistant { white-space: pre-wrap; max-height: 50vh; overflow: auto; background: var(--fond-2); border: 1px solid var(--trait); border-radius: 10px; padding: 12px; font-size: 0.85rem; line-height: 1.5; }
.message ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Lot 6 : installation ---------- */

.progression { height: 10px; border-radius: 5px; background: var(--fond-2); border: 1px solid var(--trait); overflow: hidden; }
.progression span { display: block; height: 100%; background: var(--vert); transition: width 0.3s; }
.checklist h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checklist .compte { font-size: 0.85rem; font-family: var(--corps); }
.liste-checklist { list-style: none; margin: 0; padding: 4px 12px; }
.ligne-checklist { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.ligne-checklist:last-child { border-bottom: none; }
.ligne-checklist p { margin: 0; }
.ligne-checklist.fait > div > p:first-child { color: var(--texte-2); }
.coche { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--or-sombre); background: none; color: #07120c; font-weight: 700; display: grid; place-items: center; padding: 0; cursor: pointer; font-size: 1rem; }
.fait .coche { background: var(--vert); border-color: var(--vert); }
.coche:disabled { cursor: default; opacity: 0.8; }
.pile-serree { display: grid; gap: 2px; }
.vignette { display: block; max-width: 160px; max-height: 120px; border-radius: 8px; border: 1px solid var(--trait); margin-top: 6px; cursor: zoom-in; object-fit: cover; }
#pose-apercu .vignette { max-width: 100%; max-height: 220px; }
.badge.attention { color: var(--orange); border-color: var(--orange); }
.cachettes { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
details.rangement > summary { cursor: pointer; font-family: var(--titre); font-size: 1.2rem; padding: 12px 0; }
@media (max-width: 520px) {
  .ligne-checklist.objet { grid-template-columns: 32px 1fr; }
  .ligne-checklist.objet > .bouton { grid-column: 2; justify-self: start; }
}

/* ---------- Bibliothèque de sons : rayons, favoris, transcriptions ---------- */

.son-bouton { grid-template-rows: none; grid-auto-rows: auto; }
.son-bouton .icone { grid-row: 1 / span 3; align-self: start; padding-top: 2px; }
.son-bouton .extrait { grid-column: 2; font-size: 0.82rem; line-height: 1.35; color: var(--texte-2); font-style: italic; overflow-wrap: anywhere; }
.extrait { color: var(--texte-2); font-style: italic; font-size: 0.85rem; margin: 2px 0; }
.son-carte { position: relative; }
.son-carte:has(.etoile) .son-bouton { padding-right: 40px; }
.etoile { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 8px; border: none; background: none; color: var(--texte-3); font-size: 1.15rem; cursor: pointer; }
.etoile.active { color: var(--or); }
.rayons { display: flex; flex-wrap: wrap; gap: 6px; }
.rayon { min-height: 36px; padding: 6px 12px; border-radius: 18px; border: 1px solid var(--trait); background: none; color: var(--texte-2); font-size: 0.9rem; cursor: pointer; }
.rayon.actif { border-color: var(--or); color: var(--or); background: rgba(201, 166, 107, 0.08); }
.rayon .nombre { color: var(--texte-3); font-size: 0.8rem; }
.rayons.secondaires .rayon { min-height: 32px; padding: 4px 10px; font-size: 0.82rem; }

/* ---------- Lecteur : pause, barre de lecture, retour de 10 s ---------- */

.son-carte.joue .son-bouton .icone, .son-carte.en-pause .son-bouton .icone { animation: none; color: var(--or); }
.son-carte.en-pause .son-bouton { border-color: var(--orange); }
.lecteur { display: grid; gap: 6px; padding: 8px 10px 10px; border: 1px solid var(--trait); border-top: none; border-radius: 0 0 12px 12px; background: var(--fond-2); margin-top: -8px; }
.lecteur[hidden] { display: none; }
.rangee-lecture { display: flex; align-items: center; gap: 10px; }
.lecture { flex: 1; accent-color: var(--or); height: 28px; }
.temps-son { font-size: 0.8rem; color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.commandes-son { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Lot 3 bis : zones son ---------- */

.zones-son summary { cursor: pointer; }
.liste-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.zone-son { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte-2); }
.zone-son p { margin: 0; }
.zone-son.hors-ligne, .zone-son.absente { border-color: var(--orange); }
.zone-son.absente { opacity: 0.8; }
.zone-son.avec-lecture { flex-direction: column; align-items: stretch; }
.entete-zone { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lecteur-zone { margin-top: 4px; border: none; border-top: 1px solid var(--trait); border-radius: 0; background: none; padding: 8px 0 0; }
.titre-lecture { margin: 0; font-size: 0.88rem; color: var(--or-clair); overflow-wrap: anywhere; }
.bloc-mac p { margin: 0; }
.bloc-mac details summary { cursor: pointer; padding: 4px 0; }

/* Où partent les sons : barre collée en haut pendant qu'on fait défiler les sons. */
.destination-sons { position: sticky; top: 0; z-index: 5; display: grid; gap: 8px; padding: 10px 12px; margin: 0 -4px; border: 1px solid var(--or-sombre); border-radius: 14px; background: rgba(13, 13, 18, 0.96); backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.destination-sons.alerte { border-color: var(--rouge); }
.destination-sons .resume-destination { margin: 0; font-size: 0.92rem; color: var(--texte); }
.destination-sons.alerte .resume-destination { color: var(--rouge); }
.destination-sons .rayon { min-height: 40px; }

/* Le Mac du lieu ne répond plus : bandeau rouge en haut de toute la régie. */
.alerte-relais { position: sticky; top: 0; z-index: 20; padding: 12px 16px; background: #5a1410; color: #fff; font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid var(--rouge); }

/* Scènes : gros boutons, celles de l'acte en cours d'abord. */
.grille-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.scene-bouton { display: grid; gap: 4px; text-align: left; padding: 12px; min-height: 64px; border-radius: 14px; border: 1px solid var(--trait); background: var(--carte-2); color: var(--texte); cursor: pointer; font: inherit; }
.scene-bouton.acte-en-cours { border-color: var(--or); }
.scene-bouton .titre { font-weight: 600; }
.scene-bouton .detail { color: var(--texte-3); font-size: 0.8rem; }
.scene-bouton.jouee .detail:last-child { color: var(--vert); }
.scene-bouton:active { transform: scale(0.98); }

/* Zones : volume par zone et association avec la bible. */
.volume-zone { align-items: center; gap: 8px; }
.volume-zone .volume { flex: 1; }
.alias-zone { align-items: center; }

/* Lumières */
.ambiances { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ambiance { min-height: 44px; }
.ambiance-rouge { border-color: #ff1a00; color: #ff7a66; }
.ambiance-bleu { border-color: #1a3cff; color: #8fa2ff; }
.ambiance-vert { border-color: #20ff40; color: #8dffa0; }
.ambiance-violet { border-color: #9b30ff; color: #cf9bff; }
.ambiance-noir { background: #000; }
.ambiance-eclair { border-color: #fff; }
.couleur-lumiere { width: 52px; height: 40px; padding: 0; border: 1px solid var(--trait); border-radius: 10px; background: none; }
.liste-objets .objet { align-items: center; padding: 6px 0; border-top: 1px solid var(--trait); }
.liste-objets .objet.non-pilotable { opacity: 0.6; }

/* Direct : une carte par groupe (joueur, clan ou tous), les plus en retard d'abord. */
.groupe-direct { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--trait); border-left-width: 5px; background: var(--carte); }
.groupe-direct.alerte-rouge { border-left-color: var(--rouge); background: linear-gradient(90deg, rgba(224, 106, 95, 0.10), var(--carte) 40%); }
.groupe-direct.alerte-orange { border-left-color: var(--orange); background: linear-gradient(90deg, rgba(224, 161, 74, 0.09), var(--carte) 40%); }
.groupe-direct.alerte-bientot { border-left-color: var(--or-sombre); }
.groupe-direct.alerte-ok { border-left-color: var(--vert); }
.groupe-direct .entete-groupe { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.groupe-direct .nom-groupe { margin: 0; font-weight: 600; font-size: 1.02rem; }
.groupe-direct .objectif { margin: 2px 0 0; color: var(--texte-2); font-size: 0.88rem; }
.groupe-direct .chrono-groupe { display: grid; justify-items: end; gap: 2px; white-space: nowrap; font-size: 0.8rem; }
.groupe-direct .chrono-groupe .temps { font-size: 1.25rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.groupe-direct .etat-groupe { margin: 0; font-size: 0.86rem; color: var(--texte-2); }
.groupe-direct.alerte-rouge .etat-groupe strong { color: var(--rouge); }
.groupe-direct.alerte-orange .etat-groupe strong { color: var(--orange); }
.groupe-direct .absents { color: var(--orange); }
.groupe-direct .indice-pret { display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--fond-2); }
.groupe-direct .indice-pret p { margin: 0; font-size: 0.9rem; }
.message-rapide { align-items: center; }
.replie-entete { margin-top: 4px; }
.replie-entete summary { cursor: pointer; padding: 6px 0; }

/* Claude dans la régie : bouton flottant et panneau de conversation. */
.bouton-claude { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--or); background: var(--or); color: #1a1408; font: inherit; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); cursor: pointer; }
.panneau-claude { position: fixed; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 31; width: min(420px, calc(100vw - 24px)); max-height: min(70vh, 640px); display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid var(--or-sombre); background: var(--carte); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6); }
.panneau-claude[hidden] { display: none; }
.entete-claude { display: flex; align-items: center; gap: 8px; }
.entete-claude .discret { flex: 1; font-size: 0.8rem; }
.fil-claude { overflow-y: auto; display: grid; gap: 8px; align-content: start; padding-right: 2px; }
.bulle { padding: 8px 12px; border-radius: 14px; max-width: 92%; }
.bulle p { margin: 0; white-space: pre-wrap; font-size: 0.92rem; }
.bulle.user { justify-self: end; background: var(--carte-2); }
.bulle.assistant { justify-self: start; background: var(--fond-2); border: 1px solid var(--trait); }
.bulle.attente p { color: var(--texte-3); }
.propositions { display: grid; gap: 6px; margin-top: 8px; }
.propositions .bouton { text-align: left; white-space: normal; }
.propositions .bouton.faite { border-color: var(--vert); color: var(--vert); }
.saisie-claude { align-items: flex-end; }
.voix-perso textarea { resize: vertical; }

/* Dictée : bouton micro, rouge pendant l'enregistrement. */
.dictee { min-width: 48px; min-height: 44px; font-size: 1.1rem; }
.dictee.enregistre { background: var(--rouge); border-color: var(--rouge); color: #fff; animation: pulse-dictee 1.2s ease-in-out infinite; }
@keyframes pulse-dictee { 50% { box-shadow: 0 0 0 6px rgba(224, 106, 95, 0.25); } }
.champ-dicte { align-items: flex-start; }

/* Dictée en direct : onde de la voix + mots provisoires en gris. */
.dictee-panneau { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--or); border-radius: 12px; background: rgba(201, 169, 110, 0.06); margin-top: 8px; }
.dictee-haut { align-items: center; flex-wrap: nowrap; }
.dictee-onde { flex: 1; min-width: 0; height: 40px; }
.dictee-direct { min-height: 1.5em; max-height: 8em; overflow-y: auto; line-height: 1.45; }
.dictee-direct .provisoire { opacity: 0.5; }

/* Atelier de création. */
.atelier details > summary { cursor: pointer; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bloc-atelier { padding-top: 14px; border-top: 1px solid var(--trait); }
.liste-atelier { margin: 4px 0 0; padding-left: 18px; color: var(--texte-2); display: grid; gap: 4px; }
.champ.mono { font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; }
.code-partie { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.08em; color: var(--or-clair); }

/* Atelier : photos du lieu. */
.photos-atelier { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos-atelier:empty { display: none; }
.photo-atelier { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--trait); }
.photo-atelier img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-atelier button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(0,0,0,0.7); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.photo-bloc { display: grid; gap: 4px; }
.champ.legende { padding: 6px 8px; font-size: 0.8rem; min-height: 0; }
.photo-atelier img { cursor: pointer; }
.bouton.decrire { font-size: 0.78rem; padding: 6px 6px; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bouton.decrire.decrite { border-color: var(--or-sombre); color: var(--or-clair); }
.photo-bloc.ouverte .photo-atelier { outline: 2px solid var(--or); }
.photo-grande { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; background: #000; }
.dictee-direct .attente { opacity: 0.5; }
