/* RESET ET STYLES DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9f5; /* Fond légèrement vert clair */
}

a {
    text-decoration: none;
    color: #2c602a; /* Vert foncé */
}

img {
    max-width: 100%;
    height: auto;
}

/* CONTENEUR PRINCIPAL */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;  /* Augmenté de 60px à 80px */
    width: auto;
}

.logo-text {
    font-size: 28px;  /* Augmenté de 24px à 28px */
    font-weight: bold;
    color: #b3913f;
    margin-left: 15px;  /* Augmenté de 10px à 15px */
}

/* Pour s'assurer que le header s'adapte bien */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;  /* Augmenté de 15px à 20px */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .logo img {
        height: 60px;  /* Taille réduite sur mobile */
    }
    
    .logo-text {
        font-size: 24px;
    }
}

/* NAVIGATION */
.navigation {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #f0f5f0;
    color: #1a451a;
}

.nav-link.active {
    background-color: #e4f0e2;
    color: #2c602a;
}

.cart {
    position: relative;
    display: flex;
    align-items: center;
}

.cart i {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #b3913f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* FIL D'ARIANE */
.breadcrumb {
    background-color: #f0f5f0;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #2c602a;
}

.breadcrumb span {
    color: #666;
}

/* BANNIÈRE PRINCIPALE */
.hero {
    background: linear-gradient(to right, #2c602a, #3c804a);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #b3913f;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #9a7b35;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

/* TITRE DE PAGE */
.page-title {
    text-align: center;
    padding: 50px 0 30px;
}

.page-title h1 {
    color: #2c602a;
    font-size: 32px;
    margin-bottom: 15px;
}

.page-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* CATÉGORIES */
.categories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #2c602a;
    font-size: 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.category-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    color: #2c602a;
    margin-bottom: 10px;
    font-size: 20px;
}

.category-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.category-link {
    color: #b3913f;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.category-link:hover {
    text-decoration: underline;
}

/* FILTRES */
.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    margin: 0 5px;
}

.filter-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.filter-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.filter-btn.active {
    background-color: #2c602a;
    color: white;
    border-color: #2c602a;
}

.filter-btn:hover:not(.active) {
    background-color: #f0f5f0;
    border-color: #ccc;
}

/* PRODUITS */
.products {
    padding: 20px 0 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.product-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e4f0e2;
    color: #2c602a;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
}

.product-subtitle {
    color: #2c602a;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-weight: bold;
    font-size: 18px;
}

.btn-add {
    background-color: #2c602a;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: #1a451a;
}

/* PRODUIT UNIQUE */
.product-section {
    padding: 50px 0 80px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-gallery {
    padding: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    border-radius: 8px;
}

.thumbnail-container {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #2c602a;
}

.thumbnail.active {
    border-color: #2c602a;
}

.product-info {
    padding: 40px;
}

.product-title {
    font-size: 28px;
    color: #2c602a;
    margin-bottom: 10px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-meta {
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.meta-item i {
    color: #2c602a;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-label {
    margin-right: 15px;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background-color: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.qty-btn:hover {
    background-color: #e5e5e5;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
}

.add-to-cart {
    width: 100%;
    background-color: #2c602a;
    color: white;
    border: none;
    padding: 15px 0;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.add-to-cart:hover {
    background-color: #1a451a;
}

/* ALERTE SÉCURITÉ */
.safety-alert {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.safety-alert h4 {
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.safety-alert h4 i {
    margin-right: 10px;
}

.safety-alert p {
    color: #856404;
    font-size: 14px;
    margin-bottom: 5px;
}

/* TABS SECTION */
.product-tabs {
    margin-top: 50px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #2c602a;
}

.tab-btn.active {
    color: #2c602a;
    border-bottom-color: #2c602a;
}

.tab-content {
    padding: 20px 0;
    line-height: 1.8;
}


.tab-content.active {
    display: block;
}
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.ingredients-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.ingredients-list li {
    margin-bottom: 10px;
}

/* AVANTAGES */
.benefits {
    padding: 80px 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: #e4f0e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #2c602a;
}

.benefit-card h3 {
    color: #2c602a;
    margin-bottom: 15px;
    font-size: 20px;
}

.benefit-card p {
    color: #666;
    font-size: 15px;
}

/* BANNIÈRE INFO */
.info-banner {
    background-color: #b3913f;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-item {
    text-align: center;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 14px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    color: white;
    background-color: rgba(255,255,255,0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: rgba(255,255,255,0.3);
}

/* FOOTER */
.footer {
    background-color: #2c602a;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #b3913f;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact a {
    color: white;
    display: block;
    margin-bottom: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* NOTIFICATION */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2c602a;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .category-grid, 
    .product-grid, 
    .benefits-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-image {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation {
        margin-top: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-image {
        display: none;
    }
    
    .category-grid, 
    .product-grid, 
    .benefits-grid, 
    .info-grid, 
    .footer-grid,
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        width: 80%;
        border-radius: 4px;
    }
    
.tabs-header {
    display: flex;
    flex-wrap: wrap; /* Ajoute ceci pour éviter que les contenus collent à côté */
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #2c602a;
    }
}
/* CSS À AJOUTER AU FICHIER styles.css EXISTANT */

/* BOUTON ACHETER MAINTENANT */
.buy-now-btn {
    width: 100%;
    background-color: #b3913f;
    color: white;
    border: none;
    padding: 15px 0;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.buy-now-btn:hover {
    background-color: #9c7d35;
}

.buy-now-btn i {
    font-size: 16px;
}

/* TABS - CORRECTIONS ET AMÉLIORATIONS */
.product-tabs {
    margin-top: 50px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #2c602a;
    border-bottom-color: #2c602a;
}

.tab-btn:hover:not(.active) {
    color: #2c602a;
    background-color: #f8f9fa;
}

.tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h3 {
    color: #2c602a;
    font-size: 24px;
    margin-bottom: 20px;
}

.tab-pane h4 {
    color: #2c602a;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.tab-pane ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-pane li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tab-pane ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-pane ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* PRODUITS CONNEXES */
.related-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CORRECTION INFO BANNER - SANS PRIX FIXE */
.info-banner {
    background-color: #2c602a;
    color: white;
    padding: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.info-item p {
    opacity: 0.9;
    font-size: 14px;
}

/* CORRECTIONS RESPONSIVE */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #2c602a;
        background-color: #f0f5f0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* CORRECTIONS POUR COMPTEUR PANIER */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #b3913f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* AMÉLIORATIONS BOUTONS PRODUITS */
.btn-add {
    background-color: #2c602a;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-add:hover {
    background-color: #1a451a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 96, 42, 0.3);
}

/* CORRECTIONS LAYOUT PRODUITS INDIVIDUELS */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.product-gallery {
    padding: 30px;
}

.product-info {
    padding: 40px;
}

/* CORRECTIONS QUANTITÉ */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.quantity-label {
    font-weight: 500;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background-color: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #e5e5e5;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    background-color: white;
}

/* NOTIFICATION AMÉLIORÉE */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c602a;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #2c602a;
}

.notification-error {
    background: #dc3545;
}

.notification i {
    font-size: 18px;
}
/* ✅ CORRECTION VISUELLE DES ONGLETS – SANS CHANGER TON STYLE */

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.tab-btn.active {
    color: #2c602a !important;
    border-bottom: 3px solid #2c602a !important;
}

.tab-content {
    display: block !important;
    width: 100%;
    padding: 20px 0;
    clear: both;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
