/* ============================================
   VOSTHERMOS - Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; }
    .btn-phone span { display: none; }
    .btn-phone { padding: 8px 12px; }

    .hero-content { padding: 40px 32px 40px 20px; }
    .hero-title { font-size: 1.8rem; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .city-content { grid-template-columns: 1fr; }
    .city-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .container { padding: 0 20px; }

    .header-inner { height: 70px; }
    .logo-img { height: 56px; }
    .mobile-menu { top: 70px; }

    /* ===== HERO MOBILE: image en fond + overlay + contenu par-dessus ===== */
    .hero {
        display: block;
        position: relative;
        min-height: auto;
        padding-top: 70px;
    }

    /* Image devient le fond */
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    /* Overlay sombre pour lisibilite */
    .hero-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,37,48,0.7) 0%,
            rgba(0,37,48,0.85) 40%,
            rgba(0,37,48,0.95) 100%
        );
        z-index: 1;
    }

    /* Contenu par-dessus */
    .hero-content {
        position: relative;
        z-index: 2;
        background: transparent;
        padding: 28px 20px 32px;
        justify-content: flex-start;
    }

    .hero-content-inner { max-width: 100%; }

    /* Titre */
    .hero-badge { font-size: 0.72rem; padding: 6px 14px; margin-bottom: 14px; }
    .hero-title { font-size: 1.6rem; margin-bottom: 8px; }
    .hero-desc { font-size: 0.88rem; margin-bottom: 20px; line-height: 1.5; color: rgba(255,255,255,0.85); }

    /* Formulaire blanc qui ressort bien */
    .hero-form-card {
        background: var(--white) !important;
        border: none !important;
        padding: 20px 18px;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    .hero-form-card h2 { font-size: 1.05rem; margin-bottom: 12px; color: var(--teal-dark) !important; }
    .hero-form-card .form-row { grid-template-columns: 1fr; gap: 0; }
    .hero-form-card .form-group { margin-bottom: 8px; }
    .hero-form-card input,
    .hero-form-card select,
    .hero-form-card textarea {
        padding: 11px 12px;
        font-size: 16px;
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        color: #1a1a1a !important;
        -webkit-appearance: none;
    }
    .hero-form-card select {
        color: #333 !important;
        -webkit-appearance: menulist;
        appearance: menulist;
    }
    .hero-form-card select option {
        background: #fff !important;
        color: #1a1a1a !important;
    }
    .hero-form-card input::placeholder,
    .hero-form-card textarea::placeholder { color: #999 !important; }
    .hero-form-card textarea { min-height: 40px; }
    .hero-form-card .btn-block { padding: 12px; font-size: 0.92rem; }
    .hero-form-phone { margin-top: 10px; padding-top: 10px; font-size: 0.82rem; }
    .hero-form-phone span { color: var(--gray-500); }

    /* Stats */
    .hero-stats { gap: 20px; padding-top: 16px; flex-wrap: wrap; justify-content: center; }
    .stat strong { font-size: 1.3rem; }
    .stat span { font-size: 0.75rem; }

    /* ===== REST ===== */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 24px 20px; }

    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .step-card { padding: 24px 16px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-tabs { gap: 6px; }
    .gallery-tab { padding: 6px 14px; font-size: 0.8rem; }

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

    .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sector-card { font-size: 0.85rem; padding: 12px 14px; }

    .section-cta h2 { font-size: 1.4rem; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    input, select, textarea { font-size: 16px; }

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

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .fixed-cta { display: flex; }
    .footer { padding-bottom: 80px; }
    .section:last-of-type { padding-bottom: 100px; }

    /* City pages */
    .city-hero { padding: 90px 0 40px; }
    .city-hero h1 { font-size: 1.6rem; }
    .city-sidebar { grid-template-columns: 1fr; }

    /* Lightbox */
    .lightbox-img-wrap { max-width: calc(100vw - 32px); }
    .lightbox-nav { width: 38px; height: 38px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.4rem; }
    .hero-desc { display: none; }
    .hero-content { padding: 22px 16px 28px; }
    .hero-form-card { padding: 16px 14px; }
    .hero-stats { gap: 16px; }
    .stat { text-align: center; }
    .stat strong { font-size: 1.1rem; }

    .section-title { font-size: 1.5rem; }
    .section-tag { font-size: 0.7rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: 1fr 1fr; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 320px; }

    .city-hero-actions { flex-direction: column; }
    .city-hero-actions .btn { width: 100%; }
}
