/**
 * CSS du Module Marques Partenaires
 * Design moderne responsive pour Meilleur Poêle
 */

.mp-brand-section-wrapper {
    background: #ffffff;
    padding: 50px 0;
    margin: 0 0;
}

.mp-brand-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.mp-brand-content {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
}

.mp-brand-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    text-align: center; /* text-center */
    margin-bottom: 2rem; /* mb-8 */
    line-height: 1.25;
    color: #000;
}

/* Responsive - md:text-3xl */
@media (min-width: 768px) {
    .mp-brand-title {
        font-size: 1.875rem; /* text-3xl */
    }
}

.mp-brand-slider-container {
    position: relative;
    overflow: hidden;
}

.mp-brand-slider {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    transition: transform 0.3s ease;
    align-items: center;
    justify-content: flex-start;
}

.mp-brand-item {
    flex: 0 0 auto;
    text-align: center;
    transition: transform 0.3s ease;
}

.mp-brand-item:hover {
    transform: translateY(-5px);
}

.mp-brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.mp-brand-link:hover {
    text-decoration: none;
    color: #ff6b35;
}

.mp-brand-image-container {
    width: 120px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.mp-brand-link:hover .mp-brand-image-container {
    border-color: #ff6b35;
}

.mp-brand-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.mp-brand-link:hover .mp-brand-image {
    filter: grayscale(0%);
}

.mp-brand-placeholder {
    opacity: 0.5;
}

.mp-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    width: 120px;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
}

.mp-brand-name {
    min-height: 36px;
}

/* Boutons de navigation (masqués sur desktop) */
.mp-brand-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none; /* Masqué partout */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
}

.mp-brand-nav:hover {
    background: #ff6b35;
    transform: translateY(-50%) scale(1.1);
}

.mp-brand-nav-prev {
    left: -20px;
}

.mp-brand-nav-next {
    right: -20px;
}

/* Indicateurs (masqués sur desktop) */
.mp-brand-indicators {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.mp-brand-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9ecef;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mp-brand-indicator.active {
    background: #ff6b35;
}

/* Animation d'apparition */
.mp-brand-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablettes */
@media (max-width: 992px) {
    .mp-brand-slider {
        gap: 20px;
    }
    
    .mp-brand-image-container {
        width: 100px;
        height: 70px;
    }
    
    .mp-brand-title {
        margin-bottom: 1.875rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mp-brand-container {
        margin: 30px auto;
    }
    
    .mp-brand-content {
        padding: 30px 20px;
    }
    
    .mp-brand-title {
        margin-bottom: 1.5rem;
    }
    
    .mp-brand-slider-container {
        padding: 0 10px;
    }
    
    .mp-brand-slider {
        gap: 12px;
        overflow-x: hidden;
        scroll-behavior: smooth;
        padding: 15px 0;
        justify-content: flex-start;
        display: flex;
        flex-wrap: nowrap;
        /* Largeur définie dynamiquement par JavaScript */
        width: 100%;
    }
    
    .mp-brand-item {
        flex: 0 0 auto;
        /* Largeur définie dynamiquement par JavaScript */
        width: auto;
        box-sizing: border-box;
    }
    
    .mp-brand-image-container {
        width: 90px;
        height: 70px;
        margin: 0 auto 10px;
    }
    
    .mp-brand-name {
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
    
    /* Masquer les flèches sur mobile */
    .mp-brand-nav {
        display: none;
    }
    
    .mp-brand-indicators {
        display: flex;
        margin-top: 25px;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .mp-brand-content {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .mp-brand-title {
        margin-bottom: 1.25rem;
    }
    
    .mp-brand-slider-container {
        padding: 0 5px;
    }
    
    .mp-brand-item {
        flex: 0 0 auto;
        /* Largeur définie dynamiquement par JavaScript */
        width: auto;
        box-sizing: border-box;
    }
    
    .mp-brand-slider {
        gap: 8px;
    }
    
    .mp-brand-image-container {
        width: 80px;
        height: 60px;
        padding: 5px;
        margin: 0 auto 10px;
    }
    
    .mp-brand-name {
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
    }
    
    .mp-brand-indicators {
        margin-top: 20px;
    }
}

/* Animation du slider */
.mp-brand-slider.sliding {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} 

/* Bouton "Toutes les marques" */
.mp-brand-all-brands {
    text-align: center;
    margin-top: 30px;
    padding: 0 15px;
}

.mp-brand-all-brands-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgb(253, 72, 20);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mp-brand-all-brands-btn:hover {
    background: rgb(224, 62, 0);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mp-brand-all-brands-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mp-brand-all-brands-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mp-brand-all-brands-btn:hover svg {
    transform: translateX(2px);
}

/* Responsive pour le bouton */
@media (max-width: 480px) {
    .mp-brand-all-brands {
        margin-top: 20px;
    }
    
    .mp-brand-all-brands-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
} 