:root {
    --pink: #ff6ec7;
    --violet: #7b5cff;
    --white: #ffffff;
    --dark: #1e1e2f;
    --gris: #111827;
    --grisfoncer: #000000;
    --gradient: linear-gradient(135deg, var(--pink), var(--violet));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #161E31;
    color: #333;
}

/* NAVBAR */
.navbar {
    background: var(--gris);
    box-shadow: 0 2px 50px rgba(131, 34, 111);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: 0.8s ease;
}

body.loading .navbar {
    transform: translateY(-100%);
    opacity: 0;
}

body.loaded .navbar {
    transform: translateY(0);
    opacity: 1;
}

.navbar-container {
    max-width: 1200px;
    margin: auto;
    padding: 2px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: white;
}

.navbar-logo img {
    height: 80px;
}

/* MENU */
.navbar-menu a {
    margin: 0 14px;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.navbar-menu a:hover {
    color: white;
}

.navbar-menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* BOUTON */
.btn-primary {
    padding: 10px 22px;
    background: white;
    color: var(--violet);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

/* HERO SECTION */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Image + overlay noir flou */
    background: url("../img/hero-bg.jpg") center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* noir foncé semi-transparent */
    backdrop-filter: blur(3px); /* flou léger */
    z-index: 0;
}

.hero-content {
    position: relative; /* pour être au-dessus de ::before */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    animation: fadeUp 1.2s ease forwards;
}

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

/* NAVBAR MENU - liens principaux */
.navbar-menu > a,
.navbar-menu > .dropdown > a {
    margin: 0 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px; /* espace pour la barre */
    border-bottom: none; /* enlever la barre blanche par défaut */
    text-decoration: none; /* enlever soulignement */
    transition: 0.3s;
}

/* Barre animée sous les liens principaux */
.navbar-menu > a::after,
.navbar-menu > .dropdown > a:first-child::after { /* seulement le lien du dropdown parent */
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Hover pour les liens principaux */
.navbar-menu > a:hover::after,
.navbar-menu > .dropdown:hover > a:first-child::after {
    width: 100%;
}

.dropdown-content a::after {
    content: none; /* supprime toute pseudo-barre */
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Contenu du dropdown (caché par défaut) */
.dropdown-content {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: rgba(17,24,39,0.95);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(131, 34, 111);
    z-index: 1000;
    top: 100%; /* au lieu de 100% + 10px */
    margin-top: 5px; /* un petit espace si besoin */
    left: 0;

    /* Animation */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.4s ease;
}

/* Afficher au hover avec animation */
.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Lien dans le dropdown */
.dropdown-content a {
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: 0.3s;
    border: none; /* enlever toute barre */
    background: none; /* aucun fond au hover */
}

.dropdown-content a:hover {
    color: #ff6ec7; /* changement de couleur au hover */
    text-shadow: 0 0 8px #ff6ec7; /* léger glow */
}


.server-title {
    font-size: 64px;
    font-weight: 700;
    color: white;
    text-shadow: 0 10px 40px rgba(0,0,0,0.7);
    letter-spacing: 1px;
    min-height: 80px; /* évite les sauts visuels */
}

.server-title::after {
    content: "";
    margin-left: 6px;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}


.player-box {
    background: rgba(17, 24, 39); /* semi-transparent, style glass */
    backdrop-filter: blur(10px);
    padding: 18px 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(131, 34, 111);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 260px;
}

.player-box span {
    color: rgba(255,255,255,0.8);
}

.player-box strong {
    color: white;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.wave svg {
    width: 100%;
    height: 140px;
}

.wave path {
    fill: #161E31; /* noir bleuté */
    animation: waveMove 8s ease-in-out infinite;
}

@keyframes waveMove {
    0% {
        d: path("M0,80 C240,140 480,20 720,60 960,100 1200,140 1440,90 L1440,150 L0,150 Z");
    }
    50% {
        d: path("M0,60 C240,100 480,140 720,80 960,20 1200,60 1440,40 L1440,150 L0,150 Z");
    }
    100% {
        d: path("M0,80 C240,140 480,20 720,60 960,100 1200,140 1440,90 L1440,150 L0,150 Z");
    }
}

/* ===== LOGO LOADER ===== */
#logo-loader {
    position: fixed;
    inset: 0;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Cercle */
.logo-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6ec7, #7b5cff);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.logo-circle img {
    width: 70px;
}

/* Pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(123,92,255,0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 30px rgba(123,92,255,0);
    }
    100% {
        transform: scale(1);
    }
}

/* FEATURES SECTION */
.features {
    background: #111827;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.features h2 {
    font-size: 42px;
    margin-bottom: 60px;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

/* GRID */
.features-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* CARD */
.feature-card {
    background: #161E31;
    backdrop-filter: blur(8px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(131, 34, 111,0.4);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
}

/* STATS SECTION */
.stats {
    background: #161E31;
    padding: 120px 20px;
}

.stats-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

/* CARD */
.stat-card {
    background: #111827;
    backdrop-filter: blur(10px);
    padding: 50px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(22, 30, 49,0.4);
    transition: 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(131, 34, 111,0.4);
}

/* NUMBER */
.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    position: relative;
}

/* + devant le chiffre */
.stat-number::before {
    content: "+";
    margin-right: 6px;
        background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
}

.stat-card p {
    margin-top: 12px;
    font-size: 16px;
    color: #ffffff;
}

.stats-section {
    background: #111827;
    padding: 120px 20px 80px;
}

.stats-header {
    text-align: center;
    margin-bottom: 80px;
}

.stats-header h2 {
    font-size: 42px;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.stats-header h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6ec7, #7b5cff);
}

.stats-header p {
    font-size: 17px;
    color: #ffffff;
    max-width: 650px;
    margin: auto;
    line-height: 1.6;
}

.server-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background-color: red; /* défaut offline */
    animation: blink 1s infinite;
}

/* Clignotement */
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.4; }
}

.team-section {
    padding: 80px 20px 30px 20px; /* top / right / bottom / left */
    background: #111827;
    text-align: center;
}

.team-header h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
}

