/* ============================================
   CSS PERSONNALISÉ FL CONSEILS
   OpenCart 4 + Journal 3
   Version nettoyée - Sans doublons
   ============================================ */

/* ============================================
   1. CONTAINER 1200PX (site centré)
   ============================================ */

/* Couleur de fond */
html,
body,
header,
footer {
    background-color: #072857 !important; /* Couleur fond extérieur */
}

/* Container principal */
#content,
header,
footer,
.container {
    max-width: 1200px !important;
    margin: 0 auto;
    background-color: #ffffff; /* Fond blanc du site */
}

/* Forcer le container sur toute la page */
body > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Si vous voulez une bordure autour */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    background: white;
}


/* ============================================
   2. MENU MULTI-LIGNES FL CONSEILS
   ============================================ */

/* 1. CONTENEUR MENU - Permettre retour à la ligne */
.desktop-main-menu-wrapper,
.main-menu-wrapper,
nav.desktop-main-menu {
    background-color: #CC0000 !important;
    width: 100% !important;
    padding: 5px 6 !important;
    height: 0% !important;
    border-radius: 10px !important;
}

/* 2. LISTE MENU - Flex wrap activé */
.desktop-main-menu ul,
.desktop-main-menu .menu-items,
.desktop-main-menu > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
}

/* 3. ITEMS MENU - Inline pour permettre wrap */
.desktop-main-menu li,
.desktop-main-menu .menu-item,
.desktop-main-menu > ul > li {
    display: inline-flex !important;
    margin: 5px 8px !important;
    white-space: nowrap !important;
}

/* FORCER TOUS LES MENUS À WRAP */
.nav ul,
.menu ul,
.navbar ul,
[class*="menu"] ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.nav li,
.menu li,
.navbar li,
[class*="menu"] li {
    display: inline-block !important;
    margin: 0px 0px !important;
}

/* 4. LIENS MENU - Style */
.desktop-main-menu a,
.desktop-main-menu .menu-item > a {
    color: #CC0000 !important;
    background-color: #072857 !important; 
    padding: 4px 1px !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

/* 5. HOVER MENU */
.desktop-main-menu a:hover,
.desktop-main-menu .menu-item > a:hover {
    background-color: #CC0000 !important; 
}

/* 6. ICÔNES MENU (si présentes) */
.desktop-main-menu img {
    max-height: 30px !important;
    margin-right: 1px !important;
    vertical-align: middle !important;
}

/* 7. FORCER 2-3 LIGNES MAXIMUM */
.desktop-main-menu ul {
    min-height: 40px !important;
    max-height: 40px !important; /* 3 lignes max */
}

/* VARIANTE : Si classes différentes (Journal 3) */
.journal-menu,
.j3-menu,
.menu-horizontal {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.journal-menu > li,
.j3-menu > li,
.menu-horizontal > li {
    display: inline-block !important;
    margin: 2px 0px !important;
}

/* FIX POUR MEGA MENU (si applicable) */
.desktop-main-menu .dropdown-menu,
.desktop-main-menu .mega-menu {
    flex-wrap: nowrap !important;
    position: absolute !important;
}


/* ============================================
   3. MENU CATÉGORIES AVEC ICÔNES
   ============================================ */

.category-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
}

.category-menu .category-item {
    text-align: center;
    padding: 10px;
}


/* ============================================
   4. HEADER IMAGE DE FOND
   ============================================ */

header {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}






/* ============================================
   SECTION en plus du 4 = 6 : HOMEPAGE - PRODUITS
   ============================================ */

/* Section homepage */
.homepage-section {
    margin: 40px 0;
    padding: 20px;
}

/* Titre section */
.section-title,
.module-title {
    font-size: 28px;
    color: #003366;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Grille produits */
.product-grid,
.products-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Carte produit */
.product-item,
.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    text-align: center;
}

.product-item:hover {
    border-color: #CC0000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Image produit */
.product-item img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Nom produit */
.product-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin: 10px 0;
}

/* Prix */
.product-price {
    font-size: 18px;
    color: #CC0000;
    font-weight: 700;
}


/* ============================================
   SECTION 7 : AVIS GOOGLE
   ============================================ */

.reviews-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.review-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 10px;
}

.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: #003366;
    margin-top: 10px;
}


/* ============================================
   SECTION 8 : AJUSTEMENTS FINS
   ============================================ */

/* Espacer le contenu du header */
main {
    padding-top: 2px;
}

/* Footer dans le container */
footer {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}


/* ============================================
   SECTION 9 : FIXES SPÉCIFIQUES JOURNAL 3
   ============================================ */

/* Forcer les containers Journal 3 */
.journal-container,
.j3-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Carousel du haut */
.top-bar,
.announcement-bar {
    max-width: 1200px;
    margin: 0 auto;
}

/* Modules Journal 3 */
.module-wrapper,
.j3-module {
    max-width: 1200px;
    margin: 0 auto;
}
















/* ============================================
   5. RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    #content,
    header,
    footer,
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .desktop-main-menu ul {
        max-width: 100% !important;
        padding: 0 5px !important;
    }
}

@media (max-width: 768px) {
    /* Menu mobile sur 1 colonne */
    .desktop-main-menu ul {
        flex-direction: column !important;
    }
    
    .desktop-main-menu li {
        width: 100% !important;
        text-align: center !important;
    }
}


/* ============================================
   6. AJUSTEMENTS FINS
   ============================================ */

/* Espacer le contenu du header */
main {
    padding-top: 20px;
}

/* Footer dans le container */
footer {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}
