/* ===== Base CSS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Figtree", sans-serif;
    font-size: 16px;
}

a, a:hover {
    text-decoration: none;
    outline: none;
}

ul, li {
    list-style: none;
}

/* ===== Mobile Header ===== */
.mobile-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 17px 0;
    z-index: 999;
}

.mobile-header-elements {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo a img {
    max-height: 40px;
}

.mobile-nav-icon {
    font-size: 23px;
    border: 1px solid #161616;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: #161616;
    cursor: pointer;
}

/* ===== Mobile Sidebar ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #F6F6EC;
    padding: 40px 30px;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    overflow-y: auto;
}

.mobile-sidebar.mobile-menu-active {
    left: 0;
    visibility: visible;
    opacity: 1;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 25px;
    color: #161616;
    cursor: pointer;
}

/* ===== Mobile Nav ===== */
.mobile-nav li a {
    font-size: 18px;
    color: #161616;
    padding: 10px 0;
    display: block;
    font-weight: 500;
}

.mobile-nav li {
    position: relative;
}

/* ===== Sous-menus ===== */
.mobile-nav ul.sub-menu {
    display: none; /* caché par défaut */
    padding-left: 15px;
}

[dir="rtl"] .mobile-nav ul.sub-menu {
    padding-left: 0;
    padding-right: 15px;
}

/* ===== Bouton sous-menu ===== */
.submenu-button {
    position: absolute;
    top: 0;
    width: 100%;
    height: 44px;
    cursor: pointer;
    z-index: 2;
}

/* Icône sous-menu LTR */
.submenu-button em {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #161616;
    transition: transform 0.3s;
}

/* Icône sous-menu RTL */
[dir="rtl"] .submenu-button em {
    right: auto;
    left: 10px;
}

/* Rotation icône quand ouvert */
.submenu-button.submenu-opened em {
    transform: rotate(90deg);
}

/* ===== Scroll menu mobile ===== */
ul.mobile-nav-list {
    max-height: 500px;
    overflow-y: auto;
}
