/* Alpha Diag Assistant — bulle de chat */
.ada{--alxa-navy:#0B1F33;--alxa-blue:#0063A7;--alxa-sky:#E8F1F8;--alxa-line:#DCE3EA;--alxa-ink:#0B1F33;--alxa-muted:#5B6B7B;--alxa-bg:#F5F7FA;font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--alxa-ink)}
.ada *{box-sizing:border-box}
.ada svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Bouton : au-dessus du bouton WhatsApp du thème */
.alxa-launch{position:fixed;right:22px;bottom:94px;z-index:61;height:58px;min-width:58px;padding:0 22px 0 18px;border-radius:999px;border:0;background:var(--alxa-blue);color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-family:inherit;font-size:15.5px;font-weight:600;line-height:1;box-shadow:0 14px 30px -8px rgba(0,99,167,.6);transition:transform .2s,background .2s}
.alxa-launch:hover{transform:translateY(-2px);background:#0A4D85}
.alxa-launch svg{width:24px;height:24px;flex:0 0 24px}
.alxa-launch .alxa-i-close{display:none}
.alxa-launch::before{content:"";position:absolute;inset:0;border-radius:inherit;animation:alxa-pulse 2.4s ease-out 3}
@keyframes alxa-pulse{0%{box-shadow:0 0 0 0 rgba(0,99,167,.45)}100%{box-shadow:0 0 0 16px rgba(0,99,167,0)}}
.ada[data-open="1"] .alxa-launch{padding:0;width:58px;background:var(--alxa-navy)}
.ada[data-open="1"] .alxa-launch .alxa-i-chat,.ada[data-open="1"] .alxa-launch__lbl{display:none}
.ada[data-open="1"] .alxa-launch .alxa-i-close{display:block}

/* Invitation qui s'ouvre seule */
.alxa-nudge{position:fixed;right:22px;bottom:166px;z-index:62;width:330px;max-width:calc(100vw - 32px);background:#fff;border-radius:16px;padding:16px 16px 14px;box-shadow:0 26px 60px -18px rgba(11,31,51,.45),0 0 0 1px rgba(11,31,51,.06);animation:alxa-in .35s cubic-bezier(.2,.8,.2,1)}
.alxa-nudge[hidden]{display:none}
.alxa-nudge::after{content:"";position:absolute;right:30px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg);box-shadow:3px 3px 6px -3px rgba(11,31,51,.2)}
@keyframes alxa-in{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
.alxa-nudge__x{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;background:none;color:var(--alxa-muted);border-radius:8px;cursor:pointer;display:grid;place-items:center;padding:0}
.alxa-nudge__x:hover{background:var(--alxa-bg);color:var(--alxa-ink)}
.alxa-nudge__x svg{width:16px;height:16px}
.alxa-nudge__h{display:flex;align-items:center;gap:10px;margin-bottom:10px;padding-right:26px}
.alxa-nudge__av{width:38px;height:38px;border-radius:50%;background:var(--alxa-navy);display:grid;place-items:center;flex:0 0 38px}
.alxa-nudge__av svg{width:30px;height:30px;stroke:none}
.alxa-nudge__h strong{display:block;font-size:14.5px;line-height:1.2}
.alxa-nudge__h small{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--alxa-muted)}
.alxa-nudge__h small i{width:8px;height:8px;border-radius:50%;background:#22A06B;display:inline-block}
.alxa-nudge__t{margin:0 0 12px;font-size:15px;line-height:1.45}
.alxa-nudge__chips{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.alxa-nudge__chips button{text-align:left;border:1px solid var(--alxa-line);background:var(--alxa-bg);color:var(--alxa-ink);border-radius:10px;padding:9px 12px;font:inherit;font-size:13.5px;cursor:pointer}
.alxa-nudge__chips button:hover{border-color:var(--alxa-blue);color:var(--alxa-blue);background:var(--alxa-sky)}
.alxa-nudge__f{display:flex;gap:8px;align-items:center}
.alxa-nudge__yes{flex:1;border:0;background:var(--alxa-blue);color:#fff;border-radius:10px;padding:11px 14px;font:inherit;font-weight:600;font-size:14.5px;cursor:pointer}
.alxa-nudge__yes:hover{background:#0A4D85}
.alxa-nudge__no{border:0;background:none;color:var(--alxa-muted);font:inherit;font-size:13.5px;padding:10px 8px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

.alxa-panel{position:fixed;right:22px;bottom:166px;z-index:62;width:390px;max-width:calc(100vw - 32px);height:min(620px,calc(100vh - 300px));min-height:360px;background:#fff;border-radius:18px;box-shadow:0 30px 70px -20px rgba(11,31,51,.45),0 0 0 1px rgba(11,31,51,.06);display:flex;flex-direction:column;overflow:hidden}
.alxa-panel[hidden]{display:none}
.alxa-head{background:var(--alxa-navy);color:#fff;display:flex;align-items:center;gap:10px;padding:12px 10px 12px 14px}
.alxa-head__av{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center;flex:0 0 36px}
.alxa-head__av svg{width:30px;height:30px;stroke-width:initial}
.alxa-head__t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.alxa-head__t strong{font-size:15px;font-weight:600}
.alxa-head__t small{font-size:12px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alxa-head__btn{background:transparent;border:0;color:#fff;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;cursor:pointer;opacity:.85}
.alxa-head__btn:hover{background:rgba(255,255,255,.1);opacity:1}
.alxa-head__btn svg{width:18px;height:18px}

.alxa-log{flex:1;overflow-y:auto;padding:16px 14px 6px;background:var(--alxa-bg);overscroll-behavior:contain}
.alxa-m{display:flex;margin:0 0 12px}
.alxa-m--me{justify-content:flex-end}
.alxa-b{max-width:86%;padding:9px 13px;border-radius:4px 14px 14px 14px;background:#fff;border:1px solid var(--alxa-line);font-size:14.5px;overflow-wrap:anywhere}
.alxa-m--me .alxa-b{background:var(--alxa-blue);border-color:var(--alxa-blue);color:#fff;border-radius:14px 4px 14px 14px}
.alxa-b p{margin:0 0 7px}.alxa-b p:last-child{margin:0}
.alxa-b ul{margin:4px 0 7px;padding-left:18px}.alxa-b li{margin:2px 0}
.alxa-b strong{font-weight:600}
.alxa-b a{color:inherit;text-decoration:underline}
.alxa-typing{display:inline-flex;gap:4px;padding:4px 0}
.alxa-typing i{width:7px;height:7px;border-radius:50%;background:#9AA9B8;animation:alxa-dot 1.2s infinite}
.alxa-typing i:nth-child(2){animation-delay:.15s}.alxa-typing i:nth-child(3){animation-delay:.3s}
@keyframes alxa-dot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}

.alxa-devis{margin-top:9px;border:1px solid #BFD8C9;border-radius:12px;overflow:hidden;background:#F3FAF6}
.alxa-devis__h{background:#1F8A5B;color:#fff;padding:7px 11px;font-size:13px;font-weight:600}
.alxa-devis dl{margin:0;padding:8px 11px;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:13px}
.alxa-devis dt{color:var(--alxa-muted)}.alxa-devis dd{margin:0}
.alxa-devis__f{padding:0 11px 10px}
.alxa-devis__f a{display:inline-block;background:#25D366;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:600;padding:6px 11px;border-radius:8px}

.alxa-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 14px 10px;background:var(--alxa-bg)}
.alxa-chips:empty{display:none}
.alxa-chip{background:#fff;border:1px solid var(--alxa-line);color:var(--alxa-ink);border-radius:99px;padding:6px 11px;font-family:inherit;font-size:13px;font-weight:500;line-height:1.3;cursor:pointer;text-align:left}
.alxa-chip:hover{border-color:var(--alxa-blue);color:var(--alxa-blue)}

.alxa-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--alxa-line);background:#fff}
.alxa-form textarea{flex:1;resize:none;border:1px solid var(--alxa-line);border-radius:12px;padding:9px 12px;font-family:inherit;font-size:15px;line-height:1.4;color:var(--alxa-ink);background:#fff;max-height:110px;min-height:40px;margin:0;box-shadow:none}
.alxa-form textarea:focus{outline:2px solid var(--alxa-blue);outline-offset:-1px;border-color:transparent}
.alxa-send{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:12px;background:var(--alxa-blue);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.alxa-send svg{width:18px;height:18px}
.alxa-send:disabled{opacity:.45;cursor:default}
.alxa-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.alxa-legal{margin:0;padding:0 14px 10px;font-size:12px;line-height:1.4;color:var(--alxa-muted);background:#fff}

@media (max-width:560px){
	.alxa-launch{right:16px;bottom:82px;width:54px;height:54px;min-width:54px;padding:0}
	.alxa-launch__lbl{display:none}
	.alxa-nudge{right:16px;left:16px;bottom:148px;width:auto;max-width:360px;margin-left:auto}
	.alxa-nudge__chips button:nth-child(n+3){display:none}
	.alxa-panel{right:0;left:0;bottom:0;top:0;width:auto;max-width:none;height:auto;border-radius:0}
	.ada[data-open="1"] .alxa-launch{display:none}
	.alxa-form textarea{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.ada *{animation:none!important;transition:none!important}}
