/* ==========================================================================
   🎨 DESIGN SYSTEM & VARIABLES (STYLE RETRO-SYNTHWAVE PREMIUM)
   ========================================================================== */
:root {
    /* Couleurs de fond */
    --bg-base: #09070f;
    --bg-surface: rgba(22, 18, 38, 0.6);
    --bg-surface-active: rgba(30, 25, 51, 0.85);
    --bg-navbar: rgba(9, 7, 15, 0.95);
    
    /* Bordures & Tracés */
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow-cyan: rgba(0, 240, 255, 0.3);
    --border-glow-pink: rgba(255, 0, 127, 0.3);
    
    /* Textes */
    --text-primary: #e3e1e9;
    --text-secondary: #a9a6b5;
    --text-muted: #6e6b7d;
    
    /* Couleurs Néon unies */
    --neon-cyan: #00f0ff;
    --neon-pink: #ff007f;
    --neon-orange: #ff8c00;
    --neon-yellow: #ffd000;
    
    /* Gradients du Logo */
    --grad-cyan-pink: linear-gradient(135deg, #00f0ff 0%, #ff007f 100%);
    --grad-pink-orange: linear-gradient(135deg, #ff007f 0%, #ff8c00 100%);
    --grad-orange-indigo: linear-gradient(135deg, #ff8c00 0%, #1a103c 100%);
    
    /* Ombre de lueur (Neon Glows) */
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.35);
    --glow-pink: 0 0 15px rgba(255, 0, 127, 0.35);
    --glow-button: 0 4px 20px rgba(255, 0, 127, 0.4);
    
    /* Typographies */
    --font-titles: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Arrondis & Transitions */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.04) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Barre de défilement personnalisée */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
    box-shadow: var(--glow-pink);
}

/* ==========================================================================
   🧱 COMPOSANTS GÉNÉRIQUES & BOUTONS
   ========================================================================== */

/* Textes de Dégradé */
.gradient-blue-pink {
    background: var(--grad-cyan-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-pink-yellow {
    background: var(--grad-pink-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, #ff007f 0%, #ff8c00 50%, #ff007f 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: 1px solid rgba(255, 0, 127, 0.2);
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.25);
    transition: var(--transition-smooth), background-position 0.5s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    background-position: right center;
    box-shadow: var(--glow-button), 0 0 30px rgba(255, 140, 0, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-vote {
    background: linear-gradient(135deg, #00f0ff 0%, #0072ff 50%, #00f0ff 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
    transition: var(--transition-smooth), background-position 0.5s ease;
}
.btn-vote:hover {
    transform: translateY(-3px);
    background-position: right center;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.45), 0 0 30px rgba(0, 114, 255, 0.25);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #7289da 50%, #5865F2 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: 1px solid rgba(88, 101, 242, 0.25);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.25);
    transition: var(--transition-smooth), background-position 0.5s ease;
}
.btn-discord:hover {
    transform: translateY(-3px);
    background-position: right center;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.45), 0 0 30px rgba(88, 101, 242, 0.25);
}

.btn-discord-nav {
    background: #5865F2;
    color: #ffffff;
    padding: 8px 18px;
    font-size: 0.9rem;
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}
.btn-discord-nav:hover {
    background: #4752c4;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.45);
    transform: translateY(-2px);
}

/* ==========================================================================
   导航 NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
}
#nav-logo {
    height: 60px;
    object-fit: contain;
    transition: var(--transition-smooth);
}
#nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}
.logo-text {
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    display: flex;
    gap: 3px;
}

/* Liens navigation */
.nav-links {
    display: flex;
    gap: 8px;
}
.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}
.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav-tab.active {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 0, 127, 0.2);
}

/* Conteneur principal */
.content-wrapper {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
    min-height: calc(100vh - 250px);
}

/* Gestion de l'affichage des onglets */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   🏠 PAGE D'ACCUEIL (HERO & CARACTÉRISTIQUES)
   ========================================================================== */
.hero-section {
    text-align: center;
    padding: 40px 0;
}

.hero-logo-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}
#hero-logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.3));
    animation: logoPulse 8s infinite ease-in-out;
}
@keyframes logoPulse {
    0% { filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.3)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.5)); transform: translateY(-5px); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.3)); transform: translateY(0); }
}

