/* Wrapper for the entire module */
.lesintrouvables {
    margin-top: 40px; /* Plus de marge en haut */
    margin-bottom: 40px; /* Plus de marge en bas */
    position: relative; /* Assurez-vous que le module ne couvre pas les autres modules */
    z-index: auto; /* Laisser le navigateur gérer l'empilement naturel */
    display: block;
    height: auto;
    overflow: visible; /* S'assurer que tout le contenu est visible */
}

/* Titre principal, reprenant le modèle de base */
.lesintrouvables-title-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333; /* Couleur de base originale */
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #B97955; /* Ligne sous le titre */
    display: inline-block;
    padding-bottom: 10px;
}

/* Onglets */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    padding: 12px 24px;
    cursor: pointer;
    border: 1px solid #B97955;
    margin: 0 10px;
    background-color: #fff;
    color: #B97955;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-tabs .nav-link.active {
    background-color: #B97955;
    color: #fff;
}

.nav-tabs .nav-link:hover {
    background-color: #e64a19;
    color: #fff;
}

/* Wrapper for carousels */
.lesintrouvables-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    overflow: visible; /* Assurez-vous que le contenu est visible */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Boutons Précédent et Suivant rectangulaires et légèrement transparents */
.prev-btn, .next-btn {
    background-color: rgba(255, 87, 34, 0.7); /* Légèrement transparent */
    color: white;
    border: none;
    padding: 12px 20px; /* Boutons plus larges */
    cursor: pointer;
    font-size: 18px; /* Taille de la police réduite */
    border-radius: 5px; /* Rectangulaire avec coins légèrement arrondis */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(230, 74, 25, 0.9); /* Moins transparent au survol */
}

.prev-btn {
    left: 10px; /* Ajusté pour être plus éloigné du bord */
}

.next-btn {
    right: 10px; /* Ajusté pour être plus éloigné du bord */
}

/* Carrousel */
.lesintrouvables-carousel {
    display: flex;
    overflow: hidden; /* Retire l'ascenseur horizontal */
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px;
    width: 100%;
    scroll-snap-type: x mandatory;
}

.lesintrouvables-item {
    flex: 0 0 25%; /* 4 produits visibles par ligne */
    scroll-snap-align: start;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color: #fff;
}

.lesintrouvables-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px); /* Effet d'élévation au survol */
}

/* Image du produit */
.product-thumbnail img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-thumbnail:hover img {
    transform: scale(1.05);
}

/* Informations sur le produit */
.product-info {
    font-size: 14px;
    margin-bottom: 10px;
}

.product-info h6 {
    font-size: 16px;
    margin: 10px 0;
    font-weight: 600;
    color: #333;
}

.product-info .price {
    font-weight: bold;
    color: #B97955;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Bouton "Ajouter au panier" */
.btn.add-to-cart {
    background-color: #B97955;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn.add-to-cart:hover {
    background-color: #e64a19;
}

/* Lien pour voir tous les produits */
.see-all-products {
    text-align: center;
    margin-top: 20px;
}

.see-all-products .btn {
    background-color: #B97955;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.see-all-products .btn:hover {
    background-color: #e64a19;
}

/* Responsiveness */
@media (max-width: 768px) {
    .lesintrouvables-item {
        flex: 0 0 50%; /* 2 produits visibles sur tablettes */
    }
}

@media (max-width: 576px) {
    .lesintrouvables-item {
        flex: 0 0 100%; /* 1 produit visible sur les petits écrans */
    }
}
