/* Responsive Design */

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        height: 60vh;
    }
    
    .hero::before {
        background-position: center 25%; /* Ajustement de la position verticale pour mobile */
        filter: brightness(1.2); /* Augmentation de la luminosité pour mobile */
    }
    
    .hero::after {
        background: rgba(0, 0, 0, 0.05); /* Overlay plus transparent pour mobile */
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Ajout d'une ombre au texte pour meilleure lisibilité */
    }
    
    .hero p {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Ombre au texte pour le paragraphe */
    }
}

/* Mobile (576px et moins) */
@media screen and (max-width: 576px) {
    /* Navigation mobile */
    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    /* Sections */
    .hero h2 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Spacing */
    .services, .about {
        padding: 2rem 1rem;
    }

    /* Buttons */
    .cta-button {
        padding: 0.8rem 1.5rem;
    }
}

/* Grands écrans (1200px et plus) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-content {
        max-width: 900px;
    }
}

/* Support pour les écrans Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ajustements pour les images haute résolution si nécessaire */
    .hero {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg@2x.jpg');
    }
}

/* Préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
} 