/* ===== RESPONSIVE DESIGN - VERSION PROPRE SANS BLUR ===== */

/* ========================================
   TABLET (769px - 1024px)
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .dashboard-main {
        margin-left: 240px;
    }

    .stats-grid,
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   MOBILE (< 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Layout */
    .dashboard-main {
        margin-left: 0;
        padding: 0;
        width: 100%;
    }

    /* Sections */
    .section-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    /* Grilles 1 colonne */
    .stats-grid,
    .admin-stats,
    .content-grid,
    .controls-grid {
        grid-template-columns: 1fr;
        padding: 0 1.25rem;
        gap: 1rem;
    }

    /* Cards */
    .card,
    .console-card {
        margin: 0 1.25rem 1.5rem;
    }

    /* Forms */
    .input-field {
        font-size: 16px;
    }

    /* Buttons full width */
    .btn-action {
        width: 100%;
    }

    /* Tables scroll horizontal */
    .users-table-wrapper {
        overflow-x: auto;
    }

    .users-table {
        min-width: 900px;
    }
}

/* ========================================
   SMALL MOBILE (< 480px)
   ======================================== */

@media (max-width: 480px) {
    .section-header {
        padding: 1.25rem 1rem;
    }

    .stats-grid,
    .content-grid {
        padding: 0 1rem;
    }

    .card {
        margin: 0 1rem 1.25rem;
    }
}
