/* Assistant d'aide : portail et administration. */
.ejnf-chat-launcher { position:fixed; right:22px; bottom:82px; z-index:9997; display:flex; align-items:center; gap:8px; border:0; border-radius:999px; padding:12px 17px; background:#0756ad; color:#fff; font:inherit; font-weight:700; box-shadow:0 7px 24px rgba(14,42,74,.25); cursor:pointer; }
.ejnf-chat-launcher:hover,.ejnf-chat-launcher:focus { background:#0c4178; }
.ejnf-chat-panel { position:fixed; right:22px; bottom:140px; z-index:9998; width:min(390px,calc(100vw - 30px)); max-height:min(620px,calc(100vh - 175px)); overflow:hidden; border:1px solid #cad5df; border-radius:18px; background:#fff; color:#183653; box-shadow:0 18px 55px rgba(14,42,74,.25); }
.ejnf-chat-panel[hidden] { display:none; }
.ejnf-chat-panel header { display:flex; align-items:center; justify-content:space-between; padding:15px 17px; background:linear-gradient(135deg,#173c62,#0756ad); color:#fff; }
.ejnf-chat-close { border:0; background:transparent; color:#fff; font-size:27px; line-height:1; cursor:pointer; }
.ejnf-chat-messages { max-height:270px; overflow:auto; padding:14px; background:#f4f7fb; }
.ejnf-chat-bubble { max-width:88%; margin:0 0 10px; padding:10px 12px; border-radius:14px; line-height:1.45; overflow-wrap:anywhere; }
.ejnf-chat-bubble.is-bot { background:#fff; border:1px solid #dce4ec; }
.ejnf-chat-bubble.is-user { margin-left:auto; background:#0756ad; color:#fff; }
.ejnf-chat-bubble a { font-weight:700; }
.ejnf-chat-suggestions { display:flex; gap:7px; overflow-x:auto; padding:11px 13px 5px; }
.ejnf-chat-suggestions button { flex:0 0 auto; max-width:235px; border:1px solid #b9c9d8; border-radius:999px; padding:7px 10px; background:#fff; color:#0756ad; text-align:left; cursor:pointer; }
.ejnf-chat-form { display:flex; gap:7px; padding:11px 13px; }
.ejnf-chat-form input { min-width:0; flex:1; border:1px solid #9eafc0; border-radius:9px; padding:10px; font:inherit; }
.ejnf-chat-form button { border:0; border-radius:9px; padding:9px 12px; background:#b7190e; color:#fff; font-weight:700; cursor:pointer; }
.ejnf-chat-privacy { margin:0; padding:0 14px 12px; color:#66788a; font-size:12px; line-height:1.35; }
@media(max-width:600px){.ejnf-chat-launcher{right:12px;bottom:72px}.ejnf-chat-launcher span:last-child{display:none}.ejnf-chat-panel{right:8px;bottom:126px;width:calc(100vw - 16px);max-height:calc(100vh - 145px)}}
.ejnf-chat-launcher:focus-visible { outline: 3px solid var(--ejnf-blue, #004fa3); outline-offset: 2px; }
#wpfooter ~ .ejnf-chat-launcher, body.wp-admin .ejnf-chat-launcher { bottom: 40px; }
body.wp-admin .ejnf-chat-panel { bottom: 96px; font-size: 14px; }
