/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    
    --blood-red: #8b0000;
    --blood-bright: #c41e3a;
    --blood-dark: #4a0000;
    --blood-glow: rgba(139, 0, 0, 0.5);
    
    --gold: #d4af37;
    --gold-dim: #b8960c;
    
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #6a6a6a;
    
    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
    
    --shadow-blood: 0 0 20px rgba(139, 0, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Fond avec effet brume */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--blood-bright);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ============================================
   PARTICULES ANIMÉES
   ============================================ */
.blood-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--blood-red);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, var(--bg-darker) 0%, transparent 100%);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo:hover {
    color: var(--gold);
}

.logo-icon {
    font-size: 2rem;
    animation: bat-float 3s infinite ease-in-out;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(139, 0, 0, 0.2);
}

.nav-link-outline {
    border: 1px solid var(--blood-red);
    color: var(--blood-bright);
}

.nav-link-outline:hover {
    background: var(--blood-red);
    color: var(--text-primary);
}

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================
   CONTENU PRINCIPAL
   ============================================ */
.main-content {
    min-height: 100vh;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" opacity="0.03">🦇</text></svg>');
    background-size: 200px;
    animation: bg-scroll 60s linear infinite;
}

@keyframes bg-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(139, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--blood-bright);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--blood-dark) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-blood);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 0, 0, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-blood);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-secondary);
}

/* ============================================
   GRILLES
   ============================================ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blood-red), transparent);
    margin: 1rem auto 0;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
}

.form-input {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-darker);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--blood-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
}

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

/* ============================================
   ALERTES
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--blood-red);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(56, 161, 105, 0.2);
    border: 1px solid #38a169;
    color: #68d391;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-secondary);
}

.footer-section ul a:hover {
    color: var(--blood-bright);
}

.server-ip {
    font-family: monospace;
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background: rgba(139, 0, 0, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.social-link:hover {
    background: var(--blood-red);
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
    color: var(--text-muted);
}

/* ============================================
   FACTIONS
   ============================================ */
.faction-card {
    position: relative;
    overflow: hidden;
}

.faction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--faction-color, var(--blood-red));
}

.faction-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.faction-abilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.faction-ability {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   BOUTIQUE
   ============================================ */
.shop-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shop-item-price {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
}

.shop-item-price::before {
    content: '€';
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* ============================================
   STAFF
   ============================================ */
.staff-category {
    margin-bottom: 3rem;
}

.staff-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.staff-category-title::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--staff-color, var(--blood-red));
}

.staff-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--staff-color, var(--blood-red));
}

.staff-info h4 {
    margin-bottom: 0.25rem;
}

.staff-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   PAGE AUTH
   ============================================ */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 3rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 8, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
/* Bouton Admin */
.nav-link-admin {
    background: rgba(212, 175, 55, 0.2) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}

.nav-link-admin:hover {
    background: var(--gold) !important;
    color: var(--bg-dark) !important;
}