/* ===================================
   RESPONSIVE DESIGN
   Mobile-First Approach
   =================================== */

/* ===================================
   TABLET DEVICES (768px and below)
   =================================== */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Navigation - FIXED BURGER MENU */
    .burger-menu {
        display: block !important; /* Force display on mobile */
        position: relative;
        z-index: 1001;
        margin-right: 10px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        color: var(--white) !important;
    }
    
    .nav-menu a::after {
        background: var(--accent);
    }
    
    .btn-quote {
        background: var(--accent) !important;
        color: var(--white) !important;
    }
    
    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 8rem 1.5rem 4rem;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services */
    .services {
        padding: 4rem 0;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Why Choose Us */
    .why-choose-us {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item:hover {
        transform: translateY(-5px);
    }
    
    /* Contact Section */
    .contact {
        padding: 4rem 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
  /* Footer */
.footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.social-links {
    justify-content: center;
}

/* Fix list items alignment on mobile */
.footer-section ul li {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a {
    justify-content: center;
}

/* Fix coordonnées icons alignment */
.footer-section ul li i {
    margin-right: 0;
}

/* Fix footer bottom links wrapping */
.footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-bottom a {
    display: inline-block;
}
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
}

/* ===================================
   MOBILE DEVICES (480px and below)
   =================================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Header */
    .logo img {
        height: 50px;
    }
    
    header.scrolled .logo img {
        height: 45px;
    }
    
    header .container {
        padding: 0.8rem 1rem;
    }
    
    /* Burger Menu */
    .burger-menu {
        display: block !important;
        font-size: 1.6rem;
    }
    
    .nav-menu {
        width: 80%;
    }
    
    /* Hero */
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    
    .hero-slide p {
        font-size: 1rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .services,
    .why-choose-us,
    .contact {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card {
        padding: 2rem 1.5rem;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
    }
    
    .card-icon i {
        font-size: 2rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    /* Features */
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Info Items */
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .info-item i {
        margin: 0 auto;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1.6rem;
    }
}

/* ===================================
   LANDSCAPE ORIENTATION (Mobile)
   =================================== */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-slider {
        height: auto;
        min-height: 70vh;
    }
    
    .hero-slide {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .hero-slide p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* ===================================
   EXTRA LARGE SCREENS (1400px and above)
   =================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-slide h1 {
        font-size: 4rem;
    }
    
    .hero-slide p {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ===================================
   UTILITY RESPONSIVE CLASSES
   =================================== */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none !important;
    }
}

/* ===================================
   ANIMATIONS FOR SMALLER SCREENS
   =================================== */
@media (max-width: 768px) {
    [data-aos] {
        transition-duration: 600ms !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    header,
    .hero-slider,
    .whatsapp-float,
    .contact {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .services,
    .why-choose-us {
        page-break-inside: avoid;
    }
}

/* ==============================================
   FULL SCREEN MAP FOR MOBILE (Fix)
   ============================================== */
@media (max-width: 768px) {
    
    /* 1. Force the Section to fill the screen */
    .contact-map-section, 
    .contact-map-section .split-layout {
        height: 100vh !important; /* 100% of the screen height */
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* 2. Force the Map Container to fill the Section */
    .contact-map-section .contact-right {
        height: 100% !important;
        width: 100% !important;
        min-height: 100vh !important; /* Ensures it never shrinks */
    }

    /* 3. Ensure the Google Maps Iframe takes all available space */
    .contact-map-section iframe {
        height: 100% !important;
        width: 100% !important;
        display: block;
    }

    /* 4. Adjust the floating Info Box so it sits nicely on mobile */
    .map-info-box {
        width: 90%;          /* Make it wide but with breathing room */
        left: 5%;            /* Center it (5% + 90% + 5% = 100%) */
        bottom: 80px;        /* Push it up so it's not hidden by phone navigation bars */
        padding: 1rem;
    }
    
    /* Optional: Ensure text inside info box is readable on small screens */
    .map-info-box .info-row {
        font-size: 0.9rem;
    }
}