:root {
  --bleu: #0b3d91; --bleu-clair: #e8eef9; --vert: #1e7d3a; --orange: #b85c00; --rouge: #b3261e;
  --gris: #5f6368; --fond: #f6f7f9; --carte: #fff; --bord: #d9dde3;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: #1b1d21; }
.barre { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bleu); color: #fff; padding-top: max(12px, env(safe-area-inset-top)); }
.barre h1 { font-size: 1.15rem; margin: 0; }
.pastille { font-size: .8rem; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.2); }
.pastille.ok { background: var(--vert); }
main { max-width: 640px; margin: 0 auto; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.ecran > * + * { margin-top: 14px; }
label { display: block; font-weight: 600; }
label.case { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
input, select { display: block; width: 100%; margin-top: 6px; padding: 12px; font-size: 1rem; border: 1px solid var(--bord); border-radius: 10px; background: #fff; }
input[type=checkbox] { width: auto; margin-top: 3px; }
input[type=range] { padding: 0; }
button { font-size: 1rem; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--bord); background: #fff; cursor: pointer; min-height: 48px; }
button:disabled { opacity: .5; cursor: default; }
button.principal { background: var(--bleu); color: #fff; border-color: var(--bleu); width: 100%; font-weight: 600; }
button.danger { color: var(--rouge); border-color: var(--rouge); }
.rangee { display: flex; gap: 8px; align-items: center; }
.rangee input { margin-top: 0; }
.conseil, .petit { color: var(--gris); font-size: .9rem; }
.alerte { background: #fff4e5; border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 6px; }
.carte, details { background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
summary { font-weight: 600; cursor: pointer; }
blockquote { margin: 8px 0; padding: 10px 12px; background: var(--bleu-clair); border-radius: 8px; font-style: italic; }
.participants { display: grid; gap: 6px; }
.participant { padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--bord); }
.participant.connecte::before { content: "● "; color: var(--vert); }
.participant.deconnecte::before { content: "● "; color: var(--rouge); }
.participant.attente { color: var(--gris); font-style: italic; }
.etat { text-align: center; font-size: 1.25rem; font-weight: 700; padding: 18px; border-radius: 14px; color: #fff; transition: background .2s; }
.etat-ecoute { background: var(--vert); }
.etat-parole { background: var(--orange); }
.etat-traduction { background: var(--bleu); }
.etat-lecture { background: #6a3fb5; }
.etat-pause { background: var(--gris); }
.commandes { display: grid; gap: 8px; }
.ptt { background: var(--orange); color: #fff; border: 0; min-height: 90px; font-size: 1.2rem; font-weight: 700; user-select: none; -webkit-user-select: none; touch-action: none; }
.ptt:active { filter: brightness(.85); }
.vumetre { position: relative; height: 12px; background: #e3e6ea; border-radius: 6px; margin-top: 10px; overflow: hidden; }
#niveau { height: 100%; width: 0; background: var(--vert); }
#seuil { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rouge); left: 0; }
.fil { list-style: none; padding: 0; display: grid; gap: 8px; }
.fil li { padding: 10px 12px; border-radius: 12px; max-width: 92%; }
.fil li.moi { background: var(--bleu-clair); justify-self: end; }
.fil li.autre { background: #fff; border: 1px solid var(--bord); justify-self: start; }
.fil p { margin: 0; }
.fil .texte { font-size: 1.05rem; }
.fil .original { color: var(--gris); font-size: .9rem; margin-top: 4px; }
.fil .note { color: var(--orange); font-size: .8rem; margin-top: 4px; }
.fil .mesure { color: var(--gris); font-size: .75rem; margin-top: 4px; }
#btn-quitter, #btn-quitter-reunion, #btn-quitter-tv { width: 100%; margin-top: 24px; }
button.secondaire { width: 100%; margin-top: 8px; background: var(--bleu-clair); border-color: var(--bleu); color: var(--bleu); font-weight: 600; }
.etats-reunion .etat { flex: 1; font-size: 1rem; padding: 12px; }
h2 { font-size: 1.2rem; margin: 0; }
.sous-titres { display: grid; gap: 10px; min-height: 40vh; align-content: end; }
.sous-titres .st { background: #111; color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 1.35rem; line-height: 1.35; opacity: .55; }
.sous-titres .st:last-child { opacity: 1; font-size: 1.6rem; }
.sous-titres .st small { display: block; font-size: .85rem; color: #bbb; margin-top: 6px; }
