/* AidGBV — Widget du chatbot (partagé par toutes les pages publiques) */
.chatbot-floating{position:fixed;bottom:28px;right:28px;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.chatbot-toggle{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--teal,#6a4c93),var(--teal-light,#9b72cf));color:#fff;border:none;cursor:pointer;box-shadow:0 6px 24px rgba(106,76,147,.45);display:flex;align-items:center;justify-content:center;transition:transform .2s;position:relative}
.chatbot-toggle:hover{transform:scale(1.06)}
.chatbot-toggle-icon,.chatbot-avatar-icon{width:60%;height:60%;object-fit:contain;filter:brightness(0) invert(1)}
.chatbot-toggle .ping{position:absolute;top:4px;right:4px;width:14px;height:14px;border-radius:50%;border:2px solid #fff;background:#2ecc71}
.chatbot-window{width:400px;max-width:calc(100vw - 32px);background:#fff;border-radius:22px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden;display:none;flex-direction:column}
.chatbot-window.open{display:flex}
.chatbot-header{background:linear-gradient(135deg,var(--teal,#6a4c93),var(--teal-light,#9b72cf));color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.chatbot-header-left{display:flex;align-items:center;gap:10px;min-width:0}
.chatbot-avatar{width:34px;height:34px;flex-shrink:0;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center}
.chatbot-header-title{font-weight:700;font-size:15px}
.chatbot-header-status{font-size:12px;opacity:.9;display:flex;align-items:center;gap:5px}
.chatbot-header-status .status-dot{width:7px;height:7px;border-radius:50%;background:#2ecc71;display:inline-block}
.chatbot-header button{background:rgba(255,255,255,.18);border:none;color:#fff;font-size:16px;cursor:pointer;width:36px;height:36px;border-radius:50%;flex-shrink:0}
.chatbot-header button:hover{background:rgba(255,255,255,.3)}
.chatbot-messages{height:400px;max-height:55vh;overflow-y:auto;padding:14px;background:var(--sand,#f9f5f0);display:flex;flex-direction:column;gap:10px}
.chatbot-floating .message{max-width:88%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.chatbot-floating .user-msg{background:var(--teal,#6a4c93);color:#fff;align-self:flex-end;border-bottom-right-radius:4px;white-space:pre-wrap}
.chatbot-floating .bot-msg{background:#fff;color:var(--charcoal,#1c2b2a);align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.chatbot-floating .bot-msg p{margin:0 0 6px}.chatbot-floating .bot-msg p:last-child{margin-bottom:0}
.chatbot-floating .bot-msg strong{color:var(--teal,#6a4c93);font-weight:600}
.chatbot-floating .bot-msg ul,.chatbot-floating .bot-msg ol{padding-left:18px;margin:4px 0 6px}
.chatbot-floating .bot-msg li{margin-bottom:3px}
.chatbot-floating .bot-msg a{color:var(--teal,#6a4c93);font-weight:600}
.chatbot-floating .chat-ref{font-size:10px;color:var(--muted,#7a9490);font-weight:600}
.chatbot-floating .chat-extract{border-left:3px solid var(--teal-pale,#f0e9f9);padding-left:10px;margin:8px 0}
.chatbot-floating .chat-danger{background:#fdecea;border:1px solid #f5c2bd;border-radius:12px;padding:10px 12px;margin-bottom:8px}
.chatbot-floating .chat-danger strong{color:#b03a2e}
.chatbot-floating .chat-danger a{color:#b03a2e;text-decoration:none}
.chatbot-floating .chat-sources{margin-top:8px;padding-top:8px;border-top:1px solid #eee;font-size:12.5px}
.chatbot-floating .chat-sources span{display:block;color:var(--muted,#7a9490);margin-bottom:4px}
.chatbot-floating .chat-sources a{display:block;padding:3px 0;color:var(--teal,#6a4c93);font-weight:600;text-decoration:underline}
.chatbot-floating .typing-indicator{display:flex;gap:5px;padding:12px 14px;background:#fff;border-radius:16px;width:fit-content;align-self:flex-start}
.chatbot-floating .typing-indicator span{width:7px;height:7px;border-radius:50%;background:var(--muted,#7a9490);animation:chatbotTyping 1.4s infinite ease-in-out}
.chatbot-floating .typing-indicator span:nth-child(2){animation-delay:.2s}.chatbot-floating .typing-indicator span:nth-child(3){animation-delay:.4s}
@keyframes chatbotTyping{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}
.chatbot-floating .suggestions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;background:var(--teal-pale,#f0e9f9)}
.chatbot-floating .suggestion-btn{background:#fff;color:var(--teal,#6a4c93);border:1.5px solid rgba(106,76,147,.25);border-radius:20px;padding:8px 12px;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit}
.chatbot-floating .suggestion-btn:hover{background:var(--teal,#6a4c93);color:#fff}
.chatbot-floating .chatbot-note{font-size:11.5px;color:var(--muted,#7a9490);text-align:center;padding:6px 12px 0;background:#fff}
.chatbot-input{display:flex;border-top:1px solid #e6e6e6;background:#fff}
.chatbot-input input{flex:1;min-width:0;padding:14px 16px;border:none;font-size:16px;font-family:inherit;outline:none;color:var(--charcoal,#1c2b2a);background:#fff}
.chatbot-input button{background:var(--teal,#6a4c93);border:none;color:#fff;padding:0 20px;min-width:52px;cursor:pointer;font-weight:700;font-size:16px}
.chatbot-input button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:768px){
  .chatbot-floating{bottom:16px;right:16px}
  .chatbot-toggle{width:56px;height:56px}
  .chatbot-window{width:calc(100vw - 32px)}
  .chatbot-messages{height:340px}
}
@media(prefers-reduced-motion:reduce){.chatbot-floating .typing-indicator span{animation:none}}
