.rba-sr{position:absolute;left:-9999px}
.rba-btn{position:fixed;right:16px;bottom:16px;z-index:9990;display:inline-flex;align-items:center;gap:.55rem;background:#1B5FB4;color:#fff;border:0;border-radius:999px;padding:.8rem 1.1rem;font:inherit;font-weight:600;font-size:1rem;cursor:pointer;box-shadow:0 8px 24px rgba(15,46,92,.3)}
.rba-btn svg{width:22px;height:22px}.rba-btn:hover{background:#123F7A}
.rba-panel{position:fixed;right:16px;bottom:16px;z-index:9991;width:min(400px,calc(100vw - 32px));height:min(600px,calc(100vh - 32px));background:#fff;border:1px solid #DCE3EC;border-radius:16px;box-shadow:0 16px 48px rgba(15,46,92,.28);display:flex;flex-direction:column;overflow:hidden;font-family:inherit;color:#1E2A3A}
.rba-panel[hidden]{display:none}
.rba-tete{background:#0F2E5C;color:#fff;padding:.9rem 1rem;display:flex;align-items:center;gap:.7rem}
.rba-tete .av{width:36px;height:36px;border-radius:50%;background:#1B5FB4;display:grid;place-items:center;flex:none}
.rba-tete .av svg{width:20px;height:20px}
.rba-tete strong{display:block;font-size:1rem}.rba-tete small{display:block;font-size:.78rem;opacity:.8}
.rba-tete button{margin-left:auto;background:none;border:0;color:#fff;font-size:1.4rem;cursor:pointer;line-height:1}
.rba-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.7rem;background:#F4F6F9}
.rba-msg{max-width:88%;padding:.65rem .85rem;border-radius:14px;font-size:.95rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.rba-msg.bot{background:#fff;border:1px solid #DCE3EC;border-bottom-left-radius:4px;align-self:flex-start}
.rba-msg.moi{background:#1B5FB4;color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.rba-msg.attente{color:#5A6677;font-style:italic}
.rba-liens{display:flex;flex-wrap:wrap;gap:.4rem;align-self:flex-start;max-width:88%}
.rba-liens a{font-size:.85rem;font-weight:600;background:#E8F0FB;color:#1B5FB4;text-decoration:none;padding:.35rem .7rem;border-radius:999px;border:1px solid transparent}
.rba-liens a:hover{border-color:#1B5FB4}
.rba-sugg{display:flex;gap:.4rem;flex-wrap:wrap;padding:.6rem 1rem 0;background:#F4F6F9}
.rba-sugg button{font:inherit;font-size:.82rem;background:#fff;border:1px solid #DCE3EC;border-radius:999px;padding:.35rem .7rem;cursor:pointer;color:#1E2A3A}
.rba-sugg button:hover{border-color:#1B5FB4;color:#1B5FB4}
.rba-form{display:flex;gap:.5rem;padding:.75rem;border-top:1px solid #DCE3EC;background:#fff;margin:0}
.rba-form input{flex:1;font:inherit;padding:.7rem .8rem;border:1px solid #DCE3EC;border-radius:8px;min-width:0}
.rba-form button{flex:none;width:44px;height:44px;border-radius:8px;background:#1B5FB4;border:0;color:#fff;cursor:pointer;display:grid;place-items:center}
.rba-form button svg{width:20px;height:20px}.rba-form button:disabled{opacity:.5}
.rba-mode{font-size:.74rem;color:#5A6677;text-align:center;padding:0 1rem .5rem;background:#fff}
@media (max-width:600px){.rba-btn span{display:none}.rba-btn{padding:.9rem}.rba-panel{right:0;bottom:0;left:0;width:100%;height:88vh;border-radius:16px 16px 0 0}}
/* Neutralise les styles globaux de boutons du thème / d'Elementor dans le widget */
.rba-panel .rba-sugg button{background:#fff!important;color:#1E2A3A!important;border:1px solid #DCE3EC!important;border-radius:999px!important;padding:.35rem .7rem!important;font-size:.82rem!important;font-weight:500!important;line-height:1.3!important}
.rba-panel .rba-sugg button:hover{border-color:#1B5FB4!important;color:#1B5FB4!important}
.rba-panel .rba-tete button{background:none!important;border:0!important;color:#fff!important;padding:0!important;font-size:1.4rem!important}
.rba-panel .rba-form button{background:#1B5FB4!important;border:0!important;border-radius:8px!important;padding:0!important}
.rba-btn{background:#1B5FB4!important;border-radius:999px!important;color:#fff!important}
/* alignement icône / texte : le thème écrase display:inline-flex du bouton */
button.rba-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.55rem!important;padding:0 1.15rem!important;height:52px;line-height:1!important;font-size:1rem!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap}
button.rba-btn svg{display:block!important;flex:none;width:22px;height:22px;margin:0!important}
button.rba-btn span{display:block;line-height:1!important;padding:0!important;margin:0!important}
@media (max-width:600px){button.rba-btn{width:56px;height:56px;padding:0!important;border-radius:50%!important}button.rba-btn span{display:none!important}}
/* les questions suggérées disparaissent dès la première question */
.rba-sugg[hidden]{display:none!important}

/* petit écran : bulle plus discrète, rangée pendant la lecture */
button.rba-btn{transition:transform .25s ease,opacity .25s ease}
@media (max-width:600px){button.rba-btn,.elementor-kit-12 button.rba-btn{width:48px;height:48px;right:12px!important;bottom:12px!important;opacity:.95}
button.rba-btn svg{width:20px;height:20px}
button.rba-btn.rba-cache{transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}}
@media (prefers-reduced-motion:reduce){button.rba-btn{transition:none}}

/* Les pages de la version sans billetterie masquent la bulle ; activer l’extension doit l’afficher. Pour la retirer : désactiver l’extension ou mettre « Activer le widget » à 0. */
html body #rb-assistant-racine{display:block!important}

/* liens dans les réponses (les styles de liens du thème ne doivent pas les effacer) */
html body #rb-assistant-racine .rba-msg a{color:#1B5FB4;text-decoration:underline;font-weight:700}
