/* Styles responsives pour le site ClimatTech */

/* Tablettes et petits écrans */
@media screen and (max-width: 992px) {
    header {
        padding: 1rem 3%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-section h2 {
        font-size: 2.2rem;
    }
    
    .about-content,
    .service-details,
    .mission-vision-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image,
    .service-image {
        order: -1;
    }
}

/* Smartphones */
@media screen and (max-width: 768px) {
    header {
        flex-direction: row; /* Changé de column à row */
        padding: 1rem;
        position: relative;
    }
    
    .logo {
        margin-bottom: 0; /* Supprimé la marge */
    }

    .nav-toggle {
        display: flex; /* Afficher le bouton toggle sur mobile */
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        flex-direction: column;
    }

    nav.top-nav.active {
        text-align: center;
        align-items: center;
    }

    .top-nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .top-nav ul li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .top-nav ul li a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .whatsapp-header-btn {
        margin: 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .services-grid,
    .benefits-container,
    .process-steps,
    .testimonials-slider,
    .values-grid,
    .team-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Très petits écrans */
@media screen and (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .service-preview-card,
    .benefit-card,
    .process-step,
    .testimonial,
    .value-card,
    .team-member,
    .certification,
    .faq-item {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 769px) and (max-width: 889px) {

    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 3%;
    }
    .logo {
        margin-bottom: 0;
    }
    .logo img {
    max-width: 160px;
    }

    .top-nav {
        display: flex;
        align-items: center;
    }
    .top-nav ul {
        display: flex;
        gap: 0.7rem;
        margin: 0;
        padding: 0;
    }
    .top-nav ul li {
        margin: 0;
    }
    .whatsapp-header-btn {
        margin-left: 0px;
        padding: 8px 12px;
        font-size: 15px;
        min-width: 120px;
        box-sizing: border-box;
    }
}
