/* STYLES ADAPTATIFS POUR DOMAIN - AUDIT FINANCIER */

/* Petits mobiles (jusqu'à 360px) */
@media only screen and (max-width: 360px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        flex-direction: column;
    }
    
    .form-content,
    .form-image {
        border-radius: var(--radius-lg);
    }
    
    .form-image {
        height: 200px;
    }
}

/* Mobile (jusqu'à 767px) */
@media only screen and (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .header {
        padding: var(--space-xs) 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-dark-blue);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-medium);
    }
    
    .nav.show {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav li {
        margin: var(--space-sm) 0;
    }
    
    .hero {
        min-height: 550px;
        height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-lg);
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--space-md);
    }
    
    .services-grid,
    .audit-cards,
    .benefits-list,
    .testimonials-grid,
    .case-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .form-container {
        flex-direction: column;
    }
    
    .form-content,
    .form-image {
        border-radius: var(--radius-lg);
    }
    
    .form-image {
        height: 250px;
    }
    
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-popup p {
        margin-bottom: var(--space-sm);
        margin-right: 0;
    }
}

/* Tablettes (768px - 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .services-grid,
    .audit-cards,
    .benefits-list,
    .testimonials-grid,
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: var(--space-md);
        order: -1;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-dark-blue);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-medium);
    }
    
    .nav.show {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav li {
        margin: var(--space-sm) 0;
    }
}

/* Petits ordinateurs portables (1024px - 1439px) */
@media only screen and (min-width: 1024px) and (max-width: 1439px) {
    .services-grid,
    .audit-cards,
    .benefits-list,
    .testimonials-grid,
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        gap: var(--space-md);
    }
    
    .menu-toggle {
        display: none;
    }
}

/* Grands écrans (1440px et plus) */
@media only screen and (min-width: 1440px) {
    body {
        font-size: 18px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .audit-cards,
    .benefits-list,
    .testimonials-grid,
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    
    .menu-toggle {
        display: none;
    }
}

/* Styles pour le menu mobile à l'aide de PHP */
.menu-open body {
    overflow: hidden;
}

.menu-open .header {
    background-color: var(--color-dark-blue);
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-open .nav {
    left: 0;
}
