
/* Atelier de nuit : fond ardoise des rendus 3D, accent orange de la pate a modeler. Theme unique, volontairement sombre. */
:root { --bg:#17181a; --panel:#222427; --fg:#ece8e1; --muted:#aaa59b; --line:#34363a; --clay:#e8863a; --display:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; --body:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color-scheme:dark; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:64px; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
body { margin:0; background:var(--bg); color:var(--fg); font:17px/1.6 var(--body); }
a { color:var(--clay); }
a:focus-visible, button:focus-visible, .pano:focus-visible, video:focus-visible { outline:2px solid var(--clay); outline-offset:2px; }
img, video { display:block; max-width:100%; height:auto; }
.hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:center; gap:40px; max-width:1200px; margin:0 auto; padding:40px 16px 32px; }
.hero-video { width:100%; border-radius:4px; background:#000; }
.kicker { display:flex; align-items:center; gap:10px; margin:0 0 12px; color:var(--muted); letter-spacing:.08em; text-transform:uppercase; font-size:.82rem; }
.kicker img { width:30px; height:auto; border-radius:3px; }
h1 { margin:0 0 16px; font:400 clamp(2.1rem,5vw,3.4rem)/1.08 var(--display); text-wrap:balance; }
.hero p { max-width:52ch; }
.archive { color:var(--muted); font-size:.92rem; }
.menu { position:sticky; top:0; z-index:5; display:flex; gap:4px 20px; overflow-x:auto; padding:10px max(16px,calc(50% - 584px)); background:var(--bg); border-block:1px solid var(--line); font-size:.92rem; white-space:nowrap; }
.menu a { color:var(--fg); text-decoration:none; }
.menu a:hover { color:var(--clay); }
main { max-width:1200px; margin:0 auto; padding:0 16px 48px; }
section { padding-top:56px; }
h2 { margin:0 0 12px; font:400 clamp(1.7rem,3.5vw,2.4rem)/1.15 var(--display); text-wrap:balance; }
h3 { margin:32px 0 12px; font:400 1.35rem/1.25 var(--display); text-wrap:balance; }
h4 { margin:24px 0 8px; font-size:1rem; }
.grid { display:grid; gap:20px; margin-top:20px; }
.two { grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); }
.three { grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); }
.gallery { grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
figure { margin:0; min-width:0; }
figure video, figure img { width:100%; border-radius:4px; background:#000; }
figcaption { margin-top:8px; color:var(--muted); font-size:.92rem; }
.orig { margin-left:6px; font-size:.82rem; color:var(--muted); }
.feature { max-width:800px; margin-top:20px; }
.narrow { max-width:440px; }
.wide-fig { max-width:640px; margin:16px 0; }
.steps figure img { background:#fff; object-fit:contain; aspect-ratio:4/3; }
.gallery:not(.steps) img { aspect-ratio:4/3; object-fit:cover; }
.zoom { display:block; cursor:zoom-in; }
.text { max-width:760px; }
.dead { color:var(--muted); font-size:.82rem; }
.pano-wrap { margin-top:20px; }
.pano { overflow-x:auto; overflow-y:hidden; display:flex; border-radius:4px; background:#000; cursor:grab; scrollbar-width:thin; touch-action:pan-x pan-y; }
.pano.drag { cursor:grabbing; user-select:none; }
.pano img { flex:none; width:auto; max-width:none; height:clamp(240px,48vw,440px); border-radius:0; }
footer { max-width:1200px; margin:0 auto; padding:16px; color:var(--muted); font-size:.9rem; border-top:1px solid var(--line); }
footer a { color:inherit; }
.lightbox { max-width:96vw; max-height:96vh; padding:0; border:0; background:transparent; }
.lightbox::backdrop { background:rgba(0,0,0,.88); }
.lightbox img { max-width:96vw; max-height:92vh; width:auto; height:auto; object-fit:contain; background:#fff; }
.lightbox .close { position:fixed; top:max(10px,env(safe-area-inset-top,0px)); right:max(14px,env(safe-area-inset-right,0px)); width:44px; height:44px; border:0; border-radius:50%; background:var(--panel); color:var(--fg); font-size:1.6rem; cursor:pointer; }
@media (max-width:760px) { .hero { grid-template-columns:minmax(0,1fr); padding-top:20px; gap:20px; } .hero-text { order:-1; } }
