/* MOBILE RESPONSIVE STYLES - À inclure dans style.css */

/* ===== PROFILE.PHP ===== */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem !important;
    }
    
    .container h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Tous les blocs blancs */
    div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
    
    /* Grilles d'amis */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(140px"] {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    }
}

/* ===== MESSAGES.PHP ===== */
@media (max-width: 768px) {
    .messages-container {
        padding: 0 1rem !important;
    }
    
    .messages-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        white-space: nowrap;
        font-size: 0.85rem;
    }
    
    .message-card {
        padding: 1rem !important;
    }
    
    .message-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .message-actions {
        flex-direction: column !important;
        width: 100%;
    }
    
    .message-actions > * {
        width: 100% !important;
    }
}

/* ===== ADMIN PAGES ===== */
@media (max-width: 968px) {
    /* Grilles en 2 colonnes → 1 colonne */
    .sections-grid,
    div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    .items-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .section-card,
    .item-card {
        padding: 1rem !important;
    }
    
    .admin-container h1,
    .social-partners-container h1 {
        font-size: 1.5rem !important;
    }
}

/* ===== MEMBERS.PHP ===== */
@media (max-width: 768px) {
    .members-container {
        padding: 0 1rem !important;
    }
    
    .members-grid {
        grid-template-columns: 1fr !important;
    }
    
    .member-card {
        padding: 1.5rem !important;
    }
}

/* ===== USER-PROFILE.PHP ===== */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 1rem !important;
    }
    
    .profile-header {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .profile-actions {
        flex-direction: column !important;
        width: 100%;
    }
    
    .profile-actions > * {
        width: 100% !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== FORMULAIRES UNIVERSELS ===== */
@media (max-width: 640px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important; /* Évite le zoom automatique sur iOS */
    }
    
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===== NAVIGATION MOBILE ===== */
@media (max-width: 768px) {
    .nav-desktop {
        font-size: 0.9rem;
    }
    
    .nav-desktop ul {
        gap: 0.5rem !important;
    }
    
    .header-user-menu {
        gap: 0.5rem !important;
    }
}
