/* ================================================
   MOBILE RESPONSIVENESS FIXES
   ONG NAMA Frontend
   ================================================ */

/* ================================================
   1. NAVIGATION FIXES
   ================================================ */

.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* ================================================
   2. TABLET ET MOINS (991px)
   ================================================ */

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 12px 16px !important;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .nav-link:active {
        background: rgba(46, 125, 50, 0.1);
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background: rgba(46, 125, 50, 0.05);
    }

    .dropdown-item {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .lang-switch {
        justify-content: center;
        margin: 1rem 0;
    }

    .lang-btn {
        min-width: 60px;
        min-height: 44px;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    .nav-item .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Footer */
    .footer-top {
        padding: 40px 0;
    }

    .footer-top .col-lg-4,
    .footer-top .col-lg-2,
    .footer-top .col-lg-3 {
        margin-bottom: 2rem;
    }

    .footer-top .row > div:last-child {
        margin-bottom: 0;
    }

    /* Event cards */
    .event-card-modern {
        flex-direction: column;
    }

    .event-date-modern {
        min-width: auto;
        flex-direction: row;
        gap: 0.5rem;
        padding: 1rem;
    }

    .event-content-modern {
        flex-direction: column;
        padding: 1.5rem;
    }

    .event-image-modern {
        width: 100%;
        height: 200px;
    }
}

/* ================================================
   3. MOBILE (768px)
   ================================================ */

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    /* Forms */
    .form-control,
    .form-select {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .filter-card {
        padding: 1rem !important;
    }

    .filter-card .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-card .btn-group .btn {
        border-radius: 50px !important;
        min-height: 40px;
        padding: 8px 16px;
        font-size: 0.85rem;
        flex: 0 0 auto;
    }

    /* Buttons - Touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .btn-sm {
        min-height: 40px;
        padding: 10px 16px;
    }

    .btn-lg {
        min-height: 52px;
        padding: 14px 28px;
    }

    .btn-block-mobile,
    .hero-buttons-modern .btn,
    .cta-buttons-modern .btn,
    .involve-btn {
        width: 100%;
        min-height: 48px;
    }

    /* WhatsApp FAB */
    .whatsapp-fab {
        bottom: 80px;
        right: 15px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    [dir="rtl"] .whatsapp-fab {
        left: 15px;
        right: auto;
    }

    /* Map */
    .map-container-modern {
        height: 350px;
    }

    /* Stats */
    .floating-stat-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .about-image-accent,
    .about-experience-badge {
        display: none;
    }
}

/* ================================================
   4. PETIT MOBILE (576px)
   ================================================ */

@media (max-width: 576px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .section-title-modern,
    .section-title-light {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .page-header {
        padding: 50px 0 30px;
    }

    .page-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* Hero */
    .hero-title-modern {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-subtitle-modern {
        font-size: 1rem !important;
    }

    .hero-buttons-modern {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Cards */
    .projects-grid-modern,
    .activities-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image,
    .activity-image,
    .event-image {
        height: 200px;
    }

    .card-body,
    .project-body,
    .activity-body,
    .event-body {
        padding: 1.25rem;
    }

    /* Stats */
    .floating-stat-item {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }

    .floating-stat-item.border-end {
        border-right: none !important;
        border-bottom: 1px solid #e0e0e0;
    }

    .floating-stat-item:last-child {
        border-bottom: none;
    }

    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .mini-stat-card {
        padding: 1rem;
    }

    .mini-stat-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }

    .mini-stat-number {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer-top {
        padding: 30px 0;
    }

    .footer-logo-img {
        max-height: 50px;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-links li,
    .footer-contact li {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
        min-height: 44px;
    }

    .newsletter-btn {
        border-radius: 8px !important;
        width: 100%;
        min-height: 44px;
    }

    .footer-bottom {
        padding: 15px 0;
        font-size: 0.85rem;
    }

    .footer-bottom .row > div {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }

    /* Events */
    .event-date-badge {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
    }

    .event-date-badge .day {
        font-size: 1.25rem;
    }

    .event-status-badge {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    /* Forms - prevent iOS zoom */
    .form-control,
    .form-select {
        font-size: 16px;
    }

    .filter-card .btn-group {
        width: 100%;
    }

    .filter-card .btn-group .btn {
        flex: 1 1 auto;
    }

    .whatsapp-fab {
        bottom: 70px;
    }

    .map-container-modern {
        height: 300px;
    }
}

/* ================================================
   5. TOUCH DEVICE - Desactiver hover
   ================================================ */

@media (hover: none) {
    .project-card-modern:hover,
    .activity-card-modern:hover,
    .event-card-modern:hover,
    .card:hover {
        transform: none;
    }

    .navbar-brand:hover {
        transform: none;
    }

    .social-icon:hover {
        transform: none;
    }
}

/* ================================================
   6. ACCESSIBILITE - Touch targets minimum
   ================================================ */

@media (max-width: 768px) {
    a, button, .btn, .nav-link, .dropdown-item {
        min-height: 44px;
    }

    *:focus-visible {
        outline: 3px solid rgba(46, 125, 50, 0.5);
        outline-offset: 2px;
    }
}
