/* ========================================
   RESPONSIVE CSS - VERSION COMPLÈTE
   ======================================== */

/* 2XL Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
    
    h1 {
        font-size: 5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .services-grid {
        gap: 2.5rem;
    }
    
    .service-card {
        padding: 2.5rem;
    }
}

/* XL Screens (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* LG Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .service-detail-grid {
        gap: 2rem;
    }
    
    .about-grid {
        gap: 2rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .stats {
        gap: 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

/* MD Screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail-grid.reverse {
        direction: ltr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certifications {
        justify-content: center;
    }
}

/* SM Screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1.25rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .faq-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .service-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .expertise-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-features {
        grid-template-columns: 1fr;
    }
}

/* XS Screens (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav-wrapper {
        height: 70px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-phone span {
        display: none;
    }
    
    .nav-phone i {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        padding: 0.5rem 1rem !important;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .hero-badge {
        margin-bottom: 1rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-features-list li {
        font-size: 0.8125rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.9375rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .team-card {
        margin: 0;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    /* Forms */
    .devis-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.875rem;
    }
    
    .form-control,
    .form-group input:not([type="checkbox"]),
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .form-step-header {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .form-step-header h3 {
        font-size: 1.125rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-next,
    .btn-prev,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    /* Grid Systems */
    .services-grid,
    .values-grid,
    .team-grid,
    .advantages-grid,
    .faq-mini-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Specific Sections */
    .about-features {
        margin: 1.5rem 0;
    }
    
    .feature {
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .experience-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
    
    .years {
        font-size: 1.5rem;
    }
    
    .process-timeline {
        gap: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
        padding-right: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-col h4 {
        margin-bottom: 0.75rem;
    }
    
    .footer-col ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-contact li {
        font-size: 0.875rem;
    }
    
    .footer-bottom p,
    .footer-legal a {
        font-size: 0.75rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-icon {
        font-size: 3rem;
    }
    
    .modal-content h3 {
        font-size: 1.25rem;
    }
    
    .modal-content p {
        font-size: 0.875rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.9375rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Service Details */
    .service-detail-media {
        padding: 1rem;
    }
    
    .tech-specs {
        padding: 1rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .maintenance-plans {
        flex-direction: column;
    }
    
    .plan-card {
        width: 100%;
    }
    
    /* Stats */
    .expertise-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    /* Contact Page */
    .info-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
    
    .card-content a {
        font-size: 0.875rem;
    }
    
    .business-hours {
        padding: 1rem;
    }
    
    .hour-item {
        font-size: 0.875rem;
    }
    
    /* Map */
    .map-container iframe {
        height: 300px;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
    
    /* Preloader */
    .preloader-logo {
        font-size: 1.5rem;
    }
    
    .preloader-spinner {
        width: 40px;
        height: 40px;
    }
    
    /* Client Logos */
    .client-logo {
        height: 30px;
    }
    
    .clients-track {
        gap: 1.5rem;
    }
}

/* Landscape mode for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .navbar {
        position: relative;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .cta-section,
    .hero-buttons,
    .btn,
    .nav-actions,
    .burger {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .service-card,
    .testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .service-card,
    .value-card {
        border: 2px solid currentColor;
    }
    
    .text-gradient {
        background: none;
        color: var(--gold-dark);
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want dark mode
    :root {
        --gray-50: #1a1a1a;
        --gray-100: #222222;
        --gray-200: #2a2a2a;
        --gray-800: #e5e5e5;
        --gray-900: #f5f5f5;
        --white: #000000;
        --black: #ffffff;
    }
    
    body {
        background: #000000;
    }
    
    .navbar {
        background: rgba(0,0,0,0.98);
    }
    
    .service-card,
    .value-card,
    .testimonial-card,
    .team-card {
        background: #111111;
    }
    */
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .service-card,
    .nav-links a {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }
}

/* Smooth scroll for iOS */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix for sticky hover on mobile */
@media (max-width: 767px) {
    .service-card:active,
    .btn:active {
        transform: scale(0.98);
    }
    
    input,
    select,
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive complémentaire */
@media (max-width: 768px) {
    .nav-phone span { display: none; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .about-features { margin: 1rem 0; }
    .feature { flex-direction: column; text-align: center; }
    .feature-icon { margin: 0 auto; }
    .service-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-stats { gap: 1rem; }
    .stat-number { font-size: 1.25rem; }
    .section-title { font-size: 1.5rem; }
}