/* Correctifs pour l'affichage mobile */

@media (max-width: 768px) {
    /* Header mobile amélioré */
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        min-height: 60px;
        z-index: 100;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* Ajustement du titre mobile */
    .mobile-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        flex: 1;
        text-align: center;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Amélioration des actions mobiles */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    /* Ajustement de l'affichage du solde */
    .mobile-balance {
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--bg-tertiary);
        padding: 6px 12px;
        border-radius: 20px;
        border: 1px solid var(--border);
        font-size: 13px;
        color: var(--text-primary);
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Correction pour le menu mobile */
    .menu-toggle {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 20px;
        cursor: pointer;
    }

    /* Ajustements pour iPhone et écrans très petits */
    @media (max-width: 375px) {
        .mobile-header {
            padding: 10px 12px;
        }

        .mobile-title {
            font-size: 16px;
        }

        .mobile-balance {
            font-size: 12px;
            padding: 4px 8px;
            max-width: 90px;
        }

        .menu-toggle {
            width: 36px;
            height: 36px;
        }
    }
}
