/* ============================================
   PRELOADER STYLES
   ============================================ */

/* Empêcher le scroll pendant le chargement */
body.loading {
    overflow: hidden;
    height: 100vh;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #14121d; /* Couleur de fond de ton site */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    overflow: hidden;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

/* Logo animation */
.preloader-logo {
    margin-bottom: 0;
}

.logo-spinning {
    width: 100px;
    height: 100px;
    animation: spin 1.5s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 59, 59, 0.3));
}

@keyframes spin {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-spinning {
        width: 80px;
        height: 80px;
    }
}

/* Alternative style with your star logo bouncing */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

/* Uncomment this to use bounce animation instead of spin */
/*
.logo-spinning {
    animation: bounce 2s ease-in-out infinite;
}
*/