/* 4.7.0 – Assistant du site (bulle de discussion) */
#stb{--stb-g:linear-gradient(135deg,#ffa51f,#f0412e);--stb-t:#1f1a22;--stb-m:#6b6270;--stb-l:#ece6ee;font-family:inherit;font-size:15px;line-height:1.45;color:var(--stb-t)}
#stb *{box-sizing:border-box}
#stb button{font-family:inherit;cursor:pointer}
#stb .stb-fab{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:9995;width:60px;height:60px;border-radius:50%;border:0;background:var(--stb-g);color:#fff;display:grid;place-items:center;box-shadow:0 10px 28px rgba(240,65,46,.38);transition:transform .2s}
#stb .stb-fab:hover{transform:translateY(-2px) scale(1.03)}
#stb .stb-fab svg{width:28px;height:28px}
#stb .stb-dot{position:absolute;top:4px;right:4px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2.5px solid #fff}
#stb.open .stb-fab{transform:scale(.92)}#stb.open .stb-dot{display:none}
#stb .stb-tip{position:fixed;right:92px;bottom:calc(30px + env(safe-area-inset-bottom,0px));z-index:9995;background:#fff;border:1px solid var(--stb-l);border-radius:16px 16px 4px 16px;box-shadow:0 10px 30px rgba(31,26,34,.14);padding:10px 34px 10px 14px;font-size:14px;cursor:pointer;animation:stbIn .35s ease;max-width:calc(100vw - 120px)}
#stb .stb-tip b{color:#f0412e}
#stb .stb-tip button{position:absolute;top:4px;right:6px;border:0;background:none;color:var(--stb-m);font-size:18px;line-height:1;padding:4px}
#stb .stb-panel{position:fixed;right:20px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:9996;width:380px;max-width:calc(100vw - 24px);height:min(600px,calc(100vh - 120px));background:#fff;border-radius:22px;box-shadow:0 24px 60px rgba(31,26,34,.24);display:flex;flex-direction:column;overflow:hidden;animation:stbIn .25s ease}
#stb .stb-panel[hidden]{display:none}
@keyframes stbIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
#stb .stb-h{display:flex;align-items:center;gap:10px;padding:14px 12px 14px 16px;background:var(--stb-g);color:#fff}
#stb .stb-h img{width:40px;height:40px;border-radius:12px;background:#fff;object-fit:contain;padding:3px}
#stb .stb-h div{flex:1;min-width:0}#stb .stb-h b{display:block;font-size:15px}
#stb .stb-h small{display:flex;align-items:center;gap:6px;font-size:12px;opacity:.95}#stb .stb-h small i{width:8px;height:8px;border-radius:50%;background:#bbf7d0;box-shadow:0 0 0 3px rgba(187,247,208,.35)}
#stb .stb-ic{width:34px;height:34px;border-radius:10px;border:0;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center}
#stb .stb-ic svg{width:18px;height:18px}
#stb .stb-list{flex:1;overflow-y:auto;padding:16px 14px 8px;background:#faf8fb;overscroll-behavior:contain}
#stb .stb-m{display:flex;margin:0 0 10px}
#stb .stb-m p{margin:0;max-width:86%;padding:10px 13px;border-radius:16px;font-size:14.5px;overflow-wrap:anywhere}
#stb .stb-m.bot p{background:#fff;border:1px solid var(--stb-l);border-bottom-left-radius:5px;color:var(--stb-t)}
#stb .stb-m.bot.ai p{border-color:#ffd9b3}
#stb .stb-m.me{justify-content:flex-end}#stb .stb-m.me p{background:var(--stb-g);color:#fff;border-bottom-right-radius:5px}
#stb .stb-m a{color:#f0412e;font-weight:700}
#stb .stb-m small{color:var(--stb-m);font-size:12.5px}
#stb .stb-chips{display:flex;flex-wrap:wrap;gap:7px;margin:-2px 0 12px}
#stb .stb-chip{display:inline-flex;align-items:center;padding:8px 12px;border-radius:99px;border:1.5px solid #ffd2a8;background:#fff;color:var(--stb-t);font-size:13.5px;font-weight:700;text-decoration:none;line-height:1.2}
#stb .stb-chip:hover{border-color:#f0412e;background:#fff5ec}
#stb .stb-typing{display:inline-flex;gap:4px;padding:13px 14px!important}
#stb .stb-typing i{width:7px;height:7px;border-radius:50%;background:#c9bfcc;animation:stbDot 1s infinite}
#stb .stb-typing i:nth-child(2){animation-delay:.15s}#stb .stb-typing i:nth-child(3){animation-delay:.3s}
@keyframes stbDot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}
#stb .stb-in{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--stb-l);background:#fff}
#stb .stb-in input{flex:1;min-width:0;border:1.5px solid var(--stb-l);border-radius:14px;padding:11px 13px;font:inherit;font-size:16px;color:var(--stb-t);background:#fff;outline:none}
#stb .stb-in input:focus{border-color:#ffa51f}
#stb .stb-in button{flex:none;width:46px;border:0;border-radius:14px;background:var(--stb-g);color:#fff;display:grid;place-items:center}
#stb .stb-in button svg{width:20px;height:20px}
#stb .stb-foot{margin:0;padding:0 12px 10px;background:#fff;text-align:center;font-size:11.5px;color:var(--stb-m)}#stb .stb-foot a{color:#f0412e;font-weight:700;text-decoration:none}
#stb .stb-form{display:grid;gap:8px;margin:0 0 12px;padding:12px;border:1.5px solid #ffd2a8;border-radius:16px;background:#fff}
#stb .stb-form b{font-size:14px}
#stb .stb-form input,#stb .stb-form textarea{width:100%;border:1.5px solid var(--stb-l);border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;color:var(--stb-t);background:#fff;resize:none}
#stb .stb-form button{border:0;border-radius:12px;padding:12px;background:var(--stb-g);color:#fff;font-weight:800;font-size:15px}
#stb .stb-form button:disabled{opacity:.6}
#stb .stb-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important}
#stb .stb-err{margin:0;color:#b3261e;font-size:13px;font-weight:700}
body.stb-on .str-top{bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
@media (max-width:640px){
#stb .stb-fab{right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));width:56px;height:56px}
#stb .stb-tip{right:80px;bottom:calc(22px + env(safe-area-inset-bottom,0px))}
#stb .stb-panel{left:8px;right:8px;width:auto;max-width:none;bottom:calc(80px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 100px - env(safe-area-inset-bottom,0px));border-radius:20px}
body.stb-on .str-top{bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;right:18px!important}
}
@media print{#stb{display:none!important}}
/* 4.7.1 – un seul bouton flottant : WhatsApp / SMS / Appeler regroupés dans l'assistant */
body.stb-on .str-chat{display:none!important}
#stb .stb-ct{display:flex;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid var(--stb-l)}
#stb .stb-ct a{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 6px;border-radius:12px;font-size:13.5px;font-weight:800;text-decoration:none;color:#fff;line-height:1}
#stb .stb-ct a svg{width:17px;height:17px;flex:none}
#stb .stb-ct-call{background:#1f1a22}
#stb .stb-ct-sms{background:var(--stb-g)}
#stb .stb-ct-wa{background:#22a35a}
@media (max-width:640px){#stb .stb-fab{width:54px;height:54px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}#stb .stb-fab svg{width:25px;height:25px}#stb .stb-panel{bottom:calc(76px + env(safe-area-inset-bottom,0px))}}
#stb .stb-chip .stb-e{font-style:normal;margin-right:7px;display:inline-block}
/* 4.7.3 – alignements : boutons de réponse en liste pleine largeur, émojis alignés, bouton et fenêtre alignés à droite */
#stb .stb-chips{display:grid;grid-template-columns:1fr;gap:8px;max-width:100%}
#stb .stb-chip{width:100%;justify-content:flex-start;text-align:left;padding:11px 14px;border-radius:14px}
#stb .stb-chip .stb-e{width:24px;margin-right:8px;text-align:center;flex:none}
@media (max-width:640px){
#stb .stb-panel{left:12px;right:12px}
#stb .stb-fab{right:12px}
#stb .stb-tip{right:76px}
}
#stb .stb-chip{font-size:13.5px}
