:root {
    --bg-color: #050505;
    --text-primary: #f0f0f0;
    --text-muted: #888;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --glass-bg: rgba(15, 15, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-shadow: 0 0 15px rgba(168, 85, 247, 0.4), 0 0 30px rgba(6, 182, 212, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 2px;
}
.section-title span {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(168, 85, 247, 0.3);
}

/* Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}
.nav-brand span {
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }

.nav-ip {
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px dashed var(--text-muted);
    cursor: not-allowed;
    user-select: none;
}

.hamburger { display: none; cursor: pointer; }
.hamburger .line { width: 25px; height: 3px; background: white; margin: 5px; transition: 0.3s; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
    transform: scale(1.05);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-cyan);
}
.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Sections */
.section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 10rem;
}
.glitch {
    font-size: 5rem;
    font-weight: 900;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent-purple), -0.05em -0.025em 0 var(--accent-cyan);
    animation: glitch 3s infinite;
}
.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1.5rem auto 3rem;
}
.cta-group { display: flex; gap: 1rem; justify-content: center; }

/* Rules */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.rule-card h3 { color: var(--accent-purple); margin-bottom: 1rem; }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.avatar-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
}
.avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; background: #111; }
.role { font-size: 0.8rem; font-family: var(--font-heading); letter-spacing: 1px; }
.role-founder { color: #f59e0b; font-weight: 700; }
.role-cofoundeur { color: #a78bfa; }
.role-gerant { color: #34d399; }
.role-admin { color: #f59e0b; }
.role-dev { color: #10b981; }
.role-builder { color: #3b82f6; }

/* Founder card highlight */
.founder-card {
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    position: relative;
    overflow: visible;
}
.founder-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
    z-index: 0;
    pointer-events: none;
}
.founder-card > * { position: relative; z-index: 1; }
.founder-glow {
    position: absolute;
    top: -20px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(245,158,11,0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.founder-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #f59e0b;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.4);
    border-radius: 20px;
    padding: 2px 10px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(245,158,11,0.7);
}

/* Shop */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}
.shop-card { text-align: center; position: relative; }
.shop-card h3 { font-size: 1.5rem; }
.shop-card .price { font-size: 2.5rem; font-family: var(--font-heading); font-weight: 700; margin: 1rem 0; color: var(--text-primary); }
.shop-card .price span { font-size: 1rem; color: var(--text-muted); }
.shop-card ul { list-style: none; margin: 2rem 0; text-align: left; }
.shop-card ul li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.shop-card ul li::before { content: '► '; color: var(--accent-cyan); font-size: 0.8rem; }
.shop-card.popular { transform: scale(1.05); border-color: var(--accent-purple); box-shadow: var(--neon-shadow); }
.shop-card.popular:hover { transform: scale(1.08); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-purple); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

/* Whitelist Form */
.whitelist-container { max-width: 800px; margin: 0 auto; width: 100%; }
form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: flex; gap: 1.5rem; }
.form-row .form-group { flex: 1; }
.form-group { position: relative; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-cyan); }
.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease all;
}
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem; left: 0.5rem; font-size: 0.8rem; background: var(--bg-color); padding: 0 0.5rem; color: var(--accent-cyan);
}
.btn-block { width: 100%; }

/* Gallery */
.masonry {
    display: columns;
    columns: 3;
    column-gap: 1rem;
}
.masonry-item { break-inside: avoid; margin-bottom: 1rem; cursor: pointer; overflow: hidden; border-radius: 8px; }
.masonry-item img { width: 100%; display: block; transition: transform 0.5s; border-radius: 8px; filter: grayscale(50%) contrast(1.2); }
.masonry-item:hover img { transform: scale(1.1); filter: grayscale(0) contrast(1); }

/* Lightbox */
.lightbox {
    display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9);
}
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90%; margin-top: 5vh; border: 2px solid var(--accent-purple); box-shadow: var(--neon-shadow); }
.close-lightbox { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }

/* Footer */
.footer { text-align: center; padding: 3rem 5%; border-top: 1px solid var(--glass-border); background: #020202; }
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1rem; }
.footer-brand span { color: var(--accent-cyan); }
.disclaimer { font-size: 0.8rem; color: #555; margin-top: 0.5rem; }
.social-links { margin-top: 1.5rem; }
.social-links a { color: var(--accent-purple); text-decoration: none; font-weight: bold; }

/* Animations & Utils */
.hidden { display: none; }
#form-message { padding: 1rem; border-radius: 4px; text-align: center; margin-top: 1rem; }
.msg-success { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981; }
.msg-error   { background: rgba(239, 68, 68, 0.2);  color: #ef4444; border: 1px solid #ef4444; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--accent-purple), -0.05em -0.025em 0 var(--accent-cyan); }
    14% { text-shadow: 0.05em 0 0 var(--accent-purple), -0.05em -0.025em 0 var(--accent-cyan); }
    15% { text-shadow: -0.05em -0.025em 0 var(--accent-purple), 0.025em 0.025em 0 var(--accent-cyan); }
    49% { text-shadow: -0.05em -0.025em 0 var(--accent-purple), 0.025em 0.025em 0 var(--accent-cyan); }
    50% { text-shadow: 0.025em 0.05em 0 var(--accent-purple), 0.05em 0 0 var(--accent-cyan); }
    99% { text-shadow: 0.025em 0.05em 0 var(--accent-purple), 0.05em 0 0 var(--accent-cyan); }
    100% { text-shadow: -0.025em 0 0 var(--accent-purple), -0.025em -0.05em 0 var(--accent-cyan); }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; top: 70px; background: rgba(5,5,5,0.95); flex-direction: column; width: 100%; text-align: center; padding: 2rem 0; transform: translateY(-150%); transition: 0.3s; z-index: -1;
    }
    .nav-links.nav-active { transform: translateY(0); }
    .hamburger { display: block; }
    .nav-ip { display: none; }
    .glitch { font-size: 3rem; }
    .form-row { flex-direction: column; }
    .masonry { columns: 1; }
    .shop-card.popular { transform: none; }
}
