/* TBase Shop - Design Moderne Pro */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Couleurs principales */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    
    /* Backgrounds */
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --bg-darker: #050505;
    
    /* Texte */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --text-main: #ffffff;
    --text-gray: #a3a3a3;
    
    /* Bordures */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-lighter: rgba(255, 255, 255, 0.16);
    
    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-base: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

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

/* Header épuré */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.header-top a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.header-top a:hover {
    color: var(--primary-light);
}

.header-main {
    padding: 20px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 48px;
}

.nav-main ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-main a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.nav-main a:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-main a.active {
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons - Design moderne */
.btn {
    padding: 11px 22px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 
                0 0 0 0 rgba(37, 99, 235, 0);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4),
                0 0 0 0 rgba(37, 99, 235, 0);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

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

.btn-outline:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-lighter);
}

.btn-icon {
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.125rem;
    position: relative;
    border-radius: 8px;
}

.btn-icon:hover {
    background: var(--bg-card);
    color: var(--primary-light);
    border-color: var(--border-light);
}

.btn-icon .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0 6px;
    border: 2px solid var(--bg-black);
}

/* Hero moderne */
.hero {
    background: var(--bg-black);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-content {
    max-width: 840px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero h1 .neon-text {
    color: var(--primary-light);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.7;
}

/* Countdown épuré */
.countdown {
    display: inline-flex;
    gap: 24px;
    margin: 36px 0;
    padding: 20px 28px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.countdown-item {
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.countdown-item label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Section moderne */
.products-section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-header .accent {
    color: var(--primary-light);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

/* Products Grid optimisée */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 44px;
}

/* Product Card - Design épuré et pro */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 
                0 10px 10px -5px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: white;
    padding: 5px 13px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.03em;
}

.product-badge.limited {
    background: var(--warning);
}

.product-image {
    height: 220px;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

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

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

.product-info {
    padding: 24px;
}

.product-category {
    color: var(--primary-light);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.product-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.product-title a:hover {
    color: var(--primary-light);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.feature-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: -0.02em;
}

.product-price .old-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 400;
}

/* Category Card */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-smooth);
    display: block;
}

.category-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.category-card i {
    font-size: 3rem !important;
    color: var(--primary-light) !important;
    margin-bottom: 18px;
    display: block;
}

.category-card h3 {
    color: var(--text-primary) !important;
    font-size: 1.375rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.category-card p {
    color: var(--text-secondary) !important;
    font-size: 0.9375rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Footer moderne */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 22px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 14px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

/* Admin Panel */
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    padding: 24px 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 0.9375rem;
    font-weight: 500;
}

.admin-nav a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.admin-nav a.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    font-weight: 600;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 28px;
}

.admin-card h2 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Forms */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    transition: all var(--transition-base);
    font-family: inherit;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-card);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.table th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background: var(--bg-card);
}

/* Alerts */
.alert {
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 22px;
    border-left: 3px solid;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--error);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning);
    color: var(--warning);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-card i {
    font-size: 2.25rem;
    color: var(--primary-light);
    margin-bottom: 14px;
}

.stat-card h3 {
    font-size: 2.25rem;
    color: var(--primary-light);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 18px;
    }
    
    .nav-main ul {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    
    .nav-main a {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .countdown {
        gap: 18px;
        padding: 16px 22px;
    }
    
    .countdown-item span {
        font-size: 1.75rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
}

/* Scrollbar pro */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 6px;
    border: 3px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

::selection {
    background: rgba(37, 99, 235, 0.3);
    color: var(--text-primary);
}
