.fullscreen-overlay {
    position: fixed; /* Fixe le carré à l'écran */
    top: 0;
    left: 0;
    width: 100vw; /* Largeur complète de la fenêtre */
    height: 100vh; /* Hauteur complète de la fenêtre */
    background-color: white; /* Fond blanc */
    z-index: 1; /* Derrière le loader */
    display: none; /* Permet de centrer le contenu */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    opacity: 0; /* Initialement invisible */
    animation: fade-in 1s ease-in-out forwards; /* Animation de fondu */
}

.loader {
    position: relative;
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    color: #3498db; /* Couleur principale */
}

.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: spin 1s linear infinite;
}

.loader:after {
    color: #FF3D00; /* Couleur secondaire */
    transform: rotateY(70deg);
    animation-delay: 0.4s;
}

@keyframes spin {
    0%, 100% {
        box-shadow: 0.2em 0 0 0 currentcolor;
    }
    12% {
        box-shadow: 0.2em 0.2em 0 0 currentcolor;
    }
    25% {
        box-shadow: 0 0.2em 0 0 currentcolor;
    }
    37% {
        box-shadow: -0.2em 0.2em 0 0 currentcolor;
    }
    50% {
        box-shadow: -0.2em 0 0 0 currentcolor;
    }
    62% {
        box-shadow: -0.2em -0.2em 0 0 currentcolor;
    }
    75% {
        box-shadow: 0 -0.2em 0 0 currentcolor;
    }
    87% {
        box-shadow: 0.2em -0.2em 0 0 currentcolor;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0; /* Invisible */
    }
    100% {
        opacity: 1; /* Complètement visible */
    }
}