/* ==========================================================================
   Digital3D Hero Animations v2 — 10 scènes CSS+SVG enrichies massivement
   Techniques : feTurbulence, path-morphing, offset-path Bézier, multi-parallax
   Budget : ~30 KB CSS, 0 JS, 0 network
   ========================================================================== */

.hero-anim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.hero-anim svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-anim .layer { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
    .hero-anim *, .hero-anim *::before, .hero-anim *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   1. AURORA BORÉALE — rubans déformés (feTurbulence), étoiles filantes, neige
   ========================================================================== */
.hero-anim-aurora {
    background: radial-gradient(ellipse at 50% 100%, #1a2352 0%, #0a1438 40%, #050a20 100%);
}
.hero-anim-aurora .aurora-ribbon {
    position: absolute;
    left: -20%; right: -20%;
    height: 65%;
    top: 5%;
    filter: url(#auroraDistort) blur(22px);
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: auroraDrift 14s ease-in-out infinite alternate;
}
.hero-anim-aurora .a-1 { background: linear-gradient(90deg, transparent, #00f0a0 25%, #40e0ff 55%, #60a0ff 75%, transparent); transform: skewY(-6deg); animation-duration: 13s; }
.hero-anim-aurora .a-2 { background: linear-gradient(90deg, transparent, #a040ff 25%, #ff40c0 55%, #ff60a0 75%, transparent); top: 22%; transform: skewY(4deg); animation-duration: 17s; animation-delay: -3s; }
.hero-anim-aurora .a-3 { background: linear-gradient(90deg, transparent, #40ffc0 30%, #00c0ff 60%, #8040ff 85%, transparent); top: -5%; transform: skewY(-3deg); animation-duration: 21s; animation-delay: -7s; }
.hero-anim-aurora .a-4 { background: linear-gradient(90deg, transparent, #ffc040 20%, #ff8040 50%, #ff4080 80%, transparent); top: 35%; transform: skewY(8deg); animation-duration: 19s; animation-delay: -10s; opacity: 0.5; }
.hero-anim-aurora .a-5 { background: linear-gradient(90deg, transparent, #40ffff 20%, #80ffa0 60%, transparent); top: 15%; transform: skewY(-10deg); animation-duration: 15s; animation-delay: -5s; height: 30%; }
.hero-anim-aurora .star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}
.hero-anim-aurora .shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px #fff, 0 0 8px rgba(255,255,255,0.6);
    animation: shootingStar linear infinite;
}
.hero-anim-aurora .shooting-star::before {
    content: '';
    position: absolute;
    top: 50%; right: 100%;
    width: 80px; height: 1px;
    background: linear-gradient(to left, #fff, transparent);
    transform: translateY(-50%);
}
.hero-anim-aurora .snowflake {
    position: absolute;
    width: 3px; height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(255,255,255,0.9);
    animation: snowFall linear infinite;
    opacity: 0.85;
}
.hero-anim-aurora .mountain-layer {
    position: absolute;
    left: 0; bottom: 0;
    width: 200%;
    display: block;
    animation: mountainScroll linear infinite;
    will-change: transform;
    transform: translateZ(0);
}
.hero-anim-aurora .m-far  { height: 45%; z-index: 3; animation-duration: 220s; }
.hero-anim-aurora .m-mid  { height: 55%; z-index: 4; animation-duration: 140s; }
.hero-anim-aurora .m-near { height: 50%; z-index: 5; animation-duration: 90s;  }
@keyframes mountainScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes auroraDrift {
    0%   { transform: translateX(-15%) skewY(-6deg) scaleY(1);   opacity: 0.4; }
    50%  { transform: translateX(12%)  skewY(-2deg) scaleY(1.3); opacity: 0.95; }
    100% { transform: translateX(-5%)  skewY(-9deg) scaleY(0.9); opacity: 0.55; }
}
@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7); }
    50%      { opacity: 1;   transform: scale(1.3); box-shadow: 0 0 6px #fff; }
}
@keyframes shootingStar {
    0%   { transform: translate(-100px, 0) rotate(25deg); opacity: 0; }
    5%   { opacity: 1; }
    40%  { transform: translate(calc(100vw + 100px), 40vh) rotate(25deg); opacity: 1; }
    45%, 100% { opacity: 0; }
}
@keyframes snowFall {
    0%   { transform: translate(0, -20px) scale(0.8); opacity: 0; }
    10%  { opacity: 0.9; }
    100% { transform: translate(var(--drift, 30px), 320px) scale(1.1); opacity: 0; }
}

/* ==========================================================================
   2. CHERRY BLOSSOM — 80+ pétales sur Bézier, arbre qui se balance, papillons
   ========================================================================== */
.hero-anim-sakura {
    background: linear-gradient(to bottom, #ffe0ec 0%, #ffc4d6 40%, #ff97b8 100%);
}
.hero-anim-sakura .sakura-mountains {
    position: absolute;
    left: 0; bottom: 0;
    width: 200%;
    height: 55%;
    animation: sakuraMountainScroll 280s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    z-index: 1;
    opacity: 0.8;
}
@keyframes sakuraMountainScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.hero-anim-sakura .sakura-sun {
    position: absolute;
    width: 150px; height: 150px;
    top: -40px; right: 10%;
    background: radial-gradient(circle, #fffae0 0%, #ffe090 30%, #ffb470 55%, transparent 75%);
    border-radius: 50%;
    filter: blur(2px);
    animation: sunPulse 6s ease-in-out infinite;
    z-index: 1;
}
.hero-anim-sakura .sun-rays {
    position: absolute;
    top: -200px; right: 0;
    width: 500px; height: 500px;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255,240,180,0.12) 10deg, transparent 20deg, rgba(255,240,180,0.12) 40deg, transparent 55deg, rgba(255,240,180,0.12) 75deg, transparent 90deg);
    animation: raysSpin 40s linear infinite;
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}
.hero-anim-sakura .tree-wrap {
    position: absolute;
    inset: 0;
    transform-origin: 50% 100%;
    animation: treeSwayGentle 7s ease-in-out infinite;
    filter: url(#sakuraWind);
}
.hero-anim-sakura .petal {
    position: absolute;
    width: 14px; height: 10px;
    background: radial-gradient(ellipse at 30% 30%, #fff, #ff8ab0 65%, #c8386a 100%);
    border-radius: 80% 20% 80% 20%;
    animation: petalBezier linear infinite;
    offset-rotate: auto;
    z-index: 3;
}
.hero-anim-sakura .petal.p-deep { background: radial-gradient(ellipse at 30% 30%, #ffb8d0, #ff5a8a 70%, #9a1a4a 100%); }
.hero-anim-sakura .petal.p-light { background: radial-gradient(ellipse at 30% 30%, #ffffff, #ffd0e0 70%, #ff8ab0 100%); }
.hero-anim-sakura .butterfly {
    position: absolute;
    width: 24px; height: 18px;
    animation: butterflyPath linear infinite;
    offset-rotate: auto 0deg;
    z-index: 4;
}
.hero-anim-sakura .butterfly::before,
.hero-anim-sakura .butterfly::after {
    content: '';
    position: absolute;
    top: 0;
    width: 12px; height: 18px;
    background: radial-gradient(ellipse at 80% 50%, #ff60a0, #c02060 70%, #600818);
    border-radius: 100% 20% 100% 20%;
    transform-origin: bottom right;
    animation: wingFlutter 0.15s ease-in-out infinite alternate;
}
.hero-anim-sakura .butterfly::before { left: 0; border-radius: 20% 100% 20% 100%; transform-origin: bottom left; }
.hero-anim-sakura .butterfly::after  { right: 0; }
.hero-anim-sakura .butterfly.blue::before,
.hero-anim-sakura .butterfly.blue::after { background: radial-gradient(ellipse at 80% 50%, #60c0ff, #2060c0 70%, #081860); }
@keyframes petalBezier {
    0%   { offset-distance: 0%;   opacity: 0; transform: rotate(0deg) scale(0.5); }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; transform: rotate(1440deg) scale(1.2); }
}
@keyframes butterflyPath {
    0%   { offset-distance: 0%; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}
@keyframes wingFlutter {
    0%   { transform: rotateY(0deg)  scaleX(1); }
    100% { transform: rotateY(70deg) scaleX(0.4); }
}
@keyframes sunPulse {
    0%, 100% { transform: scale(1);    filter: blur(2px); }
    50%      { transform: scale(1.15); filter: blur(4px); }
}
@keyframes raysSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes treeSwayGentle {
    0%, 100% { transform: rotate(-1deg); }
    50%      { transform: rotate(1deg); }
}

/* ==========================================================================
   3. OCEAN WAVES — vagues path-morphing, écume, mouettes, lune qui se reflète
   ========================================================================== */
.hero-anim-ocean {
    background: linear-gradient(to bottom, #050a28 0%, #0e2042 30%, #1d4068 55%, #3a7ba6 85%, #6ab3d4 100%);
}
.hero-anim-ocean .moon {
    position: absolute;
    width: 110px; height: 110px;
    top: 28px; right: 14%;
    background: radial-gradient(circle at 38% 35%, #fffde0 0%, #f5e8a8 55%, rgba(245,232,168,0) 78%);
    border-radius: 50%;
    box-shadow: 0 0 100px 25px rgba(255,250,200,0.35);
    animation: moonGlow 8s ease-in-out infinite;
    z-index: 1;
}
/* Reflection aligned horizontally with moon center (right: 14% + 55px half-width - 40px half-refl = right: 14% + 15px)
   positioned BELOW horizon (waves start around 73% of hero height) and z-index ABOVE waves */
.hero-anim-ocean .moon-reflection {
    position: absolute;
    width: 80px;
    top: 73%; bottom: 0;
    right: calc(14% + 15px);
    background: linear-gradient(to bottom,
        rgba(255,250,180,0.75) 0%,
        rgba(255,250,180,0.55) 25%,
        rgba(255,250,180,0.3) 55%,
        rgba(255,250,180,0) 100%);
    filter: blur(6px) url(#waterShimmer);
    animation: reflShimmer 4s ease-in-out infinite alternate;
    z-index: 4;
    mix-blend-mode: screen;
    pointer-events: none;
}
.hero-anim-ocean .sparkle {
    position: absolute;
    width: 3px; height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px #fff, 0 0 10px rgba(255,255,220,0.6);
    animation: sparkleFade 2.5s ease-in-out infinite;
    z-index: 2;
}
.hero-anim-ocean .island-layer {
    position: absolute;
    left: 0; bottom: 40%;
    width: 200%;
    height: 18%;
    animation: islandScroll 260s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    z-index: 2;
    opacity: 0.75;
    filter: blur(0.6px);
}
@keyframes islandScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.hero-anim-ocean .gull {
    position: absolute;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    animation: gullSoar linear infinite;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.hero-anim-ocean .gull::before,
.hero-anim-ocean .gull::after {
    content: '';
    position: absolute;
    top: 0;
    width: 14px; height: 10px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    border-bottom: none;
}
.hero-anim-ocean .gull::before { left: -12px; border-right: none; transform-origin: right center; animation: gullWing 0.5s ease-in-out infinite alternate; }
.hero-anim-ocean .gull::after  { left: 2px;   border-left:  none; transform-origin: left  center; animation: gullWing 0.5s ease-in-out infinite alternate-reverse; }
@keyframes moonGlow {
    0%, 100% { box-shadow: 0 0 80px 20px  rgba(255,250,200,0.3); }
    50%      { box-shadow: 0 0 140px 40px rgba(255,250,200,0.55); }
}
@keyframes reflShimmer {
    0%   { transform: scaleY(1)    scaleX(1);    opacity: 0.6; }
    100% { transform: scaleY(1.08) scaleX(1.15); opacity: 0.9; }
}
@keyframes sparkleFade {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50%      { opacity: 1; transform: scale(1.4); }
}
@keyframes gullSoar {
    0%   { transform: translate(-80px, 0)                         scaleX(1); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translate(50vw, -20px)                      scaleX(1); }
    90%  { opacity: 1; }
    100% { transform: translate(calc(100vw + 80px), 10px)         scaleX(1); opacity: 0; }
}
@keyframes gullWing {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-35deg); }
}

/* ==========================================================================
   4. STORM — orage au-dessus de la mer, éclairs, pluie, nuages gros volumes
   ========================================================================== */
.hero-anim-storm {
    background: linear-gradient(to bottom, #0a0a14 0%, #1a1a28 40%, #2a2838 70%, #3a3a4a 100%);
}
.hero-anim-storm .cloud-layer {
    position: absolute;
    left: 0; top: 0;
    width: 200%;
    display: block;
    animation: cloudScroll linear infinite;
    will-change: transform;
    transform: translateZ(0);
}
.hero-anim-storm .cl-far  { height: 60%; z-index: 1; animation-duration: 150s; opacity: 0.7; filter: blur(8px); }
.hero-anim-storm .cl-mid  { height: 55%; z-index: 2; animation-duration: 80s;  opacity: 0.85; filter: blur(5px); }
.hero-anim-storm .cl-near { height: 50%; z-index: 3; animation-duration: 45s;  opacity: 0.95; filter: blur(3px); }
@keyframes cloudScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.hero-anim-storm .storm-gull {
    position: absolute;
    color: rgba(200, 200, 215, 0.85);
    animation: stormGullStruggle linear infinite;
    z-index: 4;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}
.hero-anim-storm .storm-gull::before,
.hero-anim-storm .storm-gull::after {
    content: '';
    position: absolute;
    top: 0;
    width: 14px; height: 10px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    border-bottom: none;
}
.hero-anim-storm .storm-gull::before { left: -12px; border-right: none; transform-origin: right center; animation: gullWingStorm 0.3s ease-in-out infinite alternate; }
.hero-anim-storm .storm-gull::after  { left: 2px;   border-left: none;  transform-origin: left center;  animation: gullWingStorm 0.3s ease-in-out infinite alternate-reverse; }
@keyframes stormGullStruggle {
    0%   { transform: translate(-10vw, 0) rotate(-5deg);  opacity: 0; }
    8%   { opacity: 1; }
    25%  { transform: translate(25vw, -18px) rotate(8deg); }
    50%  { transform: translate(50vw, 10px) rotate(-3deg); }
    75%  { transform: translate(75vw, -12px) rotate(6deg); }
    92%  { opacity: 1; }
    100% { transform: translate(110vw, 5px) rotate(-2deg); opacity: 0; }
}
@keyframes gullWingStorm {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-40deg); }
}
.hero-anim-storm .lightning {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at var(--lx, 50%) 20%, rgba(240,240,255,0.95) 0%, rgba(180,200,255,0.3) 15%, transparent 35%);
    opacity: 0;
    animation: lightningFlash 7s infinite;
    mix-blend-mode: screen;
    z-index: 4;
    pointer-events: none;
}
.hero-anim-storm .lightning.l-2 { animation-delay: -2.5s; animation-duration: 9s; --lx: 70%; }
.hero-anim-storm .lightning.l-3 { animation-delay: -5s;   animation-duration: 11s; --lx: 25%; }
.hero-anim-storm .rain {
    position: absolute;
    width: 1.5px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(180,200,230,0.8));
    animation: rainFall linear infinite;
    z-index: 3;
    transform: rotate(12deg);
}
.hero-anim-storm .sea-wave {
    position: absolute;
    left: -10%; right: -10%;
    bottom: 0;
    height: 35%;
    z-index: 2;
}
@keyframes stormDrift {
    0%   { transform: translateX(-5%);  }
    100% { transform: translateX(105%); }
}
.hero-anim-storm .boat {
    position: absolute;
    bottom: 15%;
    left: 70%;
    width: 60px;
    height: 32px;
    z-index: 3;
    animation: boatTossing 3.5s ease-in-out infinite;
    transform-origin: center bottom;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}
@keyframes boatTossing {
    0%, 100% { transform: rotate(-6deg) translateY(0);   }
    25%      { transform: rotate(4deg)  translateY(-3px); }
    50%      { transform: rotate(-5deg) translateY(2px);  }
    75%      { transform: rotate(3deg)  translateY(-2px); }
}
@keyframes lightningFlash {
    0%, 5.9%,   6.5%, 7.9%,   8.5%, 100% { opacity: 0; }
    6%,  6.4%                            { opacity: 1; }
    6.8%,7.2%                            { opacity: 0.7; }
    8%,  8.4%                            { opacity: 0.4; }
}
@keyframes rainFall {
    0%   { transform: translate(0, -30px) rotate(12deg); }
    100% { transform: translate(-60px, 340px) rotate(12deg); }
}

/* ==========================================================================
   5. NEBULA COSMIC — galaxie, comètes, trou noir lensing, étoiles multi-couleurs
   ========================================================================== */
.hero-anim-nebula {
    background: radial-gradient(ellipse at 30% 40%, #3a0a5c 0%, #1a0238 45%, #050018 100%);
}
.hero-anim-nebula .nebula-cloud {
    position: absolute;
    width: 85%; height: 85%;
    border-radius: 50%;
    filter: blur(55px);
    mix-blend-mode: screen;
    opacity: 0.7;
    animation: nebulaSwirl 30s linear infinite;
}
.hero-anim-nebula .c-pink   { background: radial-gradient(circle, #ff40a0 0%, transparent 60%); top: -20%; left: 5%; }
.hero-anim-nebula .c-blue   { background: radial-gradient(circle, #4080ff 0%, transparent 60%); top: 15%; right: -10%; animation-duration: 40s; animation-direction: reverse; }
.hero-anim-nebula .c-purple { background: radial-gradient(circle, #a040ff 0%, transparent 60%); bottom: -20%; left: 30%; animation-duration: 50s; }
.hero-anim-nebula .c-cyan   { background: radial-gradient(circle, #40e0ff 0%, transparent 60%); top: 30%; left: 45%; width: 60%; height: 60%; animation-duration: 35s; animation-delay: -8s; opacity: 0.5; }
.hero-anim-nebula .c-gold   { background: radial-gradient(circle, #ffc040 0%, transparent 55%); bottom: 10%; right: 15%; width: 45%; height: 45%; animation-duration: 45s; opacity: 0.55; }
.hero-anim-nebula .star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}
.hero-anim-nebula .star.bright { box-shadow: 0 0 8px #fff, 0 0 16px #80c0ff; }
.hero-anim-nebula .comet {
    position: absolute;
    width: 4px; height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 20px #80c0ff;
    animation: cometArc linear infinite;
    offset-rotate: auto;
}
.hero-anim-nebula .comet::before {
    content: '';
    position: absolute;
    top: 50%; right: 100%;
    width: 120px; height: 2px;
    background: linear-gradient(to left, #fff, #80c0ff 30%, transparent);
    filter: blur(1px);
    transform: translateY(-50%);
}
.hero-anim-nebula .blackhole {
    position: absolute;
    top: 20%; right: 10%;
    width: 80px; height: 80px;
}
.hero-anim-nebula .blackhole .disk {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, #ff80c0 20%, #ffc040 40%, #80c0ff 60%, transparent 80%, transparent);
    filter: blur(3px);
    animation: blackholeSpin 4s linear infinite;
    mix-blend-mode: screen;
}
.hero-anim-nebula .blackhole .core {
    position: absolute;
    inset: 25%;
    background: #000;
    border-radius: 50%;
    box-shadow: 0 0 30px 8px rgba(0,0,0,0.9), inset 0 0 15px rgba(120,80,180,0.3);
}
.hero-anim-nebula .planet {
    position: absolute;
    width: 70px; height: 70px;
    top: 58%; left: 12%;
    background: radial-gradient(circle at 30% 30%, #ffb880, #ff6030 55%, #802018 100%);
    border-radius: 50%;
    box-shadow: inset -12px -12px 22px rgba(0,0,0,0.6), 0 0 35px rgba(255,100,50,0.5);
    animation: planetOrbit 25s linear infinite;
}
.hero-anim-nebula .planet::before {
    content: '';
    position: absolute;
    top: 45%; left: -30%;
    right: -30%; height: 6px;
    background: linear-gradient(to right, transparent, rgba(240,200,160,0.7) 30%, rgba(240,200,160,0.7) 70%, transparent);
    transform: rotate(-15deg);
    border-radius: 50%;
    filter: blur(1px);
}
@keyframes nebulaSwirl {
    0%   { transform: rotate(0deg)   scale(1);    }
    50%  { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1);    }
}
@keyframes cometArc {
    0%   { offset-distance: 0%;   opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}
@keyframes blackholeSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes planetOrbit {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(-40px, 25px) rotate(90deg); }
    50%  { transform: translate(-80px, 0) rotate(180deg); }
    75%  { transform: translate(-40px, -25px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ==========================================================================
   6. ZEN GARDEN — bambous déformés par vent (feTurbulence), feuilles Bézier
   ========================================================================== */
.hero-anim-zen {
    background: linear-gradient(to bottom, #e8f0d8 0%, #a8d4b0 45%, #6fa87c 80%, #406858 100%);
}
.hero-anim-zen .water-surface {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(160,200,220,0.4), rgba(90,140,160,0.85));
    filter: url(#waterRipple);
    z-index: 1;
}
.hero-anim-zen .ripple {
    position: absolute;
    left: 50%; top: 72%;
    width: 40px; height: 10px;
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleExpand 4.5s ease-out infinite;
    z-index: 2;
}
.hero-anim-zen .lotus {
    position: absolute;
    width: 26px; height: 14px;
    background: radial-gradient(ellipse at center, #fff 0%, #ffc0d0 50%, #ff80a0 100%);
    border-radius: 50%;
    box-shadow: 0 -3px 0 -2px #ffffff, 0 3px 4px rgba(0,0,0,0.15);
    animation: lotusBob 5s ease-in-out infinite;
    z-index: 3;
}
.hero-anim-zen .bamboo-layer {
    position: absolute;
    left: 0; bottom: 0;
    width: 200%;
    display: block;
    animation: bambooScroll linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.hero-anim-zen .b-far  { height: 90%; z-index: 2; animation-duration: 220s; filter: blur(1.8px); opacity: 0.55; }
.hero-anim-zen .b-mid  { height: 92%; z-index: 3; animation-duration: 130s; filter: url(#zenWind); }
.hero-anim-zen .b-near { height: 100%; z-index: 6; animation-duration: 60s; }
@keyframes bambooScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.hero-anim-zen .leaf-twirl {
    position: absolute;
    width: 20px; height: 7px;
    background: linear-gradient(to right, #4a7a3a 0%, #7ac060 50%, #4a7a3a 100%);
    border-radius: 0 100% 0 100%;
    animation: leafTwirl linear infinite;
    offset-rotate: auto;
    z-index: 4;
}
.hero-anim-zen .koi {
    position: absolute;
    width: 32px; height: 12px;
    background: linear-gradient(to right, #ff8040 0%, #ffc080 40%, #ff6020 80%, transparent);
    border-radius: 50% 20% 50% 50%;
    animation: koiSwim linear infinite;
    offset-rotate: auto;
    z-index: 3;
    opacity: 0.7;
    filter: blur(0.5px);
}
.hero-anim-zen .koi::before {
    content: '';
    position: absolute;
    right: -8px; top: 0;
    width: 10px; height: 12px;
    background: inherit;
    clip-path: polygon(0 0, 100% 50%, 0 100%, 40% 50%);
}
.hero-anim-zen .firefly {
    position: absolute;
    width: 4px; height: 4px;
    background: #ffffa0;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffff80, 0 0 16px rgba(255,255,120,0.6);
    animation: fireflyPath linear infinite;
    offset-rotate: auto;
    z-index: 5;
}
@keyframes rippleExpand {
    0%   { width: 10px;  height: 2px;  opacity: 0.95; border-width: 2px; }
    100% { width: 500px; height: 120px; opacity: 0;   border-width: 0.5px; }
}
@keyframes leafTwirl {
    0%   { offset-distance: 0%;   opacity: 0; transform: rotate(0deg)    scale(0.6); }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; transform: rotate(1800deg) scale(1.2); }
}
@keyframes koiSwim {
    0%   { offset-distance: 0%;   opacity: 0; }
    5%   { opacity: 0.8; }
    95%  { opacity: 0.8; }
    100% { offset-distance: 100%; opacity: 0; }
}
@keyframes fireflyPath {
    0%   { offset-distance: 0%;   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}
@keyframes lotusBob {
    0%, 100% { transform: translate(0, 0)      rotate(-2deg); }
    50%      { transform: translate(3px, -3px) rotate(2deg); }
}

/* ==========================================================================
   7. CYBERPUNK — grille 3D, néons, hologrammes, véhicules volants, pluie
   ========================================================================== */
.hero-anim-cyberpunk {
    background: linear-gradient(to bottom, #0a0a2e 0%, #2a0a4a 35%, #ff0080 65%, #1a0a2e 100%);
}
.hero-anim-cyberpunk .grid-floor {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background-image:
        linear-gradient(to right, rgba(255,0,160,0.85) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,240,255,0.7) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(400px) rotateX(60deg);
    transform-origin: bottom;
    animation: gridScroll 2.5s linear infinite;
    z-index: 2;
}
.hero-anim-cyberpunk .neon-sun {
    position: absolute;
    width: 260px; height: 130px;
    left: 50%; top: 22%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, #ff4080 0%, #ff80c0 45%, transparent 75%);
    border-radius: 260px 260px 0 0;
    filter: drop-shadow(0 0 40px #ff0080);
    animation: neonPulse 2s ease-in-out infinite;
    z-index: 1;
}
.hero-anim-cyberpunk .neon-sun::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 9px, rgba(10,10,46,0.9) 9px, rgba(10,10,46,0.9) 11px);
    border-radius: inherit;
}
.hero-anim-cyberpunk .skyline-layer {
    position: absolute;
    left: 0;
    bottom: 38%;
    width: 200%;
    display: block;
    animation: skylineScroll linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.hero-anim-cyberpunk .skyline-far  { height: 70px;  z-index: 2; opacity: 0.55; animation-duration: 120s; }
.hero-anim-cyberpunk .skyline-mid  { height: 90px;  z-index: 3; opacity: 0.85; animation-duration: 70s;  }
.hero-anim-cyberpunk .skyline-near { height: 110px; z-index: 4; opacity: 1;    animation-duration: 45s;  }
@keyframes skylineScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Mobile optimizations — reduce element counts, disable heavy filters
   ========================================================================== */
@media (max-width: 768px) {
    .hero-anim svg filter feTurbulence,
    .hero-anim svg filter feDisplacementMap { display: none; }
    .hero-anim [style*="url(#auroraDistort)"],
    .hero-anim [style*="url(#sakuraWind)"],
    .hero-anim [style*="url(#zenWind)"],
    .hero-anim [style*="url(#forestWind)"],
    .hero-anim [style*="url(#sandTurbulence)"],
    .hero-anim [style*="url(#waterRipple)"],
    .hero-anim [style*="url(#waterShimmer)"] { filter: none !important; }
    /* Hide every 2nd particle via nth-child (halves visual density) */
    .hero-anim-nebula .star:nth-child(2n),
    .hero-anim-aurora .star:nth-child(2n),
    .hero-anim-aurora .snowflake:nth-child(2n),
    .hero-anim-sakura .petal:nth-child(2n),
    .hero-anim-ocean .sparkle:nth-child(2n),
    .hero-anim-storm .rain:nth-child(2n),
    .hero-anim-zen .leaf-twirl:nth-child(2n),
    .hero-anim-forest .pollen-bz:nth-child(2n),
    .hero-anim-forest .firefly-f:nth-child(2n),
    .hero-anim-desert .sand-particle:nth-child(2n),
    .hero-anim-cyberpunk .cyber-rain:nth-child(2n),
    .hero-anim-mesh .tech-dot:nth-child(2n) { display: none; }
}
.hero-anim-cyberpunk .hovercraft {
    position: absolute;
    width: 30px; height: 8px;
    background: linear-gradient(to bottom, #40c0ff, #0060c0);
    border-radius: 50% 50% 20% 20% / 80% 80% 20% 20%;
    box-shadow: 0 0 8px #40c0ff, 0 0 16px #ff0080;
    animation: hoverFly linear infinite;
    z-index: 4;
}
.hero-anim-cyberpunk .hovercraft::after {
    content: '';
    position: absolute;
    top: 100%; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff4080, transparent);
    filter: blur(1px);
    animation: hoverEngine 0.2s ease-in-out infinite alternate;
}
.hero-anim-cyberpunk .cyber-rain {
    position: absolute;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #00f0ff);
    animation: cyberRain linear infinite;
    opacity: 0.55;
    z-index: 5;
}
@keyframes gridScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 40px; }
}
@keyframes neonPulse {
    0%, 100% { filter: drop-shadow(0 0 30px #ff0080) brightness(1);   }
    50%      { filter: drop-shadow(0 0 60px #ff0080) brightness(1.25); }
}
@keyframes hoverFly {
    0%   { transform: translate(-50px, 0)                   scaleX(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translate(calc(100vw + 50px), -15px)  scaleX(1); opacity: 0; }
}
@keyframes hoverEngine {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}
@keyframes cyberRain {
    0%   { transform: translate(0, -50px); }
    100% { transform: translate(-20px, 320px); }
}

/* ==========================================================================
   8. FOREST — arbres feTurbulence, rayons, pollen Bézier, lucioles, brume
   ========================================================================== */
.hero-anim-forest {
    background: linear-gradient(to bottom, #2a5a3a 0%, #1a4028 40%, #0a2418 80%, #050e0a 100%);
}
.hero-anim-forest .ray {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 90px;
    height: 140%;
    background: linear-gradient(to bottom, rgba(255,240,160,0.5) 0%, rgba(255,220,120,0.2) 40%, transparent 100%);
    filter: blur(8px);
    mix-blend-mode: screen;
    transform-origin: top center;
    animation: rayShift 10s ease-in-out infinite;
    z-index: 3;
}
.hero-anim-forest .ray-1 { transform: translateX(-50%) rotate(-22deg); }
.hero-anim-forest .ray-2 { transform: translateX(-50%) rotate(-10deg); animation-delay: -2s; width: 70px; }
.hero-anim-forest .ray-3 { transform: translateX(-50%) rotate(2deg);   animation-delay: -4s; width: 110px; }
.hero-anim-forest .ray-4 { transform: translateX(-50%) rotate(14deg);  animation-delay: -6s; width: 80px; }
.hero-anim-forest .ray-5 { transform: translateX(-50%) rotate(24deg);  animation-delay: -8s; width: 60px; }
.hero-anim-forest .forest-layer {
    position: absolute;
    left: 0; bottom: 0;
    width: 200%;
    display: block;
    animation: forestScroll linear infinite;
    will-change: transform;
    transform: translateZ(0);
}
.hero-anim-forest .f-far  { height: 70%; z-index: 1; animation-duration: 180s; filter: blur(1.5px); opacity: 0.8; }
.hero-anim-forest .f-mid  { height: 75%; z-index: 2; animation-duration: 100s; }
.hero-anim-forest .f-near { height: 85%; z-index: 7; animation-duration: 55s;  }
@keyframes forestScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.hero-anim-forest .mist {
    position: absolute;
    left: -10%; right: -10%;
    bottom: -10%;
    height: 40%;
    background: linear-gradient(to top, rgba(180,220,200,0.5) 0%, rgba(180,220,200,0.15) 60%, transparent 100%);
    filter: blur(12px);
    animation: mistDrift 20s ease-in-out infinite alternate;
    z-index: 4;
}
.hero-anim-forest .pollen-bz {
    position: absolute;
    width: 5px; height: 5px;
    background: radial-gradient(circle, #fff8c0 0%, #ffd870 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px #fff8c0, 0 0 14px rgba(255,240,160,0.6);
    animation: pollenBz linear infinite;
    offset-rotate: auto;
    z-index: 5;
}
.hero-anim-forest .firefly-f {
    position: absolute;
    width: 5px; height: 5px;
    background: #ffff80;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffff80, 0 0 20px rgba(255,255,120,0.8);
    animation: fireflyBlink 2s ease-in-out infinite, fireflyPath 14s linear infinite;
    offset-rotate: auto;
    z-index: 6;
}
@keyframes rayShift {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) rotate(var(--r, 0deg)) scaleY(1);   }
    50%      { opacity: 0.85; transform: translateX(-50%) rotate(var(--r, 0deg)) scaleY(1.08); }
}
@keyframes pollenBz {
    0%   { offset-distance: 0%;   opacity: 0; transform: scale(0.5); }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; transform: scale(1.3); }
}
@keyframes fireflyBlink {
    0%, 40%, 60%, 100% { filter: brightness(1); }
    50%                { filter: brightness(2.5); }
}
@keyframes mistDrift {
    0%   { transform: translateX(-5%) scaleX(1);    }
    100% { transform: translateX(5%)  scaleX(1.08); }
}

/* ==========================================================================
   9. DESERT MIRAGE — dunes parallax, tempête de sable, vautour, caravane
   ========================================================================== */
.hero-anim-desert {
    background: linear-gradient(to bottom, #ffd080 0%, #ffa060 30%, #d26428 60%, #8a3818 95%);
}
.hero-anim-desert .sun-big {
    position: absolute;
    width: 160px; height: 160px;
    top: 20%; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #fffae0 0%, #ffe870 45%, rgba(255,180,80,0) 75%);
    border-radius: 50%;
    filter: drop-shadow(0 0 80px #ffb040);
    animation: desertSunShimmer 7s ease-in-out infinite;
    z-index: 1;
}
.hero-anim-desert .sun-rays-d {
    position: absolute;
    top: calc(20% - 120px);  /* sun center = 20% + 80px, rays box 400px → top = 20% + 80 - 200 = 20% - 120 */
    left: 50%;
    margin-left: -200px;
    width: 400px; height: 400px;
    background: conic-gradient(from 0deg, transparent, rgba(255,240,180,0.15) 8deg, transparent 20deg, rgba(255,240,180,0.15) 35deg, transparent 50deg, rgba(255,240,180,0.15) 70deg, transparent 85deg);
    mix-blend-mode: screen;
    animation: raysSpin 60s linear infinite;
    transform-origin: center center;
    z-index: 1;
    pointer-events: none;
}
.hero-anim-desert .sand-storm {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 25% at 20% 70%, rgba(255,200,140,0.3), transparent 70%),
        radial-gradient(ellipse 50% 20% at 70% 60%, rgba(255,180,110,0.25), transparent 70%);
    filter: url(#sandTurbulence);
    mix-blend-mode: screen;
    animation: sandDrift 12s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}
.hero-anim-desert .sand-particle {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(255,220,180,0.8);
    border-radius: 50%;
    animation: sandFly linear infinite;
    z-index: 4;
}
.hero-anim-desert .vulture {
    position: absolute;
    width: 48px; height: 16px;
    animation: vultureCircle 20s linear infinite;
    z-index: 3;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.3));
    transform-origin: center;
}
.hero-anim-desert .vulture svg {
    width: 100%; height: 100%;
    overflow: visible;
}
.hero-anim-desert .vulture .wing-l { transform-origin: 50% 50%; animation: vultureWingL 0.9s ease-in-out infinite alternate; }
.hero-anim-desert .vulture .wing-r { transform-origin: 50% 50%; animation: vultureWingR 0.9s ease-in-out infinite alternate; }
.hero-anim-desert .dune-layer {
    position: absolute;
    left: 0; bottom: 0;
    width: 200%;
    display: block;
    animation: duneScroll linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.hero-anim-desert .d-far  { height: 50%; z-index: 2; animation-duration: 240s; }
.hero-anim-desert .d-mid  { height: 45%; z-index: 3; animation-duration: 150s; }
.hero-anim-desert .d-near { height: 42%; z-index: 4; animation-duration: 80s;  }
@keyframes duneScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.hero-anim-desert .heat-wave {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60%;
    background: repeating-linear-gradient(to bottom, transparent 0, rgba(255,255,255,0.06) 4px, transparent 8px);
    animation: heatShimmer 3s ease-in-out infinite;
    z-index: 2;
}
@keyframes desertSunShimmer {
    0%, 100% { filter: drop-shadow(0 0 60px #ffb040) blur(0);   transform: translateX(-50%) scale(1);   }
    50%      { filter: drop-shadow(0 0 100px #ffb040) blur(1px); transform: translateX(-50%) scale(1.06); }
}
@keyframes sandDrift {
    0%, 100% { transform: translateX(-5%); opacity: 0.5; }
    50%      { transform: translateX(10%); opacity: 0.9; }
}
@keyframes sandFly {
    0%   { transform: translate(0, 0)                    scale(0.5); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.9; }
    100% { transform: translate(var(--sdx, 80px), -40px) scale(1.2); opacity: 0; }
}
@keyframes vultureCircle {
    0%   { transform: translate(-5vw, 0)        scale(1);   }
    25%  { transform: translate(30vw, -15px)    scale(1.1); }
    50%  { transform: translate(65vw, 25px)     scale(1);   }
    75%  { transform: translate(95vw, 45px)     scale(0.85);}
    100% { transform: translate(-5vw, 0)        scale(1);   }
}
@keyframes vultureWingL {
    0%   { transform: rotate(-2deg)  translateY(0); }
    100% { transform: rotate(-22deg) translateY(-1px); }
}
@keyframes vultureWingR {
    0%   { transform: rotate(2deg)   translateY(0); }
    100% { transform: rotate(22deg)  translateY(-1px); }
}
@keyframes heatShimmer {
    0%, 100% { transform: translateY(0)    scaleY(1);    opacity: 0.5; }
    50%      { transform: translateY(-3px) scaleY(1.03); opacity: 0.9; }
}

/* ==========================================================================
   10. GEOMETRIC MESH — blobs path-morphing, pulses qui voyagent, 3D grid
   ========================================================================== */
.hero-anim-mesh {
    background: linear-gradient(135deg, #0a1030 0%, #1a0a40 50%, #2d0a58 100%);
}
.hero-anim-mesh .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    mix-blend-mode: screen;
    opacity: 0.75;
    animation: blobMorph 18s ease-in-out infinite;
}
.hero-anim-mesh .blob-1 { width: 48%; height: 80%; top: -12%; left: -6%;  background: radial-gradient(circle, #00d4ff 0%, transparent 70%); }
.hero-anim-mesh .blob-2 { width: 42%; height: 72%; top: 8%;   right: -8%; background: radial-gradient(circle, #b544ff 0%, transparent 70%); animation-duration: 22s; animation-delay: -5s; }
.hero-anim-mesh .blob-3 { width: 52%; height: 68%; bottom: -22%; left: 22%; background: radial-gradient(circle, #ff2a88 0%, transparent 70%); animation-duration: 26s; animation-delay: -10s; }
.hero-anim-mesh .blob-4 { width: 38%; height: 62%; top: 22%;  left: 42%;  background: radial-gradient(circle, #00ff9a 0%, transparent 70%); animation-duration: 20s; animation-delay: -8s; }
.hero-anim-mesh .blob-5 { width: 32%; height: 50%; bottom: 10%; right: 20%; background: radial-gradient(circle, #ffd840 0%, transparent 70%); animation-duration: 24s; animation-delay: -13s; opacity: 0.5; }
.hero-anim-mesh .tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    height: 1px;
    animation: techSweep linear infinite;
}
.hero-anim-mesh .pulse {
    position: absolute;
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 20px #00d4ff, 0 0 30px rgba(0,240,255,0.6);
    animation: pulseTravel linear infinite;
    offset-rotate: auto;
}
.hero-anim-mesh .tech-dot {
    position: absolute;
    width: 3px; height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 16px #00d4ff;
    animation: techDotPulse 2s ease-in-out infinite;
}
.hero-anim-mesh .hex-rotate {
    position: absolute;
    top: 30%; left: 12%;
    width: 90px; height: 90px;
    animation: hexSpin 12s linear infinite;
    opacity: 0.6;
}
.hero-anim-mesh .hex-rotate-2 {
    position: absolute;
    top: 50%; right: 15%;
    width: 70px; height: 70px;
    animation: hexSpin 16s linear infinite reverse;
    opacity: 0.55;
}
@keyframes blobMorph {
    0%, 100% { transform: translate(0, 0)       scale(1);    border-radius: 50%; }
    25%      { transform: translate(25px, 30px) scale(1.15); border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
    50%      { transform: translate(-20px, 20px) scale(0.9); border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
    75%      { transform: translate(15px, -25px) scale(1.1); border-radius: 55% 45% 40% 60% / 60% 45% 55% 40%; }
}
@keyframes techSweep {
    0%   { transform: translateX(-100%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(100%);  opacity: 0; }
}
@keyframes pulseTravel {
    0%   { offset-distance: 0%;   opacity: 0; transform: scale(0.6); }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; transform: scale(1.4); }
}
@keyframes techDotPulse {
    0%, 100% { transform: scale(0.7); opacity: 0.35; }
    50%      { transform: scale(1.5); opacity: 1;    }
}
@keyframes hexSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
