/* Styles pour le loader de chargement */

/* Ancien loader tournant (conservé pour référence ou utilisation alternative)
.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: inherit;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Nouveau loader avec barre de progression horizontale */
.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    z-index: 1000;
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loader {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #3498db, #2ecc71, #3498db);
    background-size: 200% 100%;
    border-radius: 2px;
    position: absolute;
    animation: progress-animation 1.5s infinite ease-in-out, color-change 3s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

@keyframes progress-animation {
    0% {
        left: -30%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -30%;
    }
}

@keyframes color-change {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.loader-text {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    opacity: 0.8;
}

/* Styles pour les éléments avec loader */
.relative-container {
    position: relative;
}

/* Animation de fade-in pour le contenu chargé */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 