.team-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* TEAM CONTAINER */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* FONDATEURS */
.team-card.founder {
    width: 260px; /* plus large que les autres */
    padding: 30px;
    z-index: 10; /* pour qu'ils restent au dessus si besoin */
}

/* Avatar fondateur plus gros */
.team-card.founder .avatar {
    width: 120px;
    height: 120px;
    padding: 4px; /* plus large pour le contour */
}

.team-card.founder .avatar img {
    border-radius: 50%;
}

/* Texte fondateur un peu plus grand */
.team-card.founder h3 {
    font-size: 22px;
}

.team-card.founder .role {
    font-size: 16px;
}

.team-card.founder span {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Membres normaux (taille standard déjà en place) */
.team-card:not(.founder) {
    width: 220px;
    padding: 20px;
}

/* Conteneur fondateurs */
.founders-container {
    display: flex;
    justify-content: center;
    gap: 40px; /* espace entre fondateurs */
    margin-bottom: 40px; /* espace entre fondateurs et autres membres */
    align-items: flex-start; /* pour que tous soient alignés en haut */
}

.members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centre horizontalement */
    gap: 30px;
    align-items: flex-start; /* les cartes démarrent toutes au même niveau */
}


/* Cartes */
.team-card {
    background: #161E31;
    backdrop-filter: blur(12px);
    border-radius: 20px;
    width: 220px;
    padding: 20px;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(131, 34, 111,0.4);
}

/* Avatar rond avec contour animé */
.team-card .avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #161E31, #161E31);
    padding: 3px;
    animation: pulse 2s infinite;
}

.team-card .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Nom et rôle */
.team-card h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.team-card .role {
    font-size: 14px;
    color: #ff6ec7;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Réseaux sociaux */
.team-socials a {
    color: #ff6ec7;
    margin: 0 5px;
    font-size: 18px;
    transition: 0.3s;
}

.team-socials a:hover {
    color: #7b5cff;
}

/* Pulse avatar */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123,92,255,0.5); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(123,92,255,0); }
    100% { transform: scale(1); }
}

/* FadeUp animation au scroll (comme le hero) */
.team-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.team-card span {
    color: #ffffff;
    font-size: 10px;
}

.team-card:nth-child(1) { animation-delay: 0.2s; }
.team-card:nth-child(2) { animation-delay: 0.4s; }
.team-card:nth-child(3) { animation-delay: 0.6s; }
.team-card:nth-child(4) { animation-delay: 0.8s; }

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

/* Section Discord */
.discord-invite {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #161E31;
}

.discord-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 300px;
    border-radius: 30px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Image floue */
.discord-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/discord.png') center/cover no-repeat;
    filter: blur(4px); /* flou */
    z-index: 1;
}

/* Overlay sombre */
.discord-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* noir semi-transparent */
}

/* Texte à gauche */
.discord-text {
    position: relative;
    z-index: 2; /* devant l'image floue */
    max-width: 500px;
    padding-left: 20px;
}

.discord-text h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
}

.discord-text p {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

/* Boutons à droite */
.discord-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding-right: 20px;
}

