/* CSS pour le loader */
.loading-class {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    align-content: center;
    background-color: rgba(0, 0, 0, 0.786); /* Arrière-plan semi-transparent */
    z-index: 9999; /* Assure que le loader est au-dessus de tout */
    transition: opacity 0.3s ease; /* Transition pour un effet de fondu (facultatif) */
    opacity: 1; /* Assure que le loader est visible */
}

/* Style pour le texte et les points */
.loading-text {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px; 
}

.dots {
    margin-left: 0.5em; /* Espace entre "Chargement" et les points */
}

.dot {
    display: inline-block;
    animation: dots-blink 1s steps(1, end) infinite; /* Animation des points */
    font-size: 2em; /* Taille des points */
}

.dot:nth-child(1) {
    animation-delay: 0s; /* Délai pour le premier point */
}

.dot:nth-child(2) {
    animation-delay: 0.2s; /* Délai pour le deuxième point */
}

.dot:nth-child(3) {
    animation-delay: 0.4s; /* Délai pour le troisième point */
}

/* Animation pour les points */
@keyframes dots-blink {
    0%, 20% {
        color: transparent; /* Points invisibles au début */
    }
    50% {
        color: white; /* Points visibles au milieu de l'animation */
    }
    100% {
        color: transparent; /* Points invisibles à la fin */
    }
}
