/* ==========================================================================
   SECTION TICKER MARQUES - EPO GOLD
   Défilement infini en CSS pur
   Intégré au Design System Pompe (bleu nuit / or)
   Variantes : montres (défaut) + bijoux (.epo-brands-bijoux)
   ========================================================================== */

/* Section Container - Full Width */
.epo-brands-section {
    padding: 70px 20px;
    background: linear-gradient(180deg,
        var(--pompe-fond-dark) 0%,
        var(--pompe-fond-medium) 50%,
        var(--pompe-fond-dark) 100%
    );
    overflow: hidden;
    border-top: 1px solid var(--pompe-border-gold);
    border-bottom: 1px solid var(--pompe-border-gold);
}

.epo-brands-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.epo-brands-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.epo-brands-subtitle {
    font-family: var(--pompe-font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--pompe-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 12px 0;
}

.epo-brands-subtitle::before,
.epo-brands-subtitle::after {
    content: '—';
    margin: 0 8px;
    opacity: 0.5;
}

.epo-brands-title {
    font-family: var(--pompe-font-display);
    font-size: 26px;
    font-weight: 600;
    background: var(--pompe-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin: 0;
}

/* Bouton CTA — style pompe-btn-gold */
.epo-brands-cta {
    text-align: center;
    margin-top: 50px;
}

.epo-brands-btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--pompe-font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pompe-fond-dark);
    background: var(--pompe-gold-gradient);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.epo-brands-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(191, 149, 63, 0.35);
    color: var(--pompe-fond-dark);
    text-decoration: none;
}

/* ==========================================================================
   TICKER INFINI - Base
   ========================================================================== */

.epo-brands-ticker {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.epo-brands-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

/* Pause au hover */
.epo-brands-ticker:hover .epo-brands-track {
    animation-play-state: paused;
}

/* Animations */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes ticker-scroll-bijoux {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Item de marque */
.epo-brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 140px;
    padding: 0;
    opacity: 0.45;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.epo-brand-item:hover {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(191, 149, 63, 0.7));
}

.epo-brand-item img {
    display: block;
    max-height: 140px;
    max-width: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Fallback si l'image ne charge pas */
.epo-brand-item img:not([src]),
.epo-brand-item img[src=""] {
    display: none;
}

/* Fix pour certains SVG sans dimensions intrinsèques */
.epo-brand-item img[src$=".svg"] {
    min-width: 160px;
    height: 130px;
}

/* ==========================================================================
   MONTRES - Overrides logos spécifiques
   ========================================================================== */

.epo-brand-item img[src*="tag-heuer"] {
    height: 150px;
    max-height: 150px;
    min-width: 150px;
}

.epo-brand-item img[src*="audemars-piguet"] {
    height: 200px;
    max-height: 200px;
    min-width: 540px;
    max-width: 640px;
}

.epo-brand-item img[src*="jaeger-le-coultre"] {
    height: 190px;
    max-height: 190px;
    min-width: 500px;
    max-width: 600px;
}

/* ==========================================================================
   BIJOUX - Overrides (.epo-brands-bijoux)
   ========================================================================== */

.epo-brands-bijoux .epo-brands-track {
    gap: 60px;
    animation: ticker-scroll-bijoux 35s linear infinite;
}

.epo-brands-bijoux .epo-brand-item {
    width: 240px;
    height: 120px;
}

.epo-brands-bijoux .epo-brand-item img {
    max-height: 100px;
    max-width: 220px;
}

.epo-brands-bijoux .epo-brand-item img[src$=".svg"] {
    min-width: 150px;
    height: 90px;
}

/* Bijoux - Logos spécifiques */
.epo-brands-bijoux .epo-brand-item img[src*="Van_Cleef"] {
    min-width: 220px;
    max-width: 280px;
    height: 65px;
}

.epo-brands-bijoux .epo-brand-item img[src*="hermes"] {
    min-width: 240px;
    max-width: 300px;
    height: 75px;
}

.epo-brands-bijoux .epo-brand-item img[src*="boucheron"] {
    min-width: 200px;
    height: 75px;
}

.epo-brands-bijoux .epo-brand-item img[src*="chopard"] {
    min-width: 200px;
    height: 85px;
}

/* ==========================================================================
   Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .epo-brands-section {
        padding: 80px 40px;
    }

    .epo-brands-header {
        margin-bottom: 50px;
    }

    .epo-brands-cta {
        margin-top: 60px;
    }

    .epo-brands-btn {
        padding: 18px 50px;
        font-size: 14px;
    }

    .epo-brands-subtitle {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .epo-brands-title {
        font-size: 32px;
    }

    .epo-brands-track {
        gap: 80px;
        animation-duration: 35s;
    }

    .epo-brand-item {
        height: 75px;
        width: 220px;
    }

    .epo-brand-item img {
        max-height: 75px;
        max-width: 180px;
    }

    .epo-brand-item img[src$=".svg"] {
        min-width: 120px;
        height: 70px;
    }

    /* Montres - Tablet */
    .epo-brand-item img[src*="tag-heuer"] {
        height: 90px;
        max-height: 90px;
        min-width: 90px;
    }

    .epo-brand-item img[src*="audemars-piguet"] {
        height: 160px;
        max-height: 160px;
        min-width: 440px;
        max-width: 520px;
    }

    .epo-brand-item img[src*="jaeger-le-coultre"] {
        height: 150px;
        max-height: 150px;
        min-width: 400px;
        max-width: 480px;
    }

    /* Bijoux - Tablet */
    .epo-brands-bijoux .epo-brands-track {
        gap: 80px;
        animation-duration: 40s;
    }

    .epo-brands-bijoux .epo-brand-item {
        height: 130px;
        width: 280px;
    }

    .epo-brands-bijoux .epo-brand-item img {
        max-height: 110px;
        max-width: 240px;
    }

    .epo-brands-bijoux .epo-brand-item img[src$=".svg"] {
        min-width: 170px;
        height: 100px;
    }

    .epo-brands-bijoux .epo-brand-item img[src*="Van_Cleef"] {
        min-width: 260px;
        max-width: 320px;
        height: 70px;
    }

    .epo-brands-bijoux .epo-brand-item img[src*="hermes"] {
        min-width: 280px;
        max-width: 340px;
        height: 80px;
    }
}

/* ==========================================================================
   Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .epo-brands-section {
        padding: 100px 60px;
    }

    .epo-brands-header {
        margin-bottom: 60px;
    }

    .epo-brands-title {
        font-size: 36px;
    }

    .epo-brands-cta {
        margin-top: 70px;
    }

    .epo-brands-track {
        gap: 100px;
        animation-duration: 40s;
    }

    .epo-brand-item {
        height: 90px;
        width: 260px;
    }

    .epo-brand-item img {
        max-height: 90px;
        max-width: 220px;
    }

    .epo-brand-item img[src$=".svg"] {
        min-width: 150px;
        height: 85px;
    }

    /* Montres - Desktop */
    .epo-brand-item img[src*="tag-heuer"] {
        height: 110px;
        max-height: 110px;
        min-width: 110px;
    }

    .epo-brand-item img[src*="audemars-piguet"] {
        height: 190px;
        max-height: 190px;
        min-width: 520px;
        max-width: 600px;
    }

    .epo-brand-item img[src*="jaeger-le-coultre"] {
        height: 170px;
        max-height: 170px;
        min-width: 460px;
        max-width: 540px;
    }

    /* Bijoux - Desktop */
    .epo-brands-bijoux .epo-brands-track {
        gap: 100px;
        animation-duration: 45s;
    }

    .epo-brands-bijoux .epo-brand-item {
        height: 140px;
        width: 320px;
    }

    .epo-brands-bijoux .epo-brand-item img {
        max-height: 120px;
        max-width: 280px;
    }

    .epo-brands-bijoux .epo-brand-item img[src$=".svg"] {
        min-width: 200px;
        height: 110px;
    }

    .epo-brands-bijoux .epo-brand-item img[src*="Van_Cleef"] {
        min-width: 300px;
        max-width: 380px;
        height: 75px;
    }

    .epo-brands-bijoux .epo-brand-item img[src*="hermes"] {
        min-width: 320px;
        max-width: 400px;
        height: 90px;
    }
}