/* Boutons */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    transition: 0.3s;
    text-align: center;
}

.btn-discord {
    background: #6f42c1;
    color: #fff;
}

.btn-discord:hover {
     background: #532b99;
}

.btn-server {
    background: #6f42c1;
    color: #fff;
}

.btn-server:hover {
    background: #532b99;
}


/* ------------------ HERO PARTENAIRES ------------------ */
.hero-partenaire {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-partenaire::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* overlay sombre */
    backdrop-filter: blur(3px); /* léger flou */
    z-index: 0;
}

.hero-partenaire .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    border-radius: 12px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
}

/* ------------------ PARTENAIRES ------------------ */
.partenaire-section {
    padding: 30px 20px 60px 20px;
    background: #111827;
    color: #fff;
    text-align: center;
}

.partenaire-section h1 {
    font-size: 36px;
    margin-bottom: 5px;
}

/* Container des cards flip */
.partenaire-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
}

/* Card flip */
.partenaire-card {
    width: 250px;
    height: 300px;
    background-color: #161E31;
    position: relative;
    border-radius: 15px;
    perspective: 1000px;
}

/* Front & Back */
.partenaire-card .card-front,
.partenaire-card .card-back {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.6s;
}

/* Front */
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Back */
.card-back {
    background: #161E31;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Flip on hover */
.partenaire-card:hover .card-front {
    transform: rotateY(180deg);
}

.partenaire-card:hover .card-back {
    transform: rotateY(0deg);
}

/* Texte + bouton back */
.card-back h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card-back p {
    font-size: 14px;
    margin-bottom: 15px;
}

.partenaire-intro {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 30px;
    text-align: center;
}

/* ------------------ DEMANDE DE PARTENARIAT ------------------ */
.partenaire-demande {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    background: #161E31;
}

.partenaire-card-demande {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Image floue + sombre */
.bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/partenaire.jpg') center/cover no-repeat;
    filter: blur(6px) brightness(0.5);
    z-index: 1;
}

/* Texte à gauche */
.demande-text {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding-left: 30px;
}

.demande-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.demande-text p {
    font-size: 16px;
    line-height: 1.4;
}

/* Boutons à droite */
.demande-btns {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 30px;
}

/* ------------------ BOUTONS ------------------ */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    transition: 0.3s;
    text-align: center;
}

/* ------------------ Formulaire partenaire ------------------ */
.formulaire-section {
        max-width: 900px;
        margin: 0 auto;
        background-color: #161E31;
        padding: 60px 20px;
    }

    .formulaire-section h1 {
        font-size: 44px;
        margin-bottom: 10px;
        text-align: center;
        background: var(--gradient);
        -webkit-background-clip: text;
        color: transparent;
    }

    .form-intro {
        font-size: 18px;
        color: #cbd5e1;
        margin-bottom: 50px;
        text-align: center;
    }

    .form-message {
        padding: 15px 20px;
        border-radius: 10px;
        margin-bottom: 25px;
        font-weight: bold;
        text-align: center;
        font-size: 15px;
    }

    .form-success { background-color: #16a34a; color: #e6f4ea; }
    .form-error { background-color: #dc2626; color: #ffe5e5; }

.partenaire-form {
    background-color: #161E31;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Ligne avec 2 colonnes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #94a3b8;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: none;
    background-color: #0f172a;
    color: #f1f5f9;
    font-size: 15px;
    outline: none;
}

.field textarea {
    resize: none;
    height: 140px;
}

.field input:focus,
.field textarea:focus {
    box-shadow: 0 0 0 2px #6366f1;
}

.field input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.field select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: none;
    background-color: #0f172a;
    color: #f1f5f9;
    font-size: 15px;
    opacity: 0.8;
    appearance: none;
}

/* Consentement */
.consentement-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

/* Bouton */
.partenaire-form button {
    padding: 16px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    background: var(--gradient);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.partenaire-form button:hover {
    background-color: #4f46e5;
}

/* Mobile */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.save-btn {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #6f42c1;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.save-btn:hover {
    background: #532b99;
}

.topserveur-section {
    padding: 60px 20px;
    color: #ffffff;
    background: #111827;
}

.topserveur-container {
    display: flex;
    max-width: 1300px;
    margin: auto;
    gap: 50px;
    background: #111827;
    align-items: flex-start; /* laisse les items en haut */
    min-height: 800px;       /* assure que le sticky a assez de hauteur */
}

/* GAUCHE - Vote & Lots */
.topserveur-left {
    width: 380px;       /* largeur fixe */
    position: sticky;
    top: calc(50vh - 200px); /* centre vertical selon la fenêtre */
    /* 200px = moitié de la hauteur approximative de la carte */
}

.topserveur-card {
    background: #161E31;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    text-align: center;
}

.topserveur-card h2 {
    font-size: 25px;
    margin-bottom: 15px;
    color: white;
}

.reward-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: center;
}

.reward-list li {
    margin-bottom: 10px;
}

.btn-vote {
    display: block;        /* obligatoire pour que width fonctionne */
    width: 100%;           /* prend toute la largeur du parent (.topserveur-card) */
    text-align: center;    /* centre le texte */
    padding: 15px 0;       /* ajuste la hauteur */
    background: #6f42c1;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-vote:hover {
    transform: scale(1.03); /* léger effet hover */
    background: #532b99;
}

/* DROITE - Classement */
.topserveur-right {
    flex: 1;            /* prend tout l’espace restant */
    margin-left: auto;  /* pousse le tableau plus à droite */
    min-width: 650px;
}

.ranking-table {
    margin-top: 25px;
    background: #161E31;
    border-radius: 15px;
    overflow: hidden;
}

.ranking-header,
.ranking-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    padding: 15px 20px;
    align-items: center;
}

