:root {
    --primary: #FFD100;
    --secondary: #8A2BE2;
    --accent: #00C853;
    --light: #f8f9fa;
    --dark: #121212;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lilita One", sans-serif;
}

/* ---------------- Bandeau en haut ---------------- */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    font-family: "Lilita One", sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin: 0;
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* ABOUT */
#about {
    padding-top: 140px;
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary);
    font-size: 3rem;
}

.section-title p {
    color: var(--gray);
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 80px;
}

.team-member {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.team-member img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* TEXTE CACHÉ */
.hover-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 15px;
}

/* HOVER */
.team-member:hover img {
    transform: scale(1.05);
}

.team-member:hover .hover-text {
    max-height: 300px;
    opacity: 1;
}

.hover-text h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.hover-text p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* MODERATOR */
.moderator {
    max-width: 900px;
    margin: auto;
    text-align: center;
    color: var(--gray);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light);
    border-radius: 3px;
}

/* ---------------- Footer ---------------- */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

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

    .hover-text {
        max-height: none;
        opacity: 1;
    }
}

@font-face {
    font-family: "Lilita One";
    src: url("./fonts/LilitaOne.ttf") format("truetype");
}

@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .nav-links {
        display: none;
        position: fixed;           /* 🔥 clé */
        top: 80px;                 /* hauteur du header */
        left: 0;
        width: 100%;               /* ❌ PAS 100vw */
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 12px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

}@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .nav-links {
        display: none;
        position: fixed;           /* 🔥 clé */
        top: 80px;                 /* hauteur du header */
        left: 0;
        width: 100%;               /* ❌ PAS 100vw */
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 12px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}
