:root {
    --main-bg: #ffffff;
    --accent-color: #f4ece6; /* Couleur de fond douce pour les sections */
    --text-dark: #2c2c2c;
    --radius: 8px;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--text-dark);
}

/* Header & Nav */
.top-bar {
    background: #2c2c2c;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 4px;
}


/* Hero Section */
.hero-v2 {
    height: 500px;
    background: var(--accent-color); /* Imagine ici une photo lifestyle */
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.hero-text h2 { font-size: 3rem; margin-bottom: 10px; }

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 5% 50px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover { transform: translateY(-5px); }

.img-container {
    background: #f9f9f9;
    aspect-ratio: 3/4;
    width: 100%;
}

.product-info { padding: 15px; text-align: left; }

.category-label { font-size: 0.7rem; color: #888; text-transform: uppercase; }

.price { font-weight: 600; color: #b08d57; }

/* Buttons */
.btn-dark {
    background: #2c2c2c;
    color: white;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat';
}

/* Cache le burger sur PC */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* --- Styles Mobile (< 1024px) --- */
@media (max-width: 1024px) {
    .menu-toggle { display: flex; }

    .main-nav {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
    }

    .main-nav.active { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .mega-menu {
        position: static; /* On l'affiche en dessous du lien, pas au-dessus */
        display: none; 
        padding: 20px;
        box-shadow: none;
        background: #f9f9f9;
    }

    /* Affiche le sous-menu quand on clique */
    .has-dropdown.is-open .mega-menu {
        display: block;
    }

    .arrow { transition: transform 0.3s; display: inline-block; }
    .has-dropdown.is-open .arrow { transform: rotate(180deg); }
}
/* FIN STYLE MOBILE */

/* Le fond du menu reste sur toute la largeur */
.mega-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Le contenu, lui, est centré et resserré */
.mega-menu-content {
    max-width: 1100px; /* Largeur maximale raisonnable */
    margin: 0 auto;    /* Centre le bloc horizontalement */
    padding: 40px 20px;
    display: flex;
    justify-content: flex-start; /* Aligne tout à gauche par défaut */
    gap: 80px;         /* Contrôle précis de l'espace entre colonnes et image */
}

.menu-column {
    min-width: 180px;
}

.menu-image {
    width: 280px;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0; /* Empêche l'image de rétrécir si le texte est long */
}


.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit le cadre sans être déformée */
    transition: transform 0.5s ease;
}

.menu-image:hover img {
    transform: scale(1.05); /* Petit effet de zoom au survol */
}

/* Style pour le texte par-dessus l'image */
.promo-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    text-align: center;
}

.promo-text span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}