/* --- EN-TÊTE SOMBRE (HEADER) --- */
#header .nav {
    background: #1a1a1a !important;
    border-bottom: 1px solid #2d2d2d;
}
#header .nav a, #header .nav span {
    color: #b3b3b3 !important;
}
#header .nav a:hover {
    color: #ffffff !important;
}

#header .header-top {
    background: #242424 !important;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header-top .menu, .header-top .menu a {
    color: #ffffff !important;
    font-weight: 600;
}
.header-top .menu a:hover {
    color: #2fb5d2 !important; 
}

#_desktop_cart .cart-preview .shopping-cart, #search_widget input[type="text"] {
    background: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #444444;
}

/* --- PIED DE PAGE SOMBRE (FOOTER) --- */
.footer-container {
    background: #1a1a1a !important;
    color: #e0e0e0 !important; /* Blanc pâle pour les textes bruts */
    padding-top: 40px;
}

/* Titres H3 du pied de page (ex: "Notre société", "Produits") */
.footer-container h3.hidden-sm-down, 
.footer-container h4 {
    color: #ffffff !important; /* On garde les titres principaux en blanc pur pour le contraste */
    font-weight: 600;
    text-transform: uppercase;
}

/* Textes, paragraphes et listes de liens du pied de page */
.footer-container p,
.footer-container .links ul li a,
.footer-container .block-contact {
    color: #e0e0e0 !important; /* Application du blanc pâle */
}

/* Effet au survol sur les liens pour une meilleure expérience utilisateur */
.footer-container .links ul li a:hover {
    color: #2fb5d2 !important; /* Couleur d'accentuation PrestaShop au survol */
    text-decoration: none;
}


/* --- ISOLATION STRICTE DU MODULE CROSS-SELLING --- */
/* Note pro : L'utilisation de .pm-crossselling-section garantit que les produits 
   de la page d'accueil ne seront pas affectés par ces styles. */
.pm-crossselling-section .pm-crossselling-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    width: 100%;
}

.pm-crossselling-section .pm-crossselling-thumb-container {
    width: 100%;
    max-width: 450px;
    margin-bottom: 15px;
}

.pm-crossselling-section .pm-crossselling-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.pm-crossselling-section .pm-crossselling-desc {
    width: 100%;
}

/* --- REDESSINER LA GRILLE PRODUITS DE LA PAGE D'ACCUEIL --- */
@media (min-width: 768px) {
    /* Cible les miniatures de produits uniquement sur la page d'accueil */
    #index .products .js-product {
        width: 33.333% !important;
        float: left;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Force le conteneur flex à aligner 3 éléments par ligne proprement */
    #index .products.row {
        display: flex;
        flex-wrap: wrap;
    }
}

