* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --secondary-color: #221f1f;
    --accent-color: #f5f5f1;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #221f1f;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding-top: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navigation */
.navbar {
    position: fixed;
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--accent-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--text-white) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-login:hover {
    background-color: #b20710;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000 100%);
    color: var(--text-white);
    padding: 8rem 0 5rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider svg path {
    fill: var(--bg-light);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #b20710;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card.coming-soon {
    opacity: 0.7;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.service-status.available {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.service-status.soon {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--text-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-description {
    color: rgba(245, 245, 241, 0.8);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(245, 245, 241, 0.8);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(245, 245, 241, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .services,
    .features {
        padding: 3rem 0;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/*@media (max-width: 450px) {*/
/*  html {*/
/*    font-size: 90%;*/
/*  }*/
/*}*/

@media (max-width:991px) {
    html {
    font-size: 85%;
  }
}

/* =========================
   DASHBOARD CLIENT
========================= */

.dashboard {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

/* Sidebar */
.dashboard-sidebar {
    background: var(--text-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.dashboard-title {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.dashboard-menu {
    list-style: none;
}

.dashboard-menu li {
    padding: 0.7rem 0;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.dashboard-menu li:hover,
.dashboard-menu li.active {
    color: var(--primary-color);
}

.menu-section {
    margin-top: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: default;
}

/* Content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dash-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.dash-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Sections */
.dashboard-section {
    background: var(--text-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.simple-list {
    list-style: none;
}

.simple-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

.dash-page {
    display: none;
}

.dash-page.active {
    display: block;
}

.affiliate-input {
    width: 100%;
    padding: 0.8rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
}

/* =========================
   WISHLIST HEART BUTTON
========================= */

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Style quand le coeur est sélectionné (liké) */
.wishlist-btn.active {
    background: var(--primary-color);
    color: white;
}

.wishlist-btn.active i {
    font-weight: 900; /* Coeur plein */
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}


/* =========================
   STICKY FILTER CONTAINER CORRIGÉ
========================= */

.sticky-filter-container {
    position: -webkit-sticky;
    position: sticky;
    top: 60px; /* Hauteur de votre navbar */
    z-index: 990;
    background: white;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-top: 0; /* Enlever le margin-top */
}

/* Version au scroll */
.sticky-filter-container.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

.sticky-filter-container.scrolled .main-categories {
    display: flex;
    justify-content: center;
    gap: 0 !important;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 3px;
    width: fit-content;
    margin: 0 auto !important;
}

.sticky-filter-container.scrolled .main-category-btn {
    width: auto !important;
    height: auto !important;
    border-radius: 50px !important;
    padding: 6px 15px !important;
    background: transparent;
    border: none !important;
    box-shadow: none;
    flex-direction: row;
    gap: 5px;
}

.sticky-filter-container.scrolled .main-category-btn.active {
    background: var(--primary-color) !important;
    color: white;
}

.sticky-filter-container.scrolled .main-category-btn i {
    font-size: 1rem !important;
    margin-bottom: 0;
}

.sticky-filter-container.scrolled .main-category-btn span {
    font-size: 0.85rem !important;
}

.sticky-filter-container.scrolled .main-category-btn small {
    display: none;
}

.sticky-filter-container.scrolled .sub-categories {
    margin: 8px 0 0 !important;
}

.shop-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/shop-bg.jpg'); /* Ajoute une image sombre en fond */
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    /*margin-top: 100px;*/
    padding: 12rem 0 4rem;
    text-align: center;
    color: white;
}

.shop-hero h1 {
    font-size: 3rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* Correction pour les catégories principales - les rendre plus visibles */
.main-categories {
    display: flex;
    justify-content: center;
    margin: 1rem 0 !important;
    gap: 1.5rem !important;
    flex-wrap: wrap;
}

.main-category-btn {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border: 1px solid #eee; /* Plus fin que 3px */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.main-category-btn:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

/* Indicateur actif plus élégant */
.main-category-btn.active {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.15);
}

.main-category-btn i {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.main-category-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

.main-category-btn span {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.main-category-btn small {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Correction pour les sous-catégories */
.sub-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.sub-cat-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    color: var(--secondary-color);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.sub-cat-btn:hover,
.sub-cat-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Compteur de produits */
.product-count {
    text-align: center;
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 50px;
    display: inline-block;
    padding: 8px 30px;
}

/* Message quand aucun produit */
.no-products-message {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    margin: 2rem 0;
}

.no-products-message i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-products-message p {
    font-size: 1.3rem;
    color: #666;
}

.no-products-message .btn-add {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
}

.no-products-message .btn-add:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

/* Correction du grid des produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

/* Correction des cartes produits */
.product-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-img {
    height: 220px;
    background: #fdfdfd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Badge plus moderne */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
    text-transform: uppercase;
}

.product-badge.popilè { background: #ff9800; color: white; }
.product-badge.nouvo { background: var(--success-color); color: white; }
.product-badge.promo { background: var(--primary-color); color: white; }

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info .category {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Typographie des infos */
.product-info h3 {
    font-size: 1rem;
    height: 2.4rem; /* Fixe la hauteur pour aligner les boutons */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info .price {
    background: #f8f9fa;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 1.2rem;
}
.btn-buy {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px; /* Bords arrondis pour un look plus moderne */
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

/* Effet de survol (Hover) */
.btn-buy:hover {
    background: var(--primary-color);
    transform: translateY(-3px); /* Le bouton s'élève légèrement */
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

/* Effet au clic (Active) */
.btn-buy:active {
    transform: translateY(-1px); /* Redescend un peu quand on appuie */
}

/* Style de l'icône du panier */
.btn-buy i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-buy:hover i {
    transform: scale(1.2); /* L'icône grossit un peu au survol */
}

/* État désactivé (Hors stock) */
.btn-buy:disabled {
    background: #d1d1d1;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .main-category-btn {
        width: 140px;
        height: 140px;
    }
    
    .main-category-btn i {
        font-size: 2.5rem;
    }
    
    .main-category-btn span {
        font-size: 1rem;
    }
    
    .main-category-btn small {
        font-size: 0.7rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-categories {
        gap: 1rem;
    }
    
    .main-category-btn {
        width: 100px;
        height: 100px;
    }
    
    .main-category-btn i {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .main-category-btn span {
        font-size: 0.8rem;
    }
    
    .main-category-btn small {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0 5px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
    
    .product-info .price {
        font-size: 1.1rem;
    }
    
    .btn-buy {
        padding: 10px 15px;
        font-size: 0.75rem;
        gap: 8px;
    }

    .btn-buy i {
        font-size: 0.9rem;
    }
}

