:root {
    --forest-green: #0e3027; /* Tiré de la bannière */
    --gold: #b59449;        /* Tiré du logo */
    --light-green: #e9f5f2;
    --text-dark: #333;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); scroll-behavior: smooth; line-height: 1.6; }

/* NAVBAR LUXE */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: 0.4s; padding: 20px 0;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1200px; margin: auto; display: flex;
    justify-content: space-between; align-items: center; padding: 0 20px;
}
.logo img { height: 60px; }
.nav-menu { list-style: none; display: flex; gap: 30px; }
.nav-menu a { 
    text-decoration: none; color: var(--forest-green); 
    font-weight: 600; text-transform: uppercase; font-size: 0.9rem;
}

/* HERO BANNER RESPONSIVE */
.hero-section { width: 100%; height: 100vh; overflow: hidden; position: relative; }
.hero-banner img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(14,48,39,0.4), rgba(14,48,39,0.8));
    display: flex; align-items: center; justify-content: center;
}
.hero-text { text-align: center; color: white; padding: 20px; max-width: 800px; }
.hero-text h1 { font-size: 4rem; font-weight: 700; margin-bottom: 10px; }
.slogan { font-size: 1.5rem; font-style: italic; margin-bottom: 30px; }

/* ABOUT CARD - GLASSMORPHISM */
.about-card {
    display: grid; grid-template-columns: 1fr 1fr;
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); margin-top: -100px; position: relative; z-index: 10;
}
.about-content { padding: 60px; }
.section-title { color: var(--forest-green); font-size: 2.5rem; margin-bottom: 20px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--gold); margin-top: 10px; }
.values-grid { display: flex; gap: 20px; margin-top: 30px; }
.val { background: var(--light-green); padding: 10px 15px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; }
.about-image img { width: 30%; height: auto; object-fit: cover; }

/* PRODUCT CARDS */
.product-carousel {
    display: flex; gap: 25px; overflow-x: auto; padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}
.product-card {
    min-width: 300px; background: white; border-radius: 15px;
    overflow: hidden; border: 1px solid #eee; transition: 0.3s;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.p-img-container { height: 200px; overflow: hidden; }
.p-img-container img { width: 100%; height: 100%; object-fit: cover; }
.p-details { padding: 20px; }
.category { font-size: 0.7rem; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.price { font-size: 1.4rem; color: var(--forest-green); font-weight: 700; margin: 10px 0; }

.btn-add-cart {
    width: 100%; background: var(--forest-green); color: white; border: none;
    padding: 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between;
    transition: 0.3s;
}
.btn-add-cart:hover { background: var(--gold); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    .about-card { grid-template-columns: 1fr; margin-top: 20px; }
    .nav-menu { display: none; } /* On pourrait ajouter un menu burger ici */

    .product-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 5px;
    scrollbar-width: none; /* Cache la barre sur Firefox */
    -ms-overflow-style: none; /* Cache la barre sur IE/Edge */
    scroll-behavior: auto; /* Important : laisser sur 'auto' pour que le JS soit fluide */
}

.product-carousel::-webkit-scrollbar {
    display: none; /* Cache la barre sur Chrome/Safari */
}

/* --- GRILLE DE PRODUITS V4 (MOBILE FIRST) --- */
.product-grid-v4 {
    display: grid;
    /* 1 produit par ligne par défaut sur mobile */
    grid-template-columns: 1fr;
    gap: 30px; /* Grand espace pour l'effet de carte */
    padding: 50px 0;
}

/* --- STRUCTURE DE LA CARTE (IMAGE_11.PNG STYLE) --- */
.product-item-v4 {
    background: #ffffff;
    /* Bordures blanches très marquées comme sur l'image */
    padding: 15px; 
    border: 5px solid #ffffff; 
    /* Ombre portée douce mais visible */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-item-v4:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(14, 48, 39, 0.15);
}

/* Zone d'image avec ratio carré pour l'alignement */
.p-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fcfcfc;
}

.p-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zone de contenu (Texte + Bouton) */
.p-content-box {
    padding: 20px 10px 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p-text h3 {
    color: #0e3027; /* Vert Forêt N&M */
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.p-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.p-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0e3027; /* Vert Forêt */
}

.p-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
}

/* BOUTON AJOUTER AU PANIER (Minimaliste) */
.btn-add-to-cart {
    background: #0e3027; /* Vert Forêt */
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #b59449; /* Or au survol */
    transform: scale(1.1);
}

.btn-add-to-cart svg {
    display: block;
}

/* --- RESPONSIVE : 2 COLONNES SUR TABLETTES ET PC --- */
/* Cible les écrans dès 768px de large */
@media (min-width: 768px) {
    .product-grid-v4 {
        /* Force 2 produits par ligne sur tablettes et PC */
        grid-template-columns: repeat(2, 1fr);
        gap: 40px; /* Espace légèrement plus grand pour le confort visuel */
    }
    
    .p-text h3 {
        font-size: 1.4rem;
    }
}

/* Style de la Modale */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(14, 48, 39, 0.7); /* Vert forêt transparent */
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    height: 80vh;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

.modal-header {
    padding: 20px;
    background: var(--forest-green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    flex-grow: 1;
}

#orderFrame {
    width: 100%;
    height: 100%;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
}

