:root {
    --bg-main: #0b0d13;
    --bg-card: #131620;
    --bg-hover: #1c2130;
    --border: #1f2536;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --discord: #5865F2;
    --alert-info: rgba(56, 189, 248, 0.1);
    --alert-info-border: rgba(56, 189, 248, 0.3);
    --alert-warning: rgba(250, 204, 21, 0.1);
    --alert-warning-border: rgba(250, 204, 21, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }

/* Navbar */
.navbar { background-color: rgba(11, 13, 19, 0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-icon { background: linear-gradient(135deg, var(--accent), #6d28d9); color: white; font-weight: 800; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.brand span { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.5px; }
.nav-menu { display: flex; gap: 2rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.btn-discord { background-color: rgba(88, 101, 242, 0.1); color: var(--discord); padding: 8px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid rgba(88, 101, 242, 0.2); transition: 0.2s; }
.btn-discord:hover { background-color: var(--discord); color: white; }

/* Global */
.view-section { flex: 1; }

/* Hero & Accueil */
.hero { position: relative; padding: 7rem 2rem 5rem; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 60%); }
.hero-content { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-badge { background: rgba(139, 92, 246, 0.1); color: var(--accent); padding: 6px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; border: 1px solid rgba(139, 92, 246, 0.2); }
.hero-title { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.text-gradient { background: linear-gradient(135deg, #c4b5fd, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.6; max-width: 700px; }
.hero-buttons { display: flex; gap: 1rem; }
.btn-primary { background: var(--accent); color: white; border: none; padding: 14px 28px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 15px var(--accent-glow); transition: 0.2s; }
.btn-primary:hover { background: #7c3aed; transform: translateY(-2px); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: white; border: 1px solid var(--border); padding: 14px 28px; border-radius: 8px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: 0.2s; cursor: pointer;}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Stats & Features */
.stats-banner { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-card); padding: 2.5rem 0; }
.stats-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 900; color: var(--accent); margin-bottom: 0.5rem; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.featured-section, .features { max-width: 1400px; margin: 0 auto; padding: 6rem 2rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.section-header.center { flex-direction: column; align-items: center; text-align: center; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); padding: 2.5rem; border-radius: 16px; transition: transform 0.2s; }
.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; background: rgba(139, 92, 246, 0.1); width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 16px; border: 1px solid rgba(139, 92, 246, 0.2); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; }

/* Layout (Store & Docs) */
.layout-wrapper { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; display: flex; gap: 2.5rem; }
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar-block { position: sticky; top: 100px; }
.sidebar-title { color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-menu li { padding: 10px 12px; border-radius: 8px; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s; }
.sidebar-menu li:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-menu li.active { background: rgba(139, 92, 246, 0.1); color: var(--accent); font-weight: 600; }

.main-content { flex: 1; min-width: 0; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: 0.2s; cursor: pointer; display: flex; flex-direction: column; }
.product-card:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }
.framework-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.tag { background: rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 0.75rem; padding: 4px 10px; border-radius: 100px; font-weight: 500; border: 1px solid rgba(255,255,255,0.1); }
.tag.esx, .tag.qbcore { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border-color: rgba(139, 92, 246, 0.2); }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-price { font-size: 1.25rem; font-weight: 700; color: white;}
.btn-view { background: var(--bg-hover); color: white; border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; transition: 0.2s; cursor: pointer;}
.product-card:hover .btn-view { background: var(--accent); border-color: var(--accent); }

/* Product Details */
.pd-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; width: 100%; }
.pd-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-bottom: 1px solid var(--border); }
.pd-body { padding: 3rem; display: flex; gap: 3rem; }
.pd-info { flex: 2; }
.pd-info h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.pd-desc { color: var(--text-secondary); line-height: 1.7; margin-top: 1.5rem; font-size: 1.05rem; }
.pd-sidebar { flex: 1; background: rgba(0,0,0,0.2); padding: 2rem; border-radius: 16px; border: 1px solid var(--border); height: fit-content; }
.pd-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; text-align: center; color: var(--accent); }

/* --- DOCUMENTATION --- */
.doc-article { background: var(--bg-card); padding: 3rem; border-radius: 16px; border: 1px solid var(--border); }
.doc-article h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.doc-article h2 { font-size: 1.8rem; font-weight: 700; margin: 2.5rem 0 1rem; color: #e2e8f0; }
.doc-article h3 { font-size: 1.3rem; font-weight: 600; margin: 1.5rem 0 1rem; color: #e2e8f0; }
.doc-article p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.2rem; font-size: 1.05rem; }
.doc-article ul, .doc-article ol { color: var(--text-secondary); margin-left: 1.5rem; margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.05rem; }
.doc-article li { margin-bottom: 0.5rem; }
.doc-article strong { color: var(--text-primary); }

.doc-article code { background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.9em; color: #cbd5e1; }
.doc-article pre { background: #080a0f; border: 1px solid var(--border); padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; }
.doc-article pre code { background: transparent; padding: 0; color: #a78bfa; font-size: 0.95rem; }

.doc-alert { padding: 1rem 1.5rem; border-radius: 8px; margin: 1.5rem 0; display: flex; gap: 12px; align-items: flex-start; }
.doc-alert p { margin: 0; color: #fff; font-size: 0.95rem; }
.doc-alert.info { background: var(--alert-info); border: 1px solid var(--alert-info-border); }
.doc-alert.warning { background: var(--alert-warning); border: 1px solid var(--alert-warning-border); }

/* Footer */
.main-footer { background: var(--bg-card); border-top: 1px solid var(--border); margin-top: auto; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-desc { color: var(--text-secondary); line-height: 1.6; margin-top: 1.5rem; font-size: 0.95rem; max-width: 400px; }
.footer-links h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 0.75rem; transition: 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 2rem; text-align: center; color: var(--text-secondary); font-size: 0.85rem; display: flex; justify-content: space-between; max-width: 1400px; margin: 0 auto;}

@media (max-width: 900px) {
    .hero-title { font-size: 3rem; }
    .features-grid, .layout-wrapper, .pd-body, .footer-container { flex-direction: column; grid-template-columns: 1fr; gap: 2rem; }
    .sidebar { width: 100%; }
    .doc-article { padding: 1.5rem; }
}

/* --- REFONTE BOUTIQUE --- */
.store-banner {
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15), transparent 70%);
    padding: 5rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.store-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.store-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.store-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}
.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: white;
    padding: 10px 10px 10px 40px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}
.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.sort-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}
.sort-box:focus {
    border-color: var(--accent);
}
.sort-box option {
    background: var(--bg-card);
    color: white;
}

/* Badges sur les produits */
.product-card { position: relative; }
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(13, 15, 20, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}
.product-badge.hot {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}
.product-badge.new {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .store-controls { flex-direction: column; }
    .search-box { max-width: 100%; }
}

/* --- GALERIE PRODUIT --- */
.product-gallery { margin-bottom: 2rem; }
.main-image-display {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    background: #0f1219;
}
.main-image-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.thumbnail-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.thumbnail-row::-webkit-scrollbar { height: 6px; }
.thumbnail-row::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
.gallery-thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: 0.2s;
    object-fit: cover;
}
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }

/* --- BOUTON DE LANGUE --- */
.btn-lang {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-lang:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}