/* Assistant Evenement & Objet : bulle de discussion (maquette validée le 10/11/2026) */
.eochat{--eo-gold:#8a6e34;--eo-gold-text:#7a6130;--eo-ink:#232323;--eo-muted:#6b655a;--eo-line:#e2dccf;--eo-bot:#f3efe6;--eo-soft:#faf8f3;
  position:fixed;right:max(20px,env(safe-area-inset-right,0px));bottom:max(20px,env(safe-area-inset-bottom,0px));z-index:1040;
  font-family:Poppins,"Segoe UI",system-ui,sans-serif;font-size:14px;line-height:1.5;color:var(--eo-ink);display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.eochat *{box-sizing:border-box}
.eochat button{font:inherit}
.eochat button:focus-visible,.eochat input:focus-visible,.eochat a:focus-visible{outline:2px solid var(--eo-ink);outline-offset:2px}
.eochat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Pastille logo */
.eochat-logo{width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden;flex:none}
.eochat-logo img{width:30px;height:30px;display:block}
.eochat-logo-sm{width:38px;height:38px;border:1px solid var(--eo-line)}
.eochat-logo-sm img{width:24px;height:24px}
.eochat-dot{width:8px;height:8px;border-radius:50%;background:#7ee2a8;display:inline-block;flex:none}

/* Bulle fermée */
.eochat-launcher{display:flex;align-items:center;gap:10px;height:52px;border:0;border-radius:999px;background:var(--eo-gold);color:#fff;
  padding:0 20px 0 16px;cursor:pointer;font-size:14px;font-weight:500;box-shadow:0 10px 24px -8px rgba(60,45,10,.55)}
.eochat-launcher:hover{background:#7a6130}
.eochat[data-state="open"] .eochat-launcher,.eochat[data-state="open"] .eochat-teaser{display:none}

/* Message d'accueil (conseiller en ligne) */
.eochat-teaser{width:280px;background:#fff;border:1px solid var(--eo-line);border-radius:14px;padding:12px 8px 12px 14px;
  box-shadow:0 12px 28px -12px rgba(60,45,10,.4);display:flex;gap:10px;align-items:flex-start;animation:eochat-in .3s ease-out}
.eochat-teaser[hidden]{display:none}
.eochat-teaser-body{border:0;background:transparent;text-align:left;padding:0;cursor:pointer;display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;color:var(--eo-ink)}
.eochat-teaser-body strong{font-size:12px;display:flex;align-items:center;gap:6px}
.eochat-teaser-body strong .eochat-dot{background:#2f8a57;width:7px;height:7px}
.eochat-teaser-body span{font-size:13px;line-height:1.45}
.eochat-teaser-close{width:32px;height:32px;border:0;background:transparent;color:var(--eo-muted);display:grid;place-items:center;cursor:pointer;margin-top:-6px;flex:none}
@keyframes eochat-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Bulle ouverte */
.eochat-panel{width:392px;height:min(640px,calc(100vh - 40px));background:#fff;border:1px solid var(--eo-line);border-radius:18px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:0 24px 48px -20px rgba(60,45,10,.45)}
.eochat-panel[hidden]{display:none}
.eochat-head{background:var(--eo-gold);color:#fff;padding:14px 10px 14px 16px;display:flex;align-items:center;gap:12px}
.eochat-title{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;line-height:1.25}
.eochat-title strong{font-size:15px;font-weight:600}
.eochat-title small{font-size:12px;display:flex;align-items:center;gap:6px}
.eochat-close{width:44px;height:44px;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;border-radius:10px}
.eochat-close:hover{background:rgba(255,255,255,.12)}

.eochat-msgs{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:10px;background:#fff}
.eochat-msg{max-width:85%;padding:10px 14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.eochat-msg.bot{background:var(--eo-bot);align-self:flex-start;border-radius:16px 16px 16px 4px}
.eochat-msg.me{background:var(--eo-gold);color:#fff;align-self:flex-end;border-radius:16px 16px 4px 16px;max-width:80%}
.eochat-msg.staff{background:#fff;border:1px solid #b89c5c;align-self:flex-start;border-radius:16px 16px 16px 4px;display:flex;flex-direction:column;gap:2px}
.eochat-msg.rich{white-space:normal}
#eochat .eochat-msg.rich p{margin:0 0 8px;color:inherit;font-size:inherit;line-height:inherit}
#eochat .eochat-msg.rich ul{margin:0 0 8px;padding-left:18px;list-style:disc outside}
#eochat .eochat-msg.rich li{display:list-item;list-style:inherit;margin:0 0 4px;color:inherit;font-size:inherit;line-height:inherit}
.eochat-msg.rich li::marker{color:var(--eo-gold)}
.eochat-msg.rich>:last-child{margin-bottom:0}
.eochat-msg.rich strong{font-weight:600}
.eochat-msg.rich a{color:var(--eo-gold-text);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.eochat-msg.typing{color:var(--eo-muted);font-style:italic}
.eochat-from{font-size:11px;font-weight:600;color:var(--eo-gold-text);letter-spacing:.02em}
.eochat-note{font-size:12px;color:var(--eo-muted);align-self:flex-start}

/* Fiches produits */
.eochat-cards{display:flex;flex-direction:column;gap:8px;width:300px;max-width:100%;align-self:flex-start}
.eochat-card{display:flex;flex-direction:column;gap:8px;border:1px solid var(--eo-line);border-radius:12px;padding:8px;background:#fff}
.eochat-card:hover{border-color:#b89c5c}
.eochat-card-main{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--eo-ink)}
.eochat-card-main:hover{text-decoration:none;color:var(--eo-ink)}
.eochat-card-add{height:38px;border:1px solid var(--eo-gold);border-radius:10px;background:#fff;color:var(--eo-gold-text);font-size:13px;font-weight:600;cursor:pointer}
.eochat-card-add:hover{background:var(--eo-gold);color:#fff}
.eochat-card-add:disabled{opacity:.6;cursor:default}
.eochat-card-added{display:block;text-align:center;font-size:13px;font-weight:600;color:#2f7a4f;padding:8px 0;text-decoration:none}
.eochat-card-added:hover{text-decoration:underline;color:#2f7a4f}
.eochat-resume{align-self:center;margin:4px 0}
.eochat-privacy{margin:0;font-size:11px;color:var(--eo-muted);text-align:center;padding:0 12px 10px;background:var(--eo-soft);line-height:1.4}
.eochat-privacy a{color:var(--eo-gold-text);text-decoration:underline}
.eochat-card-img{width:64px;height:64px;border-radius:8px;background:#efe9dd;object-fit:cover;flex:none}
.eochat-card-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.eochat-card-name{font-size:13px;font-weight:600;line-height:1.3}
.eochat-card-price{font-size:12px;color:#5d574c}
.eochat-card-link{font-size:12px;font-weight:500;color:var(--eo-gold-text)}

/* Contact */
.eochat-contact{display:flex;gap:6px;align-self:stretch}
.eochat-contact input{flex:1;min-width:0;height:40px;border:1px solid var(--eo-line);border-radius:10px;padding:0 10px;font:inherit;font-size:13px;background:#fff}
.eochat-contact button{height:40px;border:0;border-radius:10px;background:var(--eo-gold);color:#fff;padding:0 12px;font-size:13px;font-weight:500;cursor:pointer}

/* Saisie */
.eochat-form{display:flex;gap:8px;padding:12px 12px 6px;border-top:1px solid #ece6da;background:var(--eo-soft);align-items:center}
.eochat-form input{flex:1;min-width:0;height:44px;border:1px solid var(--eo-line);border-radius:12px;padding:0 14px;font:inherit;font-size:14px;background:#fff;color:var(--eo-ink)}
.eochat-form button{width:44px;height:44px;border:0;border-radius:12px;background:var(--eo-gold);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}
.eochat-form button:disabled{opacity:.5;cursor:default}
.eochat-foot{margin:0;font-size:11px;color:var(--eo-muted);text-align:center;padding:2px 12px 4px;background:var(--eo-soft)}

/* Téléphone : plein écran, pilule réduite */
@media (max-width:480px){
  .eochat{right:max(14px,env(safe-area-inset-right,0px));bottom:max(14px,env(safe-area-inset-bottom,0px))}
  .eochat-launcher-label{display:none}
  .eochat-launcher{width:56px;height:56px;padding:0;justify-content:center}
  .eochat-teaser{width:calc(100vw - 28px)}
  .eochat[data-state="open"]{inset:0;right:0;bottom:0}
  .eochat-panel{width:100vw;height:100%;border:0;border-radius:0;box-shadow:none}
  .eochat-head{padding-top:max(14px,env(safe-area-inset-top,0px))}
  .eochat-privacy{padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
  .eochat-form input{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.eochat-teaser{animation:none}}
