/* ===================================
   AECS - Responsive Styles
   =================================== */

/* Tablette - max 1024px */
@media screen and (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-image {
        order: -1;
    }
}

/* Mobile - max 768px */
@media screen and (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .header-container {
        padding: var(--spacing-md);
    }

    .logo img {
        height: 50px;
    }

    /* Menu mobile */
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1001;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 100px var(--spacing-xl) var(--spacing-xl);
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid var(--gray-200);
    }

    nav a {
        display: block;
        padding: var(--spacing-md) 0;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 120px 0 80px;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        margin-bottom: var(--spacing-xl);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

/* Petit mobile - max 480px */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }

    .hero h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.85rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-item-icon {
        width: 40px;
        height: 40px;
    }

    .posture-image,
    .approche-image {
        max-width: 100%;
    }
}

/* Animation pour menu hamburger */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}
