/* Effets de vitrine : le X reste dans la scène, jamais au-dessus du texte. */
.studio-playground{display:none}
:root[data-theme="studio"] .studio-playground{display:block;position:relative;grid-column:2;grid-row:4;width:100%;height:clamp(140px,16vw,220px);isolation:isolate}
:root[data-theme="studio"] .studio-emblem{position:absolute;display:block;inset:auto;width:70%;height:75%;aspect-ratio:auto;padding:0;border:0;border-radius:0;box-shadow:none;background-color:transparent;background-image:url('../assets/images/hero-studio.webp');background-size:356% 184%;background-position:82.4% 90.5%;mask-image:radial-gradient(ellipse at 50% 50%,#000 65%,transparent 95%);pointer-events:auto;touch-action:none;cursor:grab;transition:filter .2s;z-index:1}
:root[data-theme="studio"] .studio-emblem:active,:root[data-theme="studio"] .studio-emblem[data-dragging="true"]{cursor:grabbing}
:root[data-theme="studio"] .studio-emblem:focus-visible{outline:3px solid var(--accent);outline-offset:0}
.studio-drag-help{position:absolute;inset:auto 0 -8px;text-align:center;font-size:.52rem;color:var(--muted);line-height:1.3;pointer-events:none}
:root[data-emblem-glow="true"] .studio-emblem:is(:hover,:focus-visible){filter:brightness(1.15) drop-shadow(0 0 9px var(--accent))}
:root[data-theme="studio"][data-accent="red"] .studio-emblem{filter:hue-rotate(135deg)}
:root[data-theme="studio"][data-accent="green"] .studio-emblem{filter:hue-rotate(270deg)}
:root[data-theme="studio"][data-accent="red"][data-emblem-glow="true"] .studio-emblem:is(:hover,:focus-visible){filter:hue-rotate(135deg) brightness(1.15) drop-shadow(0 0 9px var(--accent))}
:root[data-theme="studio"][data-accent="green"][data-emblem-glow="true"] .studio-emblem:is(:hover,:focus-visible){filter:hue-rotate(270deg) brightness(1.15) drop-shadow(0 0 9px var(--accent))}
:root[data-theme="studio"][data-accent="green"] .hero-cta{--glass-rim:#39b67a}
:root[data-theme="studio"][data-accent="green"] .swatch-studio{filter:hue-rotate(270deg)}
.effects-body{padding:1.3rem;display:grid;gap:1rem}.effects-body>p{font-size:.85rem}.effects-body>label{display:grid;gap:.5rem;font-size:.85rem}.effects-body select{background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:.75rem;border-radius:8px}.effects-body .effect-toggle{display:flex;align-items:center;gap:.7rem;min-height:44px}.effect-toggle input{width:20px;height:20px;accent-color:var(--accent)}.effects-moves{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.effects-moves button{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:.6rem;min-height:44px}.dock-tools{flex-wrap:wrap;justify-content:center}
@media(max-width:600px){:root[data-theme="studio"] .studio-playground{height:125px}.studio-drag-help{font-size:.45rem;bottom:-4px}:root[data-theme] .theme-lab[data-dock="original"] .dock-tools{gap:3px}:root[data-theme] .theme-lab[data-dock="original"]{gap:4px}:root[data-theme] .theme-lab[data-dock="original"] .theme-options>button{min-height:50px}}
@media(prefers-reduced-motion:reduce){.studio-emblem{transition:none}}

@media(pointer:fine){
:root[data-cursor="white"][data-cursor-depth="false"] { --demo-cursor:url("../assets/cursors/white.svg") 2 1; }
:root[data-cursor="white"][data-cursor-depth="true"] { --demo-cursor:url("../assets/cursors/nexus-white-3d.svg") 2 1; }
:root[data-cursor="pink"][data-cursor-depth="false"] { --demo-cursor:url("../assets/cursors/pink.svg") 2 1; }
:root[data-cursor="pink"][data-cursor-depth="true"] { --demo-cursor:url("../assets/cursors/nexus-pink-3d.svg") 2 1; }
:root[data-cursor="blue"][data-cursor-depth="false"] { --demo-cursor:url("../assets/cursors/blue.svg") 2 1; }
:root[data-cursor="blue"][data-cursor-depth="true"] { --demo-cursor:url("../assets/cursors/nexus-blue-3d.svg") 2 1; }
:root[data-cursor="red"][data-cursor-depth="false"] { --demo-cursor:url("../assets/cursors/red.svg") 2 1; }
:root[data-cursor="red"][data-cursor-depth="true"] { --demo-cursor:url("../assets/cursors/nexus-red-3d.svg") 2 1; }
:root[data-cursor="black"][data-cursor-depth="false"] { --demo-cursor:url("../assets/cursors/black.svg") 2 1; }
:root[data-cursor="black"][data-cursor-depth="true"] { --demo-cursor:url("../assets/cursors/nexus-black-3d.svg") 2 1; }
html[data-cursor] body,html[data-cursor] a,html[data-cursor] button,html[data-cursor] summary{cursor:var(--demo-cursor),auto}html[data-cursor] #studio-emblem{cursor:grab}html[data-cursor] #studio-emblem[data-dragging="true"]{cursor:grabbing}
}
@media(max-height:800px) and (min-width:1100px){
 :root[data-theme="studio"] .hero h1{font-size:clamp(2rem,3vw,3rem)}
 :root[data-theme="studio"] .studio-playground{height:145px}
 :root[data-theme="studio"] .hero-content{padding-top:6.5rem;padding-bottom:.5rem}
 :root[data-theme="studio"] .studio-hero-preview{margin-top:5rem}
}
@media(max-height:700px) and (max-width:600px){
 :root[data-theme="studio"] .studio-playground{height:86px}
 :root[data-theme="studio"] .hero h1{font-size:1.65rem}
 :root[data-theme="studio"] .hero-description{margin-top:.4rem}
 :root[data-theme="studio"] .hero-content{padding-top:5.7rem}
}
/* Le verre et son reflet ont un vrai canal alpha : aucun morceau de pièce autour. */
:root[data-theme="studio"] .studio-emblem{background-image:url('../assets/images/studio-x-transparent.png');background-size:contain;background-position:center;background-repeat:no-repeat;mask-image:none}
.accent-options>button[data-select-accent="blue"]::before{background:#1554e8}
.accent-options>button[data-select-accent="red"]::before{background:#cc202e}
.accent-options>button[data-select-accent="green"]::before{background:#147343}
#studio-emblem{-webkit-user-select:none;user-select:none}#studio-emblem:disabled{cursor:default}
#effects-dialog{width:min(560px,94vw);max-height:90dvh}

/* Forme, facettes, lumière et survol repris du curseur Nexus (lecture seule). */
@media(pointer:fine){
:root[data-cursor="white"][data-cursor-depth="true"]{--demo-cursor:url("../assets/cursors/nexus-white-3d.svg") 3 2;--demo-cursor-active:url("../assets/cursors/nexus-white-3d-hover.svg") 3 2}
:root[data-cursor="pink"][data-cursor-depth="true"]{--demo-cursor:url("../assets/cursors/nexus-pink-3d.svg") 3 2;--demo-cursor-active:url("../assets/cursors/nexus-pink-3d-hover.svg") 3 2}
:root[data-cursor="blue"][data-cursor-depth="true"]{--demo-cursor:url("../assets/cursors/nexus-blue-3d.svg") 3 2;--demo-cursor-active:url("../assets/cursors/nexus-blue-3d-hover.svg") 3 2}
:root[data-cursor="red"][data-cursor-depth="true"]{--demo-cursor:url("../assets/cursors/nexus-red-3d.svg") 3 2;--demo-cursor-active:url("../assets/cursors/nexus-red-3d-hover.svg") 3 2}
:root[data-cursor="black"][data-cursor-depth="true"]{--demo-cursor:url("../assets/cursors/nexus-black-3d.svg") 3 2;--demo-cursor-active:url("../assets/cursors/nexus-black-3d-hover.svg") 3 2}
html[data-cursor][data-cursor-depth="true"] :is(a,button,[role="button"],label,summary,select){cursor:var(--demo-cursor-active),pointer}html[data-cursor] :is(input:not([type="checkbox"],[type="radio"]),textarea){cursor:text}html[data-cursor] #studio-emblem{cursor:grab}html[data-cursor] #studio-emblem[data-dragging="true"]{cursor:grabbing}
}
