#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    width: 120px;
    margin-bottom: 30px;
}

/* barre de chargement */
.loader-bar {
    width: 200px;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    width: 50%;             /* largeur de l’élément animé */
    height: 100%;
    background-color: var(--primary);
    position: absolute;
    left: -50%;              /* commence à l’extérieur à gauche */
    animation: move 1s linear infinite;
}

@keyframes move {
    0% { left: -50%; }
    100% { left: 100%; }    /* se déplace complètement vers la droite */
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}