:root {
    --primary: #C48B71;          /* Rose terracotta doux / nude chic */
    --primary-dark: #A96E56;
    --primary-light: #F7EFE9;
    --dark: #231F20;             /* Noir doux / charbon */
    --gray: #666666;
    --light-gray: #F5F3F0;
    --border: #E8E2DC;
    --white: #FFFFFF;
    
    /* Statuts */
    --status-stock-bg: #EAF7EE;
    --status-stock-color: #238636;
    --status-preorder-bg: #FFF4E5;
    --status-preorder-color: #C05621;

    --font-heading: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    --radius: 10px;
    --transition: all 0.25s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #FDFCFA;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TOP BANNER */
.top-banner {
    background: var(--dark);
    color: var(--primary-light);
    text-align: center;
    padding: 8px 15px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* HEADER */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 100%;                  /* Supprime la restriction des 1200px */
    padding: 12px 40px;               /* Espacement équilibré sur les bords */
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* 1. Bloc Gauche : Logo */
.brand-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 1;                          /* Occupe son tiers gauche */
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--primary);
    font-weight: 600;
}

/* 2. Bloc Centre : Navigation parfaitement centrée */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex: 2;                          /* Occupe le centre de l'écran */
}

.nav-item {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-item:hover {
    color: var(--primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* 3. Bloc Droite : Panier */
.header-actions {
    flex: 1;                          /* Occupe son tiers droit */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-btn {
    position: relative;
    background: var(--primary-light);
    border: none;
    padding: 10px 14px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--dark);
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.04);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adaptation sur tablette et mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 18px;
    }
    .brand-name {
        font-size: 1.3rem;
    }
    .nav-links {
        gap: 15px;
    }
}

/* ==========================================
   RUBAN DÉFILANT CONTINU PLEIN ÉCRAN (MARQUEE)
   ========================================== */
.marquee-section {
    width: 100%;
    background: #FAF6F0;
    border-bottom: 1px solid var(--border);
    padding: 12px 0 16px;
    overflow: hidden;
}

.marquee-header {
    width: 100%;
    padding: 0 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-dark);
    text-transform: uppercase;
}

/* .marquee-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2E7D32;
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
    animation: pulseGlow 1.8s infinite;
} */

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(46, 125, 50, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

.marquee-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fondu progressif et élégant sur les deux côtés de l'écran */
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

/* Piste des cartes uniques sans doublon */
.marquee-track {
    display: flex;
    gap: 22px;
    width: max-content;
    /* Traversée fluide de droite à gauche */
    animation: marqueePassage 15s linear infinite;
    will-change: transform;
    padding: 6px 0;
}

/* Pause instantanée au survol de la souris */
.marquee-viewport:hover .marquee-track {
    animation-play-state: paused;
}


@keyframes marqueePassage {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 16px 6px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    min-width: 270px;
}

.marquee-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196, 139, 113, 0.18);
}

.marquee-card-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-gray);
}

.marquee-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.marquee-card-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
}

.marquee-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #D48B38;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marquee-card-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.marquee-card-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.marquee-card-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.marquee-card:hover .marquee-card-add {
    background: var(--dark);
    color: var(--white);
    transform: scale(1.08);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 50px 20px 30px;
    background: radial-gradient(circle at center, #FFF9F5 0%, #FDFCFA 100%);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* FILTRES DU CATALOGUE */
.filter-wrapper {
    width: 100%;
    max-width: 100%;             /* Supprime la bride des 1200px */
    margin: 25px auto 15px;
    padding: 0 40px;             /* Aligné avec le header */
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.sub-filter-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.sub-filter-btn {
    background: transparent;
    border: 1px dashed var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.sub-filter-btn:hover,
.sub-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-style: solid;
}

/* GRILLE DE PRODUITS 100% PLEINE LARGEUR */
.products-grid {
    width: 100%;
    max-width: 100%;             /* Occupe tout l'espace de l'écran */
    margin: 0 auto 80px;
    padding: 0 40px;             /* Aligné parfaitement avec le logo et le panier */
    display: grid;
    /* Génère automatiquement 4, 5 ou 6 colonnes selon la largeur de votre écran */
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* FOOTER PLEIN ÉCRAN */
.main-footer .footer-container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

/* Adaptation petits écrans */
@media (max-width: 768px) {
    .filter-wrapper,
    .products-grid,
    .main-footer .footer-container {
        padding: 0 16px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

/* CONTENEUR DE L'IMAGE ET DU SLIDER */
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: var(--light-gray);
    overflow: hidden;
}

/* Piste coulissante du carousel */
.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slider-track .product-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zoom délicat uniquement pour les produits à image unique */
.product-card:hover .product-img-wrapper:not(.has-slider) .product-img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* FLÈCHES DE NAVIGATION DU SLIDER */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 4;
}

.slider-arrow-prev {
    left: 8px;
}

.slider-arrow-next {
    right: 8px;
}

/* Apparition au survol de la carte */
.product-img-wrapper:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
}

.slider-arrow:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* POINTS INDICATEURS (DOTS) */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    border-radius: 20px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-light);
    width: 16px;
    border-radius: 10px;
}

/* Accessibilité sur écrans tactiles */
@media (hover: none) {
    .slider-arrow {
        opacity: 0.8;
        visibility: visible;
    }
}

/* BADGES DE DISPONIBILITÉ */
.badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.badge-in-stock {
    background: var(--status-stock-bg);
    color: var(--status-stock-color);
    border: 1px solid #c3e6cb;
}

.badge-on-demand {
    background: var(--status-preorder-bg);
    color: var(--status-preorder-color);
    border: 1px solid #ffeeba;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-desc {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--light-gray);
    padding-top: 12px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

/* BOUTONS */
.btn {
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary);
}

.btn-block {
    width: 100%;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1EBE5D;
}

.btn-add-cart {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-add-cart:hover {
    background: var(--primary);
    color: var(--white);
}

/* TIROIR LATÉRAL DU PANIER */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}

.cart-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--gray);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.cart-item-tag {
    font-size: 0.72rem;
    color: var(--primary-dark);
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 600;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    background: var(--light-gray);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--light-gray);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* MODALES */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--white);
    max-width: 480px;
    width: 100%;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.token-banner {
    background: var(--primary-light);
    border: 1px dashed var(--primary);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.token-banner strong {
    display: block;
    font-size: 1.6rem;
    color: var(--dark);
    letter-spacing: 2px;
    margin-top: 5px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* FOOTER */
.main-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
}