/**
 * LD Solutions - Section Références
 * Bandeau pleine largeur de logos
 *
 * @package ldsolutions
 * @version 4.0.0
 */

/* ============================================================
   SECTION - Bandeau pleine largeur
   ============================================================ */

.lds-references {
    position: relative;
    background: var(--lds-white, #ffffff);
    padding: 80px 2rem;
    margin: 0;
}

/* Liseret gris en bas */
.lds-references::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%
    );
}

.lds-references__container {
    max-width: 1600px;
    margin: 0 auto;
}

/* ============================================================
   CARD WRAPPER - Transparent (conservé pour structure HTML)
   ============================================================ */

.lds-references__card {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

/* Désactiver la bordure dégradée */
.lds-references__card::before {
    display: none;
}

.lds-references__card:hover {
    box-shadow: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.lds-references__header {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.lds-references__title {
    font-family: 'Chillax', Arial, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lds-navy, #021B50);
    margin: 0 0 0.75rem;
}

.lds-references__subtitle {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(21, 30, 40, 0.6);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   MARQUEE / DÉFILEMENT INFINI
   ============================================================ */

.lds-references__marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.lds-references__track {
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 10px 0;
    width: max-content;
    animation: references-marquee 35s linear infinite;
}

@keyframes references-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

.lds-references__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
}

.lds-references__logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(8%) sepia(45%) saturate(4500%) hue-rotate(210deg) brightness(95%) contrast(105%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    user-select: none;
    pointer-events: none;
}

.lds-references__logo:hover img {
    opacity: 1;
}

/* Logo Cloud souverain - plus grand et croppé */
.lds-references__logo img[src*="Cloud_souverain"] {
    height: 250%;
    width: 180px;
    max-width: 180px;
    object-fit: cover;
    object-position: center;
}

/* ============================================================
   RESPONSIVE - TABLETTE
   ============================================================ */

@media (max-width: 1024px) {
    .lds-references {
        padding: 64px 1.5rem;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .lds-references {
        padding: 56px 1rem;
    }

    .lds-references__header {
        margin-bottom: 30px;
    }

    .lds-references__track {
        gap: 60px;
    }

    .lds-references__logo {
        height: 45px;
    }

    .lds-references__logo img {
        max-width: 120px;
    }
}

/* ============================================================
   RESPONSIVE - PETIT MOBILE
   ============================================================ */

@media (max-width: 480px) {
    .lds-references {
        padding: 48px 1rem;
    }

    .lds-references__track {
        gap: 50px;
    }

    .lds-references__logo {
        height: 40px;
    }

    .lds-references__logo img {
        max-width: 100px;
    }
}
