/* ========================================
   HYTAVERSE - Styles v2
   Theme: Bleu / Cyan / Moderne
======================================== */

/* Variables */
:root {
    /* Couleurs - Palette bleue */
    --color-bg: #070b14;
    --color-bg-light: #0d1424;
    --color-bg-card: rgba(13, 22, 42, 0.8);
    --color-bg-elevated: rgba(20, 35, 65, 0.9);
    
    /* Accents bleus */
    --color-primary: #00d4ff;
    --color-primary-dark: #00a8cc;
    --color-secondary: #6366f1;
    --color-accent: #a855f7;
    --color-glow: rgba(0, 212, 255, 0.4);
    
    /* Texte */
    --color-text: #e8f4fc;
    --color-text-muted: #8ba3bf;
    --color-text-dim: #5a7a99;
    
    /* États */
    --color-success: #00e5a0;
    --color-error: #ff6b8a;
    
    /* Bordures */
    --border-color: rgba(0, 212, 255, 0.1);
    --border-color-light: rgba(0, 212, 255, 0.2);
    
    /* Ombres */
    --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Rayons */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typographie */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Lexend', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/resources/fond.png') center center / cover no-repeat;
    z-index: -3;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, 
            rgba(7, 11, 20, 0.6) 0%, 
            rgba(7, 11, 20, 0.75) 40%,
            rgba(7, 11, 20, 0.9) 100%
        );
    z-index: -2;
}

/* Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: rise 8s infinite ease-out;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-delay: 1.5s; }
.particle:nth-child(3) { left: 25%; animation-delay: 0.5s; }
.particle:nth-child(4) { left: 35%; animation-delay: 2s; }
.particle:nth-child(5) { left: 45%; animation-delay: 1s; }
.particle:nth-child(6) { left: 55%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 65%; animation-delay: 0.8s; }
.particle:nth-child(8) { left: 75%; animation-delay: 1.8s; }
.particle:nth-child(9) { left: 85%; animation-delay: 0.3s; }
.particle:nth-child(10) { left: 95%; animation-delay: 2.2s; }
.particle:nth-child(11) { left: 10%; animation-delay: 3s; }
.particle:nth-child(12) { left: 30%; animation-delay: 3.5s; }
.particle:nth-child(13) { left: 50%; animation-delay: 4s; }
.particle:nth-child(14) { left: 70%; animation-delay: 4.5s; }
.particle:nth-child(15) { left: 90%; animation-delay: 5s; }

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(4px);
    transform: scale(3);
    opacity: 0.5;
}

@keyframes rise {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(30px) scale(0.5);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--color-glow));
    transition: var(--transition-fast);
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 0 20px var(--color-glow));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    padding: 10px 20px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 24px;
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    width: 24px;
}

.nav-link--discord {
    background: linear-gradient(135deg, #5865F2, #8b5cf6);
    color: white !important;
    border-radius: var(--radius-md);
}

.nav-link--discord::after {
    display: none;
}

.nav-link--discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(7, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 4px;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   HERO
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero-logo {
    width: 320px;
    max-width: 85vw;
    height: auto;
    margin-bottom: 48px;
    filter: drop-shadow(0 0 40px var(--color-glow));
    animation: float 4s ease-in-out infinite, fadeIn 1s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-ip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    animation: fadeIn 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.hero-ip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.ip-label {
    color: var(--color-text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.ip-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-glow);
    letter-spacing: 1px;
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-dim);
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--color-success);
    box-shadow: 0 0 12px var(--color-success);
    animation: pulse-glow 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--color-error);
    box-shadow: 0 0 12px var(--color-error);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px var(--color-success); }
    50% { box-shadow: 0 0 20px var(--color-success); }
}

.status-text {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.status-text strong {
    color: var(--color-success);
    font-weight: 700;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
}

.btn--secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--border-color-light);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--border-color-light);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

.btn--large {
    padding: 18px 40px;
    font-size: 16px;
}

.btn--full {
    width: 100%;
}

/* ========================================
   FEATURES SECTION
======================================== */
.features-section {
    padding: 100px 0;
    background: rgba(7, 11, 20, 0.5);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-color-light);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--color-text);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    padding: 100px 0;
}

.cta-card {
    text-align: center;
    padding: 60px 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.cta-title {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.cta-text {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   PAGE HEADER
======================================== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   VOTE SECTION
======================================== */
.vote-section {
    padding: 40px 0 100px;
}

.vote-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.vote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.vote-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.vote-icon {
    font-size: 28px;
}

.vote-card-header h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vote-card-body {
    padding: 28px;
}

.vote-instructions {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    text-align: center;
    font-size: 14px;
}

.vote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    padding: 16px 20px;
    background: var(--color-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-dim);
}

.vote-status {
    margin-top: 16px;
}

.status-loading,
.status-success,
.status-error {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.status-loading {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-primary);
}

.status-success {
    background: rgba(0, 229, 160, 0.1);
    color: var(--color-success);
}

.status-error {
    background: rgba(255, 107, 138, 0.1);
    color: var(--color-error);
}

.vote-note {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}

.vote-note strong {
    color: var(--color-primary);
}

/* ========================================
   TOAST
======================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 28px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 3000;
    backdrop-filter: blur(16px);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    position: relative;
    padding: 50px 0 24px;
    background: rgba(7, 11, 20, 0.9);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--color-glow));
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-credit,
.footer-copyright,
.footer-disclaimer {
    color: var(--color-text-dim);
    font-size: 12px;
}

.credit-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--color-primary);
    opacity: 0.8;
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

/* ========================================
   MAIN & UTILITIES
======================================== */
.main {
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .hero-logo {
        width: 220px;
    }
}
