:root {
    --bg-dark: #050706;
    --primary: #00ff88;
    --secondary: #00bd68;
    --text: #ffffff;
    --text-dim: #a0b0a8;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* À ajouter sur ton body ou un overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05; /* Très subtil */
    pointer-events: none;
    z-index: 9999;
}


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Grille & Fond */
.bg-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.15), transparent 50%);
    z-index: -1;
}

.grid-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Nav */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0; backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; }
.logo-wrapper img { height: 40px; border-radius: 10px; filter: drop-shadow(0 0 10px var(--primary)); }
.logo-text { font-weight: 800; font-size: 1.2rem; }
.logo-text span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Buttons Style */
.aurora {
    position: relative; overflow: hidden; border: none;
}
.aurora::after {
    content: ""; position: absolute; top: -50%; left: -150%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg); animation: aurora-swipe 4s infinite;
}
@keyframes aurora-swipe { 0% { left: -150%; } 20% { left: 150%; } 100% { left: 150%; } }

.btn-cta-nav { background: var(--gradient); padding: 10px 22px; border-radius: 10px; color: black !important; font-weight: 800; }
.btn-main { background: var(--gradient); color: black; padding: 18px 45px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 12px; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-main:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4); }

.btn-sub { color: white; text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--primary); padding-bottom: 5px; transition: 0.3s; }
.btn-sub:hover { color: var(--primary); border-color: white; }

/* Hero */
header { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-content { position: relative; z-index: 1; }
.hero-logo { height: 110px; margin-bottom: 25px; filter: drop-shadow(0 0 25px var(--primary)); animation: float 3s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
header p { color: var(--text-dim); margin-bottom: 45px; max-width: 650px; font-size: 1.2rem; margin-inline: auto; }

/* Stats Banner */
.stats-wrapper { display: flex; justify-content: space-around; background: rgba(0, 255, 136, 0.04); padding: 50px; border-radius: 30px; border: 1px solid rgba(0, 255, 136, 0.1); text-align: center; }
.stat-box .num { font-size: 3.5rem; font-weight: 800; color: var(--primary); display: block; text-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
.stat-box p { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }

/* Features */
section { padding: 120px 0; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 80px; font-weight: 800; }
.section-title span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: rgba(255, 255, 255, 0.02); padding: 50px 40px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.4s; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(0, 255, 136, 0.03); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.icon-box { font-size: 2.5rem; color: var(--primary); margin-bottom: 25px; }

/* Pricing Improvements */
.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.price-card { background: rgba(255, 255, 255, 0.02); padding: 50px 40px; border-radius: 30px; width: 360px; border: 1px solid rgba(255, 255, 255, 0.05); position: relative; }
.price-card.popular { border: 2px solid var(--primary); transform: scale(1.05); background: rgba(0, 255, 136, 0.02); }
.popular-tag { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--primary); color: black; padding: 6px 20px; border-radius: 50px; font-weight: 800; font-size: 0.8rem; }

.tag { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; margin-bottom: 15px; }
.tag.free { background: rgba(255, 255, 255, 0.1); }
.tag.pro { background: rgba(0, 255, 136, 0.1); color: var(--primary); }

.price { font-size: 3.5rem; font-weight: 800; margin: 20px 0; color: white; }
.price span { font-size: 1.2rem; color: var(--text-dim); }

.price-card ul { list-style: none; margin-bottom: 40px; }
.price-card ul li { margin-bottom: 15px; color: var(--text-dim); font-size: 0.95rem; }
.price-card ul li i { color: var(--primary); margin-right: 12px; }

/* Nouveau bouton contour pour le plan gratuit */
.btn-price-outline { display: block; text-align: center; padding: 15px; border-radius: 12px; text-decoration: none; color: white; border: 2px solid rgba(255,255,255,0.2); font-weight: 700; transition: 0.3s; }
.btn-price-outline:hover { background: white; color: black; border-color: white; }

/* Nouveau bouton plein pour le plan pro */
.btn-price-solid { display: block; text-align: center; padding: 16px; border-radius: 12px; text-decoration: none; color: black; background: var(--gradient); font-weight: 800; transition: 0.3s; }
.btn-price-solid:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3); }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: rgba(255, 255, 255, 0.02); margin-bottom: 15px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s; }
.faq-question { padding: 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.1rem; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: var(--text-dim); }
.faq-item.active { border-color: var(--primary); }
.faq-item.active .faq-answer { padding: 0 25px 25px; max-height: 200px; }

/* Mobile Menu Fix */
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }

@media (max-width: 950px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 85%;
        background: rgba(5, 7, 6, 0.98); flex-direction: column; 
        justify-content: center; align-items: center; transition: 0.5s; backdrop-filter: blur(20px);
    }
    .nav-links.active { right: 0; }
    .nav-links a { margin-bottom: 30px; font-size: 1.5rem; margin-left: 0; }
    .btn-cta-nav { width: 80%; text-align: center; }
}

footer { padding: 60px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-dim); }

/* Style du Badge Hero */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Le petit point "Live" avec animation */
.badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}


/* Page 404 Spécifique */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.error-container {
    position: relative;
    z-index: 10;
    padding: 20px;
}

