/* OVERLAY */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* SIDE MENU */
#side-menu {
    position: fixed;
    top: 0;
    left: -1200px;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    padding: 1rem;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
    display:none;
}

#side-menu.open {
    display:block;
    left: 0;
}

@media (max-width: 991px) {
    #side-menu {
        width: 100%;
    }
}

#side-menu button#close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

#side-menu button#close-btn img {
    width: 30px;
    height: auto;
}

#side-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

#side-menu li {
    margin: 0.5rem 0;
}

#side-menu li strong,
.submenu li strong {
    display: block;
    margin-top: 1rem;
    font-size: 1.7rem;
    color: #333;
}

#side-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 1rem;
    background: #f9f9f9;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
    min-height: 50px;
}

#side-menu li a:hover {
    background: #e6e6e6;
}

#side-menu li a .menu-icon,
.submenu-list li a .menu-icon,
.submenu-list li span.linkObfusquer .menu-icon
{
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-right: 1rem !important;
}

#side-menu li a .menu-text,
.submenu-list li a .menu-text,
.submenu-list li span.linkObfusquer .menu-text
{
    flex: 1;
    font-size:16px;
}

#side-menu li a .arrow,
.submenu-list li a .arrow,
.submenu-list li span.linkObfusquer .arrow,
.collapse-content li a .arrow,
.collapse-content li span.linkObfusquer .arrow
{
    width: 18px;
    height: auto;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* SUBMENU */
.submenu {
    position: fixed;
    top: 0;
    left: -400%;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    overflow-y: auto;
    transition: left 0.3s ease;
    display: none;
    z-index: 1001;
}

.submenu.open {
    left: 0;
    padding: 1rem;
    display: block;
}

@media (max-width: 991px) {
    .submenu {
        width: 100%;
    }
}

.submenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.submenu-header .submenu-title {
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
}

.submenu-back,
.submenu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.submenu-back img,
.submenu-close img {
    width: 30px;
    height: auto;
}

.submenu .submenu-image{
    position:relative;
}

.submenu .submenu-image img{
    width: 100%;
    object-fit: cover;
}

.submenu .btn-gamme{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0 1rem 0;
}

.submenu-list li {
    margin: 0.5rem 0;
}

#side-menu li a,
.submenu-list li a,
.submenu-list li span.linkObfusquer,
.submenu-list li.has-collapse .collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 1rem;
    background: #f9f9f9;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
    min-height: 50px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .submenu-list li a,
    .submenu-list li span.linkObfusquer,
    .submenu-list li.has-collapse .collapse-toggle{
        font-size: 14px;
    }
}

.submenu-list li a:hover,
.submenu-list li span.linkObfusquer:hover,
.submenu-list li.has-collapse .collapse-toggle:hover {
    background: #e6e6e6;
}

.submenu-list li.has-collapse .collapse-toggle .menu-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-right: 1rem;
}

/* COLLAPSE */
.collapse-arrow {
    width: 18px;
    height: auto;
    margin-left: 1rem;
    flex-shrink: 0;
    transform: rotate(90deg);
}

.has-collapse[aria-expanded="true"] .collapse-arrow {
    transform: rotate(270deg);
}

.collapse-content {
    list-style: none;
    margin: 0.5rem 0 0;
    padding-left: 1rem;
}

.collapse-content li a,
.collapse-content li span.linkObfusquer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 1rem;
    text-decoration: none;
    color: #333;
    min-height: 36px;
    background: white;
}

.collapse-content li a:hover,
.collapse-content li span.linkObfusquer:hover
{
    background: #ddd;
}



/* TOPBAR */
.topbar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.top-links ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-links li {
    display: flex;
    align-items: center;
}

.top-links a {
    text-decoration: none;
    color: #222;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

.top-links a:hover{
    text-decoration: underline;
    text-underline-offset: 8px;
}

/* BURGER MENU */
.burger-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.burger-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: #000;
}

.burger-icon::before,
.burger-icon::after {
    content: "";
    width: 20px;
    height: 2px;
    background-color: #000;
    position: absolute;
    left: 0;
}

.burger-icon::before {
    top: -6px;
}

.burger-icon::after {
    top: 6px;
}

.burger-label {
    font-size: 0.9rem;
}