/* ============================================================
   Logo Slider – Feuille de style front-end
   ============================================================ */

/* ── Conteneur principal ── */
.ls-logos {
    overflow: hidden;
    width: 100%;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
}

/* ── Track (bande defilante) ── */
.ls-track {
    display: flex;
    width: max-content;
    animation: ls-scroll 48s linear infinite;
}

/* Pause au survol / focus ── */
.ls-logos:hover .ls-track,
.ls-logos:focus-within .ls-track {
    animation-play-state: paused;
}

/* ── Item (logo + lien) ── */
.ls-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;           /* Override via inline style par instance */
    padding: 0 40px;        /* Override via inline style par instance */
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.2s ease;
    opacity: 0.85;
}

.ls-item img {
    display: block;
    height: 56px;           /* Override via inline style par instance */
    width: auto;
    max-width: 160px;
    object-fit: contain;
    pointer-events: none;
    transition: filter 0.25s ease;
}

/* Fallback texte si pas d'image */
.ls-text-fallback {
    font-family: system-ui, sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.3px;
    color: currentColor;
}

/* ── Etats interactifs ── */
.ls-item:hover,
.ls-item:focus-visible {
    opacity: 1;
    transform: scale(1.05);
    text-decoration: none;
}

.ls-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 6px;
}

/* ── Animation ── */
@keyframes ls-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Accessibilite – reduit les mouvements ── */
@media (prefers-reduced-motion: reduce) {
    .ls-track {
        animation: none;
    }
    .ls-logos {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .ls-item {
        height: 46px;
        padding: 0 26px;
    }
    .ls-item img {
        height: 46px;
        max-width: 120px;
    }
    .ls-text-fallback {
        font-size: 15px;
    }
}

/* ── Message vide ── */
.logo-slider-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px 0;
}