.ranking-header {
    background: #161E31;
    font-weight: bold;
}

.ranking-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ranking-row:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

.rank {
    font-weight: bold;
    color: #7c4dff;
}

.votes {
    text-align: right;
}

.hr-vote {
    display: block;               /* assure l'affichage correct */
    width: 100%;                  /* prend toute la largeur de sa carte */
    height: 4px;                  /* hauteur du trait */
    border: none;                 /* supprime la bordure par défaut */
    background: var(--gradient);  /* applique ton gradient */
    border-radius: 2px;           /* arrondir légèrement si tu veux */
}

.ranking-empty {
    display: flex;
    justify-content: center;  /* centre horizontalement */
    text-align: center;       /* centre le texte */
    padding: 10px;
    font-weight: bold;
    color: white;       /* facultatif */
}

/* Section métiers / gangs */
.metiers-section {
    padding: 60px 20px;
    background: #111827;
    color: #fff;
    text-align: center;
}

.metiers-section h1 {
    font-size: 36px;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.metiers-intro {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Container des cartes */
.metiers-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* Carte métier / gang rectangle */
.metier-card {
    background: #161E31;
    display: flex;
    align-items: center;
    width: 350px;
    min-height: 120px;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.metier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(131, 34, 111,0.6);
}

/* Logo à gauche */
.metier-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.metier-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texte à droite */
.metier-info {
    text-align: left;
}

.metier-type {
    font-size: 14px;
    color: #ff6ec7;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.metier-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .metier-card {
        width: 90%;
        flex-direction: row;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .metier-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .metier-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .metier-info {
        text-align: center;
    }
}

.navbar-actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav{
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: .2s ease;
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-login, .btn-dashboard{
    background: rgba(155, 89, 255, 0.18);
    color: #fff;
}

.btn-login:hover, .btn-dashboard:hover{
    transform: translateY(-1px);
    background: rgba(155, 89, 255, 0.28);
}

.btn-logout{
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-logout:hover{
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
}

/* =========================
   DASHBOARD PRO SIDEBAR
========================= */

.dash{
    min-height: 100vh;
    background: #161E31;
    color: #fff;
    display: flex;
    overflow: hidden;
}

/* SIDEBAR */
.dash-sidebar{
    width: 290px;
    background: #111827;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    position: relative;
}

.dash-sidebar__top{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-brand{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.dash-brand img{
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 14px;
}

.dash-brand__name{
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
}

.dash-brand__sub{
    font-size: 12px;
    opacity: .7;
    margin-top: 2px;
}

/* Profile card */
.dash-profile{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(155, 89, 255, 0.10);
    border: 1px solid rgba(155, 89, 255, 0.20);
}

.dash-profile__avatar{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.10);
}

.dash-profile__name{
    font-weight: 700;
    font-size: 14px;
}

.dash-profile__id{
    font-size: 12px;
    opacity: .75;
    margin-top: 2px;
}

/* Nav */
.dash-nav{
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-nav__item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border: 1px solid transparent;
    transition: .18s ease;
}

.dash-nav__item:hover{
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

.dash-nav__item.active{
    background: rgba(155, 89, 255, 0.18);
    border-color: rgba(155, 89, 255, 0.28);
    color: #fff;
}

.dash-ico{
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
}

/* Bottom */
.dash-sidebar__bottom{
    margin-top: auto;
    padding-top: 14px;
}

.dash-logout{
    display: block;
    text-align: center;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: .18s ease;
}

.dash-logout:hover{
    background: rgba(255,255,255,0.10);
}

/* MAIN */
.dash-main{
    flex: 1;
    min-width: 0;
    padding: 22px 26px;
}

/* TOPBAR */
.dash-topbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 18px;
}

.dash-burger{
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
}

.dash-title{
    font-size: 16px;
    font-weight: 800;
}

.dash-subtitle{
    font-size: 12px;
    opacity: .7;
    margin-top: 3px;
}

.dash-chip{
    text-decoration: none;
    color: #fff;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(155, 89, 255, 0.16);
    border: 1px solid rgba(155, 89, 255, 0.24);
    transition: .18s ease;
}

.dash-chip:hover{
    background: rgba(155, 89, 255, 0.24);
}

/* CONTENT */
.dash-content{
    max-width: 1100px;
    margin: 0 auto; /* centre horizontalement */
    width: 100%;
}

.dash-card{
    padding: 18px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.dash-card__head{
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.dash-card__title{
    font-weight: 800;
    font-size: 14px;
}

.dash-card__hint{
    font-size: 12px;
    opacity: .7;
}

.dash-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dash-field{
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.dash-label{
    font-size: 12px;
    opacity: .7;
    margin-bottom: 6px;
}

.dash-value{
    font-size: 14px;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 900px){
    .dash{
        position: relative;
    }

    .dash-burger{
        display: inline-grid;
        place-items: center;
    }

    .dash-sidebar{
        position: fixed;
        left: -320px;
        top: 0;
        height: 100vh;
        z-index: 50;
        transition: left .22s ease;
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }

    .dash-sidebar.open{
        left: 0;
        box-shadow: 0 20px 80px rgba(0,0,0,0.45);
    }

    .dash-main{
        padding: 18px 14px;
    }

    .dash-grid{
        grid-template-columns: 1fr;
    }
}

/* ===== STAT CARDS ===== */

.stat-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card{
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.stat-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.stat-title{
    font-size: 13px;
    font-weight: 800;
    opacity: .9;
}

.stat-badge{
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(155, 89, 255, 0.16);
    border: 1px solid rgba(155, 89, 255, 0.22);
}

.stat-value{
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .2px;
}

.stat-sub{
    margin-top: 8px;
    font-size: 12px;
    opacity: .72;
    line-height: 1.5;
}

@media (max-width: 1100px){
    .stat-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
    .stat-grid{ grid-template-columns: 1fr; }
}

.dash-topbar__right{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap; /* important si petit écran */
}

.dash-topbar__left{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap; /* important si petit écran */
}

/* Section globale */
.dash-nav__section {
    margin-bottom: 14px; /* réduit l’espace entre catégories */
}

/* Supprime totalement la barre */
.dash-nav__section:not(:last-child) {
    border-bottom: none;
    padding-bottom: 0;
}

/* Label catégorie */
.dash-nav__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #8a8fa3;
    padding: 8px 18px 4px 18px;
    text-transform: uppercase;
}

/* Plus d’espace entre les boutons */
.dash-nav__item {
    margin: 6px 0; /* espace vertical entre chaque bouton */
}

.dash-card--big{
    padding: 18px;
}

.vote-grid{
    display: grid;
    gap: 24px; /* espace entre les 2 cards */
    margin-top: 20px;
}

.vote-step{
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.vote-step__num{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight: 700;
    background: rgba(138, 90, 255, 0.18);
}

.vote-step__title{
    font-weight: 700;
    margin-bottom: 6px;
}

.vote-step__text{
    opacity: .9;
    line-height: 1.35;
}

.vote-step__actions{
    margin-top: 10px;
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vote-note{
    opacity: .85;
    margin-right: 6px;
}

.vote-badge{
    display:inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
}

.dash-chip--primary{
    background: rgba(138, 90, 255, 0.9);
    border: 1px solid rgba(138, 90, 255, 0.95);
}

.vote-footer{
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.vote-footer__title{
    font-weight: 700;
    margin-bottom: 4px;
}

.vote-footer__tip{
    opacity: .8;
    font-size: 13px;
}

@media (min-width: 900px){
    .vote-grid{
        grid-template-columns: 1fr 1fr; /* moitié / moitié */
    }
}

/* Mobile */
@media (max-width: 899px){
    .vote-grid{
        grid-template-columns: 1fr; /* 100% largeur */
    }
}






































.site-footer {
    width: 100%; /* toute la largeur */
    background: var(--gris);
    color: rgba(255,255,255,0.85);
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 14px;
}