:root {
    --primary: #726bff;
    --secondary: #252131;
    --accent: #00f2ff;
    --bg: #0f0c1d;
    --text: #ffffff;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Background effects */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #1a1a3a, transparent),
                radial-gradient(circle at bottom left, #0d0d1a, transparent);
    z-index: -1;
}

/* Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(15, 12, 29, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 120px 8%;
    text-align: center;
    position: relative;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Products */
.products-section {
    padding: 60px 8%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Slider Styles */
.slider-container {
    overflow-x: auto;
    padding: 20px 0;
    cursor: grab;
    position: relative;
    width: 100%;
    scrollbar-width: thin; /* On laisse une petite barre pour plus de clarté si besoin */
    scrollbar-color: var(--primary) transparent;
}

.slider-container:active {
    cursor: grabbing;
}

.product-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.1s ease-out;
    will-change: transform;
    user-select: none;
    width: max-content;
    padding: 20px 10px;
    min-height: 400px;
}

.product-slider .card {
    width: 350px;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.card {
    background: var(--secondary);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.card p { color: rgba(255, 255, 255, 0.5); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #5d54ff;
    box-shadow: 0 8px 16px rgba(114, 107, 255, 0.3);
}

/* Admin Dashboard */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #0a0814;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    margin-top: 3rem;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: 0.2s;
}

.sidebar-link.active, .sidebar-link:hover {
    background: rgba(114, 107, 255, 0.1);
    color: var(--primary);
}

.main-content {
    flex-grow: 1;
    padding: 3rem;
    background: #0f0c1d;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card h4 { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin-bottom: 0.5rem; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; }

/* Cart Panel */
.cart-panel {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 350px;
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

/* Forms */
.auth-box {
    max-width: 450px;
    margin: 100px auto;
    background: var(--secondary);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

input, textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    margin-bottom: 1rem;
}

    input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 80px 8%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(114, 107, 255, 0.05);
    border-color: rgba(114, 107, 255, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Trust Section */
.trust-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px 8%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-item i {
    color: var(--accent);
}

/* Scroll Indicators */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translate(-50%, 0);}
    40% {transform: translate(-50%, -10px);}
    60% {transform: translate(-50%, -5px);}
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .trust-bar { flex-direction: column; gap: 1.5rem; align-items: center; }
}
