﻿/* Parcours céleste : décor léger, éléments lisibles et mouvement indépendant. */
body[data-menu="home"] #home.celestial-home{display:block;position:relative;padding:0;width:100%;max-width:none;min-height:100dvh;overflow:clip;background:#030911;color:#f7f2e7;font-family:"Segoe UI",sans-serif;isolation:isolate}
#home.celestial-home::before,#home.celestial-home::after{display:none!important}
#home.celestial-home .celestial-nav{position:fixed;inset:0 0 auto;z-index:30;height:80px;padding:0 clamp(20px,4vw,70px);margin:0;box-sizing:border-box;background:linear-gradient(#040d16ed,#050e18b8);backdrop-filter:blur(10px);border-bottom:1px solid #b99a573c;display:flex;align-items:center;gap:18px}
#home.celestial-home nav>b{font:clamp(22px,2.2vw,34px)/1 Georgia,serif;color:#e9ca8b;white-space:nowrap;letter-spacing:.04em}
#home.celestial-home nav>b small{font:8px/1.6 "Segoe UI",sans-serif;color:#a3adb3;letter-spacing:.2em;padding-top:8px}
#home.celestial-home .navlinks{display:flex;gap:5px;align-items:center;flex-wrap:nowrap;margin:0;justify-content:flex-end}
#home.celestial-home .navlinks button{min-height:42px;padding:8px 11px;border:0;border-radius:6px;background:transparent;font-size:12px;color:#e0ded5;white-space:nowrap}
#home.celestial-home .navlinks button:hover{color:#ffe1a4;background:#e6c57715}
#home.celestial-home #home-menu-toggle{display:none;background:#0b1928;color:#f2d39c;border:1px solid #c1a36855;border-radius:7px;min-height:44px;padding:8px 13px}
#home.celestial-home .celestial-scene{position:relative;min-height:100svh;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;padding:130px clamp(28px,9vw,160px) 100px;border:0;background:#040c17}
#home .scene-art,#home .scene-shade,#home .celestial-motion{position:absolute;inset:0;pointer-events:none}
#home .scene-art{inset:-4%;transform:translate3d(var(--parallax-x,0px),var(--parallax-y,0px),0);will-change:transform}
#home .scene-art picture{display:block;width:100%;height:100%;animation:celestial-camera 28s ease-in-out infinite alternate;transform-origin:60% 45%}
#home .scene-art img{width:100%;height:100%;object-fit:cover;display:block;max-width:none}
#home .scene-shade{background:linear-gradient(90deg,#030a158a 0%,#030b166b 36%,transparent 70%),linear-gradient(0deg,#040b19 0%,transparent 20%,transparent 80%,#040b19aa);z-index:1}
#home .celestial-motion{z-index:2;overflow:hidden}
#home .chapter-copy{position:relative;z-index:3;max-width:660px;transform:translateY(calc(var(--scroll-shift,0)*-20px));text-shadow:0 2px 20px #030812}
#home .chapter-copy::before{content:"";position:absolute;inset:-50px -45px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 37% 52%,#030b17a6,transparent 72%)}
#home .chapter-eyebrow{font-size:10px;letter-spacing:.24em;color:#e3c88f;margin:0 0 28px;line-height:1.7}
#home .chapter-copy h1,#home .chapter-copy h2{font:clamp(42px,4.6vw,78px)/1.05 Georgia,serif;letter-spacing:-.04em;color:#f8f3e8;margin:0 0 25px;font-weight:400}
#home .chapter-copy em{font-weight:400;color:#f1d295}
#home .chapter-description{font-size:clamp(15px,1.4vw,20px);line-height:1.8;max-width:560px;color:#e4e8e6;margin:0 0 30px}
#home .chapter-actions{display:flex;gap:18px;flex-wrap:wrap;align-items:center}
#home .celestial-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-height:58px;max-width:100%;padding:15px 26px;font:18px Georgia,serif;color:#251907;background:linear-gradient(115deg,#e0ba70,#f8dea5 47%,#cb9f55);border:1px solid #ffe1a2;box-shadow:inset 0 0 0 4px #48361726,0 5px 35px #cf9e481b;border-radius:3px;transition:transform .25s,box-shadow .25s;cursor:pointer}
#home .celestial-primary strong{font-weight:400}#home .celestial-primary:hover{transform:translateY(-3px);box-shadow:inset 0 0 0 4px #48361726,0 8px 38px #cf9e4855}
#home .celestial-secondary,#home .celestial-tutorial{background:transparent;border:0;color:#eee5cf;min-height:48px;padding:10px 0;font-size:14px;cursor:pointer}
#home .celestial-secondary{border-bottom:1px solid #d3b77966;font-family:Georgia,serif;font-size:17px;display:inline-flex;align-items:center;gap:15px}
#home .celestial-tutorial{display:block;margin-top:22px;font-size:14px;color:#f0d59b}#home .home-access{font-size:11px;color:#bdc8cf;margin-top:5px}
#home .celestial-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:35px 0 22px;max-width:630px}
#home .celestial-steps article{padding-left:18px;border-left:1px solid #c2a66e66}#home .celestial-steps span{font:26px Georgia,serif;color:#dfbc79}
#home .celestial-steps h3{font:22px Georgia,serif;margin:9px 0;color:#f1e9d6}#home .celestial-steps p{font-size:13px;line-height:1.7;color:#c6d3db;margin:0}
#home .chapter-persistent{border-top:1px solid #c2a66e66;margin:28px 0 0;padding-top:20px;font:17px/1.9 Georgia,serif;color:#d0dbe2}
#home .chapter-caption{position:absolute;z-index:4;bottom:28px;left:clamp(28px,9vw,160px);right:clamp(28px,9vw,160px);display:flex;justify-content:space-between;color:#baae95;font-size:9px;letter-spacing:.19em}
#home .celestial-chapters{position:fixed;right:22px;top:50%;transform:translateY(-50%);z-index:10;display:grid;gap:22px}
#home .celestial-chapters button{width:42px;height:42px;background:#06101e99;border:1px solid #b59b5d55;border-radius:50%;color:#b7b4aa;font:12px Georgia,serif;cursor:pointer}
#home .celestial-chapters button[aria-current="step"]{color:#fbdc95;border-color:#dfbc78;box-shadow:0 0 25px #dab47333}
#home .celestial-motion .orbital-lines{position:absolute;inset:0;width:100%;height:100%;opacity:.75}
#home .orbit-base{fill:none;stroke:#e6c58055;stroke-width:.7}#home .orbit-current{fill:none;stroke:#ffe3a4;stroke-width:1.6;stroke-dasharray:35 1200;animation:orbit-flow 14s linear infinite;filter:drop-shadow(0 0 4px #e4b466)}
#home .orbital-beacon{fill:#ffe2a1;animation:beacon-breathe 3s ease-in-out infinite}
#home .orbit-space{position:absolute;inset:0;max-width:1600px;width:100%;height:100%;margin:auto}
#home .celestial-ship{display:block;position:absolute;left:0;top:0;width:44px;height:18px;offset-path:path('M 240 740 C 490 590 1270 180 1330 280 S 990 700 480 600');offset-rotate:auto;animation:ship-flight 24s linear infinite;filter:drop-shadow(-10px 0 6px #79d5ff)}
#home .celestial-ship svg{width:100%;height:100%;fill:#e6d6aa;stroke:#ffffff88;stroke-width:.5}
#home .celestial-ship::after{content:"";position:absolute;right:85%;top:43%;width:65px;height:3px;background:linear-gradient(90deg,transparent,#8ee5ff);transform-origin:right;animation:engine-glow 1.7s ease-in-out infinite}
#home .ship-two{animation-duration:32s;animation-delay:-17s;width:24px;height:10px;opacity:.7}
#home .eclipse-glow{position:absolute;left:57%;top:42%;width:min(32vw,500px);aspect-ratio:1;transform:translate(-50%,-50%);border:1px solid #f3d09555;border-radius:50%;box-shadow:0 0 35px #efb25640,inset 0 0 20px #fbc87922;animation:eclipse-breathe 8s ease-in-out infinite}
#home .scene-2 .eclipse-glow{left:65%;top:65%;width:65vw;border-color:#77c6f922;box-shadow:0 0 50px #409dee22}
#home .scene-3 .eclipse-glow{left:76%;top:80%;width:75vw;border-color:#80e2ef33;box-shadow:0 0 55px #71d8ee22}
#home .living-world{position:absolute;left:70%;top:18%;width:68px;height:68px;border-radius:50%;background:radial-gradient(circle at 32% 26%,#a8a997,#5c6b7a 35%,#142538 62%,#010611 79%);box-shadow:-5px -3px 12px #9cc2e433;animation:world-drift 16s ease-in-out infinite alternate}
#home .scene-2 .living-world{left:83%;top:28%;width:95px;height:95px;background:radial-gradient(circle at 30% 25%,#dfa970,#826e4a 30%,#262a32 60%,#020711 79%);animation-delay:-8s}
#home .scene-3 .living-world{left:38%;top:23%;width:45px;height:45px;animation-duration:22s}
#home .celestial-mist{position:absolute;inset:5% -20%;background:radial-gradient(ellipse at 15% 64%,#d8eaff21,transparent 28%),radial-gradient(ellipse at 50% 90%,#6f9fb921,transparent 35%);animation:mist-drift 24s ease-in-out infinite alternate}
#home .mist-dark{background:radial-gradient(ellipse at 88% 70%,#ffad6522,transparent 32%);animation-direction:alternate-reverse;animation-duration:19s}
#home .celestial-spark{position:absolute;left:var(--spark-x);top:var(--spark-y);height:3px;width:3px;background:#ffe1a2;border-radius:50%;box-shadow:0 0 9px #ffc570;animation:spark-rise 8s ease-in-out var(--delay) infinite;opacity:0}
#home .celestial-spark:nth-of-type(even){background:#b4e9ff;box-shadow:0 0 10px #8cc9ff}
#home.celestial-home footer{margin:0;min-height:90px;padding:22px 20px;background:#040b15;box-sizing:border-box;gap:12px}#home #motion-toggle{color:#dfc58c}
#home .chapter-copy>*{animation:copy-arrival .85s both}#home .chapter-copy h1,#home .chapter-copy h2{animation-delay:.12s}#home .chapter-description{animation-delay:.24s}#home .chapter-actions{animation-delay:.36s}
#home .celestial-scene[data-active="false"] *,#home[data-paused] *,#home[data-resting] *{animation-play-state:paused!important}
@keyframes celestial-camera{from{transform:scale(1.02) translate3d(-.5%,0,0)}to{transform:scale(1.09) translate3d(.7%,-1%,0)}}
@keyframes eclipse-breathe{50%{opacity:.35;box-shadow:0 0 65px #efb25666,inset 0 0 35px #fbc87944;scale:1.045}}
@keyframes world-drift{to{transform:translate(20px,26px) rotate(6deg)}}
@keyframes mist-drift{to{transform:translate3d(7%,-3%,0);opacity:.45}}
@keyframes spark-rise{0%,100%{opacity:0;transform:translateY(18px)}35%,65%{opacity:.75}90%{transform:translateY(calc(-1*var(--drift)))}}
@keyframes orbit-flow{to{stroke-dashoffset:-1235}}
@keyframes ship-flight{from{offset-distance:0%}to{offset-distance:100%}}
@keyframes engine-glow{50%{opacity:.45;scale:.8 1}}
@keyframes beacon-breathe{50%{opacity:.3;r:8}}
@keyframes copy-arrival{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@media(max-width:1150px){#home.celestial-home .celestial-nav{height:72px;padding:0 22px}#home.celestial-home .navlinks button{padding:8px 7px;font-size:11px}#home .chapter-copy{max-width:580px}#home .celestial-scene{padding-left:7vw;padding-right:7vw}}
@media(max-width:960px){#home.celestial-home #home-menu-toggle{display:block;margin-left:auto}#home.celestial-home .navlinks{display:none;position:absolute;top:72px;right:14px;left:14px;padding:14px;background:#081626f5;border:1px solid #c1a36855;border-radius:10px;flex-wrap:wrap;justify-content:flex-start;box-shadow:0 12px 40px #0007}#home.celestial-home nav.menu-open .navlinks{display:flex}#home.celestial-home .navlinks button{font-size:13px;min-height:44px;padding:9px 12px}#home .celestial-chapters{right:8px}}
@media(max-width:760px){#home.celestial-home .celestial-nav{height:68px;padding:0 17px}#home.celestial-home nav>b{font-size:22px}#home.celestial-home nav>b small{font-size:7px}#home.celestial-home .navlinks{top:68px}#home.celestial-home .celestial-scene{min-height:100svh;padding:130px 26px 75px;align-items:flex-end}#home .scene-art{inset:-3%;}#home .scene-art img{object-position:62% center}#home .scene-shade{background:linear-gradient(0deg,#030b17ed 0%,#040b1899 43%,transparent 76%)}#home .chapter-copy{max-width:100%;padding-right:0}#home .chapter-copy h1,#home .chapter-copy h2{font-size:clamp(37px,9vw,57px);line-height:1.07}#home .chapter-eyebrow{font-size:8px;margin-bottom:19px;letter-spacing:.18em}#home .chapter-description{font-size:15px;margin-bottom:20px}#home .chapter-actions{gap:14px}#home .celestial-primary{min-height:54px;padding:14px 21px;font-size:17px}#home .celestial-secondary{font-size:16px}#home .chapter-caption{left:26px;right:26px;bottom:22px;font-size:8px}#home .chapter-caption span:last-child{display:none}#home .celestial-chapters{top:auto;bottom:18px;right:12px;transform:none;display:flex;gap:6px}#home .celestial-chapters button{width:30px;height:30px;font-size:10px}#home .celestial-steps{gap:12px;margin-top:25px}#home .celestial-steps article{padding-left:10px}#home .celestial-steps h3{font-size:18px}#home .celestial-steps p{font-size:11px;line-height:1.6}#home .scene-2{padding-top:150px}#home .scene-2 .scene-art img{object-position:53% center}#home .scene-3 .scene-art img{object-position:66% center}#home .scene-art picture{animation-duration:35s}#home .celestial-spark:nth-of-type(n+8){display:none}#home .living-world{left:76%;top:26%;width:40px;height:40px}#home .eclipse-glow{left:64%;top:29%;width:72vw}#home .scene-3 .eclipse-glow{top:32%;width:90vw}#home .ship-two{display:none}#home.celestial-home footer{padding-bottom:64px}}
@media(prefers-reduced-motion:reduce){#home.celestial-home *{animation:none!important;transition:none!important;scroll-behavior:auto!important}#home .celestial-spark{opacity:.35}#home .chapter-copy{transform:none!important}}
#home.celestial-home .home-access{position:static!important;inset:auto!important;display:block;text-align:left;max-width:none;margin:7px 0;color:#b5c6d0}
#home .living-world{background-image:linear-gradient(90deg,transparent 12%,#010814e6 90%),url('planet-textures/aurora-color.jpg');background-size:100% 100%,200% 100%;animation:world-drift 16s ease-in-out infinite alternate,world-surface 50s linear infinite}
#home .scene-2 .living-world{background-image:linear-gradient(90deg,transparent 12%,#010814e6 90%),url('planet-textures/dune-color.jpg');background-size:100% 100%,200% 100%}
#home .scene-3 .living-world{background-image:linear-gradient(90deg,transparent 12%,#010814e6 90%),url('planet-textures/pelagia-color.jpg');background-size:100% 100%,200% 100%}
#home .orbit-space{width:1600px!important;height:900px!important;max-width:none;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--fleet-scale,1));transform-origin:center}
@keyframes world-surface{from{background-position:0 0,0 0}to{background-position:0 0,-200% 0}}
body[data-menu="home"] #home .celestial-scene .chapter-copy{visibility:visible}
body.commanding #placement-hint{flex-wrap:wrap;max-width:calc(100% - 30px)}body.commanding #placement-hint small{display:block;width:100%;font-size:12px;line-height:1.5;color:#ffe3ac}
.installation-bonus{padding:12px;border:1px solid #caa76a55;border-radius:6px;color:#eacb8b}.context-copy progress{display:block;width:100%;margin:15px 0;accent-color:#deb976}
.energy-warning{padding:12px;border:1px solid #e4ae5b;border-radius:10px;background:#352918;color:#ffe7b9;margin:12px 0}.energy-warning p{font-size:12px;line-height:1.45}.energy-warning button{width:100%;color:#ffdea0;border:1px solid #b69053;padding:8px;border-radius:6px}
