/* Huis clos : l'assistant du cabinet, hors ligne, rejoué en HTML. Scène 1000×600 mise à l'échelle par --k. */
.hc-demo{position:absolute;inset:0;overflow:hidden;background:#000;
  --vio:#6F4DFF;--link:#A794FF;--ink:#F5F5F7;--ink-2:#C7C7CC;--gray:#86868B;--tile:#0F0F11;--tile-2:#1A1A1D;--ok:#30D158}
.hc-demo::before{content:"";position:absolute;left:-10%;right:-10%;bottom:-55%;height:85%;border-radius:50%;background:#5B3BEA;opacity:.34;filter:blur(90px)}
.hc-demo::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:40px 40px;
  -webkit-mask-image:radial-gradient(80% 70% at 50% 40%,#000 30%,transparent 100%);mask-image:radial-gradient(80% 70% at 50% 40%,#000 30%,transparent 100%)}
.hc-demo *{box-sizing:border-box}
.hcd-scene{position:absolute;z-index:1;left:50%;top:50%;width:1000px;height:600px;transform:translate(-50%,-50%) scale(var(--k,1));transform-origin:center;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;color:var(--ink);letter-spacing:-.011em;-webkit-font-smoothing:antialiased;font-feature-settings:'cv11'}

/* la fenêtre */
.hcd-win{position:absolute;left:34px;top:28px;width:932px;height:544px;display:flex;flex-direction:column;background:var(--tile);border-radius:22px;overflow:hidden;
  box-shadow:0 0 0 1px rgba(255,255,255,.07),0 60px 110px -40px rgba(111,77,255,.5)}
.hcd-bar{flex:none;height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px 0 24px;border-bottom:1px solid rgba(255,255,255,.07)}
.hcd-brand{display:flex;align-items:center;gap:14px;min-width:0}
.hcd-wm{font-size:22px;font-weight:600;letter-spacing:-.04em;line-height:1;white-space:nowrap;color:var(--ink)}
.hcd-seal{width:.6em;height:.6em;vertical-align:-.02em;margin:0 .015em 0 -.01em;overflow:visible}
.hcd-sep{width:1px;height:20px;background:rgba(255,255,255,.14)}
.hcd-title{font-size:16px;font-weight:500;color:var(--ink-2);white-space:nowrap}
.hcd-off{display:flex;align-items:center;gap:9px;height:36px;padding:0 15px 0 12px;border-radius:999px;background:rgba(167,148,255,.12);box-shadow:inset 0 0 0 1px rgba(167,148,255,.28);
  font-size:15px;font-weight:600;color:var(--ink);white-space:nowrap}
.hcd-off svg{width:20px;height:20px;fill:none;stroke:var(--link);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.hcd-off .hcd-cut{stroke:var(--ink);stroke-width:2.2;stroke-dasharray:1 1;stroke-dashoffset:1;transition:stroke-dashoffset .5s cubic-bezier(.65,0,.35,1)}
.hc-demo.cut .hcd-off .hcd-cut{stroke-dashoffset:0}

.hcd-main{flex:1;min-height:0;display:flex}

/* les documents du dossier, sur le serveur du cabinet */
.hcd-side{flex:none;width:286px;display:flex;flex-direction:column;padding:20px 10px 16px;background:#0B0B0D;border-right:1px solid rgba(255,255,255,.06)}
.hcd-eyebrow{margin:0 0 4px 10px;font-size:13px;font-weight:500;color:var(--gray)}
.hcd-case{margin:0 0 14px 10px;font-size:17px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.hcd-docs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.hcd-docs li{position:relative;display:flex;align-items:center;gap:8px;height:39px;padding:0 8px 0 10px;border-radius:10px;font-size:15px;color:var(--ink-2);
  transition:background-color .2s ease-out,color .2s ease-out}
.hcd-docs li span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcd-docs li b{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11.5px;font-weight:700;background:var(--vio);color:#fff;opacity:0;transform:scale(.4);
  transition:opacity .25s ease-out,transform .35s cubic-bezier(.34,1.56,.64,1)}
.hcd-ic{flex:none;position:relative;width:15px;height:19px;border-radius:2px 5px 2px 2px;box-shadow:inset 0 0 0 1.5px #5d5d63}
.hcd-ic::after{content:"";position:absolute;left:3.5px;right:3.5px;top:8px;height:1.5px;background:#5d5d63;box-shadow:0 4px 0 #5d5d63}
.hcd-docs li.scan{background:rgba(167,148,255,.1);color:var(--ink)}
.hcd-docs li.cited{color:var(--ink)}
.hcd-docs li.cited b{opacity:1;transform:none}
.hcd-docs li.cited .hcd-ic{box-shadow:inset 0 0 0 1.5px var(--link)}
.hcd-docs li.cited .hcd-ic::after{background:var(--link);box-shadow:0 4px 0 var(--link)}
.hcd-docs li.focus{background:rgba(167,148,255,.16)}
.hcd-me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 10px 0;border-top:1px solid rgba(255,255,255,.06)}
.hcd-av{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#2A2A2E;font-size:14px;font-weight:600;color:var(--ink)}
.hcd-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.hcd-who b{font-size:14.5px;font-weight:600}
.hcd-who small{font-size:13px;color:var(--gray);display:flex;align-items:center;gap:6px}
.hcd-dot{width:7px;height:7px;border-radius:50%;background:var(--ok)}

/* la conversation */
.hcd-chat{position:relative;flex:1;min-width:0;display:flex;flex-direction:column}
.hcd-empty{position:absolute;left:0;right:0;top:0;bottom:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;transition:opacity .35s ease-out,transform .45s ease-out}
.hcd-empty svg{width:40px;height:40px;margin-bottom:6px;overflow:visible}
.hcd-empty b{font-size:22px;font-weight:600;letter-spacing:-.025em;color:var(--ink)}
.hcd-empty span{font-size:17px;color:var(--gray)}
.hc-demo.asked .hcd-empty{opacity:0;transform:translateY(-10px)}
.hcd-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:14px;padding:20px 26px 16px;transition:opacity .45s ease-out}
.hc-demo.out .hcd-body{opacity:0}
.hcd-msg{max-width:90%;padding:13px 17px;border-radius:18px;font-size:18px;line-height:1.5;opacity:0;transform:translateY(14px) scale(.97);transform-origin:100% 100%;
  transition:opacity .3s ease-out,transform .45s cubic-bezier(.34,1.4,.64,1)}
.hcd-msg.on{opacity:1;transform:none}
.hcd-q{align-self:flex-end;background:var(--vio);color:#fff;border-bottom-right-radius:6px}
.hcd-a{align-self:flex-start;background:var(--tile-2);color:var(--ink-2);border-bottom-left-radius:6px;transform-origin:0 100%;min-width:300px}
.hcd-a b{color:var(--ink);font-weight:600}
.hcd-ref{display:inline-grid;place-items:center;width:19px;height:19px;margin-left:3px;border-radius:50%;background:rgba(167,148,255,.2);color:var(--link);font-size:11.5px;font-weight:700;vertical-align:2px;line-height:1}
.hcd-caret{display:inline-block;width:.42em;height:1.02em;margin-left:2px;background:var(--link);vertical-align:-.16em}
.hcd-wait{display:none;align-items:center;gap:4px;color:var(--gray);font-size:16px}
.hcd-wait i{width:5px;height:5px;border-radius:50%;background:var(--link);animation:hcdDot 1s ease-in-out infinite}
.hcd-wait i:first-of-type{margin-left:6px}
.hcd-wait i:nth-of-type(2){animation-delay:.15s}
.hcd-wait i:nth-of-type(3){animation-delay:.3s}
.hcd-a.wait .hcd-wait{display:inline-flex}
.hcd-a.wait .hcd-txt{display:none}
@keyframes hcdDot{0%,100%{opacity:.25}50%{opacity:1}}

.hcd-src{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hcd-src-l{flex:0 0 100%;margin:2px 0 -1px 2px;font-size:13.5px;font-weight:500;color:var(--gray);opacity:0;transition:opacity .3s ease-out}
.hcd-chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 13px 0 8px;border-radius:10px;background:var(--tile-2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
  font-size:14px;color:var(--ink-2);white-space:nowrap;opacity:0;transform:translateY(8px);
  transition:opacity .3s ease-out,transform .4s cubic-bezier(.25,1,.5,1),background-color .2s ease-out,box-shadow .2s ease-out,color .2s ease-out}
.hcd-chip b{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:rgba(167,148,255,.2);color:var(--link);font-size:11.5px;font-weight:700}
.hcd-src.on .hcd-src-l,.hcd-chip.on{opacity:1;transform:none}
.hcd-chip.hover{background:#24222E;box-shadow:inset 0 0 0 1px rgba(167,148,255,.55);color:var(--ink)}

.hcd-compose{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 22px 14px;min-height:56px;padding:9px 9px 9px 18px;border-radius:15px;background:var(--tile-2);
  font-size:17px;color:var(--gray);box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .2s ease-out}
.hcd-compose.focus{box-shadow:inset 0 0 0 1px rgba(167,148,255,.45)}
.hcd-compose.typing{color:var(--ink)}
.hcd-in{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:clip}
.hcd-in .hcd-caret{width:2px;height:1.1em;margin-left:1px;vertical-align:-.2em}
.hcd-send{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#2A2A2E;color:var(--gray);font-style:normal;font-weight:700;font-size:17px;
  transition:background-color .2s ease-out,color .2s ease-out,transform .12s ease-out}
.hcd-compose.ready .hcd-send{background:var(--vio);color:#fff}
.hcd-send.press{transform:scale(.88)}
.hcd-foot{flex:none;display:flex;justify-content:space-between;gap:16px;height:44px;align-items:center;padding:0 26px;border-top:1px solid rgba(255,255,255,.07);font-size:14.5px;color:var(--gray);white-space:nowrap}
.hcd-zero b{color:var(--ink);font-weight:600;transition:color .3s ease-out}
.hcd-zero.flash b{color:var(--ok)}

/* le curseur : une flèche, jamais une main */
.hcd-cur{position:absolute;left:0;top:0;width:24px;height:30px;overflow:visible;opacity:0;transition:opacity .3s ease-out;will-change:transform}
.hcd-cur.on{opacity:1}
.hcd-rip{fill:none;stroke:var(--link);stroke-width:3;opacity:0}
.hcd-cur.click .hcd-rip{animation:hcdRip .45s ease-out}
@keyframes hcdRip{0%{opacity:.9;r:4}100%{opacity:0;r:26}}

@media (prefers-reduced-motion:reduce){
  .hcd-wait i,.hcd-cur.click .hcd-rip{animation:none}
  .hc-demo *{transition:none!important}
}