.hero-title-fallback h1 {
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}
.hero-title-fallback h2 {
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 3.5rem;
    background: var(--grad-cyan-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.hero-title-fallback h3 {
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--neon-yellow);
    letter-spacing: 4px;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 70px;
}

/* Grille de caractéristiques */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}
.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}
.feature-icon.pink-neon {
    color: var(--neon-pink);
    border-color: var(--border-glow-pink);
    box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.1);
}
.feature-icon.cyan-neon {
    color: var(--neon-cyan);
    border-color: var(--border-glow-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}
.feature-icon.orange-neon {
    color: var(--neon-orange);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: inset 0 0 10px rgba(255, 140, 0, 0.1);
}

.feature-card h3 {
    font-family: var(--font-titles);
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Header des Sections */
.section-header {
    text-align: center;
    margin-bottom: 45px;
}
.section-header h2 {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-header p {
    color: var(--text-secondary);
}

/* ==========================================================================
   📜 PAGE RÈGLEMENT (LAYOUT À DEUX COLONNES INTERACTIF)
   ========================================================================== */
.rules-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar des Règles */
.rules-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}
.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-box input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}
.search-box input:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.rules-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}
.rules-menu-item {
    background: transparent;
    border: none;
    text-align: left;
    padding: 10px 15px;
    color: var(--text-secondary);
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}
.rules-menu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}
.rules-menu-item.active {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.08);
}

/* Zone d'affichage des règles */
.rules-viewer {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 400px;
}

.rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.rules-header h3 {
    font-family: var(--font-titles);
    font-size: 1.6rem;
    font-weight: 700;
}
.update-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Style interne du texte html de rules_general.lua */
.rules-body h2 {
    display: none; /* Cache le titre interne s'il fait doublon */
}
.rules-body h3 {
    font-family: var(--font-titles);
    color: var(--neon-cyan);
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rules-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
}
.rules-body b {
    color: var(--text-primary);
}
.rules-body br {
    display: block;
    margin-bottom: 8px;
    content: "";
}

/* ==========================================================================
   📖 PAGE CODEX (DÉFINITIONS RP CARD GRID)
   ========================================================================== */
.codex-search-wrapper {
    max-width: 500px;
    margin: 15px auto 0;
}

.codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.codex-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.codex-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow-cyan);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.codex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--grad-cyan-pink);
}

.codex-card h3 {
    font-family: var(--font-titles);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.codex-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.codex-example {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-muted);
}
.codex-example i {
    color: var(--neon-yellow);
    margin-right: 5px;
}

/* ==========================================================================
   🛠️ PAGE DEV LOGS (TIMELINE)
   ========================================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -30px;
    width: 10px;
    height: 100px; /* Ligne de point */
}
.timeline-badge {
    position: absolute;
    top: 8px;
    left: -30px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-pink);
    box-shadow: var(--glow-pink);
    transform: translateX(-4px);
}

.timeline-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition-smooth);
}
.timeline-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.timeline-title {
    font-family: var(--font-titles);
    font-size: 1.35rem;
    font-weight: 700;
}
.timeline-date {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-family: var(--font-titles);
    font-weight: 600;
}

.timeline-body h3 {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.timeline-body ul {
    list-style-type: none;
    padding-left: 5px;
}
.timeline-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.timeline-body li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.85rem;
}
.timeline-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   👣 PIED DE PAGE (FOOTER)
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px 0;
    text-align: center;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.footer .disclaimer {
    font-size: 0.78rem;
    max-width: 800px;
    margin: 12px auto 0;
    line-height: 1.4;
}

/* ==========================================================================
   📂 SOUS-NAVIGATION DES RÈGLEMENTS (INTERNAL TABS)
   ========================================================================== */
.rules-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 8px;
    background: rgba(22, 18, 38, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.rules-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 22px;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.rules-nav-btn i {
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.rules-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.rules-nav-btn.active {
    color: #ffffff;
    background: var(--grad-pink-orange);
    box-shadow: var(--glow-button);
}

/* Gestion de l'affichage des sous-sections */
.rules-sub-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rules-sub-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   📱 RESPONSIVE (ADAPTATION MOBILES & TABLETTES)
   ========================================================================== */
@media (max-width: 900px) {
    .rules-container {
        grid-template-columns: 1fr;
    }
    .rules-sidebar {
        max-height: none;
    }
    .rules-menu {
        max-height: 250px;
    }
    .nav-links {
        display: none; /* Version simplifiée pour mobile si nécessaire */
    }
    .hero-title-fallback h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn {
        width: 100%;
        max-width: 320px;
    }
    .rules-viewer {
        padding: 20px;
    }
    .timeline {
        padding-left: 20px;
    }
}

/* ==========================================================================
   🗳️ SECTION VOTE & TOP SERVEUR (DESIGN EXCLUSIF)
   ========================================================================== */
.vote-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 15px;
}

/* Carte d'appel au vote (Hero Card) */
.vote-hero-card {
    background: linear-gradient(135deg, rgba(22, 18, 38, 0.8) 0%, rgba(9, 7, 15, 0.9) 100%);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}
.vote-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-cyan-pink);
}
.vote-hero-info h3 {
    font-family: var(--font-titles);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}
