

/* --- BARRE DE NAVIGATION MOBILE (FIXE HAUT) --- */
.main-header-mobile {
    background-color: #ffffff;
    height: 60px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
}

.mobile-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 5px;
}

/* Bouton Burger Style Minimaliste XD */
.mobile-menu-btn {
    background: none;
    border: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn .burger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-site-2);
    transition: all 0.3s ease;
}
.mobile-menu-links li  svg {
    width: 18px;
    height: 18px;
    fill: var(--color-site-1);
    margin-right: 5px;
}
/* Logo centré */
.mobile-logo-wrapper {
    max-height: 40px;
}
.logo-mobile-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Actions à droite */
.mobile-action-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.mobile-action-icon img {
    width: 22px;
    height: 22px;
}




.mobile-sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    visibility: hidden;
    transition: visibility 0.3s;
}

/* État ouvert appliqué au body par JS */
body.navbar-open .mobile-sidebar-drawer {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.navbar-open .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}
body.navbar-open .drawer-content {
    left: 0;
}

/* Entête tiroir */
.drawer-profile-header {
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    position: relative;
    display: flex;
    align-items: center;
}
.close-drawer-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    background: none;
    border: none;
    color: #999;
}
.welcome-text { font-size: 12px; color: #777; }
.user-name { margin: 2px 0 0 0; font-size: 16px; font-weight: 600; color: #111; }

.profile-auth-buttons .btn {
    padding: 6px 15px;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 5px;
}
.btn-login-mobile { background: var(--color-site-1); color: #fff; }
.btn-register-mobile { background: #fff; color: #000; border: 1px solid #ccc; }

/* Box Solde de compte */
.drawer-solde-box {
    background: #eef5fc;
    margin: 15px;
    padding: 12px;
    border-radius: var(--border-radius);
}
.solde-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}
.solde-amount {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-top: 4px;
}
.btn-refresh-solde-mobile { background: none; border: none; color: #000; }

/* Corps & Liens de navigation */
.drawer-body {
    overflow-y: auto;
    padding: 15px;
    flex: 1;
}
.mobile-menu-links, .mobile-sub-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-links li a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}
.mobile-menu-links li.active a {
    color: #000;
    font-weight: bold;
}
.mobile-menu-links li.highlight-link a { color: #d9534f; }
.mobile-sub-links li a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    text-decoration: none;
}
.mobile-sub-links li a i { margin-right: 8px; width: 16px; text-align: center; }
.drawer-section-title { font-size: 12px; text-transform: uppercase; color: #999; letter-spacing: 1px; margin-top: 15px; }
.drawer-divider { margin: 15px 0; border-color: #eee; }

/* Sélecteurs de paramètres (Langues/Devises) */
.mobile-setting-row {
    margin-bottom: 12px;
}
.mobile-setting-row label { font-size: 12px; color: #666; margin-bottom: 4px; display: block; }
.mobile-select-custom {
    height: 36px;
    font-size: 13px;
    border-radius: 4px;
}


.drawer-solde-box {
    padding: 15px;
    border-radius: 12px;
    transition: all .3s ease;
}

/* Positif */
.drawer-solde-box.solde-positive {
    background: #e8f8ee;
    border: 1px solid #28a745;
}

.drawer-solde-box.solde-positive .solde-amount {
    color: #28a745;
    font-weight: 700;
}

/* Négatif ou zéro */
.drawer-solde-box.solde-negative {
    background: #fdeaea;
    border: 1px solid #dc3545;
}

.drawer-solde-box.solde-negative .solde-amount {
    color: #dc3545;
    font-weight: 700;
}