:root{--ink:#20282c;--muted:#626c6d;--red:#d81f26;--line:#e3e5e0;--paper:#f7f7f4;color-scheme:light;font-family:Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}
button,a,summary{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}
button:focus-visible,a:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #d81f2680;outline-offset:4px}
button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
[hidden]{display:none!important}
.topbar{max-width:1600px;margin:auto;height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line);gap:24px}
.brand{text-decoration:none;font-size:30px;font-weight:800;letter-spacing:-1.8px;color:var(--ink)}.brand span,.red{color:var(--red)}
.topbar>span{font-size:12px;color:var(--muted)}.back{color:var(--ink);font-size:12px;text-decoration:none}.back span{margin-left:12px}
main{max-width:1600px;margin:auto;padding:0 48px}
.intro{display:flex;align-items:flex-end;justify-content:space-between;padding:48px 0 34px;gap:32px}
.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:10px;font-weight:700;color:var(--muted);margin:0 0 16px}
h1{font-size:clamp(36px,4.2vw,62px);line-height:1.03;font-weight:500;letter-spacing:-2.5px;margin:0}
.intro-copy{font-size:15px;line-height:1.8;color:var(--muted);margin:0 0 2px;max-width:390px}

/* Une seule colonne : la scène garde sa largeur, volet ouvert ou fermé. */
.experience{display:block;overflow:hidden;border:1px solid #dadfd9;border-radius:18px;background:#fff;box-shadow:0 14px 50px #1b2e2405}
.visual-column{min-width:0}
.stage{position:relative;isolation:isolate;height:clamp(380px,56svh,680px);background:#f5f5f2;overflow:hidden}
.stage>img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;padding:58px 30px 64px;mix-blend-mode:multiply}
.stage.ready>img{visibility:hidden}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:1;touch-action:pan-y pinch-zoom;cursor:grab}
.stage canvas:active{cursor:grabbing}
.stage-top{position:absolute;top:23px;left:25px;right:25px;z-index:2;display:flex;align-items:center;justify-content:space-between;pointer-events:none;gap:12px;font-size:10px;letter-spacing:.08em}
.scene-label{display:flex;align-items:center;gap:8px;padding:7px 10px;background:#fff;border:1px solid #e7e9e2;border-radius:30px;white-space:nowrap}
.scene-label i{width:5px;height:5px;border-radius:50%;background:#8a9390}.stage.ready .scene-label i{background:#709582}
.model-label{color:var(--muted);font-size:9px;letter-spacing:.13em;background:#f5f5f2}
.activate{position:absolute;z-index:3;bottom:40px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:calc(100% - 28px);min-height:48px;padding:15px 23px;border:0;border-radius:8px;background:var(--ink);color:#fff;font-size:13px;box-shadow:0 9px 30px #14221a20}
.activate:hover{background:#344139}.stage.ready .activate{display:none}
.gesture-hint{position:absolute;z-index:2;bottom:17px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);padding:3px 6px;border-radius:4px;background:#f5f5f2;pointer-events:none;text-align:center;font-size:10px;line-height:1.5;color:#616c64}

/* Deux actions principales, puis trois réglages secondaires. */
.assembly-controls{border-top:1px solid var(--line);padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff}
.mode-buttons{display:flex;gap:4px;padding:4px;background:#f2f3ef;border-radius:9px}
.mode-buttons button{border:0;background:transparent;color:#56615b;min-height:48px;padding:0 23px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:600}
.mode-buttons button[aria-pressed=true]{background:var(--ink);color:#fff;box-shadow:0 2px 5px #20282c16}
.mode-buttons #explode[aria-pressed=true]{background:var(--red)}.mode-buttons svg{width:18px;height:18px}
.view-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-shrink:0}
.icon-button,.reset-button{height:44px;min-width:44px;border:1px solid #dce1db;background:#fff;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:8px;color:#48534c}
.icon-button{width:44px;padding:0}.reset-button{padding:0 13px;font-size:12px}
.icon-button:hover:not(:disabled),.reset-button:hover:not(:disabled){background:#f5f5f2;border-color:#adb8ae}
.view-help{font-size:11px;line-height:1.6;color:var(--muted);margin:0;padding:0 26px 15px}

/* Les détails restent natifs, accessibles au clavier et repliés au départ. */
.construction-details{border-top:1px solid var(--line)}
.construction-details>summary{min-height:64px;padding:17px 24px;display:flex;align-items:center;gap:15px;cursor:pointer;list-style:none;background:#fcfcfa}
.construction-details>summary::-webkit-details-marker{display:none}
.construction-details>summary>span:first-child{font-size:14px;font-weight:700}
.construction-details>summary>small{font-size:12px;line-height:1.5;color:var(--muted)}
.details-indicator{margin-left:auto;font-size:23px;font-weight:400;line-height:1}
.construction-details[open] .details-indicator{transform:rotate(45deg)}
.construction-details[open]>summary{border-bottom:1px solid var(--line)}
.construction-content{padding:26px;display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,2fr);gap:34px}
.inspection-section h2,.explorer-panel h2{font-size:23px;font-weight:500;letter-spacing:-.6px;line-height:1.2;margin:0 0 10px}
.inspection-section>p,.panel-intro{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 18px}
.detail-views{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.detail-views button{font-size:12px;min-height:44px;border:1px solid #e0e4dc;border-radius:7px;padding:10px 13px;text-align:left;color:#48534c;background:#fff}
.detail-views button:hover:not(:disabled){background:#f2f3ef}
.detail-views button[aria-pressed=true]{background:#f7eeeb;border-color:#f0dad5;color:#9e3f37}
.explorer-panel{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 22px}
.panel-heading,.explorer-panel>h2,.panel-intro{grid-column:1/-1}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.panel-heading .eyebrow{font-size:9px;letter-spacing:.12em;margin:0}
.part-count{font-size:10px;color:var(--muted);white-space:nowrap}
.category-list{display:grid;gap:4px;align-content:start}
.category-list button{width:100%;display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 10px;border:1px solid transparent;background:transparent;border-radius:6px;text-align:left;font-size:12px;color:#56615b}
.category-list button:hover:not(:disabled){background:#f6f7f3}
.category-list button[aria-pressed=true]{background:#f7eeeb;border-color:#f0dad5;color:#9e3f37}
.category-number{font-size:10px;color:#5f695f;flex-shrink:0}.category-count{margin-left:auto;font-size:10px;font-variant-numeric:tabular-nums;color:#5f695f}
.selection-card{align-self:start;padding:20px 17px;background:#f7f7f3;border:1px solid #e8ebe2;border-radius:9px}
.selection-card>p:first-child{font-size:10px;letter-spacing:.13em;font-weight:700;color:#616d5e;margin:0 0 9px}
.selection-card h3{font-size:16px;font-weight:500;line-height:1.3;margin:0 0 8px}
.selection-card #selection-description{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 13px}
.section-value{font-size:11px;font-weight:600;color:#48584b;line-height:1.5}

.example-note{font-size:11px;line-height:1.65;color:var(--muted);margin:14px 3px 0;max-width:1000px}
.viewer-status{font-size:11px;min-height:18px;line-height:1.5;color:var(--muted);margin:10px 3px 0}
.reading-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:50px;padding:38px 0 30px;border-bottom:1px solid var(--line)}
.reading-guide>div>span{font-size:10px;letter-spacing:.11em;color:#616d5e}
.reading-guide h3{font-size:17px;font-weight:500;letter-spacing:-.3px;margin:12px 0 8px}
.reading-guide p{font-size:12px;color:var(--muted);line-height:1.7;margin:0;max-width:330px}
.limits{font-size:11px;line-height:1.8;color:var(--muted);padding:20px 0}
.limits summary{cursor:pointer;width:fit-content;min-height:44px;display:flex;align-items:center;gap:8px;color:#616b62}
.limits summary::before{content:'+';font-size:18px}.limits[open] summary::before{content:'−'}.limits p{max-width:980px}
.page-footer{max-width:1600px;margin:12px auto 0;padding:21px 48px 28px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}
.page-footer>span:first-child{font-size:18px;font-weight:700;letter-spacing:-.8px;color:var(--ink)}

body.embed .topbar,body.embed .reading-guide,body.embed .page-footer{display:none}
body.embed .intro{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.embed main{padding:8px}body.embed .experience{border-radius:10px}
body.embed .stage{height:clamp(280px,calc(100svh - 235px),560px)}
body.embed .limits{padding:10px 2px}

@media(max-width:1120px){
 main{padding:0 28px}.topbar{padding:0 28px}.intro-copy{font-size:13px}.reading-guide{gap:28px}.page-footer{padding:21px 28px}
 .construction-content{grid-template-columns:1fr;gap:26px}.detail-views{flex-direction:row;flex-wrap:wrap}.detail-views button{flex:1;text-align:center}
}
@media(max-width:680px){
 .topbar{height:68px;padding:0 20px}.topbar>span{display:none}.brand{font-size:27px}.back{font-size:10px}.back span{margin-left:5px}main{padding:0 14px}
 .intro{padding:30px 8px 25px;display:block}.eyebrow{font-size:9px;margin-bottom:14px}.intro h1{font-size:40px;letter-spacing:-1.7px}.intro-copy{font-size:12px;line-height:1.7;margin-top:17px}
 .experience{border-radius:12px}.stage{height:380px}.stage-top{top:16px;left:14px;right:14px;font-size:9px}.model-label{font-size:8px}
 .activate{bottom:40px;font-size:12px;padding:14px 17px;gap:8px}.stage>img{padding:58px 18px 65px}.gesture-hint{font-size:9px;bottom:13px}
 .assembly-controls{padding:12px;flex-wrap:wrap;gap:10px}.mode-buttons{width:100%}.mode-buttons button{flex:1;padding:0 13px}.view-tools{width:100%;justify-content:center}.view-help{padding:0 16px 12px;font-size:10px;text-align:center}
 .construction-details>summary{padding:15px 16px;gap:8px;flex-wrap:wrap}.construction-details>summary>small{font-size:11px}.construction-details>summary>span:first-child{font-size:13px}.details-indicator{font-size:22px}
 .construction-content{padding:20px 16px;gap:24px}.inspection-section h2,.explorer-panel h2{font-size:21px}.detail-views{gap:5px}.detail-views button{font-size:11px;padding:9px 7px;min-width:80px}
 .explorer-panel{grid-template-columns:1fr;gap:0}.panel-heading,.explorer-panel>h2,.panel-intro{grid-column:auto}.panel-heading .eyebrow{font-size:8px}.part-count{font-size:9px}
 .category-list{grid-template-columns:1fr 1fr;gap:5px}.category-list button{min-height:45px;padding:9px 7px;font-size:11px;gap:7px}.category-list [data-category=all]{grid-column:1/-1}.selection-card{margin-top:16px;padding:16px}
 .viewer-status{font-size:10px;margin:10px 4px 0}.example-note{font-size:10px}.reading-guide{grid-template-columns:1fr;gap:23px;padding:28px 8px}.reading-guide h3{margin:7px 0}.reading-guide p{max-width:none}.limits{padding:18px 8px}.page-footer{padding:18px 21px;margin-top:0;font-size:8px}
 body.embed .stage{height:clamp(260px,43svh,380px)}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
