/* ========== LUXURY BACKGROUND ULTRA MODERNE ========== */
.luxury-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* ========== PARTICULES DORÉES ÉLÉGANTES ========== */
.luxury-particle {
    position: absolute;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 1) 0%, rgba(255, 215, 0, 0.6) 30%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle var(--duration, 15s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    width: var(--size, 10px);
    height: var(--size, 10px);
    filter: blur(1.5px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    5% {
        opacity: var(--opacity, 0.4);
    }
    50% {
        opacity: var(--opacity, 0.5);
        transform: translate(var(--move-x, 50px), var(--move-y, -80px)) rotate(calc(var(--rotate, 180deg) / 2)) scale(1.3);
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translate(var(--move-x, 100px), var(--move-y, -100px)) rotate(var(--rotate, 180deg)) scale(0.8);
        opacity: 0;
    }
}

/* ========== EFFET DE LUEUR SUBTIL SUR LE FOND ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.06), transparent 70%);
    pointer-events: none;
    z-index: -2;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

/* ========== SCINTILLEMENTS MODERNES ========== */
.sparkle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 0, 0.8) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    width: 3px;
    height: 3px;
    filter: blur(0.5px);
    animation: sparkle var(--sparkle-duration, 4s) ease-in-out infinite;
    animation-delay: var(--sparkle-delay, 0s);
    z-index: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: var(--sparkle-opacity, 1);
        transform: scale(1.5) rotate(180deg);
    }
}

/* ========== LIGNES D'ÉNERGIE ========== */
.energy-line {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
    opacity: 0;
    animation: energyLine var(--line-duration, 8s) ease-in-out infinite;
    animation-delay: var(--line-delay, 0s);
    filter: blur(1px);
}

@keyframes energyLine {
    0% {
        transform: translate(-100%, 0) scaleX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
        transform: translate(0, 0) scaleX(1);
    }
    80% {
        opacity: 0.4;
        transform: translate(50vw, 0) scaleX(1);
    }
    100% {
        transform: translate(100vw, 0) scaleX(0);
        opacity: 0;
    }
}

/* ========== GRADIENT ANIMÉ D'ARRIÈRE-PLAN ========== */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 215, 0, 0.02) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: -3;
    animation: rotateGradient 30s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ========== ORBES FLOTTANTS ========== */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.05));
    filter: blur(40px);
    opacity: 0;
    animation: floatOrb var(--orb-duration, 20s) ease-in-out infinite;
    animation-delay: var(--orb-delay, 0s);
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    50% {
        transform: translate(var(--orb-x, 100px), var(--orb-y, -150px)) scale(1.5);
        opacity: 0.6;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translate(var(--orb-x-end, 200px), var(--orb-y-end, -300px)) scale(0.8);
        opacity: 0;
    }
}

/* ========== RESPONSIVE - RÉDUIRE LES EFFETS SUR MOBILE ========== */
@media (max-width: 768px) {
    .luxury-particle {
        filter: blur(2px);
    }

    .sparkle {
        display: none; /* Désactiver les scintillements sur mobile pour les performances */
    }

    body::before,
    body::after {
        animation-duration: 15s; /* Ralentir les animations sur mobile */
    }
}

@media (prefers-reduced-motion: reduce) {
    .luxury-particle,
    .sparkle,
    .energy-line,
    .floating-orb {
        animation: none;
        opacity: 0.2;
    }

    body::before,
    body::after {
        animation: none;
    }
}

/* ========== PERFORMANCES - GPU ACCELERATION ========== */
.luxury-particle,
.sparkle,
.energy-line,
.floating-orb {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}
