/* ELNUMIS - Design sobre et élégant */
:root {
    --primary: #1a1a1a;
    --primary-light: #333;
    --accent: #c9a962;
    --accent-hover: #b8954d;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --border: #e0e0e0;
    --bg: #ffffff;
    --bg-light: #fafafa;
    --success: #2e7d32;
    --danger: #c62828;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 0;
    --radius-lg: 0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ==================== MODE SOMBRE ==================== */
/* Utiliser les deux sélecteurs pour plus de compatibilité */
html.theme-dark,
html[data-theme="dark"] {
    --primary: #0a0a0a;
    --primary-light: #1f1f1f;
    --accent: #d4b872;
    --accent-hover: #e5c983;
    --text: #f0f0f0;
    --text-light: #d0d0d0;
    --text-muted: #909090;
    --border: #404040;
    --bg: #0f0f0f;
    --bg-light: #1a1a1a;
    --success: #66bb6a;
    --danger: #ef5350;
    --shadow: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
    color-scheme: dark;
}

/* Body dark */
html.theme-dark body,
html[data-theme="dark"] body {
    background-color: #0f0f0f !important;
    color: #f0f0f0 !important;
}

/* Top bar dark */
html.theme-dark .top-bar,
html[data-theme="dark"] .top-bar {
    background-color: #0a0a0a !important;
}

/* Header dark */
html.theme-dark .header,
html[data-theme="dark"] .header {
    background-color: #0f0f0f !important;
    border-bottom-color: #404040 !important;
}

/* Nav dark */
html.theme-dark .main-nav,
html[data-theme="dark"] .main-nav {
    background-color: #1a1a1a !important;
    border-bottom-color: #404040 !important;
}

html.theme-dark .main-nav a,
html[data-theme="dark"] .main-nav a {
    color: #d0d0d0 !important;
}

html.theme-dark .main-nav a:hover,
html[data-theme="dark"] .main-nav a:hover {
    color: #d4b872 !important;
}

/* Footer dark */
html.theme-dark .footer,
html[data-theme="dark"] .footer {
    background-color: #0a0a0a !important;
}

/* Inputs dark */
html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
    border-color: #404040 !important;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #707070 !important;
}

/* Cards et boxes dark */
html.theme-dark .product-card,
html.theme-dark .card,
html.theme-dark .box,
html.theme-dark .panel,
html.theme-dark .form-section,
html.theme-dark .account-sidebar,
html.theme-dark .empty-state,
html.theme-dark .stat-card,
html.theme-dark .sidebar-widget,
html.theme-dark .faq-item,
html.theme-dark .article-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .box,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .account-sidebar,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .sidebar-widget,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .article-card {
    background-color: #1a1a1a !important;
    border-color: #404040 !important;
}

/* Search bar dark */
html.theme-dark .search-bar input[type="search"],
html.theme-dark .search-category,
html[data-theme="dark"] .search-bar input[type="search"],
html[data-theme="dark"] .search-category {
    background-color: #1a1a1a !important;
    border-color: #404040 !important;
    color: #f0f0f0 !important;
}

/* Links dark */
html.theme-dark a,
html[data-theme="dark"] a {
    color: #d0d0d0;
}

html.theme-dark a:hover,
html[data-theme="dark"] a:hover {
    color: #d4b872;
}

/* Headings dark */
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f0f0f0 !important;
}

/* Btn outline dark */
html.theme-dark .btn-outline,
html[data-theme="dark"] .btn-outline {
    border-color: #505050 !important;
    color: #f0f0f0 !important;
    background: transparent !important;
}

html.theme-dark .btn-outline:hover,
html[data-theme="dark"] .btn-outline:hover {
    background-color: #252525 !important;
}

/* Metal price widget dark */
html.theme-dark .metal-price,
html[data-theme="dark"] .metal-price {
    background-color: #1a1a1a !important;
}

/* Images opacity */
html.theme-dark img,
html[data-theme="dark"] img {
    opacity: 0.95;
}
/* ==================== FIN MODE SOMBRE ==================== */

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP BAR */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
    letter-spacing: 0.3px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a { color: rgba(255,255,255,0.8); margin-left: 20px; }
