/* ============================================================
   TURITOTO — assets/scene.css
   Scène illustrée du chantier (SVG), partagée par l'accueil
   (bulle de démo) et /presentation/.
   ============================================================ */
/* --- scène illustrée (SVG) --- */
.scene{position:absolute;inset:0;width:100%;height:100%;display:block;background:#0b0b0c}
.scene .cam{transition:transform 1.6s var(--ease);will-change:transform}
.scene .g{
  opacity:0;transform-box:fill-box;transform-origin:center;
  transition:opacity .8s var(--ease) var(--d,0s),transform .9s var(--ease) var(--d,0s);
}
.scene .g.on{opacity:1;transform:none}
.scene .drop{transform:translateY(-70px)}
.scene .slide{transform:translateX(90px)}
.scene .disk{transform:translateY(-18px) scale(.9)}
.scene .rise{transform:translateY(40px)}
.scene .pop{transform:scale(.6)}
.scene .ln{transform:translateX(-14px)}
.scene .clutter{transform:translateY(30px)}
.scene .clutter.on{transform:none}
/* les câbles se tirent */
.scene .wire{opacity:1;transform:none}
.scene .wire path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.5s var(--ease) var(--d,0s)}
.scene .wire.on path{stroke-dashoffset:0}
/* textes */
.scene .sc-t{font:600 15px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;fill:#f5f5f7}
.scene .sc-s{font:600 10px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;fill:#8e8e93;letter-spacing:.06em}
.scene .sc-m{font:500 13px/1 ui-monospace,"SF Mono",Menlo,monospace}
/* voyants */
.scene .led{fill:#3a3c42;transition:fill .5s}
.scene .g.on .led,.scene .on-always{fill:#30d158;animation:blink 1.6s var(--ld,0s) infinite}
.scene[data-step="4"] .disk.on .led{fill:#ff9f0a;animation-duration:.45s}
.scene[data-step="6"] .led{animation-duration:3.2s}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
/* vignettes avant/après : pas d'animation */
.scene.still .g,.scene.still .cam,.scene.still .wire path{transition:none!important}
.scene.still .led{animation:none!important}


/* ---------- Mode clair : la pièce en gris et blanc ---------- */
:root:not([data-theme="dark"]) .scene{background:#f5f5f7}
:root:not([data-theme="dark"]) .scene .rm-sky{fill:#f5f5f7}
:root:not([data-theme="dark"]) .scene .rm-wall{fill:#ececf0}
:root:not([data-theme="dark"]) .scene .rm-w0{stop-color:#f7f7f9}
:root:not([data-theme="dark"]) .scene .rm-w1{stop-color:#e8e8ed}
:root:not([data-theme="dark"]) .scene .rm-f0{stop-color:#dcdce1}
:root:not([data-theme="dark"]) .scene .rm-f1{stop-color:#d2d2d7}
:root:not([data-theme="dark"]) .scene .rm-floor{fill:#d2d2d7}
:root:not([data-theme="dark"]) .scene .rm-lines{stroke:#000;stroke-opacity:.05}
:root:not([data-theme="dark"]) .scene .rm-base{fill:#c7c7cc}
:root:not([data-theme="dark"]) .scene .rm-desk{fill:#c7c7cc}
:root:not([data-theme="dark"]) .scene .rm-leg{fill:#aeaeb2}
:root:not([data-theme="dark"]) .scene .rm-pill{fill:#fff;stroke:#d2d2d7}
:root:not([data-theme="dark"]) .scene .rm-pill-live{fill:#e8f7ed;stroke:#34c759}
:root:not([data-theme="dark"]) .scene .sc-t{fill:#1d1d1f}
:root:not([data-theme="dark"]) .scene path[stroke="#e5e5ea"]{stroke:#8e8e93}
:root:not([data-theme="dark"]) .scene rect[fill="#f5f5f7"]{fill:#fff;stroke:#c7c7cc;stroke-width:1.5}
:root:not([data-theme="dark"]) .scene line[stroke="#f5f5f7"]{stroke:#c7c7cc}
/* l'étiquette du domaine s'efface pendant les zooms sur la baie */
.scene[data-step="2"] .dom,.scene[data-step="3"] .dom,.scene[data-step="4"] .dom{opacity:0}

/* ---------- Mode sombre : la pièce en gris (se détache du fond noir) ---------- */
[data-theme="dark"] .scene{background:#161617}
[data-theme="dark"] .scene .rm-sky{fill:#232326}
[data-theme="dark"] .scene .rm-wall{fill:#1c1c1e}
[data-theme="dark"] .scene .rm-w0{stop-color:#2a2a2d}
[data-theme="dark"] .scene .rm-w1{stop-color:#1c1c1e}
[data-theme="dark"] .scene .rm-f0{stop-color:#161617}
[data-theme="dark"] .scene .rm-f1{stop-color:#111112}
[data-theme="dark"] .scene .rm-floor{fill:#111112}
[data-theme="dark"] .scene .rm-base{fill:#2c2c2e}
[data-theme="dark"] .scene .rm-desk{fill:#3a3a3c}
[data-theme="dark"] .scene .rm-leg{fill:#2c2c2e}
