/* Applique border-box à tous les éléments pour que padding
   et border soient inclus dans la largeur/hauteur totale */
* {
    box-sizing: border-box;
}

/* =============================================
   DÉCLARATIONS DE POLICES PERSONNALISÉES
   ============================================= */

/* Police Luckiest Guy (titres, header, footer) */
@font-face {
    font-display: swap;
    font-family: 'Luckiest Guy';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/luckiest-guy-v25-latin-regular.woff2') format('woff2');
}

/* Police Montserrat (textes courants, paragraphes) */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* =============================================
   EN-TÊTE (HEADER)
   ============================================= */
header {
    background-color: #e74c3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: 'Luckiest Guy', "Lucida Grande", sans-serif;
    font-size: 2.75rem;
    height: 75px;
    padding: 0 20px;
    position: sticky;
    top: 0;
}

/* =============================================
   MENU HAMBURGER
   ============================================= */
.menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.barre {
    width: 35px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

/* =============================================
   TYPOGRAPHIE
   ============================================= */
p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    text-align: justify;
    margin: 40px;
}

h1 {
    font-family: 'Luckiest Guy', "Lucida Grande", sans-serif;
    font-size: 3rem;
    text-align: center;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    text-align: center;
}

/* =============================================
   IMAGES
   ============================================= */
img {
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 50px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* =============================================
   PIED DE PAGE (FOOTER)
   ============================================= */
footer {
    font-family: 'Luckiest Guy', "Lucida Grande", sans-serif;
    font-size: 1.3rem;
    text-align: center;
    color: white;
    background-color: #2a6fdb;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: white;
    margin: 6px 20px 4px 20px;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.footer-logos img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: none;
}

/* =============================================
   PAGE MENU - FOND BICOLORE (nav-bg)
   ============================================= */
.nav-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.nav-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #2a6fdb;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.nav-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #e74c3c;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.menu a {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =============================================
   PAGE MENU - OVERLAY DE NAVIGATION
   ============================================= */
.nav-overlay {
    position: fixed;
    inset: 0;
}

.nav-overlay nav {
    position: relative;
}

.nav-overlay a {
    display: block;
}

/* =============================================
   NAVIGATION (PAGE MENU)
   ============================================= */
nav {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

nav a {
    font-family: 'Luckiest Guy', "Lucida Grande", sans-serif;
    color: white;
    text-decoration: none;
    text-align: center;
    width: 100%;
    font-size: 60px;
}

li {
    width: fit-content;
}

/* =============================================
   LISTES
   ============================================= */
ul {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 75px;
}

/* =============================================
   TABLEAU (PAGE ARÈNES)
   ============================================= */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    margin: 75px auto;
    text-align: center;
    max-width: 600px;
}

th {
    background-color: #2a6fdb;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    padding: 14px 20px;
    text-align: left;
}

td {
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #fde8e8;
}

.trophees {
    background-color: #e74c3c;
}

/* =============================================
   MISE EN ÉVIDENCE (PAGE VERSION BÊTA)
   ============================================= */
.highlight {
    color: #e74c3c;
    font-weight: 500;
}

/* =============================================
   VIDÉO RESPONSIVE (PAGE GAMEPLAY)
   ============================================= */
.video {
    width: 100%;
    max-width: 1600px;
    height: 800px;
    margin: auto;
    display: block;
}

/* =============================================
   CORPS DE PAGE
   ============================================= */
body {
    padding-bottom: 160px;
}

/* =============================================
   MEDIA QUERIES - MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {

    header {
        font-size: 1.6rem;
        height: 60px;
        padding: 0 12px;
    }

    .barre {
        width: 26px;
        height: 3px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.1rem;
        margin: 10px 16px;
    }

    p {
        font-size: 1rem;
        margin: 16px;
        text-align: left;
    }

    footer {
        font-size: 1.4rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .video {
        width: 100%;
        height: 250px;
    }

    body {
        padding-bottom: 60px;
    }

    nav a {
        font-size: 1.5rem;
    }

    nav {
        gap: 10px;
    }

    ul {
        font-size: 1rem;
        margin-bottom: 60px;
        padding-left: 20px;
    }

    table {
        max-width: 100%;
        margin: 30px auto;
        font-size: 0.9rem;
    }

    th {
        font-size: 0.9rem;
        padding: 10px 8px;
    }

    td {
        padding: 8px 8px;
        font-size: 0.85rem;
    }
}

/* =============================================
   MEDIA QUERIES - PETITS MOBILES (max-width: 600px)
   ============================================= */
@media (max-width: 600px) {

    header {
        font-size: 1.6rem;
        height: 60px;
        padding: 0 12px;
    }

    .barre {
        width: 26px;
        height: 3px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.1rem;
        margin: 10px 16px;
    }

    p {
        font-size: 1rem;
        margin: 16px;
        text-align: left;
    }

    img {
        max-width: 100%;
        border-radius: 16px;
        margin: 0 auto;
    }

    footer {
        font-size: 1.4rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .video {
        width: 100%;
        height: 250px;
    }

    body {
        padding-bottom: 60px;
    }

    nav a {
        font-size: 1.5rem;
    }

    nav {
        gap: 10px;
    }

    ul {
        font-size: 1rem;
        margin-bottom: 60px;
        padding-left: 20px;
    }

    table {
        max-width: 100%;
        margin: 30px auto;
        font-size: 0.9rem;
    }

    th {
        font-size: 0.9rem;
        padding: 10px 8px;
    }

    td {
        padding: 8px 8px;
        font-size: 0.85rem;
    }
}