.error-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: grayscale(1) opacity(0.5); /* Effet "éteint" pour la 404 */
    transition: 0.5s;
}

.error-content:hover .error-logo {
    filter: grayscale(0) opacity(1) drop-shadow(0 0 15px var(--primary));
}

.error-content h1 {
    font-size: 8rem;
    margin-bottom: 0;
    line-height: 1;
}

.error-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-content p {
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 600px) {
    .error-content h1 { font-size: 5rem; }
    .error-actions { flex-direction: column; }
    .btn-main { width: 100%; }
}


.nav-dash.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.soon {
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dash.disabled:hover .soon {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}


.logo-wrapper:hover img {
    filter: drop-shadow(0 0 20px var(--primary)) brightness(1.2);
    transform: rotate(-5deg) scale(1.1);
}


/* Style pour les pages légales */
.legal-page {
    background-color: var(--bg-dark);
}

.legal-content {
    padding-top: 150px;
    padding-bottom: 100px;
    max-width: 800px;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.legal-content h2 {
    color: var(--primary);
    margin: 40px 0 20px;
    font-size: 1.5rem;
}

.legal-content p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    margin: 20px 0;
}

.legal-card h3 {
    color: white;
    margin-bottom: 10px;
}

.last-update {
    font-style: italic;
    opacity: 0.6;
    margin-bottom: 50px;
}

.legal-content ul {
    color: var(--text-dim);
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
}



/* Notice de paiement manuel */
.pricing-notice {
    margin-top: 50px;
    background: rgba(0, 255, 136, 0.03);
    border: 1px dashed rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 900px;
    margin-inline: auto;
    text-align: left;
}

.notice-icon {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.notice-text h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.notice-text p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.notice-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.notice-link:hover {
    text-decoration: underline;
    letter-spacing: 0.5px;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .pricing-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}






/* Page de Login */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
}

.login-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.login-logo {
    height: 70px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--primary));
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* Bouton Discord Spécifique */
.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #5865F2; /* Couleur officielle Discord */
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    width: 100%;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
    filter: brightness(1.1);
}

.login-info {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    background: rgba(0, 255, 136, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.login-info i {
    color: var(--primary);
    margin-top: 3px;
}

.login-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.login-footer {
    margin-top: 40px;
}

.login-footer a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.login-footer a:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .login-card {
        padding: 40px 20px;
        margin: 20px;
    }
}




/* --- DASHBOARD SYSTEM --- */

/* On force le body à ne pas défiler si on veut une sidebar fixe parfaite */
.dash-body {
    display: flex; /* Aligne Sidebar et Main côte à côte */
    background-color: var(--bg-dark);
    margin: 0;
    min-height: 100vh;
}

/* Sidebar Fixe à gauche */
.sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(10, 15, 12, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px 20px;
    position: fixed; /* La clé pour qu'elle reste à gauche */
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 50px;
}
.sidebar-header img { height: 40px; border-radius: 10px; filter: drop-shadow(0 0 10px var(--primary)); }

.side-nav { display: flex; flex-direction: column; gap: 8px; }
.side-nav a {
    text-decoration: none;
    color: var(--text-dim);
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.side-nav a i { font-size: 1.1rem; width: 20px; text-align: center; }
.side-nav a:hover, .side-nav a.active {
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary);
}

/* Profil utilisateur en bas de sidebar */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.user-profile img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--primary); }
.user-info .username { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.user-info .logout { font-size: 0.75rem; color: #ff5555; text-decoration: none; font-weight: 600; }
.user-info .logout:hover { text-decoration: underline; }

/* Contenu Principal (Main) */
.dash-main {
    flex: 1;
    margin-left: 280px; /* Doit correspondre à la largeur de la sidebar */
    padding: 60px;
    position: relative;
    z-index: 1;
}

.dash-header { margin-bottom: 60px; }
.dash-header h1 { font-size: 2.8rem; margin-bottom: 10px; }
.dash-header p { color: var(--text-dim); font-size: 1.1rem; }

/* Grille de serveurs */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.server-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.02);
}

.server-icon {
    width: 65px; height: 65px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.server-icon.inactive {
    background: #1a1d1c;
    color: #444;
    box-shadow: none;
}

.server-details h3 { font-size: 1.1rem; margin-bottom: 6px; }

.status-badge { font-size: 0.7rem; padding: 4px 10px; border-radius: 8px; font-weight: 800; text-transform: uppercase; }
.status-badge.online { background: rgba(0, 255, 136, 0.1); color: var(--primary); }
.status-badge.offline { background: rgba(255, 255, 255, 0.05); color: var(--text-dim); }

/* Boutons de serveurs */
.btn-manage {
    margin-left: auto;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-manage:hover { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); transform: scale(1.05); }

.btn-setup {
    margin-left: auto;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-setup:hover { background: var(--primary); color: #000; }

/* RESPONSIVE */
@media (max-width: 1100px) {
    .sidebar { width: 85px; padding: 30px 15px; }
    .sidebar-header span, .side-nav a span, .user-info { display: none; }
    .dash-main { margin-left: 85px; padding: 40px; }
    .sidebar-header { justify-content: center; }
}

@media (max-width: 768px) {
    .dash-main h1 { font-size: 2rem; }
    .server-grid { grid-template-columns: 1fr; }
}