:root{--green:#005230;--orange:#fd8102;--white:#fff;--bg:#f6f8f7;--text:#1f2937;--muted:#6b7280;--border:#dde4e0;--danger:#b42318}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:var(--green)}button,input,textarea,select{font:inherit}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--green)}.brand img{width:44px;height:44px;object-fit:contain}.top-actions{display:flex;align-items:center;gap:16px}.top-actions i{color:var(--orange)}.app-shell{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 68px)}.sidebar{background:#fff;border-right:1px solid var(--border);padding:18px 12px}.sidebar a{display:flex;gap:12px;align-items:center;padding:12px;border-radius:8px;color:var(--text);margin-bottom:4px}.sidebar a:hover{background:#f1f6f3;color:var(--green)}.sidebar i{width:20px;color:var(--green)}.content{padding:24px;max-width:1300px;width:100%;margin:auto}.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;margin-bottom:18px}.grid{display:grid;gap:18px}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{display:flex;align-items:center;gap:14px}.stat i{font-size:24px;color:var(--orange)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;padding:11px 16px;cursor:pointer}.btn-green{background:var(--green);color:#fff}.btn-orange{background:var(--orange);color:#fff}.btn-light{background:#fff;color:var(--green);border:1px solid var(--green)}.input{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:#fff}.label{display:block;font-weight:700;margin:0 0 6px}.form-row{margin-bottom:14px}.auth-wrap{min-height:calc(100vh - 68px);display:grid;place-items:center;padding:24px}.auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px}.auth-logo{display:block;width:96px;margin:0 auto 12px}.alert{padding:12px;border-radius:8px;margin-bottom:14px;border:1px solid var(--border)}.alert-error{border-color:#f0b4ae;color:var(--danger);background:#fff}.alert-ok{border-color:#a5d2bd;color:var(--green);background:#fff}.list{display:flex;flex-direction:column;gap:10px}.item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff}.muted{color:var(--muted)}.badge{font-size:12px;padding:4px 8px;border-radius:999px;background:#eef6f1;color:var(--green)}.message-list{display:flex;flex-direction:column;gap:10px;min-height:300px}.message{max-width:75%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff}.message.me{margin-left:auto;border-color:var(--green)}.message-meta{font-size:12px;color:var(--muted);margin-top:5px}.composer{display:flex;gap:8px;align-items:end}.composer textarea{min-height:48px;resize:vertical}.bottom-nav{display:none}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px}.hero h1{color:var(--green);margin:0 0 8px}.hero img{width:120px}.rule{border-left:4px solid var(--orange);padding-left:12px}.danger{color:var(--danger)}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.content{padding:16px 14px 86px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:66px;background:#fff;border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(5,1fr);z-index:30}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:18px}.bottom-nav small{font-size:11px}.grid-3{grid-template-columns:1fr}.brand span{font-size:15px}.hero img{width:86px}}
.help{font-size:12px;color:var(--muted);margin-top:5px}.profile-grid{display:grid;grid-template-columns:300px 1fr;gap:18px}.profile-summary{text-align:center}.profile-avatar-xl{width:128px;height:128px;border-radius:50%;object-fit:cover;border:2px solid var(--green);margin:8px auto 10px}.avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:1px solid var(--border)}.avatar-placeholder{display:flex;align-items:center;justify-content:center;background:#fff;color:var(--green)}.online-line{margin:12px 0;color:var(--green);font-size:14px}.online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:5px}.section-head,.conversation-title,.chat-head,.person-row,.person-main,.search-row{display:flex;align-items:center}.section-head,.person-row{justify-content:space-between}.section-head{gap:12px;margin-bottom:14px}.section-head h2,.chat-head h2{margin:0}.search-row{gap:8px;margin-bottom:16px}.people-list,.conversation-list{display:flex;flex-direction:column}.person-row{padding:12px 0;border-bottom:1px solid var(--border);gap:12px}.person-main{gap:12px;min-width:0}.conversation-row{display:flex;align-items:center;gap:12px;padding:13px 6px;border-bottom:1px solid var(--border);color:var(--text)}.conversation-row:hover{background:#f7faf8}.conversation-body{flex:1;min-width:0}.conversation-title{justify-content:space-between;gap:10px}.conversation-preview{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.small{font-size:12px}.unread-badge{min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:var(--orange);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}.empty-state{text-align:center;padding:34px 10px;color:var(--muted)}.empty-state>i{font-size:36px;color:var(--green);margin-bottom:8px}.chat-shell{padding:0;overflow:hidden}.chat-head{padding:14px 16px;border-bottom:1px solid var(--border);gap:10px;position:sticky;top:68px;background:#fff;z-index:5}.chat-head>div:nth-child(2){flex:1}.chat-actions{display:flex;gap:7px}.icon-btn,.send-btn{width:42px;height:42px;border-radius:50%;border:1px solid var(--border);background:#fff;color:var(--green);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}.send-btn{background:var(--orange);color:#fff;border-color:var(--orange)}.message-list{padding:18px;min-height:420px;max-height:62vh;overflow-y:auto;background:#f6f8f7}.message-wrap{display:flex;margin-bottom:8px}.message-wrap.mine{justify-content:flex-end}.message{max-width:min(72%,620px);padding:9px 11px;border:1px solid var(--border);border-radius:12px;background:#fff}.message.me{margin-left:0;border-color:#9fc5b3;background:#fff}.message-author{font-size:12px;font-weight:700;color:var(--green);margin-bottom:4px}.message-text{line-height:1.4;overflow-wrap:anywhere}.message-foot{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:11px;color:var(--muted);margin-top:5px}.reply-btn{border:0;background:transparent;color:var(--green);padding:2px 5px;cursor:pointer}.read-check{color:var(--green)}.reply-preview{border-left:3px solid var(--orange);padding:6px 8px;margin-bottom:7px;background:#f8f8f8;font-size:12px}.chat-image,.chat-video{display:block;max-width:100%;max-height:340px;border-radius:8px;margin-bottom:6px}.chat-audio{max-width:100%;height:40px}.file-chip{display:inline-flex;align-items:center;gap:7px;padding:8px;border:1px solid var(--border);border-radius:8px;margin-bottom:6px}.composer-card{position:sticky;bottom:0;padding:10px 12px;margin-bottom:0}.composer{align-items:center}.composer textarea{min-height:42px;max-height:120px;resize:none}.reply-bar,.recording-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-left:4px solid var(--orange);padding:8px 10px;margin-bottom:8px;background:#f8f8f8}.recording-bar{border-left-color:var(--green)}.recording-bar .fa-circle{color:var(--orange);font-size:9px}.attach-btn,.mic-btn{border-color:var(--green)}
@media(max-width:900px){.profile-grid{grid-template-columns:1fr}.profile-summary{display:none}.message-list{max-height:calc(100vh - 285px);min-height:360px;padding:12px}.message{max-width:86%}.chat-head{top:68px}.chat-actions .icon-btn{width:38px;height:38px}.composer-card{bottom:66px}.search-row{align-items:stretch}.search-row .btn{padding-left:12px;padding-right:12px}.person-row{align-items:flex-start}.person-row form .btn{padding:10px}.conversation-title .small{display:none}}
/* V1.0.4 — Messagerie professionnelle : design plat, sans dégradé/halo */
.profile-avatar-xl{display:block;width:128px!important;height:128px!important;max-width:128px!important;max-height:128px!important;aspect-ratio:1/1;overflow:hidden;object-fit:cover!important;object-position:center;border-radius:50%;}
.crop-modal[hidden],.attach-menu[hidden],.recording-bar[hidden],.reply-bar[hidden]{display:none!important}.crop-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1000;display:grid;place-items:center;padding:16px}.crop-dialog{width:min(430px,100%);background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px}.crop-title,.crop-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.crop-stage{width:300px;height:300px;max-width:100%;margin:16px auto;overflow:hidden;border-radius:50%;border:3px solid var(--green);position:relative;background:#eef1ef;touch-action:none}.crop-stage img{position:absolute;left:50%;top:50%;max-width:none;user-select:none;cursor:move;transform-origin:center center}.crop-actions{justify-content:flex-end;margin-top:14px}#cropZoom{width:100%;accent-color:var(--green)}
.chat-shell{border-radius:10px;margin-bottom:0}.chat-head{min-height:70px;padding:10px 14px}.chat-head h2{font-size:17px}.chat-actions .icon-btn{border:0}.message-list{background:#f0f3f1;min-height:500px;max-height:calc(100vh - 270px);padding:18px 7%}.message{position:relative;max-width:min(68%,640px);border:0;border-radius:8px 8px 8px 2px;padding:7px 9px;background:#fff}.message.me{background:#e9f3ee;border:0;border-radius:8px 8px 2px 8px}.message-foot{margin-top:2px}.reply-btn{opacity:.65}.composer-card{border-radius:0 0 10px 10px;border-top:0;padding:8px 10px;background:#fff}.composer{gap:6px}.composer .input{border-radius:22px;min-height:44px;padding:11px 14px;border-color:#d8dfdb}.icon-btn,.send-btn{width:42px;height:42px}.send-btn[hidden],.mic-btn[hidden]{display:none!important}.attach-menu{position:absolute;bottom:68px;left:12px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:8px;display:grid;grid-template-columns:repeat(2,130px);gap:4px;z-index:20}.attach-menu button{border:0;background:#fff;padding:11px;text-align:left;display:flex;gap:10px;align-items:center;border-radius:7px;cursor:pointer;color:var(--text)}.attach-menu button:hover{background:#f3f6f4}.attach-menu i{width:20px;color:var(--orange)}.attachment-preview{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted);padding:0 8px}.attachment-preview button{border:0;background:transparent;color:var(--green);cursor:pointer}.recording-bar{border-left:0;border-bottom:2px solid var(--orange);background:#fff}.recording-bar .fa-circle{color:var(--orange)}
@media(max-width:900px){.content:has(.chat-shell){padding:0}.chat-shell{border:0;border-radius:0}.chat-head{top:68px;border-radius:0}.message-list{max-height:calc(100vh - 258px);min-height:calc(100vh - 258px);padding:12px 10px}.message{max-width:84%}.composer-card{bottom:66px;border-left:0;border-right:0;border-radius:0}.attach-menu{bottom:62px;grid-template-columns:repeat(2,125px)}}

/* V1.0.5 — Chat plein écran & crop professionnel */
.crop-rect-stage{width:min(100%,380px);height:360px;border-radius:8px;border:1px solid var(--border);background:#eef1ef;position:relative;overflow:hidden;touch-action:none}.crop-rect-stage img{width:100%;height:100%;object-fit:contain;display:block;position:static;transform:none;cursor:default}.crop-selection{position:absolute;border:2px solid var(--orange);cursor:move;box-shadow:0 0 0 9999px rgba(0,0,0,.42);touch-action:none}.crop-selection:before,.crop-selection:after{content:"";position:absolute;pointer-events:none}.crop-selection:before{left:33.333%;top:0;width:33.333%;height:100%;border-left:1px solid rgba(255,255,255,.8);border-right:1px solid rgba(255,255,255,.8)}.crop-selection:after{left:0;top:33.333%;width:100%;height:33.333%;border-top:1px solid rgba(255,255,255,.8);border-bottom:1px solid rgba(255,255,255,.8)}.crop-handle{position:absolute;width:18px;height:18px;background:#fff;border:3px solid var(--orange);border-radius:50%;z-index:2}.crop-handle.nw{left:-10px;top:-10px;cursor:nwse-resize}.crop-handle.ne{right:-10px;top:-10px;cursor:nesw-resize}.crop-handle.sw{left:-10px;bottom:-10px;cursor:nesw-resize}.crop-handle.se{right:-10px;bottom:-10px;cursor:nwse-resize}.crop-help{margin-top:8px;text-align:center}.crop-help i{color:var(--orange)}
body.chat-page{height:100vh;overflow:hidden;background:#f0f3f1}.chat-main-topbar{height:68px;min-height:68px;display:flex;align-items:center;justify-content:space-between;padding:7px 18px;background:#fff;border-bottom:1px solid var(--border);position:fixed;left:0;right:0;top:0;z-index:100}.chat-top-person,.chat-top-actions{display:flex;align-items:center;gap:10px}.chat-back,.top-chat-btn{width:40px;height:40px;display:grid;place-items:center;border:0;background:transparent;color:var(--green);border-radius:50%;cursor:pointer;font-size:17px}.chat-back:hover,.top-chat-btn:hover{background:#f1f5f3}.chat-top-avatar{width:43px;height:43px;object-fit:cover;border-radius:50%;flex:0 0 43px}.chat-top-identity{display:flex;flex-direction:column;min-width:0}.chat-top-identity strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-top-identity small{font-size:11px;color:var(--muted);margin-top:2px}.chat-app-shell{display:block;height:100vh;padding-top:68px}.chat-content{padding:0!important;margin:0!important;width:100%!important;max-width:none!important;height:calc(100vh - 68px);overflow:hidden}.chat-page .chat-shell{height:100%;display:flex;flex-direction:column;border:0!important;border-radius:0!important;background:#f0f3f1}.chat-page .message-list{flex:1;min-height:0!important;max-height:none!important;height:auto!important;overflow-y:auto;padding:18px max(14px,7%);scroll-behavior:smooth}.chat-page .composer-card{position:relative!important;bottom:auto!important;flex:0 0 auto;border:0;border-top:1px solid var(--border);border-radius:0!important;margin:0;background:#fff;z-index:10}.chat-page .alert{margin:8px 14px}.chat-page .bottom-nav,.chat-page .sidebar{display:none!important}
@media(max-width:700px){.chat-main-topbar{padding:6px 8px;height:62px;min-height:62px}.chat-app-shell{padding-top:62px}.chat-content{height:calc(100vh - 62px)}.chat-top-actions{gap:0}.chat-back,.top-chat-btn{width:38px;height:38px}.chat-top-avatar{width:40px;height:40px;flex-basis:40px}.chat-top-identity strong{max-width:150px}.chat-page .message-list{padding:12px 8px}.chat-page .message{max-width:86%}.crop-rect-stage{height:330px}}

/* V1.0.6 — barre d'envoi fixe, nom fiable, crop carré + aperçu profil */
.crop-selection-square{aspect-ratio:1/1;box-shadow:none!important}
.profile-photo-editor{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff}
.profile-form-avatar{display:flex;width:92px;height:92px;min-width:92px;max-width:92px;border-radius:50%;object-fit:cover;object-position:center;border:2px solid var(--green);overflow:hidden;align-items:center;justify-content:center;background:#fff;color:var(--green);font-size:28px}
.profile-photo-fields{flex:1;min-width:0}
.crop-result-preview{margin-top:12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.crop-result-preview[hidden]{display:none!important}
.crop-result-preview img{width:92px;height:92px;border-radius:50%;object-fit:cover;border:2px solid var(--green)}
.crop-result-copy{flex:1;min-width:180px}
.crop-rect-stage{display:block;margin:16px auto;position:relative}
.crop-selection{box-shadow:none!important}
.crop-stage:after{content:"";position:absolute;inset:0;border:1px solid rgba(0,82,48,.15);pointer-events:none}

/* Le chat est une colonne complète : seul le fil des messages défile. */
.chat-page .chat-shell{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.chat-page .message-list{flex:1 1 auto;min-height:0!important;overflow-y:auto!important}
.chat-page .composer-card{display:block!important;visibility:visible!important;flex:0 0 auto;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%;z-index:15}
.chat-page .composer{width:100%}
.chat-page .composer .input{min-width:0;flex:1}
.chat-page .attachment-preview:not(:empty){padding-top:7px}
.chat-top-identity strong{max-width:420px}

@media(max-width:900px){
 .profile-summary{display:block}
 .profile-grid{grid-template-columns:1fr}
 .profile-summary{order:1}
 .profile-photo-editor{align-items:flex-start}
 .profile-form-avatar{width:78px;height:78px;min-width:78px;max-width:78px}
 .chat-page .composer-card{padding:7px 8px}
}
@media(max-width:520px){
 .profile-photo-editor{flex-direction:column}
 .profile-photo-fields{width:100%}
 .crop-result-preview{align-items:flex-start}
 .chat-top-identity strong{max-width:125px}
}

/* V1.0.7 — vocal multi-navigateurs, chat mobile stable, notifications de marque */
.mdj-toast-stack{position:fixed;top:82px;right:18px;z-index:5000;display:flex;flex-direction:column;gap:10px;width:min(380px,calc(100vw - 24px));pointer-events:none}
.mdj-toast{pointer-events:auto;background:#fff;border:1px solid var(--border);border-left:5px solid var(--green);border-radius:10px;padding:12px 14px;display:flex;align-items:flex-start;gap:11px;color:var(--text)}
.mdj-toast.error{border-left-color:var(--orange)}
.mdj-toast .mdj-toast-icon{color:var(--green);font-size:18px;margin-top:1px}.mdj-toast.error .mdj-toast-icon{color:var(--orange)}
.mdj-toast-copy{flex:1;min-width:0}.mdj-toast-copy strong{display:block;color:var(--green);margin-bottom:3px}.mdj-toast.error .mdj-toast-copy strong{color:#9a4c00}.mdj-toast-copy span{font-size:14px;line-height:1.35}.mdj-toast-close{border:0;background:transparent;color:var(--green);cursor:pointer;padding:2px;font-size:16px}

.notifications-card{max-width:900px;margin-inline:auto}.notifications-title{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--border)}.notifications-title h2{margin:0 0 4px;color:var(--green)}.notifications-title p{margin:0}.notifications-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid var(--green);color:var(--orange);font-size:19px}.notification-list{display:flex;flex-direction:column}.notification-item{display:flex;gap:12px;padding:15px 2px;border-bottom:1px solid var(--border);align-items:flex-start}.notification-item:last-child{border-bottom:0}.notification-dot{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--green);color:var(--orange)}.notification-copy{min-width:0}.notification-copy strong{display:block;color:var(--green);margin-bottom:4px}.notification-copy div{line-height:1.4}.notification-copy small{display:block;color:var(--muted);margin-top:6px}.notification-empty{padding:34px 10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--muted)}.notification-empty i{font-size:30px;color:var(--orange)}.notification-empty strong{color:var(--green)}

/* Positionnement robuste : le chat occupe exactement le viewport visible. */
body.chat-page{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.chat-page .chat-main-topbar{position:fixed!important;top:0;left:0;right:0}
.chat-page .chat-app-shell{position:fixed!important;left:0;right:0;top:68px;bottom:0;height:auto!important;min-height:0!important;padding-top:0!important;overflow:hidden!important}
.chat-page .chat-content{height:100%!important;min-height:0!important;overflow:hidden!important}
.chat-page .chat-shell{height:100%!important;min-height:0!important;overflow:hidden!important;margin:0!important}
.chat-page .message-list{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding-bottom:14px}
.chat-page .composer-card{display:block!important;visibility:visible!important;opacity:1!important;flex:0 0 auto!important;position:relative!important;bottom:auto!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;background:#fff!important}
.chat-page .composer{display:flex!important;align-items:flex-end!important;min-height:48px!important}

@media(max-width:700px){
 .mdj-toast-stack{top:70px;right:12px;left:12px;width:auto}
 .chat-page .chat-app-shell{top:62px!important}
 .chat-page .composer-card{padding:7px 7px max(7px,env(safe-area-inset-bottom))!important}
 .chat-page .composer .input{min-height:42px!important;max-height:96px!important}
 .chat-page .message-list{padding-bottom:10px!important}
}
@supports(height:100dvh){body.chat-page{height:var(--mdj-visible-height,100dvh)}}

/* V1.0.8 — Messagerie temps réel, médias et vocal haute qualité */
.message-foot .reply-btn{display:none!important}
.media-preview{display:block;margin:2px 0 6px;overflow:hidden;border-radius:10px;background:#fff}
.chat-image{display:block;width:min(360px,72vw);max-height:420px;object-fit:cover;border-radius:10px;border:1px solid var(--border)}
.chat-video{display:block;width:min(390px,74vw);max-height:430px;border-radius:10px;background:#000}
.chat-audio{display:block;width:min(360px,72vw);max-width:100%;height:44px}
.document-preview{display:flex;align-items:center;gap:10px;min-width:230px;max-width:340px;padding:10px;border:1px solid #d8e2dd;border-radius:10px;background:#fff;color:var(--text)}
.document-preview:hover{border-color:var(--green)}
.document-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border-radius:8px;background:#eef5f1;color:var(--green);font-size:20px}
.document-meta{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}.document-meta strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.document-meta small{font-size:11px;color:var(--muted)}
.document-download{color:var(--orange)}
.attachment-preview{padding:0 8px}.attachment-selected{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);padding:8px 4px;background:#fff}.attachment-selected img,.attachment-selected video{width:54px;height:54px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.attachment-file-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:8px;background:#eef5f1;color:var(--green);font-size:22px}.attachment-selected-copy{min-width:0;display:flex;flex-direction:column;flex:1}.attachment-selected-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.attachment-selected-copy small{color:var(--muted);font-size:11px}.attachment-selected button{border:0;background:transparent;color:var(--green);width:36px;height:36px;border-radius:50%;cursor:pointer}
.message-list{scroll-behavior:smooth}
@media(max-width:700px){.chat-image,.chat-video,.chat-audio{width:min(78vw,340px)}.document-preview{min-width:min(72vw,280px);max-width:78vw}}

/* V1.0.11 — envoi direct avec progression circulaire */
.pending-message{position:relative;overflow:visible}.pending-media{position:relative;display:inline-block;max-width:100%}.pending-media .chat-image,.pending-media .chat-video{margin-bottom:0;opacity:.82}.upload-progress{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;background:#ffffff;display:grid;place-items:center;z-index:3;border:1px solid #dfe7e3}.upload-progress svg{position:absolute;inset:4px;width:44px;height:44px;transform:rotate(-90deg)}.upload-progress circle{fill:none;stroke-width:4}.upload-track{stroke:#dfe7e3}.upload-value{stroke:#fd8102;stroke-linecap:round;stroke-dasharray:113.097;stroke-dashoffset:113.097;transition:stroke-dashoffset .12s linear}.upload-progress span{position:relative;z-index:1;font-size:10px;font-weight:700;color:#005230}.pending-document{position:relative;padding-right:66px;pointer-events:none}.upload-progress.compact{left:auto;right:9px;top:50%;width:46px;height:46px;transform:translateY(-50%)}.upload-progress.compact svg{inset:1px}.upload-pending .message-foot{color:#6b7280}.upload-failed .pending-media .chat-image,.upload-failed .pending-media .chat-video{opacity:.55}.upload-progress.failed{border-color:#b42318}.upload-progress.failed .upload-value{stroke:#b42318}.upload-progress.failed span{color:#b42318}
@media(max-width:900px){.upload-progress{width:50px;height:50px}.pending-document{padding-right:60px}.upload-progress.compact{right:7px}}
