/* ══════════════════════════════════════════════════════════════════════════
   LA COMMUNAUTÉ ET LA MESSAGERIE (03/11/2026)
   communaute.html, messages.html, et les cartes de publication reprises par le dossier d'agent et les fiches
   d'œuvre (communaute.js). Les fiches de publication sont des formulaires du TVA posés sur la table, comme les
   fenêtres des comptes ; aucune couleur d'accent en dur.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── La page ── */
.ms-page { max-width: 1180px; margin: 0 auto; padding-bottom: 80px; }
/* L'en-tête (.mv9-tete) prend toute la largeur comme sur les autres pages (03/11/2026) : seul le fil reste sur 1180 px. */
.cm-page { padding-bottom: 80px; }
.cm-grille { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }   /* une seule colonne : la liste « Amis en ligne » est partie le 03/11/2026 */
.cm-colonne { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cm-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cm-barre[hidden], .cm-ecrire[hidden], .cm-retour[hidden] { display: none; }
.cm-filtre-oeuvre { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border: 2px solid var(--doom-green); border-radius: var(--rayon-bouton); background: var(--bg-card); font-size: 0.86rem; }
.cm-filtre-oeuvre[hidden] { display: none; }
.cm-filtre-oeuvre a { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--lb-white); text-decoration: none; background: var(--bg-dark); }
.cm-retour { align-self: flex-start; color: var(--accent-texte); font-family: var(--font-ui); font-weight: 700; text-decoration: none; }
.cm-retour:hover { text-decoration: underline; }
.cm-plus { align-self: center; }
.cm-plus[hidden] { display: none; }
.cm-vide { padding: 28px 0; }
.cm-vide a { color: var(--accent-texte); }
.cm-invite { margin: 0; padding: 16px 18px; border: 2px dashed var(--lb-border); border-radius: 10px; color: var(--lb-muted-clair); }
.cm-invite a { color: var(--accent-texte); font-weight: 700; }

/* ── Une publication (refaite le 03/11/2026, sur le modèle des réseaux sociaux) ──
   Une carte blanche par publication : l'en-tête (avatar, nom, pseudo, date, menu « ⋯ »), le contenu sur toute la
   largeur, puis une barre d'actions sobre. Le GIF reste petit : il illustre, il ne remplit pas l'écran. */
.cm-fil { display: flex; flex-direction: column; gap: 16px; }
.cm-post {
    position: relative; padding: 16px 18px 6px;
    background: var(--bg-card); border: 1px solid var(--lb-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(28, 19, 13, 0.06), 0 10px 26px -22px rgba(28, 19, 13, 0.45);
    scroll-margin-top: calc(var(--nav-h, 64px) + 20px);
}
.cm-post.est-cible { box-shadow: 0 0 0 2px var(--doom-green); }
.cm-post.est-epingle { border-color: color-mix(in srgb, var(--doom-green) 45%, var(--lb-border)); }
.cm-epingle-mot, .cm-contexte {
    display: flex; align-items: center; gap: 6px; margin: -4px 0 10px 54px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--lb-muted); text-decoration: none;
}
.cm-epingle-mot svg, .cm-contexte svg { width: 13px; height: 13px; }
.cm-epingle-mot { color: var(--accent-texte); text-transform: uppercase; letter-spacing: 0.08em; }
.cm-contexte:hover { color: var(--lb-white); }
.cm-contexte b { color: var(--accent-texte); font-weight: 600; }
.cm-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.cm-avatar { display: block; line-height: 0; }
.cm-qui { min-width: 0; }
.cm-qui p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.cm-ligne1 { line-height: 1.25; }
.cm-ligne2 { margin-top: 2px !important; }
.cm-nom { font-family: var(--font-ui); font-weight: 700; font-size: 0.98rem; color: var(--lb-white); text-decoration: none; }
.cm-nom:hover { text-decoration: underline; }
.cm-pseudo, .cm-quand { font-family: var(--font-mono); font-size: 0.72rem; color: var(--lb-muted); text-decoration: none; }
.cm-quand:hover { color: var(--lb-white); }
.cm-sorte { padding: 1px 8px; border-radius: 99px; background: var(--bg-elevated); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lb-muted-clair); }
.cm-sorte-avis, .cm-sorte-journal, .cm-sorte-partage { background: color-mix(in srgb, var(--doom-green) 14%, var(--bg-card)); color: var(--accent-texte); }
.cm-vis { display: inline-flex; color: var(--lb-muted); }
.cm-vis svg { width: 13px; height: 13px; }
.cm-note { margin: 12px 0 0; color: var(--accent-texte); line-height: 1; }
.cm-note .pf-etoiles svg { width: 17px; height: 17px; }
.cm-texte { margin: 10px 0 0; font-size: 1rem; line-height: 1.55; color: var(--lb-text); overflow-wrap: anywhere; }
.cm-mention { color: var(--accent-texte); font-weight: 600; text-decoration: none; }
.cm-mention:hover { text-decoration: underline; }
.cm-masque { margin: 10px 0 0; font-style: italic; color: var(--lb-muted); }
.cm-gif { display: block; width: auto; max-width: min(100%, 220px); max-height: 180px; margin-top: 10px; border-radius: 10px; }

