/* Assistant BATILOT-CI — widget de discussion */
.ba-launch{position:fixed;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(80px + env(safe-area-inset-bottom,0px));z-index:95;display:flex;align-items:center;gap:.55rem;border:0;cursor:pointer;background:#0F70B7;color:#FFFFFF;padding:.8rem 1.15rem .8rem .9rem;border-radius:999px;font:600 .92rem 'IBM Plex Sans',Arial,sans-serif;box-shadow:0 14px 30px -10px rgba(15,112,183,.75);transition:transform .2s ease}
.ba-launch:hover{transform:translateY(-2px)}
.ba-launch:focus-visible,.ba-panel button:focus-visible,.ba-panel a:focus-visible,.ba-panel input:focus-visible,.ba-panel textarea:focus-visible,.ba-panel select:focus-visible{outline:3px solid #7FB8E3;outline-offset:2px}
.ba-launch svg{width:22px;height:22px;flex:none}
.ba-launch[hidden]{display:none}
.ba-panel{position:fixed;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:100;width:min(400px,calc(100vw - 24px));height:min(640px,calc(100dvh - 36px));display:flex;flex-direction:column;background:#FBFCFD;color:#1C242B;border-radius:20px;overflow:hidden;box-shadow:0 30px 70px -20px rgba(28,36,43,.55),0 0 0 1px rgba(28,36,43,.08);font:400 .95rem/1.5 'IBM Plex Sans',Arial,sans-serif}
.ba-panel[hidden]{display:none}
.ba-head{display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem;background:#1C242B;color:#FFFFFF}
.ba-head img{width:38px;height:38px;border-radius:10px;background:#FFFFFF;padding:5px;object-fit:contain}
.ba-head b{display:block;font:700 1rem 'Archivo',Arial,sans-serif;letter-spacing:.01em}
.ba-head small{display:flex;align-items:center;gap:.4rem;color:#BFC9D1;font-size:.78rem}
.ba-head small i{width:8px;height:8px;border-radius:50%;background:#2BC46B;display:inline-block}
.ba-head .ba-x{margin-left:auto;background:transparent;border:0;color:#FFFFFF;width:36px;height:36px;border-radius:10px;cursor:pointer;font-size:1.4rem;line-height:1}
.ba-head .ba-x:hover{background:rgba(255,255,255,.12)}
.ba-log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.7rem;background:#EDF0F3}
.ba-msg{max-width:88%;padding:.65rem .85rem;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere}
.ba-msg p{margin:0 0 .45rem}.ba-msg p:last-child{margin:0}
.ba-msg ul{margin:.2rem 0 .45rem;padding-left:1.1rem}.ba-msg li{margin:.1rem 0}
.ba-msg a{color:#0F70B7;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.ba-bot{align-self:flex-start;background:#FFFFFF;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(28,36,43,.06)}
.ba-moi{align-self:flex-end;background:#0F70B7;color:#FFFFFF;border-bottom-right-radius:4px}
.ba-moi a{color:#FFFFFF}
.ba-dots{display:inline-flex;gap:4px;padding:.2rem 0}.ba-dots i{width:7px;height:7px;border-radius:50%;background:#8B959C;animation:ba-b 1.2s infinite}.ba-dots i:nth-child(2){animation-delay:.15s}.ba-dots i:nth-child(3){animation-delay:.3s}
@keyframes ba-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.ba-sugg{display:flex;flex-wrap:wrap;gap:.45rem}
.ba-sugg button{border:1px solid #C9D3DC;background:#FFFFFF;color:#1C242B;border-radius:999px;padding:.4rem .75rem;font:500 .84rem 'IBM Plex Sans',Arial,sans-serif;cursor:pointer;text-align:left}
.ba-sugg button:hover{border-color:#0F70B7;color:#0F70B7}
.ba-acts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.4rem;padding:.55rem .75rem;background:#FFFFFF;border-top:1px solid #E1E6EB}
.ba-acts a,.ba-acts button{display:flex;align-items:center;justify-content:center;gap:.3rem;min-height:38px;border-radius:10px;font:600 .8rem 'IBM Plex Sans',Arial,sans-serif;text-decoration:none;cursor:pointer;border:1px solid #C9D3DC;background:#FFFFFF;color:#1C242B;padding:.3rem .4rem;text-align:center}
.ba-acts .ba-rap{background:#0F70B7;border-color:#0F70B7;color:#FFFFFF}
.ba-acts .ba-wa{border-color:#167A3E;color:#167A3E}
.ba-form{display:flex;gap:.5rem;padding:.6rem .75rem .4rem;background:#FFFFFF}
.ba-form textarea{flex:1;resize:none;border:1px solid #C9D3DC;border-radius:12px;padding:.6rem .75rem;font:400 .95rem 'IBM Plex Sans',Arial,sans-serif;max-height:110px;min-height:44px;color:#1C242B;background:#FBFCFD}
.ba-form button{flex:none;width:44px;height:44px;border-radius:12px;border:0;background:#0F70B7;color:#FFFFFF;cursor:pointer;display:grid;place-items:center}
.ba-form button:disabled{opacity:.45;cursor:default}
.ba-form svg{width:20px;height:20px}
.ba-note{margin:0;padding:0 .9rem .6rem;background:#FFFFFF;color:#6B7680;font-size:.72rem;line-height:1.35}
.ba-rappel{background:#FFFFFF;border-radius:14px;padding:.9rem;display:flex;flex-direction:column;gap:.55rem;box-shadow:0 1px 2px rgba(28,36,43,.06)}
.ba-rappel b{font:700 .98rem 'Archivo',Arial,sans-serif}
.ba-rappel label{display:flex;flex-direction:column;gap:.2rem;font-size:.8rem;font-weight:600;color:#4A5560}
.ba-rappel input,.ba-rappel select,.ba-rappel textarea{border:1px solid #C9D3DC;border-radius:10px;padding:.55rem .65rem;font:400 .92rem 'IBM Plex Sans',Arial,sans-serif;color:#1C242B;background:#FBFCFD}
.ba-rappel .ba-ok{flex-direction:row;align-items:flex-start;gap:.45rem;font-weight:400}
.ba-rappel .ba-ok input{margin-top:.2rem}
.ba-rappel .ba-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ba-rappel .ba-row{display:flex;gap:.5rem}
.ba-rappel .ba-row button{flex:1;min-height:40px;border-radius:10px;border:1px solid #C9D3DC;background:#FFFFFF;font:600 .86rem 'IBM Plex Sans',Arial,sans-serif;cursor:pointer;color:#1C242B}
.ba-rappel .ba-row button[type=submit]{background:#0F70B7;border-color:#0F70B7;color:#FFFFFF}
.ba-rappel .ba-err{color:#C9111B;font-size:.82rem;margin:0}
@media (max-width:520px){.ba-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}.ba-launch span{display:none}.ba-launch{padding:.85rem}}
@media (prefers-reduced-motion:reduce){.ba-launch,.ba-dots i{transition:none;animation:none}}
.ba-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}