/* ============================================
   NIRAMARKET.COM - ULTRA PREMIUM DESIGN
   Version: 2.0 | Unique & Professionnel
   ============================================ */

/* Import Google Fonts Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ========== VARIABLES MODERNES ========== */
:root {
    /* Couleurs principales - Dégradés uniques */
    --primary-1: #667eea;
    --primary-2: #764ba2;
    --primary-3: #f093fb;
    --primary-4: #f5576c;
    
    /* Dégradés premium */
    --gradient-primary: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-3) 0%, var(--primary-4) 100%);
    --gradient-dark: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
    --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    
    /* Couleurs fonctionnelles */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Mode clair */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Mode sombre élégant */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== ANIMATIONS UNIQUES ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* ========== SCROLLBAR PERSONNALISÉE ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
}

/* ========== HEADER GLASS MORPHISM ========== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

/* ========== RECHERCHE PREMIUM ========== */
.search-container {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-1);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-container button:hover {
    color: var(--primary-2);
    transform: translateY(-50%) scale(1.1);
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    margin-top: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border-color);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.suggestion-item img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

/* ========== ICONES HEADER ========== */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    position: relative;
    color: var(--text-primary);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.icon-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.icon-link .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.whatsapp-header {
    background: #25D366;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-header:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* ========== HERO SECTION EPIC ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 100px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: slideInLeft 0.6s ease;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: slideInLeft 0.8s ease;
}

.hero .highlight {
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideInLeft 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInLeft 1.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    animation: slideInRight 1s ease;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* ========== SECTIONS ========== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 15px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto;
    border-radius: 2px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.divider::before {
    left: -15px;
}

.divider::after {
    right: -15px;
}

/* ========== CATÉGORIES CARTES MAGNIFIQUES ========== */
.category-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: 0;
}

.category-card:hover::before {
    left: 0;
}

