/* ================================
   ANIMATIONS LEXACOM - OPTIMISÉES
   Fond subtil, performant
   ================================ */

/* ================================
   BLOBS ORGANIQUES
   ================================ */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    contain: strict;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(30px);
    opacity: 0.15;
    animation: blob-float 25s infinite ease-in-out;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style;
}

.blob-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #8FA88E, #D4A4D8);
    top: 10%;
    left: -10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #D4A4D8, #E8A598);
    top: 50%;
    right: -15%;
    animation-delay: -8s;
    animation-duration: 30s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #E8A598, #8FA88E);
    bottom: 10%;
    left: 30%;
    animation-delay: -16s;
    animation-duration: 28s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(40px, -40px, 0) scale(1.05);
    }
    66% {
        transform: translate3d(-30px, 30px, 0) scale(0.95);
    }
}

/* ================================
   PARTICULES FLOTTANTES
   ================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    contain: strict;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 15s infinite ease-in-out;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes particle-float {
    0% {
        transform: translate3d(0, 100vh, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translate3d(80px, -100px, 0);
        opacity: 0;
    }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .blob-1 { width: 200px; height: 200px; }
    .blob-2 { width: 250px; height: 250px; }
    .blob-3 { width: 180px; height: 180px; }
    
    .particles-container { display: none; }
}

/* ================================
   PERFORMANCE
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .blob, .particle {
        animation: none !important;
    }
    .particles-container, .blob-container {
        display: none;
    }
}
