        /* --- CONFIGURATION GLOBALE --- */
        :root {
            --primary-green: #425e4f;       /* Vert Vif (Action) */
            --light-green: #DEF9EC;         /* Vert Clair (Fond) */
            --accent-color: var(--primary-green);
            --text-dark: #253D4E;           /* Titres */
            --text-grey: #7E7E7E;           /* Paragraphes */
            --bg-body: #F4F6FA;             /* Fond Site */
            --danger: #FF4747;              /* Alertes */
            --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
            --radius-card: 15px;
        }

        .btn.btn-success,
        .btn.btn-outline-success,
        .btn.btn-primary,
        .btn.btn-outline-primary {
            --bs-btn-bg: var(--primary-green);
            --bs-btn-border-color: var(--primary-green);
            --bs-btn-hover-bg: var(--primary-green);
            --bs-btn-hover-border-color: var(--primary-green);
            --bs-btn-active-bg: var(--primary-green);
            --bs-btn-active-border-color: var(--primary-green);
        }

        .btn.btn-outline-success,
        .btn.btn-outline-primary {
            --bs-btn-color: var(--primary-green);
            --bs-btn-hover-color: #fff;
            --bs-btn-active-color: #fff;
            background-color: transparent;
        }

        /* Catégories : hover vert + texte blanc lisible */
        .category-chips .btn-outline-success:hover,
        .category-chips .btn-outline-success:focus {
            background-color: var(--primary-green) !important;
            color: #fff !important;
            border-color: var(--primary-green) !important;
        }

        .btn.btn-success,
        .btn.btn-primary {
            --bs-btn-color: #fff;
            --bs-btn-disabled-bg: var(--primary-green);
            --bs-btn-disabled-border-color: var(--primary-green);
            --bs-btn-disabled-color: #fff;
        }

        .text-success,
        .link-success,
        .text-primary,
        .link-primary {
            color: var(--primary-green) !important;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--primary-green) !important;
            box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary-green) 25%, transparent) !important;
        }

        .pagination .page-link {
            color: var(--primary-green);
        }
        .pagination .page-link:focus {
            box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary-green) 25%, transparent);
        }
        .pagination .page-item.active .page-link {
            background: var(--primary-green);
            border-color: var(--primary-green);
            color: #fff;
        }

        body {
            font-family: 'Quicksand', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-dark);
            overflow-x: hidden; /* Évite le scroll horizontal indésirable */
        }

        /* --- BANNIÈRE & HERO --- */
        .top-banner {
            height: 200px; width: 100%;
            object-fit: cover;
            position: relative; z-index: 1;
            display: block;
        }

        /* --- LAYOUT PRINCIPAL (Grille) --- */
        .main-container {
            max-width: 1400px; margin: 0 auto; padding: 0 20px;
            display: grid; grid-template-columns: 320px 1fr; gap: 30px;
            margin-top: -60px; position: relative; z-index: 2;
        }

        /* --- SIDEBAR GAUCHE (Infos Magasin) --- */
        .shop-sidebar {
            background: #fff;
            border-radius: var(--radius-card);
            box-shadow: var(--shadow-sm);
            padding: 30px;
            margin-top: 80px;
            height: fit-content;
            position: sticky; top: 20px; 
            z-index: 5;
        }

        .shop-logo-wrapper {
            width: 118px;
            height: 118px;
            margin: 0 auto 14px 0;
            background: #fff;
            border-radius: 50%;
            padding: 6px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.12);
            position: relative;
            top: -92px;
            margin-bottom: -66px;
            overflow: hidden;
        }

        .shop-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

        .sidebar-section {
            text-align: left; margin-top: 25px; padding-top: 25px; 
            border-top: 1px solid #eee;
        }

        .sidebar-mini-title {
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: rgba(33, 37, 41, 0.65);
            margin-bottom: 6px;
        }

        .sidebar-payment-line {
            font-weight: 800;
            color: rgba(33, 37, 41, 0.88);
            font-size: 0.95rem;
        }

        .sidebar-payment-icons {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .sidebar-payment-icon {
            height: 38px;
            width: auto;
            display: block;
            background: #fff;
        }

        .info-row {
            display: flex; gap: 12px; margin-bottom: 12px;
            font-size: 0.9rem; color: var(--text-grey);
            align-items: flex-start;
        }
        .info-row i { color: var(--primary-green); font-size: 1.1rem; margin-top: 2px; }

        /* --- CONTENT (Droite) --- */
        .content-area { padding-top: 60px; }

        /* Navigation Onglets */
        .nav-tabs-custom {
            display: flex; gap: 30px; border-bottom: 2px solid #eee; margin-bottom: 30px;
            flex-wrap: wrap;
        }
        .nav-link-custom {
            padding: 10px 0; font-weight: 700; color: var(--text-dark); text-decoration: none;
            position: relative; cursor: pointer;
        }
        .nav-link-custom.active { color: var(--primary-green); }
        .nav-link-custom.active::after {
            content: ''; position: absolute; bottom: -2px; left: 0; width: 40%; height: 2px; background: var(--primary-green);
        }

        /* Toolbar */
        .toolbar {
            display: flex; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 15px;
            align-items: flex-start;
        }
        .search-box {
            position: relative;
            width: 100%;
            max-width: 420px;
        }
        .search-input {
            width: 100%; padding: 12px 15px 12px 45px;
            border: 1px solid #eee; border-radius: 8px; background: #fff;
            font-family: inherit;
        }
        .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #aaa; }

        /* --- GRILLE PRODUITS --- */
        .products-grid {
            display: flex;
            flex-wrap: wrap;
        }

        .toolbar-controls {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: flex-end;
            flex: 1 1 420px;
            margin-left: auto;
            flex-wrap: nowrap;
        }

        .toolbar-controls .form-select {
            width: auto !important;
            min-width: 210px;
            flex: 0 0 auto;
        }

        .toolbar-controls .form-select[name="sort"] {
            min-width: 170px;
        }

        @media (max-width: 1200px) {
            .toolbar-controls {
                flex-wrap: wrap;
            }
        }

        .category-chips {
            width: 100%;
        }

        .product-card {
            background: #fff; border: 1px solid #ececec; 
            border-radius: var(--radius-card);
            padding: 15px; position: relative;
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex; flex-direction: column;
            height: 100%;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
            border-color: var(--primary-green);
        }

        .badge-promo {
            position: absolute; top: 0; left: 0;
            background: var(--accent-color); color: #fff;
            font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
            padding: 5px 12px; border-radius: 15px 0 15px 0;
            z-index: 10;
        }

        .prod-img-container {
            height: 160px; margin-bottom: 15px;
            display: flex; align-items: center; justify-content: center;
            overflow: hidden;
        }
        .prod-img { 
            max-height: 100%; max-width: 100%; 
            object-fit: contain; transition: transform 0.3s;
        }
        .product-card:hover .prod-img { transform: scale(1.05); }

        .prod-cat {
            font-size: 0.75rem; color: #aaa; text-transform: uppercase;
            margin-bottom: 5px; font-weight: 600;
        }

        .prod-title {
            font-weight: 700; font-size: 1rem; margin-bottom: 5px;
            color: var(--text-dark);
            display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }

        .prod-footer {
            margin-top: auto; 
            display: flex; justify-content: space-between; align-items: center;
            padding-top: 15px;
        }

        .prod-price {
            font-weight: 800; color: var(--primary-green); font-size: 1.15rem;
        }

        .btn-add-cart {
            background: var(--light-green); color: var(--primary-green);
            border: none; padding: 8px 15px; border-radius: 8px;
            font-weight: 600; font-size: 0.9rem;
            transition: 0.2s; display: flex; align-items: center; gap: 6px;
        }
        .btn-add-cart:hover {
            background: var(--primary-green); color: #fff;
            transform: translateY(-2px);
        }

        /* --- PANIER FLOTTANT (FAB) --- */
        .fab-cart {
            position: fixed; bottom: 24px; right: 20px;
            background: var(--primary-green); color: white;
            width: 60px; height: 60px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 24px; box-shadow: 0 5px 25px rgba(59, 183, 126, 0.4);
            cursor: pointer; z-index: 1050;
            transition: transform 0.2s;
        }
        .fab-cart:hover { transform: scale(1.1); }
        .fab-cart.pulse { animation: cartPulse 0.3s ease-in-out; }

        .cart-count {
            position: absolute; top: -2px; right: -2px;
            background: var(--danger); color: white;
            font-size: 12px; font-weight: bold;
            min-width: 24px; height: 24px;
            border-radius: 50%; padding: 0 6px;
            display: flex; align-items: center; justify-content: center;
            border: 2px solid #fff;
        }

        @keyframes cartPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* --- OFFCANVAS PANIER --- */
        .cart-item {
            background: #fff; padding: 10px; border-radius: 12px;
            margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
            border: 1px solid transparent;
        }
        .cart-item-img {
            width: 50px; height: 50px; object-fit: cover;
            border-radius: 8px; background: #eee;
        }
        .qty-control {
            display: flex; align-items: center; gap: 5px;
            background: #f1f1f1; border-radius: 20px; padding: 2px;
        }
        .qty-btn {
            width: 24px; height: 24px; border-radius: 50%; border: none;
            background: transparent;
            font-weight: bold; display: flex; align-items: center; justify-content: center;
        }

        /* --- RESPONSIVE MOBILE --- */
        @media (max-width: 991px) {
            .top-banner { height: 150px; }

            .main-container {
                grid-template-columns: 1fr;
                margin-top: -75px;
                gap: 0;
                padding: 0;
            }
            .shop-sidebar {
                position: static; margin-bottom: 0;
                text-align: center;
                border-radius: 0 0 15px 15px;
                margin-top: 75px;
                padding: 20px 16px;
            }
            .shop-logo-wrapper {
                top: -75px;
                margin-top: 0;
                margin-bottom: -50px;
                width: 120px;
                height: 120px;
                margin-left: auto;
                margin-right: auto;
            }
            .shop-sidebar h1 {
                margin-bottom: 6px;
                font-size: 1.3rem;
            }
            .shop-sidebar > p {
                margin-bottom: 8px;
                font-size: 0.85rem;
            }
            .sidebar-section {
                text-align: left;
                margin-top: 12px;
                padding-top: 12px;
            }
            .sidebar-section:first-of-type {
                margin-top: 8px;
                padding-top: 8px;
            }
            .info-row {
                margin-bottom: 8px;
                font-size: 0.85rem;
            }
            .content-area { padding-top: 12px; padding-left: 16px; padding-right: 16px; }
            .offcanvas-end { width: 100% !important; }

            .nav-tabs-custom {
                flex-direction: row;
                gap: 4px;
                margin-bottom: 16px;
                flex-wrap: nowrap;
                align-items: center;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                border-bottom: none;
                padding-bottom: 0;
            }

            .nav-tabs-custom .ms-auto {
                margin-left: auto !important;
                width: auto;
                display: flex;
                flex-direction: row;
                gap: 3px;
                flex-wrap: nowrap;
                align-items: center;
            }
            
            .nav-tabs-custom .btn-auth {
                width: auto;
                font-size: 0.7rem;
                padding: 5px 7px;
                white-space: nowrap;
                border-radius: 15px;
            }
            
            .nav-tabs-custom .dropdown {
                width: auto;
            }
            
            .nav-tabs-custom .dropdown-toggle {
                width: auto;
                font-size: 0.7rem;
                padding: 5px 7px;
            }
            
            .nav-link-custom {
                font-size: 0.85rem;
                white-space: nowrap;
                padding: 8px 4px;
            }

            #tab-content-products{
                padding-bottom: 0 !important;
                margin-bottom: 0 !important;
                min-height: 0 !important;
            }

            .toolbar {
                flex-direction: column;
                align-items: stretch;
                margin-bottom: 8px;
                gap: 8px;
            }

            .search-box {
                max-width: none;
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 6px 10px;
                border: 1px solid #eee;
                border-radius: 8px;
                background: #fff;
            }

            .search-icon {
                position: static;
                transform: none;
                color: #aaa;
                pointer-events: none;
                font-size: 0.95rem;
                line-height: 1;
            }

            .search-input {
                padding: 0;
                border: none;
                background: transparent;
                flex: 1 1 auto;
                min-width: 0;
                outline: none;
                font-size: 0.9rem;
                line-height: 1.1;
            }

            .toolbar-controls {
                width: 100%;
                display: grid !important;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                justify-content: stretch;
                flex: 0 0 auto !important;
                margin-left: 0 !important;
                justify-content: normal !important;
                align-items: stretch !important;
            }

            .toolbar-controls .form-select,
            .toolbar-controls .btn {
                width: 100%;
            }

            .toolbar-controls .form-select{
                min-width: 0 !important;
            }

            .category-chips {
                flex-wrap: nowrap !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 2px;
                margin-bottom: 6px !important;
                margin-top: 0 !important;
                height: auto;
                min-height: 0;
                align-items: center;
                align-content: center;
            }

            .products-grid{
                margin-top: 0 !important;
                padding-top: 0 !important;
            }

            .prod-footer {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .prod-footer > div:first-child {
                display: flex;
                align-items: baseline;
                justify-content: space-between;
                width: 100%;
            }

            .btn-add-cart,
            .prod-footer button {
                width: 100%;
                justify-content: center;
            }

            .about-card { padding: 18px; }

            /* Images catalogue : couvrir sans marges blanches sur tablette */
            .prod-img-container { border-radius: 8px; overflow: hidden; }
            .prod-img { object-fit: cover; width: 100%; height: 100%; max-height: none; max-width: none; }

            .fab-cart { bottom: 16px; right: 14px; width: 54px; height: 54px; font-size: 22px; }

            .shipping-method-row { flex-wrap: wrap; }
            .shipping-method-row .badge { margin-top: 4px; white-space: normal; text-align: left; }
        }

        /* --- MOBILE SMALL (≤576px) --- */
        @media (max-width: 576px) {
            .top-banner { height: 110px; }

            .main-container { padding: 0; margin-top: -55px; }

            .shop-sidebar { padding: 16px; margin-bottom: 0; margin-top: 55px; }
            .shop-logo-wrapper {
                width: 96px; height: 96px;
                top: -55px; margin-bottom: -35px;
            }
            .shop-sidebar h1 {
                margin-bottom: 4px;
                font-size: 1.1rem;
            }
            .shop-sidebar > p {
                margin-bottom: 6px;
                font-size: 0.8rem;
            }
            .sidebar-section {
                margin-top: 8px;
                padding-top: 8px;
            }
            .sidebar-section:first-of-type {
                margin-top: 6px;
                padding-top: 6px;
            }
            .info-row {
                margin-bottom: 6px;
                font-size: 0.8rem;
            }

            .content-area { padding-left: 12px; padding-right: 12px; padding-top: 8px; }

            .nav-tabs-custom { 
                gap: 3px !important; 
                margin-bottom: 12px; 
                margin-left: -12px; 
                margin-right: -12px; 
                padding-left: 12px; 
                padding-right: 12px; 
                flex-direction: row !important; 
                flex-wrap: nowrap !important; 
                overflow-x: auto; 
                border-bottom: none;
                align-items: center !important;
            }
            .nav-link-custom { 
                font-size: 1rem; 
                padding-right: 10px !important; 
                white-space: nowrap; 
                flex-shrink: 0;
                min-width: auto;
            }
            
            .nav-tabs-custom .ms-auto {
                gap: 3px !important;
                flex-wrap: nowrap !important;
                flex-shrink: 0;
                min-width: auto;
            }
            
            .nav-tabs-custom .btn-auth {
                font-size: 0.65rem;
                padding: 4px 5px !important;
                white-space: nowrap;
                flex-shrink: 0;
                min-width: auto;
            }
            
            .nav-tabs-custom .dropdown {
                flex-shrink: 0;
                min-width: auto;
            }
            
            .nav-tabs-custom .dropdown-toggle {
                font-size: 0.65rem;
                padding: 4px 5px !important;
            }

            .about-card { padding: 14px; border-radius: 10px; }

            .product-card { padding: 8px; }
            .prod-img-container { height: 120px; margin-bottom: 8px; border-radius: 8px; overflow: hidden; }
            .prod-img { object-fit: cover; width: 100%; height: 100%; max-height: none; max-width: none; }

            .fab-cart { bottom: 12px; right: 10px; width: 50px; height: 50px; font-size: 20px; }
            .cart-count { min-width: 20px; height: 20px; font-size: 10px; }

            .toolbar-controls { grid-template-columns: 1fr; }

            /* Modal produit plein écran sur mobile */
            #productModal .modal-dialog { margin: 0; max-width: 100%; height: 100%; max-height: 100%; }
            #productModal .modal-content {
                border-radius: 0 !important;
                height: 100%;
                overflow: hidden;        /* plus d'overflow-y ici */
                display: flex;
                flex-direction: column;
            }
            #productModal .modal-content > .row {
                flex: 1 1 0;
                min-height: 0;
                overflow: hidden;
                flex-direction: column !important;
                flex-wrap: nowrap !important;
            }
            /* Image : hauteur fixe */
            #productModal .col-md-6:first-child {
                flex: 0 0 auto !important;
                min-height: 200px !important;
                max-height: 220px !important;
                height: 220px;
                overflow: hidden;
            }
            /* Colonne droite : prend le reste, scroll interne */
            #productModal .col-md-6:last-child {
                flex: 1 1 0 !important;
                min-height: 0 !important;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            /* Description scrollable, bouton toujours visible */
            #productModal .modal-body {
                flex: 1 1 0;
                min-height: 0;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            #productModal .modal-footer { flex-shrink: 0; }
        }
        .nav-tabs-custom .dropdown-toggle::after { display: none; }
        .nav-tabs-custom .btn-auth { font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; transition:0.2s; }
        .nav-tabs-custom .btn-auth:hover { transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .nav-tabs-custom .btn-auth-outline { border: 1px solid #ddd; color: var(--text-dark); background: white; }
        .nav-tabs-custom .btn-auth-primary { background: var(--primary-green); color: white; border: none; }
        .modal-content { border-radius: 1rem; overflow: hidden; }
        .range-slider { width: 100%; margin: 10px 0; }
        
        .product-card { cursor: pointer; transition: transform 0.2s; }
        .product-card:hover { transform: translateY(-3px); }
        
        .btn-add-cart { z-index: 5; position: relative; }

        .badge-promo {
            position: absolute; top: 10px; left: 10px;
            background: #ffc107; color: #000;
            padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700;
            z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }

        .about-card { background: white; border-radius: 12px; padding: 25px; border: 1px solid #f0f0f0; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
        .about-icon { width: 40px; height: 40px; background: rgba(59, 183, 126, 0.1); color: var(--primary-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; font-size: 1.2rem; }

        /* Shipping rows in À propos */
        .shipping-method-row {
            border: 1px solid #e8ecf0;
            border-radius: 10px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .shipping-method-icon {
            width: 40px; height: 40px; border-radius: 50%;
            background: rgba(59,183,126,0.1);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        
        .nav-link-custom { cursor: pointer; font-weight: 600; color: #6c757d; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: all 0.2s; }
        .nav-link-custom:hover { color: var(--primary-green); }
        .nav-link-custom.active { color: var(--text-dark); border-bottom-color: var(--primary-green); }
        
        /* LOGO CORRECTIF */
        .shop-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            object-fit: contain;
        }
/* Forcer le style des boutons d'auth à passer devant Bootstrap */
.btn.btn-auth-outline {
    border: 1px solid #ddd;
    color: var(--text-dark);
    background: #fff;
}

.btn.btn-auth-primary {
    background: var(--primary-green);
    color: #fff;
    border: none;
}

        .mc-footer {
            width: 100%;
            padding: 16px 0;
            margin-top: 40px;
            background: #fff;
            color: rgba(33, 37, 41, 0.8);
            border-top: 1px solid rgba(0, 0, 0, 0.06);
        }

        .mc-footer-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .mc-footer-row {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 16px;
        }

        .mc-footer-links-inline {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: nowrap;
        }

        .mc-footer-sep {
            color: rgba(33, 37, 41, 0.35);
            font-weight: 700;
        }

        .mc-footer-link {
            color: rgba(33, 37, 41, 0.82);
            text-decoration: none;
            font-size: 0.88rem;
            font-weight: 700;
            width: fit-content;
        }

        .mc-footer-link:hover {
            color: var(--primary-green);
            text-decoration: underline;
        }

        .mc-footer-powered {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 0.88rem;
            font-weight: 700;
            color: rgba(33, 37, 41, 0.65);
            white-space: nowrap;
        }

        .mc-footer-powered-link {
            display: inline-flex;
            align-items: center;
        }

        .mc-footer-logo {
            height: 16px;
            width: auto;
            display: block;
        }

        .mc-footer-copy {
            justify-self: end;
            color: rgba(33, 37, 41, 0.55);
            font-size: 0.82rem;
            font-weight: 700;
        }

        @media (max-width: 991px) {
            .mc-footer-row {
                grid-template-columns: 1fr;
                justify-items: center;
                text-align: center;
                gap: 8px;
            }

            .mc-footer-links-inline{
                flex-direction: column;
                gap: 6px;
            }

            .mc-footer-sep{
                display: none;
            }

            .mc-footer-copy {
                justify-self: center;
            }
        }
