/* Tableau en direct — maquette CSCE 6567 (06/11/2026). Règles : DESIGN-direct.md, même dossier.
   Idée maîtresse : le mur se lit de gauche à droite comme la réunion avance — ce qui demande la parole,
   ce qui se discute, ce qui en sort. Signature : la règle du temps (sujets, repères, front d'analyse). */
:root {
  color-scheme: light;
  --encre: #0f2147;
  --encre-2: #2c3a5a;
  --gris: #566174;
  --gris-clair: #8a93a5;
  --mur: #eceef3;
  --tuile: #fff;
  --filet: #d6dae4;
  --filet-fort: #b9c0cf;
  --accent: #6d28d9;
  --accent-doux: #f0eafa;
  --acte: #17603a;
  --acte-doux: #e4f3ea;
  --vigil: #a33a2b;
  --vigil-doux: #fbebe7;
  --verif: #6e5119;
  --verif-doux: #f7efdc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --e1: .25rem; --e2: .5rem; --e3: 1rem; --e4: 1.5rem; --e5: 2rem; --e6: 3rem;
  --rayon: .375rem;
}
* { box-sizing: border-box; }
html { font-size: clamp(15px, .55vw + 8px, 20px); }
body { margin: 0; font: 1rem/1.45 var(--sans); color: var(--encre); background: var(--mur); -webkit-tap-highlight-color: #6d28d922; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le mur tient dans l'écran : aucune page à faire défiler au-delà de 1024 × 640. */
@media (min-width: 64rem) and (min-height: 40rem) {
  body.mur { height: 100vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); overflow: hidden; }
}

