/* ══ ALFRED, L’ASSISTANT DU SITE (chatbot en bas à droite) ═══════
   Tout est préfixé « abot- ». Les règles téléphone sont dans mobile.css. */

.abot-btn{ position:fixed; right:18px; bottom:18px; z-index:3000; display:inline-flex; align-items:center; gap:8px; height:50px; padding:0 16px 0 12px;
  border:1px solid rgba(255,220,140,.55); border-radius:26px; cursor:pointer; font-family:var(--font-head, inherit); font-weight:800; font-size:14px; letter-spacing:.4px; color:#2a1c02;
  background:linear-gradient(180deg, #ffe9a3, #f2c94c 55%, #b8860b); box-shadow:0 8px 24px rgba(0,0,0,.45), 0 0 0 0 rgba(242,201,76,.45), inset 0 1px 0 rgba(255,255,255,.65);
  transition:transform .15s, box-shadow .15s; animation:abotHalo 3.2s ease-out infinite; }
.abot-btn:hover{ transform:translateY(-2px); }
.abot-btn.ouvert{ animation:none; }
.abot-btn-ico{ font-size:22px; line-height:1; filter:drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
@keyframes abotHalo{ 0%{ box-shadow:0 8px 24px rgba(0,0,0,.45), 0 0 0 0 rgba(242,201,76,.55), inset 0 1px 0 rgba(255,255,255,.65); }
  60%,100%{ box-shadow:0 8px 24px rgba(0,0,0,.45), 0 0 0 16px rgba(242,201,76,0), inset 0 1px 0 rgba(255,255,255,.65); } }

.abot-panel{ position:fixed; right:18px; bottom:80px; z-index:3001; width:min(390px, calc(100vw - 36px)); height:min(600px, calc(100vh - 110px));
  display:flex; flex-direction:column; border-radius:18px; overflow:hidden; color:var(--text);
  background:linear-gradient(170deg, var(--bg2), var(--bg)); border:1px solid color-mix(in srgb, #f2c94c 35%, var(--border));
  box-shadow:0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(242,201,76,.12); animation:abotOuvre .22s cubic-bezier(.2,1.2,.4,1); }
.abot-panel[hidden]{ display:none; }
@keyframes abotOuvre{ from{ opacity:0; transform:translateY(14px) scale(.97); } }
.abot-head{ display:flex; align-items:center; gap:10px; padding:12px 12px 12px 14px; flex-shrink:0;
  background:linear-gradient(90deg, rgba(242,201,76,.22), transparent); border-bottom:1px solid var(--border); }
.abot-av{ width:38px; height:38px; flex-shrink:0; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:21px;
  background:radial-gradient(circle at 35% 30%, #fff4c0, #f2c94c 55%, #8a6210); box-shadow:0 3px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.6); }
.abot-head-t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.abot-head-t b{ font-family:var(--font-head, inherit); font-size:16px; letter-spacing:.5px; }
.abot-head-t small{ font-size:11.5px; color:var(--text3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.abot-x{ width:32px; height:32px; flex-shrink:0; border:none; border-radius:50%; background:rgba(255,255,255,.08); color:var(--text); cursor:pointer; font-size:15px;
  display:flex; align-items:center; justify-content:center; transition:background .15s; }
.abot-x:hover{ background:rgba(255,255,255,.18); }

.abot-msgs{ flex:1; min-height:0; overflow-y:auto; padding:14px 12px 6px; display:flex; flex-direction:column; gap:10px; scroll-behavior:smooth; }
.abot-msg{ display:flex; gap:8px; align-items:flex-end; max-width:100%; animation:abotMsgIn .2s ease-out; }
@keyframes abotMsgIn{ from{ opacity:0; transform:translateY(6px); } }
.abot-msg-av{ width:26px; height:26px; flex-shrink:0; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px;
  background:radial-gradient(circle at 35% 30%, #fff4c0, #f2c94c 55%, #8a6210); }
.abot-bulle{ max-width:84%; padding:9px 12px; border-radius:14px; font-size:13.5px; line-height:1.5; overflow-wrap:anywhere; }
.abot-alfred .abot-bulle{ background:var(--bg3); border:1px solid var(--border); border-bottom-left-radius:4px; }
.abot-moi{ justify-content:flex-end; }
.abot-moi .abot-bulle{ background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent)); color:#fff; border-bottom-right-radius:4px; }
.abot-bulle ul{ margin:.3em 0 .2em; padding-left:1.3em; } .abot-bulle li{ margin:.1em 0; }
.abot-titre{ font-weight:800; font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:#f2c94c; margin-bottom:4px; }
.abot-titre.abot-classifie{ color:#ff6b6b; }
.abot-rep.abot-classifie{ color:#ffb3b3; }
.abot-related{ display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.abot-chips{ display:flex; gap:6px; padding:6px 12px 8px; overflow-x:auto; flex-shrink:0; scrollbar-width:thin; }
.abot-chip{ flex-shrink:0; border:1px solid color-mix(in srgb, #f2c94c 45%, var(--border)); background:rgba(242,201,76,.1); color:var(--text); border-radius:14px;
  padding:5px 10px; font-size:12px; cursor:pointer; font-family:inherit; text-align:left; transition:background .15s, transform .15s; max-width:100%; white-space:normal; }
.abot-chip:hover{ background:rgba(242,201,76,.22); transform:translateY(-1px); }
.abot-chip-danger{ border-color:rgba(239,68,68,.5); background:rgba(239,68,68,.12); margin-top:8px; }
.abot-form{ display:flex; gap:6px; padding:8px 10px 10px; border-top:1px solid var(--border); flex-shrink:0; background:var(--bg2); }
.abot-input{ flex:1; min-width:0; height:40px; padding:0 12px; border-radius:12px; border:1px solid var(--border); background:var(--bg3); color:var(--text); font:inherit; font-size:14px; outline:none; }
.abot-input:focus{ border-color:#f2c94c; box-shadow:0 0 0 3px rgba(242,201,76,.2); }
.abot-send{ width:42px; height:40px; flex-shrink:0; border:none; border-radius:12px; cursor:pointer; color:#2a1c02; font-size:16px;
  background:linear-gradient(180deg, #ffe9a3, #f2c94c 60%, #b8860b); box-shadow:inset 0 1px 0 rgba(255,255,255,.6); }
.abot-send:disabled{ opacity:.5; cursor:default; }
.abot-pied{ flex-shrink:0; text-align:center; padding:0 0 6px; background:var(--bg2); }
.abot-pied:empty{ display:none; }
.abot-lien{ background:none; border:none; color:var(--text3); font-size:11.5px; cursor:pointer; font-family:inherit; text-decoration:underline dotted; }
.abot-lien:hover{ color:var(--text); }
.abot-base{ font-size:11px; color:var(--text3); cursor:help; }
.abot-liste{ list-style:none; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; max-height:260px; overflow-y:auto; }
.abot-liste li{ display:flex; flex-direction:column; gap:1px; padding:6px 8px; background:rgba(255,255,255,.04); border-radius:8px; }
.abot-liste small{ color:var(--text3); font-size:11px; }

/* « Alfred écrit… » : trois points qui ondulent */
.abot-typing{ display:inline-flex; gap:4px; align-items:center; padding:12px 14px; }
.abot-typing i{ width:7px; height:7px; border-radius:50%; background:#f2c94c; animation:abotPoint 1s ease-in-out infinite; }
.abot-typing i:nth-child(2){ animation-delay:.15s; } .abot-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes abotPoint{ 0%,100%{ transform:translateY(0); opacity:.5; } 50%{ transform:translateY(-5px); opacity:1; } }

@media (prefers-reduced-motion:reduce){ .abot-btn, .abot-panel, .abot-msg, .abot-typing i{ animation:none !important; } }
