/* Preloader Container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

#preloader.hidden {
    animation: fadeOutRight 0.8s ease-in-out forwards;
}

@keyframes fadeOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Logo Container */
.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.preloader-logo {
    max-width: 300px;
    max-height: 300px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Loader avec 3 points */
.preloader-dots {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.dot {
    width: 14px;
    height: 14px;
    background: #e21737 !important;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}



/* Responsive */
@media (max-width: 768px) {
    .preloader-logo {
        max-width: 150px;
        max-height: 150px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}
