/* NT PROCON — responsive global (textes + layout) + fades mobile */

/* Empêche le débordement horizontal */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

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

/* Typographie fluide globale */
.home-hero__title,
.procon-about-hero__title,
.procon-projects-hero__title,
.block-2__title {
  font-size: clamp(1.65rem, 7vw, 4.25rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  max-width: 100%;
  padding-left: clamp(0.75rem, 3vw, 1.5rem);
  padding-right: clamp(0.75rem, 3vw, 1.5rem);
}

.home-hero__text,
.procon-about-hero__sub,
.procon-projects-hero__lead {
  font-size: clamp(0.875rem, 3.2vw, 1.1rem) !important;
  line-height: 1.55 !important;
  max-width: min(36rem, 92vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-wrap: anywhere;
}

.procon-home-section__title,
.procon-vision__title,
.procon-about-intro__title,
.procon-about-card__title,
.procon-about-mission__title,
.procon-about-vision__title,
.procon-projects-intro__title,
.procon-projects-gallery__title,
.memberships-block__heading,
.block-c__title,
.footer__t--2 {
  font-size: clamp(1.35rem, 5vw, 2.35rem) !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}

.procon-home-section__lead,
.procon-vision__lead,
.procon-about-intro__lead,
.procon-about-card__text,
.procon-about-mission__text,
.procon-about-vision__text,
.procon-projects-intro__text,
.procon-projects-gallery__lead,
.home-intro__sub,
.home-intro__sub p,
.memberships-block__subtitle,
.memberships-plan__tagline,
.procon-quote__text,
.footer__p,
.footer__p p,
.footer__r--3,
.block-contact__title--2,
.procon-contact-presence__lead {
  font-size: clamp(0.9rem, 3.2vw, 1.05rem) !important;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}

.procon-home-section__kicker,
.procon-about-hero__kicker,
.procon-about-sectors__kicker,
.procon-projects-hero__kicker,
.procon-projects-intro__kicker,
.procon-projects-gallery__kicker,
.procon-contact-presence__kicker {
  font-size: clamp(0.62rem, 2.4vw, 0.75rem) !important;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}

.procon-devis-banner__title {
  font-size: clamp(1.75rem, 9vw, 4rem) !important;
  line-height: 1.05 !important;
  overflow-wrap: normal;
}

.procon-devis-banner__lead {
  font-size: clamp(0.78rem, 3vw, 0.95rem) !important;
  line-height: 1.5 !important;
  max-width: min(38ch, 92vw);
}

.procon-devis-banner__btn {
  font-size: clamp(0.68rem, 2.5vw, 0.78rem) !important;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

/* Conteneurs : pas de débordement */
.procon-home-section__inner,
.procon-about-intro__container,
.procon-projects-wrap,
.procon-vision__inner,
.procon-devis-banner__inner,
.gwrap,
.memberships-block__inner {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

/* Fades — distances adaptées mobile */
@media (max-width: 767.98px) {
  .procon-reveal {
    transform: translate3d(0, 24px, 0);
    transition-duration: 0.55s;
  }

  .procon-reveal-stagger > * {
    transform: translate3d(0, 18px, 0);
    transition-duration: 0.45s;
  }

  .home-hero__title .home-hero__word,
  .procon-devis-banner__word,
  .procon-projects-hero__word,
  .procon-projects-intro__word,
  .procon-projects-gallery__word {
    white-space: normal !important;
  }

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

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

  .procon-float-gallery__row img {
    width: clamp(160px, 62vw, 240px);
    height: clamp(120px, 42vw, 160px);
  }

  .procon-float-gallery {
    padding: 1.75rem 0;
    gap: 0.65rem;
  }

  .block-f__cta,
  .block-c__cta,
  .contactform_cta {
    width: auto;
    max-width: 100%;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    font-size: 0.72rem;
  }

  .footer,
  .footer p,
  .footer__p,
  .footer__p p,
  .footer small,
  .footer__r--3 {
    font-size: clamp(0.82rem, 3.2vw, 0.95rem) !important;
    line-height: 1.55 !important;
  }

  .footer__t--2 {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
    margin-bottom: 1rem !important;
  }

  .procon-presence__city {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
  }

  .procon-presence__addr,
  .procon-presence__link {
    font-size: clamp(0.85rem, 3.2vw, 0.95rem) !important;
    overflow-wrap: anywhere;
  }

  .procon-stat__num {
    font-size: clamp(1.5rem, 7vw, 2.25rem) !important;
  }

  .procon-stat__label {
    font-size: clamp(0.65rem, 2.8vw, 0.78rem) !important;
  }

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

  .procon-about-mission-gallery {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

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

  .home-intro,
  .home-shadow .block-1,
  .block-c {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .home-intro .block-c__title,
  .block-c > .block-c__title {
    font-size: clamp(1.2rem, 5.5vw, 1.75rem) !important;
    padding: 0 0.25rem !important;
  }
}

@media (max-width: 479.98px) {
  .home-hero__title,
  .procon-about-hero__title,
  .procon-projects-hero__title {
    font-size: clamp(1.45rem, 8vw, 2rem) !important;
  }

  .procon-home-section__title,
  .procon-vision__title {
    font-size: clamp(1.25rem, 6vw, 1.65rem) !important;
  }

  .procon-about-mission-gallery {
    grid-template-columns: 1fr !important;
  }

  .procon-float-gallery__row img {
    width: 72vw;
    height: 48vw;
  }
}

/* Tablette */
@media (min-width: 768px) and (max-width: 991.98px) {
  .procon-home-section__title {
    font-size: clamp(1.55rem, 3.5vw, 2rem) !important;
  }

  .procon-why-grid,
  .procon-commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Fade-in entrée hero (chargement) */
@keyframes procon-hero-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.home-hero__title,
.home-hero__text,
.procon-about-hero__kicker,
.procon-about-hero__title,
.procon-about-hero__sub,
.procon-projects-hero__kicker,
.procon-projects-hero__title,
.procon-projects-hero__lead,
body.contact-page .home-hero__title,
body.contact-page .home-hero__text {
  animation: procon-hero-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero__text,
.procon-about-hero__sub,
.procon-projects-hero__lead,
body.contact-page .home-hero__text {
  animation-delay: 0.15s;
}

.procon-about-hero__title,
.procon-projects-hero__title {
  animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__title,
  .home-hero__text,
  .procon-about-hero__kicker,
  .procon-about-hero__title,
  .procon-about-hero__sub,
  .procon-projects-hero__kicker,
  .procon-projects-hero__title,
  .procon-projects-hero__lead,
  body.contact-page .home-hero__title,
  body.contact-page .home-hero__text {
    animation: none !important;
  }
}
