/* Éléments de contact flottants : bouton d'appel + bulle de chat (démo).
   Couleurs réglées par site via window.SITE (voir widgets.js). Aucune librairie. */
.w-dock,.w-panel{--w-accent:#1b1b1b;--w-ink:#fff;--w-panel:#fff;--w-fg:#1a1a1a;--w-mute:#5a5a5a;--w-line:rgba(0,0,0,.14)}
.w-dock{position:fixed;right:max(.8rem,env(safe-area-inset-right));bottom:max(.8rem,env(safe-area-inset-bottom));z-index:90;
  display:flex;flex-direction:column;align-items:flex-end;gap:.7rem;font:400 1rem/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--w-fg)}
.menu-open .w-dock,.menu-open .w-panel{display:none}
.w-btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-width:3.5rem;height:3.5rem;padding:0;border:0;border-radius:99px;
  background:var(--w-accent);color:var(--w-ink);text-decoration:none;font:600 .95rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  box-shadow:0 6px 18px rgba(0,0,0,.28),0 1px 3px rgba(0,0,0,.25);cursor:pointer;
  transition:transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s cubic-bezier(.2,.7,.2,1)}
.w-btn svg{width:1.5rem;height:1.5rem;flex:none}
.w-btn:focus-visible{outline:3px solid var(--w-ink);outline-offset:-6px;box-shadow:0 0 0 3px var(--w-accent),0 6px 18px rgba(0,0,0,.28)}
@media(hover:hover){.w-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.32),0 1px 3px rgba(0,0,0,.25)}}
.w-btn:active{transform:scale(.97)}
.w-call span,.w-chat span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(min-width:900px){.w-call,.w-chat{padding:0 1.25rem 0 1.1rem}.w-call span,.w-chat span{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-variant-numeric:tabular-nums}}

.w-panel{z-index:91;padding:0;margin:0;position:fixed;right:max(.8rem,env(safe-area-inset-right));bottom:calc(max(.8rem,env(safe-area-inset-bottom)) + 7.8rem);
  width:min(calc(100vw - 1.6rem),23.5rem);max-height:min(34rem,calc(100dvh - 12rem));display:flex;flex-direction:column;
  background:var(--w-panel);color:var(--w-fg);border:1px solid var(--w-line);border-radius:18px;overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.2);
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .25s cubic-bezier(.2,.7,.2,1),transform .25s cubic-bezier(.2,.7,.2,1),visibility 0s linear .25s}
.w-panel.is-open{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.w-head{display:flex;align-items:center;gap:.7rem;padding:.85rem 1rem;background:var(--w-accent);color:var(--w-ink)}
.w-head strong{display:block;font-size:1rem;line-height:1.2}
.w-head small{display:block;font-size:.8rem;opacity:.92;line-height:1.3}
.w-x{margin-left:auto;flex:none;width:2.75rem;height:2.75rem;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.w-x:focus-visible{outline:3px solid currentColor;outline-offset:-4px}
@media(hover:hover){.w-x:hover{background:rgba(255,255,255,.18)}}
.w-x svg{width:1.25rem;height:1.25rem}
.w-log{flex:1;min-height:9rem;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;overscroll-behavior:contain;scrollbar-width:thin}
.w-msg{max-width:85%;padding:.6rem .85rem;border-radius:14px;font-size:.95rem;line-height:1.45;overflow-wrap:anywhere;text-wrap:pretty}
.w-msg.bot{align-self:flex-start;background:#eef0f2;color:#1a1a1a;border-bottom-left-radius:4px}
.w-msg.me{align-self:flex-end;background:var(--w-accent);color:var(--w-ink);border-bottom-right-radius:4px}
.w-typing{display:inline-flex;gap:4px;align-items:center;height:1.2em}
.w-typing i{width:6px;height:6px;border-radius:50%;background:#6b7177;animation:w-dot 1s ease-in-out infinite}
.w-typing i:nth-child(2){animation-delay:.15s}.w-typing i:nth-child(3){animation-delay:.3s}
@keyframes w-dot{0%,80%,100%{opacity:.35;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.w-chips{display:flex;flex-wrap:wrap;gap:.45rem;padding:0 1rem .75rem}
.w-chip{min-height:2.75rem;padding:0 .9rem;border:1px solid var(--w-line);border-radius:99px;background:#fff;color:var(--w-fg);font:500 .88rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;
  transition:background-color .2s,border-color .2s}
.w-chip:focus-visible{outline:3px solid var(--w-accent);outline-offset:2px}
@media(hover:hover){.w-chip:hover{background:#f1f2f4;border-color:var(--w-accent)}}
.w-form{display:flex;gap:.5rem;padding:.75rem;border-top:1px solid var(--w-line);background:#fff}
.w-form input{flex:1;min-width:0;height:2.75rem;padding:0 .9rem;border:1px solid #8a9096;border-radius:99px;font:400 1rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;color:#1a1a1a;background:#fff;accent-color:var(--w-accent);caret-color:var(--w-accent)}
.w-form input:focus-visible{outline:3px solid var(--w-accent);outline-offset:1px}
.w-form button{flex:none;width:2.75rem;height:2.75rem;display:grid;place-items:center;border:0;border-radius:50%;background:var(--w-accent);color:var(--w-ink);cursor:pointer}
.w-form button:focus-visible{outline:3px solid var(--w-accent);outline-offset:2px}
.w-form button svg{width:1.2rem;height:1.2rem}
.w-note{padding:.45rem 1rem .7rem;background:#fff;color:#4d5359;font-size:.78rem;line-height:1.35;text-align:center}
@media(max-width:520px){.w-panel{left:.8rem;width:auto}}
@media print{.w-dock,.w-panel{display:none}}
@media (prefers-reduced-motion:reduce){
  .w-btn,.w-panel,.w-chip{transition-duration:.001ms!important}
  .w-typing i{animation:none;opacity:.7}
}
