:root {
    --bg: #050505;
    --card-bg: rgba(15, 15, 15, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #ffffff;
    --dev-accent: #007bff;
    --green: #00ff64;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out;
}

.loader-content { text-align: center; }

.loader-text {
    font-weight: 800;
    letter-spacing: 10px;
    color: white;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-bar {
    width: 200px; height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative; overflow: hidden; margin: 0 auto;
}

.loader-bar::after {
    content: ''; position: absolute; left: -100%; width: 100%; height: 100%;
    background: white; animation: loading 1.5s cubic-bezier(0.86, 0, 0.07, 1) infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes loading { 0% { left: -100%; } 50% { left: 0; } 100% { left: 100%; } }

.bg-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -2; filter: brightness(0.2) blur(4px);
    transform: scale(1.05);
}

.bg-layer.active { opacity: 1; transform: scale(1); }

.glow-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none; z-index: -1;
}

header, #hero, #servers, #staff { opacity: 0; transform: translateY(20px); }

header {
    padding: 30px 0; border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100;
}

.nav-container {
    max-width: 1200px; margin: auto; display: flex;
    justify-content: space-between; align-items: center; padding: 0 20px;
}

.logo { font-weight: 800; letter-spacing: 4px; font-size: 1.2rem; }

nav a {
    text-decoration: none; color: rgba(255,255,255,0.6);
    font-size: 0.8rem; font-weight: 600; margin-left: 30px; transition: 0.3s;
}

nav a:hover { color: white; }

.btn-discord { border: 1px solid white; padding: 8px 20px; border-radius: 4px; cursor: pointer; }

#hero { text-align: center; padding: 100px 20px; }
.main-title { font-size: 4rem; font-weight: 800; margin-top: 10px; letter-spacing: -2px; }
.subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.4); letter-spacing: 5px; }
.hero-line { width: 50px; height: 2px; background: white; margin: 20px auto; }

.server-grid { display: flex; justify-content: center; max-width: 1100px; margin: -50px auto 100px; }

.server-card {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 40px; flex: 1; border-radius: 12px; transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative; overflow: hidden;
}

.server-card.highlight { border-color: rgba(255,255,255,0.3); transform: translateY(-10px); background: rgba(20,20,20,0.8); }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.status { 
    font-size: 0.65rem; background: rgba(0, 255, 100, 0.1); 
    color: var(--green); padding: 6px 14px; border-radius: 20px; 
    font-weight: 800; border: 1px solid rgba(0, 255, 100, 0.2);
}

.player-count {
    font-size: 0.75rem; font-weight: 800; color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05); padding: 4px 12px;
    border-radius: 4px; border: 1px solid var(--border);
}

.update-flash { color: var(--green) !important; }

.center-divider {
    width: 1px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    margin: 0 40px;
}

.card-buttons { display: flex; gap: 10px; margin-top: 30px; align-items: center; }

.btn-server {
    display: inline-block; text-decoration: none;
    color: black; background: white; padding: 12px 25px;
    font-weight: 700; font-size: 0.8rem; border-radius: 4px;
}

.btn-discord-card {
    text-decoration: none; color: white;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.4);
    padding: 12px 20px; font-weight: 700;
    font-size: 0.8rem; border-radius: 4px; transition: 0.3s;
}

.btn-discord-card:hover { background: #5865F2; border-color: #5865F2; }

#staff { padding: 100px 20px; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 80px; }
.staff-level { margin-bottom: 60px; text-align: center; }
.level-label { font-size: 0.7rem; color: rgba(255,255,255,0.3); letter-spacing: 3px; margin-bottom: 30px; }
.staff-row { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }

.staff-card {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 20px; border-radius: 8px; width: 250px;
    display: flex; align-items: center; gap: 15px;
}

.avatar { width: 50px; height: 50px; background: #222; border-radius: 6px; background-size: cover; background-position: center; }
.rank { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.4); font-weight: 700; }
.name { font-weight: 600; font-size: 0.9rem; }
.premium { border: 1px solid rgba(255,255,255,0.2); }
.dev-card { border-left: 3px solid var(--dev-accent); }

.split-container { display: flex; justify-content: center; border-top: 1px solid var(--border); padding-top: 60px; }
.center-divider-staff { width: 1px; background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent); margin: 0 50px; }

.modal {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
}

.modal-content {
    background: #0f0f0f; border: 1px solid var(--border);
    margin: 10% auto; padding: 40px; width: 90%; max-width: 500px;
    border-radius: 15px; text-align: center; position: relative;
    animation: modalScale 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes modalScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal { position: absolute; right: 20px; top: 15px; color: rgba(255,255,255,0.3); font-size: 28px; cursor: pointer; }

.modal-options { display: flex; gap: 20px; margin-top: 30px; }

.modal-opt-card {
    flex: 1; padding: 40px 20px; border: 1px solid var(--border);
    border-radius: 10px; text-decoration: none; color: white;
    font-weight: 800; transition: 0.3s; background-size: cover; background-position: center;
}

.military-opt { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('military.jpg'); }
.life-opt { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('life.jpg'); }

.modal-opt-card:hover { transform: translateY(-5px); border-color: white; }

footer { padding: 50px; text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.2); }

@media (max-width: 900px) {
    .server-grid, .split-container { flex-direction: column; align-items: center; }
    .center-divider, .center-divider-staff { display: none; }
    .server-card { width: 100%; margin-bottom: 20px; }
    .modal-options { flex-direction: column; }
}

.btn-recrutement {
    color: var(--accent) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 4px;
}
.btn-recrutement:hover {
    border-bottom-color: white;
}