/* Assistant du site – bulle et fenêtre de discussion (thèmes CHEL 2026 et 2027, clair et sombre) */
.chel-asst { --a-navy: #1f3742; --a-teal: #169693; --a-teal-2: #0f7c79; --a-teal-50: #eaf6f5; --a-green: #a9cb50; --a-bg: #fff; --a-soft: #f5f8f9; --a-line: #dfe7ea; --a-text: #24343b; --a-muted: #5d6f77;
  position: fixed; right: 18px; bottom: 76px; z-index: 97; font-family: Raleway, "Segoe UI", Arial, sans-serif; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
html[data-theme="dark"] .chel-asst { --a-navy: #163843; --a-bg: #172a32; --a-soft: #15252c; --a-line: #2b4049; --a-text: #d9e4e8; --a-muted: #a3b6bd; --a-teal-50: #123332; }
.chel-asst svg { width: 20px; height: 20px; flex: none; }
.chel-asst-bubble { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--a-teal); color: #fff; font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; box-shadow: 0 8px 24px rgba(31, 55, 66, .28); transition: transform .15s, background .15s; }
.chel-asst-bubble:hover { background: var(--a-teal-2); transform: translateY(-2px); }
.chel-asst-bubble:focus-visible, .chel-asst button:focus-visible, .chel-asst a:focus-visible, .chel-asst input:focus-visible { outline: 3px solid var(--a-green); outline-offset: 2px; }
.chel-asst-bubble svg { width: 24px; height: 24px; }
.chel-asst.is-open .chel-asst-bubble-txt { display: none; }
.chel-asst.is-open .chel-asst-bubble { padding: 0 14px; }

.chel-asst-panel { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 170px)); display: flex; flex-direction: column; background: var(--a-bg); color: var(--a-text); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); overflow: hidden; border: 1px solid var(--a-line); }
.chel-asst-panel[hidden] { display: none; }
.chel-asst-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--a-navy); color: #fff; }
.chel-asst-head-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chel-asst-head-txt strong { font-size: 1rem; }
.chel-asst-head-txt span { font-size: .78rem; color: #b9cdd3; }
.chel-asst-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chel-asst-close:hover { background: rgba(255, 255, 255, .22); }

.chel-asst-log { position: relative; flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--a-soft); }
.chel-asst-msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.chel-asst-msg p { margin: 0; }
.chel-asst-msg.me { align-self: flex-end; background: var(--a-teal); color: #fff; border-bottom-right-radius: 4px; }
.chel-asst-msg.bot { align-self: flex-start; background: var(--a-bg); border: 1px solid var(--a-line); border-bottom-left-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
.chel-asst-msg.is-wait { color: var(--a-muted); letter-spacing: .2em; }
.chel-asst-msg.is-urgent { background: #fdecef; border-color: #f2b8c2; color: #5a0d1a; }
html[data-theme="dark"] .chel-asst-msg.is-urgent { background: #3a1820; border-color: #7a3040; color: #ffd9df; }
.chel-asst-title { font-weight: 800; color: var(--a-teal-2); }
html[data-theme="dark"] .chel-asst-title { color: #5ccac5; }
.chel-asst-crumb { font-size: .78rem; color: var(--a-muted); margin-top: -4px !important; }
.chel-asst-text { white-space: pre-line; }
.chel-asst-phones { display: flex; flex-wrap: wrap; gap: 6px; }
.chel-asst-phone { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--a-green); color: #1f3742 !important; font-weight: 800; text-decoration: none !important; font-size: .88rem; }
.chel-asst-phone svg { width: 16px; height: 16px; }
.chel-asst-link { align-self: flex-start; font-weight: 800; color: var(--a-teal-2) !important; text-decoration: none !important; }
.chel-asst-link::after { content: " →"; }
html[data-theme="dark"] .chel-asst-link, html[data-theme="dark"] .chel-asst-more a { color: #5ccac5 !important; }
.chel-asst-more { border-top: 1px solid var(--a-line); padding-top: 6px; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.chel-asst-more p { color: var(--a-muted); }
.chel-asst-more a { color: var(--a-teal-2) !important; }

.chel-asst-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--a-bg); border-top: 1px solid var(--a-line); scrollbar-width: thin; }
.chel-asst-chip { flex: none; border: 1px solid var(--a-line); background: var(--a-soft); color: var(--a-text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.chel-asst-chip:hover { border-color: var(--a-teal); color: var(--a-teal-2); }
.chel-asst-form { display: flex; gap: 8px; padding: 10px 12px 6px; background: var(--a-bg); }
.chel-asst-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--a-line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: .95rem; background: var(--a-soft); color: var(--a-text); }
.chel-asst-form input:focus { outline: none; border-color: var(--a-teal); }
.chel-asst-send { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--a-teal); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chel-asst-send:hover { background: var(--a-teal-2); }
.chel-asst-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chel-asst-note { margin: 0; padding: 0 14px 10px; background: var(--a-bg); font-size: .72rem; color: var(--a-muted); }

@media (max-width: 1000px) {
  .chel-asst { right: 12px; bottom: 84px; }
  .chel-asst-bubble-txt { display: none; }
  .chel-asst-bubble { width: 54px; height: 54px; padding: 0; justify-content: center; }
}
@media print { .chel-asst { display: none; } }
@media (prefers-reduced-motion: reduce) { .chel-asst-bubble { transition: none; } }
.chel-asst-alert { padding: 6px 10px; border-radius: 10px; background: #fdecef; color: #7a0f22; font-weight: 700; font-size: .85rem; }
html[data-theme="dark"] .chel-asst-alert { background: #3a1820; color: #ffd9df; }
.chel-asst-phones { flex-direction: column; align-items: flex-start; gap: 8px; }
.chel-asst-phone-row { display: flex; flex-direction: column; gap: 3px; }
.chel-asst-phone-label { font-size: .78rem; font-weight: 700; color: var(--a-muted); }