.top-bar a:hover { color: #fff; }

.theme-toggle { 
    background: transparent; 
    border: none; 
    font-size: 16px; 
    cursor: pointer; 
    padding: 4px 8px; 
    margin-left: 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.theme-toggle:hover { opacity: 1; }

.top-bar-right { display: flex; align-items: center; }

/* HEADER */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon { font-size: 28px; }
.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-actions {
    flex-shrink: 0;
}

/* SEARCH */
.search-bar {
    flex: 1;
    display: flex;
    max-width: none;
}

.search-category {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--bg);
    font-size: 14px;
    color: var(--text);
    min-width: 160px;
    cursor: pointer;
    flex-shrink: 0;
}

.search-bar input[type="search"] {
    flex: 1 1 auto;
    padding: 14px 24px;
    border: 2px solid var(--border);
    border-left: none;
    border-right: none;
    font-size: 16px;
    outline: none;
    min-width: 340px;
    width: 100%;
    background: var(--bg);
    color: var(--text);
}

.search-bar input[type="search"]:focus { 
    border-color: var(--accent); 
}

.search-bar input[type="search"]::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-bar button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* METAL PRICES WIDGET */
.metal-prices-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.metal-prices-widget .widget-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.metal-prices-widget .widget-title:hover {
    color: var(--accent);
}

.metal-prices-list { display: flex; gap: 8px; }

.metal-price-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.metal-icon { font-size: 12px; }
.metal-name { font-weight: 500; color: var(--text-light); }
.metal-price { font-weight: 600; color: var(--text); font-size: 11px; }
.metal-change { font-size: 9px; font-weight: 600; }
.metal-change.up { color: var(--success); }
.metal-change.down { color: var(--danger); }
.metal-update { display: none; }

/* MAIN NAV */
.main-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-menu li { position: relative; }

.nav-menu a {
    display: block;
    padding: 14px 18px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-menu a.highlight {
    color: var(--accent);
}

/* ALERTS */
.alert {
    padding: 14px 20px;
    margin: 20px auto;
    max-width: 1280px;
    font-size: 13px;
    border-radius: var(--radius);
}

.alert-success { background: #e8f5e9; color: var(--success); }
.alert-error { background: #ffebee; color: var(--danger); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

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

/* HERO */
.hero {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero p {
    font-size: 15px;
    opacity: 0.85;
    margin: 0 0 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

.hero-stats .stat { text-align: left; }

.hero-stats strong {
    display: block;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero-stats span {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

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

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

.hero .btn-secondary {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* SECTIONS */
.section {
    padding: 50px 0;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.3px;
}

.metal-spot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.spot-price { font-weight: 600; }
.spot-change.up { color: var(--success); }
.spot-change.down { color: var(--danger); }

.view-all {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.view-all:hover { color: var(--accent); }

.section-gold, .section-silver { background: var(--bg-light); }

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: var(--text-muted);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-light);
    overflow: hidden;
}

/* Système hover double image */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image img.img-primary {
    position: relative;
    z-index: 2;
}

.product-image img.img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
}

.product-card:hover .product-image img.img-primary {
    opacity: 0;
}

.product-card:hover .product-image img.img-secondary {
    opacity: 1;
}

/* Fallback pour images sans classe (ancienne structure) */
.product-image img:only-child {
    position: relative;
}

.product-card:hover .product-image img:only-child {
    opacity: 1;
}

.product-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 40px;
    color: var(--border);
}

.time-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 500;
}

.time-badge.urgent {
    background: var(--danger);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-auction { background: var(--accent); color: #fff; }

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--accent); }

.product-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-price .current-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.product-price .bid-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* CATEGORIES - FLEXBOX MULTI-LINE BALANCED */
.section-categories {
    background: var(--bg);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-categories h2 {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 24px;
    letter-spacing: -0.3px;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    white-space: nowrap;
    transition: all 0.2s;
    flex: 0 1 auto;
    min-width: 180px;
    justify-content: center;
}

.category-card:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.category-icon { font-size: 18px; }

.category-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.category-card:hover .category-name { color: var(--accent); }

.category-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 0;
}

/* FEATURES */
.section-features {
    padding: 60px 0;
    background: var(--bg-light);
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.feature {
    text-align: center;
    max-width: 200px;
}

.feature-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
}

.feature p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 50px 0 24px;
    margin-top: 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col { flex: 1; max-width: 200px; }
.footer-col:last-child { max-width: 280px; }

.footer h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }

.footer a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.footer a:hover { color: #fff; }

.footer p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.payment-methods {
    display: flex;
    gap: 12px;
    font-size: 20px;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
}

.pagination a:hover {
    border-color: var(--text-muted);
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text-light);
    outline: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { gap: 40px; }
}

@media (max-width: 768px) {
    .header .container { flex-wrap: wrap; gap: 16px; }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .search-category { display: none; }
    .search-bar input[type="search"] { 
        border-radius: var(--radius) 0 0 var(--radius); 
        border-left: 2px solid var(--border);
        min-width: 0;
    }
    
    .metal-prices-widget { display: none; }
    
    .nav-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu a { padding: 12px 14px; white-space: nowrap; }
    
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 26px; }
    .hero-stats { gap: 32px; }
    .hero-stats strong { font-size: 24px; }
    .hero-buttons { flex-direction: column; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    
    .categories-grid { justify-content: flex-start; }
    
    .features-grid { 
        flex-wrap: wrap; 
        gap: 30px; 
    }
    
    .feature { flex: 1 1 45%; }
    
    .footer-grid { flex-wrap: wrap; gap: 30px; }
    .footer-col { flex: 1 1 45%; max-width: none; }
    
    .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
}

/* NOTIFICATION BADGE */
.notif-link { position: relative; }
.notif-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: #1565c0; }

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

/* WARNING COLOR */
:root {
    --warning: #ff9800;
}

/* PRODUCTS GRID (override) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* PRODUCT CARD IMPROVEMENTS */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-card .product-image {
    aspect-ratio: 1;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    color: var(--border);
}

.product-card .product-info {
    padding: 14px;
}

.product-card .product-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-info h3 a {
    color: var(--text);
}

.product-card .product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* TIME BADGE ON CARDS */
.time-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
}

.time-badge.urgent {
    background: var(--danger);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* FORM IMPROVEMENTS */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* LOADING SPINNER */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 0;
    animation: spin 0.8s linear infinite;
}

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

/* MOBILE MENU */
@media (max-width: 768px) {
    .main-nav .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }
    
    .main-nav .nav-menu::-webkit-scrollbar {
        height: 3px;
    }
    
    .main-nav .nav-menu::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 0;
    }
    
    .search-bar {
        max-width: none;
    }
    
    .search-category {
        display: none;
    }
}

/* NEWSLETTER WIDGET */
.newsletter-widget {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 0;
    margin-top: 60px;
}

.newsletter-widget-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-widget-text {
    color: #fff;
}

.newsletter-widget-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}

