.trial-main{max-width:1440px;padding-top:130px;padding-bottom:60px}.trial-heading{display:flex;justify-content:space-between;align-items:center;gap:26px}.trial-heading h1{font-size:clamp(34px,4vw,56px);margin:8px 0 14px}.trial-heading .lead{max-width:760px;font-size:17px}.trial-pill{border:1px solid var(--accent);border-radius:30px;padding:10px 17px;font-size:13px;white-space:nowrap;color:var(--accent-bright)}.trial-steps{display:flex;list-style:none;gap:0;border-bottom:1px solid var(--line);padding:0;margin:30px 0 18px}.trial-steps li{flex:1;padding:15px 8px;color:var(--fg-dim);font-size:14px;border-bottom:2px solid transparent}.trial-steps li.active{color:var(--accent-bright);border-color:var(--accent)}.trial-notice:empty{display:none}.trial-notice{padding:14px 18px;border:1px solid var(--accent);border-radius:12px;margin:18px 0;background:var(--surface)}.trial-notice.error{border-color:#ce796b;color:#ffd5cc}.trial-workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.trial-plan-card,.trial-selection,.trial-panel,.dwelling-result{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px}.trial-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.trial-card-head h2{font-size:25px;margin:0}.trial-card-head>span{color:var(--accent-bright);font-variant-numeric:tabular-nums}.trial-drop{min-height:340px;border:1px dashed var(--line-2);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px;padding:30px}.trial-drop h3{font-size:26px}.trial-drop p{max-width:460px;margin:0;color:var(--fg-soft);font-size:14px}.trial-drop input[type=file]{width:100%;max-width:280px;font-size:12px}.trial-doc-icon{border:1px solid var(--accent);padding:15px 12px;border-radius:9px;font-size:14px;font-weight:700;color:var(--accent-bright)}.trial-selection h2{font-size:28px;margin:12px 0}.trial-selection>p,.trial-scope p{font-size:14px;line-height:1.7;color:var(--fg-soft)}.trial-selection>.btn{width:100%;margin-top:16px}.trial-help{font-size:12px!important;color:var(--fg-soft);line-height:1.6;margin:10px 0}.trial-scope{margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.trial-scope b{color:var(--accent-bright)}.trial-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.trial-toolbar .btn{padding:8px 13px;font-size:12px}.trial-toolbar select{padding:8px;background:var(--surface-2);color:var(--fg);border:1px solid var(--line-2);border-radius:7px}.trial-plan-scroll{height:500px;overflow:auto;background:#dad6cf;border-radius:10px;overscroll-behavior:contain}.trial-plan-scroll #plan-stage{position:relative;min-width:0}#plan-canvas{width:100%;height:auto;display:block}#plan-overlay{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:pan-x pan-y}#plan-overlay:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.zone-list{padding:0;list-style:none;margin:20px 0}.zone-list li{display:grid;grid-template-columns:60px 1fr auto;gap:8px;align-items:center;margin:12px 0;font-size:13px}.zone-list img{width:60px;height:54px;object-fit:contain;background:#fff;border-radius:5px}.zone-list button{background:none;color:var(--fg-soft);border:1px solid var(--line-2);border-radius:5px;padding:5px;cursor:pointer}.trial-panel{max-width:740px;margin:24px auto;padding:28px}.trial-panel h2{font-size:32px;margin:18px 0}.trial-panel p{color:var(--fg-soft);line-height:1.7}.trial-panel form{margin-top:20px}.trial-panel .btn{margin-top:12px}.trial-check{display:flex;gap:12px;align-items:flex-start;font-size:13px;color:var(--fg-soft);line-height:1.6;margin:20px 0}.trial-check input{margin-top:5px;width:18px;height:18px;flex:none;accent-color:var(--accent)}.trial-panel a,.trial-bottom a{color:var(--accent-bright);text-decoration:underline}.trial-bottom{display:flex;gap:18px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:35px;font-size:13px}.trial-bottom p{margin:0}.dwelling-result{margin:20px 0;overflow-x:auto}.dwelling-result h3{font-size:24px}.dwelling-result .demo-badges{margin-bottom:10px}.trial-main button:disabled{opacity:.45;cursor:not-allowed;transform:none}.trial-main [hidden]{display:none!important}.trial-main :focus-visible{outline:2px solid var(--accent-bright);outline-offset:3px}.trial-loading{opacity:.65;pointer-events:none}
@media(max-width:1040px){.trial-main{padding-top:155px}.trial-workspace{grid-template-columns:minmax(0,1fr) 270px}.trial-heading{display:block}.trial-pill{display:inline-block;margin-top:16px}.trial-heading h1{font-size:42px}}
@media(max-width:760px){.trial-workspace{grid-template-columns:1fr}.trial-main{padding-top:155px}.trial-heading h1{font-size:35px}.trial-steps li{font-size:12px}.trial-plan-scroll{height:390px}.trial-panel,.trial-plan-card,.trial-selection{padding:17px}.trial-card-head{flex-wrap:wrap}.trial-card-head h2{font-size:24px}.trial-drop{padding:20px;min-height:300px}.trial-heading .lead{font-size:15px}.trial-bottom{align-items:flex-start;flex-direction:column}.trial-toolbar{gap:6px}}
.trial-panel a.btn-primary{color:#171207;text-decoration:none}

.zone-actions{display:flex;gap:6px}.zone-actions button{min-height:34px}.trial-limit{padding:12px;border:1px solid var(--accent);border-radius:10px;color:var(--fg-soft);font-size:13px;line-height:1.6}#progress-bar{display:block;width:100%;height:12px;margin-top:18px;accent-color:var(--accent)}
/* Atelier immersif : le document occupe l'espace, les commandes restent proches. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.trial-drop:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.workspace-topbar{display:flex;gap:20px;align-items:center;padding:2px 0 14px;border-bottom:1px solid var(--line);min-height:55px}.workspace-brand{font:600 27px 'Playfair Display',serif;color:var(--fg);text-decoration:none}.workspace-brand span{display:block;font:10px Inter,sans-serif;letter-spacing:.18em;color:var(--accent)}#workspace-filename{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg-soft);font-size:14px}.workspace-topbar .btn{font-size:13px;padding:9px 13px}
body.workspace-open{overflow:hidden}body.workspace-open>.site-header,body.workspace-open>.site-footer,body.workspace-open .trial-heading,body.workspace-open .trial-bottom{display:none}body.workspace-open .trial-main{position:fixed;inset:0;max-width:none;width:100%;height:100dvh;overflow:auto;padding:14px 24px 24px;background:#0a0908;z-index:100}body.workspace-open .trial-steps{margin:10px 0 12px}body.workspace-open .trial-steps li{padding:8px}body.workspace-open .trial-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:16px;min-height:0}body.workspace-open .trial-plan-card{display:flex;flex-direction:column;padding:16px;min-height:0}body.workspace-open #plan-tools{display:flex;flex-direction:column;min-height:0}body.workspace-open .trial-plan-scroll{height:calc(100dvh - 345px);min-height:300px}body.workspace-open .trial-selection{max-height:calc(100dvh - 150px);overflow:auto;padding:18px}body.workspace-open .trial-scope{display:none}.workspace-open .trial-notice{margin:8px 0;padding:8px 14px;font-size:14px}.workspace-open .trial-panel{margin:26px auto}
.trial-toolbar .tool-mode.active{border-color:var(--accent);background:#d4af3722;color:var(--accent-bright)}.trial-toolbar{gap:7px}.trial-toolbar .btn{font-size:13px;min-height:36px}.trial-toolbar output{font-size:13px;min-width:46px;color:var(--fg)}.hd-status{font-size:12px;color:#90c9b7;padding:5px 8px;border-radius:8px;background:#224c3a55}.trial-plan-scroll{position:relative;background:#b5b7ba;border:1px solid #444b55}#hd-canvas{position:absolute;pointer-events:none;display:none;z-index:1}#plan-overlay{z-index:2;touch-action:none}#plan-overlay.pan-mode{cursor:grab}#plan-overlay.is-panning{cursor:grabbing}.zone-list li{grid-template-columns:64px 1fr;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.zone-list img{height:64px;width:64px}.zone-info{min-width:0}.zone-info label{font-size:11px;color:var(--fg-soft);display:block;margin-bottom:4px}.zone-info input{width:100%;min-width:0;border:1px solid var(--line-2);background:#0a0908;color:var(--fg);border-radius:7px;font-size:15px;padding:8px}.zone-actions{grid-column:2;flex-wrap:wrap}.zone-actions button{font-size:12px;padding:5px 8px}.zone-list{margin:12px 0}.trial-selection h2{font-size:26px}.trial-limit{font-size:12px}.trial-selection>.btn{position:sticky;bottom:0;z-index:3;box-shadow:0 0 20px #0a0908}
.publipostage-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:14px;color:var(--fg-soft);margin:20px 0 10px}.publipostage-actions label{display:flex;gap:9px;align-items:center}.publipostage-actions input{accent-color:var(--accent)}.publipostage-scroll{overflow:auto;max-height:55vh;border:1px solid #3a4656;border-radius:12px;background:#f5f7fa;color:#263141;scrollbar-color:#b99636 #19202a}.publipostage-table{border-collapse:separate;border-spacing:0;min-width:100%;font:14px Inter,sans-serif}.publipostage-table th,.publipostage-table td{min-width:112px;text-align:center;padding:17px 13px;border-right:1px solid #d9dfe6;border-bottom:1px solid #d9dfe6;white-space:nowrap}.publipostage-table thead th{position:sticky;top:0;background:#213247;color:#fff;z-index:3;white-space:normal;min-width:125px}.publipostage-table th small{display:block;font-size:11px;opacity:.75;margin-top:7px}.publipostage-table tr:nth-child(even) td{background:#edf2f7}.publipostage-table tr:nth-child(odd) td{background:#fff}.publipostage-table .exterior-col{background:#705819}.publipostage-table .fixed-name{position:sticky;left:0;min-width:155px;max-width:155px;width:155px;text-align:left;font-weight:700;z-index:2;box-sizing:border-box}.publipostage-table .fixed-type{position:sticky;left:155px;min-width:75px;width:75px;max-width:75px;z-index:2;box-shadow:3px 0 5px #142b3920;box-sizing:border-box}.publipostage-table thead .fixed-name,.publipostage-table thead .fixed-type{z-index:5}.publipostage-table td.total-cell{background:#eee5ca!important;font-weight:700}.publipostage-table .unreadable{color:#8a5000;background:#fff1dd!important}.detail-heading{font-size:24px;margin-top:28px}.dwelling-result{padding:0;margin:12px 0}.dwelling-result>summary{cursor:pointer;padding:18px 20px;font-weight:600;font-size:16px}.dwelling-result .detail-body{padding:0 20px 20px}.result-summary{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.result-summary span{padding:12px 18px;border:1px solid var(--line-2);border-radius:10px;font-size:14px;color:var(--fg-soft)}.trial-main #trial-results{padding-bottom:80px}
@media(max-width:760px){body.workspace-open .trial-main{padding:10px}body.workspace-open .trial-workspace{grid-template-columns:1fr}body.workspace-open .trial-plan-scroll{height:55dvh;min-height:300px}body.workspace-open .trial-selection{max-height:none;padding-bottom:75px}.workspace-topbar{gap:10px}.workspace-brand{font-size:22px}.workspace-brand span{font-size:8px}#workspace-filename{display:none}.workspace-topbar .btn{margin-left:auto}.trial-toolbar .btn{padding:8px}.publipostage-actions{align-items:flex-start;flex-direction:column}.publipostage-table .fixed-name{min-width:120px;max-width:120px;width:120px}.publipostage-table .fixed-type{left:120px;min-width:60px;max-width:60px;width:60px}.publipostage-table th,.publipostage-table td{padding:14px 9px}.trial-steps li{font-size:12px}.trial-card-head h2{font-size:21px}}

.publipostage-table tbody th.fixed-name{background:#fff}.publipostage-table tbody tr:nth-child(even) th.fixed-name{background:#edf2f7}

.trial-session{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin:8px 0;font-size:13px;color:var(--fg-soft)}
#crop-video-dialog{width:min(900px,92vw);max-height:90dvh;overflow:auto;border:1px solid #8c6d1f;border-radius:18px;background:#141110;color:#f4f0e4;padding:24px}
#crop-video-dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}
#crop-video-dialog h2{font-size:26px;margin:0 0 18px}#crop-video-dialog video{display:block;width:100%;max-height:65dvh;background:#000;border-radius:10px;margin-bottom:18px}

/* Fullscreen crops keep their coordinates; CSS fills the viewport when native fullscreen is unavailable. */
.plan-view-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.plan-view-actions>span{color:var(--accent-bright);font-variant-numeric:tabular-nums}
#plan-fullscreen{display:inline-flex;align-items:center;gap:8px;font-size:13px;padding:9px 12px;min-height:38px}
body.plan-expanded{overflow:hidden}body.plan-expanded .trial-plan-card{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;height:100dvh;max-height:100dvh;border-radius:0;padding:12px 18px;background:#0a0908;box-sizing:border-box}
body.plan-expanded .trial-card-head{flex-shrink:0;margin-bottom:4px}body.plan-expanded #plan-tools{display:flex;flex:1;flex-direction:column;min-height:0}
body.plan-expanded .trial-plan-scroll{flex:1;height:auto;min-height:0}body.plan-expanded #plan-tools>.trial-help:last-child{display:none}
body.plan-expanded .trial-toolbar{flex-shrink:0;margin:7px 0}body.plan-expanded #plan-tools>.trial-help{margin:5px 0}
@media(max-width:760px){body.plan-expanded .trial-plan-card{padding:10px}body.plan-expanded .trial-card-head h2{font-size:18px}body.plan-expanded .trial-toolbar{gap:4px}body.plan-expanded .trial-toolbar .btn{font-size:12px;padding:6px 8px}body.plan-expanded .trial-card-head{flex-wrap:nowrap}#plan-fullscreen{font-size:12px;padding:8px}.plan-view-actions{gap:7px}}
@media(max-width:480px){body.plan-expanded .trial-card-head h2{max-width:110px;font-size:16px}body.plan-expanded .trial-toolbar .hd-status{display:none}}
@media(max-width:760px){body.plan-expanded .va-label{display:none!important}body.plan-expanded #plan-tools>.trial-toolbar:last-of-type{padding-right:70px;min-height:54px}}
