:root {
    --nav-link-color: light-dark(#8cc63f, #6a9630); /* Vert Bla5t */
    --nav-link-hover: light-dark(#76ab31, #8cc63f);
    --border-color: light-dark(#e2e2e2, #646464);
    --bg-title: light-dark(#f7f7f5, #676765);
    --text-dark: light-dark(#333333, #9aac82);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: light-dark(#ffffff, #333333);
    color: var(--text-dark);

}

/* --- HEADER & NAVBAR --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: light-dark(#ffffff, #464646);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    height: 75px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--nav-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active-link {
    color: var(--nav-link-hover);
}

.burger-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--nav-link-color);
    cursor: pointer;
}

/* --- MAIN & SECTIONS --- */
main {
    margin-top: 75px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.section-header {
    background-color: var(--bg-title);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: light-dark(#8cc63f, #6a9630);
    line-height: 1.1;
}

.section-body {
    padding: 40px 24px;
}

/* --- GRILLE DES PERSONNAGES --- */
.category-title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 36px;
    color: light-dark(#3f3f3f, #cbcbcb);
    margin: 40px 0 20px 0;
    border-bottom: 2px solid var(--nav-link-color);
    padding-bottom: 5px;
}

.category-title:first-child {
    margin-top: 0;
}

.perso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.perso-card {
    background: light-dark(#ffffff, #464646);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.perso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.perso-img-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.img-perso {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.picto-value {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: auto;
}

.perso-card h2 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 28px;
    color: light-dark(#222, #9aac82);
    margin-bottom: 10px;
}

.perso-card p {
    font-size: 14px;
    line-height: 1.4;
    color: light-dark(#666, #9e9e9e);
}

/* Style spécifique pour le Super Méchant centré */
.perso-grid-centered {
    display: flex;
    justify-content: center;
}

.perso-grid-centered .perso-card {
    max-width: 320px;
    width: 100%;
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 1024px) {
    .perso-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .burger-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: light-dark(#ffffff, #464646);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }

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

    .nav-item {
        text-align: center;
        border-top: 1px solid #f0f0f0;
    }

    .nav-link {
        display: block;
        padding: 15px;
        font-size: 24px;
    }

    .perso-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .perso-grid {
        grid-template-columns: 1fr;
    }
}
