/* --- BASE --- */
body {
    background-color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
}

.main-wrapper {
    max-width: 1100px;
    margin-left: 240px;
    flex-grow: 1;
}

/* --- TITRES --- */
.group-main-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.category-title {
    font-size: 1.5rem;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 5px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.item-title {
    font-size: 1.1rem;
    color: #444;
    margin: 20px 0 10px 0;
    scroll-margin-top: 20px;
}

/* --- GRILLE --- */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.sticker-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.sticker-grid img:hover { transform: scale(1.02); }

/* --- SOMMAIRE (FIXE SUR PC) --- */
.sidebar-sommaire {
    width: 200px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #fdfdfd;
    border-right: 1px solid #eaeaea;
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-sommaire h4 {
    font-size: 14px;
    border-bottom: 3px solid #DA251D;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.sommaire-section { margin-bottom: 20px; }

.sommaire-section p {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    margin-bottom: 8px;
}

.sommaire-section a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.sommaire-section a:hover { color: #DA251D; }

.back-home {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

/* --- BOUTON HAMBURGER --- */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: #DA251D;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Anim du bouton X */
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .sidebar-sommaire {
        left: -100%; /* Sort de l'écran par la gauche */
        transition: 0.3s ease-in-out;
        width: 250px;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }

    .sidebar-sommaire.active {
        left: 0; /* Entre sur l'écran */
    }

    .main-wrapper {
        margin-left: 0;
        padding-top: 40px;
    }

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