/* Styles propres au module cercles (complètent /social.css). Préfixe .cm- ; uniquement des variables du système visuel. */

/* ───────────── utilitaires ───────────── */
.cm-i { width: 15px; height: 15px; vertical-align: -3px; flex: none; }
.cm-pad-t { padding-top: 12px; }
.cm-pad-b { padding-top: 8px; padding-bottom: 12px; }
.cm-btn-l { width: 100%; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.cm-danger, .cm-danger > svg:first-child, .cm-rouge { color: var(--rouge) !important; }
.cm-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .cm-deux { grid-template-columns: 1fr; } }

/* ───────────── liste « mes cercles » ───────────── */
.m-tuile .cm-droite-bas { display: flex; align-items: center; gap: 5px; min-height: 20px; }
.cm-sourd svg { width: 16px; height: 16px; color: var(--s-doux); display: block; }
.m-tuile .cm-chevron { width: 18px; height: 18px; color: var(--s-doux); flex: none; }
.m-tuile b .m-badge { margin-left: 4px; }
.cm-a-traiter { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cm-tuile-lien { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.cm-tuile-une { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--s-trait)); border-radius: var(--r3); background: color-mix(in srgb, var(--accent) 7%, var(--s-surface)); }
.cm-une { padding: 0 16px 4px; }

