/* =========================================
   Fond anime commun
   ========================================= */

:root {
    --mimex-bg: #07111f;
    --mimex-blue-rgb: 95, 168, 255;
    --mimex-purple-rgb: 169, 139, 255;
    --mimex-green-rgb: 99, 215, 196;
    --mimex-gold-rgb: 242, 190, 99;
}

body.mimex-bg-page {
    background: var(--mimex-bg);
    overflow-x: hidden;
}

.mimex-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,0.06), transparent 34%),
        linear-gradient(135deg, #07111f, #101a2d 45%, #090d18);
    z-index: 0;
}

.mimex-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.75), transparent 68%);
    opacity: 0.32;
}

.mimex-bg-orb {
    position: absolute;
    width: 42vw;
    height: 42vw;
    min-width: 320px;
    min-height: 320px;
    border-radius: 50%;
    filter: blur(74px);
    opacity: 0.42;
    animation: mimexBgOrbFloat 18s ease-in-out infinite alternate;
}

.mimex-bg-orb--one {
    left: -12%;
    top: -14%;
    background: rgba(var(--mimex-blue-rgb), 0.42);
}

.mimex-bg-orb--two {
    right: -16%;
    top: 12%;
    background: rgba(var(--mimex-purple-rgb), 0.36);
    animation-duration: 22s;
}

.mimex-bg-orb--three {
    left: 24%;
    bottom: -22%;
    background: rgba(var(--mimex-green-rgb), 0.32);
    animation-duration: 24s;
}

.mimex-bg-orb--four {
    right: 18%;
    bottom: -18%;
    background: rgba(var(--mimex-gold-rgb), 0.26);
    animation-duration: 20s;
}

@keyframes mimexBgOrbFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(5vw, -4vh, 0) scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mimex-bg-orb {
        animation: none;
    }
}