/* Style du menu */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Style du burger */
#burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
}

#burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    position: absolute;
    transition: all 0.3s ease;
}

#burger span:nth-child(1) { top: 0; }
#burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
#burger span:nth-child(3) { bottom: 0; }

/* Burger actif */
#burger.is-active span:nth-child(1) { transform: rotate(45deg); top: 50%; }
#burger.is-active span:nth-child(2) { opacity: 0; }
#burger.is-active span:nth-child(3) { transform: rotate(-45deg); top: 50%; }

/* Sous-menus */
.sub-menu {
    display: none;
    position: absolute;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Version mobile */
@media screen and (max-width: 768px) {
    #burger {
        display: block;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .menu-open {
        display: flex;
    }

    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .sub-menu-open {
        display: block;
    }

    .menu-item-has-children {
        position: relative;
    }

    .menu-item-has-children::after {
        content: '+';
        position: absolute;
        right: 1rem;
        top: 0.5rem;
    }

    .submenu-active::after {
        content: '-';
    }
} 