/**
 * NEXT FOOD AFRICA — CORE RESPONSIVE ARCHITECTURE
 * Optimisation ergonomique multi-écrans et adaptation tactile.
 */

/* --- TABLET AND LAPTOP TIERS (LARGE DEVICES - UNDER 1200px) --- */
@media (max-width: 1199.98px) {
    :root {
        --section-padding-desktop: 6rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .display-3 {
        font-size: 3rem !important;
    }

    .badge-top-right {
        right: 0;
        top: 5%;
    }
}

/* --- MEDIUM TABLET BREAKPOINT (UNDER 991.98px) --- */
@media (max-width: 991.98px) {
    :root {
        --section-padding-desktop: 5rem;
    }

    /* Navbar Premium Mobile Adjustment */
    .header-premium {
        padding: 1rem 0;
    }
    
    .navbar-collapse {
        background: rgba(11, 15, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--bg-glass-border);
        border-radius: var(--radius-md);
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .unique-nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .unique-nav-actions .btn {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }

    /* Mobile Toggler Custom Styling */
    .custom-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .custom-toggler:focus {
        box-shadow: none;
    }

    .toggler-icon-bar {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--brand-white-pure);
        border-radius: var(--radius-pill);
        transition: var(--transition-fast);
    }

    /* Hero Responsive Alignment */
    .hero-section {
        text-align: center;
    }

    .hero-card-display {
        margin-top: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .badge-top-right {
        right: 5%;
    }

    /* Component Fixes */
    .premium-blockquote {
        font-size: 1.25rem;
        padding-left: 1.5rem;
        margin: 2rem 0;
    }

    .grid-services-premium {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card ::after {
        display: none !important;
    }
}

/* --- SMALL DEVICE & MOBILE BREAKPOINT (UNDER 767.98px) --- */
@media (max-width: 767.98px) {
    :root {
        --section-padding-desktop: var(--section-padding-mobile);
    }

    .section-title {
        font-size: 1.85rem;
    }

    .display-3 {
        font-size: 2.4rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .card-premium, 
    .card-service-grid,
    .testimonial-card-premium {
        padding: 1.75rem !important;
    }

    .stats-section .display-4 {
        font-size: 2.5rem;
    }

    .logo-marquee-track {
        gap: 2.5rem !important;
    }

    .partner-logo-text {
        font-size: 1rem;
    }

    /* Newsletter Form Optimization */
    .newsletter-form-premium {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form-premium .btn {
        width: 100%;
    }

    /* Touch Target Optimization (WCAG Accessibility Compliance) */
    .btn, 
    .nav-link, 
    .accordion-button,
    .btn-slider-control {
        min-height: 44px; /* Target tactile minimum */
    }

    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* --- ULTRA SMALL ACCESSIBILITY TIER (UNDER 400px) --- */
@media (max-width: 399.98px) {
    .display-3 {
        font-size: 2rem !important;
    }

    .badge-top-right {
        display: none !important; /* Nettoyage de l'UI encombrée */
    }
}