/* ═══════════════════════════════════════════════════════════
   EDMOND'S & COMPANY — Assistant du site
   ═══════════════════════════════════════════════════════════ */
.eca-launch { position: fixed; right: 2rem; bottom: 5.6rem; z-index: 998; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.05rem .7rem .85rem; background: #1a1410; color: #d4b98a; border: 1px solid rgba(184,154,106,.45); border-radius: 999px; font: 600 .7rem/1 'Montserrat', sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s, background .2s, opacity .2s; }
.eca-launch:hover { transform: translateY(-2px); background: #2e261e; }
.eca-launch svg { width: 20px; height: 20px; color: #b89a6a; }
.eca-launch.on { opacity: 0; pointer-events: none; }
.eca-launch:focus-visible, .eca-box button:focus-visible, .eca-box textarea:focus-visible { outline: 2px solid #d4b98a; outline-offset: 2px; }

.eca-box { padding: 0; margin: 0; position: fixed; right: 2rem; bottom: 2rem; z-index: 1000; width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 4rem)); display: flex; flex-direction: column; background: #f8f3ea; border: 1px solid rgba(184,154,106,.4); box-shadow: 0 24px 60px rgba(26,20,16,.35); opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .22s, transform .22s; font-family: 'Montserrat', sans-serif; }
.eca-box.open { opacity: 1; transform: none; }
.eca-box[hidden] { display: none; }
.eca-head { flex-shrink: 0; position: static; display: flex; justify-content: space-between; align-items: center; padding: .95rem 1.1rem; background: #1a1410; border-bottom: 2px solid #b89a6a; }
.eca-head strong { display: block; color: #fff; font: 400 1.15rem/1.2 'Cormorant Garamond', Georgia, serif; }
.eca-sub { display: block; color: #b89a6a; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .2rem; }
.eca-close { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.eca-close:hover { color: #fff; }
.eca-log { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.eca-msg { max-width: 88%; padding: .7rem .9rem; font-size: .84rem; line-height: 1.6; }
.eca-msg.in { animation: ecaIn .25s ease both; }
@keyframes ecaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.eca-bot { align-self: flex-start; background: #fff; color: #2e261e; border-left: 2px solid #b89a6a; }
.eca-user { align-self: flex-end; background: #1a1410; color: #f0e8d6; }
.eca-msg a { color: #8a6e44; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.eca-user a { color: #d4b98a; }
.eca-wait { display: inline-flex; gap: .3rem; padding: .85rem 1rem; }
.eca-wait i { width: 6px; height: 6px; border-radius: 50%; background: #b89a6a; animation: ecaDot 1s infinite ease-in-out; }
.eca-wait i:nth-child(2) { animation-delay: .15s; } .eca-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes ecaDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.eca-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .7rem; }
.eca-chips button { background: transparent; border: 1px solid rgba(138,110,68,.45); color: #8a6e44; padding: .4rem .65rem; font: 500 .7rem/1.3 'Montserrat', sans-serif; cursor: pointer; transition: background .2s, color .2s; text-align: left; }
.eca-chips button:hover { background: #1a1410; color: #d4b98a; border-color: #1a1410; }
.eca-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid rgba(184,154,106,.3); background: #fff; }
.eca-form[hidden] { display: none; }
.eca-form textarea { flex: 1; resize: none; border: 1px solid rgba(26,20,16,.15); background: #f8f3ea; padding: .6rem .7rem; font: .84rem/1.4 'Montserrat', sans-serif; color: #1a1410; max-height: 120px; }
.eca-form textarea:focus { outline: none; border-color: #b89a6a; }
.eca-form button { width: 40px; height: 40px; flex-shrink: 0; background: #b89a6a; color: #1a1410; border: 0; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.eca-form button:hover { background: #d4b98a; }
.eca-form button:disabled { opacity: .5; cursor: wait; }
.eca-legal { margin: 0; padding: .5rem 1rem .7rem; font-size: .62rem; line-height: 1.5; color: #9a8e82; background: #fff; }
.eca-legal a { color: #8a6e44; }
.eca-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 640px) {
  .eca-launch { right: 1rem; bottom: 4.9rem; padding: .65rem; }
  .eca-launch span { display: none; }
  .eca-box { right: 0; bottom: 0; width: 100vw; height: 82vh; border-left: 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .eca-box, .eca-msg.in, .eca-wait i { transition: none; animation: none; } }
@media print { .eca-launch, .eca-box { display: none !important; } }
