/* Fichier : httpdocs/modbyouss.css */

:root {
    --color-black: #050505;
    --color-dark-grey: #111111;
    --color-red: #E31B23;
    --color-gold: #FDEE00;
    --color-white: #FFFFFF;
    --color-muted: #CCCCCC;
    --transition-fast: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 70px; /* Espace pour le header fixe */
}

/* --------------------------------------------------------
   HEADER & NAVIGATION RESPONSIVE (MENU BURGER)
   -------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 2px solid var(--color-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
}

.nav-logo span {
    color: var(--color-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
}

/* Bouton Burger */
.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.burger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all var(--transition-fast);
    background-color: var(--color-white);
}

/* --------------------------------------------------------
   STRUCTURE DU CMS MODULAIRE (BLOCS DE CONTENU)
   -------------------------------------------------------- */
.section-block {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Composant Spécifique : Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(5,5,5,1), rgba(227,27,35,0.12));
    text-align: center;
    min-height: 50vh;
}

.hero-section h1 {
    color: var(--color-gold);
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(253,238,0,0.4);
    font-weight: 900;
}

.hero-section p {
    font-size: 1.4rem;
    color: var(--color-muted);
    max-width: 800px;
    line-height: 1.6;
}

/* Composant Spécifique : Leaderboard */
.leaderboard-section {
    width: 100%;
}

.leaderboard-section h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.table-container {
    width: 100%;
    max-width: 1100px;
    overflow-x: auto;
    background-color: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(227,27,35,0.25);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

th, td {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

th {
    background-color: var(--color-red);
    color: var(--color-white);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
}

tr {
    transition: background-color var(--transition-fast);
}

tr:hover {
    background-color: rgba(227, 27, 35, 0.08);
}

/* Indexation des Couleurs des Rangs (Podium) */
.rank-1 td {
    color: var(--color-gold);
    font-weight: 800;
    font-size: 1.15rem;
    background-color: rgba(253, 238, 0, 0.03);
}

.rank-2 td {
    color: #DDE2E6;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.02);
}

.rank-3 td {
    color: #CD7F32;
    font-weight: 700;
    background-color: rgba(205, 127, 50, 0.02);
}

/* --------------------------------------------------------
   MEDIA QUERIES (RESPONSIVE CHIRURGICAL)
   -------------------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .burger {
        display: block;
    }

    /* Transformation du menu classique en volet mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(5, 5, 5, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        border-top: 1px solid rgba(227,27,35,0.2);
        padding-top: 50px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 25px 0;
    }

    .nav-link {
        font-size: 1.3rem;
        display: block;
        width: 100%;
    }

    /* Animations de transformation du bouton burger (Croix) */
    .burger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .burger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-red);
    }

    .burger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-red);
    }

    /* Ajustement de la typographie globale sur mobile */
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    th, td {
        padding: 15px 20px;
    }
}