.repaire-scene.repaire-illustrated{position:relative!important;height:auto!important;aspect-ratio:707/943;max-height:none;min-height:0!important;overflow:hidden;border-radius:18px;background:#24170f}
.repaire-illustrated::before,.repaire-illustrated::after{display:none!important}
.repaire-illustrated .repaire-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.repaire-illustrated .repaire-object{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;border-radius:0;display:block;touch-action:manipulation;z-index:8;cursor:pointer}
.repaire-illustrated .repaire-object:hover,.repaire-illustrated .repaire-object:focus-visible{background:#fff3b526!important;filter:none}
.repaire-illustrated .repaire-object>*{display:none}
.repaire-illustrated .repaire-shelf{clip-path:polygon(25% 16%,37% 18%,37% 44%,27% 44%,27% 24%,25% 24%,25% 16%,75% 17%,75% 60%,65% 60%,65% 53%,53% 53%,53% 44%,43% 44%,43% 19%,75% 17%);}
.repaire-illustrated .repaire-mission{clip-path:polygon(26% 67%,32% 66%,40% 67%,46% 66%,57% 72%,45% 74%,32% 74%);}
.repaire-illustrated .repaire-chest{clip-path:polygon(73% 69%,76% 59%,81% 55%,82% 53%,88% 52%,92% 54%,92% 56%,96% 59%,98% 69%,96% 71%,86% 72%,77% 71%);}
.repaire-illustrated .repaire-door{clip-path:polygon(80% 54%,80% 29%,82% 25%,87% 22%,92% 22%,97% 25%,100% 29%,100% 56%,94% 55%,92% 52%,86% 52%,83% 54%);}

.repaire-illustrated{container-type:inline-size}
.repaire-illustrated .door-parchment[hidden]{display:none!important}
.repaire-illustrated .door-parchment{position:absolute;isolation:isolate;z-index:9;left:2%;right:2%;bottom:3%;height:43%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5% 12% 4%;text-align:center;background:none!important;border:0!important;box-shadow:none!important;color:#503018;animation:door-paper-in .4s ease both}
.door-paper-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:-1;pointer-events:none}
.door-parchment h2{font:400 clamp(18px,7cqw,40px)/1.1 'Berkshire Swash',Georgia,serif;margin:0 0 1.5cqw;color:#503018}
.door-parchment p{font:400 clamp(11px,3.7cqw,22px)/1.15 'Balsamiq Sans',sans-serif;margin:0 0 1cqw}
.repaire-illustrated .door-parchment button{position:relative;isolation:isolate;display:grid;place-items:center;flex-shrink:0;width:78%;aspect-ratio:3.2;min-height:0;margin:1cqw 0 0;padding:0 5%;border:0!important;border-radius:0;box-shadow:none!important;background:none!important;color:#fff2d1;font:700 clamp(12px,4cqw,24px)/1 'Balsamiq Sans',sans-serif;text-shadow:0 1px 2px #142b19;transition:transform .12s}
.door-button-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:-1;pointer-events:none}
.door-parchment button:active{transform:scale(.96)}
@keyframes door-paper-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.door-parchment{animation:none}}

.repaire-illustrated .door-parchment{left:9%!important;right:9%!important;width:82%!important;max-width:none!important;bottom:1%!important;height:27%!important;margin:0!important;padding:4% 10% 3%!important;gap:0}
.repaire-illustrated .door-parchment h2{font-size:clamp(16px,5.2cqw,32px);margin:0 0 1.2cqw;line-height:1.1}
.repaire-illustrated .door-parchment p{font-size:clamp(11px,3.1cqw,19px);line-height:1.2;margin:0 0 .7cqw}
.repaire-illustrated .door-parchment button{width:88%!important;max-width:none!important;aspect-ratio:3.5;margin:.5cqw 0 0!important;padding:0 5%!important;font-size:clamp(10px,3.2cqw,19px);white-space:nowrap}
.repaire-illustrated .door-parchment button span{white-space:nowrap}

body:has(#app .repaire-home) footer{display:none!important}#app:has(.repaire-home){padding-bottom:0!important;margin-bottom:0!important}.repaire-home{padding-bottom:0!important;margin-bottom:0!important}.repaire-home .repaire-scene{margin-bottom:0!important}.repaire-home .repaire-hint,.repaire-home .repaire-progress{display:none!important}

body:has(#app .repaire-home){background:#24170f!important}#app:has(.repaire-home){padding:0!important;max-width:760px!important;margin:0 auto!important;min-height:0!important}.repaire-home{width:100%;margin:0!important}.repaire-home .repaire-scene.repaire-illustrated{border-radius:0!important;box-shadow:none!important;margin:0!important;width:100%;aspect-ratio:707/943}.repaire-home .repaire-top{background:#f6efdf}.repaire-home .repaire-scene{border:0!important}

.repaire-illustrated .door-parchment{display:block!important;bottom:1%!important;height:27%!important;padding:0!important}
.repaire-illustrated .door-parchment[hidden]{display:none!important}
.repaire-illustrated .door-parchment h2{position:absolute;top:17%;left:14%;right:14%;margin:0!important;font-size:clamp(14px,4.6cqw,28px);line-height:1.05}
.repaire-illustrated .door-parchment p{position:absolute;left:13%;right:13%;margin:0!important;font-size:clamp(10px,2.9cqw,18px);line-height:1.1}
.repaire-illustrated .door-parchment p:nth-of-type(1){top:36%}
.repaire-illustrated .door-parchment p:nth-of-type(2){top:49%}
.repaire-illustrated .door-parchment button{position:absolute;left:24%;top:62%;width:52%!important;height:25%!important;aspect-ratio:auto!important;margin:0!important;font-size:clamp(10px,2.9cqw,18px)}

body:has(#app .repaire-home){min-height:100dvh;display:flex;flex-direction:column;background:#f6efdf!important}
body:has(#app .repaire-home) header{flex:none;width:100%;box-sizing:border-box;margin:0 auto}
#app:has(.repaire-home){flex:1;display:flex;flex-direction:column;width:100%;max-width:none!important}
.repaire-home{flex:1;display:flex;flex-direction:column;max-width:none!important;align-items:center;justify-content:flex-end}
.repaire-home .repaire-top{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;box-sizing:border-box}
.repaire-home .repaire-scene.repaire-illustrated{flex:none;width:min(100%,760px);max-width:100%;margin:0 auto!important}
@media(max-height:650px) and (orientation:landscape){.repaire-home .repaire-scene.repaire-illustrated{width:min(100%,60dvh)}}

body:has(#app .repaire-home){height:100dvh;min-height:0!important;overflow:hidden;background:#24170f!important}
body:has(#app .repaire-home) header,body:has(#app .repaire-home) footer,.repaire-home .repaire-top{display:none!important}
#app:has(.repaire-home){position:fixed;inset:0;width:100%;height:100dvh;max-width:none!important;padding:0!important;margin:0!important;overflow:hidden}
.repaire-home{position:absolute;inset:0;display:block!important;width:100%;height:100%;overflow:hidden}
.repaire-home .repaire-scene.repaire-illustrated{position:absolute!important;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100vw,75dvh)!important;max-width:none!important;height:auto!important;aspect-ratio:707/943;margin:0!important}

/* Responsive immersive stage: keep every interactive object visible. */
body:has(#app .repaire-home) .repaire-home{background:#24170f;isolation:isolate}
.repaire-home::before{content:"";position:absolute;inset:-24px;background:url('/69C5C571-6C39-495F-BB18-9427F1555EE7.png') center/cover no-repeat;filter:blur(24px) brightness(.55);z-index:-1;pointer-events:none}
.repaire-home:has(.door-active)::before{background-image:url('/porte-ouverte.webp')}
.repaire-home .repaire-scene.repaire-illustrated{width:min(100vw,75dvh)!important;height:auto!important;max-width:none!important;aspect-ratio:707/943;overflow:hidden;box-shadow:none!important}

/* Reserve a real navigation strip outside the immersive artwork. */
.repaire-home:has(nav[aria-label="Gestion du profil"]){display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:env(safe-area-inset-top,0px);box-sizing:border-box}
.repaire-home>nav[aria-label="Gestion du profil"]{position:relative!important;z-index:30!important;flex:none;width:100%;box-sizing:border-box;min-height:56px;background:#24170f;display:flex!important;align-items:center}
.repaire-home:has(nav[aria-label="Gestion du profil"]) .repaire-scene.repaire-illustrated{position:relative!important;top:auto!important;left:auto!important;transform:none!important;width:min(100vw,calc((100dvh - 60px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*707/943))!important;flex:none;margin:auto!important}
