/* Scène « local » (11 novembre 2026) : la même question posée à un service en ligne, puis à Mistral sur le serveur de l'entreprise.
   Chaque sélecteur commence par .scene-local, chaque classe propre par lc-. Positions des fils, du passage et du cadenas : local.js. */
.scene-local{container-type:inline-size}
.scene-local .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Le schéma : le bureau, et dehors le service en ligne */
.scene-local .lc-scene{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 112px;column-gap:56px;align-items:start;padding-top:10px}
.scene-local .lc-wires{z-index:1}
/* fil violet éteint loin des extrémités : sinon son bout arrondi laisse un point au bout du fil */
.scene-local .lc-wires .k-live{stroke-dasharray:1 2;stroke-dashoffset:1.5}
.scene-local .lc-wires .k-live.is-on{stroke-dashoffset:0}
.scene-local .lc-local .lc-w-out{stroke-dasharray:4 5}

/* Le bureau : un cadre à l'encre, son nom posé sur le bord */
.scene-local .lc-office{position:relative;display:flex;flex-direction:column;gap:40px;padding:24px 16px 16px;border:1.5px solid var(--ink);border-radius:14px}
.scene-local .lc-legend{position:absolute;left:12px;top:-10px;padding:0 6px;background:#fff;font-size:.8125rem;font-weight:600;line-height:18px;color:var(--ink);white-space:nowrap}

/* La fenêtre de l'assistant : le logo et le nom du modèle suivent le mode */
.scene-local .lc-win{z-index:2}
.scene-local .lc-top{height:auto;min-height:38px;padding-top:9px;padding-bottom:9px}
.scene-local .lc-title{min-width:0;white-space:normal;line-height:1.35}
.scene-local .lc-title .k-app{margin-right:4px;white-space:nowrap}
.scene-local .lc-title .k-file{white-space:nowrap}
.scene-local .lc-on-loc{display:none}
.scene-local .lc-local .lc-on-net{display:none}
.scene-local .lc-local .lc-on-loc{display:inline}
.scene-local .lc-chat{display:flex;flex-direction:column;gap:12px;padding:14px 14px 16px}
.scene-local .lc-ask{display:flex;justify-content:flex-end;align-items:flex-end;gap:8px;opacity:0;transform:translateY(4px);transition:opacity .25s,transform .25s}
.scene-local .lc-ask.is-on{opacity:1;transform:none}
.scene-local .lc-bubble{position:relative;max-width:78%;margin:0;padding:8px 12px;border:1px solid var(--line-strong);border-radius:10px;font-size:.875rem;line-height:1.4;color:var(--ink)}
.scene-local .lc-ghost{visibility:hidden}
.scene-local .lc-typed{position:absolute;inset:8px 12px}
.scene-local .lc-answer{display:flex;align-items:flex-start;gap:9px;opacity:0;transform:translateY(5px);transition:opacity .35s,transform .35s}
.scene-local .lc-answer.is-on{opacity:1;transform:none}
.scene-local .lc-answer .k-spark{width:18px;height:18px;margin-top:1px}
.scene-local .lc-reply{min-width:0}
.scene-local .lc-reply p{margin:0;font-size:.875rem;line-height:1.4;color:var(--ink)}
.scene-local .lc-reply .k-chip{margin-top:8px}

/* Le serveur et les documents de l'entreprise */
.scene-local .lc-base{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 2px}
.scene-local .lc-srv{position:relative;display:grid;place-items:center;flex:none;width:76px;height:76px;margin-left:16px;border-radius:50%;background:#fff;border:1.5px solid var(--line-strong);transition:border-color .3s,box-shadow .3s}
.scene-local .lc-srv>svg{width:42px;height:42px}
.scene-local .lc-srv.is-on{border-color:var(--accent);box-shadow:0 0 0 6px var(--accent-soft)}
.scene-local .lc-badge{position:absolute;right:-9px;bottom:-5px;width:26px;height:26px;padding:5px;border-radius:8px;background:#fff;box-shadow:0 0 0 1px var(--line-strong);object-fit:contain}
.scene-local .lc-cap{position:absolute;left:50%;top:100%;margin-top:9px;transform:translateX(-50%);font-size:.8125rem;font-weight:550;line-height:1.3;color:var(--ink);white-space:nowrap}
.scene-local .lc-docs{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;list-style:none}
.scene-local .lc-note{display:flex;align-items:center;gap:9px;height:34px;padding:0 13px 0 10px;background:#fff;border:1px solid var(--line-strong);border-radius:10px;font-size:.875rem;line-height:1;color:var(--ink);white-space:nowrap}
.scene-local .lc-note img{flex:none;width:20px;height:20px;object-fit:contain}

/* Le service en ligne : il se grise quand la question reste au bureau */
.scene-local .lc-sky{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:62px;text-align:center}
.scene-local .lc-cloud{position:relative;display:block;width:112px;height:77px}
.scene-local .lc-cloud-ic{display:block;width:100%;height:100%;fill:var(--accent-mid,#b9b1ff);transition:fill .4s}
.scene-local .lc-brands{position:absolute;left:50%;top:60%;display:flex;gap:6px;transform:translate(-50%,-50%)}
.scene-local .lc-brands img{width:26px;height:26px;border-radius:7px;box-shadow:0 0 0 2px #fff;transition:filter .4s,opacity .4s}
.scene-local .lc-sky-t{display:flex;flex-direction:column;align-items:center;gap:6px}
.scene-local .lc-cloud-lab{font-size:.8125rem;font-weight:550;line-height:1.3;color:var(--ink);white-space:nowrap;transition:color .4s}
.scene-local .lc-unused{opacity:0;transition:opacity .3s}
.scene-local .lc-local .lc-cloud-ic{fill:#e6e8ec}
.scene-local .lc-local .lc-brands img{filter:grayscale(1);opacity:.45}
.scene-local .lc-local .lc-cloud-lab{color:var(--muted)}
.scene-local .lc-local .lc-unused{opacity:1;transition-delay:.2s}
.scene-local .lc-cloud.is-hit{animation:lc-bump .45s ease}
@keyframes lc-bump{40%{transform:scale(1.06)}}

/* Le passage dans le mur, son étiquette, le cadenas et le document qui voyage : placés par local.js */
.scene-local .lc-gate{position:absolute;z-index:0;left:0;top:0;width:10px;height:34px;margin:-17px 0 0 -5px;background:#fff;transform:scaleY(0);transition:transform .3s ease}
.scene-local .lc-gate::before,.scene-local .lc-gate::after{content:"";position:absolute;left:-4px;right:-4px;height:1.5px;background:var(--ink)}
.scene-local .lc-gate::before{top:0}
.scene-local .lc-gate::after{bottom:0}
.scene-local .lc-gate.is-top{width:34px;height:10px;margin:-5px 0 0 -17px;transform:scaleX(0)}
.scene-local .lc-gate.is-top::before,.scene-local .lc-gate.is-top::after{top:-4px;bottom:-4px;width:1.5px;height:auto}
.scene-local .lc-gate.is-top::before{left:0;right:auto}
.scene-local .lc-gate.is-top::after{left:auto;right:0}
.scene-local .lc-gate.is-open{transform:none}
.scene-local .lc-exit{position:absolute;z-index:3;left:0;top:0;display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:#fff;box-shadow:inset 0 0 0 1px var(--ink);font-size:.75rem;font-weight:600;line-height:1;color:var(--ink);white-space:nowrap;opacity:0;transform:translateY(3px);transition:opacity .25s,transform .25s}
.scene-local .lc-exit.is-on{opacity:1;transform:none}
.scene-local .lc-lock{position:absolute;z-index:3;left:0;top:0;display:grid;place-items:center;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink);opacity:0;transform:scale(.5);transition:opacity .25s,transform .35s cubic-bezier(.3,1.6,.5,1)}
.scene-local .lc-lock svg{width:20px;height:20px}
.scene-local .lc-local .lc-lock{opacity:1;transform:none;transition-delay:.25s}
.scene-local .lc-doc{position:absolute;z-index:5;left:0;top:0;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff;box-shadow:0 0 0 1.5px var(--accent);opacity:0;pointer-events:none;transition:opacity .15s}
.scene-local .lc-doc svg{width:20px;height:20px}
.scene-local .lc-doc.is-on{opacity:1}

/* Les deux boutons de bascule, sous la scène */
.scene-local .lc-tog{margin-top:14px}
.scene-local .lc-tog button{display:inline-flex;align-items:center;gap:7px}
.scene-local .lc-tog svg{flex:none;width:16px;height:16px}

/* État final posé d'un coup (?final ou mouvement réduit) */
.scene-local .lc-instant *{transition:none!important;animation:none!important}

/* Colonne un peu plus étroite que 600 px : la barre de titre garde sa ligne sans les trois points */
@container (max-width:576px){
  .scene-local .lc-win .k-dots{display:none}
}
/* Téléphone (et colonnes de moins de 540 px, où les fils du serveur seraient écrasés) :
   le nuage au-dessus, puis le bureau avec la fenêtre et le schéma en entier */
@container (max-width:540px){
  .scene-local .lc-scene{grid-template-columns:minmax(0,1fr);row-gap:30px;padding-top:0}
  .scene-local .lc-sky{order:-1;flex-direction:row-reverse;justify-content:flex-start;align-items:center;gap:12px;margin-top:0;text-align:right}
  .scene-local .lc-sky-t{align-items:flex-end}
  .scene-local .lc-cloud{width:84px;height:58px}
  .scene-local .lc-brands img{width:22px;height:22px;border-radius:6px}
  .scene-local .lc-office{gap:36px;padding:24px 12px 14px}
  .scene-local .lc-bubble{max-width:86%}
  .scene-local .lc-srv{margin-left:12px}
}
/* Petits téléphones (écran de 320 px) : le serveur se resserre pour laisser la place aux documents */
@container (max-width:330px){
  .scene-local .lc-base{gap:14px}
  .scene-local .lc-srv{width:64px;height:64px;margin-left:4px}
  .scene-local .lc-srv>svg{width:36px;height:36px}
}