/* ——— Barre du haut : la réunion, l'enregistrement, trois gestes. Rien d'autre (pas de menus). ——— */
.barre { display: flex; align-items: center; gap: var(--e3); padding: var(--e2) var(--e4); min-height: 3.5rem; background: var(--tuile); border-bottom: 1px solid var(--filet); }
.barre .symbole { width: 1.75rem; height: auto; flex: none; }
.barre h1 { margin: 0; font: 600 1.25rem/1.2 var(--serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre .contexte { color: var(--gris); font-size: .875rem; white-space: nowrap; }
.barre .espace { flex: 1; }
.enregistre { display: inline-flex; align-items: center; gap: var(--e2); font: 600 1.125rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.enregistre::before { content: ""; width: .625rem; height: .625rem; border-radius: 50%; background: #c0392b; animation: battement 2s ease-in-out infinite; }
@keyframes battement { 50% { opacity: .35; } }
.etat-analyse { color: var(--gris); font-size: .875rem; white-space: nowrap; }
.etat-analyse.coupe { color: var(--vigil); font-weight: 600; white-space: normal; max-width: 26rem; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: var(--e2); min-height: 2.75rem; padding: var(--e2) var(--e3); border-radius: var(--rayon); border: 1px solid #8b94a5; background: var(--tuile); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.bouton:hover { background: #f4f5f8; border-color: var(--gris-clair); }
.bouton.fin { border-color: #c5523f; color: var(--vigil); }
.bouton.fin:hover { background: var(--vigil-doux); }
.personnes { display: flex; }
.initiales { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #e7e3f2; color: #4a1f94; font-size: .75rem; font-weight: 700; border: 2px solid var(--tuile); }
.personnes .initiales + .initiales { margin-left: -.5rem; }

/* ——— La règle du temps (signature) ——— */
.regle { position: relative; padding: var(--e2) var(--e4) var(--e2); background: var(--tuile); border-bottom: 1px solid var(--filet); }
.regle-tete { display: flex; align-items: baseline; gap: var(--e3); font-size: .875rem; margin-bottom: var(--e1); }
.regle-tete .sujet-cours { font-weight: 600; }
.regle-tete .sujet-cours span { color: var(--gris); font-weight: 400; margin-right: var(--e2); }
.regle-tete .bornes { margin-left: auto; color: var(--gris); font-variant-numeric: tabular-nums; }
.piste { position: relative; height: 2.625rem; }
.segment { position: absolute; top: 0; height: 1.25rem; border-radius: 2px; background: #d3d8e3; overflow: hidden; }
.segment.cours { background: var(--encre-2); }
.segment .nom { position: absolute; inset: 0 auto 0 var(--e2); font-size: .75rem; line-height: 1.25rem; color: var(--encre); white-space: nowrap; }
.segment.cours .nom { color: #fff; }
.front { position: absolute; top: 0; height: 1.25rem; border-radius: 2px; background: repeating-linear-gradient(135deg, #d9dde7 0 5px, #fff 5px 9px); border: 1px solid #c3c9d6; }
.trou { position: absolute; top: 0; height: 1.25rem; border-radius: 2px; background: repeating-linear-gradient(135deg, #f1c9c1 0 5px, #fff 5px 9px); border: 1px solid #e0a094; }
/* Un repère : 12 px à viser, 3 px à voir. */
.repere { position: absolute; top: 1.3125rem; width: 12px; height: .75rem; margin-left: -6px; border: 0; padding: 0; background: none; cursor: pointer; }
.repere::before { content: ""; position: absolute; left: 4.5px; top: 0; width: 3px; height: .5rem; border-radius: 1px; background: var(--gris-clair); }
.repere.decision::before { background: var(--acte); height: .75rem; }
.repere.vigilance::before { background: var(--vigil); }
.repere.choisi::before { background: var(--accent); width: 5px; left: 3.5px; height: .75rem; }
.repere:hover::before { background: var(--encre); }
.graduation { position: absolute; top: 1.8125rem; line-height: 1; transform: translateX(-50%); font-size: .6875rem; color: var(--gris); font-variant-numeric: tabular-nums; pointer-events: none; }
.graduation:first-of-type { transform: none; }

/* ——— Les trois zones ——— */
.zones { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 43fr) minmax(0, 27fr); gap: var(--e4); padding: var(--e3) var(--e4) var(--e4); min-height: 0; }
.zone { position: relative; min-height: 0; display: flex; flex-direction: column; gap: var(--e3); overflow-y: auto; scrollbar-width: thin; padding: 2px; }
.zone > h2 { position: sticky; top: 0; z-index: 2; margin: 0; padding: var(--e2) 0 var(--e1); background: var(--mur); display: flex; align-items: baseline; gap: var(--e2); font: 700 .8125rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--encre); border-top: 2px solid var(--encre); }
.zone > h2 small { font: 400 .8125rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--gris); }
.zone > h2 .vers { margin-left: auto; color: var(--gris-clair); font-weight: 400; letter-spacing: 0; }
.bloc > h3 { margin: 0 0 var(--e2); display: flex; align-items: baseline; gap: var(--e2); font: 600 .875rem/1.3 var(--sans); color: var(--gris); }
.bloc > h3 .n { font-variant-numeric: tabular-nums; color: var(--encre); }
.bloc > h3 .tout { margin-left: auto; min-height: 2rem; font-weight: 600; }
@media (pointer: coarse) { .bloc > h3 .tout { min-height: 2.75rem; } }
.vide { color: var(--gris); font-size: .9375rem; margin: 0; padding: var(--e3); border: 1px dashed var(--filet-fort); border-radius: var(--rayon); }

/* Questions : le grand bloc. La taille suit la longueur (classes court / moyen / long posées au rendu). */
.question-une { position: relative; background: var(--tuile); border: 1px solid var(--filet); border-left: 4px solid var(--accent); border-radius: var(--rayon); padding: var(--e3) var(--e4); }
.question-une .texte { margin: 0 0 var(--e2); padding-right: var(--e4); font: 500 1.75rem/1.22 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.question-une.moyen .texte { font-size: 1.5rem; }
.question-une.long .texte { font-size: 1.25rem; }
.question-une .pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); }
.meta { color: var(--gris); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.question-une .pied .meta { flex-basis: 100%; }
.file { list-style: none; margin: var(--e2) 0 0; padding: 0; display: grid; gap: var(--e2); }
.file li { position: relative; background: var(--tuile); border: 1px solid var(--filet); border-radius: var(--rayon); padding: var(--e2) 2.75rem var(--e2) var(--e3); font: 500 1rem/1.35 var(--serif); }
.court2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.file li .meta { font-family: var(--sans); margin-left: var(--e2); }
.encore { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--accent); font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

/* Vigilance : la seule zone teintée, pour ressortir sans crier. */
.vigilance { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e2); }
.vigilance li { position: relative; padding: var(--e2) 2.75rem var(--e2) var(--e3); border-radius: var(--rayon); border-left: 4px solid var(--vigil); background: var(--vigil-doux); font-size: .9375rem; line-height: 1.4; }
.vigilance li.verifier { border-left-color: #b4862a; background: var(--verif-doux); }
.vigilance .nature { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vigil); margin-bottom: 2px; }
.vigilance li.verifier .nature { color: var(--verif); }

/* Tuiles « sur la table » : en débat seulement — leur place dit leur statut, pas de pastille. */
.debats { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--e2); align-items: start; }
.tuile { position: relative; background: var(--tuile); border: 1px solid var(--filet); border-radius: var(--rayon); padding: var(--e2) var(--e3) var(--e2); cursor: pointer; transition: border-color .15s; }
.tuile:hover { border-color: var(--filet-fort); }
.tuile .tete { display: flex; align-items: baseline; gap: var(--e2); padding-right: 2rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.tuile .tete .meta { font-size: .75rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.tuile .texte { margin: var(--e1) 0 var(--e2); font-size: 1.0625rem; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
.tuile .pied { display: flex; flex-wrap: wrap; gap: var(--e1) var(--e3); font-size: .8125rem; color: var(--gris); }
.tuile .pied b { font-weight: 600; }
.pour { color: var(--acte); }
.contre { color: var(--vigil); }
.tuile .garde, .tuile .nouveau-marque { margin-left: auto; color: var(--accent); letter-spacing: .04em; }
.tuile .garde + .nouveau-marque { margin-left: 0; }
.tuile.gardee { border-color: #c6b2ee; box-shadow: inset 0 3px 0 var(--accent); }
.tuile.nouveau, .question-une.nouveau { animation: arrivee .35s ease-out both; }
@keyframes arrivee { from { opacity: 0; transform: translateY(.5rem); } }
.tuile.choisie, .question-une.choisie, .file li.choisie, .vigilance li.choisie, .ligne.choisie { outline: 2px solid var(--accent); outline-offset: 1px; }
.tuile.liee, .question-une.liee, .file li.liee, .vigilance li.liee, .ligne.liee { outline: 2px dashed #a98be4; outline-offset: 1px; }
.etiquette-liee { display: none; }
.liee > .etiquette-liee { display: inline-block; position: absolute; right: var(--e2); bottom: var(--e2); font-size: .6875rem; font-weight: 700; color: var(--accent); background: var(--accent-doux); border-radius: 2px; padding: 0 var(--e1); }

/* Écarter : un clic, sans boîte de confirmation ; « Annuler » reste 8 s à la place de l'élément. */
.ecarter { position: absolute; top: 0; right: 0; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; background: none; color: var(--gris); font-size: 1.25rem; line-height: 1; opacity: 0; transition: opacity .15s; border-radius: var(--rayon); }
.ecarter:hover { color: var(--vigil); background: #0f21470d; }
:is(.tuile, .question-une, .file li, .vigilance li):is(:hover, :focus-within) .ecarter, .ecarter:focus-visible { opacity: 1; }
@media (pointer: coarse) { .ecarter { opacity: 1; } }
.annule { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); padding: var(--e2) var(--e3); border: 1px dashed var(--filet-fort); border-radius: var(--rayon); color: var(--gris); font-size: .875rem; }

/* Idées retenues : du contexte, en lignes. */
.idees { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: var(--e4); }
.idees li { break-inside: avoid; padding: var(--e1) 0 var(--e1) var(--e3); position: relative; font-size: .9375rem; line-height: 1.4; cursor: pointer; }
.idees li::before { content: ""; position: absolute; left: 0; top: .6em; width: .375rem; height: .375rem; border-radius: 50%; background: var(--gris-clair); }

/* Ce qui en sort : un compte rendu qui s'écrit. Lignes, pas de cartes. */
.zone.sortie .bloc { background: var(--tuile); border: 1px solid var(--filet); border-radius: var(--rayon); padding: var(--e2) var(--e3); }
.zone.sortie .bloc > h3 { margin-bottom: var(--e1); }
.lignes { list-style: none; margin: 0; padding: 0; }
.ligne { position: relative; padding: var(--e2) 0 var(--e2) var(--e3); border-top: 1px solid #e8ebf1; font-size: .9375rem; line-height: 1.4; cursor: pointer; }
.ligne:first-child { border-top: 0; padding-top: 0; }
.ligne .meta { margin-left: var(--e1); }
.decisions .ligne::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 2px; background: var(--acte); }
.decisions .ligne:first-child::before { top: 0; }
.actions .ligne { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--e2); padding-left: 0; }
.actions .initiales { width: 2rem; height: 2rem; border: 0; }
.actions .ligne strong { font-weight: 600; }
.parking .ligne { padding-left: 0; }
.clos { margin: 0; font-size: .8125rem; color: var(--gris); }
.clos .encore { min-height: 2rem; }

/* ——— Le détail : panneau à droite, le mur reste lisible derrière. ——— */
.detail { position: fixed; z-index: 20; top: 3.5rem; right: 0; bottom: 0; width: min(28rem, 100vw); overflow-y: auto; background: var(--tuile); border-left: 1px solid var(--filet); box-shadow: -12px 0 32px #0f214724; padding: var(--e4); }
.detail[hidden] { display: none; }
.detail .fermer { position: absolute; top: var(--e3); right: var(--e3); }
.detail .nature { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.detail h2 { margin: var(--e2) 0 var(--e3); font: 600 1.375rem/1.3 var(--serif); }
.detail h3 { margin: var(--e4) 0 var(--e2); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.citation { margin: 0; padding: var(--e2) var(--e3); border-left: 3px solid var(--filet-fort); color: var(--encre-2); font: italic 1rem/1.45 var(--serif); }
.citation .meta { display: block; font: normal .8125rem var(--sans); margin-top: var(--e1); }
.arguments { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e2); }
.arguments li { padding-left: var(--e3); border-left: 3px solid var(--acte); font-size: .9375rem; }
.arguments.contre-liste li { border-left-color: var(--vigil); }
.arguments .meta { display: block; }
.voter { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e2); }
.voter button { min-height: 2.75rem; border: 1px solid #8b94a5; border-radius: var(--rayon); background: var(--tuile); font-size: .875rem; font-weight: 600; display: grid; justify-items: center; padding: var(--e2) var(--e1); }
.voter button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-doux); color: #4a1f94; }
.voter button span { font-weight: 400; font-size: .75rem; color: var(--gris); }
.liens { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e1); }
.liens button { width: 100%; text-align: left; min-height: 2.75rem; padding: var(--e2) var(--e3); border: 1px solid var(--filet); border-radius: var(--rayon); background: #f7f8fb; font-size: .875rem; }
.liens button .meta { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.gestes { display: flex; flex-wrap: wrap; gap: var(--e2); margin-top: var(--e4); padding-top: var(--e3); border-top: 1px solid var(--filet); }
.bouton.principal { background: var(--acte); border-color: var(--acte); color: #fff; }
.bouton.principal:hover { background: #124d2f; }
.role { margin-top: var(--e3); font-size: .8125rem; color: var(--gris); }

/* ——— Téléphone et petites fenêtres : une colonne, la règle réduite, le détail en feuille du bas. ——— */
@media (max-width: 63.99rem) {
  html { font-size: 16px; }
  .barre { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--e1) var(--e3); padding: var(--e2) var(--e3); }
  .barre h1 { font-size: 1.0625rem; }
  .barre .symbole, .barre .contexte, .barre .espace, .barre .masque-petit { display: none; }
  .barre .etat-analyse { grid-column: 1 / -1; grid-row: 2; font-size: .8125rem; }
  .regle { padding: var(--e2) var(--e3); }
  .regle-tete { flex-wrap: wrap; gap: 0 var(--e2); font-size: .8125rem; }
  .segment .nom { display: none; }
  .zones { display: block; padding: var(--e3); }
  .zone { overflow: visible; margin-bottom: var(--e5); }
  .zone > h2 { position: static; }
  .question-une { padding: var(--e3); }
  .question-une .texte { font-size: 1.375rem; }
  .question-une.moyen .texte { font-size: 1.25rem; }
  .question-une.long .texte { font-size: 1.125rem; }
  .debats { grid-template-columns: 1fr; }
  .idees { columns: 1; }
  .detail { top: auto; left: 0; width: 100%; max-height: 85vh; border-left: 0; border-top: 1px solid var(--filet); border-radius: .75rem .75rem 0 0; box-shadow: 0 -12px 32px #0f214733; }
}
@media (prefers-reduced-motion: reduce) {
  .enregistre::before, .tuile.nouveau, .question-une.nouveau { animation: none; }
  .ecarter, .tuile { transition: none; }
}

/* Le contenu d'un élément est un bouton qui ouvre le détail ; « × » reste un bouton à part (jamais imbriqué). */
.ouvrir { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; line-height: inherit; color: inherit; cursor: pointer; border-radius: 2px; }
.ouvrir > span { display: block; }
.tuile .ouvrir .tete { display: flex; }
.tuile .ouvrir .pied { display: grid; gap: 2px; }
.file li .ouvrir, .ligne .ouvrir { display: block; }
.actions .ligne .ouvrir .meta { display: block; margin: 2px 0 0; }
.front .nom, .trou .nom { position: absolute; inset: 0 auto 0 var(--e2); font-size: .6875rem; line-height: 1rem; white-space: nowrap; color: var(--encre-2); }
.trou .nom { color: var(--vigil); font-weight: 600; background: #fff; padding: 0 var(--e1); border-radius: 2px; height: 1rem; line-height: 1rem; top: 2px; }
.front .nom { background: #fff; padding: 0 var(--e1); border-radius: 2px; height: 1rem; line-height: 1rem; top: 1px; }

/* Dernier palier : tuiles resserrées (votes cachés, l'avis reste dans le détail). */
.zone.serre .tuile .pied > span + span { display: none; }
.zone.serre .tuile .texte { font-size: 1rem; margin-bottom: var(--e1); }

/* ——— Tour 3 ——— */
.question-une .pourquoi { display: block; margin: 0 0 var(--e3); color: var(--encre-2); font-size: .9375rem; }
.suivantes { margin: var(--e3) 0 0; font-size: .8125rem; font-weight: 600; color: var(--gris); }
.suivantes + .file { margin-top: var(--e1); }
.file li.nouveau { border-left: 3px solid var(--accent); }
.etiq { color: var(--gris); font-weight: 600; margin-right: var(--e1); }
.ligne-pied { display: block; }
.tuile .pied { display: grid; gap: 2px; }
.tuile .nb-liens { margin-left: var(--e2); font-weight: 600; letter-spacing: .04em; color: var(--gris); }
.tuile.question { border-style: dashed; border-color: var(--filet-fort); }
.decisions .etiq { display: inline; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--acte); }
.accueil-direct { padding: var(--e4); background: var(--tuile); border: 1px solid var(--filet); border-left: 4px solid var(--encre-2); border-radius: var(--rayon); }
.accueil-direct .grand { margin: 0 0 var(--e2); font: 500 1.75rem/1.25 var(--serif); }
.accueil-direct p:last-child { margin: 0; color: var(--gris); }
.bouton.discret { border-color: transparent; color: var(--gris); text-decoration: underline; text-underline-offset: .2em; }
.bouton.discret:hover { color: var(--vigil); background: none; }
.detail .ou { margin: calc(-1 * var(--e2)) 0 0; font-size: .875rem; color: var(--gris); }
.detail .gestes { margin-top: var(--e3); padding: 0 0 var(--e3); border-top: 0; border-bottom: 1px solid var(--filet); }
.detail h2:focus, .detail h2:focus-visible { outline: none; }
.voter b { font-weight: 700; }
.point-neuf { display: inline-block; width: .5rem; height: .5rem; margin-left: var(--e1); border-radius: 50%; background: var(--accent); vertical-align: .1em; }
.onglets { display: none; }
details.replie summary { display: flex; align-items: center; gap: var(--e2); min-height: 2.75rem; font-weight: 600; color: var(--gris); cursor: pointer; }
details.replie summary .n { color: var(--encre); }

/* Le détail pousse le mur au lieu de le couvrir : le mur garde ses trois zones, resserrées par les paliers. */
@media (min-width: 64rem) and (min-height: 40rem) {
  body.mur.avec-detail { grid-template-columns: minmax(0, 1fr) 26rem; }
  body.mur.avec-detail > .barre, body.mur.avec-detail > .regle { grid-column: 1 / -1; }
  body.mur.avec-detail > .zones { grid-column: 1; grid-row: 3; }
  body.mur.avec-detail > .detail { position: relative; top: auto; grid-column: 2; grid-row: 3; width: auto; box-shadow: none; min-height: 0; }
  body.mur.avec-detail .zone > h2 small { display: none; }
}
@media (min-width: 64rem) and (max-height: 39.99rem) { .detail { top: 0; } }

/* Mode salle (bouton « Plein écran ») : moins d'informations simultanées, texte plus grand, séparations renforcées. */
body.salle { --filet: #c3c9d6; }
html:has(body.salle) { font-size: clamp(17px, .62vw + 9px, 23px); }
body.salle .zone > h2 small, body.salle .tuile .tete .meta, body.salle .idees .meta, body.salle .ligne .meta:not(.actions .meta), body.salle .question-une .pied .meta, body.salle .barre .contexte { display: none; }
body.salle .zone > h2 { border-top-width: 3px; font-size: .875rem; }
body.salle .tuile, body.salle .zone.sortie .bloc, body.salle .file li { border-color: #aeb6c6; }
body.salle .segment .nom, body.salle .graduation { font-size: .8125rem; }

@media (max-width: 63.99rem) {
  .onglets { display: grid; min-height: 3.1875rem; grid-template-columns: repeat(3, 1fr); position: sticky; top: 4.75rem; z-index: 9; background: var(--tuile); border-bottom: 1px solid var(--filet); }
  .onglets button { min-height: 3rem; padding: var(--e1) var(--e1); border: 0; border-bottom: 3px solid transparent; background: none; font-size: .875rem; font-weight: 600; color: var(--gris); }
  .onglets button[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--encre); }
  .onglets .n { font-variant-numeric: tabular-nums; }
  .zone.cachee-tel { display: none; }
  .zone > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
  .graduation:not(:first-of-type) { display: none; }
  .repere { pointer-events: none; }
}
.question-une.compact .pourquoi, .question-une.compact .pied .meta { display: none; }
.question-une.compact .texte { font-size: 1.25rem; }

/* ——— Tour 4 ——— */
a { color: var(--accent); text-underline-offset: .2em; }
.bloc:empty { display: none; }
/* L'onde de la parole, reprise du logo : une barre par tranche de 10 s, au-dessus des sujets. */
.onde { position: relative; height: .875rem; margin-bottom: 2px; }
.onde i { position: absolute; bottom: 0; background: #8f99b3; border-radius: 1px 1px 0 0; }
.onde i.ecoute { background: #c9cedb; }
/* « On en parle » : l'élément a bougé au dernier tour (argument ou statut). Filet marine à gauche. */
.tuile.actif { box-shadow: inset 3px 0 0 var(--encre); }
.tuile.gardee.actif { box-shadow: inset 0 3px 0 var(--accent), inset 3px 0 0 var(--encre); }
.tuile .parle { margin-left: auto; color: var(--encre); letter-spacing: .04em; }
.tuile .parle::before { content: ""; display: inline-block; width: .4375rem; height: .4375rem; margin-right: var(--e1); border-radius: 50%; background: var(--encre); vertical-align: .05em; }
/* Les décisions portent la coche du logo. */
.decisions .ligne::before { content: ""; position: absolute; left: 0; top: .4em; bottom: auto; width: .3125rem; height: .625rem; border: solid var(--acte); border-width: 0 2px 2px 0; border-radius: 0; background: none; transform: rotate(45deg); }
.decisions .ligne:first-child::before { top: .3em; }
.decisions.etabli .ligne::before { border-color: var(--gris); }
.panneau-tete { position: sticky; top: calc(-1 * var(--e4)); z-index: 2; display: flex; justify-content: flex-end; margin: calc(-1 * var(--e4)) calc(-1 * var(--e4)) 0; padding: var(--e3) var(--e3) var(--e2); background: var(--tuile); }
.detail .fermer { position: static; }
.retour { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.portee { margin: var(--e2) 0 0; font-size: .8125rem; color: var(--gris); }
.detail .gestes { padding-bottom: 0; border-bottom: 0; }
.secondaires { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 var(--e2); margin-top: var(--e4); padding-top: var(--e3); border-top: 1px solid var(--filet); }
.secondaires span { font-size: .8125rem; color: var(--gris); }
.secondaires .bouton { justify-content: flex-start; padding-left: 0; }
.liste-complete li { display: flex; gap: var(--e2); align-items: center; }
.liste-complete li > button:first-child { flex: 1; }
.bouton.petit { min-height: 2.75rem; padding: var(--e1) var(--e3); }
details.replie summary { list-style: none; }
details.replie summary::-webkit-details-marker { display: none; }
details.replie .deplier { margin-left: auto; font-weight: 600; color: var(--accent); }
details.replie .deplier::after { content: "Afficher"; }
details.replie[open] .deplier::after { content: "Masquer"; }
body.salle .tuile .nb-liens, body.salle .portee { display: none; }
@media (max-width: 63.99rem) {
  .onde { height: .625rem; }
  .piste { height: 1.25rem; }
  .regle-tete .bornes { margin-left: auto; }
  .panneau-tete { top: calc(-1 * var(--e4)); }
}

/* ——— Corrections après la critique du tour 4 ——— */
/* La barre ne peut plus élargir le mur : elle se tasse (contexte puis participants masqués) et l'état peut passer à la ligne. */
.barre { min-width: 0; }
.barre .etat-analyse { white-space: normal; min-width: 0; line-height: 1.25; }
@media (max-width: 90rem) { .barre .contexte { display: none; } }
@media (max-width: 82rem) { .barre .personnes { display: none; } }
/* En-têtes de tuile : un libellé court passe à la ligne en entier, jamais coupé au milieu. */
.tuile .ouvrir .tete { flex-wrap: wrap; row-gap: 0; }
.tuile .tete > span { white-space: nowrap; }
/* Panneau ouvert : la grande question se resserre au lieu de se casser en mots isolés. */
body.avec-detail .question-une .texte { font-size: 1.25rem; }
body.avec-detail .question-une .pourquoi { display: none; }
.clos .vide { display: block; }
@media (max-width: 63.99rem) { .barre .bouton.fin { min-height: 2.75rem; padding: var(--e1) var(--e3); font-size: .8125rem; } }
