﻿/* ==========================================================================
   V-ORIGIN ROLEPLAY - OFFICIAL STYLESHEET
   Design System conforme à CHARTE_GRAPHIQUE.md
   Univers : Cyber-Luxe, Sombre Premium, Contrasté, Haute Fidélité
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    /* Couleurs de marque officielles */
    --vo-gold: #f39c12;
    --vo-gold-light: #f1c40f;
    --vo-gold-dark: #d35400;
    --vo-gold-glow: rgba(243, 156, 18, 0.38);
    --vo-gold-hover: #ffcf33;

    --vo-cyan: #00d2ff;
    --vo-cyan-glow: rgba(0, 210, 255, 0.35);
    --vo-cyan-dark: #008eb3;

    /* Fonds sombres & surfaces (Dark Mode) */
    --vo-bg-darkest: #070a10;
    --vo-bg-deep: #0a0e17;
    --vo-bg-panel: rgba(13, 18, 28, 0.94);
    --vo-bg-card: rgba(17, 24, 38, 0.88);
    --vo-bg-surface: rgba(23, 31, 46, 0.85);
    --vo-bg-surface-hover: rgba(33, 44, 66, 0.95);
    --vo-bg-panel-gradient: linear-gradient(145deg, rgba(17, 24, 38, 0.95), rgba(9, 13, 20, 0.97));
    --vo-bg-gold-gradient: linear-gradient(135deg, #f1c40f, #f39c12 50%, #d35400);

    /* Bordures */
    --vo-border-subtle: rgba(255, 255, 255, 0.08);
    --vo-border-glass: rgba(255, 255, 255, 0.12);
    --vo-border-gold: rgba(243, 156, 18, 0.32);
    --vo-border-gold-bright: rgba(241, 196, 15, 0.75);
    --vo-border-cyan: rgba(0, 210, 255, 0.35);

    /* Textes */
    --vo-text-title: #ffffff;
    --vo-text-body: #e2e8f0;
    --vo-text-muted: #94a3b8;
    --vo-text-dim: #64748b;

    /* États & Feedback */
    --vo-success: #2ecc71;
    --vo-success-glow: rgba(46, 204, 113, 0.35);
    --vo-danger: #e74c3c;
    --vo-danger-glow: rgba(231, 76, 60, 0.35);
    --vo-danger-dark: #82000d;
    --vo-info: #3498db;
    --vo-warning: #f39c12;

    /* Ombres & Lueurs */
    --vo-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.75);
    --vo-shadow-glow: 0 0 25px rgba(243, 156, 18, 0.4);
    --vo-shadow-glow-cyan: 0 0 25px rgba(0, 210, 255, 0.35);
    --vo-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Rayons */
    --vo-radius-sm: 6px;
    --vo-radius-md: 10px;
    --vo-radius-lg: 16px;
    --vo-radius-xl: 24px;
    --vo-radius-full: 9999px;

    /* Transitions */
    --vo-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --vo-transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typographies */
    --vo-font-title: 'Outfit', sans-serif;
    --vo-font-accent: 'Rajdhani', sans-serif;
    --vo-font-body: 'Inter', sans-serif;
    --vo-font-heading: 'Outfit', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    background-color: var(--vo-bg-darkest);
    color: var(--vo-text-body);
    font-family: var(--vo-font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Fond Cyber-Luxe avec Particules & Dégradés Radiaux */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(243, 156, 18, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 10% 85%, rgba(0, 210, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(243, 156, 18, 0.08) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(7, 10, 16, 0.85) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vo-bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: rgba(243, 156, 18, 0.35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vo-gold);
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 10, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--vo-border-gold);
    transition: var(--vo-transition);
}

.site-header.scrolled {
    background: rgba(7, 10, 16, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-bottom-color: var(--vo-border-gold-bright);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.5));
    transition: var(--vo-transition);
}

.brand-wrapper:hover .brand-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(241, 196, 15, 0.8));
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--vo-font-title);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 40%, var(--vo-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-slogan {
    font-family: var(--vo-font-accent);
    font-size: 0.72rem;
    color: var(--vo-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Nav Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 1.1rem;
    font-family: var(--vo-font-accent);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--vo-text-body);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--vo-radius-md);
    transition: var(--vo-transition);
    cursor: pointer;
}

.nav-link i {
    font-size: 0.95rem;
    color: var(--vo-text-muted);
    transition: var(--vo-transition);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(243, 156, 18, 0.12);
    box-shadow: inset 0 0 12px rgba(243, 156, 18, 0.15);
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--vo-gold);
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--vo-gold-light), transparent);
    box-shadow: 0 0 10px var(--vo-gold);
}

/* Nav Actions (Status & Login) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-quick-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(13, 18, 28, 0.8);
    border: 1px solid var(--vo-border-subtle);
    padding: 0.45rem 0.9rem;
    border-radius: var(--vo-radius-full);
    font-family: var(--vo-font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.status-ping-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--vo-success);
    box-shadow: 0 0 10px var(--vo-success);
    animation: pulseDot 2s infinite ease-in-out;
}

.status-ping-dot.offline {
    background-color: var(--vo-danger);
    box-shadow: 0 0 10px var(--vo-danger);
    animation: none;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-auth-btn {
    background: var(--vo-bg-surface);
    border: 1px solid var(--vo-border-gold);
    color: var(--vo-gold-light);
    font-family: var(--vo-font-accent);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.55rem 1.1rem;
    border-radius: var(--vo-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--vo-transition);
}

.nav-auth-btn:hover {
    background: linear-gradient(135deg, var(--vo-gold-light), var(--vo-gold-dark));
    color: #070a10;
    box-shadow: var(--vo-shadow-glow);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Menu Mobile Burger */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--vo-text-body);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   MAIN CONTENT AREA & PAGE ROUTING
   ========================================================================== */
.site-main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem 2rem;
}

.page-section {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--vo-bg-deep);
    border-top: 1px solid var(--vo-border-subtle);
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
    margin-top: auto;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vo-gold), transparent);
    box-shadow: 0 0 15px var(--vo-gold);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--vo-border-subtle);
}

.footer-brand .brand-logo-img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--vo-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-family: var(--vo-font-accent);
    color: var(--vo-gold-light);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--vo-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--vo-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--vo-gold-light);
    transform: translateX(4px);
}

.footer-server-box {
    background: var(--vo-bg-panel);
    border: 1px solid var(--vo-border-subtle);
    padding: 1.2rem;
    border-radius: var(--vo-radius-lg);
}

.footer-server-box span {
    font-size: 0.85rem;
    color: var(--vo-text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.ip-copy-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(7, 10, 16, 0.8);
    border: 1px solid var(--vo-border-gold);
    padding: 0.5rem 0.8rem;
    border-radius: var(--vo-radius-md);
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--vo-gold-light);
}

.ip-copy-btn {
    background: transparent;
    border: none;
    color: var(--vo-gold);
    cursor: pointer;
    margin-left: auto;
    font-size: 1rem;
    transition: var(--vo-transition);
}

.ip-copy-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--vo-text-dim);
}

.footer-bottom a {
    color: var(--vo-text-muted);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--vo-gold);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.75rem 1.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .mobile-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(7, 10, 16, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--vo-border-gold);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
