/* Styles spécifiques pour l'optimisation mobile */
@media (max-width: 768px) {
    /* Ajustements généraux */
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header et navigation */
    header {
        height: auto;
    }
    
    .logo img {
        height: 50px;
    }
    
    .mobile-menu-toggle {
        font-size: 22px;
        top: 20px;
    }
    
    /* Sections */
    .hero-section {
        height: 50vh;
        margin-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* PDF Viewer */
    .pdf-viewer {
        height: 450px;
    }
    
    .pdf-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pdf-controls button {
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .pdf-controls .page-info {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    /* Formulaires */
    .form-control {
        padding: 10px;
    }
    
    /* Boutons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Optimisations pour très petits écrans */
@media (max-width: 480px) {
    /* Header et navigation */
    .logo img {
        height: 40px;
    }
    
    /* Sections */
    .hero-section {
        height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    /* PDF Viewer */
    .pdf-viewer {
        height: 350px;
    }
    
    .pdf-controls button {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Grilles et cartes */
    .services-grid, .product-categories {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content > div {
        width: 100%;
    }
}

/* Optimisations pour l'orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 70vh;
    }
    
    .pdf-viewer {
        height: 300px;
    }
}

/* Optimisations pour le tactile */
@media (hover: none) {
    .btn, .nav-menu a, .social-icons a {
        padding: 12px 25px; /* Cibles plus grandes pour le tactile */
    }
    
    .pdf-controls button {
        padding: 12px 20px;
    }
}

/* Optimisations pour les écrans à haute densité de pixels */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img, .about-image img, .category-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}
