/* JM Electric 2026 — Composant : Proof Band (logos clients défilants + stats unifiés)
   Implémentation alignée sur la maquette V2 (composant ProofBand) :
   - Wrapper unique avec border-y (encadre logos + stats comme une zone "preuve")
   - Logos : marquee infinite, cellules de taille fixe, filtre noir + opacity .55
   - Stats : 4 colonnes avec dividers verticaux sur desktop
*/

.proof-band {
    margin-top: 40px;
}
.proof-band-frame {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

/* --- BLOC TRUST (logos) --- */
.proof-band-trust {
    padding: 28px 0;
}
.proof-band-title {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: rgba(31,48,107,.55);
    margin: 0 0 20px;
}

/* Logos slider (infinite marquee, CSS-only) */
.proof-band-logos {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.proof-band-logos-track {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: jme-logos-scroll 38s linear infinite;
    will-change: transform;
}
.proof-band-logos:hover .proof-band-logos-track,
.proof-band-logos-track:focus-within {
    animation-play-state: paused;
}

.proof-band-logo {
    flex: 0 0 auto;
    width: 220px;
    height: 40px;
    padding: 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.proof-band-logo img {
    max-height: calc(32px * var(--logo-scale, 1));
    max-width: calc(100% * var(--logo-scale, 1));
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    opacity: .55;
    transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.proof-band-logo:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.04);
}

/* Mobile : cellules + logos plus compacts */
@media (max-width: 640px) {
    .proof-band-logo {
        width: 170px;
        height: 36px;
        padding: 0 26px;
    }
    .proof-band-logo img {
        max-height: calc(28px * var(--logo-scale, 1));
    }
}

/* --- DIVIDER --- */
.proof-band-divider {
    border-top: 1px solid #e5e7eb;
}

/* --- BLOC STATS --- */
.proof-band-stats-wrap {
    padding: 28px 0;
}
.proof-band-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
}
@media (min-width: 1024px) {
    .proof-band-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
    .proof-band-stat + .proof-band-stat { border-left: 1px solid #e5e7eb; }
}
.proof-band-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 0 24px;
}
.proof-band-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 2.9rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1;
}
.proof-band-stat-value .accent { color: var(--yellow); }
.proof-band-stat-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: rgba(31,48,107,.55);
}

/* Accessibilité : "Réduire les animations" (iOS/macOS/Windows) → pas de marquee.
   On fige en grille propre des logos UNIQUES (les doublons du marquee, aria-hidden,
   sont masqués — sinon chaque logo apparaît 2×). */
@media (prefers-reduced-motion: reduce) {
    .proof-band-logos {
        -webkit-mask-image: none;
                mask-image: none;
    }
    .proof-band-logos-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 0;
        width: 100%;
    }
    .proof-band-logo[aria-hidden="true"] {
        display: none;
    }
}

@keyframes jme-logos-scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
