/* ═══════════════════════════════════════════════════════════════════════
 * LZ Carrousel Logos — Marquee infini en CSS pur
 * Couleurs : #152738 (marine) / #808186 (gris)
 * ═══════════════════════════════════════════════════════════════════════ */

.lz-lgs {
    position: relative;
    width: 100%;
    padding: 70px 0;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.lz-lgs *,
.lz-lgs *::before,
.lz-lgs *::after {
    box-sizing: border-box;
}

.lz-lgs__inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── EN-TÊTE ─────────────────────────────────────────────────────────── */
.lz-lgs__header {
    text-align: center;
    margin-bottom: 50px;
}

.lz-lgs__kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #808186;
    margin-bottom: 16px;
}

.lz-lgs__kicker::before,
.lz-lgs__kicker::after {
    content: '';
    width: 30px;
    height: 1px;
    background: #808186;
    display: inline-block;
}

.lz-lgs__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #152738;
    margin: 0 0 16px;
}

.lz-lgs__title-accent {
    color: #808186;
    font-style: italic;
    font-weight: 700;
    position: relative;
}

.lz-lgs__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
}

.lz-lgs__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #506069;
    margin: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── MARQUEE (Carrousel infini) ──────────────────────────────────────── */
.lz-lgs__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Le marquee utilise display flex pour mettre les 2 tracks côte à côte */
    display: flex;
    flex-wrap: nowrap;
}

.lz-lgs__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 50px;
    padding-right: 50px; /* Espace entre la fin d'un track et le début du suivant */
    flex-shrink: 0;
    /* Animation : on translate de -100% de la largeur du track */
    animation: lz-lgs-marquee-left var(--lz-lgs-speed, 40s) linear infinite;
    will-change: transform;
}

/* Sens vers la droite */
.lz-lgs--dir-right .lz-lgs__track {
    animation-name: lz-lgs-marquee-right;
}

@keyframes lz-lgs-marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@keyframes lz-lgs-marquee-right {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

/* Pause au survol */
.lz-lgs--pause-hover:hover .lz-lgs__track {
    animation-play-state: paused;
}

/* ─── ITEMS LOGOS ─────────────────────────────────────────────────────── */
.lz-lgs__item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    min-width: 160px;
    padding: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.lz-lgs__item:hover {
    transform: scale(1.05);
}

.lz-lgs__item img {
    max-height: 70px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

/* ─── FILTRES OPTIONNELS ──────────────────────────────────────────────── */
.lz-lgs--filter-grayscale .lz-lgs__item img {
    filter: grayscale(100%);
    opacity: 0.65;
}

.lz-lgs--filter-grayscale .lz-lgs__item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.lz-lgs--filter-opacity .lz-lgs__item img {
    opacity: 0.7;
}

.lz-lgs--filter-opacity .lz-lgs__item:hover img {
    opacity: 1;
}

/* "none" : aucun filtre = couleur originale, c'est le défaut */

/* ─── FADE EDGES (dégradé sur les bords) ──────────────────────────────── */
.lz-lgs--fade-edges .lz-lgs__marquee::before,
.lz-lgs--fade-edges .lz-lgs__marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.lz-lgs--fade-edges .lz-lgs__marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--lz-lgs-bg, #ffffff) 0%, rgba(255, 255, 255, 0) 100%);
}

.lz-lgs--fade-edges .lz-lgs__marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--lz-lgs-bg, #ffffff) 0%, rgba(255, 255, 255, 0) 100%);
}

/* ─── EMPTY STATE ─────────────────────────────────────────────────────── */
.lz-lgs__empty {
    padding: 60px 30px;
    text-align: center;
    color: #506069;
    background: #f7f8f9;
    border-radius: 8px;
    margin: 20px;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lz-lgs {
        padding: 55px 0;
    }
    .lz-lgs__inner {
        padding: 0 30px;
    }
    .lz-lgs--fade-edges .lz-lgs__marquee::before,
    .lz-lgs--fade-edges .lz-lgs__marquee::after {
        width: 80px;
    }
}

@media (max-width: 600px) {
    .lz-lgs {
        padding: 45px 0;
    }
    .lz-lgs__inner {
        padding: 0 20px;
    }
    .lz-lgs__header {
        margin-bottom: 36px;
    }
    .lz-lgs__title {
        font-size: 1.5rem;
    }
    .lz-lgs--fade-edges .lz-lgs__marquee::before,
    .lz-lgs--fade-edges .lz-lgs__marquee::after {
        width: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lz-lgs__track {
        animation: none !important;
    }
    .lz-lgs__marquee {
        overflow-x: auto;
        scroll-behavior: smooth;
    }
}
