/* ===== TABLETTES ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .projects-grid,
    .formations-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* ===== MOBILES ===== */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--vert-nature);
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid,
    .formations-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .filters form {
        flex-direction: column;
    }
    
    .filters select,
    .filters input,
    .filters button {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-section {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }
    
    /* Dashboard mobile */
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: static;
        padding: 1rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    /* Détail projet mobile */
    .projet-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== TRÈS PETITS ÉCRANS ===== */
@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-small h1 {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 1rem;
    }
}

/* ===== DASHBOARD RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        position: fixed;
        z-index: 1000;
        width: 80%;
        height: 100%;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: var(--vert-nature);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
}