/* Scènes de démonstration du site Théo Eloy : le kit commun (11 novembre 2026).
   Aplats et filets de 1 px. Aucun dégradé, aucune ombre portée, aucun flou.
   Le violet n'habille que ce que fait l'IA ; chaque outil garde son logo et au plus un détail de sa charte.
   Classes du kit préfixées par k- ; chaque scène préfixe les siennes par deux lettres. */

.scene{position:relative;margin:0;min-width:0}
.k-stage{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0}

/* Bilan : le point de départ, puis le résultat */
.k-bilan{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.8125rem;line-height:1.25}
.k-b{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 10px;border-radius:8px}
.k-b-avant{border:1px solid var(--line-strong);background:#fff;color:var(--muted)}
.k-b-to{flex:none;width:14px;height:14px;color:var(--muted);opacity:0;transition:opacity .3s}
.k-b-apres{background:var(--accent-soft);color:var(--accent);font-weight:550;opacity:0;transform:translateX(-6px);transition:opacity .35s,transform .35s}
.k-stage.is-done .k-b-to,.k-stage.is-done .k-b-apres{opacity:1;transform:none}

/* Fenêtre d'application */
.k-win{position:relative;min-width:0;background:#fff;border:1px solid var(--line-strong);border-radius:12px;overflow:hidden}
.k-top{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-bottom:1px solid var(--line);font-size:.8125rem;color:var(--muted);white-space:nowrap;min-width:0}
.k-dots{flex:none;display:inline-flex;gap:5px;margin-right:6px}
.k-dots i{width:9px;height:9px;border-radius:50%;background:var(--line-strong)}
.k-logo{flex:none;width:18px;height:18px;object-fit:contain}
.k-app{flex:none;color:var(--ink);font-weight:600}
.k-file{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* Barre de l'IA : elle s'ouvre quand l'IA travaille */
.k-agent{display:flex;align-items:center;gap:8px;height:0;padding:0 12px;overflow:hidden;background:var(--accent-soft);color:var(--accent);font-size:.8125rem;font-weight:550;white-space:nowrap;transition:height .3s ease}
.k-agent.is-on{height:32px}
.k-agent .t2{display:none}
.k-agent.is-finished .t1{display:none}
.k-agent.is-finished .t2{display:inline}
.k-spark{flex:none;width:15px;height:15px}
.k-prog{flex:none;margin-left:auto;width:72px;height:3px;border-radius:2px;background:#d8d2ff;overflow:hidden}
.k-prog i{display:block;height:100%;background:var(--accent);transform:scaleX(0);transform-origin:left}
.k-agent.is-on .k-prog i{transform:scaleX(1);transition:transform var(--prog,2s) linear}
.k-agent.is-finished .k-prog{display:none}

/* Pastilles, coche, avatars */
.k-chip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:6px;border:1px solid var(--line-strong);background:#fff;color:var(--body);font-size:.75rem;line-height:1;white-space:nowrap}
.k-chip.is-ai{border-color:transparent;background:var(--accent-soft);color:var(--accent);font-weight:550}
.k-chip img,.k-chip svg{width:13px;height:13px;object-fit:contain}
.k-ok{flex:none;display:inline-block;width:16px;height:16px;vertical-align:-3px}
.k-av{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#eceef2;color:var(--ink);font-size:.6875rem;font-weight:600;line-height:1}
.k-av.is-you{background:var(--accent);color:#fff}
.k-label{font-size:.75rem;line-height:1.35;color:var(--muted)}

/* Bouton d'action, validation par une personne, curseur */
.k-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 13px;border-radius:9px;background:var(--accent);color:#fff;font-size:.8125rem;font-weight:550;line-height:1;white-space:nowrap;transition:transform .12s ease,background .2s ease}
.k-btn .ok{display:none;align-items:center;gap:6px}
.k-btn .ok svg{width:13px;height:13px}
.k-btn.is-pressed{transform:scale(.94)}
.k-btn.is-valid{background:var(--ink)}
.k-btn.is-valid .lab{display:none}
.k-btn.is-valid .ok{display:inline-flex}
.k-btn.is-line{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong)}
.k-toast{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:10px 12px;border-radius:10px;border:1px solid var(--line-strong);background:#fff;font-size:.8125rem;line-height:1.35;color:var(--ink);opacity:0;transform:translateY(6px);transition:opacity .3s,transform .3s}
.k-toast.is-on{opacity:1;transform:none}
.k-cursor{position:absolute;left:50%;top:104%;z-index:6;width:22px;height:22px;pointer-events:none;opacity:0;transition:left .75s cubic-bezier(.3,.7,.2,1),top .75s cubic-bezier(.3,.7,.2,1),opacity .25s}
.k-cursor.is-on{opacity:1}

/* Boutons de bascule d'une scène (pas de pastille glissante) */
.k-tog{display:flex;flex-wrap:wrap;gap:6px}
.k-tog button{height:32px;padding:0 12px;border-radius:9px;border:1px solid var(--line-strong);background:#fff;color:var(--body);font:500 .8125rem/1 "Inter",system-ui,sans-serif;cursor:pointer}
.k-tog button:hover{border-color:var(--ink)}
.k-tog button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}

/* Fils entre les éléments d'une scène */
.k-wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.k-wire{fill:none;stroke:var(--line-strong);stroke-width:1.5}
.k-live{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-dasharray:1 2;stroke-dashoffset:1.5;transition:stroke-dashoffset .6s ease}
.k-live.is-on{stroke-dashoffset:0}
.k-pulse{fill:var(--accent)}

/* Légende sous la scène : exemple fictif, et le bouton pour la rejouer */
.k-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:12px;font-family:var(--mono,ui-monospace,monospace);font-size:.78125rem;line-height:1.4;letter-spacing:-.01em;font-synthesis:none;color:var(--muted)}
.k-replay{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font-family:var(--mono,ui-monospace,monospace);font-size:.78125rem;font-weight:400;line-height:1;letter-spacing:-.01em;font-synthesis:none;cursor:pointer}
.k-replay:hover{background:var(--accent-soft);color:var(--accent)}
.k-replay svg{width:14px;height:14px}

@media (prefers-reduced-motion:reduce){
  .k-stage *,.k-stage *::before,.k-stage *::after{transition-duration:.01ms!important;transition-delay:0s!important;animation:none!important}
}
