*{box-sizing:border-box} :root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#27342f;background:#edece8;font-synthesis:none;--ink:#203c34;--green:#245b48;--lime:#dceaab;--muted:#7b817b;--line:#e6e8e2;--surface:#fafbf8;--sidebar:328px} body{margin:0;height:100dvh;overflow:hidden;font-size:14px} button,input,select{font:inherit} button{cursor:pointer} button,select,input{outline-offset:3px} button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #2b7855}button{border:0;background:none;color:inherit} button:disabled{opacity:.45;cursor:wait} svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0} [data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0} [hidden]{display:none!important} .app-header{height:68px;background:#fcfcf9;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 25px;gap:30px;position:relative;z-index:3}.brand{display:flex;align-items:center;gap:11px;min-width:200px}.brand-mark{background:var(--ink);width:34px;height:38px;padding:9px 8px;display:grid;grid-template-columns:1fr 1fr;gap:3px;border-radius:2px}.brand-mark i{border:1px solid #dfebbb}.brand strong{font-size:17px;letter-spacing:3px;font-weight:650;display:block;line-height:1.2}.brand>div>span{font-size:10px;letter-spacing:3.1px;color:#8a8f84;display:block;margin-top:3px}.project-name{font-size:14px;font-weight:500;color:#677369;display:flex;gap:12px;align-items:center}.local-badge{font-size:11px;border:1px solid #dfe3d8;border-radius:4px;padding:3px 6px;color:#92968d}.header-actions{margin-left:auto;display:flex;gap:12px}.primary-btn,.quiet-btn{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;font-size:13px;font-weight:550;height:36px;padding:0 13px}.primary-btn{background:var(--ink);color:#f6f8ed}.primary-btn:hover{background:#31664f}.quiet-btn{color:#59645b}.quiet-btn:hover{background:#e9ede5}.workspace{height:calc(100dvh - 106px);display:grid;grid-template-columns:minmax(0,1fr) var(--sidebar)}#viewport{position:relative;min-height:0;overflow:hidden;background:#cfcdc6;outline:none;touch-action:none}#scene,#scene canvas,#labels{position:absolute;inset:0;width:100%;height:100%}#scene canvas{display:block;touch-action:none}#labels{pointer-events:none;overflow:hidden}.panel-label{position:absolute;transform:translate(-50%,-50%);font-size:11px;font-weight:650;color:#8b9187;padding:3px 7px;background:#fcfcf1b8;border:1px solid #fffff088;border-radius:3px;white-space:nowrap}.panel-label.selected{color:var(--ink);background:var(--lime);border-color:#708454}.dimension-label{position:absolute;transform:translate(-50%,-50%);background:#f9faf2ee;font-size:12px;letter-spacing:.4px;border-radius:3px;padding:5px 10px;color:#566053;white-space:nowrap}.scene-toolbar{position:absolute;left:24px;top:22px;display:flex;gap:10px;z-index:2}.view-tabs{display:flex;gap:3px;padding:4px;background:#fbfcf7ed;border:1px solid #fffffa80;border-radius:8px;box-shadow:0 3px 12px #3440340a}.view-tabs button{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:5px;font-size:13px;color:#737a6f}.view-tabs button.active{background:var(--ink);color:#f1f5e6}.view-tabs button:not(.active):hover{background:#e6eddd}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:5px}.icon-btn:hover{background:#e6eadd}.floating{width:43px;height:46px;background:#fbfcf7ed;border:1px solid #fffffa80;border-radius:8px;color:#6a766a}.scene-heading{position:absolute;left:28px;top:102px;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:2px;color:#788274;font-weight:650}.scene-heading h1{font-size:24px;line-height:1.2;letter-spacing:-.8px;font-weight:450;margin:9px 0;color:#354232}.scene-heading p{font-size:12px;color:#81887b;margin-top:7px}.selection-badge{position:absolute;right:22px;top:30px;display:flex;align-items:center;gap:7px;background:#e4edc9e8;border:1px solid #ccd8b2;color:#38503a;padding:8px 10px;border-radius:5px;font-size:12px}.mini-plan{position:absolute;left:24px;bottom:25px;width:156px;background:#fafbf6ed;border:1px solid #ffffff7f;border-radius:7px;box-shadow:0 2px 12px #203e3206;padding:11px 12px 5px}.mini-plan>div{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:1px;color:#858e7d}.mini-plan>div>span:last-child{letter-spacing:0;color:#a0a694}.mini-plan canvas{width:100%;height:83px}.scene-bottom{position:absolute;right:23px;bottom:26px;display:flex;align-items:center;gap:8px;font-size:10px;color:#798271;background:#fafbf1d9;border:1px solid #fff6;padding:8px 11px;border-radius:5px}.scale-marker{width:20px;border:1px solid currentColor;border-top:0;height:6px}.divider{height:10px;border-left:1px solid #c8cbbf;margin:0 2px}.app-footer{height:38px;display:flex;align-items:center;justify-content:space-between;background:#f9faf6;border-top:1px solid var(--line);padding:0 22px;color:#919588;font-size:11px}.app-footer>div{display:flex;gap:20px}.app-footer>div>span{display:flex;align-items:center;gap:6px}kbd{font-family:inherit;font-size:10px;border:1px solid #dedfd7;border-bottom-width:2px;border-radius:3px;padding:2px 5px;color:#707b68;background:#fff}.app-footer button{display:flex;gap:5px;align-items:center;font-size:11px}.app-footer svg{width:14px;height:14px}#inspector{background:#fafbf8;display:flex;flex-direction:column;min-height:0;border-left:1px solid #d9ddd4;z-index:2}.inspector-heading{padding:23px 23px 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.inspector-heading h2{margin:0;font-size:18px;letter-spacing:-.5px;font-weight:550}.small-tag{margin-left:auto;font-size:10px;border:1px solid #dfe3d8;padding:4px 6px;border-radius:3px;color:#778471;font-weight:500}.inspector-scroll{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d4dacf transparent;flex:1}.control-section{padding:20px 23px;border-bottom:1px solid var(--line)}h3{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;margin:0 0 19px}.section-number{font-size:10px;color:#9ca394;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:.5px}.count-badge{margin-left:auto;background:#e9ede3;color:#859179;border-radius:4px;min-width:22px;text-align:center;padding:3px 5px;font-size:10px;font-weight:500}.field-label{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#717c6c;gap:9px;margin:15px 0 9px}.field-label>span,.field-label>output{font-size:11px;color:#89947f}.field-label:first-of-type{margin-top:0}.segmented{display:flex;background:#edf0e9;border:1px solid #e4e8de;border-radius:5px;padding:3px;gap:3px}.segmented button{flex:1;padding:7px;font-size:13px;color:#85907b;border-radius:3px}.segmented button.active{background:#fff;color:#2e513c;box-shadow:0 1px 4px #233d2310;font-weight:600}.segmented button:hover{color:var(--green)}.number-unit{display:flex;align-items:center;border:1px solid #e1e6da;border-radius:4px;background:#fff;min-width:68px;padding:4px 7px;gap:3px}.number-unit input{width:46px;text-align:right;font-size:12px;color:#4d6045;border:0;background:none;appearance:textfield;padding:0;min-width:0}.number-unit span{color:#909a84;font-size:10px}.number-unit input::-webkit-inner-spin-button{appearance:none}input[type=range]{display:block;width:100%;height:4px;appearance:none;background:#e4e9dc;accent-color:var(--green);border-radius:5px;margin:14px 0 11px;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#4c7250;border:2px solid #fafbf8;box-shadow:0 0 0 1px #577555}input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#4c7250;border:2px solid #fff}.field-note{font-size:11px;color:#929a89;line-height:1.5;margin:8px 0 0}.layout-options{display:flex;gap:7px}.layout-options button{flex:1;border:1px solid #e1e5d9;display:flex;flex-direction:column;align-items:center;gap:7px;padding:11px 5px 9px;border-radius:5px;background:#fff;color:#99a18f}.layout-options button svg{height:22px;width:44px;stroke-width:1.5}.layout-options button span{font-size:11px}.layout-options button.active{background:#edf2e4;border-color:#779368;color:#54754b}.layout-options button:hover{border-color:#94a981}.conditional-control{padding-top:3px}.toggle-row{display:flex;align-items:center;gap:9px;padding:14px 0 0;color:#66735e;font-size:13px;cursor:pointer}.fabric-icon{height:17px;width:17px;background:repeating-linear-gradient(85deg,#252b26 0,#3c423d 3px,#242a25 6px);border-radius:3px;border:1px solid #555d51}.toggle-row input{position:absolute;opacity:0;width:1px;height:1px}.toggle{margin-left:auto;background:#d6dccd;width:30px;height:17px;border-radius:20px;position:relative;transition:background .15s}.toggle:after{content:"";position:absolute;left:3px;top:3px;width:11px;height:11px;background:#fff;border-radius:50%;transition:transform .15s}.toggle-row input:checked+.toggle{background:var(--green)}.toggle-row input:checked+.toggle:after{transform:translateX(13px)}.toggle-row input:focus-visible+.toggle{outline:2px solid var(--green);outline-offset:3px}.grid-picker-row{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding-top:12px;border-top:1px dashed #e1e6d7;color:#8b9581;font-size:11px}select{border:1px solid #e1e6da;border-radius:4px;background:#fff;color:#617455;padding:5px 6px;font-size:11px;max-width:140px}.upload-button{display:flex;align-items:center;gap:11px;border:1px dashed #b9c8aa;background:#f3f6ec;padding:13px 10px;width:100%;border-radius:5px;text-align:left;color:#627b52;font-size:12px}.upload-button:hover{background:#eaf1df;border-color:#658555}.upload-button small{display:block;font-size:9px;font-weight:400;color:#9ca78f;margin-top:4px}.plus-symbol{margin-left:auto;font-size:18px;font-weight:300}.empty-art{display:flex;align-items:center;flex-direction:column;text-align:center;padding:22px 0 1px;color:#bcc4b2}.empty-art>span{background:#f0f2e9;padding:10px;border-radius:50%}.empty-art svg{height:22px;width:22px}.empty-art p{font-size:11px;line-height:1.7;color:#9da591;margin-bottom:0}.art-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.art-list:empty{display:none}.art-thumb{position:relative;width:54px;height:59px;border:2px solid transparent;border-radius:4px;padding:4px;background:#e9ece3}.art-thumb img{width:100%;height:100%;object-fit:contain;pointer-events:none}.art-thumb.active{border-color:#5c8050;background:#e2eccf}.art-thumb.unplaced:after{content:"!";position:absolute;right:-3px;top:-3px;border-radius:9px;background:#b7803e;color:#fff;font-size:9px;padding:1px 4px}.selected-art-title{display:flex;align-items:center;gap:5px;margin:14px 0 9px;border-top:1px solid #e6e9dd;padding-top:10px}.selected-art-title>span{font-size:12px;color:#65775a;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;flex:1}.selected-art-title .icon-btn{color:#929c86;width:26px}.dimension-row{display:flex;align-items:flex-end;gap:7px}.dimension-row>label{font-size:11px;flex:1;min-width:0;color:#8b987e}.unit-input{display:flex;border:1px solid #e1e6da;background:#fff;padding:8px;border-radius:4px;margin-top:6px;gap:4px}.unit-input input{border:0;width:100%;padding:0;min-width:0;color:#57734c;font-size:12px}.unit-input>span{font-size:10px;color:#a2ad96}.dimension-row .icon-btn{min-width:23px;color:#a1ae92;margin-bottom:3px}.dimension-row .locked{color:#3b7555;background:#e9f0df}.art-placement{display:flex;gap:7px;align-items:center;margin-top:13px;font-size:11px;color:#8b987e}.art-placement select{flex:1;min-width:0}.drag-note{display:flex;gap:6px;align-items:center;margin-top:14px}.drag-note svg{height:13px;width:13px}.overlap-note{font-size:11px;background:#f7edd9;border-radius:4px;color:#9a6d32;padding:8px;line-height:1.5}.room-presets{display:flex;gap:7px}.room-presets button{flex:1;display:flex;align-items:center;gap:6px;font-size:10px;padding:8px 5px;border:1px solid #e2e7d9;border-radius:4px}.room-presets button.active{border-color:#879e73;background:#eef3e5;color:#547747}.room-presets i{height:12px;width:12px;border-radius:50%;border:1px solid #0001;flex-shrink:0}.preset-gallery{background:linear-gradient(135deg,#e9e8df 50%,#a6a39d 50%)}.preset-studio{background:linear-gradient(135deg,#d9d4cc 50%,#aa8260 50%)}.preset-night{background:linear-gradient(135deg,#373d39 50%,#656861 50%)}.color-row{display:flex;gap:16px;margin-top:16px}.color-row label{display:flex;align-items:center;justify-content:space-between;flex:1;color:#86937a;font-size:12px}.color-row input{width:27px;height:24px;border:1px solid #dbe2d1;padding:2px;background:#fff;border-radius:4px;cursor:pointer}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:0;border-radius:2px}.temperature-range{background:linear-gradient(90deg,#dbae73,#eee8d1,#b9d1ed)!important}.range-captions{display:flex;justify-content:space-between;font-size:9px;color:#9fa992}.inspector-footer{padding:13px 19px;display:flex;align-items:center;gap:7px;font-size:10px;color:#a1a993;border-top:1px solid var(--line);background:#f7f9f2}.inspector-footer svg{width:13px;height:13px}#toast{position:absolute;bottom:175px;left:50%;transform:translateX(-50%);background:#213e33ee;color:#f0f4e6;font-size:13px;border-radius:7px;padding:12px 17px;z-index:10;box-shadow:0 5px 25px #142a2522;width:max-content;max-width:85%;line-height:1.5;pointer-events:none}#drop-overlay{position:absolute;inset:10px;border:2px dashed #527957;background:#dce9cbaa;z-index:7;display:flex;align-items:center;justify-content:center;gap:12px;color:#294631;font-size:18px;border-radius:10px;pointer-events:none}#crosshair{position:absolute;left:50%;top:50%;width:6px;height:6px;border:1px solid #fff;border-radius:50%;box-shadow:0 0 3px #000;pointer-events:none}.walk-prompt{position:absolute;left:50%;top:95px;transform:translateX(-50%);white-space:nowrap;background:#244333e8;z-index:3;font-size:12px}#webgl-error{position:absolute;inset:0;background:#e3e8dc;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:25px;z-index:20;text-align:center}dialog{border:1px solid #dce3d3;border-radius:12px;background:#fbfcf7;color:#596b4e;max-width:590px;width:calc(100% - 32px);padding:26px;box-shadow:0 20px 80px #15231a38}dialog::backdrop{background:#17261a77;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:21px;font-weight:500;margin:0;color:#284732}.dialog-heading button{flex-shrink:0}dialog ol{padding-left:21px;font-size:14px;line-height:1.65}dialog li{padding-left:6px;margin:16px 0}dialog>p{font-size:12px;line-height:1.7;border-top:1px solid #e2e7d9;padding-top:15px;color:#909d80}body[data-view=walk] .scene-heading{display:none}body[data-view=top] .scene-heading{top:90px}body[data-view=walk] #viewport{cursor:crosshair}
@media(min-width:1600px){:root{--sidebar:350px}.control-section{padding:22px 26px}.field-label{font-size:14px}.scene-heading{top:116px}.scene-heading h1{font-size:30px}}
@media(max-width:1000px){:root{--sidebar:296px}.app-header{padding:0 19px}.brand{min-width:170px}.control-section{padding:18px}.inspector-heading{padding:20px 18px}.scene-toolbar{left:18px;top:18px}.scene-heading{left:21px;top:93px}.scene-heading h1{font-size:21px}.view-tabs button{padding:9px 10px;font-size:12px}.selection-badge{top:79px;right:17px}.scene-bottom{bottom:20px;right:17px}.scene-bottom .divider,.scene-bottom #eye-label{display:none}.mini-plan{left:18px;bottom:20px}.project-name{font-size:12px}}
@media(max-width:720px){.project-name{display:none}.app-header{height:58px;padding:0 14px}.brand{min-width:0}.brand strong{font-size:14px}.brand>div>span{font-size:8px}.brand-mark{width:29px;height:33px}.header-actions{gap:5px}.primary-btn,.quiet-btn{font-size:11px;padding:0 9px}.workspace{height:calc(100dvh - 94px);grid-template-columns:minmax(0,1fr) 265px}.control-section{padding:17px 14px}.inspector-heading{padding:19px 14px}.inspector-heading h2{font-size:16px}.scene-toolbar{left:12px;top:12px;gap:5px}.view-tabs button{padding:8px;font-size:11px;gap:5px}.view-tabs button svg{width:14px;height:14px}.floating{width:34px;height:40px}.scene-heading{left:16px;top:82px}.scene-heading h1{font-size:18px}.eyebrow{font-size:8px}.scene-heading p{font-size:10px}.mini-plan{width:120px;left:14px;bottom:16px}.mini-plan canvas{height:66px}.mini-plan>div{font-size:6px}.scene-bottom{display:none}.app-footer{padding:0 12px;font-size:9px;height:36px}.app-footer>div{gap:10px}.app-footer>div>span:last-child{display:none}.app-footer kbd{font-size:8px}.walk-prompt{font-size:10px;white-space:normal;max-width:85%;height:auto;padding:10px}.selection-badge{top:62px;right:12px;font-size:10px}}
@media(max-width:580px){body{overflow:hidden}.workspace{display:flex;flex-direction:column}.workspace>#viewport{height:52%;flex-shrink:0}.workspace>#inspector{height:48%;border-left:0;border-top:1px solid #d3dacb}.inspector-heading{padding:10px 16px}.inspector-heading h2{font-size:14px}.inspector-footer{display:none}.control-section{padding:18px 20px}.mini-plan{display:none}.scene-heading{top:74px}.scene-heading h1{font-size:18px}.scene-toolbar{top:12px}.selection-badge{top:19px;font-size:9px;right:12px}.app-header .quiet-btn span:last-child{display:none}.app-footer>div{gap:7px}.app-footer>div>span{font-size:9px}.scene-bottom{display:flex;font-size:8px;bottom:12px;padding:5px 7px}.scene-heading p{font-size:9px}#toast{bottom:28px;font-size:11px}body[data-view=top] .scene-heading{display:none}.upload-button small{font-size:11px}.field-label{font-size:14px}.layout-options button span,.field-note{font-size:12px}.room-presets button{font-size:12px}.grid-picker-row{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Salles équipées et mobilier. */
.venue-dialog{max-width:800px}.venue-dialog .venue-intro{border:0;padding:0;font-size:14px;color:#687263;line-height:1.7}.venue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}.venue-card{display:flex;flex-direction:column;text-align:left;gap:7px;padding:0 0 18px;overflow:hidden;background:#fff;border:1px solid #dce1d5;border-radius:8px;color:#40543e;cursor:pointer}.venue-card:hover{border-color:#7c9676;box-shadow:0 4px 16px #203d3010}.venue-card:focus-visible{outline:2px solid #446a52;outline-offset:3px}.venue-card strong,.venue-card small,.venue-card>span:not(.venue-illustration){margin:0 18px}.venue-card strong{font-size:16px;font-weight:550}.venue-card small{font-size:11px;letter-spacing:.04em;color:#8b9382}.venue-card>span:not(.venue-illustration){font-size:12px;line-height:1.6;color:#7c8574}.venue-illustration{height:75px;width:100%;margin-bottom:8px;background:linear-gradient(160deg,#f4f3ed 0 54%,#c7c4ba 55% 100%);border-bottom:1px solid #e2e4dc}.venue-salon .venue-illustration{background:repeating-linear-gradient(90deg,transparent 0 44px,#b48d6350 45px 46px),linear-gradient(160deg,#ded6c7 0 54%,#bb956c 55% 100%)}.venue-industrial .venue-illustration{background:repeating-linear-gradient(90deg,transparent 0 47px,#343b3a38 48px 49px),linear-gradient(165deg,#3b4140 0 25%,#b86145 26% 62%,#aaa398 63%)}.venue-skylight .venue-illustration{background:repeating-linear-gradient(90deg,transparent 0 38px,#8e999c55 39px 41px),linear-gradient(170deg,#d9e9eb 0 40%,#e5ded4 41% 65%,#b7b4aa 66%)}.object-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:16px 0}.object-catalog button{padding:11px 8px;border:1px solid #dce3d3;border-radius:5px;background:#f4f6ef;color:#4c6248;font-size:11px;cursor:pointer}.object-catalog button:hover{border-color:#91a586;background:#eaf0e1}.decor-section .dimension-row{gap:8px}.decor-section .unit-input{padding:7px 6px}.decor-section .dimension-row label{font-size:11px}.architecture-section{background:#f1f4ec}.architecture-section .field-note{line-height:1.65}.venue-dialog>p.field-note{font-size:11px;line-height:1.7}.decor-section .color-row{margin-top:15px}
@media(max-width:580px){.venue-dialog{padding:18px;max-height:90dvh;overflow:auto}.venue-list{gap:9px}.venue-card strong,.venue-card small,.venue-card>span:not(.venue-illustration){margin-left:11px;margin-right:11px}.venue-card strong{font-size:14px}.venue-illustration{height:45px}.venue-card>span:not(.venue-illustration){font-size:11px}.venue-card small{font-size:10px}}
.venue-list[hidden],.venue-options[hidden]{display:none}.venue-options{margin:24px 0 18px}.venue-options fieldset{margin:0;padding:0;border:0}.venue-options legend{font-size:12px;color:#7c8574;margin-bottom:12px}.venue-equipment-choice{display:flex;align-items:flex-start;gap:13px;margin:10px 0;padding:17px;border:1px solid #dce1d5;border-radius:7px;background:#fff;cursor:pointer}.venue-equipment-choice input{width:18px;height:18px;flex-shrink:0;margin:2px 0 0;accent-color:#315441}.venue-equipment-choice span{display:flex;flex-direction:column;gap:6px}.venue-equipment-choice strong{font-size:14px;font-weight:550;color:#40543e}.venue-equipment-choice small{font-size:12px;line-height:1.6;color:#7c8574}.venue-equipment-choice:has(input:disabled){opacity:.6;cursor:default}.venue-equipment-choice:focus-within{outline:2px solid #7c9676;outline-offset:2px}.venue-options .field-note{font-size:12px;line-height:1.7}.venue-options button:disabled{opacity:.5;cursor:wait}
/* Ensembles et commentaires audio. */
.group-actions,.audio-actions{display:flex;align-items:center;gap:5px;margin-top:8px}.group-actions .quiet-btn{flex:1;background:#edf2e4}.group-name{width:100%;padding:8px;border:1px solid #e1e6da;border-radius:4px;background:#fff;color:#425e44;font-size:12px}#panel-settings{margin-top:14px;padding:1px 12px 12px;border-radius:6px;background:#edf2e4}#panel-settings select{max-width:155px}.art-audio{padding:10px 0 14px;margin-bottom:12px;border-bottom:1px solid var(--line)}.art-audio .field-label{margin-top:0}.art-audio .field-note{overflow-wrap:anywhere}.audio-actions .quiet-btn{font-size:11px;padding:0 6px}#audio-markers{position:absolute;inset:0;pointer-events:none}.audio-marker{position:absolute;transform:translate(-50%,-50%);width:32px;height:32px;border:1px solid #fff9;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#183d36e8;color:#fff;box-shadow:0 2px 8px #0003;pointer-events:auto}.audio-marker:hover,.audio-marker[aria-pressed=true]{background:#eef3e5;color:#183d36}.audio-marker svg{width:17px;height:17px}#audio-player{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:5;background:#fbfcf7f5;border:1px solid #ffffffa0;box-shadow:0 4px 20px #0002;border-radius:10px;padding:10px 36px 6px 12px;width:min(360px,calc(100% - 24px))}#audio-title{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:4px;color:#344934}#audio-controls audio{display:block;width:100%;height:32px}#stop-audio{position:absolute;right:4px;top:5px}body[data-view=walk] #viewport{cursor:default}body.visit #inspector,body.visit #toggle-inspector{display:none!important}@media(pointer:coarse){.audio-marker{width:44px;height:44px}#audio-player{bottom:145px}}
/* Plan editing and full-width workspace. */
.workspace.inspector-collapsed{grid-template-columns:minmax(0,1fr)}
#inspector[hidden]{display:none!important}
#plan-controls{background:#f0f4e9}
.control-section h4{font-size:12px;font-weight:600;color:#425e44;margin:21px 0 12px}
.plan-actions{display:flex;gap:8px}
.plan-actions button{flex:1;padding:10px 8px;border:1px solid #aabf9b;border-radius:5px;background:#fff;color:#45613d;font-size:12px}
.plan-actions button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.full-select{width:100%;max-width:none}
.plan-hint{position:absolute;top:85px;left:24px;right:24px;width:fit-content;max-width:calc(100% - 48px);padding:9px 12px;border:1px solid #dbe4ce;border-radius:6px;background:#f9fcf0ed;font-size:12px;line-height:1.5;color:#49613d;pointer-events:none}
body[data-view=top] .scene-heading{display:none}
body[data-view=top] .selection-badge{top:132px}
.inspector-collapsed #viewport{height:100%;flex:1}
@media(max-width:720px){.scene-toolbar{gap:4px}.view-tabs button{padding:8px 6px}.plan-hint{left:12px;right:12px;max-width:calc(100% - 24px);font-size:10px;top:68px}.floating{width:32px;min-width:32px}.dimension-row .unit-input{padding:6px}.selection-badge{max-width:calc(100% - 24px)}}
@media(max-width:580px){body[data-view=top] .selection-badge{top:auto;bottom:43px}.workspace.inspector-collapsed>#viewport{height:100%}.plan-hint{top:62px}.walk-prompt{top:65px}.scene-bottom{pointer-events:none}}
.project-name .local-badge.unsaved{border-color:#d8c9a4;color:#8a7433;background:#faf5e6}
.library-list{display:flex;flex-direction:column;gap:8px;margin:20px 0;max-height:min(52vh,420px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d4dacf transparent}
.library-row{display:flex;align-items:center;gap:12px;border:1px solid #e3e8db;background:#fff;border-radius:7px;padding:11px 12px}
.library-row.current{border-color:#9cb388;background:#f3f7ea}
.library-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.library-info strong{font-size:13px;font-weight:600;color:#31452f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-info span{font-size:11px;color:#939c88}
.library-row .quiet-btn{height:31px;padding:0 11px;border:1px solid #e1e6da;background:#fbfcf7}
.library-row .icon-btn{color:#a6ae97}
.library-row .icon-btn:hover{color:#9a5b48;background:#f3e7e2}
.library-empty{font-size:12.5px;line-height:1.7;color:#939b87;text-align:center;padding:26px 12px;border:1px dashed #dde3d2;border-radius:7px;margin:0}
.dialog-actions{display:flex;gap:9px;justify-content:flex-end;border-top:1px solid #e2e7d9;padding-top:15px}
.dialog-actions .quiet-btn{border:1px solid #e1e6da}
.name-field{display:block;font-size:12px;color:#8b947f;margin:22px 0 7px}
#project-name-field{width:100%;border:1px solid #dde3d2;border-radius:6px;padding:10px 12px;font-size:14px;color:#3d5140;background:#fff;margin-bottom:20px}
/* Couverture et marche au doigt, communes à l'atelier et à la visite. */
.touch-pad{display:none;position:absolute;right:18px;bottom:22px;z-index:4;grid-template-columns:repeat(3,50px);grid-template-rows:repeat(2,50px);gap:6px}
.touch-pad button{display:flex;align-items:center;justify-content:center;background:#fbfcf7e6;border:1px solid #ffffffa0;border-radius:10px;color:#384236;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 3px 12px #1b261d1f}
.touch-pad button:active{background:#dfe9c9}
.touch-pad svg{width:22px;height:22px}
.touch-pad [data-key=ArrowUp]{grid-column:2;grid-row:1}.touch-pad [data-key=ArrowLeft]{grid-column:1;grid-row:2}.touch-pad [data-key=ArrowDown]{grid-column:2;grid-row:2}.touch-pad [data-key=ArrowRight]{grid-column:3;grid-row:2}
@media(pointer:coarse){body[data-view=walk] .touch-pad{display:grid}body[data-view=walk] .scene-bottom{display:none}}
/* Navigation mobile, dans les deux orientations et en plein écran. */
#touch-controls[hidden],#arrow-controls[hidden],#touch-options[hidden]{display:none!important}
.touch-controls{position:absolute;inset:0;pointer-events:none;z-index:7;--stick-size:clamp(100px,24vw,136px)}
.joystick-group{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));width:var(--stick-size);display:flex;flex-direction:column;align-items:center;gap:7px}
.joystick-left{left:max(18px,env(safe-area-inset-left))}.joystick-right{right:max(18px,env(safe-area-inset-right))}
.joystick{position:relative;width:var(--stick-size);height:var(--stick-size);border:1px solid #ffffff8c;border-radius:50%;background:#1c302d38;box-shadow:inset 0 1px 14px #ffffff20,0 4px 20px #0002;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;padding:0;cursor:grab}
.joystick:focus-visible{outline:3px solid #e9f1d4;outline-offset:4px}.joystick.engaged{background:#1c302d65;cursor:grabbing;border-color:#ffffffe0}
.joystick-cross{position:absolute;inset:17%;border:1px solid #ffffff32;border-radius:50%}.joystick-cross:before,.joystick-cross:after{content:"";position:absolute;background:#ffffff35;left:50%;top:50%;transform:translate(-50%,-50%)}.joystick-cross:before{width:1px;height:100%}.joystick-cross:after{width:100%;height:1px}
.joystick-knob{position:absolute;left:29%;top:29%;width:42%;height:42%;border:1px solid #ffffffc9;border-radius:50%;background:linear-gradient(145deg,#fffffff5,#c7d6cfed);box-shadow:0 3px 9px #10272155;transform:translate(var(--stick-x,0px),var(--stick-y,0px));pointer-events:none}
.joystick-caption{font-size:10px;font-weight:600;letter-spacing:.04em;color:#fff;text-shadow:0 1px 4px #000c;pointer-events:none}
.touch-options{position:absolute;top:max(67px,calc(env(safe-area-inset-top) + 56px));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid #ffffffb3;border-radius:7px;background:#fbfcf7e8;z-index:9;box-shadow:0 2px 12px #17261a12}
.touch-options label{font-size:10px;color:#687563}.touch-options select{font:inherit;font-size:12px;color:#274536;background:transparent;border:0;padding:5px 2px;min-height:30px;max-width:115px}
.orientation-hint{display:none;position:absolute;left:max(12px,env(safe-area-inset-left));top:max(64px,calc(env(safe-area-inset-top) + 53px));max-width:calc(100% - 165px);padding:7px 9px;margin:0;border-radius:5px;background:#fbfcf7bd;color:#52634e;font-size:10px;line-height:1.5;z-index:4;pointer-events:none}
.mobile-walk .workspace{display:block;height:calc(100dvh - 106px)}.mobile-walk .workspace>#viewport{height:100%;width:100%;min-height:0}.mobile-walk #inspector,.mobile-walk #toggle-inspector,.mobile-walk .mini-plan,.mobile-walk .scene-bottom,.mobile-walk .selection-badge,.mobile-walk #enter-walk{display:none!important}
.mobile-walk .scene-toolbar{left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));max-width:calc(100% - 24px);gap:6px;flex-wrap:wrap}.mobile-walk .floating{width:36px;min-width:36px;height:40px}.mobile-walk .app-footer #navigation-help{display:none}
.mobile-walk.touch-arrows .touch-pad{display:grid;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom))}
.mobile-walk #audio-player{bottom:calc(170px + env(safe-area-inset-bottom));width:min(360px,calc(100% - 28px))}.mobile-walk #toast{bottom:calc(170px + env(safe-area-inset-bottom));font-size:11px;max-width:calc(100% - 28px)}
.is-fullscreen #viewport{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2000!important;border:0;overflow:hidden}.immersive-view{overflow:hidden!important}
@media(max-width:720px){.mobile-walk .workspace{height:calc(100dvh - 94px)}}
@media(orientation:portrait){.mobile-walk .orientation-hint{display:block}}
@media(max-width:580px){.touch-options label{display:none}.mobile-walk .view-tabs button{padding:8px 7px}.mobile-walk .floating{min-width:32px;width:32px}.joystick-left{left:max(15px,env(safe-area-inset-left))}.joystick-right{right:max(15px,env(safe-area-inset-right))}}
@media(orientation:landscape) and (max-height:500px){.mobile-walk .app-header,.mobile-walk .app-footer{display:none}.mobile-walk .workspace{height:100dvh}.touch-controls{--stick-size:100px}.joystick-group{bottom:max(10px,env(safe-area-inset-bottom))}.mobile-walk #audio-player{bottom:calc(130px + env(safe-area-inset-bottom));width:min(340px,calc(100% - 270px))}.mobile-walk #toast{bottom:calc(130px + env(safe-area-inset-bottom))}.mobile-walk .touch-pad{grid-template-columns:repeat(3,42px);grid-template-rows:repeat(2,42px)}}
/* Catégories de l'atelier : une seule ouverte, les commandes restent en place. */
.inspector-heading{padding:18px;gap:12px}
.inspector-heading>div{min-width:0;flex:1}
.inspector-heading h2{font-size:17px}
.inspector-heading p{font-size:11px;line-height:1.5;color:#6c7867;margin:5px 0 0}
#collapse-sections{width:36px;height:36px;flex-shrink:0;color:#61745b;border:1px solid #dfe5d8;background:#fff}
.inspector-scroll{overscroll-behavior:contain;scroll-padding-top:78px}
.inspector-category{border-bottom:1px solid var(--line);background:var(--surface)}
.inspector-category>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:74px;padding:14px 18px;cursor:pointer;user-select:none;touch-action:manipulation;position:sticky;top:0;z-index:1;background:var(--surface)}
.inspector-category>summary::-webkit-details-marker{display:none}
.inspector-category>summary:hover{background:#edf2e7}
.inspector-category>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px;border-radius:4px}
.inspector-category[open]>summary{background:#eaf0e1;box-shadow:inset 3px 0 var(--green)}
.category-icon{width:30px;height:32px;border:1px solid #dfe6d6;border-radius:7px;background:#fff;color:#536f49}
.category-icon svg{width:17px;height:17px}
.category-title{flex:1;min-width:0;font-weight:600;font-size:13px;color:#344b30;line-height:1.4}
.category-title small{display:block;font-size:10px;font-weight:400;line-height:1.5;color:#6c7867;margin-top:3px}
.category-chevron{color:#738468;transition:transform .15s}
.category-chevron svg{width:15px;height:15px}
.inspector-category[open]>summary .category-chevron{transform:rotate(180deg)}
.inspector-category .count-badge{margin-left:0;flex-shrink:0;color:#536d45;background:#e2e9d8;font-variant-numeric:tabular-nums}
.inspector-category .control-section{border:0;padding:18px;background:var(--surface)}
.inspector-category .field-label{color:#5b6d52}
.inspector-category .field-note{color:#717d67}
.inspector-category select{min-height:32px}
.section-action{width:100%;border:1px solid #dbe4d1;background:#eef3e6;color:#3e5d36}
.support-actions{margin:0 0 16px}
.app-header .project-name{min-width:0}
.app-header #project-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-header .local-badge{flex-shrink:0}
@media(max-width:1100px){.app-header{gap:16px}.app-header .brand{min-width:0}.header-actions{gap:5px}}
@media(max-width:580px){.inspector-heading{padding:10px 16px}.inspector-heading p{margin-top:2px}.inspector-category>summary{min-height:62px;padding:10px 16px}.category-title{font-size:14px}.category-title small{font-size:11px}.inspector-category .control-section{padding:16px 20px}.inspector-category select{min-height:36px}}
/* Visite publique : l'habillage est déjà défini dans le HTML du serveur. */
body.visit{color-scheme:dark}
body.visit .project-name{flex:1}
body.visit .header-actions{flex-shrink:0;margin-left:0}
.visit-quality{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px;color:#a9aea6}
.visit-quality select{background:#17191b;color:#ecece8;border-color:#343638;max-width:160px;min-height:36px;font-size:12px;padding:7px}
@media(max-width:580px){.visit-quality>span{display:none}.visit-quality select{max-width:130px;font-size:11px}body.visit .app-header{gap:10px}body.visit .project-name{font-size:12px}}
body.visit .touch-options{color-scheme:light}
body.visit .header-actions>button,body.visit #project-badge{display:none!important}
body.visit .workspace{grid-template-columns:minmax(0,1fr)}
body.visit .workspace>#viewport{height:100%;flex:1}
body.visit-pending .app-header,body.visit-pending .workspace,body.visit-pending .app-footer{visibility:hidden}
body.visit{--ink:#151618;background:#0c0d0e}
body.visit .app-header{background:#0c0d0e;border-bottom-color:#1f2124;color:#ecece8;gap:18px}
body.visit .brand{min-width:0}
.visit-back{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px 0 9px;border:1px solid #2c2e31;border-radius:6px;color:#bdbeb9;font-size:13px;text-decoration:none;white-space:nowrap;transition:color .15s,border-color .15s}
.visit-back:hover{color:#fff;border-color:#5b5e62}
body.visit .project-name{color:#f3f3ef;font-size:15px;font-weight:550;min-width:0}
body.visit #project-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.visit .quiet-btn{color:#c9cac5}body.visit .quiet-btn:hover{background:#1c1e21}
body.visit .app-footer{background:#0c0d0e;border-top-color:#1f2124;color:#8f918c}
body.visit kbd{background:#17191b;border-color:#303236;color:#c8c9c4}
body.visit .scene-heading{padding:16px 20px 18px;background:#fbfcf7e8;border:1px solid #ffffff9c;border-radius:8px;box-shadow:0 6px 24px #1b261d14;max-width:min(560px,calc(100% - 56px))}
body.visit .scene-heading h1{margin:8px 0 0;text-wrap:balance}
body.visit .scene-heading p{color:#66705f;font-size:13px;margin:6px 0 0}
body.visit .scene-bottom .divider,body.visit #eye-label{display:none}
.visit-start{pointer-events:auto;margin-top:16px;height:40px;padding:0 16px}
#visit-loading{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:24px;background:#0c0d0e;color:#ecece8}
.visit-loading-box{width:min(380px,100%);display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.visit-loading-box strong{font-size:21px;font-weight:450;letter-spacing:-.3px;line-height:1.3}
.visit-track{width:100%;height:2px;background:#26282b;border-radius:2px;overflow:hidden}
.visit-track i{display:block;width:0;height:100%;background:#ecece8;transition:width .25s}
.visit-loading-box span{font-size:12.5px;line-height:1.6;color:#8f918c}
#visit-loading.failed .visit-track{display:none}
@media(max-width:720px){body.visit .project-name{display:flex;font-size:13px}body.visit .header-actions .quiet-btn span:last-child{display:none}body.visit .visit-back span{display:none}body.visit .visit-back{padding:0 9px}}
@media(pointer:coarse){body.visit #enter-walk{display:none!important}body.visit #navigation-help{visibility:hidden}}
