/* ===== LOADER PRINCIPAL ===== */
#site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff 0%, #002f6c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#site-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

/* Spinner classique */
.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.loader-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.loader-subtext {
    font-size: 14px;
    opacity: 0.9;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 10px;
    animation: progress 2s ease-in-out infinite;
}

/* Logo avec pulsation */
.loader-pulse {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #667eea;
}

/* Points qui dansent */
.loader-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.loader-dots span {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    animation: dots 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Logo tournant */
.loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: breathe 2s ease-in-out infinite;
}

.loader-logo-circle {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .loader-text {
        font-size: 20px;
    }
    .loader-spinner {
        width: 60px;
        height: 60px;
    }
    .loader-pulse {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
}