/* The viewport is the workspace. Only the current question panel scrolls. */
.configurator-page{height:100dvh;max-width:none;overflow:hidden;padding:0!important;background:#f4f5f1}
.configurator-page .shop-announcement,.configurator-page>footer{display:none}
.configurator-page .header{height:76px;min-height:76px;border-bottom:1px solid #dde3df;background:white;padding-inline:3%;position:relative;z-index:40}
.configurator-page .header-cta{display:none}
.configurator-page #main{height:calc(100dvh - 76px);display:grid;grid-template-rows:68px 66px minmax(0,1fr) 96px}
.wizard-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 3%;gap:20px}
.wizard-heading h1{font-size:25px;letter-spacing:-.035em;margin:0}
.wizard-heading p{font-size:12px;color:#61716e;margin:0}
.wizard-heading .wizard-saving{font-size:11px;letter-spacing:.04em;white-space:nowrap}
.wizard-stepbar{position:relative;padding:0 3%;background:white;border-block:1px solid #dce3df}
.wizard-stepbar nav{height:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));max-width:1400px;margin:auto}
.wizard-stepbar button{min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;color:#687771;position:relative;white-space:nowrap}
.wizard-stepbar button b{border:1px solid #cdd5d0;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:11px;font-weight:500;flex-shrink:0}
.wizard-stepbar button[aria-current=step]{color:#173747;font-weight:600}
.wizard-stepbar button[aria-current=step] b{background:#173747;color:white;border-color:#173747}
.wizard-stepbar button[aria-current=step]:after{content:'';height:3px;position:absolute;bottom:0;left:12%;right:12%;background:#173747}
.wizard-stepbar button.visited b{background:#edf2ec;border-color:#aebdaf;color:#365845}
.wizard-stepbar button:hover{background:#f4f6f2}
.wizard-progress{position:absolute;left:0;right:0;bottom:-1px;height:1px;background:#e0e5df}
.wizard-progress span{display:block;height:100%;background:#75917a;transition:width .2s}
.configurator-page .config-layout{padding:22px 3%;gap:24px;grid-template-columns:minmax(0,1.35fr) minmax(360px,1fr);min-height:0;align-items:stretch;max-width:1800px;width:100%;margin:0 auto}
.configurator-page .viewer-column{position:relative;top:auto;min-height:0;display:flex;flex-direction:column;margin:0}
.configurator-page .viewer-surface{flex:1;min-height:0;display:flex;flex-direction:column}
.configurator-page .viewer:not(:fullscreen):not(.expanded){flex:1;min-height:0;height:auto;border-radius:7px}
.configurator-page .viewer-info{flex:none;padding:0 4px}
.configurator-page .viewer-info>.fine{font-size:10px;margin:0}
.configurator-page .viewer-caption{padding:7px 0;font-size:11px}
.configurator-page .viewer-tools{padding-top:5px}
.configurator-page .viewer-tools .view-controls button{font-size:11px;min-height:33px;padding:6px 10px}
.configurator-page .config-panel{background:white;border:1px solid #dfe5df;border-radius:7px;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.step-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:26px 28px;scrollbar-width:thin;scrollbar-color:#bcc8bf transparent}
.wizard-step[hidden]{display:none!important}
.wizard-step h2{font-size:27px;letter-spacing:-.035em;margin:0 0 9px;outline:none}
.step-intro{color:#65716e;font-size:13px;line-height:1.6;margin:0 0 24px;max-width:520px}
.wizard-step .fine{font-size:12px;line-height:1.6}
.wizard-step .model-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wizard-step .model-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #d4dcd6;background:white;padding:8px;border-radius:5px;overflow:hidden}
.wizard-step .model-choice img{width:100%;height:94px;object-fit:cover;border-radius:3px}
.wizard-step .model-choice[data-model=collectivite] img{object-fit:cover;object-position:50% 15%;background:#edf0e9}
.wizard-step .model-choice span{font-size:14px;margin:7px 3px 0}
.wizard-step .model-choice small{font-size:10px;color:#68766d;margin:2px 3px 3px}
.wizard-step .model-choice[aria-pressed=true]{border:2px solid #234936;padding:7px;background:#f2f6ef;box-shadow:0 0 0 1px #23493608}
.wizard-step #model-description{padding:12px 0 0;margin-bottom:12px}
.wizard-step .finish-selector{margin:16px 0}
.wizard-step .finish-options .sample{height:32px}
.wizard-step fieldset{min-width:0}
.wizard-step .swatches{grid-template-columns:repeat(5,minmax(0,1fr));display:grid;gap:8px}
.wizard-step .swatch{width:auto;min-width:0;min-height:62px;font-size:11px}
.selected-color{font-size:12px;color:#435b4b;margin:8px 0 24px}
.wizard-step label,.wizard-step legend{font-size:13px}
.wizard-step .dimension-defaults{margin-bottom:18px}
.wizard-step .dimension-row{margin-bottom:18px}
.wizard-step .dimension-row label{font-size:14px}
.wizard-step input,.wizard-step select,.wizard-step textarea{max-width:100%}
.layout-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.layout-fields select{width:100%}
.layout-presets{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 22px}
.layout-presets button{border:1px solid #cbd6cb;padding:8px 11px;border-radius:4px;font-size:12px;min-height:40px}
.layout-presets button[aria-pressed=true]{background:#173747;color:white;border-color:#173747}
.collective-size{background:#edf2e9;border-radius:4px;padding:16px 18px;margin:14px 0 20px}
.collective-size strong{display:block;font-size:19px;margin-bottom:5px}
.collective-size span{font-size:12px;color:#526453;display:block}
.step-note{background:#f4f5f0;border-left:2px solid #718c6e;padding:16px 18px;font-size:13px;line-height:1.65;margin:18px 0}
.step-note strong{display:block;color:#203b2d;margin-bottom:5px}
.step-note p{margin:0 0 8px}
.collective-specs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}
.collective-specs div{padding:15px;border:1px solid #dce3d9;border-radius:4px;font-size:12px;color:#65716e}
.collective-specs b{display:block;font-size:16px;color:#223d2f;margin-bottom:4px}
.wizard-review .spec-list>div{font-size:12px;padding:10px 0}
.review-edits{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}
.review-edits button{font-size:12px;border-bottom:1px solid #a5b3a6;padding:4px 0}
.wizard-dock{background:white;border-top:1px solid #d9e0d8;box-shadow:0 -5px 25px #17372705;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 3% max(12px,env(safe-area-inset-bottom));z-index:30;min-width:0}
.wizard-price{display:flex;align-items:center;gap:20px;min-width:0}
.wizard-price .eyebrow{font-size:9px;letter-spacing:.09em;margin:0 0 3px}
.wizard-price strong{font-size:30px;letter-spacing:-.04em;font-weight:500;line-height:1.1;white-space:nowrap}
.wizard-price .price-context{font-size:11px;color:#64716b;max-width:280px;line-height:1.5}
.wizard-actions{display:flex;align-items:center;gap:12px}
.wizard-actions button{font-size:13px;min-height:45px;white-space:nowrap}
.wizard-actions .button{padding:12px 21px}
.wizard-actions button:disabled{opacity:.35;cursor:default}
.wizard-summary-link{margin-right:10px;color:#465f50;text-decoration:underline;text-underline-offset:4px}
.wizard-price-status{font-size:10px;color:#6c654f;margin:3px 0 0;max-width:430px}
.configurator-page .mobile-price{display:none!important}
.mobile-view-expand{display:none}
.configurator-page .installation-estimate{margin:16px 0}
.configurator-page .service-options{gap:8px}
.configurator-page #fallback{inset:55px 20px 14px;overflow:hidden}
.configurator-page #fallback img{height:calc(100% - 55px);max-height:none;object-fit:contain}
.configurator-page #fallback p{font-size:11px;padding:5px 12px;margin:0}
@media(min-width:1400px){.step-scroll{padding:30px 36px}.wizard-step .model-choice img{height:120px}}
@media(max-width:1000px) and (min-width:781px){.configurator-page .config-layout{grid-template-columns:minmax(0,1fr) 370px;gap:16px}.step-scroll{padding:22px}.wizard-price .price-context{display:none}.wizard-stepbar button{gap:5px;font-size:11px}}
@media(max-width:780px){
 body.configurator-page .header{height:58px;min-height:58px;padding-inline:5%}
 .configurator-page .header nav{top:58px}
 .configurator-page .header .menu{margin-left:auto}
 .configurator-page #main{height:calc(100dvh - 58px);grid-template-rows:46px 49px minmax(0,1fr) 122px}
 .wizard-heading{padding:7px 5%}.wizard-heading h1{font-size:18px}.wizard-heading p{font-size:10px}.wizard-heading .wizard-saving{display:none}
 .wizard-stepbar{padding:0 2%}.wizard-stepbar button{flex-direction:column;gap:2px;font-size:9.5px;letter-spacing:0;line-height:1.2}
 .wizard-stepbar button b{width:19px;height:19px;font-size:9px}.wizard-stepbar button[aria-current=step]:after{left:9%;right:9%}
 .configurator-page .config-layout{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(115px,35%) minmax(0,1fr);gap:8px;padding:9px 4% 8px}
 .configurator-page .viewer-column{position:relative;top:0;overflow:hidden}
 .configurator-page .viewer-surface{height:100%}.configurator-page .viewer:not(:fullscreen):not(.expanded){height:100%;min-height:0}
 .configurator-page .viewer-info{display:none}.configurator-page .viewer-top{top:7px;left:9px;right:9px}.configurator-page .viewer-tag{font-size:8px;padding:5px 7px}
 .configurator-page .segmented button{font-size:9px;padding:4px 7px}
 .configurator-page .segmented{margin-left:auto}.mobile-view-expand{display:grid;place-items:center;pointer-events:auto;min-width:34px;min-height:32px;background:#ffffffed;border-radius:4px;margin-top:-3px}.mobile-view-expand svg{width:19px;height:19px}
 .step-scroll{padding:17px 18px}.wizard-step h2{font-size:21px}.step-intro{font-size:12px;margin-bottom:17px}
 .wizard-step .model-options{gap:8px}.wizard-step .model-choice img{height:75px}.wizard-step .model-choice span{font-size:13px}.wizard-step .model-choice small{font-size:9px}
 .wizard-step .swatch{min-height:64px;font-size:11px}.wizard-step .swatches{gap:5px}
 .wizard-step input:not([type=range]),.wizard-step select{font-size:16px}
 .wizard-dock{display:grid;grid-template-columns:1fr;gap:5px;padding:9px 5% max(9px,env(safe-area-inset-bottom));align-content:start}
 .wizard-price{justify-content:space-between;gap:8px}.wizard-price strong{font-size:25px}.wizard-price .eyebrow{font-size:8px}.wizard-price .price-context{font-size:10px;max-width:145px;text-align:right}
 .wizard-price-status{display:none}.wizard-actions{gap:9px;justify-content:space-between}.wizard-actions .button{flex:1;font-size:12px;padding:10px 12px;min-height:42px}.wizard-summary-link{font-size:11px!important;margin:0;order:3;max-width:70px;white-space:normal!important;line-height:1.3}
 .configurator-page #fallback{inset:30px 12px 3px;display:flex;gap:10px;align-items:center}.configurator-page #fallback[hidden]{display:none}.configurator-page #fallback img{width:45%;height:100%}.configurator-page #fallback p{font-size:9px;padding:3px}
 .configurator-page .config-panel :is(input,select,button){scroll-margin:20px}
}
@media(max-height:660px) and (min-width:781px){.configurator-page #main{grid-template-rows:48px 49px minmax(0,1fr) 84px}.wizard-heading h1{font-size:22px}.step-scroll{padding:18px 24px}.configurator-page .viewer-info>.fine{display:none}}
@media(max-height:620px) and (max-width:780px){.configurator-page #main{grid-template-rows:0 43px minmax(0,1fr) 112px}.wizard-heading{display:none}.configurator-page .config-layout{grid-template-rows:100px minmax(0,1fr)}.wizard-dock{padding-top:5px}.wizard-step h2{font-size:21px}}
@media print{.configurator-page{height:auto;overflow:visible}.configurator-page #main{height:auto;display:block}.wizard-heading,.wizard-stepbar,.wizard-dock{display:none!important}}

/* Give the scene its original tall canvas; keep the wizard in the right rail. */
@media screen and (min-width:1001px){
 .configurator-page .header{height:64px;min-height:64px}
 .configurator-page #main{height:calc(100dvh - 64px);grid-template-columns:minmax(0,1fr) clamp(390px,35vw,500px);grid-template-rows:62px 66px minmax(0,1fr) 84px;column-gap:22px;padding:0 24px}
 .configurator-page .config-layout{display:contents}
 .configurator-page .viewer-column{grid-column:1;grid-row:1 / 4;margin:18px 0 12px;min-width:0}
 .configurator-page .wizard-heading{grid-column:2;grid-row:1;padding:12px 0 8px}
 .configurator-page .wizard-heading h1{font-size:21px}
 .configurator-page .wizard-heading .wizard-saving{display:none}
 .configurator-page .wizard-stepbar{grid-column:2;grid-row:2;padding:0;border:1px solid #dce3df;border-radius:7px 7px 0 0}
 .configurator-page .wizard-stepbar button{flex-direction:column;gap:4px;font-size:10px}
 .configurator-page .wizard-stepbar button b{width:23px;height:23px;font-size:10px}
 .configurator-page .config-panel{grid-column:2;grid-row:3;margin-bottom:12px;border-radius:0 0 7px 7px;border-top:0}
 .configurator-page .step-scroll{padding:22px}
 .configurator-page .wizard-step h2{font-size:25px}
 .configurator-page .wizard-dock{grid-column:1 / -1;grid-row:4;margin-inline:-24px;padding:10px 24px}
 .configurator-page .viewer-info{padding:0 4px}
 .configurator-page .viewer-caption{padding:5px 0;margin:0;font-size:10px}
 .configurator-page .viewer-info>.fine{font-size:9px;line-height:1.4}
 .configurator-page .viewer-tools .view-controls button{min-height:32px}
}

/* Mobile: one natural page scroll, a stable scene above the settings. */
@media screen and (max-width:780px){
 body.configurator-page{height:auto;min-height:100svh;overflow:visible}
 .configurator-page #main{height:auto;display:block;padding-bottom:calc(146px + env(safe-area-inset-bottom))}
 .configurator-page .wizard-heading{display:none}
 .configurator-page .wizard-stepbar{height:48px;position:sticky;top:0;z-index:35}
 .configurator-page .config-layout{display:block;padding:10px 12px 20px}
 .configurator-page .viewer-column{position:relative;top:auto;overflow:visible;margin-bottom:20px}
 .configurator-page .viewer-surface{height:auto;display:block}
 .configurator-page .viewer:not(:fullscreen):not(.expanded){height:clamp(320px,55svh,460px);min-height:0;border-radius:7px;touch-action:pan-y}
 /* Gestures starting on the canvas belong to the 3D controls, including vertical rotation and pinch. */
 .configurator-page .viewer canvas{touch-action:none}
 .configurator-page .viewer-info{display:block}
 .configurator-page .viewer-caption{display:flex;gap:10px;font-size:10px;margin:0;padding:8px 0}
 .configurator-page .viewer-info>.fine{font-size:9px}
 .configurator-page .config-panel{overflow:visible;display:block;scroll-margin-top:58px}
 .configurator-page .step-scroll{overflow:visible;padding:20px 16px;overscroll-behavior:auto}
 .configurator-page .wizard-step .model-choice img{height:90px}
 .configurator-page .wizard-dock{position:fixed;left:0;right:0;bottom:0;min-height:122px;padding-bottom:max(9px,env(safe-area-inset-bottom));z-index:40}
 .configurator-page #fallback{inset:35px 8px 5px;flex-direction:column;gap:3px}
 .configurator-page #fallback img{width:100%;height:calc(100% - 36px);min-height:0}
 .configurator-page #fallback p{font-size:9px;line-height:1.3;text-align:center;margin:0}
}

/* The entrance scene is scoped to the configurator; the studio keeps its neutral background. */
.configurator-page .viewer:not(.studio){background-image:url("environment-house-clear.webp");background-position:50% 0%}

.configurator-page .viewer[data-model="collectivite"]:not(.studio){background-image:url("environment-collective-urban.webp");background-position:50% 50%}

/* The scene stays fixed; only the existing equipment / caisson cross-fades. */

/* Intro and controls share the same fixed-height row: no reflow at reveal. */
.entry-intro{position:absolute;left:16px;top:16px;z-index:7;pointer-events:none}
.entry-kicker{display:block;padding:6px 10px;border-radius:5px;background:#fffffff2;color:#345548;font-size:9px;line-height:1.4;letter-spacing:.12em;font-weight:700;box-shadow:0 1px 8px #102e3a0d}
.configurator-page .viewer-tools{display:grid;align-items:center;min-height:54px;padding:5px 0}
.configurator-page .viewer-tools>*{grid-area:1/1}
.entry-intro-actions{display:flex;align-items:center;justify-content:center;gap:16px;z-index:1}
.entry-add{display:flex;gap:9px;align-items:center;padding:8px 15px 8px 9px;border-radius:30px;background:#123344;color:white;font-size:13px;line-height:1.4;font-weight:600;min-height:42px;box-shadow:0 3px 8px #12334412}
.entry-plus{display:grid;place-items:center;width:25px;height:25px;border:1px solid #ffffff70;border-radius:50%;font-size:22px;font-weight:300;line-height:1}
.entry-add:hover{background:#244e43}.entry-add:focus-visible,.entry-skip:focus-visible{outline:3px solid #cda76d;outline-offset:3px}
.entry-skip{font-size:11px;color:#526166;min-height:40px;padding:6px 0;text-decoration:underline;text-underline-offset:3px}
.viewer-column:has(.entry-before) .viewer-tools .view-controls{visibility:hidden;pointer-events:none}
.entry-before .viewer-top{visibility:hidden}.entry-before canvas{pointer-events:none}
.configurator-page .viewer-caption{position:relative;min-height:28px}
.entry-replay{position:absolute;left:0;top:5px;font-size:10px!important;margin:0;padding:0!important;line-height:1.65}
.viewer-caption:has(.entry-replay:not([hidden]))>span{visibility:hidden}
.viewer-column:has(.entry-before) .viewer-caption>span{visibility:hidden}
.entry-status{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.entry-photo{position:absolute;inset:0;pointer-events:none;background-image:url("entry-before-clear.webp");background-repeat:no-repeat;background-size:inherit;background-position:inherit;opacity:0;transition:opacity .65s cubic-bezier(.2,.7,.3,1)}
.entry-before .entry-photo{opacity:1}
.entry-before.entry-revealing .entry-photo{opacity:0}
.rotation-hint{position:absolute;z-index:6;left:50%;bottom:16%;transform:translateX(-50%);pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;text-shadow:0 1px 4px #102e3a;filter:drop-shadow(0 1px 3px #102e3a66)}
.rotation-hint svg{width:76px;height:38px;background:#123344e8;border:1px solid #ffffff55;border-radius:24px;padding:3px 8px}
.rotation-hint span{background:#123344e8;border:1px solid #ffffff55;border-radius:30px;padding:6px 10px;font-size:10px;white-space:nowrap;text-shadow:none}
@media(max-width:780px){.entry-intro{left:12px;top:12px}.entry-intro-actions{gap:12px}.entry-add{font-size:12px;padding-right:12px}.entry-skip{font-size:10px}.configurator-page .viewer-tools{min-height:54px}.entry-replay{top:8px}}
@media(prefers-reduced-motion:reduce){.entry-photo{transition:none}}

/* One benefit, one main action, placed away from the equipment. */
.entry-intro{left:18px;top:auto;bottom:20px;width:218px;padding:14px;border:1px solid #ffffffcc;border-radius:14px;background:#ffffffed;box-shadow:0 8px 28px #142e3c1a;backdrop-filter:blur(10px);pointer-events:auto}
.entry-kicker{display:block;padding:0;background:none;box-shadow:none;font-size:8px;letter-spacing:.14em;line-height:1.3;color:#526f63;margin:0 0 7px}
.entry-intro strong{display:block;font-size:17px;line-height:1.2;font-weight:600;letter-spacing:-.025em;color:#123344}
.entry-intro p{font-size:11px;line-height:1.45;color:#58696c;margin:7px 0 11px}
.entry-intro-actions{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.entry-add{width:100%;justify-content:center;border-radius:9px;min-height:40px;padding:8px;font-size:12px;box-shadow:none;transition:background .2s,box-shadow .2s}
.entry-add:hover{box-shadow:0 3px 12px #12334424}
.entry-plus{width:23px;height:23px;font-size:20px;flex-shrink:0}
.entry-skip{font-size:9px;min-height:25px;align-self:center;text-decoration:none;color:#667675;padding:5px 0}
.entry-skip:hover{text-decoration:underline}
@media(max-width:780px){.entry-intro{top:12px;left:12px;bottom:auto;width:196px;padding:12px;border-radius:12px}.entry-intro strong{font-size:16px}.entry-intro p{font-size:10px;margin:6px 0 9px}.entry-kicker{font-size:7px;margin-bottom:6px}.entry-add{font-size:11px}.entry-skip{font-size:9px}.entry-intro-actions{gap:2px}}

/* A single prominent action and two separate orbital arrows. */
.entry-intro{width:218px}
.entry-intro p{font-size:12px;line-height:1.5;color:#40565c}
.entry-add{position:relative;background:#123344;color:white;min-height:60px;overflow:hidden}
.entry-plus{width:40px;height:40px;border:0;background:transparent;transition:transform .25s}
.entry-plus svg{width:100%;height:100%}
.entry-add-label{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:max-width .25s,opacity .2s}
.entry-add:hover .entry-add-label,.entry-add:focus-visible .entry-add-label{max-width:150px;opacity:1}
.entry-add:hover .entry-plus,.entry-add:focus-visible .entry-plus{transform:scale(.8)}
.entry-add:focus-visible{outline:3px solid #b57c4b;outline-offset:4px}
.entry-pointer{position:absolute;left:calc(100% + 8px);bottom:65px;width:clamp(65px,10vw,150px);height:110px;overflow:visible;pointer-events:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #12334499)}
.rotation-hint{bottom:15%;gap:6px;filter:drop-shadow(0 2px 3px #12334466)}
.rotation-hint svg{width:220px;height:92px;padding:0;border:0;border-radius:0;background:none;overflow:visible}
.rotation-arc{stroke:#fff;stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round}
.rotation-hint span{font-size:11px;padding:7px 13px;background:#123344ec}
@media(max-width:780px){
 .entry-intro{width:192px}
 .entry-intro p{font-size:11px}
 .entry-add{min-height:52px;gap:3px}
 .entry-pointer{left:calc(100% + 3px);bottom:-24px;width:70px;height:100px;transform:rotate(80deg)}
 .rotation-hint svg{width:180px;height:76px}
}
@media(hover:none){.entry-add-label{max-width:150px;opacity:1}.entry-plus{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.entry-add-label,.entry-plus{transition:none}}

/* Circular add control, translucent hover label and tapered ribbon arrows. */
.entry-intro-actions{align-items:center}
.entry-add{width:60px;height:60px;min-height:60px;padding:0;border:0;border-radius:50%;overflow:visible;background:#343b3e;gap:0;box-shadow:0 4px 14px #18282c26;transition:background .2s,box-shadow .2s,transform .2s}
.entry-add:hover{background:#293134;box-shadow:0 5px 18px #18282c40}
.entry-plus{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;transform:none!important}
.entry-add-label{position:absolute;left:calc(100% + 10px);top:50%;max-width:none!important;overflow:visible;padding:12px 16px;border-radius:9px;background:#343b3ecc;border:1px solid #ffffff40;backdrop-filter:blur(5px);color:#fff;font-size:12px;font-weight:600;opacity:0;visibility:hidden;transform:translate(-6px,-50%);transition:opacity .2s,transform .2s,visibility .2s;pointer-events:none}
.entry-add:hover .entry-add-label,.entry-add:focus-visible .entry-add-label{opacity:1;visibility:visible;transform:translate(0,-50%)}
.entry-pointer{left:calc(100% - 8px);top:-78px;bottom:auto;width:160px;height:85px;fill:#fff;stroke:none;filter:drop-shadow(0 2px 3px #12334480);transform:none}
.rotation-arc{fill:#fff;stroke:none}
.rotation-hint{gap:0;bottom:20%}
.rotation-hint svg{width:220px;height:94px}
@media(max-width:780px){
 .entry-add{width:56px;height:56px;min-height:56px}
 .entry-pointer{left:calc(100% - 6px);top:105px;width:100px;height:60px;transform:rotate(63deg);transform-origin:20px 45px}
 .rotation-hint svg{width:180px;height:77px}
 .entry-add-label{padding:10px 12px;font-size:11px;left:calc(100% + 7px)}
}
@media(hover:none){.entry-add-label{opacity:1;visibility:visible;transform:translate(0,-50%)}.entry-plus{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.entry-add,.entry-add-label{transition:none}}

/* Shared clean curves; quieter overlays keep the product prominent. */
.entry-intro{background:#ffffffc7;border-color:#ffffff85;backdrop-filter:blur(6px);box-shadow:0 6px 24px #142e3c12}
.entry-pointer{left:45%;top:-86px;width:260px;height:100px;fill:none;opacity:.9;filter:drop-shadow(0 1px 2px #12334455)}
.guidance-curve{fill:none;stroke:#fff;stroke-width:10;stroke-linecap:round;stroke-linejoin:round}
.guidance-tip{fill:#fff;stroke:#fff;stroke-width:2;stroke-linejoin:round}
.rotation-hint{bottom:9%;opacity:.64;filter:drop-shadow(0 1px 2px #12334455)}
.rotation-hint svg{width:136px;height:58px}
@media(max-width:780px){
 .entry-pointer{left:50%;top:-45px;width:170px;height:76px;transform:rotate(35deg);transform-origin:10px 70px}
 .rotation-hint{bottom:9%}
 .rotation-hint svg{width:112px;height:48px}
}

/* Short, tapered arrow registered just above the wall coping. */
.entry-pointer{display:none;position:absolute;z-index:7;left:var(--entry-arrow-x,40%);top:var(--entry-arrow-y,34%);bottom:auto;width:var(--entry-arrow-width,150px);height:auto;aspect-ratio:160/66;transform:none;fill:#fff;stroke:none;opacity:.76;filter:drop-shadow(0 1px 1px #12334455);pointer-events:none}
.entry-before:not(.entry-revealing) .entry-pointer{display:block}
@media(max-width:780px){.entry-pointer{left:calc(50% + 15px);top:calc(var(--entry-arrow-y,34%) + 28px);width:96px}}

/* Registered photographic highlights: only the three replaceable objects react. */
.entry-equipment{position:absolute;z-index:6;left:var(--entry-plate-x);top:var(--entry-plate-y);width:var(--entry-plate-width);aspect-ratio:1774/887;pointer-events:none}
.entry-equipment-glow{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .3s ease;overflow:visible}
.entry-equipment-glow image{filter:brightness(1.12)}
.equipment-outline{display:none}
.entry-hotspot{position:absolute;pointer-events:auto;cursor:pointer;padding:0;border:0;background:transparent;border-radius:3px;-webkit-tap-highlight-color:transparent}
.entry-electric{left:43.86%;top:57.95%;width:5.41%;height:17.81%}
.entry-water{left:49.04%;top:61.56%;width:3.95%;height:14.54%}
.entry-mailbox{left:52.37%;top:44.53%;width:4.79%;height:9.13%}
.entry-hotspot:focus-visible{outline:2px solid #ffffff;outline-offset:3px}
.entry-before:has(#entry-add:hover) .entry-equipment-glow,.entry-before:has(#entry-add:focus-visible) .entry-equipment-glow,.entry-before:has(.entry-hotspot:hover) .entry-equipment-glow,.entry-before:has(.entry-hotspot:focus-visible) .entry-equipment-glow{opacity:1}
.entry-revealing .entry-equipment{display:none}
.rotation-hint{bottom:12%}.rotation-hint svg{width:100px;height:43px}
@media(max-width:780px){.entry-pointer{left:calc(50% + 7px)}.rotation-hint{bottom:12%}.rotation-hint svg{width:82px;height:35px}}
@media(prefers-reduced-motion:reduce){.entry-equipment-glow{transition:none}}
/* Mobile card uses the approved reference styling, with a larger centered plus. */
@media(max-width:780px){
 .entry-intro{top:auto;bottom:10px;left:12px;width:192px;padding:12px;border-radius:12px;background:#ffffffa8;backdrop-filter:blur(3px);border-color:#ffffff80}
 .entry-intro-actions{align-items:center}
 .entry-add{width:64px;height:64px;min-height:64px}
 .entry-plus{width:44px;height:44px}
 .entry-add-label{opacity:1;visibility:visible;transform:translate(0,-50%);font-size:11px;padding:10px 12px}
 .entry-pointer{left:190px;top:auto;bottom:158px;width:88px;transform:rotate(-28deg);transform-origin:0 100%}
}
/* Slightly stronger photographic feedback for desktop mouse users. */
@media(min-width:781px) and (hover:hover) and (pointer:fine){.entry-equipment-glow image{filter:brightness(1.20)}}

/* The dark green mailbox needs a little more light than the pale utility cabinets. */
.entry-mailbox-light{display:none}
@media(min-width:781px) and (hover:hover) and (pointer:fine){.entry-equipment-glow .entry-mailbox-light{display:block;filter:brightness(1.38)}}
/* Direct mailbox layout editor. Rows are shown exactly as seen from the front. */
.collective-instruction{font-size:17px;font-weight:600;color:#183449;margin:0 0 17px}.collective-instruction span{display:block;font-size:13px;font-weight:400;color:#60717b;margin-top:6px;line-height:1.5}
.collective-editor{padding:18px 22px 14px;background:#f6f8fa;border:1px solid #e0e6eb;border-radius:12px;max-width:400px;margin:auto}.collective-editor-head{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.08em;color:#637580;margin-bottom:14px}.collective-editor-head span:last-child{font-size:12px;font-weight:600;letter-spacing:0;color:#205f8a}.collective-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.collective-cell{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;border:1px solid #cbd3d9;border-radius:6px;background:#e1e5e8;color:#6b7d8b;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}.collective-cell .cell-mark:after{content:'+';font-size:22px;font-weight:300}.collective-cell .cell-slot{display:none}.collective-cell[aria-checked=true]{background:#24688f;border-color:#1a587e;color:#fff;box-shadow:inset 0 1px #ffffff35}.collective-cell[aria-checked=true] .cell-mark:after{content:'✓';font-size:17px}.collective-cell[aria-checked=true] .cell-slot{display:block;position:absolute;left:20%;right:20%;top:20%;height:3px;background:#ffffff85;border-radius:2px}.collective-cell[aria-checked=true] .cell-mark{position:relative;top:5px}.collective-cell:hover{border-color:#24688f;box-shadow:0 0 0 2px #24688f15}.collective-cell:focus-visible{outline:3px solid #2b8dcb;outline-offset:3px}.collective-grid-ground{height:1px;background:#b6c4ce;margin:12px 0}.collective-grid-legend{display:flex;justify-content:center;gap:18px;font-size:10px;color:#60717b}.collective-grid-legend span{display:flex;align-items:center;gap:5px}.collective-grid-legend i{width:9px;height:9px;border-radius:2px;background:#dce2e6}.collective-grid-legend i.selected{background:#24688f}.collective-grid-status{font-size:12px;line-height:1.55;min-height:38px;color:#205f8a;margin:8px 0 14px}#collective-grid-help{margin:13px 0 0}#collective-format .layout-presets{margin-top:0}
@media(max-width:780px){.collective-editor{max-width:360px;padding:14px 10px}.collective-grid{gap:5px}.collective-cell{min-height:44px;border-radius:5px}.collective-cell[aria-checked=true] .cell-slot{height:2px}.collective-grid-legend{gap:12px}}
@media(prefers-reduced-motion:reduce){.collective-cell{transition:none}}

.step-error{padding:13px 15px;margin:12px 0 20px;border-left:3px solid #b76036;background:#fff3eb;color:#763c23;border-radius:5px;font-size:14px;line-height:1.5}.step-error[hidden]{display:none}[aria-invalid=true]{outline:2px solid #b76036;outline-offset:2px}

.step-end{height:1px;margin-top:16px;scroll-margin-bottom:150px}.step-scroll-notice{position:fixed;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#step-next.needs-scroll{background:#526875;border-color:#526875}#step-next.needs-scroll:hover{background:#334f60}

/* Never paint the temporary cover framing before the calibrated first frame. */
.viewer.viewer-loading{background-image:none!important;background-color:#eef1ef!important}
.viewer.viewer-loading>*{visibility:hidden!important}
.viewer.viewer-loading::after{content:'Préparation de votre entrée…';position:absolute;inset:0;display:grid;place-items:center;color:#5c6d78;font-size:13px;letter-spacing:.02em;pointer-events:none}
.viewer.viewer-loading .entry-photo{transition:none}

/* Selected cells remain blue even when their corner cannot define a valid size. */


.collective-cell[data-selected=true]{background:#24688f;border-color:#1a587e;color:#fff;box-shadow:inset 0 1px #ffffff35}.collective-cell[data-selected=true] .cell-slot{display:block;position:absolute;left:20%;right:20%;top:20%;height:3px;background:#ffffff85;border-radius:2px}.collective-cell[data-selected=true] .cell-mark:after{content:'✓';font-size:17px}.collective-cell[data-selected=true] .cell-mark{position:relative;top:5px}

.collective-cell:disabled{opacity:1;cursor:default}
