/* =====================================================
   LEH · Logos Partenaires - CSS
   Modes : carousel, grid, grid-bw, carousel-bw
   Fond TRANSPARENT par défaut
   ===================================================== */

.lehlp {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background-color: transparent;
    --lehlp-green-dark: #1B4D2E;
    --lehlp-green: #4A7C3B;
}

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

.lehlp-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* =====================================================
   EN-TÊTE
   ===================================================== */
.lehlp-header {
    text-align: center;
    margin-bottom: 40px;
}

.lehlp-pretitle {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lehlp-green);
    margin-bottom: 12px;
    position: relative;
    padding: 0 26px;
}

.lehlp-pretitle::before,
.lehlp-pretitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: currentColor;
}
.lehlp-pretitle::before { left: 0; }
.lehlp-pretitle::after  { right: 0; }

.lehlp-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lehlp-green-dark);
    margin: 0;
}

/* =====================================================
   LOGO BASE (commun à grid + carousel)
   ===================================================== */
.lehlp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
}

.lehlp-logo-link {
    text-decoration: none;
    cursor: pointer;
}

.lehlp-logo-img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.4s ease;
    display: block;
}

/* Hover : opacité + zoom optionnel */
.lehlp-logo:hover .lehlp-logo-img {
    opacity: 1;
}

.lehlp.lehlp-effect-scale .lehlp-logo:hover .lehlp-logo-img {
    transform: scale(1.06);
}

/* =====================================================
   EFFET N&B → COULEUR
   ===================================================== */
.lehlp.lehlp-effect-bw .lehlp-logo-img {
    filter: grayscale(100%);
}

.lehlp.lehlp-effect-bw .lehlp-logo:hover .lehlp-logo-img {
    filter: grayscale(0%);
}

/* =====================================================
   MODE GRILLE
   ===================================================== */
.lehlp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

@media (max-width: 1024px) {
    .lehlp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .lehlp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* =====================================================
   MODE CARROUSEL (marquee CSS pur, infini)
   ===================================================== */
.lehlp-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.lehlp-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: lehlp-scroll-left var(--lehlp-duration, 40s) linear infinite;
}

.lehlp-marquee[data-direction="right"] .lehlp-marquee-track {
    animation-name: lehlp-scroll-right;
}

.lehlp-marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    flex-shrink: 0;
}

/* Pause au survol */
.lehlp-marquee[data-pause-hover="1"]:hover .lehlp-marquee-track {
    animation-play-state: paused;
}

@keyframes lehlp-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes lehlp-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* Respecter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .lehlp-marquee-track {
        animation: none !important;
        transform: none !important;
    }
    .lehlp-marquee {
        overflow-x: auto;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .lehlp-header {
        margin-bottom: 28px;
    }
    .lehlp-logo {
        padding: 8px;
    }
    .lehlp-logo-img {
        max-height: 50px;
    }
}
