/* Assistant IA « Trouver mon spa » (lot 75) — feuille autonome : horizon.css est précompilé, on n'y touche pas. */
.hz-chat{--hzc-bleu:var(--horizon-bleu,#12314A);--hzc-sauge:var(--horizon-sauge,#3F5C4C);--hzc-laiton:var(--horizon-laiton,#A8875E);--hzc-verre:var(--horizon-gris-verre,#F1F2F0);--hzc-ligne:var(--horizon-gris-verre-ligne,#E4E5E2);--hzc-texte:var(--horizon-anthracite,#1C201E);--hzc-doux:var(--horizon-anthracite-soft,#4B5049);font-family:var(--horizon-font-sans,'Manrope','Helvetica Neue',Arial,sans-serif);color:var(--hzc-texte);position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:9000;-webkit-font-smoothing:antialiased}
.hz-chat *,.hz-chat *::before,.hz-chat *::after{box-sizing:border-box}
.hz-chat :focus-visible{outline:2px solid var(--hzc-laiton);outline-offset:3px}

.hz-chat__fab{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--hzc-bleu);color:#fff;font:700 14px/1 var(--horizon-font-sans,Manrope,Arial,sans-serif);letter-spacing:.01em;cursor:pointer;box-shadow:0 10px 30px rgba(12,35,51,.28);transition:transform .2s ease,box-shadow .2s ease}
.hz-chat__fab:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(12,35,51,.34)}
.hz-chat__fab svg{flex:none}
.hz-cmpbar-open .hz-chat,body:has(.hz-cmpbar.is-visible) .hz-chat{bottom:max(100px,calc(env(safe-area-inset-bottom) + 92px))}

.hz-chat__panel{position:absolute;right:0;bottom:68px;display:flex;flex-direction:column;width:min(392px,calc(100vw - 32px));height:min(620px,calc(100dvh - 120px));background:#fff;border:1px solid var(--hzc-ligne);border-radius:20px;box-shadow:0 24px 60px rgba(12,35,51,.28);overflow:hidden;animation:hzc-in .22s ease-out}
.hz-chat__panel[hidden]{display:none}
@keyframes hzc-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}

.hz-chat__head{display:flex;align-items:center;gap:6px;padding:14px 12px 14px 18px;background:var(--hzc-bleu);color:#fff}
.hz-chat__titles{flex:1;min-width:0}
.hz-chat__title{margin:0;font-size:16px;font-weight:700;line-height:1.2}
.hz-chat__sub{margin:2px 0 0;font-size:12px;opacity:.8}
.hz-chat__icon{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#fff;font:400 22px/1 var(--horizon-font-sans,Manrope,Arial,sans-serif);cursor:pointer}
.hz-chat__icon:hover{background:rgba(255,255,255,.14)}

.hz-chat__log{flex:1;overflow-y:auto;padding:16px 14px;background:var(--hzc-verre);display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth;overscroll-behavior:contain}
.hz-chat__msg{display:flex;flex-direction:column;gap:8px;max-width:92%}
.hz-chat__msg--user{align-self:flex-end;align-items:flex-end}
.hz-chat__msg--assistant{align-self:flex-start}
.hz-chat__bubble{padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere}
.hz-chat__msg--assistant .hz-chat__bubble{background:#fff;border:1px solid var(--hzc-ligne);border-bottom-left-radius:5px}
.hz-chat__msg--user .hz-chat__bubble{background:var(--hzc-sauge);color:#fff;border-bottom-right-radius:5px}
.hz-chat__p{margin:0}
.hz-chat__p+.hz-chat__p,.hz-chat__p+.hz-chat__list,.hz-chat__list+.hz-chat__p{margin-top:8px}
.hz-chat__list{margin:6px 0 0;padding-left:18px}
.hz-chat__list li+li{margin-top:3px}

.hz-chat__typing .hz-chat__bubble{display:flex;gap:5px;align-items:center;padding:14px 16px}
.hz-chat__dot{width:7px;height:7px;border-radius:50%;background:var(--hzc-doux);opacity:.35;animation:hzc-dot 1.1s infinite ease-in-out}
.hz-chat__dot:nth-child(2){animation-delay:.15s}
.hz-chat__dot:nth-child(3){animation-delay:.3s}
@keyframes hzc-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.hz-chat__cards{display:flex;flex-direction:column;gap:10px}
.hz-chat__card{display:flex;gap:12px;padding:10px;background:#fff;border:1px solid var(--hzc-ligne);border-radius:14px}
.hz-chat__card-img{flex:none;width:84px;height:84px;object-fit:contain;background:var(--hzc-verre);border-radius:10px}
.hz-chat__card-body{flex:1;min-width:0}
.hz-chat__card-title{margin:0;font-size:15px;font-weight:700;line-height:1.25;text-transform:none}
.hz-chat__card-meta{margin:3px 0 0;font-size:12.5px;color:var(--hzc-doux)}
.hz-chat__card-price{margin:3px 0 0;font-size:13px;font-weight:700;color:var(--hzc-bleu)}
.hz-chat__card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.hz-chat__btn{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid var(--hzc-bleu);border-radius:999px;color:var(--hzc-bleu);font-size:12.5px;font-weight:700;text-decoration:none;background:#fff}
.hz-chat__btn:hover{background:var(--hzc-verre)}
.hz-chat__btn--primary{background:var(--hzc-bleu);color:#fff}
.hz-chat__btn--primary:hover{background:var(--horizon-bleu-deep,#0C2333)}

.hz-chat__chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;background:var(--hzc-verre)}
.hz-chat__chips[hidden]{display:none}
.hz-chat__chip{padding:8px 12px;border:1px solid var(--hzc-ligne);border-radius:999px;background:#fff;color:var(--hzc-texte);font:600 12.5px/1.25 var(--horizon-font-sans,Manrope,Arial,sans-serif);text-align:left;cursor:pointer}
.hz-chat__chip:hover{border-color:var(--hzc-bleu)}

.hz-chat__form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--hzc-ligne);background:#fff}
.hz-chat__trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.hz-chat__input{flex:1;min-height:44px;max-height:110px;padding:11px 14px;border:1px solid var(--hzc-ligne);border-radius:14px;font:400 16px/1.35 var(--horizon-font-sans,Manrope,Arial,sans-serif);color:var(--hzc-texte);resize:none;background:#fff}
.hz-chat__input:focus{border-color:var(--hzc-bleu);outline:0}
.hz-chat__send{min-height:44px;padding:0 16px;border:0;border-radius:14px;background:var(--hzc-bleu);color:#fff;font:700 14px/1 var(--horizon-font-sans,Manrope,Arial,sans-serif);cursor:pointer}
.hz-chat__send:disabled,.hz-chat__input:disabled{opacity:.55;cursor:not-allowed}
.hz-chat__notice{margin:0;padding:0 14px 10px;background:#fff;font-size:11px;line-height:1.35;color:var(--hzc-doux)}

@media (max-width:600px){
    .hz-chat__fab-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
    .hz-chat__fab{width:56px;height:56px;padding:0;justify-content:center}
    html.hz-chat-open .hz-chat{inset:0;right:0;bottom:0}
    html.hz-chat-open .hz-chat__fab{display:none}
    html.hz-chat-open .hz-chat__panel{position:fixed;inset:0;width:100%;height:100dvh;max-height:none;border:0;border-radius:0;animation:none}
    .hz-chat__head{padding-top:max(14px,env(safe-area-inset-top))}
    .hz-chat__notice{padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.hz-chat *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Avatar illustré de Marine (assistante virtuelle) */
.hz-chat__avatar{display:inline-block;flex:none;border-radius:50%;overflow:hidden;background:#D7E5EB;line-height:0}
.hz-chat__avatar--fab{width:32px;height:32px;box-shadow:0 0 0 2px rgba(255,255,255,.9)}
.hz-chat__avatar--head{width:44px;height:44px;margin-right:2px;box-shadow:0 0 0 2px rgba(255,255,255,.85)}
.hz-chat__avatar--sm{width:30px;height:30px;margin-bottom:2px}
.hz-chat__row{display:flex;align-items:flex-end;gap:8px}
.hz-chat__msg--assistant .hz-chat__cards,.hz-chat__msg--assistant>.hz-chat__card-actions{margin-left:38px}
.hz-chat__fab{padding-left:10px}
@media (max-width:600px){.hz-chat__fab{padding:0}.hz-chat__avatar--fab{width:48px;height:48px}}
.hz-chat__avatar img{display:block;width:100%;height:100%;object-fit:cover}
.hz-chat__card-contact{margin:4px 0 0;font-size:13px;font-weight:700;color:var(--hzc-sauge)}