/* Cartes de découverte : toute la carte est cliquable, le bouton reste au-dessus. */
.cm-carte { --teinte: var(--violet); }
.cm-carte-lien { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cm-carte .c-pied .m-btn, .cm-carte .c-pied .m-badge { position: relative; z-index: 2; }
.cm-carte .c-pied > span:first-child { display: inline-flex; align-items: center; gap: 5px; }

/* ───────────── assistant de création ───────────── */
.cm-etapes { display: flex; gap: 5px; padding: 12px 16px 0; }
.cm-etapes i { flex: 1; height: 4px; border-radius: 4px; background: var(--s-surface3); transition: background var(--duree); }
.cm-etapes i.on { background: var(--accent); }
.cm-pas { margin: 14px 16px 0; }
.cm-pas-titre { margin: 4px 16px 2px; }
.cm-pas-aide { margin: 2px 16px 0; }
.cm-form { padding: 0 16px 16px; }
.cm-form > .m-aide:first-child { margin-top: 12px; }
.cm-choix { display: grid; gap: 8px; }
.cm-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r2); border: 1px solid var(--s-trait); background: var(--s-surface); cursor: pointer; transition: border-color var(--duree), background var(--duree); }
.cm-opt:hover { border-color: var(--s-trait-fort); }
.cm-opt > svg { width: 22px; height: 22px; color: var(--s-texte2); flex: none; margin-top: 1px; }
.cm-opt span { flex: 1; min-width: 0; }
.cm-opt b { display: block; font-weight: 650; }
.cm-opt small { display: block; color: var(--s-doux); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.cm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cm-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--s-surface)); }
.cm-opt:has(input:checked) > svg { color: var(--accent-txt); }
.cm-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-bascule-l { cursor: pointer; }
.cm-form .cm-bascule-l { padding-left: 0; padding-right: 0; }
.cm-couleurs { padding: 2px 0 6px; }
.cm-photo { display: flex; align-items: center; gap: 14px; }
.cm-recap { padding: 14px 0 0; }
.cm-liste-recap { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cm-liste-recap li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--s-texte2); }
.cm-liste-recap li svg { width: 18px; height: 18px; flex: none; color: var(--accent-txt); margin-top: 1px; }
.cm-couv-choix { position: relative; height: 96px; border-radius: var(--r2); overflow: hidden; background: var(--teinte, var(--s-surface3)); display: grid; place-items: center; }
.cm-couv-choix img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-couv-choix svg.trame { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(255 255 255 / .16); }
.cm-couv-choix .m-btn { position: relative; background: rgb(0 0 0 / .5); color: #fff; }

/* ───────────── quartier, aperçu, invitation ───────────── */
.cm-sujets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cm-sujets .m-puce { height: 28px; font-size: 12.5px; }
.cm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cm-regles { margin: 6px 16px 4px; border: 1px solid var(--s-trait); border-radius: var(--r2); background: var(--s-surface); }
.cm-regles summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 650; list-style: none; }
.cm-regles summary::-webkit-details-marker { display: none; }
.cm-regles summary svg { width: 18px; height: 18px; color: var(--accent-txt); }
.cm-regles summary::after { content: "+"; margin-left: auto; font: 600 16px var(--f-mono); color: var(--s-doux); }
.cm-regles[open] summary::after { content: "−"; }
.cm-regles-t { padding: 0 14px 14px; white-space: pre-wrap; line-height: 1.5; color: var(--s-texte2); overflow-wrap: anywhere; }
.cm-encart { display: flex; gap: 12px; align-items: flex-start; margin: 4px 16px 10px; padding: 12px 14px; border-radius: var(--r2); background: var(--s-surface2); }
.cm-encart svg { width: 22px; height: 22px; flex: none; color: var(--accent-txt); }
.cm-encart p { margin: 0; line-height: 1.45; font-size: 14px; color: var(--s-texte2); }
.cm-invit { position: relative; margin: 18px 16px; padding: 0 20px 22px; border-radius: var(--r3); border: 1px solid var(--s-trait); background: var(--s-surface); overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cm-invit .couv { align-self: stretch; height: 110px; margin: 0 -20px; background: var(--teinte); position: relative; }
.cm-invit .couv svg.trame { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(255 255 255 / .16); }
.cm-invit .m-mono-c { margin-top: -50px; box-shadow: 0 0 0 4px var(--s-surface); }
.cm-invit p { margin: 0; max-width: 420px; line-height: 1.45; }
.cm-invit .m-btn { margin-top: 10px; }

/* ───────────── événements ───────────── */
button.cm-ev { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; align-items: flex-start; }
button.cm-ev:hover { background: var(--s-surface); }
.cm-ev .m-flex { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cm-ev.passe { opacity: .62; }
.cm-ev-l { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--s-doux); font-size: 13px; }
.cm-ev-l.m-mono { font-size: 10.5px; }
.cm-rsvp { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 0 2px; }
.cm-rsvp .m-btn { flex: 1; min-width: 92px; }
.cm-passes summary { padding: 12px 16px; cursor: pointer; color: var(--s-doux); font-weight: 600; font-size: 13.5px; }
.cm-ev-tete { display: flex; gap: 14px; padding: 14px 16px 6px; }
.cm-ev-tete .m-flex { display: flex; flex-direction: column; gap: 4px; }
.cm-ev-desc { margin: 6px 16px 12px; white-space: pre-wrap; line-height: 1.5; overflow-wrap: anywhere; }
.cm-ev-msg { margin-top: 2px; min-width: min(300px, 70vw); }
.cm-ev-msg .m-sur { display: flex; align-items: center; gap: 5px; margin: 2px 0 4px; color: var(--accent-txt); }
.cm-ev-msg .m-evenement { padding: 6px 0; border: 0; background: none; }
.cm-ev-absent { color: var(--s-doux); }

/* ───────────── sanctions et recours ───────────── */
.cm-sanction { margin: 8px 16px; padding: 12px 14px; border-radius: var(--r2); border: 1px solid var(--s-trait); background: var(--s-surface); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cm-sanction > .m-ligne { align-self: stretch; }
.cm-sanction p { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cm-recours { padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--s-surface2); border-radius: 4px 10px 10px 4px; font-style: italic; }
.cm-demande { padding: 12px 16px; border-bottom: 1px solid var(--s-trait); display: flex; flex-direction: column; gap: 10px; }
.cm-demande small { display: block; }
.cm-reponse { margin: 0; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--s-surface2); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ───────────── salon ───────────── */
.cm-salon { height: 100%; min-height: 0; }
.cm-salon .m-flux { min-height: 0; overscroll-behavior: contain; }
.cm-tete-lien { color: inherit; text-decoration: none; }
.cm-tete-lien small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-msg .cm-c { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; position: relative; }
.m-msg.moi .cm-c { align-items: flex-end; }
.m-msg .bulle { max-width: min(560px, 100%); outline-offset: 2px; }
.m-msg .bulle:focus-visible { outline: 2px solid var(--accent); }
.m-msg .auteur .cm-nom { text-decoration: none; font-weight: 700; }
.m-msg .auteur .cm-nom:hover { text-decoration: underline; }
.m-msg button.cite-rep { width: 100%; max-width: 100%; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; font-family: inherit; }
.m-msg .meta time { font-variant-numeric: tabular-nums; }
.m-msg .meta .cm-meta-ep svg { color: var(--accent-txt); width: 12px; height: 12px; }
.m-msg .m-medias button { cursor: zoom-in; }
.m-msg + .m-msg:not(.suite) { margin-top: 6px; }
.cm-sondage { min-width: min(300px, 70vw); }
.cm-sondage .q { display: flex; align-items: center; gap: 6px; }

/* Barre d'outils au survol (ordinateur) ; sur téléphone, appui long. */
.cm-outils { position: absolute; top: -14px; right: 0; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--s-surface); border: 1px solid var(--s-trait-fort); box-shadow: var(--ombre); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.m-msg.moi .cm-outils { right: auto; left: 0; }
.cm-outils button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: none; color: var(--s-texte2); display: grid; place-items: center; }
.cm-outils button:hover, .cm-outils button:focus-visible { background: var(--s-surface2); color: var(--s-texte); }
.cm-outils svg { width: 17px; height: 17px; }
@media (hover: hover) {
  .m-msg:hover .cm-outils { opacity: 1; pointer-events: auto; transform: none; }
}
.m-msg:focus-within .cm-outils { opacity: 1; pointer-events: auto; transform: none; }
@media (hover: none) { .cm-outils { display: none; } }

.cm-debut { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px auto 10px; }
.cm-debut b { color: var(--s-texte); font: 700 16px var(--f-titre); }
.cm-charge-haut { align-self: center; height: 36px; display: grid; place-items: center; }
.cm-charge-haut span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--s-trait-fort); border-top-color: var(--accent); animation: tourne .8s linear infinite; }
.cm-nonlus { align-self: stretch; max-width: none; display: flex; align-items: center; gap: 10px; color: var(--accent-txt); font: 600 10.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.cm-nonlus::before, .cm-nonlus::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.cm-sep-fil { align-self: stretch; max-width: none; padding: 6px 0; border-top: 1px solid var(--s-trait); border-bottom: 1px solid var(--s-trait); margin: 10px 0; font: 500 11px var(--f-mono); }

.m-epingle-barre:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.m-epingle-barre b { font-weight: 650; }
.cm-resume { margin: 8px 12px 0; }
.cm-resume .m-lien { margin-top: 6px; }
.cm-ep-ligne { display: flex; align-items: center; gap: 4px; padding-right: 12px; border-bottom: 1px solid var(--s-trait); }
.cm-ep-ligne .m-personne { flex: 1; min-width: 0; }

/* Zone d'écriture */
.m-ecrire { position: relative; }
.cm-apercus:empty { display: none; }
.cm-apercus .ap { width: 76px; height: 76px; }
.m-ecrire .rang .m-ib { color: var(--accent-txt); height: 44px; }
.cm-ecrire-aide { margin: 6px 6px 0; font-size: 12px; color: var(--s-doux); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cm-ecrire-aide[hidden] { display: none; }
.cm-ecrire-aide .m-lien { font-size: 12px; }
.m-ecrire .bloque { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.4; }
.cm-nouveaux { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--accent); color: var(--sur-accent); font: 700 13px var(--f-texte); box-shadow: var(--ombre); animation: ouvre-reac .3s var(--ressort); white-space: nowrap; }
.cm-nouveaux[hidden] { display: none; }
.cm-nouveaux .cm-bas { transform: rotate(90deg); }

/* Réactions : sélecteur flottant et rangée dans le menu du message */
.m-reacs button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cm-reac-ligne { display: flex; justify-content: space-between; gap: 4px; padding: 12px 14px 6px; }
.cm-reac-ligne button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--s-surface); display: grid; place-items: center; transition: transform .18s var(--ressort); }
.cm-reac-ligne button svg { width: 28px; height: 28px; }
.cm-reac-ligne button:active { transform: scale(.85); }
.cm-reac-ligne button.on { background: color-mix(in srgb, var(--accent) 20%, var(--s-surface)); box-shadow: inset 0 0 0 2px var(--accent); }
.cm-apercu-msg { margin: 4px 18px 2px; font-size: 13.5px; color: var(--s-doux); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-apercu-msg b { color: var(--s-texte); }

/* Fil de discussion dans une feuille */
.cm-feuille-fil .f-corps { display: flex; flex-direction: column; }
.cm-flux-fil { flex: 1; min-height: 240px; }
.cm-feuille-fil .f-pied { padding: 0; }
.cm-ecrire-fil { border-top: 0; }
.cm-bloque-fil { margin: 0; padding: 12px 16px; text-align: center; color: var(--s-doux); font-size: 13.5px; }

/* Sondage (création) */
.cm-options { padding: 0; }

/* ───────────── tâches ───────────── */
.cm-tache-ajout { padding: 12px 16px 8px; }
.cm-tache-ajout .m-btn { width: 44px; padding: 0; flex: none; height: 44px; }
.m-tache .m-flex { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.cm-tache-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--s-doux); font-size: 12px; }
.cm-tache-meta .m-avatar { --t: 18px; display: inline-grid; vertical-align: middle; }
.cm-tache-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.cm-retard { color: var(--rouge); font-weight: 600; }

