/* NT PROCON — responsive mobile & tablette */

@media (max-width: 991.98px) {
  .gwrap,
  .procon-home-section__inner,
  .procon-about-intro__container,
  .procon-projects-wrap,
  body.about-page .procon-devis-banner__inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Header compact */
  .header__logo {
    margin-left: 0.75rem !important;
  }

  .header__logo .procon-logo--header,
  .procon-logo--header {
    width: 52px !important;
    max-height: 44px !important;
  }

  .header__left-menu {
    display: none !important;
  }

  .header__menu-toggle,
  .header__reserve-toggle {
    margin: 0 !important;
    padding: 0.75rem 0.65rem !important;
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 1rem !important;
    mix-blend-mode: normal !important;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    top: max(0.35rem, env(safe-area-inset-top, 0.35rem)) !important;
    z-index: 1200 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-sizing: border-box;
  }

  .header__menu-toggle {
    right: max(0.35rem, env(safe-area-inset-right, 0.35rem)) !important;
  }

  .header__reserve-toggle {
    right: calc(max(0.35rem, env(safe-area-inset-right, 0.35rem)) + 4.25rem) !important;
  }

  /* Panneau menu fermé : ne pas bloquer les taps sur Menu / Devis */
  body:not(.is-menu-open) .header__menu,
  body:not(.is-menu-open) .header__menu-wrap,
  body:not(.is-menu-open) .header__menu-bg {
    pointer-events: none !important;
  }

  body:not(.is-menu-open) .header__menu-wrap {
    visibility: hidden !important;
  }

  body.is-menu-open .header__menu,
  body.is-menu-open .header__menu-wrap,
  body.is-menu-open .header__menu-bg {
    pointer-events: auto !important;
    visibility: visible !important;
  }

  body.is-menu-open .header__menu-main a {
    display: block !important;
    padding: 0.85rem 0.5rem !important;
    min-height: 48px !important;
    line-height: 1.35 !important;
    margin: 0.35rem 0 0 !important;
    touch-action: manipulation;
  }

  .header__logo {
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  .header__menu-toggle em,
  .header__reserve-toggle em {
    min-width: auto !important;
    font-size: 0.82rem !important;
  }

  .header__menu-toggle:after,
  .header__reserve-toggle:after {
    width: 1.1rem !important;
    height: 1.1rem !important;
    margin-left: 0.45rem !important;
    flex-shrink: 0;
  }

  body.about-page .header,
  body.projects-page .header {
    background: transparent !important;
    mix-blend-mode: normal !important;
  }

  /* À propos — typographie mobile */
  body.about-page {
    overflow-x: hidden;
  }

  body.about-page .procon-about-hero__title,
  body.about-page .block-2__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    line-height: 1.15 !important;
    padding: 0 1rem !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
    width: 100% !important;
  }

  body.about-page .procon-about-hero__sub,
  body.about-page .procon-hero-phrase {
    font-size: clamp(0.875rem, 3.2vw, 1rem) !important;
    line-height: 1.55 !important;
    max-width: min(34rem, 92vw);
    margin-left: auto;
    margin-right: auto;
  }

  body.about-page .procon-about-intro__lead,
  body.about-page .procon-about-card__text,
  body.about-page .procon-about-mission__text,
  body.about-page .procon-about-vision__text {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem) !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.about-page .procon-about-card__title,
  body.about-page .procon-about-mission__title,
  body.about-page .procon-about-vision__title,
  body.about-page .procon-about-sectors__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
    line-height: 1.22 !important;
  }

  body.about-page .procon-home-section__title {
    font-size: clamp(1.45rem, 5.5vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  body.about-page .procon-home-section__lead {
    font-size: clamp(0.9rem, 3.2vw, 1rem) !important;
    line-height: 1.6 !important;
  }

  body.about-page .procon-quote__text {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem) !important;
    line-height: 1.5 !important;
    padding: 0 0.25rem;
  }

  body.about-page .procon-devis-banner__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }

  body.about-page .block-f .block-c__title,
  body.about-page .block-f .procon-home-contact-teaser {
    font-size: clamp(1.2rem, 4.5vw, 1.65rem) !important;
    line-height: 1.3 !important;
    margin: 1.5rem 0 !important;
    padding: 0 0.25rem !important;
  }

  body.about-page .footer .block-c__title,
  body.about-page .footer__t--2 {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
    line-height: 1.25 !important;
  }

  body.about-page .footer__p,
  body.about-page .footer__p p,
  body.about-page .footer__nav a {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  body.about-page .footer .col-15,
  body.about-page .footer .col-9,
  body.about-page .footer [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.about-page .procon-about-sectors__body h3 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  body.about-page .procon-about-sectors__body p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  /* Accueil — hero & intro */
  body.procon-home-page {
    overflow-x: hidden;
  }

  body.procon-home-page .content__inner,
  body.procon-home-page .home-shadow,
  body.procon-home-page .block-c {
    overflow-x: hidden;
    max-width: 100%;
  }

  .home-hero {
    min-height: 100svh;
    min-height: calc(var(--vh, 1vh) * 100);
  }

  .home-hero__bg {
    overflow: hidden;
  }

  .home-hero__bg img,
  .home-hero__bg video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0 !important;
  }

  .home-hero__title {
    font-size: clamp(1.65rem, 7.5vw, 2.5rem) !important;
    line-height: 1.15 !important;
    padding: 0 1.25rem !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .home-hero__text {
    font-size: clamp(0.875rem, 3.2vw, 1rem) !important;
    line-height: 1.55 !important;
    margin-bottom: 5.5rem !important;
    padding: 0 1.25rem 1.5rem !important;
    visibility: visible !important;
    text-transform: none !important;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__text .block-f__cta {
    font-size: 0.8rem !important;
    padding: 0.7rem 1rem !important;
    margin-top: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .home__scroll-down {
    width: 7rem;
    height: 7rem;
    bottom: 2.5rem;
    z-index: 12;
  }

  /* Devis flottant : déjà dans le header sur mobile */
  .reserve-popup-fab {
    display: none !important;
  }

  .home-intro {
    padding: 4rem 1.25rem 3rem !important;
  }

  .home-intro__sub {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem) !important;
    line-height: 1.65 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.25rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .home-intro .block-c__title,
  .block-c > .block-c__title {
    font-size: clamp(1.35rem, 5.5vw, 2rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 0.5rem !important;
    text-align: center;
    max-width: min(36rem, 94vw);
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    white-space: normal !important;
  }

  .block-c__title,
  .block-1 .block-c__title,
  .block-1 h3.block-c__title {
    font-size: clamp(1.45rem, 5.5vw, 2.15rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    white-space: normal !important;
  }

  .block-1__sub {
    font-size: 0.75rem !important;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem !important;
    padding: 0 0.25rem;
  }

  .block-1 .home-intro__sub,
  .block-1 .home-intro__sub p {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem) !important;
    line-height: 1.65 !important;
    text-align: left;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .block-1 .home-intro__sub p {
    margin: 0 0 1rem;
  }

  .block-1 .stagger-in__el + .stagger-in__el {
    margin-top: 2rem;
  }

  .block-1 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .block-c {
    padding: 3rem 1.25rem 2.5rem !important;
    text-align: center;
  }

  .block-c > .home-intro__sub {
    font-size: clamp(0.875rem, 3.2vw, 1rem) !important;
    line-height: 1.6 !important;
    padding: 0 0.5rem !important;
    max-width: min(34rem, 92vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .block-c__cta {
    font-size: 0.85rem !important;
    padding: 0.85rem 1.15rem !important;
    margin: 1.25rem auto 0 !important;
    display: inline-flex !important;
  }

  .dcarousel--item strong {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem) !important;
    line-height: 1.3 !important;
    padding: 0 0.5rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center !important;
  }

  /* Sections PROCON ajoutées */
  body.procon-home-page .procon-home-section {
    padding: 3rem 0 !important;
  }

  body.procon-home-page .procon-home-section__title {
    font-size: clamp(1.45rem, 5.5vw, 2rem) !important;
    line-height: 1.2 !important;
    padding: 0 0.25rem;
  }

  body.procon-home-page .procon-home-section__lead {
    font-size: clamp(0.9rem, 3.2vw, 1rem) !important;
    line-height: 1.6 !important;
    padding: 0 0.25rem;
  }

  body.procon-home-page .procon-stat__label {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  body.procon-home-page .procon-quote {
    padding: 3rem 1.25rem !important;
  }

  body.procon-home-page .procon-quote__text {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem) !important;
    line-height: 1.5 !important;
    padding: 0 0.25rem;
  }

  body.procon-home-page .procon-quote__author {
    font-size: 0.72rem !important;
    line-height: 1.45 !important;
    padding: 0 0.5rem;
  }

  body.procon-home-page .procon-devis-banner__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }

  body.procon-home-page .procon-devis-banner__lead {
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
  }

  body.procon-home-page .block-f .block-c__title,
  body.procon-home-page .block-f .procon-home-contact-teaser {
    font-size: clamp(1.2rem, 4.5vw, 1.65rem) !important;
    line-height: 1.3 !important;
    margin: 1.5rem 0 !important;
    padding: 0 0.25rem !important;
    text-align: left;
  }

  body.procon-home-page .block-f .block-f__cta {
    font-size: 0.85rem !important;
    margin-left: 0 !important;
  }

  body.procon-home-page .footer .block-c__title,
  body.procon-home-page .footer__t--2 {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
    line-height: 1.25 !important;
  }

  body.procon-home-page .footer__p,
  body.procon-home-page .footer__p p,
  body.procon-home-page .footer__nav a {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  body.procon-home-page .footer .col-15,
  body.procon-home-page .footer .col-9,
  body.procon-home-page .footer [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Grille legacy — empiler sur mobile */
  .row [class*="offset-lg-"],
  .row [class*="offset-"]:not(.offset-0) {
    margin-left: 0 !important;
  }

  .block-1 .col-lg-10,
  .block-1 .col-lg-12,
  .block-1 [class*="col-"],
  .home-shadow .col-lg-8,
  .home-shadow .col-lg-12,
  .home-shadow [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .block-1 .row.ps-lg-5 {
    padding-left: 0 !important;
  }

  /* Galerie photos accueil */
  .block-v {
    overflow: hidden;
    padding-bottom: 2rem;
  }

  .block-v .row > [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 1rem;
  }

  .block-v__img--1,
  .block-v__img--2,
  .block-v__img--3,
  .block-v__img--4 {
    margin-left: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .block-v__row--2 {
    margin-top: 0 !important;
  }

  /* Carousel secteurs */
  .block-c__dcarousel,
  .dcarousel,
  .dcarousel--wrapper {
    overflow: hidden !important;
    max-width: 100%;
  }

  .block-c__dcarousel {
    padding-top: 2.5rem !important;
  }

  /* Footer */
  .footer__r--1 > [class*="col-"],
  .footer__r--3 > [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem;
  }

  .footer__r--3 {
    text-align: left !important;
  }

  /* WhatsApp */
  #floating-btn {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    width: 50px;
    height: 50px;
  }

  #floating-btn img,
  #float-icon {
    width: 26px !important;
    height: 26px !important;
  }

  /* Popup devis */
  .reserve-popup__dialog {
    width: calc(100% - 1.5rem) !important;
    max-height: calc(100svh - 2rem);
    margin: 1rem auto;
    overflow-y: auto;
  }

  .reserve-popup__row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  body.about-page .procon-about-hero {
    min-height: 58vh;
  }

  body.about-page .procon-about-hero__content {
    padding: 1.5rem 1.25rem 2rem !important;
  }

  body.about-page .procon-about-hero .block-2__title,
  body.about-page .procon-about-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
  }

  body.about-page .procon-about-pillars {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }

  body.about-page .procon-about-sectors__grid {
    grid-template-columns: 1fr !important;
  }

  body.about-page .procon-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
  }

  body.about-page .procon-stat {
    padding: 1.15rem 0.65rem;
  }

  body.about-page .procon-stat__num {
    font-size: 1.65rem !important;
  }

  body.about-page .block-1 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  body.about-page .home-intro {
    padding: 3rem 1.25rem 2rem !important;
  }

  /* Projets */
  body.projects-page .procon-projects-hero {
    min-height: 52vh;
    min-height: calc(var(--vh, 1vh) * 52);
    align-items: center;
  }

  body.projects-page .procon-projects-hero__content {
    padding: clamp(4.5rem, 12vh, 6rem) 1.25rem 2.5rem !important;
  }

  body.projects-page .procon-projects-hero__title {
    font-size: clamp(1.65rem, 7vw, 2.25rem) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.projects-page .procon-projects-hero__lead {
    font-size: clamp(0.875rem, 3.2vw, 1rem) !important;
    line-height: 1.55 !important;
  }

  body.projects-page .procon-projects-intro__title {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
    line-height: 1.3 !important;
  }

  body.projects-page .procon-projects-intro__text {
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
  }

  body.projects-page .procon-home-section__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }

  body.projects-page .procon-home-section__lead {
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
  }

  body.projects-page .procon-projects-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    scrollbar-width: none;
  }

  body.projects-page .procon-projects-filters::-webkit-scrollbar {
    display: none;
  }

  body.projects-page .procon-projects-filter {
    flex-shrink: 0;
    font-size: 0.65rem;
    padding: 0.5rem 0.85rem;
  }

  body.projects-page .procon-project-item__title {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  body.projects-page .procon-project-item__desc {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  body.projects-page .procon-projects-gallery__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }

  body.projects-page .procon-devis-banner__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }

  body.projects-page .procon-devis-banner__lead {
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
  }

  body.projects-page .procon-presence {
    grid-template-columns: 1fr !important;
  }

  body.projects-page .procon-devis-banner__actions .procon-devis-banner__btn {
    min-width: 0;
  }

  body.projects-page .block-f .block-c__title,
  body.projects-page .block-f .procon-home-contact-teaser {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem) !important;
    text-align: center !important;
    padding: 0 1rem !important;
  }

  body.projects-page .block-f .gwrap {
    text-align: center;
    padding: 2rem 1.25rem !important;
  }

  body.projects-page .footer .col-15,
  body.projects-page .footer .col-9,
  body.projects-page .footer [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.projects-page .footer .block-c__title,
  body.projects-page .footer__t--2 {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
  }

  body.projects-page .footer__p,
  body.projects-page .footer__p p {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  .procon-projects-page-grid {
    grid-template-columns: 1fr !important;
  }

  .procon-projects-masonry {
    columns: 2 !important;
    column-gap: 0.65rem !important;
  }

  .procon-devis-banner {
    padding: 2rem 1.25rem !important;
    text-align: center;
  }

  .procon-devis-banner__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .procon-devis-banner__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Contact */
  body.contact-page .home-hero {
    min-height: 52vh;
    min-height: calc(var(--vh, 1vh) * 52);
  }

  body.contact-page .home-hero__title {
    font-size: clamp(1.65rem, 7.5vw, 2.5rem) !important;
    line-height: 1.15 !important;
    padding: 0 1.25rem !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  body.contact-page .home-hero__text {
    font-size: clamp(0.875rem, 3.2vw, 1rem) !important;
    line-height: 1.55 !important;
    text-transform: none !important;
    padding: 0 1.25rem 2rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  body.contact-page .block-contact {
    margin-top: -1.5rem;
    padding: 2.5rem 0 3rem !important;
  }

  body.contact-page .block-contact__title--2 {
    font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
    line-height: 1.35 !important;
    padding: 0 0.25rem;
  }

  body.contact-page .procon-devis-banner {
    padding: 2.5rem 1.25rem !important;
    text-align: center;
  }

  body.contact-page .procon-devis-banner__title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
  }

  body.contact-page .procon-devis-banner__lead {
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
  }

  body.contact-page .procon-contact-presence {
    padding: 2.5rem 0 !important;
  }

  body.contact-page .procon-presence {
    grid-template-columns: 1fr !important;
  }

  body.contact-page .block-f .block-c__title,
  body.contact-page .block-f .procon-home-contact-teaser {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem) !important;
    text-align: center !important;
    padding: 0 1rem !important;
  }

  body.contact-page .block-f .gwrap {
    text-align: center;
    padding: 2rem 1.25rem !important;
  }

  body.contact-page .footer .col-15,
  body.contact-page .footer .col-9,
  body.contact-page .footer [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.contact-page .footer .block-c__title,
  body.contact-page .footer__t--2 {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
  }

  body.contact-page .footer__p,
  body.contact-page .footer__p p {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

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

  .memberships-block__grid {
    grid-template-columns: 1fr !important;
  }

  .procon-sectors-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 399.98px) {
  .header__menu-toggle em,
  .header__reserve-toggle em {
    font-size: 0.78rem !important;
  }

  .header__reserve-toggle {
    right: calc(max(0.35rem, env(safe-area-inset-right, 0.35rem)) + 3.75rem) !important;
  }

  .home-hero__title {
    font-size: 1.5rem !important;
    line-height: 1.18 !important;
  }

  body.procon-home-page .procon-home-section__title {
    font-size: 1.35rem !important;
  }

  .home-intro .block-c__title,
  .block-c > .block-c__title {
    font-size: 1.25rem !important;
  }

  .procon-projects-masonry {
    columns: 1 !important;
  }
}
