/* ===========================
   ÉCRAN DE CHARGEMENT
   =========================== */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo animé */
.loader-logo {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInLogo 1s ease forwards;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

@keyframes fadeInLogo {
    to {
        opacity: 1;
    }
}

/* Barre de progression */
.progress-bar {
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff3e00, #ff6b3d);
    border-radius: 10px;
    width: 0%;
    animation: fillProgress 2s ease-in-out forwards;
    box-shadow: 0 0 20px rgba(255, 62, 0, 0.5);
}

@keyframes fillProgress {
    to {
        width: 100%;
    }
}

/* Pourcentage */
.progress-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
}

/* Animation des points */
.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loader-logo {
        font-size: 2.5rem;
    }

    .progress-bar {
        width: 80%;
    }
}