.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* ou toute autre couleur de fond */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, opacity; /* Optimisation pour les animations */
}

.preloader .preloader-inner {
    width: 40px;
    height: 46px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: transform; /* Optimisation pour les animations */
}

.preloader .preloader-inner span {
    background-color: #5aaadf;
    width: 12px;
    height: 12px;
    float: left;
    margin: 2px 2px 2px 0;
    border-radius: 50%;
    animation: preloader-pulse 0.4s infinite alternate;
    will-change: transform, opacity; /* Optimisation pour les animations */
}

.preloader .preloader-inner > span:nth-child(3n+3) {
    margin-right: 0;
}

.preloader .preloader-inner > span:nth-child(2),
.preloader .preloader-inner > span:nth-child(4),
.preloader .preloader-inner > span:nth-child(6),
.preloader .preloader-inner > span:nth-child(8) {
    background-color: #15191f;
}

.preloader .preloader-inner > span:nth-child(1) { animation-delay: 0.1s; }
.preloader .preloader-inner > span:nth-child(2) { animation-delay: 0.2s; }
.preloader .preloader-inner > span:nth-child(3) { animation-delay: 0.3s; }
.preloader .preloader-inner > span:nth-child(4) { animation-delay: 0.4s; }
.preloader .preloader-inner > span:nth-child(5) { animation-delay: 0.5s; }
.preloader .preloader-inner > span:nth-child(6) { animation-delay: 0.6s; }
.preloader .preloader-inner > span:nth-child(7) { animation-delay: 0.1s; }
.preloader .preloader-inner > span:nth-child(8) { animation-delay: 0.2s; }
.preloader .preloader-inner > span:nth-child(9) { animation-delay: 0.3s; }

@keyframes preloader-pulse {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.5);
        opacity: 0.5;
    }
}