.paper{background:#f8f6ef}.paper:after{content:'';position:absolute;inset:0;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238b8170' filter='url(%23n)' opacity='.4' d='M0 0h240v240H0z'/%3E%3C/svg%3E")}.depth{transition:transform 700ms ease-out;will-change:transform}.depth-far{transform:translate(calc(var(--px)*-.3),calc(var(--py)*-.3))}.depth-middle{transform:translate(calc(var(--px)*-.9),calc(var(--py)*-.9))}.depth-near{transform:translate(calc(var(--px)*-1.8),calc(var(--py)*-1.8))}.galaxy-core,.dust-cloud{position:absolute;background:url('../prototype-espace/poussiere-graphite.webp') center/contain no-repeat;mix-blend-mode:multiply;will-change:transform}.galaxy-core{width:140vw;height:120vh;left:-8vw;top:-10vh;opacity:.54;mask-image:linear-gradient(90deg,transparent 18%,#000 49%);animation:far-drift 54s ease-in-out -9s infinite alternate}.dust-a{width:145vw;height:140vh;left:-12vw;top:-12vh;opacity:.48;mask-image:radial-gradient(ellipse at 63% 43%,#000 6%,transparent 42%);animation:cloud-a 23s ease-in-out -6s infinite alternate}.dust-b{width:140vw;height:125vh;left:-8vw;top:2vh;opacity:.48;mask-image:radial-gradient(ellipse at 42% 68%,#000 4%,transparent 32%);animation:cloud-b 28s ease-in-out -11s infinite alternate}.dust-c{width:170vw;height:150vh;left:-30vw;top:-9vh;opacity:.27;mask-image:radial-gradient(ellipse at 58% 60%,#000 2%,transparent 29%);animation:cloud-c 18s ease-in-out -3s infinite alternate}@keyframes far-drift{from{transform:translate(-12px,8px) rotate(-1deg) scale(1)}to{transform:translate(20px,-18px) rotate(1deg) scale(1.035)}}@keyframes cloud-a{from{transform:translate(-34px,22px) rotate(-2deg)}to{transform:translate(52px,-34px) rotate(1deg)}}@keyframes cloud-b{from{transform:translate(30px,-28px) scale(.99)}to{transform:translate(-48px,38px) scale(1.05)}}@keyframes cloud-c{from{transform:translate(-48px,35px) rotate(-2deg)}to{transform:translate(68px,-45px) rotate(1deg)}}.new-sky canvas{width:100%;height:100%}/* Repères célestes constants : la lumière varie sans jamais disparaître. */
.stellar-symbols{position:absolute;overflow:hidden;pointer-events:none}.celestial-map{position:absolute;inset:0;pointer-events:none;transform:translate(calc(var(--px)*-.4),calc(var(--py)*-.4));transition:transform 800ms ease-out}.celestial-map svg{overflow:visible;position:absolute;fill:#f8f6ef;stroke:#5c5447;stroke-width:.85;stroke-linejoin:round;stroke-linecap:round}.star-echo{fill:none;stroke-width:.5;opacity:.6}.constellation{opacity:.68;animation:map-drift 42s ease-in-out infinite alternate}.constellation-north{width:min(35vw,410px);right:7%;top:5%;transform:rotate(-8deg)}.constellation-south{width:min(28vw,320px);left:7%;top:56%;animation-delay:-18s}.constellation .constellation-thread{fill:none;stroke:#6f685a;stroke-width:.8;stroke-dasharray:3 5;opacity:.75}.constellation .constellation-echo{fill:none;stroke-width:.4;opacity:.23}.constellation .constellation-nodes{fill:#655e51;stroke:#f8f6ef;stroke-width:1}.constellation use{stroke:#514a3f;fill:#f8f6ef;stroke-width:.8}.anchored-star{opacity:.65;animation:stellar-light 13s ease-in-out var(--star-phase) infinite}.star-2,.star-8{stroke:#277d88!important;filter:drop-shadow(0 0 2px #98dad455)}@keyframes stellar-light{0%,100%{opacity:.5}50%{opacity:.88}}@keyframes map-drift{from{translate:0 0}to{translate:5px -4px}}.paused .celestial-map{transform:none;transition:none}.paused .celestial-map svg,.sleeping .celestial-map svg{animation-play-state:paused}@media(max-width:740px){.constellation-north{width:190px;right:6%;top:8%}.constellation-south{width:165px;left:5%;top:50%}.anchored-star{max-width:17px;max-height:21px}.star-10,.star-11,.star-13{display:none}.celestial-map{transform:none;transition:none}}@media(prefers-reduced-motion:reduce){.celestial-map{transform:none;transition:none}.celestial-map svg{animation:none!important}}
@media(max-width:740px){.constellation-north{top:1%}}

.app:before{background:none!important}.new-sky{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;--px:var(--mx,0px);--py:var(--my,0px)}.new-sky .paper,.new-sky .depth,.new-sky canvas{position:absolute;inset:0}.new-sky .depth{mask-image:linear-gradient(90deg,transparent 12%,#000 58%)}.new-sky .galaxy-core{opacity:.48}.new-sky .dust-a,.new-sky .dust-b{opacity:.36}.new-sky .dust-c{opacity:.22}.new-sky .celestial-map svg,.new-sky .constellation use{fill:none;stroke:#6c6253;filter:none}.new-sky .constellation-thread{stroke-dasharray:1 8;opacity:.5}.new-sky .constellation-north{right:8%;top:2%;width:min(32vw,355px);opacity:.6}.new-sky .constellation-south{left:5%;top:72%;width:min(21vw,230px);opacity:.45}.new-sky .anchored-star{animation:none;opacity:.55}.new-sky .star-2,.new-sky .star-8{stroke:#706657!important;filter:none}.new-sky .star-10{display:none}body:not([data-view=home]) .new-sky{display:none}.new-sky.sleeping *{animation-play-state:paused!important}.preview-note{position:fixed;left:4.8%;bottom:9px;z-index:8;font:11px/1.4 sans-serif;color:#5c554a;background:#f8f6efe8;padding:8px 11px;border:1px solid #b9b09e;border-radius:3px;min-height:33px}@media(max-width:740px){.new-sky .depth{mask-image:linear-gradient(180deg,transparent 20%,#000 56%)}.new-sky .constellation-north{width:165px;right:6%;top:2%;opacity:.38}.new-sky .constellation-south{width:135px;left:4%;top:54%;opacity:.4}.preview-note{left:6%;bottom:5px;font-size:10px}}@media(prefers-reduced-motion:reduce){.new-sky *{animation:none!important;transition:none!important}}
@media(max-width:740px){.preview-note{display:none}}
/* V33: distances distinctes, le papier reste fixe. */
.new-sky .galaxy-core{animation:none;transform:none;opacity:.43}
.new-sky .dust-a{animation:veil-near 38s ease-in-out -9s infinite alternate;opacity:.23}
.new-sky .dust-b{animation:veil-far 62s ease-in-out -22s infinite alternate;opacity:.23}
.new-sky .dust-c{animation:veil-edge 29s ease-in-out -7s infinite alternate;opacity:.14}
@keyframes veil-near{from{transform:translate(-10px,5px)}to{transform:translate(24px,-10px)}}
@keyframes veil-far{from{transform:translate(3px,-2px)}to{transform:translate(-8px,5px)}}
@keyframes veil-edge{from{transform:translate(-17px,6px)}to{transform:translate(25px,-11px)}}
.new-sky .constellation{animation:constellation-breath 17s ease-in-out infinite;translate:0 0}
.new-sky .constellation-south{animation-delay:-8s}
@keyframes constellation-breath{0%,100%{opacity:.34}50%{opacity:.62}}
.new-sky .anchored-star{animation:pencil-breath 11s ease-in-out var(--star-phase) infinite}
@keyframes pencil-breath{0%,100%{opacity:.32}50%{opacity:.7}}
body.paused .new-sky *, .new-sky.sleeping *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.new-sky *{animation:none!important;transition:none!important}}

/* V34 : retour a la derive galactique choisie. */
.new-sky .galaxy-core{animation:far-drift 54s ease-in-out infinite alternate;opacity:.48}
.new-sky .dust-a{animation:cloud-a 23s ease-in-out -5s infinite alternate;opacity:.36}
.new-sky .dust-b{animation:cloud-b 28s ease-in-out -11s infinite alternate;opacity:.36}
.new-sky .dust-c{animation:cloud-c 18s ease-in-out -3s infinite alternate;opacity:.22}
.distant-worlds,.shooting-stars{position:absolute;inset:0;pointer-events:none}
.sketch-moon{position:absolute;overflow:visible;animation:small-orbit 27s ease-in-out infinite alternate;opacity:.58}
.moon-a{width:58px;left:61%;top:20%;animation-delay:-8s}.moon-b{width:100px;right:3%;top:21%;animation-duration:34s;animation-delay:-14s}.moon-c{width:42px;left:23%;top:79%;animation-duration:24s;opacity:.4}
@keyframes small-orbit{from{translate:-5px 4px;rotate:-4deg}to{translate:8px -7px;rotate:5deg}}
.meteor{position:absolute;width:145px;opacity:0;transform:rotate(20deg);animation:meteor-pass 23s linear infinite}.meteor-a{top:16%;left:46%;animation-delay:-5s}.meteor-b{top:76%;left:5%;width:100px;animation-duration:37s;animation-delay:-18s}
@keyframes meteor-pass{0%,85%{opacity:0;translate:-60px 20px}86%{opacity:.5}90%{opacity:0;translate:180px -45px}100%{opacity:0;translate:180px -45px}}
@media(max-width:740px){.moon-a{width:37px;left:72%;top:56%}.moon-b{width:65px;right:6%;top:17%;opacity:.4}.moon-c{width:30px;left:6%;top:64%}.meteor-a{top:54%;left:15%;width:100px}.meteor-b{display:none}}
@media(prefers-reduced-motion:reduce){.new-sky *{animation:none!important;transition:none!important}.meteor{display:none}}

.new-sky .sketch-moon{opacity:.8}.new-sky .moon-c{opacity:.58}@media(max-width:740px){.new-sky .moon-b{opacity:.6}}

/* Reflet contenu dans le verre apres l arrivee du fil sous l observatoire. */
.observatory-response{pointer-events:none}
.lens-response{opacity:0;animation:observatory-wakes 12s ease-in-out infinite}
@keyframes observatory-wakes{0%,22%{opacity:0}26%{opacity:.6}29%{opacity:.52}36%,100%{opacity:0}}
body.paused .lens-response,body.scene-sleeping .lens-response{animation-play-state:paused}
@media(prefers-reduced-motion:reduce),(forced-colors:active){.observatory-response{display:none}.lens-response{animation:none}}

/* V37 : meme reponse materielle pour les deux objets de navigation. */
.actions .ship-button{transform:translateY(0);transition:transform 320ms cubic-bezier(.2,.7,.2,1)}
.actions .ship-button .ship-plumes{transform-box:fill-box;transform-origin:left center;transform:scaleX(.22);opacity:0;transition:opacity 240ms ease,transform 380ms cubic-bezier(.2,.7,.2,1)}
.actions .ship-button .engine-ring{transition:stroke 260ms,filter 260ms}
.actions .ship-button .ship-hull,.actions .logbook .notebook-art{transition:filter 320ms ease}
.actions .ship-button .ship-canopy{transition:stroke 300ms}
.actions .logbook{transition:transform 320ms cubic-bezier(.2,.7,.2,1)}
.actions .logbook .notebook-cover,.actions .logbook .notebook-title{transition:transform 360ms cubic-bezier(.2,.7,.2,1)}
.actions .logbook .book-constellation,.actions .logbook .book-stars{transition:stroke 300ms,filter 300ms}
.actions .ship-button:focus-visible,.actions .logbook:focus-visible{outline:2px solid #277b85;outline-offset:5px;border-radius:9px}
@media(hover:hover) and (pointer:fine){
body:not(.paused) .actions .ship-button:hover{transform:translate(-3px,-4px)}
body:not(.paused) .actions .ship-button:hover .ship-plumes{opacity:.65;transform:scaleX(.36)}
body:not(.paused) .actions .ship-button:hover .ship-hull{filter:drop-shadow(2px 7px 3px #51452b25)}
body:not(.paused) .actions .logbook:hover{transform:rotate(-3deg) translateY(-4px)}
body:not(.paused) .actions .logbook:hover .notebook-cover,body:not(.paused) .actions .logbook:hover .notebook-title{transform:skewY(-1.4deg) scaleX(.97)}
.actions .logbook:hover .book-constellation,.actions .logbook:hover .book-stars{stroke:#087d8c;filter:drop-shadow(0 0 1px #54c6ca55)}
.actions .ship-button:hover .ship-canopy{stroke:#487f7d}
}
body:not(.paused) .actions .ship-button:focus-visible{transform:translate(-3px,-4px)}
body:not(.paused) .actions .ship-button:focus-visible .ship-plumes{opacity:.65;transform:scaleX(.36)}
body:not(.paused) .actions .logbook:focus-visible{transform:rotate(-3deg) translateY(-4px)}
body:not(.paused) .actions .logbook:focus-visible .notebook-cover,body:not(.paused) .actions .logbook:focus-visible .notebook-title{transform:skewY(-1.4deg) scaleX(.97)}
.actions .ship-button:active,.actions .logbook:active{filter:brightness(.97)}
@media(prefers-reduced-motion:reduce){
.actions .ship-button,.actions .logbook,.actions .ship-button *,.actions .logbook *{transition:none!important;animation:none!important}
body .actions .ship-button:hover,body .actions .ship-button:focus-visible{transform:none!important}
body .actions .logbook:hover,body .actions .logbook:focus-visible{transform:rotate(-5deg)!important}
body .actions .logbook:hover .notebook-cover,body .actions .logbook:hover .notebook-title,body .actions .logbook:focus-visible .notebook-cover,body .actions .logbook:focus-visible .notebook-title{transform:none!important}
body .actions .ship-button .ship-plumes{display:none}
}

/* V38 : l observatoire repond au visiteur, sans deplacer la sculpture. */
.lens-interaction{opacity:0;transition:opacity 420ms ease-out;pointer-events:none}
.discovery-star{opacity:0;transition:opacity 500ms ease-out;pointer-events:none}
.hero-art:has(.p1:focus-visible) .lens-interaction{opacity:.72}

.hero-art:has(.p1:focus-visible) .discovery-star{opacity:.8}
.hero .p1:focus-visible .planet-label{outline:2px solid #277b85;outline-offset:5px;color:#164b50;translate:0 0}
.hero .p1:focus-visible .planet-label small{color:#164b50}
@media(hover:hover) and (pointer:fine){
.hero-art:has(.p1:hover) .lens-interaction{opacity:.72}
.hero-art:has(.p1:hover) .discovery-star{opacity:.8}
.hero .p1:hover .planet-label{color:#164b50;translate:0 0}
.hero .p1:hover .planet-label:before{background:radial-gradient(ellipse,#f8f6ef 30%,#f8f6efed 58%,transparent 78%)}
}
.hero .p1:active .planet-label{color:#087985}
@media(prefers-reduced-motion:reduce){.lens-interaction,.discovery-star{transition:none!important}.discovery-star{display:none}}
@media(forced-colors:active){.lens-interaction,.discovery-star{display:none}}

/* V39 : reflets propres a chaque matiere, sans mouvement des sculptures. */
.atelier-interaction,.door-interaction{opacity:0;transition:opacity 420ms ease-out;pointer-events:none}
.hero-art:has(.p2:focus-visible) .atelier-interaction,.hero-art:has(.p3:focus-visible) .door-interaction{opacity:.8}
.hero .p2:focus-visible .planet-label,.hero .p3:focus-visible .planet-label{outline:2px solid #277b85;outline-offset:5px;color:#164b50;translate:0 0}
@media(hover:hover) and (pointer:fine){.hero-art:has(.p2:hover) .atelier-interaction,.hero-art:has(.p3:hover) .door-interaction{opacity:.8}.hero .p2:hover .planet-label,.hero .p3:hover .planet-label{color:#164b50;translate:0 0}}
@media(prefers-reduced-motion:reduce){.atelier-interaction,.door-interaction{transition:none!important}}
@media(forced-colors:active){.world-responses{display:none}}

.hero .planet:focus-visible{outline:none}.hero .planet:focus-visible .planet-label{outline:2px solid #277b85;outline-offset:5px}

/* V43 : composition stellaire, vide et distances. La derive V34 est conservee. */
.new-sky .galaxy-core{opacity:.31;mask-image:linear-gradient(90deg,transparent 29%,#000 64%)}
.new-sky .dust-a{opacity:.32;mask-image:radial-gradient(ellipse at 62% 40%,#000 0%,transparent 34%)}
.new-sky .dust-b{opacity:.26;mask-image:radial-gradient(ellipse at 43% 69%,#000 0%,transparent 27%)}
.new-sky .dust-c{opacity:.18}
.new-sky .constellation-north{right:24%;top:5%;width:min(24vw,290px)}
.new-sky .constellation-south{left:8%;top:77%;width:min(18vw,210px)}
.new-sky .moon-a{left:54%;top:17%;width:42px;opacity:.46}
.new-sky .moon-b{right:4.5%;top:11%;width:150px;opacity:.84}
.new-sky .moon-c{left:21%;top:77%;width:36px;opacity:.47}
.new-sky .moon-b{filter:drop-shadow(2px 3px 0 #766b5912)}
.new-sky .anchored-star{stroke-width:.65}
@media(max-width:740px){
.new-sky .galaxy-core{mask-image:linear-gradient(180deg,transparent 17%,#000 60%);opacity:.32}
.new-sky .dust-a{mask-image:radial-gradient(ellipse at 60% 50%,#000,transparent 35%)}
.new-sky .dust-b{mask-image:radial-gradient(ellipse at 42% 68%,#000 4%,transparent 32%)}
.new-sky .constellation-north{right:6%;top:3%;width:135px;opacity:.35}
.new-sky .constellation-south{left:4%;top:59%;width:110px}
.new-sky .moon-a{left:73%;top:56%;width:31px;opacity:.48}
.new-sky .moon-b{right:5%;top:17%;width:70px;opacity:.65}
.new-sky .moon-c{left:5%;top:67%;width:26px}
}

/* V44 : enrichissement leger du ciel valide. */
.new-sky .moon-d{left:7%;top:68%;width:63px;opacity:.62;animation-duration:32s;animation-delay:-12s}
.new-sky .dust-c{opacity:.23}
.new-sky .dust-d{width:160vw;height:140vh;left:-21vw;top:-7vh;opacity:.18;mask-image:radial-gradient(ellipse at 63% 28%,#000 1%,transparent 23%);animation:cloud-b 21s ease-in-out -7s infinite alternate}
.meteor-c{left:58%;top:9%;width:130px;animation-duration:29s;animation-delay:-11s}
.meteor-d{left:23%;top:83%;width:90px;animation-duration:41s;animation-delay:-31s}
@media(max-width:740px){.new-sky .moon-d{left:7%;top:53%;width:37px;opacity:.5}.new-sky .dust-d{width:240vw;left:-85vw;top:0;opacity:.16}.meteor-c{left:40%;top:48%;width:95px}.meteor-d{display:none}}
@media(prefers-reduced-motion:reduce){.new-sky .dust-d,.new-sky .moon-d{animation:none!important}.meteor-c,.meteor-d{display:none}}

/* V45 : deux actions regroupees ; espace transparent du vaisseau reduit. */
.hero .actions{gap:6px;justify-content:flex-start}
.hero .actions .primary.ship-button{width:270px}
.hero .ship-label,.ship-flight .ship-label{left:47%}
@media(max-width:1050px) and (min-width:741px){.hero .actions{gap:4px}.hero .actions .primary.ship-button{width:238px}}
@media(max-width:740px){.hero .actions{gap:4px;max-width:320px;grid-template-columns:minmax(0,1fr) max-content}.hero .actions .primary.ship-button{width:100%;max-width:210px}}
@media(max-width:360px){.hero .actions{gap:3px;max-width:290px}.hero .actions .primary.ship-button{max-width:180px}}

/* V46 : echelle hors cadre et galaxie dessinee distincte des voiles. */
.new-sky .galaxy-core{background-image:url('../galaxie-graphite-v46.webp');width:118vw;height:100vh;left:-15vw;top:-23vh;opacity:.48;mask-image:linear-gradient(90deg,transparent 25%,#000 55%);animation:far-drift 54s ease-in-out -9s infinite alternate}
.new-sky .dust-a{opacity:.26}.new-sky .dust-b{opacity:.22}.new-sky .dust-c{opacity:.19}.new-sky .dust-d{opacity:.14}
.horizon-planet{position:absolute;width:min(48vw,760px);height:auto;right:-22vw;top:-16vw;opacity:.23;transform:translate(calc(var(--px)*-.15),calc(var(--py)*-.15));transition:transform 1000ms ease-out;pointer-events:none}
.new-sky .moon-b{right:auto;left:60%;top:5%;width:112px;opacity:.72}
.new-sky .moon-a{left:51%;top:22%;width:30px;opacity:.32}
.new-sky .constellation-north{right:29%;top:4%;width:min(23vw,270px)}
@media(max-width:740px){
.new-sky .galaxy-core{width:220vw;height:100vh;left:-87vw;top:2vh;opacity:.44;mask-image:linear-gradient(180deg,transparent 23%,#000 60%)}
.horizon-planet{width:400px;right:-280px;top:90px;opacity:.16;transform:none}
.new-sky .moon-b{left:auto;right:6%;top:17%;width:67px;opacity:.62}
.new-sky .moon-a{left:73%;top:56%;width:28px;opacity:.36}
.new-sky .constellation-north{right:17%;top:2%;width:140px}
}
@media(prefers-reduced-motion:reduce){.horizon-planet{transform:none;transition:none}}
