/* Bulle de l assistant — autonome (fonctionne sur le site public comme dans l espace opérateur). */
.support-chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 1050; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d1d1f; }
.support-chat__toggle { border: 0; border-radius: 999px; padding: .6rem 1.1rem; background: #1d1d1f; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.support-chat__toggle:focus-visible, .support-chat__close:focus-visible, .support-chat__form button:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.support-chat__panel { position: absolute; right: 0; bottom: 3.4rem; width: min(360px, 92vw); max-height: 70vh; display: flex; flex-direction: column; background: #fff; border: 1px solid #ddd; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden; }
.support-chat__panel[hidden] { display: none; }
.support-chat__head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid #eee; }
.support-chat__close { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.support-chat__log { flex: 1; overflow-y: auto; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; min-height: 12rem; }
.support-chat__msg { max-width: 85%; padding: .5rem .7rem; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-chat__msg--user { align-self: flex-end; background: #1d1d1f; color: #fff; }
.support-chat__msg--bot { align-self: flex-start; background: #f2f2f4; }
.support-chat__escalate { display: inline-block; margin-top: .3rem; font-weight: 600; color: #1d1d1f; }
.support-chat__form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid #eee; }
.support-chat__form input { flex: 1; min-width: 0; padding: .45rem .6rem; border: 1px solid #ccc; border-radius: 8px; font: inherit; }
.support-chat__form button { border: 0; border-radius: 8px; padding: .45rem .8rem; background: #1d1d1f; color: #fff; cursor: pointer; }
.support-chat__form button:disabled { opacity: .5; cursor: default; }
.support-chat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.support-chat__ticket { font-size: .85rem; opacity: .8; }
.support-chat__contact { display: grid; gap: .4rem; margin-top: .5rem; }
.support-chat__contact input { width: 100%; padding: .4rem .5rem; border: 1px solid #ccc; border-radius: 8px; font: inherit; }
.support-chat__contact button { justify-self: start; border: 0; border-radius: 8px; padding: .4rem .8rem; background: #1d1d1f; color: #fff; cursor: pointer; }
.support-chat__contact button:disabled { opacity: .5; cursor: default; }
.support-chat__consent { font-size: .8rem; margin: 0; opacity: .8; }
.support-chat__toggle { width: 86px; height: 86px; padding: 0; border: 0; border-radius: 50%; background: #1d1d1f; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.support-chat__toggle:hover { transform: translateY(-2px) scale(1.04); }
.support-chat__toggle:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 3px; }
.support-chat__toggle svg { width: 26px; height: 26px; }
.support-chat__toggle[aria-expanded="true"] { background: #3a3a3f; }
.support-chat__who { display: block; font-size: .75rem; font-weight: 600; opacity: .7; margin-bottom: .15rem; }
.support-chat__toggle { background: transparent; }
.support-chat__toggle[aria-expanded="true"] { background: transparent; }
.support-chat__logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.support-chat__msg p { margin: .3rem 0; line-height: 1.45; }
.support-chat__msg p:first-child { margin-top: 0; }
.support-chat__list { margin: .35rem 0; padding: 0; list-style: none; display: grid; gap: .3rem; }
.support-chat__list li { background: #fff; border: 1px solid #e3e3e8; border-radius: 8px; padding: .4rem .6rem; line-height: 1.3; }
.support-chat__msg a { color: #1d1d1f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.support-chat__msg a:hover { color: #000; }
.support-chat__kw { font-size: .9rem; color: #444; }
.support-chat__kw strong { color: #1d1d1f; }
/* Texte toujours sombre sur les bulles claires, même dans un site à thème sombre. */
.support-chat__panel, .support-chat__log, .support-chat__msg, .support-chat__msg p, .support-chat__msg li { color: #1d1d1f; }
.support-chat__msg--user { color: #fff; }
.support-chat__msg--user * { color: #fff; }
.support-chat__kw { color: #3a3a3f; }
.support-chat__msg a { color: #1d1d1f; }
.support-chat__consent, .support-chat__ticket { color: #3a3a3f; }