/* Le menu « ⋯ » : lien, épingle, retirer ou signaler. */
.cm-menu-zone { position: relative; align-self: start; }
.cm-menu-bouton { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--lb-muted); cursor: pointer; }
.cm-menu-bouton:hover, .cm-menu-bouton[aria-expanded="true"] { background: var(--bg-elevated); color: var(--lb-white); }
.cm-menu-bouton:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 1px; }
.cm-menu {
    position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 230px; padding: 5px;
    background: var(--bg-card); border: 1px solid var(--lb-border); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(28, 19, 13, 0.55);
    display: flex; flex-direction: column;
}
.cm-menu[hidden] { display: none; }
.cm-menu button { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--lb-text); cursor: pointer; text-align: left; font: 600 0.86rem var(--font-ui); }
.cm-menu button svg { color: var(--lb-muted); }
.cm-menu button:hover, .cm-menu button:focus-visible { background: var(--bg-dark); color: var(--lb-white); outline: none; }
.cm-menu button.est-danger { color: #b3261e; }
.cm-menu button.est-danger svg { color: currentColor; }

/* Les mentions : de vraies petites cartes, chacune dessinée selon ce qu'elle désigne. */
.cm-refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cm-ref {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 46px; padding: 4px 14px 4px 4px;
    border: 1px solid var(--lb-border); border-radius: 12px; background: var(--bg-dark); color: var(--lb-white); text-decoration: none;
    transition: border-color var(--dur-1), transform var(--dur-1);
}
a.cm-ref:hover { border-color: var(--doom-green); transform: translateY(-1px); }
.cm-ref > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cm-ref b { font-family: var(--font-ui); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }
.cm-ref i { font-style: normal; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; color: var(--lb-muted); }
.cm-ref-oeuvre img { width: 30px; height: 45px; object-fit: cover; border-radius: 5px; box-shadow: 0 2px 6px -2px rgba(28, 19, 13, 0.5); }
.cm-ref-perso { border-radius: 99px; padding-left: 4px; }
.cm-ref-perso .mvc-avatar { border-radius: 50%; }
.cm-ref-scene img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; }
.cm-ref-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--bg-elevated); color: var(--lb-muted); }
.cm-ref-code { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 7px; box-sizing: border-box; border-radius: 9px; background: var(--tva-noyer, #2a1c12); color: var(--tva-ambre, #f0a23a); font: 600 0.68rem var(--font-mono); letter-spacing: 0.02em; }

/* Ce qu'on partage : marathon, partie, badge. */
.cm-objet { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px; border: 1px solid var(--lb-border); border-radius: 14px; background: var(--bg-dark); color: var(--lb-text); text-decoration: none; }
a.cm-objet:hover { border-color: var(--doom-green); }
.cm-objet small { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lb-muted); }
.cm-objet b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); margin-top: 4px; }
.cm-objet-vide { font-style: italic; color: var(--lb-muted); }
.cm-om-mur { display: flex; flex: 0 0 auto; }
.cm-om-mur img { width: 48px; height: 72px; object-fit: cover; border-radius: 6px; border: 2px solid var(--bg-card); box-shadow: 0 4px 10px -4px rgba(28, 19, 13, 0.55); }
.cm-om-mur img + img { margin-left: -18px; }
.cm-om-corps, .cm-oj-corps { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.cm-om-progres { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--lb-muted); }
.cm-om-progres i { flex: 1; max-width: 160px; height: 6px; border-radius: 3px; background: var(--bg-elevated); overflow: hidden; }
.cm-om-progres i b { display: block; height: 100%; margin: 0; background: var(--doom-green); }
.cm-om-cta { font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; color: var(--accent-texte); }
.cm-objet-jeu { background: var(--tva-noyer, #2a1c12); border-color: transparent; color: #f3e9d4; }
.cm-objet-jeu small { color: #b59a74; }
.cm-objet-jeu b { color: #fff3df; }
.cm-objet-jeu .cm-om-cta { color: var(--tva-ambre, #f0a23a); }
.cm-oj-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; background: rgba(240, 162, 58, 0.14); color: var(--tva-ambre, #f0a23a); }
.cm-oj-ico svg { width: 28px; height: 28px; }
.cm-oj-detail { font-size: 0.82rem; color: #d8c6a6; }
.cm-oj-score { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; text-align: right; }
.cm-oj-score b { font-size: 2.6rem; color: var(--tva-ambre, #f0a23a); margin: 0; }
.cm-oj-score small { font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: #b59a74; }
.cm-oj-score i { margin-top: 4px; font-family: var(--font-serif); font-size: 0.95rem; color: #f3e9d4; }
.cm-objet-badge .bdg-svg { flex: 0 0 auto; width: 84px; height: 84px; }
.cm-objet-badge > span { display: flex; flex-direction: column; gap: 3px; }
.cm-objet-badge span span { font-size: 0.85rem; color: var(--lb-muted-clair); }
.cm-objet-badge i { font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--lb-muted); }

/* La barre d'actions : trois gestes, sans cadre. */
.cm-actions { display: flex; align-items: center; gap: 2px; margin: 10px 0 0 -8px; padding-top: 4px; }
.cm-action {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 99px;
    background: none; color: var(--lb-muted); cursor: pointer; text-decoration: none; font-family: var(--font-mono); font-size: 0.78rem;
}
.cm-action svg { width: 19px; height: 19px; }
.cm-action:hover, .cm-action:focus-visible { color: var(--lb-white); background: var(--bg-elevated); }
.cm-action:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 1px; }
.cm-aimer[aria-pressed="true"] { color: #d6304a; }
.cm-aimer[aria-pressed="true"] svg { fill: currentColor; }
.cm-voir-com { display: inline-block; margin: 0 0 10px; font-size: 0.84rem; color: var(--lb-muted); text-decoration: none; }
.cm-voir-com:hover { color: var(--lb-white); }

/* ── Les commentaires (le fil d'une publication) : des bulles, comme sous une photo ── */
.cm-com-titre { margin: 4px 0 0; font-family: var(--font-ui); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lb-white); }
.cm-commentaires { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--lb-border); border-radius: 14px; }
.cm-com-vide { margin: 0; color: var(--lb-muted); font-size: 0.9rem; }
.cm-com-bloc { display: flex; flex-direction: column; gap: 8px; }
.cm-com.cm-post { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.cm-com.est-cible .cm-bulle { box-shadow: 0 0 0 2px var(--doom-green); }
.cm-com-corps { min-width: 0; }
.cm-bulle { display: inline-block; max-width: 100%; padding: 8px 13px 9px; border-radius: 4px 18px 18px 18px; background: var(--bg-dark); overflow-wrap: anywhere; }
.cm-bulle .cm-nom { display: block; font-size: 0.84rem; margin-bottom: 1px; }
.cm-com-texte { font-size: 0.93rem; line-height: 1.45; color: var(--lb-text); }
.cm-bulle .cm-gif { max-width: min(100%, 160px); max-height: 140px; margin-top: 6px; }
.cm-com-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 0 12px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--lb-muted); }
.cm-com-pied button { padding: 0; border: 0; background: none; color: var(--lb-muted-clair); cursor: pointer; font: 700 0.72rem var(--font-ui); }
.cm-com-pied button:hover, .cm-com-pied button:focus-visible { color: var(--lb-white); text-decoration: underline; }
.cm-com-likes[hidden] { display: none; }
.cm-com-coeur { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-top: 6px; border: 0; border-radius: 50%; background: none; color: var(--lb-muted); cursor: pointer; }
.cm-com-coeur:hover { color: var(--lb-white); background: var(--bg-elevated); }
.cm-com-coeur[aria-pressed="true"] { color: #d6304a; }
.cm-com-coeur[aria-pressed="true"] svg { fill: currentColor; }
/* « Voir les N réponses » : un trait court puis le compte, en retrait sous le commentaire, comme sur Instagram. */
.cm-deplier { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-left: 56px; padding: 2px 0; border: 0; background: none; color: var(--lb-muted); cursor: pointer; font: 700 0.76rem var(--font-ui); }
.cm-deplier:hover, .cm-deplier:focus-visible { color: var(--lb-white); }
.cm-deplier-trait { width: 24px; height: 1px; background: currentColor; }
.cm-com-enfants { display: flex; flex-direction: column; gap: 12px; margin-left: 44px; padding-left: 12px; border-left: 2px solid var(--bg-elevated); }
.cm-com-enfants[hidden] { display: none; }
.cm-com.est-sous .cm-bulle { padding: 7px 12px 8px; }

/* ── Écrire ── */
.cm-editeur {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px 18px;
    background: var(--bg-card); border: 1px solid var(--lb-border); border-radius: 14px;
}
.cm-editeur.est-reponse { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 12px 30px -18px rgba(28, 19, 13, 0.6); }
.cm-com-ligne { display: flex; align-items: flex-end; gap: 10px; }
.cm-com-ligne .cm-zone { flex: 1; min-height: 40px; max-height: 160px; padding: 9px 14px; border-radius: 20px; resize: none; overflow: auto; }
.cm-com-ligne .cm-outil { height: 40px; border-radius: 20px; }
.cm-publier-lien { height: 40px; padding: 0 6px; border: 0; background: none; color: var(--accent-texte); cursor: pointer; font: 700 0.9rem var(--font-ui); }
.cm-publier-lien[disabled] { opacity: 0.4; cursor: default; }
.cm-cible { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--bg-dark); font-size: 0.82rem; color: var(--lb-muted-clair); }
.cm-cible b { color: var(--lb-white); }
.cm-cible button { margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--bg-card); color: var(--lb-white); cursor: pointer; font-size: 0.7rem; }
.cm-editeur-corps { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-sortes { align-self: flex-start; }
.cm-etoiles { margin: 0; }
.cm-etoiles[hidden] { display: none; }
.cm-zone {
    width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--lb-border); border-radius: 10px;
    background: #fff8ea; color: var(--lb-white); font: inherit; font-size: 0.95rem; line-height: 1.5; resize: vertical; min-height: 64px;
}
.cm-zone:focus { outline: none; border-color: var(--doom-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--doom-green) 18%, transparent); }
.cm-gif-choisi { position: relative; align-self: flex-start; }
.cm-gif-choisi[hidden] { display: none; }
.cm-gif-choisi img { display: block; max-height: 120px; border-radius: 10px; }
.cm-gif-choisi button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(28, 19, 13, 0.75); color: #fff3df; cursor: pointer; }
.cm-editeur-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cm-editeur-pied .mv9-bouton { margin-left: auto; padding: 10px 20px; }
.cm-editeur-pied .mv9-bouton[disabled] { opacity: 0.45; cursor: not-allowed; }
.cm-outil {
    display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--lb-border); border-radius: 10px;
    background: var(--bg-dark); color: var(--lb-white); cursor: pointer;
}
.cm-outil:hover { border-color: var(--doom-green); color: var(--accent-texte); }
.cm-gif-mot { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; }
.cm-vis-choix { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; height: 38px; border: 1px solid var(--lb-border); border-radius: 10px; background: var(--bg-dark); color: var(--lb-muted-clair); }
.cm-vis-choix select { border: 0; background: transparent; color: var(--lb-white); font: 600 0.8rem var(--font-ui); cursor: pointer; }
.cm-compte { font-family: var(--font-mono); font-size: 0.72rem; color: var(--lb-muted); }

/* Mentionner : des étiquettes, et sous le champ une boîte de propositions avec ses onglets. */
.cm-mentions { display: flex; flex-direction: column; gap: 8px; }
.cm-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cm-etiquettes:empty { display: none; }
.cm-etiquettes li { display: inline-flex; align-items: center; gap: 7px; padding: 3px 5px 3px 6px; border: 1px solid var(--lb-border); border-radius: 99px; background: var(--bg-dark); font-size: 0.8rem; color: var(--lb-white); }
.cm-etiquettes li img { width: 18px; height: 27px; object-fit: cover; border-radius: 3px; }
.cm-etiquettes li svg { width: 15px; height: 15px; color: var(--accent-texte); }
.cm-etiquettes button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--bg-elevated); color: var(--lb-white); cursor: pointer; font-size: 0.62rem; }
.cm-choix-champ { position: relative; }
.cm-choix-ico { position: absolute; left: 11px; top: 9px; color: var(--lb-muted); pointer-events: none; }
.cm-choix-champ input, .ms-joindre input { width: 100%; box-sizing: border-box; min-height: 36px; padding: 0 12px; border: 1px dashed var(--lb-border); border-radius: 10px; background: transparent; color: var(--lb-white); font: inherit; font-size: 0.85rem; }
.cm-choix-champ input { padding-left: 36px; }
.cm-choix-champ input:focus { outline: none; border-style: solid; border-color: var(--doom-green); }
.cm-propositions { list-style: none; margin: 4px 0 0; padding: 6px; background: var(--bg-card); border: 1px solid var(--lb-border); border-radius: 12px; box-shadow: 0 14px 30px -16px rgba(28, 19, 13, 0.5); }
.cm-choix-champ .cm-propositions { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; }
.cm-propositions[hidden] { display: none; }
.cm-propositions ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.cm-sortes-mention { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 2px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--lb-border); }
.cm-sortes-mention button { padding: 4px 10px; border: 0; border-radius: 99px; background: var(--bg-dark); color: var(--lb-muted-clair); cursor: pointer; font: 600 0.76rem var(--font-ui); }
.cm-sortes-mention button[aria-pressed="true"] { background: var(--lb-white); color: var(--bg-card); }
.cm-propositions li, .cm-propositions > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 8px; border: 0; border-radius: 8px; background: none; color: var(--lb-text); cursor: pointer; text-align: left; font: inherit; font-size: 0.85rem; box-sizing: border-box; }
.cm-propositions li:hover, .cm-propositions li:focus, .cm-propositions > button:hover, .cm-propositions > button:focus { background: var(--bg-dark); color: var(--lb-white); outline: none; }
.cm-propositions li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cm-propositions b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-propositions img { width: 24px; height: 36px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.cm-propositions img.est-scene { width: 48px; height: 27px; }
.cm-propositions i { font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--lb-muted); }
.cm-prop-code, .cm-prop-ico { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; box-sizing: border-box; border-radius: 7px; background: var(--bg-elevated); font: 600 0.62rem var(--font-mono); color: var(--lb-muted-clair); flex: 0 0 auto; }
.cm-propositions .cm-rien { cursor: default; color: var(--lb-muted); }

/* La fenêtre « Publier dans le fil ». */
.mvc-fenetre.cm-fenetre-partage { width: min(560px, calc(100vw - 24px)); }
.cm-partage-apercu { margin-bottom: 12px; }
.cm-partage-apercu .cm-objet { margin-top: 0; }
.cm-fenetre-partage .cm-editeur-pied { margin-top: 10px; }

/* ── La fenêtre des GIF ── */
.mvc-fenetre.cm-fenetre-gif { width: min(640px, calc(100vw - 24px)); }
.cm-gif-recherche { margin-bottom: 12px; }
.cm-gifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; max-height: 50vh; overflow: auto; }
.cm-gifs .mv9-charge { grid-column: 1 / -1; min-height: 120px; }
.cm-gif-choix { padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--bg-dark); cursor: pointer; line-height: 0; overflow: hidden; }
.cm-gif-choix:hover, .cm-gif-choix:focus-visible { border-color: var(--doom-green); outline: none; }
.cm-gif-choix img { width: 100%; height: 110px; object-fit: cover; }
.cm-gif-credit { margin: 8px 0 0; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lb-muted); }
.cm-gif-credit[hidden] { display: none; }