.category-card i,
.category-card h4,
.category-card small {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card i {
    font-size: 3.5rem;
    color: var(--primary-1);
    margin-bottom: 20px;
}

.category-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.category-card small {
    color: var(--text-muted);
}

.category-card:hover i,
.category-card:hover h4,
.category-card:hover small {
    color: white !important;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ========== PRODUITS CARTES 3D ========== */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-new,
.badge-popular {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: bottom 0.3s ease;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.action-btn.active {
    background: #ef4444;
    color: white;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ========== PROMO BANNER STUNNING ========== */
.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '🎁';
    position: absolute;
    font-size: 300px;
    opacity: 0.1;
    right: -50px;
    top: -50px;
}

.promo-banner::after {
    content: '✨';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    left: -50px;
    bottom: -50px;
}

.promo-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 800;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* ========== FOOTER PREMIUM ========== */
footer {
    background: var(--gradient-dark);
    color: white;
    padding: 60px 0 0;
    position: relative;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: white;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

footer h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    width: 25px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

/* ========== PANIER STYLES ========== */
.cart-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cart-item-price {
    color: var(--primary-1);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.cart-summary {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
}

.summary-item.total {
    font-size: 1.3rem;
    font-weight: 800;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

/* ========== FILTRES ========== */
.filters-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 90px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-select,
.form-control {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========== DARK MODE TOGGLE ========== */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(360deg);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ========== TOAST NOTIFICATION ========== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 10000;
    animation: slideUp 0.3s ease;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ========== LOADING ========== */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        margin-top: 50px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .search-container {
        width: 100%;
        margin: 15px 0;
    }
    
    .header-icons {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .filters-card {
        position: static;
        margin-bottom: 30px;
    }
    
    .category-card {
        padding: 25px 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .product-actions {
        bottom: 0;
    }
}

/* ========== ANIMATIONS SCROLL ========== */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ========== GLASS EFFECT ========== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== PRIX STYLES ========== */
.price-tag {
    display: inline-block;
    background: var(--gradient-primary);
    padding: 5px 15px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
}

/* ========== BADGES ========== */
.stock-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.stock-in {
    background: #10b981;
    color: white;
}

.stock-low {
    background: #f59e0b;
    color: white;
}

.stock-out {
    background: #ef4444;
    color: white;
}
/* ========== SYSTÈME DE COMMENTAIRES AVANCÉ ========== */
.comments-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.comments-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.comments-header h3 i {
    color: #f59e0b;
    margin-right: 10px;
}

.comments-count {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-form-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.rating-input {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #f59e0b;
}

.comment-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.comment-item {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.comment-item:hover {
    transform: translateX(5px);
    border-color: #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.author-info .comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-rating {
    color: #f59e0b;
    font-size: 0.9rem;
}

.comment-content {
    margin-left: 57px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-actions {
    margin-top: 12px;
    margin-left: 57px;
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.comment-actions button:hover {
    color: #667eea;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
}

.comment-success {
    background: #10b981;
    color: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination commentaires */
.comments-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Badge vérifié */
.verified-badge {
    background: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Réponse admin */
.admin-reply {
    background: var(--bg-secondary);
    border-left: 3px solid #667eea;
    padding: 12px 15px;
    margin-top: 12px;
    margin-left: 57px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ========== THREAD DE COMMENTAIRES ========== */
.replies-container {
    margin-top: 15px;
    border-left: 2px solid #e2e8f0;
    margin-left: 20px;
    padding-left: 20px;
}

.comment-item {
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.comment-item:hover {
    transform: translateX(3px);
}

.reply-btn, .share-btn, .report-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.reply-btn:hover, .share-btn:hover {
    background: #f1f5f9;
    color: #667eea;
}

.report-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.like-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.like-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #10b981;
}

.like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.user-badge {
    display: inline-block;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 20px;
    color: white;
    margin-left: 8px;
}

.user-badge i {
    font-size: 9px;
    margin-right: 3px;
}

/* Animation pour les nouveaux commentaires */
@keyframes highlightNew {
    0% { background: #fef3c7; transform: scale(1.02); }
    100% { background: transparent; transform: scale(1); }
}

.comment-item {
    animation: highlightNew 0.5s ease-out;
}

/* Badge admin dans les réponses */
.verified-badge i {
    margin-right: 3px;
}

/* Profondeur de discussion */
.comment-item[data-depth="3"] {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 10px;
}

/* ============================================
   RESPONSIVE DESIGN UNIVERSEL
   Compatible avec TOUS les appareils
   ============================================ */

/* Variables globales */
:root {
    --mobile-breakpoint: 576px;
    --tablet-breakpoint: 768px;
    --desktop-breakpoint: 992px;
    --large-breakpoint: 1200px;
    --xlarge-breakpoint: 1400px;
}

/* Reset pour tous les appareils */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Smooth scroll universel */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Images responsives */
img, video, iframe {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========== TRÈS PETITS ÉCRANS (MOBILES < 576px) ========== */
@media (max-width: 576px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.6rem !important;
    }
    
    .section-padding {
        padding: 40px 0 !important;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-image {
        height: 180px !important;
    }
    
    .product-info {
        padding: 12px !important;
    }
    
    .product-name {
        font-size: 0.95rem !important;
    }
    
    .product-price {
        font-size: 1.1rem !important;
    }
    
    /* Menu mobile */
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    /* Catégories mobiles */
    .category-card {
        padding: 15px !important;
    }
    
    .category-card i {
        font-size: 2rem !important;
    }
    
    .category-card h4 {
        font-size: 0.9rem !important;
    }
    
    /* Panier mobile */
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100px !important;
        margin: 0 auto;
    }
    
    .cart-item-quantity {
        justify-content: center;
    }
    
    /* Filtres mobiles */
    .filters-card {
        position: static !important;
        margin-bottom: 20px;
    }
    
    /* Footer mobile */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Back to top */
    .back-to-top, .dark-mode-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

/* ========== MOYENS ÉCRANS (TABLETTES 577px - 768px) ========== */
@media (min-width: 577px) and (max-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .section-header h2 {
        font-size: 2rem !important;
    }
    
    .product-image {
        height: 220px !important;
    }
    
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Grille responsive */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-md-6, .col-lg-4, .col-lg-3 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ========== GRANDS ÉCRANS (DESKTOP 769px - 1200px) ========== */
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
    }
}

/* ========== TRÈS GRANDS ÉCRANS (4K, TV > 1400px) ========== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    body {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 4.5rem !important;
    }
    
    .section-header h2 {
        font-size: 3rem !important;
    }
    
    .product-image {
        height: 320px !important;
    }
    
    .btn {
        padding: 14px 36px !important;
        font-size: 1.1rem !important;
    }
}

/* ========== ÉCRANS LANDSCAPE (MOBILE HORIZONTAL) ========== */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding: 50px 0 !important;
    }
    
    .hero h1 {
        font-size: 1.4rem !important;
    }
    
    .section-padding {
        padding: 30px 0 !important;
    }
}

/* ========== TÉLÉPHONES PLIABLES ========== */
@media (max-width: 280px) {
    .hero h1 {
        font-size: 1.2rem !important;
    }
    
    .product-name {
        font-size: 0.8rem !important;
    }
    
    .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ========== IMPRESSION ========== */
@media print {
    header, footer, .dark-mode-toggle, .back-to-top, .whatsapp-header {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========== AMÉLIORATIONS TOUCH POUR MOBILE ========== */
@media (hover: none) and (pointer: coarse) {
    button, .btn, .nav-link, .product-card, .category-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    button:active, .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Empêche zoom automatique sur iOS */
    }
}

/* ========== SCROLLBAR PERSONNALISÉE (Desktop seulement) ========== */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-tertiary);
        border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-1);
        border-radius: 10px;
    }
}

/* ========== RÉSEAUX LENTS (Réduction de qualité) ========== */
@media (prefers-reduced-data: reduce) {
    img, video {
        filter: blur(0) !important;
    }
}

/* ========== PRÉFÉRENCES D'ANIMATION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fonts responsives */
html {
    font-size: 16px;
}

@media (max-width: 576px) {
    html { font-size: 14px; }
}

@media (min-width: 1400px) {
    html { font-size: 18px; }
}

/* Fluid typography */
h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

p, li, a {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* WhatsApp flottant responsive */
.float-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

@media (max-width: 768px) {
    .float-whatsapp {
        bottom: 15px;
        left: 15px;
    }
    .float-whatsapp a {
        width: 50px !important;
        height: 50px !important;
    }
}

.float-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.float-whatsapp a:hover {
    transform: scale(1.1);
}

/* ========== CORRECTION DARK MODE NAVBAR ========== */
[data-theme="dark"] header {
    background: #1e293b !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .navbar .nav-link {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .navbar .nav-link:hover {
    color: #667eea !important;
}

[data-theme="dark"] .navbar .nav-link.active {
    color: #667eea !important;
    font-weight: bold;
}

[data-theme="dark"] .navbar-toggler {
    background-color: #334155;
    border: none;
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

[data-theme="dark"] .search-input {
    background-color: #334155;
    color: white;
    border-color: #475569;
}

[data-theme="dark"] .search-input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .icon-link {
    background-color: #334155;
    color: white;
}

[data-theme="dark"] .logo {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

[data-theme="dark"] .logo span {
    color: #667eea !important;
    -webkit-text-fill-color: #667eea !important;
}

/* ========== POLICES LOCALES ========== */
/* Fallback si Google Fonts est bloqué */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, sans-serif;
}

/* Police personnalisée en local */
@font-face {
    font-family: 'NiraFont';
    src: local('Arial'), local('Helvetica');
    font-weight: normal;
}

h1, h2, h3, h4 {
    font-family: 'NiraFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ========== BOUTONS FAVORIS ========== */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 2;
    color: #ccc;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ef4444;
    background: white;
}

.favorite-btn.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.favorite-btn i {
    pointer-events: none;
}