.newsletter-widget-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.newsletter-widget-form {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.newsletter-widget-form input#newsletter-email,
.newsletter-widget-form button {
    height: 54px;
    line-height: 54px;
    padding: 0 24px;
    font-size: 15px;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
}

.newsletter-widget-form input#newsletter-email {
    border: 2px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    width: 320px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.newsletter-widget-form input#newsletter-email::placeholder {
    color: rgba(255,255,255,0.5);
    line-height: normal;
}

.newsletter-widget-form input#newsletter-email:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
}

.newsletter-widget-form button {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-widget-form button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.newsletter-widget-status {
    font-size: 13px;
    margin: 10px 0 0;
    text-align: center;
}

.newsletter-widget-status.success {
    color: #4caf50;
}

.newsletter-widget-status.error {
    color: #ff6b6b;
}

@media (max-width: 600px) {
    .newsletter-widget-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-widget-form {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .newsletter-widget-form input#newsletter-email {
        width: 100%;
        border-radius: var(--radius);
        border-right: 2px solid rgba(255,255,255,0.2);
    }
    
    .newsletter-widget-form button {
        border-radius: var(--radius);
    }
}

/* LIGHTBOX GALLERY */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-container {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: grab;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 48px;
    padding: 20px 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-zoom {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 0;
    z-index: 10;
}

.lightbox-zoom button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 0;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-zoom button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-zoom span {
    color: #fff;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 10;
}

/* COMPARATOR WIDGET */
.compare-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 280px;
    z-index: 1000;
    display: none;
}

.compare-widget.visible {
    display: block;
}

.compare-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 14px;
    font-weight: 500;
}

.compare-widget-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.compare-widget-close:hover {
    opacity: 1;
}

.compare-widget-items {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 12px;
}

.compare-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.compare-item-remove:hover {
    color: var(--danger);
}

.compare-widget-actions {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

/* Compare button style */
[data-compare] {
    cursor: pointer;
}

[data-compare].in-compare {
    background: var(--success);
    color: #fff;
}

/* ========================================
   OPTIONS PAYANTES - BOOSTS
   ======================================== */

/* Card featured (à la une) */
.product-card.featured {
    border: 2px solid var(--accent);
    position: relative;
}

.product-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #d4b978);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card highlighted (colorée) */
.product-card.highlighted {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, rgba(212, 185, 120, 0.05) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
}

/* Section featured */
.section-featured {
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.05) 0%, transparent 100%);
    padding: 40px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .featured-grid { grid-template-columns: 1fr; }
}

/* Badge boost dans mes annonces */
.badge-boost {
    background: linear-gradient(90deg, #c9a962, #d4b978) !important;
    color: #fff !important;
}

/* Bouton booster */
.action-btn.boost-btn {
    background: linear-gradient(135deg, #c9a962, #d4b978);
    color: #fff;
    border-radius: 4px;
}

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

/* ============================== */
/* PAGES COMPTE - LAYOUT GLOBAL  */
/* ============================== */

.account-page {
    display: flex;
    gap: 30px;
    padding: 40px 0 60px;
}

.account-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .account-page {
        flex-direction: column;
        gap: 20px;
    }
}

/* Product actions (comparer + alertes) */
.product-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* Badge LOT sur les cartes produits */
.lot-badge-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-card.is-lot {
    border: 2px solid #4caf50;
}
