/* Styles responsifs supplémentaires */

/* Styles généraux pour les appareils mobiles */
@media (max-width: 768px) {
    /* Ajustements pour la navigation mobile */
    .mobile-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1.5rem;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 100;
    }
    
    header .container {
        position: relative;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        background-color: white;
        padding: 1rem 0;
        margin-top: 1rem;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    /* Ajustements pour les sections principales */
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Ajustements pour les grilles */
    .concept-grid, 
    .tab-grid, 
    .forces-faiblesses-grid, 
    .ameliorations-grid,
    .tech-items,
    .assistance-grid,
    .stats-container,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Ajustements pour les éléments interactifs */
    .model-viewer {
        height: 300px;
    }
    
    .comparison-container {
        height: 300px;
    }
    
    .conditions-selector,
    .simulation-results,
    .cost-controls {
        grid-template-columns: 1fr;
    }
    
    /* Ajustements pour les pages détaillées */
    .detailed-page h1 {
        font-size: 1.8rem;
    }
    
    .detailed-page .content h2 {
        font-size: 1.5rem;
    }
    
    .detailed-page .content h3 {
        font-size: 1.3rem;
    }
}

/* Styles pour les très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-box i {
        font-size: 2rem;
    }
    
    .stat-box h3 {
        font-size: 1.5rem;
    }
    
    .tab-button, .ff-tab-button {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .tab-content, .ff-tab-content {
        padding: 1.5rem;
    }
    
    .interactive-element {
        padding: 1.5rem;
    }
    
    .result-value {
        font-size: 1.2rem;
    }
    
    /* Ajustements pour les éléments interactifs sur très petits écrans */
    .model-viewer {
        height: 250px;
    }
    
    .comparison-container {
        height: 250px;
    }
}

/* Optimisations pour les écrans tactiles */
@media (hover: none) {
    .slider::-webkit-slider-thumb {
        width: 30px;
        height: 30px;
    }
    
    .slider::-moz-range-thumb {
        width: 30px;
        height: 30px;
    }
    
    .comparison-slider::before {
        width: 50px;
        height: 50px;
    }
    
    select, button {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Optimisations pour l'orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .model-viewer {
        height: 60vh;
    }
}

/* Optimisations pour les grands écrans */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h2 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
}

/* Optimisations pour l'impression */
@media print {
    header, footer, .cta, .interactive-element, .model-viewer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .content {
        box-shadow: none;
        padding: 0;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
    
    .detailed-page .back-to-home {
        display: none;
    }
}
