/* Styles pour le slider des marques constructeurs */


#slider-des-marques {
    background-color: var(--morel-secondary);
}


.brands-slider-wrapper {
    position: relative;
    overflow: hidden;
}

/* Conteneur du swiper */
.brands-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Style des slides */
.brand-slide {
    aspect-ratio: 16/9; /* Ratio fixe pour tous les slides */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style des liens */
.brand-link {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center; /* Centre parfaitement l'élément enfant */
    padding: 15px;
    transition: all 0.3s ease;
}

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

/* Style des logos */
.brand-logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.nav-item.col-type-vehicule a{
    text-transform: uppercase;
    font-size: 1.1rem;
}

.lazy {
    opacity: 0;
}

.lazy.loaded {
    opacity: 1;
}

/* Style des boutons de navigation */
.brands-button-prev,
.brands-button-next {
    color: white !important;
    background-color: transparent !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.brands-button-prev:hover,
.brands-button-next:hover {
    background-color: var(--morel-secondary-light) !important;
    color: #fff !important;
}

.brands-button-prev:after,
.brands-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

/* Positionnement des boutons de navigation */
.brands-button-prev {
    left: 10px;
}

.brands-button-next {
    right: 10px;
}

/* Media queries pour la responsivité */
@media (max-width: 991px) {
    .brands-slider-wrapper {
        padding: 20px 0;
    }
    
    .brand-link {
        padding: 10px;
    }
    
    .brand-logo {
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    .brands-slider-wrapper {
        padding: 15px 0;
    }
    
    .brands-button-prev,
    .brands-button-next {
        width: 35px;
        height: 35px;
    }
    
    .brands-button-prev:after,
    .brands-button-next:after {
        font-size: 16px;
    }
} 