:root{--u-top:8px;--u-haut:0px;--u-bleu:#1877f2;--u-fond:#f0f2f5;--u-hover:#e4e6eb;--u-texte:#000;--u-navy:#14238c;--u-orange:#ff4500;--u-orange-clair:#fff0ea;--u-gris:#65676b;--u-bord:#e4e6eb}
.u-page{background:var(--u-fond);padding:12px 0 40px;min-height:70vh;color:var(--u-texte)}
.u-card{position:relative;background:#fff;border-radius:14px;padding:16px 18px;margin-bottom:14px;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.u-sticky{position:sticky;top:var(--u-top);max-height:calc(100vh - var(--u-top) - 12px);overflow-y:auto;scrollbar-width:thin}
.u-avatar-sm{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;display:block}
.u-avatar-m{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;display:block}
.u-avatar-lg{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid var(--u-bord)}
.u-meta{font-size:.75rem;color:var(--u-gris)}
.u-nom-a{font-size:.9rem;font-weight:600;color:var(--u-texte)}
.u-profil-photo{position:relative;display:inline-block;flex-shrink:0;line-height:0}
.u-profil-photo>a{display:block}
.u-param-btn{position:absolute;top:10px;right:10px;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid var(--u-bord);border-radius:50%;background:#fff;color:var(--u-navy);font-size:.95rem;line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.18);cursor:pointer;transition:background .15s,transform .1s}
.u-param-btn:hover,.u-param-btn:focus,.u-param-btn:active{background:var(--u-hover)!important;color:var(--u-navy)!important}
.u-param-btn:active{transform:scale(.94)}
.u-param-btn:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-ligne-nom{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.u-qui{flex:1;min-width:0;line-height:1.25}
.u-rangee{display:flex;align-items:center;justify-content:space-between;gap:8px}
.u-nom-lien{font-size:.92rem;font-weight:700;color:var(--u-navy);text-decoration:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u-nom-lien:hover{color:var(--u-orange)}
.u-badge{flex-shrink:0;background:var(--u-orange-clair);color:var(--u-orange);border-radius:14px;padding:3px 11px;font-size:.72rem;font-weight:700;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u-quote{position:relative;margin:8px 0 4px;padding:18px 46px 20px 48px;background:linear-gradient(135deg,#fff7f2 0,#ffe6d8 100%);border-left:5px solid var(--u-orange);border-radius:14px;box-shadow:0 3px 10px rgba(255,69,0,.14),0 1px 3px rgba(0,0,0,.06)}
.u-citation{font-family:Georgia,"Times New Roman",serif;font-size:1.15rem;line-height:1.65;color:#1f1f1f;margin:0;word-wrap:break-word}
.u-q{position:absolute;font-size:2.3rem;line-height:1;color:var(--u-orange);opacity:.9}
.u-q-ouvre{top:8px;left:10px}
.u-q-ferme{bottom:6px;right:10px;transform:rotate(180deg)}
.u-attente{font-size:.74rem;color:#b45309;margin-top:8px}
#citation_text{background:#f9fafb;border-radius:10px;resize:none}
.u-titre-bloc{font-size:.95rem;font-weight:700;margin:0 0 10px}
.u-liste-auteurs{display:flex;flex-direction:column}
.u-ligne-auteur{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;align-items:center;justify-content:start;text-align:left;padding:6px 4px;border-radius:8px;text-decoration:none;color:inherit}
.u-ligne-auteur:hover{background:var(--u-fond)}
.u-ligne-texte{display:flex;flex-direction:column;line-height:1.25;min-width:0;text-decoration:none}
.u-ligne-texte .u-nom-a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u-res-abonnes{display:block}
.u-suggere{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:10px;align-items:center;padding:6px 4px;border-radius:8px}
.u-suggere:hover{background:var(--u-fond)}
.u-mobilebar{position:sticky;top:calc(var(--u-haut) - 1px);z-index:1020;display:flex;align-items:center;gap:10px;background:#fff;margin:0 calc(var(--bs-gutter-x,1.5rem)*-.5) 12px;border-radius:0 0 14px 14px;padding:8px 14px;box-shadow:0 2px 10px rgba(0,0,0,.1)}
.u-barre-id{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:none;border:0;padding:0;text-align:left;color:var(--u-navy);font-size:1rem}
.u-barre-id:hover,.u-barre-id:focus{background:none!important;color:var(--u-navy)!important}
.u-barre-id:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px;border-radius:8px}
.u-menu-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--u-hover);color:var(--u-texte);font-size:1.5rem;flex-shrink:0}
.u-menu-btn:hover,.u-menu-btn:focus,.u-menu-btn:active{background:#d8dadf!important;color:var(--u-texte)!important}
#menuCompte{z-index:100000}
#menuCompte .modal-dialog{margin-top:14px;margin-bottom:14px}
.u-modal{border:0;border-radius:16px}
.u-profil-ligne{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.u-profil-texte{min-width:0;line-height:1.25}
.u-profil-texte .u-nom-a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u-separation{height:1px;background:var(--u-bord);margin:16px 0}
.u-stats{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:10px 0 6px}
.u-stats-centre{justify-content:center}
.u-stat{background:none;border:0;border-radius:6px;padding:2px 6px;margin:0 -6px;color:var(--u-navy);font-size:.86rem;font-weight:700;line-height:1.4;cursor:pointer;box-shadow:none}
.u-stat:hover,.u-stat:focus,.u-stat:active{background:var(--u-hover)!important;color:var(--u-navy)!important}
.u-stat:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-bio{font-size:.85rem;line-height:1.45;color:var(--u-texte);margin:6px 0 4px;overflow-wrap:anywhere}
.u-bio-html p{margin:0 0 4px}
.u-bio-html ul,.u-bio-html ol{margin:2px 0 4px 18px;padding:0}
.u-bio-html a{color:var(--u-navy)}
.u-bio-plus{background:none;border:0;padding:0;color:var(--u-navy);font-size:.82rem;font-weight:700;box-shadow:none}
.u-bio-plus:hover,.u-bio-plus:focus{background:none!important;color:var(--u-orange)!important}
.u-bio-court[hidden],.u-bio-tout[hidden]{display:none}
.u-menu-liste a,.u-menu-grille a{color:var(--u-navy);text-decoration:none}
.u-menu-liste a{display:flex;align-items:center;padding:10px 12px;border-radius:10px;font-weight:500}
.u-menu-liste a:hover{background:var(--u-hover)}
.u-menu-liste i{font-size:1.2rem;width:28px;margin-right:8px;color:var(--u-orange)}
.u-menu-grille{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.u-menu-grille a{display:flex;flex-direction:column;gap:6px;background:var(--u-fond);border-radius:12px;padding:12px;font-weight:600;font-size:.9rem}
.u-menu-grille a:hover,.u-menu-grille a:active{background:var(--u-hover)}
.u-menu-grille i{font-size:1.4rem;color:var(--u-orange)}
.u-menu-pied{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.u-menu-grille .u-menu-param{display:flex;flex-direction:column;gap:6px;border:0;background:var(--u-fond);border-radius:12px;padding:12px;font-weight:600;font-size:.9rem;text-align:left;color:var(--u-navy)}
.u-menu-grille .u-menu-param:hover,.u-menu-grille .u-menu-param:active{background:var(--u-hover);color:var(--u-navy)}
.u-menu-grille .u-menu-param i{font-size:1.4rem;color:var(--u-orange)}
.u-menu-liste .u-menu-sortie,.u-menu-grille .u-menu-sortie,.u-menu-liste .u-menu-sortie i,.u-menu-grille .u-menu-sortie i{color:#dc3545}
.u-liens-legaux{display:flex;flex-wrap:wrap;gap:6px 14px}
.u-liens-legaux a{font-size:.78rem;color:var(--u-gris);text-decoration:none}
.u-liens-legaux a:hover{color:var(--u-orange)}
.u-page .btn-primary,.u-modal .btn-primary{background:var(--u-orange);border-color:var(--u-orange)}
.u-page .btn-primary:hover,.u-modal .btn-primary:hover{background:#e03d00;border-color:#e03d00}
.u-page .btn-outline-primary,.u-modal .btn-outline-primary{color:var(--u-orange);border-color:var(--u-orange);background:transparent}
.u-page .btn-outline-primary:hover,.u-page .btn-outline-primary:focus,.u-modal .btn-outline-primary:hover,.u-modal .btn-outline-primary:focus{background:var(--u-orange)!important;border-color:var(--u-orange)!important;color:#fff!important}
.u-page .alert-link{color:var(--u-navy)}
.u-boites{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.u-boite{display:flex;align-items:center;justify-content:center;gap:12px;min-height:56px;background:#fff;border:0;border-radius:14px;padding:10px 14px;color:var(--u-navy);font-weight:700;font-size:.98rem;box-shadow:0 1px 4px rgba(0,0,0,.08);transition:background .15s,transform .1s}
.u-boite:hover,.u-boite:focus,.u-boite:active{background:var(--u-hover)!important;color:var(--u-navy)!important}
.u-boite:active{transform:scale(.97)}
.u-boite:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-boite-icone{position:relative;display:inline-flex;font-size:1.6rem;color:var(--u-orange);line-height:1}
.u-pastille{position:absolute;top:-8px;right:-12px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--u-orange);color:#fff;font-size:.7rem;font-weight:700;line-height:20px;text-align:center;border:2px solid #fff;box-sizing:content-box}
.u-pastille[hidden]{display:none}
@media (max-width:420px){.u-boite-texte{display:none}}
#modalNotifs,#modalMessages,#modalCitations,#modalAbonnes,.u-fenetre{z-index:100000}
#modalCitations .min-w-0{min-width:0}
.u-fenetre .modal-header .btn-close{width:36px;height:36px;padding:0;border-radius:50%;background-color:var(--u-hover);background-size:.7em;opacity:1}
.u-fenetre .modal-header .btn-close:hover,.u-fenetre .modal-header .btn-close:focus{background-color:#d8dadf}
.u-param-liste{display:flex;flex-direction:column;gap:2px}
.u-param-liste>a,.u-param-liste>button{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:12px;align-items:center;width:100%;padding:8px;border:0;border-radius:8px;background:none;color:#050505;text-align:left;text-decoration:none;cursor:pointer;transition:background .15s}
.u-param-liste>a:hover,.u-param-liste>button:hover,.u-param-liste>a:focus,.u-param-liste>button:focus{background:var(--u-fond)!important;color:#050505!important;text-decoration:none}
.u-param-liste>a:active,.u-param-liste>button:active{background:var(--u-hover)!important}
.u-param-liste>a:focus-visible,.u-param-liste>button:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-param-icone{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--u-hover);color:#050505;font-size:1.05rem}
.u-param-texte{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.u-param-titre{font-size:.94rem;font-weight:600}
.u-param-sous{font-size:.78rem;font-weight:400;color:var(--u-gris)}
.u-param-fleche{font-size:.8rem;color:var(--u-gris)}
.u-param-ligne{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 4px;border-bottom:1px solid var(--u-bord)}
.u-param-ligne:last-of-type{border-bottom:0}
.u-param-ligne label{display:flex;align-items:center;gap:12px;margin:0;font-size:.94rem;font-weight:600;cursor:pointer}
.u-param-ligne label i{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--u-hover);font-size:1.05rem}
.u-param-message{margin:10px 0 0;padding:8px 12px;border-radius:8px;font-size:.85rem;font-weight:600}
.u-param-message[hidden]{display:none}
.u-param-message.ok{background:#eaf7f0;color:#198754}
.u-param-message.ko{background:#fdeeed;color:#b42318}
.u-param-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:12px}
.u-param-annuler{background:none;border:0;padding:6px 4px;color:var(--u-navy);font-size:.88rem;font-weight:700}
.u-param-annuler:hover,.u-param-annuler:focus{background:none!important;color:var(--u-orange)!important}
.u-notif{display:block;width:100%;text-align:left;background:#fff;border:0;border-left:4px solid transparent;border-radius:10px;padding:10px 12px;margin-bottom:6px;color:var(--u-texte);font-size:.9rem;line-height:1.45;cursor:pointer}
.u-notif:hover,.u-notif:focus{background:var(--u-fond);color:var(--u-texte);outline:0}
.u-notif:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-notif.non-lue{background:var(--u-orange-clair);border-left-color:var(--u-orange);color:var(--u-orange)}
.u-notif.non-lue:hover,.u-notif.non-lue:focus{background:#ffe6db;color:var(--u-orange)}
.u-notif-titre{font-weight:700;margin-bottom:2px}
.u-notif-corps{white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.u-notif-corps.ouvert{display:block;-webkit-line-clamp:unset;overflow:visible}
.u-lire-plus{display:inline;background:none;border:0;padding:0;margin:2px 0 0;color:#1877f2;font-size:.85rem;font-weight:600;box-shadow:none}
.u-lire-plus:hover,.u-lire-plus:focus{text-decoration:underline;background:none!important;color:#1877f2!important}
.u-lire-plus[hidden]{display:none}
.u-notif .u-meta{display:block;margin-top:3px;font-weight:400;color:var(--u-gris)}
.u-notif-bas{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}
.u-repondre,.u-ouvrir-conv,.u-reponse-annuler{background:none;border:0;padding:0;color:var(--u-navy);font-size:.8rem;font-weight:700}
.u-repondre:hover,.u-ouvrir-conv:hover,.u-reponse-annuler:hover,.u-repondre:focus,.u-ouvrir-conv:focus,.u-reponse-annuler:focus{background:none!important;color:var(--u-orange)!important}
.u-reponse{margin-top:8px;padding-top:8px}
.u-reponse[hidden]{display:none}
.u-reponse-entete{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--u-gris);margin-bottom:6px}
.u-reponse-texte,.u-msg-texte{width:100%;resize:none;border:1px solid var(--u-bord);border-radius:12px;padding:8px 12px;font-size:.9rem;background:#fff;color:#000;overflow-y:hidden}
.u-reponse-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:6px}
.u-reponse-ok{display:flex;align-items:center;gap:8px;font-size:.85rem;color:#198754}
.u-reponse-erreur{color:#dc3545;font-size:.8rem;margin:4px 0}
.u-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.u-actions .rx{margin-top:0}
.u-actions .rx-btn,.u-cite-ligne .rx-btn,.u-act,.u-abonnes{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;height:30px;padding:0 11px;border-radius:15px;font-size:.8rem;font-weight:600;line-height:1;text-decoration:none;cursor:pointer}
.u-actions .rx-btn i,.u-cite-ligne .rx-btn i,.u-act i,.u-abonnes i{font-size:.95rem}
.u-act{border:1px solid var(--u-bord);background:#fff;color:var(--u-navy);transition:background .15s,transform .1s}
.u-act i{color:var(--u-orange)}
.u-act:hover,.u-act:focus,.u-act:active{background:var(--u-hover)!important;color:var(--u-navy)!important;text-decoration:none}
.u-act:active{transform:scale(.95)}
.u-act:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-actions .rx-btn:hover,.u-cite-ligne .rx-btn:hover,.u-actions .rx-btn:focus,.u-cite-ligne .rx-btn:focus{background:var(--u-hover)!important;color:#4b5563!important}
.u-actions .rx-like.actif,.u-cite-ligne .rx-like.actif,.u-actions .rx-like.actif:hover,.u-cite-ligne .rx-like.actif:hover{background:#eaf7f0!important;color:#198754!important}
.u-actions .rx-dislike.actif,.u-cite-ligne .rx-dislike.actif,.u-actions .rx-dislike.actif:hover,.u-cite-ligne .rx-dislike.actif:hover{background:#fdeeed!important;color:#b42318!important}
.u-meta-ligne{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:2px}
.u-abonnes{border:1px solid #d9dce1;background:#fff;color:#4b5563;transition:background .15s,color .15s,border-color .15s}
.u-abonnes:not(:disabled):hover,.u-abonnes:not(:disabled):focus{background:var(--u-hover)!important;color:var(--u-navy)!important}
.u-abonnes.suivi,.u-abonnes.suivi:hover,.u-abonnes.suivi:focus{background:var(--u-orange)!important;border-color:var(--u-orange);color:#fff!important}
.u-abonnes:disabled{cursor:default;opacity:1}
.u-abonnes:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-suivre{box-sizing:border-box;height:30px;padding:0 12px;border:1px solid var(--u-orange);border-radius:15px;background:#fff;color:var(--u-orange);font-size:.8rem;font-weight:700;line-height:1;white-space:nowrap;cursor:pointer}
.u-suivre:hover,.u-suivre:focus{background:var(--u-hover)!important;color:var(--u-orange)!important}
.u-suivre.fait,.u-suivre.fait:hover,.u-suivre.fait:focus{background:var(--u-orange)!important;color:#fff!important}
.u-cite-ligne{margin-bottom:14px}
.u-cite-ligne .u-citation{font-size:1.08rem}
.u-cite-ligne .rx{margin-top:8px}
.u-membre{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:12px;align-items:start;padding:10px 4px;border-bottom:1px solid var(--u-bord)}
.u-membre:last-child{border-bottom:0}
.u-membre-photo{display:block;width:44px;height:44px}
.u-membre-corps{display:flex;flex-direction:column;gap:2px;min-width:0;padding-top:2px}
.u-membre-nom{color:var(--u-texte);text-decoration:none;line-height:1.3;overflow-wrap:anywhere}
.u-membre-nom:hover{color:var(--u-orange)}
.u-membre-droite{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.u-membre-bas{display:flex;align-items:center;gap:2px}
.u-envoyer{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;height:28px;padding:0 10px;border:1px solid var(--u-orange);border-radius:15px;background:#fff;color:var(--u-orange);font-size:.72rem;font-weight:700;line-height:1;white-space:nowrap}
.u-envoyer i{font-size:.8rem}
.u-envoyer:hover,.u-envoyer:focus{background:var(--u-hover)!important;color:var(--u-orange)!important}
.u-statut{display:inline-flex;align-items:center;gap:5px;font-size:.78rem;color:var(--u-gris)}
.u-statut-point{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.u-statut.en-ligne .u-statut-point{background:#dc3545}
.u-statut.hors-ligne .u-statut-point{background:#22c55e}
.u-actions-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:15px;background:none;color:var(--u-gris);font-size:1.1rem;padding:0}
.u-actions-btn:hover,.u-actions-btn:focus{background:var(--u-hover)!important;color:var(--u-texte)!important}
.u-actions-btn:focus-visible{outline:3px solid var(--u-navy);outline-offset:2px}
.u-menu-actions{position:fixed;z-index:100001;min-width:170px;background:#fff;border-radius:15px;padding:6px;box-shadow:0 4px 18px rgba(0,0,0,.2)}
.u-menu-actions[hidden]{display:none}
.u-menu-actions button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:15px;padding:9px 12px;font-size:.88rem;font-weight:600;color:var(--u-navy)}
.u-menu-actions button:hover,.u-menu-actions button:focus{background:var(--u-hover)!important}
.u-menu-actions .danger,.u-menu-actions .danger:hover,.u-menu-actions .danger:focus{color:#dc3545!important}
.u-avatar-wrap{position:relative;display:inline-block;flex-shrink:0}
.u-point{display:inline-block;width:10px;height:10px;border-radius:50%;border:2px solid #fff;box-sizing:content-box}
.u-point.en-ligne{background:#22c55e}
.u-point.hors-ligne{background:#9ca3af}
.u-avatar-wrap .u-point{position:absolute;right:-2px;bottom:-2px}
.u-retour{background:none;border:0;font-size:1.3rem;color:var(--u-navy);margin-right:8px;padding:0 4px}
.u-retour:hover,.u-retour:focus{background:none!important;color:var(--u-orange)!important}
.u-msg-entete{display:flex;align-items:center;gap:10px;min-width:0}
.u-msg-qui{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.u-erreur{color:#dc3545!important}
#modalMessages .modal-header{align-items:center}
#msg-corps{min-height:260px}
#msg-pied{padding-top:0}
.u-conv{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:10px;align-items:center;justify-items:start;width:100%;text-align:left;background:none;border:0;border-radius:10px;padding:8px 6px;color:inherit}
.u-conv:hover,.u-conv:focus{background:var(--u-fond)!important;color:inherit!important}
.u-conv-texte{display:flex;flex-direction:column;line-height:1.25;min-width:0;width:100%}
.u-conv-nom{font-size:.9rem;font-weight:700;color:#000}
.u-conv-extrait{font-size:.82rem;color:var(--u-gris);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u-conv.non-lue .u-conv-extrait{color:#000;font-weight:700}
.u-pastille-conv{min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--u-orange);color:#fff;font-size:.7rem;font-weight:700;line-height:20px;text-align:center}
.u-bulle{max-width:82%;padding:8px 12px;border-radius:16px;margin-bottom:8px;word-wrap:break-word}
.u-bulle.autre{background:var(--u-fond);color:#000;border-bottom-left-radius:4px;margin-right:auto}
.u-bulle.moi{background:var(--u-orange);color:#fff;border-bottom-right-radius:4px;margin-left:auto}
.u-bulle-texte{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92rem}
.u-bulle .u-meta{display:block;margin-top:2px;font-size:.68rem;color:inherit;opacity:.75}
.u-msg-form{display:flex;align-items:flex-end;gap:8px;width:100%}
.u-msg-envoyer{border:0;background:var(--u-orange);color:#fff;border-radius:50%;width:40px;height:40px;flex-shrink:0}
.u-msg-envoyer:hover,.u-msg-envoyer:focus{background:#e03d00!important;color:#fff!important}
.u-msg-envoyer:disabled{opacity:.5}
.u-recherche{position:relative;display:flex;align-items:center;margin-bottom:.75rem}
.u-recherche-icone{position:absolute;left:12px;color:var(--u-gris);font-size:.95rem;pointer-events:none}
.u-recherche-champ{width:100%;box-sizing:border-box;height:38px;padding:0 36px;border:1px solid var(--u-bord);border-radius:15px;background:var(--u-fond);font-size:.88rem;color:var(--u-texte)}
.u-recherche-champ:focus{outline:0;border-color:var(--u-orange);background:#fff;box-shadow:0 0 0 3px rgba(255,69,0,.15)}
.u-recherche-champ::-webkit-search-cancel-button{display:none}
.u-recherche-effacer{position:absolute;right:5px;width:28px;height:28px;padding:0;border:0;border-radius:15px;background:none;color:var(--u-gris);font-size:.8rem}
.u-recherche-effacer:hover,.u-recherche-effacer:focus{background:var(--u-hover)!important;color:var(--u-texte)!important}
.u-recherche-effacer[hidden]{display:none}
img[data-zoom]{cursor:zoom-in}
.u-photo-fond{position:fixed;inset:0;z-index:100002;background:rgba(0,0,0,.88);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem}
.u-photo-grande{max-width:min(92vw,720px);max-height:80vh;object-fit:contain;border-radius:8px;background:#111;cursor:default}
.u-photo-nom{color:#fff;margin-top:.75rem;font-weight:600;text-align:center}
.u-photo-fermer{position:absolute;top:1rem;right:1rem;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:1.1rem;cursor:pointer}
.u-photo-fermer:hover{background:rgba(255,255,255,.3)}
@media (max-width:991.98px){.u-page{padding-top:0}.u-card{padding:14px;border-radius:12px}.u-citation{font-size:1.08rem}}
@media (max-width:420px){.u-actions{gap:6px}.u-actions .rx-btn,.u-act,.u-abonnes{padding:0 9px}.u-quote{padding:16px 38px 18px 42px}.u-q{font-size:2rem}}
.u-abonnes-txt{margin-left:auto;font-size:.8rem;font-weight:400;color:var(--u-gris);white-space:nowrap}
.u-cite-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.u-cite-actions .rx,.u-cite-ligne .u-cite-actions .rx{margin-top:0}
.u-rangee-droite{display:flex;align-items:center;gap:6px;flex-shrink:0;max-width:60%}
.u-rangee-droite .u-badge{max-width:none;min-width:0}
.u-rangee .u-suivre{height:24px;padding:0 10px;font-size:.72rem}

/* --- CHAT (même dialogue que MediLearn) : à coller à la fin de u.css --- */
:root {
    --ml-ink: #1f2937;
    --ml-ink-soft: #4b5563;
    --ml-muted: #6b7280;
    --ml-line: #e5e7eb;
    --ml-sky: #7dd3fc;
    --ml-sky-ink: #0c4a6e;
    --ml-sky-deep: #0284c7;
    --ml-sky-soft: #e0f2fe;
}

.ml-lien {
    background: none; border: none; padding: 0;
    font-size: .78rem; cursor: pointer; color: var(--ml-muted);
}
.ml-lien:hover { color: var(--ml-ink); text-decoration: underline; }
.ml-lien.ml-repondre { color: var(--ml-sky-deep); font-weight: 700; margin-left: auto; }
.ml-lien.ml-repondre:hover { color: #0369a1; }

/* Fenêtre de conversation */
.ml-chat-modal .modal-content {
    border: 1px solid var(--ml-line);
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
}
.ml-chat-modal .modal-header {
    border-bottom: 1px solid var(--ml-line);
    padding: .6rem .9rem;
    gap: 10px;
    align-items: center;
}
.ml-chat-modal .modal-body { padding: .75rem .9rem; background: #fafafa; min-height: 240px; }
.ml-chat-modal .modal-footer { border-top: 1px solid var(--ml-line); padding: .6rem .9rem; display: block; }
.ml-chat-modal .modal-footer[hidden],
.ml-chat-modal [hidden] { display: none !important; }

.ml-chat-retour {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0;
    color: var(--ml-ink-soft); font-size: 1.1rem; cursor: pointer;
    border-radius: 50% !important;
}
.ml-chat-retour:hover { background: #eef0f3; color: var(--ml-ink); }

/* En-tête : photo + nom + statut */
.ml-chat-avwrap { position: relative; flex: 0 0 auto; width: 36px; height: 36px; }
.ml-chat-av {
    width: 36px; height: 36px;
    object-fit: cover;
    border-radius: 50% !important;
    background: #e5e7eb;
    display: block;
}
.ml-chat-av-ico {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: #e5e7eb; color: var(--ml-ink-soft);
    border-radius: 50% !important;
    font-size: 1.1rem;
}
.ml-dot {
    position: absolute; right: -1px; bottom: -1px;
    width: 11px; height: 11px;
    border: 2px solid #fff;
    border-radius: 50% !important;
    background: #9ca3af;
}
.ml-dot.on { background: #22c55e; }
.ml-chat-qui { min-width: 0; line-height: 1.2; }
.ml-chat-nom { font-size: .92rem; font-weight: 700; color: var(--ml-ink); }
.ml-chat-sub { font-size: .72rem; color: var(--ml-muted); }

.ml-chat-ctx { font-size: .72rem; color: var(--ml-muted); text-align: center; margin-bottom: .6rem; }

/* Liste des conversations */
.ml-conv {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--ml-line);
    border-radius: 10px !important;
    padding: 8px 10px;
    margin-bottom: 6px;
    cursor: pointer;
}
.ml-conv:hover { background: #f9fafb; }
.ml-conv.non-lue { border-color: #bae6fd; background: var(--ml-sky-soft); }
.ml-conv-av { width: 36px; height: 36px; object-fit: cover; border-radius: 50% !important; background: #e5e7eb; flex: 0 0 auto; }
.ml-conv-txt { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
.ml-conv-nom { font-size: .85rem; font-weight: 700; color: var(--ml-ink); }
.ml-conv-ext { font-size: .78rem; color: var(--ml-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-conv-q { font-size: .66rem; color: var(--ml-muted); }
.ml-conv-n {
    flex: 0 0 auto;
    min-width: 20px; height: 20px; padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ml-sky-deep); color: #fff;
    font-size: .68rem; font-weight: 700;
    border-radius: 10px !important;
}

/* Bulles : les miennes en bleu ciel */
.ml-row { display: flex; flex-direction: column; margin-bottom: 6px; max-width: 100%; }
.ml-row.moi { align-items: flex-end; }
.ml-row.autre { align-items: flex-start; }
.ml-bubble {
    max-width: 80%;
    padding: 7px 12px;
    font-size: .88rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-radius: 16px !important;
}
.ml-row.moi .ml-bubble { background: var(--ml-sky); color: var(--ml-sky-ink); }
.ml-row.autre .ml-bubble { background: #eceef1; color: var(--ml-ink); }

/* Ligne « il y a X secondes » + toute petite photo « Vu » à droite */
.ml-meta { display: flex; align-items: center; gap: 4px; margin-top: 1px; padding: 0 4px; }
.ml-time { font-size: .65rem; color: var(--ml-muted); }
.ml-seen {
    width: 14px; height: 14px;
    object-fit: cover;
    border-radius: 50% !important;
    display: block;
    flex: 0 0 auto;
    border: 1px solid #e5e7eb;
}
.ml-vide { font-size: .8rem; color: var(--ml-muted); text-align: center; padding: 1.2rem .5rem; margin: 0; }

/* « En train d'écrire » : photo + bulle avec 3 points qui rebondissent */
.ml-typing { flex-direction: row; align-items: flex-end; gap: 6px; margin-top: 2px; }
.ml-typing[hidden] { display: none; }
.ml-typing-av {
    width: 22px; height: 22px;
    object-fit: cover;
    border-radius: 50% !important;
    background: #e5e7eb;
}
.ml-typing-bulle {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 12px;
    background: #eceef1;
    border-radius: 16px !important;
}
.ml-typing-bulle span {
    width: 6px; height: 6px;
    background: #9ca3af;
    border-radius: 50% !important;
    animation: mlDot 1.2s infinite ease-in-out;
}
.ml-typing-bulle span:nth-child(2) { animation-delay: .18s; }
.ml-typing-bulle span:nth-child(3) { animation-delay: .36s; }
@keyframes mlDot {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30%           { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ml-typing-bulle span { animation: none; opacity: .8; }
}

/* Champ de saisie façon Facebook : grandit avec le texte */
.ml-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.ml-chat-input {
    flex: 1 1 auto;
    resize: none;
    overflow-y: hidden;
    min-height: 38px;
    max-height: 132px;
    padding: 8px 14px;
    font-size: .9rem;
    line-height: 1.4;
    background: #f0f2f5;
    border: 1px solid transparent;
    border-radius: 18px !important;
    outline: none;
    color: var(--ml-ink);
}
.ml-chat-input:focus { background: #fff; border-color: #7dd3fc; }
.ml-chat-send {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ml-sky-deep);
    color: #fff;
    border: none;
    border-radius: 50% !important;
    padding: 0;
}
.ml-chat-send:disabled { background: #d1d5db; cursor: not-allowed; }
.ml-chat-hint { font-size: .68rem; color: var(--ml-muted); margin-top: .35rem; }


/* Ligne du message : bulle + bouton « ... » */
.ml-line { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.ml-line[hidden] { display: none; }
.ml-more {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0;
    color: var(--ml-muted);
    font-size: 1rem;
    border-radius: 50% !important;
    cursor: pointer;
    opacity: 0;
    transition: opacity .12s ease, background .12s ease;
}
.ml-row:hover .ml-more,
.ml-more:focus-visible,
.ml-more[aria-expanded="true"] { opacity: 1; }
.ml-more:hover { background: #e5e7eb; color: var(--ml-ink); }
@media (hover: none) { .ml-more { opacity: .55; } }

/* Menu des trois points */
.ml-menu {
    position: fixed;
    z-index: 1100;
    min-width: 190px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--ml-line);
    border-radius: 10px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
}
.ml-menu[hidden] { display: none; }
.ml-menu-item {
    width: 100%;
    display: flex; align-items: center; gap: 9px;
    background: none; border: none;
    padding: 8px 10px;
    font-size: .84rem;
    color: var(--ml-ink);
    text-align: left;
    border-radius: 7px !important;
    cursor: pointer;
}
.ml-menu-item:hover, .ml-menu-item:focus-visible { background: #f3f4f6; outline: none; }
.ml-menu-item i { color: var(--ml-muted); }
.ml-menu-item.sur { color: #b91c1c; font-weight: 700; }
.ml-menu-item.sur i { color: #b91c1c; }

/* Modification d'un message */
.ml-edit { width: min(88%, 440px); }
.ml-row.autre .ml-edit { align-self: flex-start; }
.ml-edit-input {
    width: 100%;
    resize: none;
    overflow-y: hidden;
    min-height: 36px;
    max-height: 132px;
    padding: 7px 12px;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--ml-ink);
    background: #fff;
    border: 1px solid var(--ml-sky-deep);
    border-radius: 14px !important;
    outline: none;
}
.ml-edit-act { display: flex; justify-content: flex-end; gap: 14px; margin-top: 4px; }

/* Bouton son */
.ml-chat-son {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0;
    color: var(--ml-ink-soft);
    font-size: 1rem;
    border-radius: 50% !important;
    cursor: pointer;
}
.ml-chat-son:hover { background: #eef0f3; color: var(--ml-ink); }
.ml-chat-son[hidden] { display: none; }