/**
 * CleanPro - Styles Responsives
 */

/* =====================================================
   Tablettes paysage et petits écrans (max 1200px)
   ===================================================== */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   Tablettes (max 992px)
   ===================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-carousel {
        order: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    .hero-description { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-content .section-label,
    .about-content .section-title { text-align: center; }
    .about-text { text-align: center; }
    .about-content .section-label::before { display: block; }

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

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    .nav-links.active { display: flex; }
    .nav-links .nav-link {
        color: var(--white);
        font-size: 1.5rem;
    }

    .mobile-menu-btn { display: block; z-index: 1001; }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* =====================================================
   Mobiles paysage (max 768px)
   ===================================================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat-item { text-align: center; }

    .section-title { font-size: 2rem; }
    .about-features { grid-template-columns: 1fr; }
    .why-us-card { width: 100%; }

    .form-row { grid-template-columns: 1fr; }
    .prestation-row-fields {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .prestation-field-select {
        grid-column: 1 / -1;
    }
    .btn-remove-prestation {
        grid-column: 2;
        justify-self: end;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    .galerie-item { width: 100%; }

    .page-header { padding: 8rem 1.5rem 3rem; }
    .page-header h1 { font-size: 2.25rem; }

    .contact-form-container { padding: 2rem; }
}

/* =====================================================
   Mobiles portrait (max 480px)
   ===================================================== */
@media (max-width: 480px) {
    .navbar { padding: 0.75rem 1rem; }
    .navbar.scrolled { padding: 0.5rem 1rem; }
    .logo-text { font-size: 1.25rem; }
    .logo-icon { width: 40px; height: 40px; }
    .logo-icon svg { width: 22px; height: 22px; }

    .hero { padding-top: 60px; }
    .hero-container { padding: 6rem 1rem 3rem; }
    .hero h1 { font-size: 1.875rem; }
    .hero-description { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .stat-number { font-size: 2rem; }

    .services { padding: 4rem 1rem; }
    .service-card { width: 100%; padding: 1.5rem; }

    .about { padding: 4rem 1rem; }
    .about-image-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }

    .why-us { padding: 4rem 1rem; }
    .why-us-card { padding: 1.5rem 1rem; }

    .tarifs { padding: 4rem 1rem; }
    .tarif-card { width: 100%; }

    .galerie { padding: 4rem 1rem; }
    .galerie-filters { gap: 0.5rem; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

    .contact { padding: 4rem 1rem; }
    .contact-form-container { padding: 1.5rem; }
    .prestation-row-fields {
        grid-template-columns: 1fr;
    }
    .prestation-field-select {
        grid-column: auto;
    }
    .btn-remove-prestation {
        width: 100%;
        justify-content: center;
        grid-column: auto;
        justify-self: auto;
    }
    .prestation-row {
        padding: 1rem;
    }

    .footer { padding: 3rem 1rem 1.5rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-radius: var(--radius); }
    .newsletter-form button { width: 100%; border-radius: var(--radius); }

    .section-label { font-size: 0.75rem; }
    .section-label::before, .section-label::after { width: 20px; }
    .section-title { font-size: 1.75rem; }
    .section-description { font-size: 1rem; }
}

/* =====================================================
   Très petits écrans (max 360px)
   ===================================================== */
@media (max-width: 360px) {
    .hero h1 { font-size: 1.625rem; }
    .hero-badge { padding: 0.35rem 0.75rem; }
    .hero-badge span { font-size: 0.75rem; }

    .carousel-nav { width: 36px; height: 36px; }
    .carousel-nav svg { width: 16px; height: 16px; }

    .service-icon { width: 50px; height: 50px; }
    .service-icon svg { width: 24px; height: 24px; }

    .tarif-price .price { font-size: 2.5rem; }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
    .navbar,
    .hero-carousel,
    .carousel-nav,
    .carousel-dots,
    .mobile-menu-btn,
    .footer-social,
    .newsletter-form,
    .btn { display: none !important; }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        background: #fff !important;
        color: #000;
        padding: 2rem;
    }
    .hero h1 { color: #000; font-size: 24pt; }
    .hero-description { color: #333; }

    .section-title { color: #000; }

    a { color: #000; text-decoration: underline; }

    .service-card,
    .tarif-card,
    .galerie-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* =====================================================
   Réduction des animations pour accessibilité
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }
}

/* =====================================================
   Mode sombre (préférence système)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    /* Désactivé par défaut - décommenter pour activer
    :root {
        --white: #1a1a2e;
        --gray-50: #16213e;
        --gray-100: #1f3a5f;
        --gray-200: #2a4a6f;
        --gray-800: #e2e8f0;
        --gray-600: #cbd5e1;
    }
    */
}
