/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #111827, #1f2933);
    color: #e5e7eb;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(6px);

    border-bottom: 1px solid rgba(236, 72, 153, 0.25);
    z-index: 1000;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ec4899;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    height: 100%;           /* occupe toute la hauteur de la navbar */
    align-items: center;    /* centre verticalement les <li> */
    margin: 0;              /* supprime les marges par défaut de <ul> */
    padding: 0;             /* supprime les paddings par défaut */
}

.nav-links li {
    display: flex;          /* permet de centrer le lien à l’intérieur du li */
    align-items: center;    /* centre verticalement le lien */
}

.nav-links li a {
    display: flex;           /* pour que ::after se place correctement */
    align-items: center;     /* centre le texte verticalement */
    height: 100%;            /* prend toute la hauteur du li */
    text-decoration: none;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    padding: 0 5px;          /* petit padding pour le hover */
}

.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: 0;               /* place le trait au bas du texte */
    left: 0;
    width: 0%;
    height: 2px;
    background: #ec4899;
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;            /* effet d’animation du soulignement */
}


/* ================= HERO ================= */
.hero {
    height: 100vh;
    padding-top: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: radial-gradient(
        circle at top,
        rgba(236, 72, 153, 0.08),
        transparent 60%
    );
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #9ca3af;
    margin: 20px 0 35px;
}

/* Bouton */
.btn {
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;

    background: linear-gradient(135deg, #ec4899, #a855f7);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(236, 72, 153, 0.6);
}

/* ================= SECTIONS ================= */
section {
    padding: 100px 60px;
}

.features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    width: 300px;
    padding: 30px;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.25);
}

.feature h2 {
    color: #ec4899;
    margin-bottom: 10px;
}

.feature p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* ================= ANIMATIONS ================= */

/* Hero text animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition: all 0.8s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.hero-title.show {
    text-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

/* Scroll sections */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0 25px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* ================= ONGLET ACTIF ================= */
.nav-links li a.active {
    color: #ec4899;
}

.nav-links li a.active::after {
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}


.user-info img {
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

.login {
    margin-top: 140px;              /* passe sous la navbar */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 320px;
    padding: 30px;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.login h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #ec4899;
}

.login input {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #111827;
    color: #e5e7eb;
}

.login button {
    padding: 12px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ec4899, #a855f7);
}

/* ================= NOMBRE DE JOUEURS EN LIGNE ================= */
.fivem {
    margin-top: 40px;
    padding: 20px 30px;
    max-width: 300px;
    background: rgba(31, 41, 55, 0.9); /* fond sombre semi-transparent */
    border: 1px solid rgba(236, 72, 153, 0.3); /* bord rose léger */
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fivem:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}

#players {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ec4899; /* texte rose */
    text-shadow: 0 0 12px rgba(236, 72, 153, 0.8); /* glow rose */
    text-align: center;
    margin: 0 auto;
    transition: all 0.3s;
}

#server {
    display: flex;
    justify-content: center;
}

.server-btn {
    all: unset;
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.server-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

/* ================= PANEL ADMIN ================= */

.admin-panel {
    margin-top: 100px;
    padding: 60px;
}

.admin-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.admin-card {
    flex: 1;
    min-width: 220px;
    padding: 25px;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(236, 72, 153, 0.25);
    text-align: center;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
}

.admin-card h3 {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.admin-card p {
    font-size: 2rem;
    font-weight: 700;
    color: #ec4899;
}

.admin-section h2 {
    margin-bottom: 25px;
    color: #ec4899;
}

.admin-search {
    width: 100%;
    max-width: 450px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: #111827;
    color: #e5e7eb;
    margin-bottom: 30px;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 16px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
}

.admin-table thead {
    background: rgba(236, 72, 153, 0.15);
}

.admin-table th {
    color: #ec4899;
    font-weight: 600;
}

.admin-table tr {
    border-bottom: 1px solid rgba(236, 72, 153, 0.15);
}

.admin-table tr:last-child {
    border-bottom: none;
}

.admin-table td .btn {
    padding: 8px 18px;
    font-size: 0.8rem;
    margin-right: 6px;
}

/* ================= PANEL ADMIN FIX ================= */

.admin-panel {
    margin-top: 140px;      /* passe SOUS la navbar */
    padding: 60px;
}

.admin-panel h1 {
    color: #ec4899;
    margin-bottom: 15px;
}

.admin-panel p {
    color: #9ca3af;
    font-size: 1rem;
}
