/* Structure fidèle au parcours tactile de la vidéo de référence. */
.reference-welcome{background:#080807!important;isolation:isolate}.reference-welcome:before{content:'';position:absolute;inset:2.2%;border:1px solid rgba(218,181,90,.28);clip-path:polygon(0 0,31% 0,35% 4%,65% 4%,69% 0,100% 0,100% 100%,0 100%)}.gold-corners{position:absolute;inset:0;z-index:-1;background:linear-gradient(135deg,transparent 8%,rgba(211,166,57,.8) 8.1%,transparent 8.25%) top left/31% 45% no-repeat,linear-gradient(225deg,transparent 8%,rgba(211,166,57,.75) 8.1%,transparent 8.25%) top right/31% 45% no-repeat,linear-gradient(45deg,transparent 9%,rgba(211,166,57,.7) 9.1%,transparent 9.25%) bottom left/25% 42% no-repeat,linear-gradient(315deg,transparent 9%,rgba(211,166,57,.7) 9.1%,transparent 9.25%) bottom right/25% 42% no-repeat}.reference-brand{position:absolute;z-index:4;top:4.5%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:5px 45px 14px;background:linear-gradient(180deg,#14130f,#090908);clip-path:polygon(11% 0,89% 0,100% 62%,88% 100%,12% 100%,0 62%)}.reference-brand b{display:block;font:600 clamp(18px,2vw,28px)/.9 'Cormorant Garamond',serif;letter-spacing:1px}.reference-brand small{display:block;color:var(--gold);font-size:7px;letter-spacing:2px}.reference-brand .brand-mark{width:44px;height:44px}.welcome-residence-card{position:absolute;left:23%;right:23%;top:18%;bottom:25%;overflow:hidden;border:1px solid var(--gold);border-radius:24px;background:#181713;box-shadow:0 0 45px rgba(211,166,57,.14)}.welcome-residence-card img{width:100%;height:100%;object-fit:cover}.welcome-residence-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,8,7,.15),transparent 45%)}.reference-discover{position:absolute;z-index:5;left:50%;bottom:12%;transform:translateX(-50%);min-width:340px;padding:17px 38px;border:1px solid var(--gold);border-radius:999px;background:#11110f;color:#fff;font-size:clamp(16px,1.7vw,25px);box-shadow:inset 0 0 15px rgba(224,188,96,.07),0 0 20px rgba(224,188,96,.08)}.reference-discover:active{background:linear-gradient(135deg,#edcf7a,#a77c27);color:#141008}.showcase{position:relative;background:#080807 url('../demo/gold-noise.png');border:8px solid #050505}.reference-topbar{position:absolute;z-index:12;inset:0 0 auto;height:88px;border:0;background:transparent;pointer-events:none}.reference-topbar .mini-brand{pointer-events:auto;position:absolute;top:0;left:50%;transform:translateX(-50%);margin:0;padding:10px 44px 18px;background:linear-gradient(180deg,#171612,#0b0b09);clip-path:polygon(8% 0,92% 0,100% 68%,87% 100%,13% 100%,0 68%)}.reference-topbar>.icon-button{pointer-events:auto;position:absolute;top:17px}.reference-topbar>#homeBtn{left:19px}.reference-topbar>#fullscreenBtn{right:19px}.reference-topbar .residence-switch{display:none}.workspace{position:relative;display:block!important;flex:1;padding:0!important;min-height:0}.main-stage{position:absolute!important;z-index:1;inset:5.5% 9% 8%!important;border-radius:18px!important}.hero-frame{border:1px solid rgba(218,181,90,.7)!important;border-radius:18px!important}.hero-frame:before{content:'';position:absolute;z-index:4;inset:-1px;border-radius:18px;box-shadow:inset 0 0 0 1px rgba(255,227,148,.2);pointer-events:none}.hero-overlay{left:50%!important;bottom:2%!important;transform:translateX(-50%);width:80%;text-align:center}.hero-overlay span{display:none}.hero-overlay h1{text-transform:uppercase;color:#f0d68c;text-shadow:0 2px 10px #000;font-size:clamp(27px,3vw,52px)!important}.availability{display:none!important}.side-panel,.type-panel{position:absolute!important;z-index:5;height:auto;max-height:82%;padding:13px!important;border:1px solid rgba(222,190,109,.55)!important;border-radius:19px!important;background:rgba(21,21,19,.9)!important;backdrop-filter:blur(12px);box-shadow:0 10px 40px rgba(0,0,0,.4)}.side-panel{left:2.5%;top:11%;width:31%;bottom:4%;display:block!important;overflow:visible!important}.facade-heading{height:0;overflow:hidden;opacity:0}.facade-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}.facade{height:clamp(72px,12vh,138px)!important;border-radius:11px!important;background:#111}.facade.active{border:2px solid #e4c36f!important}.apartment-list-head{height:48px;margin-top:13px;padding:0 8px!important;justify-content:flex-start!important;gap:10px;background:rgba(35,34,31,.93);border:1px solid rgba(222,190,109,.32)!important;border-radius:10px}.apartment-list-head button{border:0;background:none;color:var(--gold2);font-size:27px}.apartment-list-head span{font-size:clamp(10px,1.1vw,15px)}.apartment-list-head small{margin-left:auto}.apartment-list{height:calc(100% - clamp(165px,27vh,285px));padding-top:8px!important}.apartment-row{min-height:50px;margin-bottom:6px!important;background:rgba(14,14,13,.95)!important;border-color:rgba(224,190,102,.45)!important}.apartment-row:hover,.apartment-row.selected{color:#18130a!important;background:linear-gradient(100deg,#e9cb76,#b88b32)!important}.apartment-row:hover small,.apartment-row:hover i{color:#292116!important}.type-panel{right:2.5%;top:11%;width:22%;min-height:190px}.type-title{display:block;margin:0 5px 10px;font-size:clamp(10px,1.1vw,15px)}.type-filters{grid-template-columns:repeat(2,1fr)!important;margin-top:0!important;gap:8px!important}.type-filters button{height:clamp(54px,9vh,90px)!important;font-size:clamp(17px,2vw,31px);border-color:rgba(221,187,99,.48)!important}.type-filters button.active{background:linear-gradient(135deg,#f0d17b,#b8892f)!important}.residence-note{display:none!important}.detail-panel{inset:11% 1.2% 5% 34%!important;padding:14px!important;background:rgba(17,17,15,.97)!important}.detail-head h2{font-size:clamp(20px,2vw,32px)!important}.detail-body{grid-template-columns:1fr 1fr!important;grid-template-rows:minmax(0,1fr) 82px!important}.stats{grid-column:1/-1!important}.bottom-nav{position:absolute;z-index:10;left:8%;right:8%;bottom:0;height:76px!important;border:1px solid rgba(222,190,109,.35)!important;border-bottom:0!important;border-radius:13px 13px 0 0;background:rgba(15,15,13,.96)!important;transition:.3s}.bottom-nav button{min-width:0!important;flex:1;padding:5px}.bottom-nav button span{font-size:19px!important}@media(max-width:900px){.main-stage{inset:7% 4% 9%!important}.side-panel{left:1.5%;width:34%;top:12%}.type-panel{right:1.5%;width:23%;top:12%}.welcome-residence-card{left:12%;right:12%}.bottom-nav{left:3%;right:3%}}@media(orientation:portrait){.reference-welcome:after{content:'Veuillez tourner la tablette';position:absolute;z-index:30;inset:0;display:grid;place-items:center;background:#080807;color:var(--gold2);font:600 28px 'Cormorant Garamond',serif}.showcase:after{content:'Veuillez tourner la tablette';position:absolute;z-index:50;inset:0;display:grid;place-items:center;background:#080807;color:var(--gold2);font:600 28px 'Cormorant Garamond',serif}}
/* États successifs de la vidéo : façade > typologie > liste > fiche. */
.showcase{background:#080807!important}
.showcase:not(.type-selected) .apartment-list-head,.showcase:not(.type-selected) .apartment-list{display:none!important}
.showcase:not(.type-selected) .side-panel{bottom:auto!important}
.bottom-nav{transform:translateY(105%);transition:transform .3s ease!important}
.showcase.has-selection .bottom-nav{transform:translateY(0)}
.showcase.detail-open .hero-overlay{opacity:0}
.apartment-row.selected{color:#18130a!important;background:linear-gradient(100deg,#e9cb76,#b88b32)!important}
.official-logo{display:block;object-fit:contain}.reference-brand .official-logo{width:clamp(145px,18vw,260px);height:72px}.reference-topbar .mini-brand{padding:4px 48px 13px!important}.reference-topbar .official-logo{width:clamp(120px,14vw,205px);height:66px}.official-logo-dark{mix-blend-mode:screen}
.bottom-nav{transform:none!important}.bottom-nav button{cursor:pointer;opacity:.62;transition:.2s}.bottom-nav button:hover{opacity:1;background:rgba(215,175,75,.06)}.bottom-nav button.active{opacity:1!important;color:var(--gold2)!important;border-color:var(--gold)!important}.view-panel{position:absolute;z-index:9;inset:10% 2% 5%;padding:18px;transform:translateY(110%);opacity:0;pointer-events:none;border:1px solid rgba(224,190,102,.65);border-radius:16px;background:rgba(12,12,10,.98);backdrop-filter:blur(20px);transition:.35s cubic-bezier(.22,.8,.22,1)}.view-panel.open{transform:translateY(0);opacity:1;pointer-events:auto}.view-panel-head{height:62px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.view-panel-head>div{display:flex;align-items:center;gap:14px}.view-panel-head span{color:var(--gold);font-size:9px;letter-spacing:2px;text-transform:uppercase}.view-panel-head h2{margin:3px 0;font:600 30px 'Cormorant Garamond',serif}.view-content{height:calc(100% - 70px);padding-top:12px}.gallery-stage{position:relative;height:calc(100% - 104px);overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#080807}.gallery-stage>img{width:100%;height:100%;object-fit:contain;transition:.25s}.gallery-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:46px;height:70px;border:1px solid var(--line);background:rgba(8,8,7,.82);color:var(--gold2);font-size:35px}.gallery-arrow.prev{left:14px}.gallery-arrow.next{right:14px}.gallery-caption{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:8px 18px;border:1px solid var(--line);border-radius:20px;background:rgba(8,8,7,.83);font-size:10px}.gallery-strip{height:92px;display:flex;gap:8px;overflow-x:auto;padding:10px 2px}.gallery-strip button{position:relative;flex:0 0 112px;padding:0;border:1px solid transparent;border-radius:7px;overflow:hidden;background:#15140f}.gallery-strip button.active{border-color:var(--gold);box-shadow:0 0 0 2px rgba(213,173,85,.17)}.gallery-strip img{width:100%;height:100%;object-fit:cover}.gallery-strip span{position:absolute;right:4px;bottom:3px;padding:2px 4px;background:#090908;color:#e9cb76;font-size:8px}.coming-view{height:100%;display:grid;place-content:center;justify-items:center;text-align:center}.coming-view>span{font-size:55px;color:var(--gold)}.coming-view h3{margin:10px;font:600 38px 'Cormorant Garamond',serif}.coming-view p{max-width:580px;color:var(--muted);line-height:1.7}.coming-badge,.panel-action{padding:10px 16px;border:1px solid var(--line);border-radius:20px;background:#17150f;color:var(--gold2);font-size:10px}.location-view{height:100%;display:grid;grid-template-columns:1fr 1.5fr;gap:18px}.location-view>div:first-child{display:grid;place-content:center;padding:30px}.location-pin{font-size:50px;color:var(--gold)}.location-view h3{font:600 44px 'Cormorant Garamond',serif}.location-view small{color:var(--muted);line-height:1.7}.map-placeholder{position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:radial-gradient(circle at 60% 42%,rgba(220,179,75,.18),transparent 3%),linear-gradient(30deg,transparent 48%,rgba(213,173,85,.16) 49%,transparent 50%) 0 0/90px 90px,#151511}.map-placeholder i{position:absolute;width:26px;height:26px;border:5px solid var(--gold);border-radius:50%;box-shadow:0 0 0 15px rgba(213,173,85,.12)}.map-placeholder b{margin-top:80px;color:var(--gold2);font-size:10px;letter-spacing:2px}.menu-grid{height:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu-grid button{display:grid;place-content:center;justify-items:center;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#1d1b15,#0d0d0b);color:white}.menu-grid button:hover{border-color:var(--gold);background:linear-gradient(145deg,#292313,#11100d)}.menu-grid span{font-size:36px;color:var(--gold2)}.menu-grid b{margin-top:8px;font:600 25px 'Cormorant Garamond',serif}.menu-grid small{color:var(--muted)}
.hero-frame>img,.gallery-stage>img{cursor:ns-resize;will-change:object-position;transition:object-position .18s ease}.image-pan-hint{position:absolute;z-index:4;right:13px;top:13px;padding:7px 10px;border:1px solid rgba(213,173,85,.35);border-radius:18px;background:rgba(7,7,6,.72);color:#d7c18b;font-size:8px;letter-spacing:.6px;pointer-events:none}.image-viewer{position:fixed;z-index:1000;inset:0;display:grid;grid-template-columns:72px 1fr 72px;grid-template-rows:76px 1fr 66px;opacity:0;visibility:hidden;transform:scale(.985);transition:.28s;background:#050505}.image-viewer.open{opacity:1;visibility:visible;transform:scale(1)}.viewer-backdrop{position:absolute;inset:0;background:radial-gradient(circle at center,#211d13,#050505 68%)}.viewer-toolbar,.viewer-footer{position:relative;z-index:3;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid var(--line);background:rgba(10,10,8,.88);backdrop-filter:blur(15px)}.viewer-toolbar>div:first-child{display:flex;align-items:center;gap:12px}.viewer-brand-dot{width:30px;height:30px;border:1px solid var(--gold);transform:rotate(45deg);background:linear-gradient(135deg,#e9cb76,#9e7225)}.viewer-toolbar b,.viewer-toolbar small{display:block}.viewer-toolbar b{font:600 20px 'Cormorant Garamond',serif}.viewer-toolbar small{color:var(--gold);font-size:8px;letter-spacing:1px}.viewer-actions{display:flex;gap:7px}.viewer-actions button{min-width:42px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#12110e;color:var(--gold2)}.viewer-actions button:hover{border-color:var(--gold);background:#211c10}.viewer-canvas{position:relative;z-index:2;grid-column:2;grid-row:2;overflow:hidden;display:grid;place-items:center;touch-action:none;cursor:grab}.viewer-canvas.dragging{cursor:grabbing}.viewer-canvas img{max-width:none;max-height:none;width:100%;height:100%;object-fit:contain;transform:translate3d(0,0,0) scale(1);transform-origin:center;user-select:none;-webkit-user-drag:none;transition:transform .16s ease}.viewer-canvas.dragging img{transition:none}.viewer-help{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:7px 13px;border-radius:20px;background:rgba(5,5,5,.72);color:#9f998b;font-size:8px;opacity:.8}.viewer-nav{position:relative;z-index:3;grid-row:2;width:48px;height:78px;align-self:center;justify-self:center;border:1px solid var(--line);border-radius:8px;background:rgba(15,14,11,.85);color:var(--gold2);font-size:38px}.viewer-nav.prev{grid-column:1}.viewer-nav.next{grid-column:3}.viewer-footer{grid-row:3;border-top:1px solid var(--line);border-bottom:0}.viewer-footer>span{color:#c7c1b3;font-size:10px}.viewer-footer>div{display:flex;gap:5px}.viewer-footer i{display:block;width:5px;height:5px;border-radius:50%;background:#555047}.viewer-footer i.active{width:20px;border-radius:4px;background:var(--gold)}
.showcase.view-open .side-panel{opacity:0;visibility:hidden;transform:translateX(-35px) scale(.97);pointer-events:none}.showcase.view-open .type-panel{opacity:0;visibility:hidden;transform:translateX(35px) scale(.97);pointer-events:none}.side-panel,.type-panel{transition:opacity .24s ease,transform .3s ease,visibility .24s}.view-panel{inset:116px 5.5% 88px!important;padding:0 20px 18px!important;overflow:hidden}.view-panel-head{height:72px!important;padding:0 4px;background:#0c0c0a}.view-panel-head h2{font-size:clamp(24px,2.2vw,36px)!important}.view-content{height:calc(100% - 72px)!important;padding-top:12px!important;overflow:hidden}.coming-view,.menu-grid,.location-view{max-width:1280px;margin:0 auto}.coming-view h3{font-size:clamp(28px,3vw,48px)!important}.bottom-nav{left:7%!important;right:7%!important;bottom:0!important;height:78px!important;overflow:hidden}.gallery-stage{height:calc(100% - 112px)!important}.gallery-strip{height:102px!important;scrollbar-width:thin;scrollbar-color:#b8913c #171612}.gallery-strip::-webkit-scrollbar{height:7px}.gallery-strip::-webkit-scrollbar-track{background:#171612;border-radius:8px}.gallery-strip::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#806126,#e0bd62);border-radius:8px}.gallery-strip button{flex-basis:130px!important}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:8px 0}.location-view{padding:8px 0}@media(max-height:760px){.view-panel{inset:96px 4% 76px!important}.view-panel-head{height:58px!important}.view-content{height:calc(100% - 58px)!important}.gallery-strip{height:86px!important}.gallery-stage{height:calc(100% - 94px)!important}.bottom-nav{height:68px!important}.menu-grid button{min-height:120px}}
.viewer-canvas{min-width:0!important;min-height:0!important;position:relative!important}.viewer-canvas #viewerImage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
.location-view{height:100%!important;min-height:0;box-sizing:border-box!important;padding:4px 0!important;align-items:stretch}.location-view>div:first-child{display:flex!important;flex-direction:column;justify-content:center;min-height:0;overflow:hidden;padding:clamp(14px,2vw,30px)!important}.location-pin{flex:0 0 auto;font-size:clamp(30px,3vw,48px)!important;line-height:1}.location-view p{margin:clamp(10px,2vh,20px) 0 0;font-size:clamp(12px,1.1vw,16px);line-height:1.35}.location-view h3{margin:clamp(12px,2vh,24px) 0!important;font-size:clamp(30px,3.2vw,50px)!important;line-height:1}.location-view small{display:block;max-width:440px;font-size:clamp(9px,.85vw,13px);line-height:1.55!important}.map-placeholder{height:100%;min-height:0!important;box-sizing:border-box}.coming-view,.menu-grid{height:100%;min-height:0;box-sizing:border-box}.coming-view p{margin:5px 0 14px}.view-panel-head>div:first-child{min-width:0}.view-panel-head h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bottom-nav button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bottom-nav button span{line-height:1}
.detail-panel{overflow:hidden}.detail-body{grid-template-rows:minmax(180px,1fr) 70px minmax(95px,.45fr)!important;overflow:hidden}.apt-media{grid-column:1/-1;min-height:0;overflow:hidden;border-top:1px solid var(--line);padding-top:8px}.apt-media-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.apt-media-head span{color:var(--gold2);font:600 18px 'Cormorant Garamond',serif}.apt-media-head small{color:var(--muted);font-size:8px}.apt-media-strip{display:flex;gap:8px;height:calc(100% - 30px);overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b8913c #171612}.apt-media-strip button{position:relative;flex:0 0 130px;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:#11110e;color:white}.apt-media-image img{width:100%;height:100%;object-fit:cover}.apt-media-image i{position:absolute;left:5px;bottom:4px;padding:3px 5px;background:#090908;color:var(--gold2);font-size:7px;font-style:normal}.apt-media-video{display:grid;place-content:center;justify-items:center}.apt-media-video span{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--gold);border-radius:50%;color:var(--gold2)}.apt-media-video b{margin-top:6px;font-size:8px;font-weight:500;text-transform:capitalize}.video-view{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center}.video-view video{width:100%;height:100%;object-fit:contain;background:#000;border:1px solid var(--line);border-radius:10px}.video-view p{margin:8px;color:var(--gold2);font-size:10px}
.showcase.detail-open .type-panel{opacity:0;visibility:hidden;transform:translateX(35px) scale(.97);pointer-events:none}.showcase.detail-open .detail-panel{right:2%!important}.showcase.detail-open .bottom-nav{opacity:.2;pointer-events:none}
.features-grid{height:100%;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;overflow-y:auto;padding:4px;scrollbar-width:thin;scrollbar-color:#b8913c #171612}.features-grid article{display:grid;grid-template-columns:54px 1fr;gap:14px;align-items:center;min-height:108px;padding:15px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(145deg,#191812,#0e0e0c)}.features-grid article>span{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--gold);border-radius:10px;color:var(--gold2);font-size:22px}.features-grid small{color:var(--gold);font-size:7px;letter-spacing:1.5px;text-transform:uppercase}.features-grid h3{margin:3px 0;font:600 20px 'Cormorant Garamond',serif}.features-grid p{margin:0;color:var(--muted);font-size:9px;line-height:1.45}.nearby-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:18px}.nearby-list span{padding:7px 9px;border:1px solid rgba(213,173,85,.2);border-radius:5px;color:#c5b992;font-size:8px}.location-view iframe{width:100%;height:100%;border:1px solid var(--line);border-radius:12px;filter:grayscale(.7) sepia(.2) brightness(.75)}
.welcome-residence-name{position:absolute;z-index:3;left:50%;bottom:14px;transform:translateX(-50%);padding:8px 18px;border:1px solid var(--line);border-radius:20px;background:rgba(8,8,7,.82);color:var(--gold2);font:600 17px 'Cormorant Garamond',serif;white-space:nowrap}.welcome-residence-selector{position:absolute;z-index:6;left:50%;bottom:21%;transform:translateX(-50%);display:flex;gap:8px}.welcome-residence-selector button{padding:9px 15px;border:1px solid var(--line);border-radius:20px;background:#11110e;color:#b4afa3;font-size:9px}.welcome-residence-selector button.active{color:#17130a;background:linear-gradient(135deg,#edcf7a,#a77c27)}.welcome-residence-selector~.reference-discover{bottom:10%}
.gallery-stage .gallery-active-media{width:100%;height:100%;display:grid;place-items:center;overflow:hidden}.gallery-stage .gallery-active-media img,.gallery-stage .gallery-active-media video{width:100%;height:100%;object-fit:contain}.gallery-strip .video-thumb{position:static!important;display:grid!important;place-items:center;width:100%;height:100%;padding:0!important;background:radial-gradient(circle,#4b3b18,#0b0b09 65%)!important;color:var(--gold2);font-size:25px!important}.gallery-strip button.is-video{border-style:dashed}

/* Un panneau ferme doit être totalement absent, pas seulement déplacé sous l'écran. */
.detail-panel{opacity:0;visibility:hidden;pointer-events:none}
.detail-panel.open{opacity:1;visibility:visible;pointer-events:auto}
.showcase.view-open .detail-panel{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.embedded-map{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#151511}.embedded-map iframe{display:block;width:100%;height:100%;border:0;filter:saturate(.82) contrast(1.03)}.map-overlay-link{position:absolute;right:14px;top:14px;padding:10px 14px;border:1px solid var(--gold);border-radius:7px;background:rgba(10,10,8,.88);color:var(--gold2);font-size:9px;text-decoration:none;backdrop-filter:blur(10px)}.map-link{display:inline-block;margin-top:22px;text-decoration:none;font-size:10px}
.type-filters{max-height:calc(100vh - 310px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b8913c #171612}.type-filters::-webkit-scrollbar{width:6px}.type-filters::-webkit-scrollbar-thumb{background:#b8913c;border-radius:8px}

/* Accueil public premium : clair animé par défaut, sombre à la demande. */
.welcome-theme-toggle{position:absolute;z-index:20;right:3.2%;top:4%;display:flex;align-items:center;gap:9px;padding:11px 16px;border:1px solid rgba(139,94,14,.42);border-radius:24px;background:rgba(255,253,247,.82);color:#543806;box-shadow:0 9px 25px rgba(92,61,9,.1);backdrop-filter:blur(14px);cursor:pointer;transition:.25s}
.welcome-theme-toggle span{font-size:18px}.welcome-theme-toggle b{font-size:10px;letter-spacing:.4px}.welcome-theme-toggle:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(92,61,9,.16)}
html[data-welcome-theme="light"] .reference-welcome{color:#21170b;background:linear-gradient(135deg,#fffdf7 0%,#f6e9cc 47%,#fff9ed 100%)!important}
html[data-welcome-theme="light"] .reference-welcome:before{border-color:rgba(151,103,17,.28)}
html[data-welcome-theme="light"] .gold-corners{z-index:0;background:linear-gradient(135deg,transparent 8%,rgba(166,116,23,.5) 8.1%,transparent 8.25%) top left/31% 45% no-repeat,linear-gradient(225deg,transparent 8%,rgba(166,116,23,.5) 8.1%,transparent 8.25%) top right/31% 45% no-repeat,linear-gradient(45deg,transparent 9%,rgba(166,116,23,.42) 9.1%,transparent 9.25%) bottom left/25% 42% no-repeat,linear-gradient(315deg,transparent 9%,rgba(166,116,23,.42) 9.1%,transparent 9.25%) bottom right/25% 42% no-repeat}
html[data-welcome-theme="light"] .gold-corners:before{content:'';position:absolute;inset:-35%;background:radial-gradient(circle at 23% 27%,rgba(245,208,108,.68) 0 8%,transparent 25%),radial-gradient(circle at 78% 70%,rgba(178,127,31,.22) 0 8%,transparent 25%),conic-gradient(from 35deg,transparent 0 17%,rgba(191,145,49,.08) 18%,transparent 19% 50%,rgba(235,201,121,.14) 51%,transparent 53%);animation:welcomeAmbient 18s ease-in-out infinite alternate}
html[data-welcome-theme="light"] .gold-corners:after{content:'IMMOBINA  •  PROMOTION  •  BY HASSAINE';position:absolute;left:-10%;right:-10%;top:54%;padding:18px 0;border-top:1px solid rgba(142,99,20,.12);border-bottom:1px solid rgba(142,99,20,.12);color:rgba(118,78,12,.06);font:600 clamp(35px,5vw,82px)/1 'Cormorant Garamond',serif;letter-spacing:.13em;white-space:nowrap;transform:rotate(-8deg);animation:welcomeRibbon 24s linear infinite}
html[data-welcome-theme="light"] .reference-brand{background:rgba(255,253,247,.9);filter:drop-shadow(0 18px 28px rgba(93,61,8,.13))}
html[data-welcome-theme="light"] .reference-brand .official-logo{mix-blend-mode:normal;width:clamp(150px,18vw,250px);filter:drop-shadow(0 10px 14px rgba(104,68,8,.12))}
html[data-welcome-theme="light"] .welcome-residence-card{border-color:#ae7a1c;background:#fff;box-shadow:0 30px 80px rgba(103,69,10,.22),0 0 0 8px rgba(255,255,255,.5)}
html[data-welcome-theme="light"] .welcome-residence-name{border-color:rgba(153,105,19,.45);background:rgba(255,252,243,.9);color:#624108;box-shadow:0 8px 25px rgba(86,56,8,.13);backdrop-filter:blur(12px)}
html[data-welcome-theme="light"] .welcome-residence-selector button{border-color:rgba(145,99,17,.4);background:rgba(255,253,247,.86);color:#5e503d;box-shadow:0 6px 15px rgba(87,57,8,.08)}
html[data-welcome-theme="light"] .welcome-residence-selector button.active{color:#1c1307;background:linear-gradient(110deg,#bf8d2e,#f1d377,#c09338);font-weight:700}
html[data-welcome-theme="light"] .reference-discover{border-color:#9f6e17;background:rgba(255,253,247,.88);color:#21170b;box-shadow:0 16px 35px rgba(111,74,10,.18);backdrop-filter:blur(14px)}
html[data-welcome-theme="light"] .reference-discover:hover{background:linear-gradient(110deg,#bf8d2e,#f3d77f,#c09338);transform:translateX(-50%) translateY(-3px)}
html[data-welcome-theme="light"] .admin-link{color:#5f513d;font-weight:600}
html[data-welcome-theme="dark"] .welcome-theme-toggle{border-color:var(--line);background:rgba(15,14,11,.85);color:var(--gold2)}
@keyframes welcomeAmbient{from{transform:translate3d(-2%,-1%,0) rotate(0) scale(1)}to{transform:translate3d(3%,2%,0) rotate(8deg) scale(1.08)}}
@keyframes welcomeRibbon{to{transform:translateX(-8%) rotate(-8deg)}}
@media(max-width:760px){.welcome-theme-toggle{right:18px;top:18px;padding:9px 12px}.welcome-theme-toggle b{display:none}}
@media(prefers-reduced-motion:reduce){html[data-welcome-theme="light"] .gold-corners:before,html[data-welcome-theme="light"] .gold-corners:after{animation:none}}

/* Même identité claire dans toute la présentation. */
.showcase-theme-toggle{pointer-events:auto;position:absolute;z-index:3;right:78px;top:17px;display:flex;align-items:center;gap:7px;height:40px;padding:0 13px;border:1px solid var(--line);border-radius:20px;background:rgba(15,14,11,.88);color:var(--gold2);cursor:pointer;backdrop-filter:blur(12px)}
.showcase-theme-toggle span{font-size:16px}.showcase-theme-toggle b{font-size:9px;white-space:nowrap}.showcase-theme-toggle:hover{transform:translateY(-2px)}
html[data-welcome-theme="light"] .showcase{--bg:#f7f0e2;--panel:#fffdf8;--panel2:#f1e7d3;--gold:#a9791f;--gold2:#765009;--line:rgba(151,105,20,.4);--muted:#655b4c;--white:#21170c;color:#21170c;background:linear-gradient(135deg,#fffdf7,#f1e3c7 48%,#fffaf0)!important}
html[data-welcome-theme="light"] .showcase:before{content:'';position:absolute;z-index:0;inset:-30%;background:radial-gradient(circle at 20% 25%,rgba(243,207,111,.32),transparent 24%),radial-gradient(circle at 82% 70%,rgba(178,127,31,.16),transparent 24%);pointer-events:none;animation:welcomeAmbient 20s ease-in-out infinite alternate}
html[data-welcome-theme="light"] .reference-topbar .mini-brand{background:rgba(255,253,247,.94);filter:drop-shadow(0 15px 24px rgba(94,62,9,.15))}
html[data-welcome-theme="light"] .reference-topbar .official-logo{mix-blend-mode:normal;filter:drop-shadow(0 8px 12px rgba(103,67,8,.11))}
html[data-welcome-theme="light"] .icon-button,html[data-welcome-theme="light"] .showcase-theme-toggle{border-color:rgba(145,99,17,.45);background:rgba(255,253,247,.9);color:#684606;box-shadow:0 8px 22px rgba(91,59,8,.11)}
html[data-welcome-theme="light"] .hero-frame{box-shadow:0 25px 70px rgba(79,52,8,.18)}
html[data-welcome-theme="light"] .side-panel,html[data-welcome-theme="light"] .type-panel{border-color:rgba(151,105,20,.45)!important;background:rgba(255,253,247,.91)!important;color:#21170c;box-shadow:0 20px 50px rgba(84,55,8,.16)!important}
html[data-welcome-theme="light"] .facade{background:#f0e6d3!important}html[data-welcome-theme="light"] .facade.active{border-color:#a9791f!important;box-shadow:0 0 0 3px rgba(169,121,31,.18)}
html[data-welcome-theme="light"] .apartment-list-head{background:rgba(246,235,213,.96);color:#342719;border-color:rgba(151,105,20,.34)!important}
html[data-welcome-theme="light"] .apartment-row{border-color:rgba(151,105,20,.28)!important;background:rgba(255,255,255,.94)!important;color:#24190d!important}
html[data-welcome-theme="light"] .apartment-row small{color:#675c4c!important}html[data-welcome-theme="light"] .apartment-row:hover,html[data-welcome-theme="light"] .apartment-row.selected{background:linear-gradient(110deg,#c49335,#f1d47a)!important;color:#1c1308!important}
html[data-welcome-theme="light"] .type-title{color:#322617;font-weight:600}
html[data-welcome-theme="light"] .type-filters button{border-color:rgba(151,105,20,.38)!important;background:#fffdf8!important;color:#21170c!important;box-shadow:0 7px 16px rgba(87,57,8,.07)}
html[data-welcome-theme="light"] .type-filters button.active{background:linear-gradient(135deg,#efd27b,#b9872b)!important;color:#191006!important}
html[data-welcome-theme="light"] .view-panel,html[data-welcome-theme="light"] .detail-panel{border-color:#a9791f!important;background:rgba(255,253,247,.97)!important;color:#21170c!important;box-shadow:0 28px 75px rgba(77,49,7,.2)}
html[data-welcome-theme="light"] .view-panel-head{background:#fffdf8!important;border-color:rgba(151,105,20,.35)}
html[data-welcome-theme="light"] .gallery-stage{background:#f1e8d8!important}html[data-welcome-theme="light"] .gallery-arrow{background:rgba(255,253,247,.9);color:#704b07}html[data-welcome-theme="light"] .gallery-caption{background:rgba(255,253,247,.9);color:#3e2c11}
html[data-welcome-theme="light"] .gallery-strip button{background:#eee2cc}html[data-welcome-theme="light"] .gallery-strip{scrollbar-color:#b8913c #eee2cc}
html[data-welcome-theme="light"] .features-grid article,html[data-welcome-theme="light"] .menu-grid button{border-color:rgba(151,105,20,.3);background:linear-gradient(145deg,#fffdf8,#f3e8d3);color:#21170c}
html[data-welcome-theme="light"] .features-grid p,html[data-welcome-theme="light"] .coming-view p{color:#625746}html[data-welcome-theme="light"] .nearby-list span{color:#594c39}
html[data-welcome-theme="light"] .plan-card{background:#f4eee2}html[data-welcome-theme="light"] .stats div{background:#fffaf0}
html[data-welcome-theme="light"] .apt-media-strip button{background:#fffaf0;color:#21170c}
html[data-welcome-theme="light"] .bottom-nav{border-color:rgba(151,105,20,.36)!important;background:rgba(255,253,247,.94)!important;box-shadow:0 -12px 35px rgba(78,50,7,.12);backdrop-filter:blur(18px)}
html[data-welcome-theme="light"] .bottom-nav button{color:#766c5d!important}html[data-welcome-theme="light"] .bottom-nav button.active{color:#704b06!important;background:rgba(225,198,141,.2)}
html[data-welcome-theme="light"] .map-placeholder,html[data-welcome-theme="light"] .embedded-map{background:#eee3d0}html[data-welcome-theme="light"] .map-overlay-link{background:rgba(255,253,247,.92);color:#674505}
html[data-welcome-theme="light"] .image-pan-hint{background:rgba(255,253,247,.85);color:#59400f}
@media(max-width:760px){.showcase-theme-toggle{right:68px;padding:0 10px}.showcase-theme-toggle b{display:none}}

/* Lisibilité renforcée des commandes dans le thème clair. */
html[data-welcome-theme="light"] .bottom-nav button{opacity:1!important;color:#4f4639!important;font-size:11px!important;font-weight:600;text-shadow:none}
html[data-welcome-theme="light"] .bottom-nav button span{color:#69501f!important;font-size:22px!important;opacity:1}
html[data-welcome-theme="light"] .bottom-nav button:hover{color:#4e3304!important;background:#f4e6c9!important}
html[data-welcome-theme="light"] .bottom-nav button.active{color:#583902!important;background:linear-gradient(180deg,#f3e3bf,#fffaf0)!important;border-top-color:#9e6c13!important}
html[data-welcome-theme="light"] .bottom-nav button.active span{color:#8a5b08!important}
html[data-welcome-theme="light"] .panel-action,html[data-welcome-theme="light"] .coming-badge{min-height:46px;padding:12px 22px;border:1px solid #8e6110;background:linear-gradient(110deg,#bd892b,#f0d277,#c09337);color:#1d1408;font-size:12px;font-weight:700;box-shadow:0 9px 22px rgba(114,76,11,.18)}
html[data-welcome-theme="light"] .panel-action:hover{background:linear-gradient(110deg,#cb9837,#f7df96,#cfa044);transform:translateY(-2px)}
html[data-welcome-theme="light"] .menu-grid button{opacity:1!important;color:#261b0e!important;box-shadow:0 9px 22px rgba(89,59,8,.08)}
html[data-welcome-theme="light"] .menu-grid button:hover{border-color:#9e6c13;background:linear-gradient(145deg,#f4e4c2,#fffdf8)}
html[data-welcome-theme="light"] .menu-grid span{color:#79520b!important}html[data-welcome-theme="light"] .menu-grid b{color:#21170c!important;font-size:27px}html[data-welcome-theme="light"] .menu-grid small{color:#554a3a!important;font-size:11px}
html[data-welcome-theme="light"] .coming-view>span{color:#8d6110!important}html[data-welcome-theme="light"] .coming-view h3{color:#21170c!important}html[data-welcome-theme="light"] .coming-view p{color:#574d3f!important;font-size:15px}
html[data-welcome-theme="light"] .view-panel-head span{color:#76500a!important;font-weight:700}html[data-welcome-theme="light"] .view-panel-head h2{color:#21170c!important}
html[data-welcome-theme="light"] .type-filters button{opacity:1!important;font-weight:700;font-size:clamp(18px,2vw,31px)}
html[data-welcome-theme="light"] .gallery-arrow,html[data-welcome-theme="light"] .icon-button{font-weight:700}
@media(max-width:900px){html[data-welcome-theme="light"] .bottom-nav button{font-size:10px!important}html[data-welcome-theme="light"] .bottom-nav button span{font-size:20px!important}}

/* Installation PWA. */
.install-pwa{position:absolute;z-index:20;right:3.2%;top:11%;display:flex;align-items:center;gap:9px;padding:12px 17px;border:1px solid rgba(139,94,14,.44);border-radius:24px;background:rgba(255,253,247,.86);color:#543806;box-shadow:0 10px 27px rgba(92,61,9,.12);backdrop-filter:blur(14px);cursor:pointer;transition:.25s}
.install-pwa span{font-size:19px}.install-pwa b{font-size:10px}.install-pwa:hover,.install-pwa.ready{transform:translateY(-2px);background:linear-gradient(110deg,#bf8d2e,#f1d377,#c09338);color:#1b1207;box-shadow:0 15px 34px rgba(110,73,10,.2)}
.install-pwa.installed{background:#e7f3e5;color:#285c2b;border-color:#75a879}
.install-pwa[hidden]{display:none!important}
html[data-welcome-theme="dark"] .install-pwa{border-color:var(--line);background:rgba(15,14,11,.87);color:var(--gold2)}
.install-guide{position:fixed;z-index:2000;inset:0;display:grid;place-items:center;padding:20px;opacity:0;visibility:hidden;background:rgba(32,23,10,.38);backdrop-filter:blur(16px);transition:.25s}
.install-guide.open{opacity:1;visibility:visible}.install-guide-card{position:relative;width:min(500px,92vw);padding:32px 38px 35px;border:1px solid rgba(151,105,20,.42);border-radius:25px;background:#fffdf8;color:#21170c;text-align:center;box-shadow:0 35px 90px rgba(62,41,7,.25);transform:translateY(18px) scale(.97);transition:.3s}
.install-guide.open .install-guide-card{transform:none}.install-guide-card img{display:block;width:170px;height:105px;margin:0 auto 5px;object-fit:contain}.install-guide-card h2{margin:8px 0 14px;font:600 34px 'Cormorant Garamond',serif}.install-guide-card p{margin:0;color:#4e4335;font-size:14px;line-height:1.75}.install-guide-card small{display:block;margin-top:17px;padding-top:15px;border-top:1px solid rgba(151,105,20,.22);color:#746754;font-size:11px;line-height:1.5}.install-guide-close{position:absolute;right:15px;top:15px;width:38px;height:38px;border:1px solid rgba(151,105,20,.35);border-radius:50%;background:#fffaf0;color:#704a05;font-size:23px;cursor:pointer}
@media(max-width:760px){.install-pwa{right:18px;top:72px;padding:10px 12px}.install-pwa b{display:none}.install-guide-card{padding:28px 23px 30px}}

/* Téléphone tourné en paysage : composition compacte dédiée. */
@media (orientation:landscape) and (max-height:560px){
  .reference-welcome:after,.showcase:after{display:none!important;content:none!important}
  .reference-brand{top:1.5%;padding:2px 28px 8px}
  .reference-brand .official-logo{width:112px!important;height:64px!important}
  .welcome-residence-card{left:10%;right:10%;top:16%;bottom:23%;border-radius:16px}
  .welcome-residence-card img{object-position:center 35%}
  .welcome-residence-name{bottom:3%!important;padding:6px 16px!important;font-size:15px!important}
  .reference-discover{bottom:5%;min-width:280px;padding:10px 25px;font-size:18px}
  .welcome-residence-selector{bottom:17%!important}
  .install-pwa{position:absolute;top:10px;right:10px;left:auto;padding:9px 11px;border-radius:50%}
  .install-pwa b{display:none}
  .install-pwa span{font-size:18px}
  .reference-topbar{height:58px}
  .reference-topbar .mini-brand{padding:3px 30px 9px}
  .reference-topbar .official-logo{width:92px!important;height:50px!important}
  .reference-topbar>.icon-button{top:8px;width:38px;height:38px}
  .showcase-theme-toggle{top:8px!important;right:54px!important;width:38px!important;height:38px!important;padding:0!important;display:grid!important;place-items:center}
  .showcase-theme-toggle b{display:none!important}
  .showcase-theme-toggle span{font-size:16px!important}
  .main-stage{inset:3% 2% 3% 76px!important}
  .side-panel{left:82px!important;top:9%!important;bottom:3%!important;width:31%!important;max-height:none!important;padding:8px!important}
  .facade-grid{gap:5px!important}
  .facade{height:47px!important;border-radius:7px!important}
  .apartment-list-head{height:36px;margin-top:6px;font-size:11px}
  .apartment-list{height:calc(100% - 138px)!important}
  .apartment-row{min-height:39px!important;padding:5px!important}
  .type-panel{right:1%!important;top:9%!important;width:21%!important;min-height:135px!important;padding:8px!important}
  .type-filters{gap:5px!important}
  .type-filters button{height:45px!important;font-size:18px!important}
  .detail-panel{inset:8% 1% 3% 34%!important;padding:9px!important}
  .detail-head h2{font-size:20px!important}
  .bottom-nav{left:0!important;right:auto!important;top:56px!important;bottom:0!important;width:72px!important;height:auto!important;display:flex!important;flex-direction:column!important;border:0!important;border-right:1px solid rgba(222,190,109,.4)!important;border-radius:0!important;overflow-y:auto!important;background:rgba(12,12,10,.98)!important}
  .bottom-nav button{width:72px!important;min-height:48px!important;flex:1 0 48px!important;padding:4px 2px!important;font-size:7px!important;line-height:1.15!important;white-space:normal!important}
  .bottom-nav button span{display:block!important;font-size:15px!important;margin:0 0 2px!important}
  .view-panel{inset:7% 1% 2% 80px!important;padding:10px!important}
  .view-panel-head{height:45px}
  .view-panel-head h2{font-size:23px}
}

@media (orientation:landscape) and (max-height:430px){
  .bottom-nav{top:48px!important;width:66px!important}
  .bottom-nav button{width:66px!important;min-height:42px!important;flex-basis:42px!important;font-size:6.5px!important}
  .bottom-nav button span{font-size:14px!important}
  .main-stage{left:70px!important}
  .side-panel{left:72px!important;width:31%!important}
  .view-panel{left:72px!important}
  .hero-overlay h1{font-size:clamp(20px,3vw,30px)!important;line-height:1.05!important}
}

/* Correctif final tablette/mobile : les panneaux utilisent le viewport utile.
   Ils ne doivent pas cumuler les marges de .main-stage et leurs propres inset. */
@media (orientation:landscape) and (max-width:1400px){
  .view-panel{
    position:fixed!important;
    z-index:30!important;
    top:80px!important;
    right:2.2%!important;
    bottom:68px!important;
    left:2.2%!important;
    width:auto!important;
    height:auto!important;
    max-height:none!important;
  }
  .detail-panel{
    position:fixed!important;
    z-index:29!important;
    top:80px!important;
    right:2.2%!important;
    bottom:68px!important;
    left:35%!important;
    width:auto!important;
    height:auto!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .detail-panel .detail-body{
    min-height:calc(100% - 62px)!important;
  }
  .view-panel .view-content{
    min-height:0!important;
  }
  .view-panel .location-view,
  .view-panel .menu-grid,
  .view-panel .features-grid{
    min-height:100%!important;
  }
}

@media (orientation:landscape) and (max-width:1400px) and (max-height:560px){
  .view-panel{
    top:50px!important;
    right:8px!important;
    bottom:68px!important;
    left:8px!important;
  }
  .detail-panel{
    top:50px!important;
    right:8px!important;
    bottom:68px!important;
    left:35%!important;
  }
}

@media (orientation:landscape) and (max-width:999px) and (max-height:560px){
  .view-panel{left:76px!important}
  .detail-panel{left:35%!important}
}

/* Mobile/tablette paysage, y compris les navigateurs qui réduisent un grand viewport logique. */
@media (orientation:landscape) and (max-width:1400px){
  html,body,.app-shell,.showcase{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important}
  .showcase{border-width:2px!important}
  .main-stage{inset:1% 1% 68px!important}
  .view-panel{inset:58px 1% 68px!important;padding:0 10px 8px!important;border-radius:13px!important}
  .view-panel-head{height:54px!important;min-height:54px!important;padding:0 4px!important}
  .view-content{height:calc(100% - 54px)!important;padding-top:7px!important}
  .bottom-nav{left:1%!important;right:1%!important;bottom:0!important;height:62px!important}
  .features-grid{height:100%!important;grid-auto-rows:minmax(138px,auto)!important;padding-bottom:8px!important}
  .coming-view{min-height:100%!important;padding:18px 12px!important}
  .gallery-stage{height:calc(100% - 72px)!important;min-height:120px!important}
  .gallery-strip{height:68px!important;padding:6px 1px!important}
}
@supports(height:100dvh){@media(orientation:landscape) and (max-width:1400px){html,body,.app-shell,.showcase{width:100dvw!important;height:100dvh!important}}}

/* Défilement tactile des fenêtres qui dépassent la hauteur disponible. */
.view-content.view-content-scroll{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding-right:5px!important;scrollbar-width:thin;scrollbar-color:#c69a3d transparent}
.view-content.view-content-scroll::-webkit-scrollbar{width:6px}.view-content.view-content-scroll::-webkit-scrollbar-thumb{border-radius:8px;background:#c69a3d}
.view-content-scroll .menu-grid,.view-content-scroll .location-view{height:auto!important;min-height:100%}

/* La fenêtre d'installation reste entièrement accessible sur mobile. */
.install-guide{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-items:start!important}
.install-guide-card{max-height:none;margin:auto!important}
@media(max-height:620px),(max-width:430px){.install-guide{display:block!important;padding:14px!important}.install-guide-card{width:min(500px,100%)!important;margin:14px auto!important;padding:24px 20px 26px!important}.install-guide-card img{width:128px;height:78px}.install-guide-card h2{font-size:29px}.install-guide-card p{font-size:13px;line-height:1.6}}

/* Fiche appartement : toute la fiche et la liste restent tactiles. */
.apartment-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#c69a3d transparent}
@media (orientation:landscape) and (max-height:620px){.showcase.detail-open .reference-topbar .mini-brand{opacity:0!important;visibility:hidden!important}.detail-panel{top:48px!important;bottom:6px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}.detail-body{height:auto!important;min-height:calc(100% - 54px);grid-template-rows:minmax(210px,52vh) 72px minmax(105px,30vh)!important}.apt-media{min-height:105px}.detail-head{position:sticky;z-index:5;top:-9px;padding:6px 0;background:inherit}.side-panel{overflow:hidden!important}.apartment-list{overflow-y:auto!important}}
.gallery-active-media img{cursor:zoom-in;touch-action:manipulation}

/* La navigation reste utilisable pendant la consultation d'un appartement. */
.showcase.detail-open .bottom-nav{opacity:1!important;pointer-events:auto!important}

/* Plans distincts du catalogue des appartements. */
.selected-plans{min-height:100%;display:grid;grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);gap:18px;align-items:stretch}.selected-plans>header{display:grid;align-content:center;padding:24px}.selected-plans h3{margin:10px 0;font:600 clamp(30px,3vw,48px) 'Cormorant Garamond',serif}.selected-plans p{color:var(--muted);font-size:12px;line-height:1.7}.selected-plans-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:0}.selected-plans-grid button{position:relative;min-height:220px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#0b0b09;color:var(--gold2);text-align:left}.selected-plans-grid img{display:block;width:100%;height:calc(100% - 54px);object-fit:contain;background:#eee}.selected-plans-grid b,.selected-plans-grid small{display:block;padding:0 12px}.selected-plans-grid b{margin-top:8px}.selected-plans-grid small{margin-top:3px;color:var(--muted);font-size:8px}

/* Tablette et grand écran : navigation horizontale en bas. */
@media (orientation:landscape) and (min-width:1000px) and (max-height:560px){
  .bottom-nav{left:4%!important;right:4%!important;top:auto!important;bottom:0!important;width:auto!important;height:62px!important;display:flex!important;flex-direction:row!important;border:1px solid rgba(222,190,109,.4)!important;border-bottom:0!important;border-radius:13px 13px 0 0!important;overflow:hidden!important}
  .bottom-nav button{width:auto!important;min-height:0!important;min-width:0!important;flex:1 1 0!important;padding:4px!important;font-size:8px!important;white-space:nowrap!important}
  .bottom-nav button span{font-size:17px!important;margin-bottom:3px!important}
  .main-stage{inset:3% 2% 11%!important}
  .side-panel{left:1%!important;top:9%!important;bottom:11%!important;width:31%!important}
  .type-panel{bottom:11%!important}
  .view-panel{inset:50px 1% 68px!important}
  .detail-panel{top:48px!important;right:1%!important;bottom:68px!important}
}
@media (orientation:landscape) and (max-width:999px){.selected-plans{grid-template-columns:1fr}.selected-plans>header{padding:10px 14px}.selected-plans h3{font-size:28px}.selected-plans-grid button{min-height:190px}}

/* Cartes de caractéristiques : le texte reste toujours dans sa carte. */
.features-grid{grid-auto-rows:minmax(138px,auto)!important;align-content:start!important}.features-grid article{min-height:138px!important;align-items:center!important;overflow:hidden}.features-grid article>div{min-width:0}.features-grid h3,.features-grid p{overflow-wrap:anywhere}.features-grid p{max-width:100%}

/* Glissement horizontal naturel des photos. */
.gallery-stage{touch-action:pan-y}.gallery-strip,.apt-media-strip{touch-action:pan-x;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}.gallery-strip button,.apt-media-strip button{scroll-snap-align:center}

/* En plein écran et dans la PWA, le menu passe systématiquement en bas. */
html:fullscreen .bottom-nav{left:3%!important;right:3%!important;top:auto!important;bottom:0!important;width:auto!important;height:62px!important;display:flex!important;flex-direction:row!important;border:1px solid rgba(222,190,109,.4)!important;border-bottom:0!important;border-radius:13px 13px 0 0!important;overflow:hidden!important}
html:fullscreen .bottom-nav button{width:auto!important;min-height:0!important;min-width:0!important;flex:1 1 0!important;padding:4px 2px!important;font-size:7px!important;white-space:nowrap!important}html:fullscreen .bottom-nav button span{font-size:16px!important;margin-bottom:3px!important}
html:fullscreen .main-stage{left:2%!important;bottom:68px!important}html:fullscreen .side-panel{left:1%!important;bottom:68px!important}html:fullscreen .view-panel{left:1%!important;bottom:68px!important}html:fullscreen .detail-panel{bottom:68px!important}
@media (display-mode:standalone) and (orientation:landscape){.bottom-nav{left:3%!important;right:3%!important;top:auto!important;bottom:0!important;width:auto!important;height:62px!important;display:flex!important;flex-direction:row!important;border:1px solid rgba(222,190,109,.4)!important;border-bottom:0!important;border-radius:13px 13px 0 0!important;overflow:hidden!important}.bottom-nav button{width:auto!important;min-height:0!important;min-width:0!important;flex:1 1 0!important;padding:4px 2px!important;font-size:7px!important;white-space:nowrap!important}.bottom-nav button span{font-size:16px!important;margin-bottom:3px!important}.main-stage{left:2%!important;bottom:68px!important}.side-panel{left:1%!important;bottom:68px!important}.view-panel{left:1%!important;bottom:68px!important}.detail-panel{bottom:68px!important}}

/* Contraste sombre final : commandes visibles sur tous les écrans. */
html[data-welcome-theme="dark"] button:not(.apartment-row):not(.facade),
html[data-welcome-theme="dark"] .panel-action,
html[data-welcome-theme="dark"] .map-link{
  border-color:rgba(240,205,118,.62)!important;
  color:#f5d985!important;
  background:linear-gradient(145deg,#211d13,#0d0d0b)!important;
  box-shadow:inset 0 0 0 1px rgba(255,225,145,.06),0 8px 22px rgba(0,0,0,.28)!important;
  opacity:1!important;
}
html[data-welcome-theme="dark"] button:hover,
html[data-welcome-theme="dark"] button:focus-visible{
  border-color:#f0cf79!important;
  color:#fff3c7!important;
  background:linear-gradient(145deg,#342916,#15120c)!important;
}
html[data-welcome-theme="dark"] .bottom-nav button.active,
html[data-welcome-theme="dark"] .type-filters button.active{
  color:#171108!important;
  background:linear-gradient(120deg,#b9872c,#f1d477,#b9872c)!important;
}
html[data-welcome-theme="dark"] .bottom-nav button span,
html[data-welcome-theme="dark"] .menu-grid span{color:#f0cf79!important}
html[data-welcome-theme="dark"] .view-panel-head h2,
html[data-welcome-theme="dark"] .menu-grid b,
html[data-welcome-theme="dark"] .coming-view h3{color:#fff8e7!important}
html[data-welcome-theme="dark"] .menu-grid small,
html[data-welcome-theme="dark"] .coming-view p{color:#c8c0ae!important}

/* Galerie téléphone/tablette paysage : image principale prioritaire. */
@media (orientation:landscape) and (max-height:560px){
  .showcase.view-open .reference-topbar .mini-brand{opacity:0;visibility:hidden}
  .view-panel{inset:50px 8px 8px 76px!important;padding:0 10px 8px!important;border-radius:13px!important}
  .view-panel-head{height:54px!important;min-height:54px!important;padding:0 4px!important;gap:8px}
  .view-panel-head>div{gap:8px!important;min-width:0}
  .view-panel-head>div:first-child{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .view-panel-head h2{margin:0!important;font-size:clamp(20px,3.4vw,28px)!important;line-height:1!important}
  .view-panel-head span{font-size:8px!important;letter-spacing:1.5px!important}
  .view-panel-head .icon-button{width:38px!important;height:38px!important;flex:0 0 38px}
  .view-content{height:calc(100% - 54px)!important;padding-top:7px!important}
  .gallery-stage{height:calc(100% - 72px)!important;min-height:120px!important;border-radius:9px!important}
  .gallery-strip{height:68px!important;padding:6px 1px!important;gap:6px!important}
  .gallery-strip button{flex-basis:104px!important;border-radius:7px!important}
  .gallery-arrow{width:40px!important;height:58px!important;font-size:30px!important}
  .gallery-arrow.prev{left:5px!important}.gallery-arrow.next{right:5px!important}
  .gallery-caption{bottom:6px!important;padding:5px 12px!important;font-size:8px!important}
  .gallery-active-media img,.gallery-active-media video{object-fit:contain!important}
}

@media (orientation:landscape) and (max-height:430px){
  .view-panel{inset:46px 6px 6px 70px!important}
  .view-panel-head{height:46px!important;min-height:46px!important}
  .view-panel-head h2{font-size:20px!important}
  .view-content{height:calc(100% - 46px)!important;padding-top:5px!important}
  .gallery-stage{height:calc(100% - 60px)!important;min-height:100px!important}
  .gallery-strip{height:56px!important;padding:4px 1px!important}
  .gallery-strip button{flex-basis:88px!important}
}

/* Priorité finale : hauteur utile complète au-dessus de la navigation basse. */
@media (orientation:landscape) and (max-width:1400px){
  .view-panel{
    position:fixed!important;z-index:30!important;
    inset:80px 2.2% 68px 2.2%!important;
    width:auto!important;height:auto!important;max-height:none!important;
  }
  .detail-panel{
    position:fixed!important;z-index:29!important;
    inset:80px 2.2% 68px 35%!important;
    width:auto!important;height:auto!important;max-height:none!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  }
  .detail-panel .detail-body{min-height:calc(100% - 62px)!important}
  .view-panel .view-content{min-height:0!important}
  .view-panel .location-view,
  .view-panel .menu-grid,
  .view-panel .features-grid{min-height:100%!important}
}
@media (orientation:landscape) and (max-width:1400px) and (max-height:560px){
  .view-panel{inset:50px 8px 68px 8px!important}
  .detail-panel{inset:50px 8px 68px 35%!important}
}
@media (orientation:landscape) and (max-width:999px) and (max-height:560px){
  .view-panel{left:76px!important}
}

/* Une interaction ne doit jamais conserver la position de défilement de l'accueil. */
.showcase.active{position:fixed!important;inset:0!important}

/* Sélection de bloc et typologies visibles sur tous les écrans paysage. */
.apartment-list-head{align-items:center!important;flex-wrap:wrap!important}
.block-filters{display:flex;flex:1 1 100%;gap:5px;min-width:0;padding:0 2px 5px}
.block-filters[hidden]{display:none!important}
.block-filters button{flex:1;min-width:0;height:29px!important;padding:3px 7px!important;border:1px solid rgba(213,173,85,.42)!important;border-radius:7px!important;background:rgba(255,255,255,.04)!important;color:inherit!important;font-size:9px!important;line-height:1!important;white-space:nowrap}
.block-filters button.active{border-color:#b88425!important;background:linear-gradient(110deg,#b98223,#f0d171)!important;color:#1c1307!important;font-weight:700}
.apartment-list-head:has(.block-filters:not([hidden])){height:auto!important;min-height:68px!important}
.apartment-list-head:has(.block-filters:not([hidden]))+.apartment-list{height:calc(100% - clamp(195px,32vh,320px))!important}

.video-enlarge{position:absolute;z-index:5;right:12px;top:12px;padding:9px 12px;border:1px solid var(--gold);border-radius:8px;background:rgba(12,12,10,.88);color:var(--gold2);font-weight:700;cursor:pointer}
.gallery-active-media,.video-view{position:relative}
.video-viewer{position:fixed;z-index:1000;inset:0;display:none;place-items:center;padding:4vh 4vw}
.video-viewer.open{display:grid}
.video-viewer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.9);backdrop-filter:blur(12px)}
.video-viewer-dialog{position:relative;z-index:1;display:grid;grid-template-rows:minmax(0,1fr) auto;width:min(94vw,1500px);height:min(90vh,900px);padding:14px;border:1px solid var(--gold);border-radius:18px;background:#090908;box-shadow:0 24px 90px #000}
.video-viewer-dialog video{width:100%;height:100%;min-height:0;object-fit:contain;background:#000;border-radius:11px}
.video-viewer-dialog>span{padding:11px 5px 2px;color:var(--gold2);text-align:center}
.video-viewer-close{position:absolute;z-index:2;right:24px;top:24px;width:46px;height:46px;border:1px solid var(--gold);border-radius:50%;background:rgba(10,10,8,.88);color:var(--gold2);font-size:24px}

@media (orientation:landscape) and (max-width:1400px){
  .type-panel{display:block!important;position:fixed!important;z-index:31!important;right:2.5%!important;top:64px!important;bottom:auto!important;width:22%!important;min-height:0!important;height:auto!important;max-height:none!important;padding:9px!important}
  .type-panel .type-title{margin:0 2px 6px!important;font-size:10px!important}
  .type-panel .type-filters{gap:5px!important;margin:0!important}
  .type-panel .type-filters button{height:42px!important;font-size:16px!important}
  .type-panel .residence-note{display:none!important}
  .showcase.detail-open .type-panel,.showcase.view-open .type-panel{display:none!important}
}
@media (orientation:landscape) and (max-width:800px){
  .type-panel{right:1.2%!important;top:58px!important;width:24%!important;padding:6px!important}
  .type-panel .type-title{font-size:8px!important}
  .type-panel .type-filters button{height:34px!important;font-size:13px!important}
  .block-filters{gap:3px}.block-filters button{height:25px!important;padding:2px 4px!important;font-size:7px!important}
  .video-viewer{padding:2vh 2vw}.video-viewer-dialog{width:96vw;height:94vh;padding:8px}.video-viewer-close{right:14px;top:14px;width:38px;height:38px}
}

@media (orientation:landscape) and (max-width:1400px){
  .side-panel{
    position:fixed!important;top:64px!important;bottom:68px!important;
    left:2.5%!important;width:31%!important;height:calc(100vh - 132px)!important;max-height:none!important;
  }
}
@supports(height:100dvh){
  @media (orientation:landscape) and (max-width:1400px){.side-panel{height:calc(100dvh - 132px)!important}}
}

/* Paysage mobile de faible hauteur : aucun contrôle ne doit être écrasé. */
@media (orientation:landscape) and (max-height:620px){
  .side-panel{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  .side-panel .facade-grid{flex:0 0 auto!important;gap:6px!important}
  .side-panel .facade{height:clamp(48px,10.5vh,62px)!important}
  .side-panel .apartment-list-head{flex:0 0 auto!important;margin-top:7px!important;min-height:58px!important;padding:4px 6px!important;gap:5px!important}
  .side-panel .apartment-list-head>button{font-size:21px!important}
  .side-panel .apartment-list-head>span{font-size:11px!important}
  .side-panel .block-filters{padding:0!important;gap:5px!important}
  .side-panel .block-filters button{height:28px!important;font-size:8px!important;padding:3px 4px!important}
  .side-panel .apartment-list{display:block!important;flex:1 1 auto!important;height:auto!important;min-height:58px!important;padding:6px 0 0!important;overflow-x:hidden!important;overflow-y:auto!important}
  .side-panel .apartment-row{min-height:45px!important;margin-bottom:5px!important;padding:5px!important}
  .type-panel .type-filters{max-height:none!important;overflow:visible!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .type-panel .type-filters button{display:block!important;min-height:36px!important;height:36px!important;padding:3px!important;overflow:visible!important;font-size:14px!important;line-height:1!important}
}
@media (orientation:landscape) and (max-height:470px){
  .side-panel{top:54px!important;bottom:60px!important;height:calc(100dvh - 114px)!important}
  .side-panel .facade{height:44px!important}
  .side-panel .apartment-list-head{min-height:54px!important}
  .type-panel{top:54px!important;width:23%!important}
  .type-panel .type-title{margin-bottom:4px!important}
  .type-panel .type-filters button{min-height:31px!important;height:31px!important;font-size:12px!important}
}
