/* [2026-12-03] Chat d'assistance SolDuster */
.sdc-btn{position:fixed;right:22px;bottom:22px;z-index:9000;height:50px;padding:0 20px 0 16px;border-radius:25px;cursor:pointer;
  border:1.5px solid transparent;background:linear-gradient(#0f1319,#0f1319) padding-box,linear-gradient(120deg,#9945FF,#14F195) border-box;
  color:#fff;font:600 14.5px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;display:flex;align-items:center;gap:9px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);transition:transform .18s,box-shadow .18s}
.sdc-btn:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(20,241,149,.18)}
.sdc-btn svg{width:22px;height:22px;flex:none}
/* la flèche « revenir en haut » passe au-dessus de la bulle */
.v3 .to-top{bottom:86px}
.sdc-badge{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;border-radius:10px;background:#ff4d5e;color:#fff;
  font:700 11px/20px system-ui,sans-serif;text-align:center;display:none;padding:0 5px}
.sdc-panel{position:fixed;right:22px;bottom:84px;z-index:9001;width:380px;max-width:calc(100vw - 24px);height:560px;
  max-height:calc(100vh - 110px);background:#0d1016;color:#e9edf3;border:1px solid rgba(255,255,255,.1);border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.6);display:none;flex-direction:column;overflow:hidden;
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.sdc-panel.open{display:flex}
.sdc-head{padding:14px 16px 12px;background:#11151d;border-bottom:1px solid rgba(255,255,255,.08);position:relative}
.sdc-head::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#9945FF,#14F195)}
.sdc-title{font-weight:700;font-size:15px;display:flex;align-items:center;gap:8px}
.sdc-dot{width:8px;height:8px;border-radius:50%;background:#14F195}
.sdc-sub{font-size:12px;color:#8e98a8;margin-top:2px}
.sdc-close{position:absolute;right:10px;top:12px;width:30px;height:30px;border:0;border-radius:8px;background:transparent;
  color:#8e98a8;font-size:20px;line-height:1;cursor:pointer}
.sdc-close:hover{background:rgba(255,255,255,.08);color:#fff}
.sdc-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 12px;background:#11151d;
  border-bottom:1px solid rgba(255,255,255,.08)}
.sdc-tab{border:1px solid rgba(255,255,255,.14);background:transparent;color:#c5ccd8;border-radius:10px;padding:9px 6px;
  font:600 13px/1.2 inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px}
.sdc-tab svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sdc-tab.on{background:#fff;color:#07090d;border-color:#fff}
.sdc-tab.human:not(.on){border-color:#14F195;color:#14F195}
.sdc-log{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:8px}
.sdc-m{max-width:86%;padding:9px 12px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.sdc-m.in{align-self:flex-start;background:#1a2029;border-bottom-left-radius:4px}
.sdc-m.out{align-self:flex-end;background:#14F195;color:#06110c;border-bottom-right-radius:4px}
.sdc-m.agent{border:1px solid rgba(20,241,149,.45)}
.sdc-who{display:block;font-size:11px;font-weight:700;color:#8e98a8;margin-bottom:2px}
.sdc-m.agent .sdc-who{color:#14F195}
.sdc-note{align-self:center;text-align:center;font-size:12px;color:#8e98a8;max-width:92%}
.sdc-typing{align-self:flex-start;color:#8e98a8;font-size:12px;padding:2px 6px}
.sdc-handoff{align-self:flex-start;border:1px solid #14F195;background:rgba(20,241,149,.08);color:#14F195;border-radius:10px;
  padding:7px 11px;font:600 12.5px/1.2 inherit;cursor:pointer}
.sdc-contact{margin:0 12px 8px;padding:9px 11px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:#0a0d12;
  color:#e9edf3;font:13px inherit;display:none}
.sdc-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08);background:#11151d}
.sdc-form textarea{flex:1;resize:none;height:42px;max-height:110px;padding:10px 11px;border-radius:10px;
  border:1px solid rgba(255,255,255,.14);background:#0a0d12;color:#e9edf3;font:14px/1.4 inherit;outline:none}
.sdc-form textarea:focus,.sdc-contact:focus{border-color:#14F195;outline:none}
.sdc-send{width:42px;height:42px;border:0;border-radius:10px;background:#fff;cursor:pointer;display:grid;place-items:center}
.sdc-send:disabled{opacity:.4;cursor:default}
.sdc-send svg{width:18px;height:18px;fill:none;stroke:#07090d;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sdc-foot{font-size:11px;color:#6f7988;text-align:center;padding:0 12px 9px;background:#11151d}
@media (max-width:520px){
  .sdc-panel{right:0;left:0;bottom:0;width:100%;max-width:100%;height:100%;max-height:100dvh;border-radius:0;border:0}
  .sdc-btn{right:14px;bottom:14px;width:50px;padding:0;justify-content:center}
  .sdc-btn .sdc-lbl{display:none}
  .v3 .to-top{bottom:76px}
  .sdc-form textarea,.sdc-contact{font-size:16px}
}
