/* Écosystème 3D du hero : CSS natif, sans dépendance externe. */
.home-hero .home-hero-inner{gap:2rem;justify-content:space-between;}
.home-hero .home-hero-content{width:54%;flex:0 1 620px;min-width:0;}
.hero-stage{position:relative;flex:0 1 480px;min-width:0;width:44%;height:min(520px,75svh);perspective:1100px;isolation:isolate;}
.hero-stage-caption{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:.5rem;color:#c9dcff;font-size:.58rem;font-weight:700;letter-spacing:.17em;}
.hero-stage-caption>span{width:5px;height:5px;border-radius:50%;background:#fe6902;box-shadow:0 0 12px #fe6902;}
.hero-stage-rig{position:absolute;inset:20px 0 36px;transform-style:preserve-3d;transform:rotateX(var(--hero-rx,0deg)) rotateY(var(--hero-ry,0deg));transition:transform .4s ease-out;}
.hero-stage-glow{position:absolute;inset:8% -8%;background:radial-gradient(ellipse,#01266ee8 0,#01266e99 40%,transparent 72%);border-radius:50%;transform:translateZ(-80px);}
.hero-stage-floor{position:absolute;width:100%;height:50%;bottom:0;background-image:linear-gradient(#7bafff25 1px,transparent 1px),linear-gradient(90deg,#7bafff25 1px,transparent 1px);background-size:28px 28px;transform:rotateX(65deg) translateZ(-35px);mask-image:radial-gradient(ellipse,#000,transparent 70%);}
.hero-stage-connections{position:absolute;inset:0;width:100%;height:100%;stroke:#91bcff38;stroke-width:1;stroke-dasharray:5 9;animation:hero-network-flow 30s linear infinite;transform:translateZ(-30px);}
.hero-stage-orbit{position:absolute;left:50%;top:50%;width:72%;aspect-ratio:1;border:1px solid #bad7ff55;border-radius:50%;transform-style:preserve-3d;transform:translate(-50%,-50%) rotateX(65deg) rotateZ(-25deg);}
.hero-stage-orbit::after{content:'';position:absolute;left:50%;top:-4px;width:8px;height:8px;background:#fe6902;border-radius:50%;box-shadow:0 0 20px #ff8e40;}
.hero-stage-orbit-two{width:55%;border-color:#fe690260;transform:translate(-50%,-50%) rotateY(65deg) rotateZ(25deg);}
.hero-cube-anchor{position:absolute;left:50%;top:50%;width:116px;height:116px;transform:translate(-50%,-50%) translateZ(38px);transform-style:preserve-3d;}
.hero-cube{position:relative;width:100%;height:100%;transform-style:preserve-3d;animation:hero-cube-turn 28s linear infinite;}
.hero-cube-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:linear-gradient(145deg,#164c95f5,#01266ef8);border:1px solid #9bc4ff90;border-radius:7px;backface-visibility:hidden;color:white;box-shadow:inset 0 0 30px #ffffff0c;}
.hero-cube-face>span{font:700 30px/1 ui-monospace,monospace;color:#ffb887;}.hero-cube-face>small{font-size:6px;letter-spacing:.12em;}
.hero-cube-front{transform:translateZ(58px);background:#fff;border:2px solid #fe6902;}.hero-cube-front img{width:100px;height:auto;display:block;}
.hero-cube-back{transform:rotateY(180deg) translateZ(58px);}.hero-cube-right{transform:rotateY(90deg) translateZ(58px);}.hero-cube-left{transform:rotateY(-90deg) translateZ(58px);}.hero-cube-top{transform:rotateX(90deg) translateZ(58px);}.hero-cube-bottom{transform:rotateX(-90deg) translateZ(58px);}
.hero-tech{position:absolute;display:flex;align-items:center;gap:6px;background:#0d1b35ed;border:1px solid #9bc4ff45;padding:6px 9px;border-radius:10px;color:#e2edff;box-shadow:0 12px 25px #0003;animation:hero-tech-float 6s ease-in-out infinite;transform:translateZ(65px);font-size:9px;white-space:nowrap;}
.hero-tech b{display:grid;place-items:center;width:23px;height:23px;border-radius:6px;background:#fe690220;color:#ffae72;font:700 11px/1 ui-monospace,monospace;}
.hero-tech-laravel{left:25%;top:17%;}.hero-tech-php{right:3%;top:47%;animation-delay:-2s;}.hero-tech-mysql{right:22%;bottom:12%;animation-delay:-3s;}.hero-tech-tailwind{left:0;top:47%;animation-delay:-4s;}.hero-tech-js{right:24%;top:17%;animation-delay:-1s;}
.hero-domain{position:absolute;display:flex;align-items:center;gap:6px;width:136px;padding:10px 9px;border:1px solid #9fc7ff60;border-radius:12px;background:linear-gradient(135deg,#153f7ceF,#0d1b35ef);color:#fff;font-size:10px;font-weight:600;box-shadow:0 12px 26px #0002;transform:translate(-50%,-50%) translateZ(22px);transition:background .25s,border-color .25s,box-shadow .25s;}
.hero-domain:hover,.hero-domain:focus-visible{background:#01266e;border-color:#fe6902;box-shadow:0 0 24px #fe690235;}.hero-domain:focus-visible{outline:2px solid #ffb887;outline-offset:4px;}
.hero-domain-mark{flex-shrink:0;font:700 8px/1 ui-monospace,monospace;color:#ffb887;border:1px solid #ffffff20;background:#ffffff08;border-radius:5px;padding:6px 4px;}.hero-domain-arrow{margin-left:auto;color:#ffb887;}
.hero-domain-1{left:50%;top:9%;}.hero-domain-2{left:84%;top:29%;}.hero-domain-3{left:84%;top:73%;}.hero-domain-4{left:50%;top:94%;}.hero-domain-5{left:16%;top:73%;}.hero-domain-6{left:16%;top:29%;}
.hero-stage-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:1rem;font-size:9px;color:#b8cceb;letter-spacing:.03em;}.hero-motion-toggle{width:28px;height:28px;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:50%;background:#0d1b3580;color:#fff;cursor:pointer;font-size:10px;}.hero-motion-toggle:focus-visible{outline:2px solid #fe6902;outline-offset:3px;}.hero-stage.is-paused *{animation-play-state:paused;}.hero-tech-mobile{display:none;}
@keyframes hero-cube-turn{from{transform:rotateX(-14deg) rotateY(-20deg)}to{transform:rotateX(-14deg) rotateY(340deg)}}
@keyframes hero-tech-float{0%,100%{transform:translateY(0) translateZ(65px)}50%{transform:translateY(-9px) translateZ(75px)}}
@keyframes hero-network-flow{to{stroke-dashoffset:-280}}
@media(max-width:1100px) and (min-width:851px){.home-hero .home-hero-inner{gap:1rem;}.hero-stage{flex-basis:400px;height:min(460px,68svh);}.hero-domain{width:116px;font-size:9px;padding:8px 6px;}.hero-domain-mark{font-size:7px;}.hero-tech{font-size:8px;padding:5px;}.hero-cube-anchor{scale:.85;}.hero-tech-laravel{left:20%;}.hero-tech-js{right:18%;}}
@media(max-width:850px){.hero-stage{display:none;}.home-hero .home-hero-content{width:100%;flex-basis:auto;}.hero-tech-mobile{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;}.hero-tech-mobile span{color:#d8e6ff;background:#01266e80;border:1px solid #ffffff25;border-radius:6px;font-size:9px;padding:4px 7px;}}
@media(max-height:650px){.hero-tech-mobile{display:none;}.hero-stage{height:min(390px,75svh);}.hero-stage-caption{font-size:7px;}}
@media(prefers-reduced-motion:reduce){.hero-stage *{animation:none!important;transition:none!important;}.hero-cube{transform:rotateX(-8deg) rotateY(-15deg);}.hero-motion-toggle{display:none;}}

/* Logos des technologies, conservés en SVG local. */
.hero-stage .hero-tech{width:60px;height:60px;box-sizing:border-box;display:grid;place-items:center;padding:11px;border-radius:16px;background:linear-gradient(145deg,#ffffff,#eff4fc);border:1px solid #ffffffa0;box-shadow:0 10px 24px #0004,inset 0 1px 0 #fff;}
.hero-stage .hero-tech img{display:block;width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 2px 2px #01266e15);}
.hero-stage .hero-tech-php img{width:43px;}.hero-stage .hero-tech-mysql img{width:43px;}
@media(max-width:1100px) and (min-width:851px){.hero-stage .hero-tech{width:48px;height:48px;padding:8px;border-radius:12px;}.hero-stage .hero-tech img{width:30px;height:30px;}.hero-stage .hero-tech-php img,.hero-stage .hero-tech-mysql img{width:34px;}}

.hero-tech-mobile span{display:grid;place-items:center;background:#fff!important;width:38px;height:34px;box-sizing:border-box;}.hero-tech-mobile img{width:24px;height:24px;object-fit:contain;}

/* Constellation spatiale : satellites animés sur trois plans orbitaux. */
.hero-stage{perspective:850px;}.hero-stage-rig{inset:25px 0 38px;transform-style:preserve-3d;}
.hero-stage-glow{inset:-8% -15%;background:radial-gradient(ellipse,#01266ef0 5%,#01266eb5 37%,#01266e20 65%,transparent 78%);transform:translateZ(-130px);}
.hero-stage-connections{display:none;}.hero-stage-floor{bottom:-10%;opacity:.6;}
.hero-stage-orbit{width:89%;border:1px solid #a1c9ff65;box-shadow:0 0 18px #528eff18,inset 0 0 15px #528eff10;transform:translate(-50%,-50%) rotateX(64deg) rotateZ(-22deg);}
.hero-stage-orbit-two{width:76%;border-color:#fe690275;transform:translate(-50%,-50%) rotateY(64deg) rotateZ(30deg);}
.hero-stage-orbit-one::after{width:6px;height:6px;background:#82caff;box-shadow:0 0 20px #7ec8ff;}
.hero-cube-anchor{transform:translate(-50%,-50%) translateZ(0);}.hero-cube{animation-duration:22s;}.hero-cube-face{box-shadow:inset 0 0 22px #ffffff12,0 0 18px #4f98ff25;}
.hero-stack-satellite{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;transform-style:preserve-3d;transform:translate3d(calc((var(--stack-index) - 4.5)*34px),-140px,0);will-change:transform;}
.hero-stack-tile{position:relative;display:grid;place-items:center;width:100%;height:100%;box-sizing:border-box;background:linear-gradient(145deg,#fff,#e5eefb);border:1px solid #ffffffd0;border-bottom:4px solid #98b2d4;border-right:3px solid #b8cbe5;border-radius:17px;box-shadow:0 14px 28px #0005,0 0 18px #79b4ff25,inset 0 2px 0 #fff;transition:box-shadow .25s,filter .25s;}
.hero-stack-tile::after{content:'';position:absolute;inset:-5px;border:1px solid #9ec9ff25;border-radius:21px;pointer-events:none;}
.hero-stack-tile img{width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 2px 1px #01266e20);}.hero-stack-satellite:hover .hero-stack-tile{box-shadow:0 18px 35px #0006,0 0 30px #fe690270;filter:brightness(1.08);}
.hero-space-particles{position:absolute;inset:0;pointer-events:none;transform:translateZ(-110px);}.hero-space-particles i{position:absolute;width:3px;height:3px;border-radius:50%;background:#b0d5ff;box-shadow:0 0 9px #71b6ff;animation:hero-star-pulse 4s ease-in-out infinite;animation-delay:calc(var(--star)*-.37s);}.hero-space-particles i:nth-child(3n){background:#ffac70;box-shadow:0 0 9px #fe6902;}
@keyframes hero-star-pulse{0%,100%{opacity:.2;transform:scale(.6)}50%{opacity:.95;transform:scale(1.3)}}
@media(max-width:1100px) and (min-width:851px){.hero-stack-satellite{width:52px;height:52px;margin:-26px 0 0 -26px;}.hero-stack-tile{border-radius:14px;}.hero-stack-tile img{width:34px;height:34px;}}
@media(prefers-reduced-motion:reduce){.hero-stack-satellite{will-change:auto;}}

/* Davantage d’espace horizontal pour la constellation du hero. */
@media(min-width:1101px){
 .home-hero .home-hero-inner{gap:1.5rem;}
 .home-hero .home-hero-content{width:50%;flex:0 1 580px;}
 .hero-stage{width:49%;flex:0 1 570px;}
}
/* Les satellites suivent précisément ces deux cercles en perspective. */
.hero-stage-orbit::after{display:none;}
