  /* Préchargeur - Style principal */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    z-index: 9999;
    text-align: center;
}

/* Conteneur de l'animation du panier */
.loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Panier stylisé */
.cart {
    position: relative;
    width: 80px;
    height: 50px;
    animation: bounce 2s ease-in-out infinite;
}

/* Roue du panier */
.wheel {
    width: 20px;
    height: 20px;
    border: 4px solid #333;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 25px;
    border-top: 4px solid transparent;
    animation: rotate 1s linear infinite;
}

/* Corps du panier */
.cart-body {
    width: 60px;
    height: 30px;
    background-color: orange;
    position: absolute;
    bottom: 0;
    left: 10px;
    border-radius: 8px;
    animation: fill 2s ease-in-out infinite;
}

/* Animation de la rotation de la roue */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animation du rebond du panier */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation du remplissage du panier */
@keyframes fill {
    0% {
        width: 0;
    }
    50% {
        width: 60px;
    }
    100% {
        width: 60px;
    }
}

/* Masquer le préchargeur après le chargement de la page */
body.loaded #preloader {
    display: none;
}

body.loaded #content {
    display: block;
}