.vote-hero-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 750px;
    margin-bottom: 18px;
}
.vote-rewards-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid var(--border-glow-cyan);
    color: var(--neon-cyan);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
}

.btn-lg-vote {
    padding: 16px 36px;
    font-size: 1.1rem;
    min-width: 250px;
}

/* Grille de stats (Classement & Historique) */
.vote-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.vote-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vote-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}
.vote-card-header h3 {
    font-family: var(--font-titles);
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.text-gold {
    color: var(--neon-yellow);
}

/* Sélecteur de classement */
.ranking-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.ranking-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.ranking-btn:hover {
    color: var(--text-primary);
}
.ranking-btn.active {
    color: #ffffff;
    background: var(--bg-surface-active);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Bouton Actualiser */
.refresh-votes-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}
.refresh-votes-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07);
}
.refresh-votes-btn i {
    font-size: 0.8rem;
}

/* Corps des cartes */
.vote-card-body {
    min-height: 400px;
    position: relative;
}

/* Listes */
.ranking-list, .recent-votes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Éléments du classement */
.ranking-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}
.ranking-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}
.ranking-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 0.95rem;
    margin-right: 18px;
    flex-shrink: 0;
}
.ranking-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.ranking-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    color: #000000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
}
.ranking-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.2);
}
.ranking-badge.rank-default {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.ranking-name {
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    flex-grow: 1;
}
.ranking-votes {
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 0, 127, 0.2);
}

/* Éléments des votes récents */
.recent-vote-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}
.recent-vote-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}
.recent-vote-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 18px;
    flex-shrink: 0;
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid var(--border-glow-cyan);
    color: var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}
.recent-vote-name {
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    flex-grow: 1;
}
.recent-vote-time {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Chargements et erreurs */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-family: var(--font-titles);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}
.loading-spinner i {
    font-size: 1.25rem;
    color: var(--neon-cyan);
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    width: 90%;
    line-height: 1.5;
}
.error-message i {
    font-size: 1.8rem;
    color: var(--neon-orange);
    margin-bottom: 10px;
    display: block;
}

/* Adaptation Responsive mobile */
@media (max-width: 990px) {
    .vote-hero-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 30px;
    }
    .vote-hero-info p {
        margin: 0 auto 20px;
    }
    .vote-hero-action {
        display: flex;
        justify-content: center;
    }
    .btn-lg-vote {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 600px) {
    .vote-stats-grid {
        grid-template-columns: 1fr;
    }
    .ranking-item, .recent-vote-item {
        padding: 10px 14px;
    }
    .ranking-badge, .recent-vote-icon {
        margin-right: 12px;
    }
    .ranking-name, .recent-vote-name {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   🎮 WIDGETS D'ÉTAT DU SERVEUR (STYLE DASHBOARD PREMIUM & INTERACTIF)
   ========================================================================== */
.server-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 35px auto 65px;
}

.status-card {
    background: linear-gradient(135deg, rgba(22, 18, 38, 0.75) 0%, rgba(9, 7, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}
.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-smooth);
}
.status-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.07);
}

/* Bordure de survol de carte spécifique */
#status-card-server::before {
    background: #e74c3c;
}
#status-card-server.online-glow::before {
    background: #2ecc71;
}
.status-card:nth-child(2)::before {
    background: var(--neon-cyan);
}
.status-card.f8-card::before {
    background: var(--neon-pink);
}
.status-card:nth-child(4)::before {
    background: var(--neon-orange);
}

.status-card:nth-child(2):hover {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.12);
}
.status-card.f8-card:hover {
    border-color: rgba(255, 0, 127, 0.35);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 127, 0.12);
}
.status-card:nth-child(4):hover {
    border-color: rgba(255, 140, 0, 0.35);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 140, 0, 0.12);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.status-card-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-card-icon {
    font-size: 1.15rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.status-card:hover .status-card-icon {
    transform: scale(1.2) translateY(-2px);
}

/* Couleurs icônes */
.text-cyan {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}
.text-pink {
    color: var(--neon-pink);
    text-shadow: var(--glow-pink);
}
.text-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.35);
}

/* Indicateur LED de statut avec double pulsation */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}
.status-indicator.online {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71, 0 0 20px #2ecc71;
}
.status-indicator.offline {
    background-color: #e74c3c;
    box-shadow: 0 0 10px #e74c3c, 0 0 20px #e74c3c;
}
.status-indicator::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
}
.status-indicator.online::after {
    color: #2ecc71;
    animation: pulseRing 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}
.status-indicator.offline::after {
    color: #e74c3c;
    animation: pulseRing 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Corps des cartes */
.status-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    margin-top: 15px;
    position: relative;
}

.status-card-val {
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-primary);
    line-height: 1.2;
}
.status-card-val.online {
    color: #2ecc71;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.35);
}
.status-card-val.offline {
    color: #e74c3c;
    text-shadow: 0 0 15px rgba(231, 76, 60, 0.35);
}

