﻿/* HYSKION CONNECT — assistant d’aide local */
.hyassist-launch{position:fixed;right:22px;bottom:22px;z-index:180;display:flex;align-items:center;gap:10px;border:1px solid #d6e9eb;border-radius:999px;padding:6px 16px 6px 6px;background:#fff;color:#12334d;box-shadow:0 7px 28px #082f4930;font:700 13px/1.2 system-ui,sans-serif;cursor:pointer}
.hyassist-icon{width:42px;height:42px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#0b355b,#009ca3);color:white}
.hyassist-icon svg{width:27px;height:27px}
.hyassist-launch:hover{box-shadow:0 9px 32px #082f4940}
.hyassist-launch:focus-visible,.hyassist-dialog button:focus-visible{outline:3px solid #179aa6;outline-offset:3px}
.hyassist-dialog{position:fixed;inset:auto 22px 88px auto;margin:0;width:390px;max-width:calc(100vw - 32px);height:550px;max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);padding:0;border:1px solid #d5e4eb;border-radius:22px;background:#f7fafc;color:#18334c;box-shadow:0 20px 70px #082b4b40;overflow:hidden;font:14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif}
.hyassist-dialog:not([open]){display:none}
.hyassist-dialog[open]{display:flex;flex-direction:column}
.hyassist-dialog::backdrop{background:#09223718}
.hyassist-head{display:flex;align-items:center;gap:11px;padding:17px 16px;background:white;border-bottom:1px solid #e2ebef;flex:none}
.hyassist-heading{flex:1;min-width:0}
.hyassist-heading h2{font:750 16px/1.25 Inter,ui-sans-serif,system-ui,sans-serif;margin:0;color:#12354e}
.hyassist-heading p{font-size:11px;color:#587280;margin:4px 0 0}
.hyassist-dialog button{font-family:inherit;cursor:pointer;touch-action:manipulation}
.hyassist-icon-button{display:grid;place-items:center;width:34px;height:36px;padding:6px;border:0;border-radius:9px;background:#f0f5f8;color:#36586d;flex:none}
.hyassist-icon-button svg{width:18px;height:18px}
.hyassist-log{padding:18px 15px 12px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto}
.hyassist-message{width:100%;margin:0 0 14px}
.hyassist-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.hyassist-label{display:block;margin:0 0 5px 3px;font-size:10px;font-weight:750;color:#617b89;letter-spacing:.025em}
.hyassist-bubble{padding:12px 14px;background:white;border:1px solid #e0e9ef;border-radius:4px 15px 15px 15px;font-size:13px;line-height:1.6}
.hyassist-message-user{padding-left:30px}
.hyassist-message-user .hyassist-label{text-align:right;margin-right:3px}
.hyassist-message-user .hyassist-bubble{background:#e5f4f3;border-color:#cde7e5;border-radius:15px 4px 15px 15px;color:#134c56}
.hyassist-choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.hyassist-choices button{border:1px solid #cfe3e8;border-radius:999px;background:#fff;color:#176273;padding:7px 10px;font-size:11px;font-weight:650;line-height:1.35;min-height:34px;text-align:left}
.hyassist-choices button:hover{background:#edf8f7;border-color:#76b9bd}
.hyassist-route{display:inline-flex;align-items:center;gap:6px;margin-top:11px;border:0;border-radius:9px;background:#e9f3f8;color:#174f70;padding:8px 11px;font-size:11px;font-weight:750;min-height:36px}
.hyassist-bottom{padding:10px 14px 12px;background:white;border-top:1px solid #dfe9ee;flex:none}
.hyassist-form{display:flex;align-items:center;gap:8px}
.hyassist-form input{width:100%;min-width:0;flex:1;border:1px solid #cfdee6;border-radius:12px;padding:12px;color:#18334c;background:#f9fbfc;font:inherit;font-size:16px;line-height:20px;outline:none}
.hyassist-form input:focus{border-color:#138d9b;box-shadow:0 0 0 2px #138d9b1c}
.hyassist-send{width:44px;height:44px;display:grid;place-items:center;flex:none;border:0;border-radius:12px;background:#087d8c;color:white}
.hyassist-send svg{width:20px;height:20px}
.hyassist-send:disabled{opacity:.4;cursor:default}
.hyassist-note{font-size:10px;line-height:1.45;color:#687e8d;margin:8px 0 0}
.hyassist-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:840px){.hyassist-launch{bottom:calc(86px + env(safe-area-inset-bottom));right:14px;padding-right:13px}.hyassist-dialog{bottom:calc(148px + env(safe-area-inset-bottom));max-height:calc(100dvh - 166px)}}
@media(max-width:520px){.hyassist-dialog{inset:12px 12px auto auto;width:calc(100vw - 24px);max-width:none;height:min(640px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);border-radius:19px}.hyassist-head{padding:13px 12px;gap:8px}.hyassist-heading h2{font-size:15px}.hyassist-heading p{font-size:10px}.hyassist-log{padding:14px 12px 6px}.hyassist-launch{width:54px;height:54px;padding:6px;gap:0;justify-content:center}.hyassist-launch-text{display:none}.hyassist-icon{width:42px;height:42px}.hyassist-icon-button{width:32px}}
@media(prefers-reduced-motion:reduce){.hyassist-dialog,.hyassist-launch{scroll-behavior:auto;transition:none}}
