/* ========================================
   NAVIGATION MOBILE SIMPLE - SCROLL HORIZONTAL
   ======================================== */

@media (max-width: 768px) {
    /* Réorganiser la navbar en mode mobile */
    .nav-container {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem 0 !important;
        overflow: hidden !important;
    }

    /* Logo centré */
    .navbar-brand {
        order: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    /* Wrapper scrollable pour les liens */
    .nav-links-wrapper {
        order: 2;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.5rem 0;
    }

    .nav-links-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Container horizontal pour les liens */
    .nav-links-container {
        display: flex;
        gap: 0.75rem;
        padding: 0 1rem;
        min-width: max-content;
    }

    /* Styles des liens mobiles */
    .nav-link {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0.6rem 1.2rem !important;
        border-radius: 20px !important;
        font-size: 0.9rem !important;
        background: var(--light-gray) !important;
        color: var(--text-color) !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        border: 1px solid transparent !important;
    }

    /* Style pour le lien actif */
    .nav-link.active {
        background: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color) !important;
    }

    /* Style pour le bouton don */
    .nav-link.btn-success {
        background: var(--success-color) !important;
        color: white !important;
        border-color: var(--success-color) !important;
        font-weight: 600 !important;
    }

    .nav-link:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    /* Responsive : grilles simplifiées */
    .grid-4 { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 1rem; 
    }
    
    .grid-3 { 
        grid-template-columns: 1fr !important; 
        gap: 1rem; 
    }
    
    .grid-2 { 
        grid-template-columns: 1fr !important; 
        gap: 1rem; 
    }

    /* Cards mobiles */
    .card,
    .activity-domain-card,
    .activity-card,
    .social-service-card,
    .magazine-card,
    .educational-resource {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem;
    }

    /* Titres responsifs */
    .hero-title,
    .header-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    /* Boutons tactiles */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Sections mobiles */
    .section {
        padding: 2rem 0 !important;
    }

    .hero {
        padding: 2.5rem 0 !important;
    }

    /* Timeline mobile */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }

    .timeline-date {
        position: absolute;
        left: 0;
        flex: none;
        width: 60px;
        padding: 0.5rem;
    }

    .timeline-content {
        margin: 0;
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Très petits écrans */
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .nav-links-container {
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .hero-title,
    .header-title {
        font-size: 1.5rem !important;
    }

    .section {
        padding: 1.5rem 0 !important;
    }

    .card,
    .activity-domain-card,
    .activity-card,
    .social-service-card {
        padding: 1.25rem !important;
    }

    /* Footer compact */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Smooth scrolling global */
html {
    scroll-behavior: smooth;
}

/* Touch optimizations */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
}