/* ── La colonne des amis en ligne ── */
/* Le point « en ligne » : vert franc, une couleur de statut et non la charte (comme la légende « à voir avant »). */
.cm-point { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #2fa84f; box-shadow: 0 0 0 2px var(--bg-card); }
.cm-point[hidden] { display: none; }


/* ══════════════════════════ LA MESSAGERIE ══════════════════════════ */
.ms-page { padding: 24px clamp(12px, 3vw, 32px) 40px; }
.ms-cadre {
    display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--nav-h, 64px) - 64px); min-height: 480px;
    background: var(--bg-card); border: 2px solid var(--lb-border); border-radius: 14px; overflow: hidden; box-shadow: var(--ombre-table);
}
.ms-liste { display: flex; flex-direction: column; min-height: 0; border-right: 2px solid var(--lb-border); background: var(--bg-dark); }
.ms-liste-tete { padding: 18px 18px 12px; border-bottom: var(--trait); }
.ms-liste-tete h2 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 0.9; text-transform: uppercase; color: var(--lb-white); }
.ms-conversations { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.ms-conv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--lb-text); text-decoration: none; }
.ms-conv:hover { background: var(--bg-card); }
.ms-conv.est-active { background: var(--bg-card); box-shadow: inset 4px 0 0 var(--doom-green); }
.ms-conv:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: -2px; }
.ms-avatar { position: relative; display: inline-block; line-height: 0; }
.ms-avatar .cm-point { right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--bg-dark); }
.ms-conv-corps { display: flex; flex-direction: column; min-width: 0; }
.ms-conv-corps b { font-family: var(--font-ui); color: var(--lb-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-conv-corps i { font-style: normal; font-size: 0.8rem; color: var(--lb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-conv.non-lu .ms-conv-corps i { color: var(--lb-white); font-weight: 600; }
.ms-conv-cote { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ms-conv-cote time { font-family: var(--font-mono); font-size: 0.66rem; color: var(--lb-muted); white-space: nowrap; }
.ms-vide { padding: 18px 12px; font-size: 0.88rem; color: var(--lb-muted-clair); }
.ms-vide a { color: var(--accent-texte); }

.ms-fil { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ms-accueil { margin: auto; max-width: 40ch; padding: 24px; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--lb-muted-clair); }
.ms-petit { font-family: var(--font-body, inherit); font-style: normal; font-size: 0.85rem; color: var(--lb-muted); }
.ms-tete { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: var(--trait); }
.ms-retour { display: none; width: 36px; height: 36px; border: var(--trait); border-radius: 50%; background: var(--bg-dark); color: var(--lb-white); cursor: pointer; }
.ms-qui { display: flex; align-items: center; gap: 11px; color: var(--lb-text); text-decoration: none; }
.ms-qui .cm-point { box-shadow: 0 0 0 2px var(--bg-card); }
.ms-qui span:last-child { display: flex; flex-direction: column; }
.ms-qui b { font-family: var(--font-ui); color: var(--lb-white); }
.ms-qui i { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--lb-muted); }
.ms-messages { list-style: none; margin: 0; padding: 16px clamp(12px, 3vw, 28px); flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ms-jour { align-self: center; margin: 10px 0 4px; padding: 3px 12px; border-radius: 99px; background: var(--bg-dark); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lb-muted); }
.ms-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 560px); }
.ms-msg.de-moi { align-self: flex-end; align-items: flex-end; }
.ms-bulle { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--bg-dark); color: var(--lb-text); border: 2px solid var(--lb-border); overflow-wrap: anywhere; }
.ms-msg.de-moi .ms-bulle { border-radius: 16px 16px 4px 16px; background: var(--tva-noyer, var(--lb-white)); border-color: var(--tva-noyer, var(--lb-white)); color: #fff3df; }
.ms-msg.de-moi .ms-bulle a { color: inherit; }
.ms-bulle p { margin: 0; line-height: 1.45; color: inherit; }
.ms-bulle img { display: block; max-width: 260px; max-height: 220px; margin-top: 4px; border-radius: 10px; }
.ms-bulle p + img { margin-top: 8px; }
.ms-bulle .cm-ref { margin-top: 6px; color: var(--lb-white); }
.ms-msg.de-moi .ms-bulle .cm-ref { background: rgba(255, 243, 223, 0.08); border-color: rgba(255, 243, 223, 0.25); color: inherit; }
.ms-meta { display: flex; gap: 8px; margin-top: 2px; font-family: var(--font-mono); font-size: 0.64rem; color: var(--lb-muted); opacity: 0; transition: opacity var(--dur-1); }
.ms-msg:hover .ms-meta, .ms-msg:focus-within .ms-meta { opacity: 1; }
.ms-signaler { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; }
.ms-etat { margin-top: 2px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--lb-muted); }
.ms-etat.est-vu { color: var(--accent-texte); }
.ms-etat.est-echec { color: var(--accent-texte); font-weight: 600; }
.ms-msg.en-cours .ms-bulle { opacity: 0.6; }
.ms-ecrire { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: var(--trait); }
.ms-ecrire textarea { flex: 1; min-height: 40px; max-height: 160px; padding: 9px 12px; border: 2px solid var(--lb-border); border-radius: 12px; background: #fff8ea; color: var(--lb-white); font: inherit; resize: none; }
.ms-ecrire textarea:focus { outline: none; border-color: var(--doom-green); }
.ms-ecrire .mv9-bouton { padding: 10px 16px; }
.ms-joindre { padding: 0 16px 12px; }
.ms-joindre[hidden] { display: none; }
.ms-joindre .cm-propositions { margin-top: 6px; }

@media (max-width: 760px) {
    .ms-page { padding: 0; }
    .ms-cadre { grid-template-columns: 1fr; height: calc(100vh - var(--nav-h, 64px)); border-radius: 0; border-width: 0; }
    .ms-fil { display: none; }
    .ms-cadre.avec-conversation .ms-liste { display: none; }
    .ms-cadre.avec-conversation .ms-fil { display: flex; }
    .ms-retour { display: inline-grid; place-items: center; }
    .ms-meta { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .ms-meta { transition: none; } }

.cm-objet .est-secret { font-style: italic; color: var(--lb-muted); }

/* ── La barre de la Communauté (20/11/2026) : la lb-filterbar des autres rubriques ──────────
   Le fil à lire à gauche, le profil et « Publier » calés à droite. L'éditeur ne vit plus en
   tête de la liste : « Publier » l'ouvre dans une fenêtre (cm-fenetre-publier). */
/* Marges : le --bord commun de v9.css, comme Cinéma et les autres rubriques (22/11/2026 ; l'ancien
   retrait propre à la page, une colonne de 1180 px plus la gouttière, la rendait plus étroite). */
.cm-filterbar .cm-barre { flex-wrap: nowrap; flex-shrink: 0; }
.cm-filterbar .pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 30px; }
.cm-barre-droite { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cm-barre-publier { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; }
.cm-filterbar .cm-filtre-oeuvre { white-space: nowrap; }
.cm-grille { padding-top: clamp(18px, 3vw, 28px); }
#cm-filterbar [hidden] { display: none !important; }
.cm-fenetre-publier { width: min(640px, calc(100vw - 24px)); }
.cm-ecrire-fenetre .cm-editeur { margin: 0; border: 0; padding: 0; background: none; box-shadow: none; }
@media (max-width: 560px) {
    .cm-barre-profil span, .cm-barre-publier span { display: none; }   /* l'icône suffit sur téléphone */
    .cm-barre-publier { padding: 0 12px; min-width: 0 !important; }
    #cm-filterbar { gap: 8px; }
    #cm-filterbar .cm-barre { gap: 6px; }
    .cm-filterbar .pill, .cm-barre-publier { min-height: 40px; }
}

/* ── L'avis, dans l'ordre (20/11/2026) : l'œuvre notée d'abord, le reste ensuite ──────────── */
.cm-avis-oeuvre { display: flex; flex-direction: column; gap: 8px; }
.cm-avis-oeuvre[hidden], .cm-avis-suite[hidden], .cm-avis-champ[hidden], .cm-avis-choisie[hidden] { display: none !important; }
.cm-avis-suite { display: flex; flex-direction: column; gap: 12px; }
.cm-avis-etape { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lb-muted); }
.cm-avis-choisie {
    display: flex; align-items: center; gap: 12px; padding: 8px 10px;
    border: var(--trait); border-radius: 10px; background: var(--bg-elevated);
}
.cm-avis-choisie img { width: 40px; height: 60px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.cm-avis-choisie > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cm-avis-choisie b { color: var(--lb-white); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-avis-choisie i { font-style: normal; color: var(--lb-muted); font-size: 0.78rem; }
.cm-avis-choisie [data-changer] {
    flex: 0 0 auto; padding: 4px 10px; min-height: 30px; cursor: pointer; font: inherit; font-size: 0.78rem;
    background: none; color: var(--lb-text); border: var(--trait); border-radius: var(--rayon-bouton);
}
.cm-avis-choisie [data-changer]:hover { border-color: var(--doom-green); color: var(--accent-texte); }

/* Dans la fenêtre « Publier », les propositions (œuvre notée, mentions) prennent leur place dans la
   fenêtre au lieu de flotter par-dessus : posées en absolu, elles étaient rognées par la fenêtre,
   qui défile (20/11/2026). La fenêtre grandit donc avec la liste. */
.cm-fenetre-publier .cm-choix-champ .cm-propositions { position: static; margin-top: 6px; max-height: 320px; overflow-y: auto; box-shadow: none; }

/* Une tierlist partagée (21/11/2026) : la liste redessinée, rangs aux couleurs du thème, vignettes en ligne. */
.cm-objet-tierlist { flex-direction: column; align-items: stretch; gap: 10px; }
.cm-otl-tete b { font-size: 1.3rem; }
.cm-otl-liste { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--lb-border); border-radius: 10px; overflow: hidden; background: var(--lb-border); }
.cm-tl-rang { display: grid; grid-template-columns: 92px minmax(0, 1fr); background: var(--bg-card); }
.cm-tl-nom { display: grid; place-items: center; padding: 6px; min-height: 52px; font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; line-height: 1; text-align: center; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.cm-tl-cartes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; }
.cm-tl-cartes img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--bg-elevated); }
.cm-tl-cartes.est-affiches img { width: 34px; height: 51px; }
.cm-tl-cartes i { padding: 0 6px; font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; color: var(--lb-muted); }
@media (max-width: 560px) { .cm-tl-rang { grid-template-columns: 58px minmax(0, 1fr); } .cm-tl-cartes img { width: 32px; height: 32px; } .cm-tl-cartes.est-affiches img { width: 28px; height: 42px; } }
.cm-tl-sans { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--bg-elevated); font-family: var(--font-display); font-weight: 900; color: var(--lb-muted); }
.cm-tl-cartes.est-affiches .cm-tl-sans { width: 34px; height: 51px; }
@media (max-width: 560px) { .cm-tl-sans { width: 32px; height: 32px; } .cm-tl-cartes.est-affiches .cm-tl-sans { width: 28px; height: 42px; } }
