/* Bulle de discussion (assistant virtuel). Sous la bannière de cookies (z-index 200). */
.chat-fab{position:fixed;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:150;display:flex;align-items:center;gap:.5rem;padding:.7rem 1rem;border:0;border-radius:999px;background:var(--forest,#0B4A3B);color:#fff;font:700 .95rem/1 var(--body,system-ui,sans-serif);box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer}
.chat-fab:hover{filter:brightness(1.12)}
.chat-fab-icon{font-size:1.2rem;line-height:1}
.chat-panel{position:fixed;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:150;display:flex;flex-direction:column;width:min(380px,calc(100vw - 2rem));height:min(560px,calc(100vh - 2rem));background:#fff;color:#1b2420;border-radius:var(--radius,18px);box-shadow:0 12px 40px rgba(0,0,0,.3);overflow:hidden;font-family:var(--body,system-ui,sans-serif)}
.chat-panel[hidden],.chat-fab[hidden],.chat-chips[hidden]{display:none}
.chat-head{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:var(--forest,#0B4A3B);color:#fff}
.chat-close{border:0;background:transparent;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer;padding:0 .25rem}
.chat-list{flex:1;overflow-y:auto;padding:.9rem;display:flex;flex-direction:column;gap:.55rem;background:var(--bg,#F4F6F1)}
.chat-msg{max-width:88%;padding:.55rem .8rem;border-radius:14px;font-size:.93rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-bot{align-self:flex-start;background:#fff;border:1px solid rgba(0,0,0,.08)}
.chat-user{align-self:flex-end;background:var(--forest,#0B4A3B);color:#fff}
.chat-msg a{color:inherit;text-decoration:underline;font-weight:600}
.chat-typing{opacity:.6}
.chat-chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:.5rem .9rem;background:var(--bg,#F4F6F1)}
.chat-chip{border:1px solid var(--forest,#0B4A3B);background:#fff;color:var(--forest,#0B4A3B);border-radius:999px;padding:.35rem .7rem;font-size:.82rem;cursor:pointer}
.chat-form{display:flex;gap:.5rem;padding:.6rem .75rem;border-top:1px solid rgba(0,0,0,.08);background:#fff}
.chat-form input{flex:1;min-width:0;padding:.6rem .75rem;border:1px solid rgba(0,0,0,.2);border-radius:10px;font:inherit;font-size:16px}
.chat-send{border:0;border-radius:10px;padding:0 .9rem;background:var(--forest,#0B4A3B);color:#fff;font-weight:700;cursor:pointer}
.chat-send:disabled{opacity:.5;cursor:default}
.chat-note{margin:0;padding:.35rem .9rem .6rem;font-size:.72rem;line-height:1.3;color:#5b6761;background:#fff}
@media (max-width:480px){
  .chat-fab-label{display:none}
  .chat-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}
}
