/* ===== RESPONSIVE STARTMAKERS ===== */

/* Tablette */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 200px 1fr !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }

    .profil-card { padding: 1rem !important; }
    .avatar { width: 48px !important; height: 48px !important; font-size: 1.1rem !important; }

    nav { gap: 1rem !important; }
    nav a { font-size: 0.8rem !important; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 0.8rem 1rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }

    /* Cacher nav desktop */
    header nav { display: none !important; }

    /* Menu hamburger */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 4px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Menu mobile overlay */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 999;
        flex-direction: column;
        padding: 1.5rem;
    }

    .mobile-menu.open { display: flex !important; }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .mobile-menu a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #f0ede6;
        font-size: 1rem;
        font-weight: 600;
        color: #333;
        text-decoration: none;
    }

    .mobile-menu a:hover { color: #B8960C; }
    .mobile-menu a.danger { color: #c00; }

    /* Layout — passer en colonne */
    .container {
        grid-template-columns: 1fr !important;
        margin: 1rem auto !important;
        padding: 0 1rem !important;
    }

    /* Cacher sidebar desktop */
    aside.sidebar { display: none !important; }

    /* Cards */
    .card { padding: 1rem !important; border-radius: 12px !important; }
    .page-header { padding: 1.2rem !important; border-radius: 12px !important; }
    .page-header h2 { font-size: 1.2rem !important; }

    /* Grilles */
    .modules-grid { grid-template-columns: 1fr !important; }
    .rapide-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .pro-grid { grid-template-columns: 1fr !important; }
    .fichiers-grid { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .grid-2 { grid-template-columns: 1fr !important; }
    .form-grid { grid-template-columns: 1fr !important; }
    .row { grid-template-columns: 1fr !important; }

    /* Forum */
    .sujet-row { grid-template-columns: 1fr !important; }
    .mc-card { flex-direction: column !important; }
    .mc-thumb { width: 100% !important; height: 180px !important; }

    /* Bienvenue */
    .bienvenue { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }
    .btn-guide { width: 100% !important; text-align: center !important; }

    /* Warning */
    .warning { flex-direction: column !important; }

    /* Pagination */
    .pagination { flex-wrap: wrap !important; }

    /* Table admin */
    table { font-size: 0.78rem !important; }
    th, td { padding: 0.5rem !important; }
}

/* Très petit mobile */
@media (max-width: 380px) {
    .rapide-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