/* Barre de progression des joueurs */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff 0%, #ff007f 50%, #00f0ff 100%);
    background-size: 200% auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressFlow 3s linear infinite;
}
@keyframes progressFlow {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

/* Carte spéciale F8 (Connexion Directe) */
.f8-card {
    cursor: pointer;
}
.f8-card code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    color: #00f0ff;
    background-color: rgba(5, 3, 10, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
    user-select: none;
    transition: var(--transition-smooth);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}
.f8-card:hover code {
    border-color: rgba(255, 0, 127, 0.4);
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.15);
}
.f8-action-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.f8-card:hover .f8-action-hint {
    color: var(--neon-pink);
}

.copy-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--grad-cyan-pink);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}
.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Effet de flash de copie réussie */
.status-card.f8-copied {
    animation: f8CopyFlash 0.8s ease-out forwards;
}
@keyframes f8CopyFlash {
    0% {
        border-color: #00f0ff;
        box-shadow: 0 0 35px rgba(0, 240, 255, 0.9), inset 0 0 25px rgba(0, 240, 255, 0.35);
        transform: scale(1.03);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.05);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
        transform: scale(1);
    }
}

/* Icône de restart qui tourne lentement puis accélère au survol */
.status-card-icon.fa-rotate-right {
    animation: spinSlow 15s linear infinite;
    transform-origin: center;
    display: inline-block;
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.status-card:hover .status-card-icon.fa-rotate-right {
    animation: spinFast 1.5s linear infinite;
}
@keyframes spinFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.text-neon-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

/* ==========================================================================
   🛡️ SECTION STAFF & ÉQUIPE (DESIGN DOSSIER AGENT CONFIDENTIEL)
   ========================================================================== */
.staff-container {
    max-width: 1000px;
    margin: 40px auto 60px;
    padding: 0 10px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.staff-card {
    background: linear-gradient(135deg, rgba(22, 18, 38, 0.8) 0%, rgba(9, 7, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

.staff-card:hover {
    transform: translateY(-8px);
}

/* Bordures & Lueurs de Grades Spécifiques */
.staff-card.border-gold {
    border-color: rgba(255, 215, 0, 0.15);
}
.staff-card.border-gold::after {
    background: linear-gradient(90deg, #ffd700, #ffa500);
}
.staff-card.border-gold:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.15);
}

.staff-card.border-pink {
    border-color: rgba(255, 0, 127, 0.15);
}
.staff-card.border-pink::after {
    background: linear-gradient(90deg, #ff007f, #ff8c00);
}
.staff-card.border-pink:hover {
    border-color: rgba(255, 0, 127, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 0, 127, 0.15);
}

.staff-card.border-cyan {
    border-color: rgba(0, 240, 255, 0.15);
}
.staff-card.border-cyan::after {
    background: linear-gradient(90deg, #00f0ff, #0072ff);
}
.staff-card.border-cyan:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.15);
}

/* Badge de Rôle */
.staff-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid transparent;
}
.badge-gold {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.25);
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.badge-pink {
    background: rgba(255, 0, 127, 0.08);
    border-color: rgba(255, 0, 127, 0.25);
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}
.badge-cyan {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Avatars Rétro-Futuristes */
.staff-avatar-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
}
.staff-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}
.staff-card:hover .staff-avatar-placeholder {
    border-color: #ffffff;
    transform: scale(1.05);
}

/* Lueur d'avatar */
.staff-avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.35;
    z-index: 1;
    transition: var(--transition-smooth);
}
.staff-card:hover .staff-avatar-glow {
    width: 95px;
    height: 95px;
    opacity: 0.65;
}

.bg-gold {
    background-color: #ffd700;
}
.bg-pink {
    background-color: #ff007f;
}
.bg-cyan {
    background-color: #00f0ff;
}

/* Pseudos */
.staff-name {
    font-family: var(--font-titles);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.glow-gold {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}
.staff-card:hover .glow-gold {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
.glow-pink {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}
.staff-card:hover .glow-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}
.glow-cyan {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.staff-card:hover .glow-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

/* Descriptions */
.staff-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 22px;
    min-height: 90px;
}

/* Contact Discord */
.staff-contact {
    display: flex;
    justify-content: center;
}
.staff-discord-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    color: #7289da;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}
.staff-card:hover .staff-discord-tag {
    background: #5865F2;
    color: #ffffff;
    border-color: #5865F2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

/* Responsivité de la grille */
@media (max-width: 1000px) {
    .server-status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (max-width: 580px) {
    .server-status-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .status-card {
        min-height: 135px;
        padding: 20px 24px;
    }
    .status-card-val {
        font-size: 1.5rem;
    }
}