/* ───────────── panneau d'infos ───────────── */
.cm-texte-long { margin: 0 16px; white-space: pre-wrap; line-height: 1.5; overflow-wrap: anywhere; }
.cm-regles-bloc { padding: 12px 14px; border-radius: var(--r2); background: var(--s-surface); border: 1px solid var(--s-trait); }
.cm-radio { cursor: pointer; }
.cm-radio input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.cm-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 3px; padding: 8px 16px 16px; }
.cm-album button { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--s-surface2); cursor: zoom-in; }
.cm-album img, .cm-album video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-album .cm-video { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: rgb(0 0 0 / .6); color: #fff; }
.cm-album .cm-video svg { width: 15px; height: 15px; }

/* ───────────── administration ───────────── */
.cm-pastille { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15); }
.cm-droits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 0 16px 16px; }
.cm-droit { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--s-trait); background: var(--s-surface); cursor: pointer; font-size: 14px; }
.cm-droit input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.cm-droit:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 60%, var(--s-trait)); }
.cm-inv { display: flex; align-items: center; gap: 2px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--s-trait); }
.cm-inv .m-flex { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-inv code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--s-texte); }
.cm-inv small { font-size: 12px; }
.cm-inv.fini { opacity: .55; }
.cm-qr { padding: 16px 20px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cm-qr-boite { width: min(260px, 70vw); padding: 14px; border-radius: 18px; background: #fff; color: #000; }
.cm-qr-boite svg, .cm-qr-boite img, .cm-qr-boite canvas { width: 100%; height: auto; display: block; }
.cm-qr p { margin: 0; line-height: 1.45; max-width: 360px; }
.cm-url { font-size: 10.5px; overflow-wrap: anywhere; }
.cm-axe { display: flex; justify-content: space-between; padding: 6px 16px 18px; font: 500 10px var(--f-mono); color: var(--s-doux); }

/* ═════════════ ajouts du lot N (refonte 27/10) ═════════════ */

/* Cibles tactiles d'au moins 44 px dans le salon (relectures §3). */
.cm-salon .m-msg .fil-rep { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.cm-salon .reacs-msg button { min-height: 36px; min-width: 44px; }
.cm-tache-ajout .m-champ, .cm-rech .m-champ { min-height: 44px; }
@media (max-width: 360px) { #sl-cherche { display: none; } }

/* ───────────── message vocal ───────────── */
.cm-vocal-msg { display: flex; align-items: center; gap: 8px; margin: 2px 0; min-width: min(260px, 64vw); }
.cm-vocal-msg audio { flex: 1; min-width: 0; height: 40px; }
.cm-vocal-msg > svg { color: var(--accent-txt); width: 18px; height: 18px; }
.m-ecrire .cm-micro { color: var(--accent-txt); height: 44px; }
.m-ecrire .cm-micro.enreg { background: var(--rouge); color: #fff; border-radius: 50%; }
.cm-enreg { display: flex; align-items: center; gap: 8px; margin: 8px 4px 0; padding: 8px 10px; border-radius: var(--r2); background: color-mix(in srgb, var(--rouge) 12%, var(--s-surface)); font-size: 14px; }
.cm-enreg[hidden] { display: none; }
.cm-enreg-point { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); animation: cm-clignote 1.2s ease-in-out infinite; flex: none; }
@keyframes cm-clignote { 50% { opacity: .25; } }

/* ───────────── recherche dans un cercle ───────────── */
.cm-rech { padding: 10px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.cm-rech .m-puces { padding: 0; }
.cm-rech-r small { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.cm-rech-r mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ───────────── événements ───────────── */
.cm-ev-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 8px; }
.cm-ev-actions .m-btn { min-height: 44px; }
.cm-ev-caches { margin: 4px 16px 8px; }

/* ───────────── salons vocaux ───────────── */
.cm-ib-vocal { position: relative; }
.cm-ib-vocal.en-direct { color: var(--accent-txt); }
.cm-vo-n { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--rouge); color: #fff; font: 600 10px/17px var(--f-mono); text-align: center; }
.cm-vo-n[hidden] { display: none; }
.cm-vo-direct { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 0 color-mix(in srgb, var(--rouge) 60%, transparent); animation: cm-direct 1.8s ease-out infinite; flex: none; vertical-align: 1px; }
@keyframes cm-direct { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rouge) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.cm-vo-badge svg { width: 12px; height: 12px; }
.cm-vo-bandeau { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 8px 10px 8px 12px; border-radius: var(--r2); border: 1px solid color-mix(in srgb, var(--rouge) 35%, var(--s-trait)); background: color-mix(in srgb, var(--rouge) 8%, var(--s-surface)); }
.cm-vo-bandeau .m-flex { display: flex; flex-direction: column; min-width: 0; }
.cm-vo-bandeau small { color: var(--s-doux); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-vo-bandeau .m-ib.on { background: var(--accent); color: var(--sur-accent); }
.cm-vo-visages { display: flex; }
.cm-vo-visages .m-avatar { box-shadow: 0 0 0 2px var(--s-surface); }
.cm-vo-visages .m-avatar + .m-avatar { margin-left: -9px; }
.cm-vo-quitter { color: var(--rouge); }

/* Barre flottante quand on est dans un salon vocal ailleurs dans l'appli */
.cm-vo-barre { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 4px; max-width: min(420px, calc(100vw - 24px)); padding: 6px 6px 6px 8px; border-radius: 999px; background: var(--s-surface); border: 1px solid color-mix(in srgb, var(--rouge) 40%, var(--s-trait-fort)); box-shadow: var(--ombre); }
.cm-vo-barre[hidden] { display: none; }
.cm-vo-barre-l { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 0 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 999px; }
.cm-vo-barre-l .m-flex { display: flex; flex-direction: column; min-width: 0; }
.cm-vo-barre-l b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-vo-barre-l small { color: var(--s-doux); font-size: 12px; }
.cm-vo-barre .m-ib { width: 44px; height: 44px; }
.cm-vo-barre .m-ib.on { background: var(--accent); color: var(--sur-accent); }
@media (min-width: 900px) { .cm-vo-barre { bottom: 20px; left: auto; right: 20px; } }

/* Panneau du salon vocal */
.cm-vo { padding: 12px 16px 4px; }
.cm-vo-etat { margin: 0 0 12px; color: var(--s-texte2); font-size: 14px; }
.cm-vo-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 8px; }
.cm-vo-p { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.cm-vo-p b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-vo-p small { font-size: 11.5px; color: var(--s-doux); line-height: 1.3; }
.cm-vo-av { position: relative; padding: 4px; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: 0 0 0 3px transparent; transition: box-shadow .15s; }
.cm-vo-av:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cm-vo-p.parle .cm-vo-av { box-shadow: 0 0 0 3px var(--vert); }
.cm-vo-ico { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--s-surface3); color: var(--s-texte2); box-shadow: 0 0 0 2px var(--s-fond); }
.cm-vo-ico svg { width: 15px; height: 15px; }
.cm-vo-p.ouvert .cm-vo-ico { background: var(--vert); color: #fff; }
.cm-vo-main { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--jaune); color: #1d1300; box-shadow: 0 0 0 2px var(--s-fond); }
.cm-vo-main svg, .cm-vo-pied .m-btn svg.cm-i { width: 16px; height: 16px; vertical-align: -3px; }
.cm-vo-pied { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cm-vo-pied .m-btn { min-height: 44px; }
.cm-vo-pied .m-ligne > .m-btn { flex: 1; }
.cm-vo-info { margin: 18px 0 8px; border: 1px solid var(--s-trait); border-radius: var(--r2); background: var(--s-surface); }
.cm-vo-info summary { padding: 12px 14px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cm-vo-info p { margin: 0 14px 10px; font-size: 13.5px; line-height: 1.45; color: var(--s-texte2); }

@media (prefers-reduced-motion: reduce) { .cm-vo-direct, .cm-enreg-point { animation: none; } .cm-vo-av { transition: none; } }
:root[data-mouvement="reduit"] .cm-vo-direct, :root[data-mouvement="reduit"] .cm-enreg-point { animation: none; }
