/* Charte Attitude Digitale : rose #ff9da2, terracotta #cb8588, vert sauge #a0b5b0, gris foncé, angles carrés */
.ada{--ada-main:#ff9da2;--ada-accent:#cb8588;--ada-sage:#a0b5b0;--ada-dark:#3c3c3b;--ada-bg:#ffffff;--ada-soft:#fff3f3;--ada-line:#ecdcdc;--ada-text:#3c3c3b;font-family:inherit;color:var(--ada-text);line-height:1.5;box-sizing:border-box}
.ada *,.ada *::before,.ada *::after{box-sizing:border-box;border-radius:0}

.ada-panel{display:flex;flex-direction:column;background:var(--ada-bg);overflow:hidden;border:1px solid var(--ada-line);box-shadow:0 12px 40px rgba(60,60,59,.16)}
.ada--inline .ada-panel{height:600px;max-height:80vh;max-width:720px;margin:0 auto}

.ada-head{display:flex;align-items:center;gap:12px;padding:14px 18px;background:var(--ada-main);color:#fff}
.ada-who{display:flex;flex-direction:column;line-height:1.25;flex:1}
.ada-who strong{font-size:16px;letter-spacing:.02em}
.ada-status{font-size:13px;display:flex;align-items:center;gap:6px}
.ada-status::before{content:"";width:8px;height:8px;background:#fff;border:2px solid var(--ada-sage)}
.ada-avatar{width:40px;height:40px;background:var(--ada-main);color:#fff;display:grid;place-items:center;font-weight:700;border:2px solid #fff;flex:none}
.ada-avatar--lg{width:80px;height:80px;font-size:30px;border:none;outline:2px solid var(--ada-main);outline-offset:5px;margin:0 auto 22px}
.ada-avatar.has-logo{background:none;border:0;outline:0;padding:0}
.ada-avatar.has-logo img{width:100%;height:100%;display:block;border-radius:50%}
.ada-head .ada-avatar.has-logo{width:44px;height:44px;box-shadow:0 0 0 2px #fff;border-radius:50%}
.ada-avatar--lg.has-logo{width:96px;height:96px}
.ada-intro.is-compact .ada-avatar--lg.has-logo{width:52px;height:52px}
.ada-head-btn{background:none;border:0;color:#fff;cursor:pointer;width:38px;height:38px;display:grid;place-items:center;padding:0;flex:none;transition:background .15s}
.ada-head-btn:hover,.ada-head-btn:focus-visible{background:rgba(255,255,255,.22);outline:none}
.ada-close{background:none;border:0;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}

.ada-body{flex:1;overflow-y:auto;padding:24px 20px 12px;display:flex;flex-direction:column}
.ada-intro{margin:auto 0;text-align:center}
.ada-welcome{font-size:22px;font-weight:600;margin:0 0 22px;line-height:1.3;color:var(--ada-dark)}
.ada-chips{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ada-chip{text-align:left;background:var(--ada-soft);border:1px solid var(--ada-main);padding:12px 16px;font:inherit;font-size:14px;font-weight:500;color:var(--ada-dark);cursor:pointer;transition:background .15s,color .15s}
.ada-chip:hover,.ada-chip:focus-visible{background:var(--ada-main);color:#fff;outline:none}
.ada-intro.is-compact{margin:0 0 16px}
.ada-intro.is-compact .ada-avatar--lg{width:48px;height:48px;font-size:18px;outline-offset:3px;margin-bottom:12px}
.ada-intro.is-compact .ada-welcome{font-size:15px;margin-bottom:12px}
.ada-intro.is-compact .ada-chip{padding:8px 12px;font-size:13px}

.ada-thread{display:flex;flex-direction:column;gap:10px}
.ada-msg{max-width:85%;padding:10px 14px;font-size:15px;word-wrap:break-word}
.ada-msg p{margin:0 0 .5em}.ada-msg p:last-child{margin:0}
.ada-msg ul{margin:.3em 0 .5em;padding-left:1.2em}
.ada-msg li::marker{color:var(--ada-accent)}
.ada-msg a{color:var(--ada-accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.ada-msg--user{align-self:flex-end;background:var(--ada-sage);color:#fff;font-weight:500}
.ada-msg--assistant{align-self:flex-start;background:var(--ada-soft);border-left:3px solid var(--ada-main)}
.ada-msg--error{align-self:flex-start;background:#fff;border:1px solid var(--ada-accent);font-size:14px}
.ada-typing{display:flex;gap:5px;padding:14px}
.ada-typing span{width:7px;height:7px;background:var(--ada-main);opacity:.3;animation:ada-dot 1.2s infinite}
.ada-typing span:nth-child(2){animation-delay:.2s}.ada-typing span:nth-child(3){animation-delay:.4s}
@keyframes ada-dot{0%,60%,100%{opacity:.3}30%{opacity:1}}

.ada-form{display:flex;align-items:flex-end;gap:8px;margin:8px 14px 6px;padding:6px 6px 6px 16px;background:#fff;border:1px solid var(--ada-line)}
.ada-form:focus-within{border-color:var(--ada-main)}
.ada-input{flex:1;border:0;background:none;resize:none;font:inherit;font-size:15px;color:var(--ada-text);padding:10px 0;outline:none;max-height:120px}
.ada-input::placeholder{color:#9a9a99}
.ada-send{width:42px;height:42px;border:0;background:var(--ada-main);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none;transition:background .15s}
.ada-send:hover{background:var(--ada-accent)}
.ada-send:disabled{opacity:.5;cursor:wait}
.ada-foot{text-align:center;font-size:11.5px;padding:2px 0 10px;color:#7a7a79}
.ada-foot a{color:var(--ada-accent)}

/* Note de satisfaction */
.ada-rate{display:flex;align-items:center;gap:4px;margin-top:8px;font-size:12px;color:#8a8a89}
.ada-rate span{margin-right:2px}
.ada-rate-btn{background:none;border:1px solid transparent;color:#8a8a89;width:28px;height:28px;display:grid;place-items:center;cursor:pointer;padding:0}
.ada-rate-btn:hover{color:var(--ada-accent);border-color:var(--ada-line)}
.ada-rate-btn[aria-pressed="true"]{color:#fff;background:var(--ada-accent);border-color:var(--ada-accent)}

/* Bouton rendez-vous */
.ada-msg .ada-cta{display:inline-block;margin-top:10px;padding:9px 16px;background:var(--ada-main);color:#fff;font-weight:600;font-size:14px;text-decoration:none;transition:background .15s}
.ada-msg .ada-cta:hover{background:var(--ada-accent);color:#fff}

/* Formulaire de contact */
.ada-lead{align-self:stretch;background:#fff;border:1px solid var(--ada-main);padding:14px;display:grid;gap:8px}
.ada-lead-title{margin:0 0 2px;font-weight:600;color:var(--ada-dark)}
.ada-field{display:grid;gap:3px;font-size:13px}
.ada-field input,.ada-field textarea{font:inherit;font-size:14px;padding:8px 10px;border:1px solid var(--ada-line);background:#fff;color:var(--ada-text);width:100%}
.ada-field input:focus,.ada-field textarea:focus{outline:none;border-color:var(--ada-main)}
.ada-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.ada-consent{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.4;color:#5f5f5e}
.ada-consent input{margin-top:2px;accent-color:var(--ada-accent)}
.ada-consent a{color:var(--ada-accent)}
.ada-lead-msg{margin:0;font-size:13px;color:var(--ada-accent);min-height:0}
.ada-lead-msg:empty{display:none}
.ada-lead-send{justify-self:start;border:0;background:var(--ada-main);color:#fff;font:inherit;font-weight:600;font-size:14px;padding:10px 18px;cursor:pointer}
.ada-lead-send:hover{background:var(--ada-accent)}
.ada-lead-send:disabled{opacity:.6;cursor:wait}

.ada--floating{position:fixed;right:20px;bottom:20px;z-index:99999}
.ada-launcher{position:relative;width:60px;height:60px;border:0;background:var(--ada-main);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 24px rgba(60,60,59,.25);transition:background .15s}
.ada-launcher:hover{background:var(--ada-accent)}
.ada-launcher::after{content:"";position:absolute;top:-4px;right:-4px;width:14px;height:14px;background:var(--ada-sage);border:2px solid #fff}
.ada--floating .ada-panel{position:absolute;right:0;bottom:76px;width:440px;max-width:calc(100vw - 40px);height:640px;max-height:calc(100vh - 110px);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .2s,transform .2s}
.ada--floating.is-open .ada-panel{opacity:1;transform:none;pointer-events:auto}
.ada--floating .ada-welcome{font-size:18px}

@media (max-width:520px){
  .ada-chips{grid-template-columns:1fr}
  .ada--floating{right:12px;bottom:12px}
  .ada--floating .ada-panel{position:fixed;inset:0;width:auto;height:auto;max-height:none}
  .ada--floating.is-open .ada-launcher{display:none}
}
@media (prefers-reduced-motion:reduce){.ada *{transition:none!important;animation:none!important}}
