/* ======================================= */
/* 1. STYLES GÉNÉRAUX ET VARIABLES */
/* ======================================= */
/* Couleurs de la charte :
   Orange: #ffaa67
   Vert:   #6a965b
   Marron: #4a331e
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f9f9f9;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Conteneur principal (pris de votre section burger) */
.container {
    width: 90%; 
    max-width: 1800px; 
    margin: 0 auto; 
}


/* ======================================= */
/* 2. COMPOSANTS UTILITAIRES (Boutons, Liens...) */
/* ======================================= */

/* --- Boutons Génériques --- */
.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #ffaa67; /* Orange */
    color: #4a331e; /* Marron */
    border: 2px solid #ffaa67;
}

.btn-secondary {
    background-color: #6a965b; /* Vert */
    color: #ffffff;
    border: 2px solid #6a965b;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-add-to-cart {
    width: 100%;
    padding: 16px;
    font-size: 1.35rem;
    margin-top: 30px;
    background-color: #ffaa67;
    color: #4a331e;
    border-color: #ffaa67;
}

/* --- Liens de Carte Produit --- */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* ======================================= */
/* 3. LAYOUT (Header & Footer) */
/* ======================================= */

/* --- 3a. Header / Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #6a965b; /* Vert */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Styles par défaut (grands écrans > 1900px) */
    height: 120px;
    font-size: 25px;
}

.nav-logo img {
    height: 120px; /* Défaut */
}

.nav-menu {
    display: flex;
    gap: 80px;
}

.nav-link {
    font-weight: 600;
    color: #4a331e;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffaa67; /* Orange */
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Bouton Hamburger (caché par défaut) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #4a331e;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- 3b. Footer --- */
.site-footer {
    background-color: #4a331e;
    color: #f0f0f0;
    padding: 50px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-brand .footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-brand p {
    margin: 5px 0;
    color: #ccc;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.footer-links a {
    color: #f0f0f0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffaa67; /* Orange */
}

.footer-legal {
    text-align: left;
    color: #ccc;
    font-style: italic;
}

.footer-legal p {
    margin: 0;
}

.manger-bouger-link a {
    color: #f0f0f0;
    font-style: normal;
    font-weight: 600;
    transition: color 0.3s ease;
}

.manger-bouger-link a:hover {
    color: #ffaa67; /* Orange */
}


/* ======================================= */
/* 4. CONTENU PRINCIPAL (Sections de page) */
/* ======================================= */

/* --- 4a. Main & Overlay Mobile --- */
main {
    position: relative;
    z-index: 1;
    /* CORRECTION: Marge par défaut calée sur la navbar (120px) */
    margin-top: 120px; 
}

/* Overlay (état par défaut, caché) */
main::before {
    content: '';
    position: fixed;
    top: 120px; /* CORRECTION: Calé sur la navbar */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Overlay (état actif, visible) */
body.menu-open main::before {
    top: 80px; /* CORRECTION: Calé sur la navbar mobile (80px) */
    opacity: 1;
    visibility: visible;
}

/* --- 4b. Section Héros (Accueil) --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/images/Produits_Smash.jpg');
    background-size: cover;
    background-position: center;
    height: 95vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    transition: background-image 1s ease-in-out; /* Gardé de votre JS */
}

.hero-content {
    max-width: 700px;
    color: #ffffff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 40px;
}

/* --- 4c. Section Menu (Accueil) --- */
.product-menu {
    padding: 80px 0;
    background-color: #ffffff; 
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #4a331e; 
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover; 
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4a331e; 
    margin-bottom: 10px;
}

.product-info p {
    font-size: 1rem;
    color: #555555; 
    margin-bottom: 20px;
    min-height: 48px;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6a965b; /* Vert */
}

/* --- 4d. Page Produit (Détail) --- */
.product-page {
    padding: 1px 0;
    margin-top: 40px;
    background-color: #ffffff;
}

.product-layout {
    margin-top: 200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-image-gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-details {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 3rem;
    font-weight: 800;
    color: #4a331e;
    line-height: 1.2;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6a965b;
    margin-top: 10px;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 25px;
}

.product-description {
    font-size: 1.35rem;
    color: #333;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.product-description h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4a331e;
    margin-bottom: 15px;
}

.product-description p {
    margin-bottom: 1.35rem;
}

/* --- 4e. Section "Une autre envie ?" --- */
.cross-sell {
    padding: 80px 0;
    background-color: #f9f9f9; /* Fond gris clair */
}

.cross-sell-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}


/* ======================================= */
/* 5. STYLES RESPONSIVES (Media Queries) */
/* ======================================= */

/* --- 5a. Écrans larges (jusqu'à 1920px) --- */
@media (max-width: 1920px) {
    .product-title {
        font-size: 2rem; 
        line-height: 1;
    }
    
    .product-price {
        font-size: 1.75rem; /* CORRECTION: "1,75rem" -> "1.75rem" */
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .product-subtitle {
        font-size: 1.35rem; 
        margin-bottom: 15px;
    }
    
    .product-description {
        font-size: 1rem; 
        padding-top: 15px;
    }
    
    .product-description h3 {
        font-size: 1.15rem;
    }
    
    .product-description p {
        margin-bottom: 1rem;
    }
}

/* --- 5b. Écrans Desktop (jusqu'à 1900px) --- */
@media (max-width: 1900px) {
    /* CORRECTION: On réduit la navbar et on ajuste le contenu */
    .navbar {
        height: 80px;
        font-size: 15px;
    }
    
    .nav-logo img {
        height: 80px;
    }
    
    main {
        margin-top: 80px; /* On ajuste la marge */
    }
    
    main::before {
        top: 80px; /* On ajuste l'overlay */
    }
    
    /* On ajuste la page produit qui avait une marge bizarre */
    .product-layout {
        margin-top: 100px; /* Moins d'espace qu'avant */
    }
}

/* --- 5c. Tablettes (jusqu'à 992px) --- */
@media (max-width: 992px) {
    /* Menu Mobile */
    .menu-toggle {
        display: block;
    }
    
    .nav-controls .btn-primary {
        display: none;
    }

    .nav-container {
        position: fixed;
        left: -100%;
        top: 80px; /* CORRECTION: Calé sur la navbar (80px) */
        width: 100%;
        height: 100vh; 
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-container.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }

    /* Héros */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Grille Produits (Accueil) */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .section-title {
        font-size: 2.5rem;
    }

    /* Page Produit (Détail) */
    .product-layout {
        grid-template-columns: 1fr; /* 1 seule colonne */
        gap: 30px;
    }
    
    .product-title {
        font-size: 2.5rem; /* 40px */
    }
    
    .product-price {
        font-size: 2rem; /* 32px */
    }
    
    .product-page {
        margin-top: -70px; /* Gardé de votre code */
    }
}

/* --- 5d. Grands Mobiles (jusqu'à 768px) --- */
@media (max-width: 768px) {
    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-legal {
        text-align: center;
    }

    /* Grilles */
    .product-grid {
        grid-template-columns: 1fr; 
    }
    
    .cross-sell-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 5e. Petits Mobiles (jusqu'à 576px) --- */
@media (max-width: 576px) {
    .section-title {
        font-size: 2.2rem;
    }

    .product-card img {
        height: 250px;
    }
}