/* =======================================================
   VITRINE RESPONSIVE OVERRIDES (Global)
   Scope: base vitrine pages/modules
   ======================================================= */

/* ---------- Base safety ---------- */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    text-wrap: pretty;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
svg,
iframe {
    max-width: 100%;
}

.container,
.wrapper,
.navbar-container,
.hero-wrapper,
.sectors-container {
    width: min(100%, 100%);
}

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
    .container,
    .wrapper,
    .hero-wrapper,
    .sectors-container,
    .site-footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hero-grid,
    .cards-grid,
    .split-layout,
    .zones-grid,
    .agencies-grid {
        gap: 2rem !important;
    }

    .trust-section {
        margin-top: 0 !important;
        box-shadow: none !important;
    }

    .hero-video-wrapper > div:last-child {
        position: static !important;
        margin-top: 14px !important;
        padding: 0.9rem 1rem !important;
        border-radius: 12px !important;
        max-width: 100% !important;
    }
}

/* ---------- Mobile landscape / small tablet ---------- */
@media (max-width: 992px) {
    .navbar-wrapper {
        height: 74px !important;
    }

    .navbar-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .mobile-menu-content {
        padding: 24px 16px 28px !important;
        gap: 18px !important;
    }

    .mobile-nav-links a {
        font-size: clamp(1.1rem, 4.4vw, 1.45rem) !important;
    }

    .mobile-header {
        left: 16px !important;
        right: 16px !important;
    }

    .hero-section {
        background-attachment: scroll !important;
    }

    .features-grid,
    .grid-features,
    .cards-grid,
    .process-grid,
    .zones-grid,
    .agencies-grid {
        grid-template-columns: 1fr !important;
    }

    .process-grid::before {
        display: none !important;
    }

    .stats-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 22px 14px !important;
        border-radius: 18px !important;
    }

    .stat-item .number {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
    }

    .feature-card,
    .zone-card-pro,
    .sector-card,
    .agency-card,
    .review-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .features-grid > *,
    .grid-features > *,
    .cards-grid > *,
    .process-grid > *,
    .zones-grid > *,
    .agencies-grid > *,
    .city-grid > *,
    .bento-grid > * {
        min-width: 0 !important;
    }

    .card-header-grid,
    .accordion-content-wrapper {
        grid-template-columns: 1fr !important;
    }

    .city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .toggle-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    html,
    body,
    main,
    section,
    .hero-section,
    .slider-section-modern,
    .trust-section,
    .zois-corporate-page,
    .contact-page,
    .sectors-container {
        overflow-x: clip !important;
    }

    .container,
    .wrapper,
    .hero-wrapper,
    .sectors-container,
    .site-footer .container,
    .footer-cta-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .logo-img {
        height: 32px !important;
    }

    .hero-section {
        min-height: auto !important;
        padding-top: max(92px, calc(var(--header-height, 90px) + 8px)) !important;
        padding-bottom: 56px !important;
    }

    .hero-text-block {
        max-width: 100% !important;
    }

    .hero-section h1,
    .hero-content h1 {
        font-size: clamp(1.8rem, 9vw, 2.6rem) !important;
        letter-spacing: -0.02em !important;
    }

    .hero-description,
    .hero-content p,
    .hero-text p {
        max-width: 100% !important;
        font-size: 0.98rem !important;
    }

    .hero-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 26px !important;
    }

    .btn-primary-lg,
    .btn-secondary-lg,
    .btn-main,
    .btn-secondary,
    .btn-submit,
    .btn-footer-cta {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 13px 16px !important;
    }

    .hero-trust {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    .hero-trust .dot {
        display: none !important;
    }

    .section-header,
    .trust-header,
    .section-title {
        margin-bottom: 30px !important;
    }

    .section-header h2,
    .trust-header h2,
    .section-title h2,
    .timeline-title {
        font-size: clamp(1.45rem, 7vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    .features-section,
    .philosophy-section,
    .locations-section,
    .faq-section,
    .recruit-banner,
    .section-padding {
        padding-top: 54px !important;
        padding-bottom: 54px !important;
    }

    .feature-card,
    .zone-card-pro,
    .sector-card,
    .agency-details,
    .review-card,
    .timeline-card,
    .bento-card,
    .contact-form-wrapper {
        padding: 18px 16px !important;
        border-radius: 18px !important;
    }

    .bento-section {
        min-height: auto !important;
        padding: 56px 0 !important;
        display: block !important;
    }

    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        max-height: none !important;
    }

    .eco-card {
        padding-top: 58px !important;
    }

    .floating-icon {
        font-size: 96px !important;
        right: -8px !important;
        bottom: -14px !important;
    }

    .timeline-nav-vertical {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: max-content !important;
        gap: 10px !important;
        width: 100% !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .nav-step {
        white-space: nowrap !important;
    }

    .tl-card-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .tl-feature-item {
        gap: 10px !important;
        padding: 10px 12px !important;
    }

    .logo-marquee {
        max-width: 100% !important;
        margin-bottom: 40px !important;
        padding: 8px 0 2px !important;
    }

    .logo-group {
        gap: 30px !important;
    }

    .logo-group img {
        height: 30px !important;
    }

    .marquee-fade {
        width: 36px !important;
    }

    .slider-section-modern {
        padding: 56px 0 86px !important;
    }

    .modern-slide {
        width: calc(100vw - 32px) !important;
        max-width: 520px !important;
        height: min(66vh, 430px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .slide-glass-card {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 0 10px 14px !important;
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    .slide-glass-card h3 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }

    .slide-glass-card p {
        font-size: 0.92rem !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 3 !important;
    }

    .swiper-pagination.secteur-pagination {
        bottom: 18px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .hero-video-card {
        transform: none !important;
        border-radius: 18px !important;
    }

    .hero-tags {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .tag {
        font-size: 0.72rem !important;
        padding: 0.32rem 0.72rem !important;
    }

    .stats-container {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .stat-item .label {
        font-size: 0.8rem !important;
    }

    .cta-footer {
        margin-top: 2rem !important;
        padding: 44px 0 !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .cta-footer h2[style] {
        font-size: clamp(1.45rem, 7vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    .cta-footer p[style] {
        font-size: 0.96rem !important;
        margin-bottom: 1.4rem !important;
    }

    .cta-footer .btn-main[style] {
        padding: 0.95rem 1.2rem !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
    }

    .contact-hero,
    .solutions-hero {
        min-height: auto !important;
        padding-top: 98px !important;
        padding-bottom: 48px !important;
    }

    .hero-wrapper {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .agency-map {
        height: 190px !important;
    }

    .faq-question {
        font-size: 1rem !important;
        padding: 1rem 0 !important;
    }

    .footer-cta-wrapper {
        margin-bottom: -34px !important;
    }

    .footer-cta-card {
        padding: 22px 16px !important;
        border-radius: 20px !important;
        gap: 14px !important;
    }

    .cta-content h2 {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
        line-height: 1.2 !important;
    }

    .cta-content p {
        font-size: 0.94rem !important;
    }

    .site-footer {
        padding-top: 92px !important;
        padding-bottom: 28px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 34px !important;
        padding-bottom: 30px !important;
        text-align: center !important;
    }

    .brand-col {
        padding-right: 0 !important;
    }

    .social-links {
        justify-content: center !important;
    }

    .contact-list li {
        justify-content: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .legal-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* ---------- Small mobile ---------- */
@media (max-width: 480px) {
    .container,
    .wrapper,
    .hero-wrapper,
    .sectors-container,
    .site-footer .container,
    .footer-cta-wrapper {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .navbar-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .mobile-menu-content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .modern-slide {
        width: calc(100vw - 28px) !important;
        height: min(62vh, 400px) !important;
    }

    .slide-glass-card {
        width: calc(100% - 16px) !important;
        margin: 0 8px 12px !important;
        padding: 14px 12px !important;
    }

    .slide-link {
        font-size: 0.78rem !important;
        letter-spacing: 0.04em !important;
    }

    .city-grid,
    .doc-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .reactivity-badge {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .recruit-banner {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .recruit-banner h3 {
        font-size: 1.2rem !important;
    }

    .btn-outline {
        width: 100% !important;
        padding: 11px 14px !important;
    }

    .c-modal__panel {
        width: min(560px, calc(100vw - 20px)) !important;
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }

    .c-modal__actions {
        flex-direction: column !important;
    }

    .c-modal__actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ---------- Ultra-small ---------- */
@media (max-width: 390px) {
    .hero-section h1,
    .hero-content h1,
    .hero-text h1 {
        font-size: clamp(1.55rem, 9.2vw, 2rem) !important;
    }

    .hero-description,
    .hero-content p,
    .hero-text p {
        font-size: 0.92rem !important;
    }

    .tag,
    .hero-tag,
    .hero-badge {
        font-size: 0.68rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track,
    .wave,
    .hero-bg-anim,
    .review-card,
    .feature-card,
    .zone-card-pro,
    .sector-card,
    .btn-main,
    .btn-primary-lg,
    .btn-secondary-lg,
    .btn-submit,
    .btn-footer-cta {
        animation: none !important;
        transition: none !important;
    }
}