/* ==========================================================================
   Large Desktop (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
    .epo-brands-section {
        padding: 120px 80px;
    }

    .epo-brands-title {
        font-size: 40px;
    }

    .epo-brands-cta {
        margin-top: 80px;
    }

    .epo-brands-btn {
        padding: 20px 60px;
    }

    .epo-brands-track {
        gap: 120px;
    }

    .epo-brand-item {
        height: 100px;
        width: 300px;
    }

    .epo-brand-item img {
        max-height: 100px;
        max-width: 250px;
    }

    .epo-brand-item img[src$=".svg"] {
        min-width: 180px;
        height: 95px;
    }

    /* Montres - Large Desktop */
    .epo-brand-item img[src*="tag-heuer"] {
        height: 130px;
        max-height: 130px;
        min-width: 130px;
    }

    .epo-brand-item img[src*="audemars-piguet"] {
        height: 210px;
        max-height: 210px;
        min-width: 600px;
        max-width: 700px;
    }

    .epo-brand-item img[src*="jaeger-le-coultre"] {
        height: 190px;
        max-height: 190px;
        min-width: 540px;
        max-width: 620px;
    }

    /* Bijoux - Large Desktop */
    .epo-brands-bijoux .epo-brands-track {
        gap: 120px;
    }

    .epo-brands-bijoux .epo-brand-item {
        height: 150px;
        width: 360px;
    }

    .epo-brands-bijoux .epo-brand-item img {
        max-height: 130px;
        max-width: 320px;
    }

    .epo-brands-bijoux .epo-brand-item img[src$=".svg"] {
        min-width: 240px;
        height: 120px;
    }

    .epo-brands-bijoux .epo-brand-item img[src*="Van_Cleef"] {
        min-width: 340px;
        max-width: 420px;
        height: 80px;
    }

    .epo-brands-bijoux .epo-brand-item img[src*="hermes"] {
        min-width: 360px;
        max-width: 440px;
        height: 95px;
    }
}

/* ==========================================================================
   Animation réduite pour accessibilité
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .epo-brands-track {
        animation: none;
    }
}
