/* NT PROCON — thème global */

/* Typographie charte (Montserrat titres / Urbanist corps) */
body,
p,
.footer,
.footer__p,
.reserve-popup,
.procon-home-section__lead,
.procon-about-card__text,
.procon-about-mission__text {
  font-family: var(--procon-font-body);
}

h1, h2, h3, h4, h5, h6,
.home-hero__title,
.footer__t--2,
.block-c__title,
.procon-home-section__title,
.procon-home-section__kicker,
.procon-about-hero__title,
.procon-about-card__title,
.procon-about-mission__title,
.procon-loader__title,
.procon-gallery-mosaic__title,
.procon-vision__title,
.header__menu-main a,
.reserve-popup__title {
  font-family: var(--procon-font-display);
}

.procon-home-section__title,
.home-hero__title,
.procon-about-hero__title {
  font-weight: 900;
}

.procon-stripe {
  position: relative;
  height: 4px;
  background: var(--procon-lime);
  overflow: hidden;
}

.procon-stripe::after {
  content: "";
  position: absolute;
  right: 12%;
  top: -200%;
  width: 6px;
  height: 500%;
  background: var(--procon-black);
  transform: rotate(45deg);
  opacity: 0.85;
}

.procon-stripe::before {
  content: "";
  position: absolute;
  right: calc(12% + 10px);
  top: -200%;
  width: 3px;
  height: 500%;
  background: var(--procon-lime);
  transform: rotate(45deg);
  filter: brightness(1.15);
}

.procon-reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.procon-reveal.procon-reveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger enfants (fade-up en cascade) */
.procon-reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.procon-reveal-stagger.procon-reveal--visible > *:nth-child(1),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(1) { transition-delay: 0.06s; opacity: 1; transform: none; }
.procon-reveal-stagger.procon-reveal--visible > *:nth-child(2),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(2) { transition-delay: 0.14s; opacity: 1; transform: none; }
.procon-reveal-stagger.procon-reveal--visible > *:nth-child(3),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(3) { transition-delay: 0.22s; opacity: 1; transform: none; }
.procon-reveal-stagger.procon-reveal--visible > *:nth-child(4),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.procon-reveal-stagger.procon-reveal--visible > *:nth-child(5),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(5) { transition-delay: 0.38s; opacity: 1; transform: none; }
.procon-reveal-stagger.procon-reveal--visible > *:nth-child(6),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(6) { transition-delay: 0.46s; opacity: 1; transform: none; }
.procon-reveal-stagger.procon-reveal--visible > *:nth-child(7),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(7) { transition-delay: 0.54s; opacity: 1; transform: none; }
.procon-reveal-stagger.procon-reveal--visible > *:nth-child(8),
.procon-reveal.procon-reveal--visible .procon-reveal-stagger > *:nth-child(8) { transition-delay: 0.62s; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .procon-reveal,
  .procon-reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Logo NT PROCON */
.procon-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.procon-logo--header {
  width: 72px;
  max-height: 56px;
}

.header__logo .procon-logo--header {
  width: clamp(56px, 10vw, 80px);
}

.procon-logo--footer {
  width: 96px;
  max-height: 72px;
  margin-bottom: 1.25rem;
}

.procon-logo--loading {
  width: 120px;
  max-height: 90px;
  margin: 0 auto 1.5rem;
}

.procon-logo--loader {
  width: clamp(90px, 22vw, 140px);
  max-height: clamp(68px, 16vw, 105px);
  margin: 0 auto 1rem;
}

.loading-wrapper .procon-logo--loading {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}

/* Bouton WhatsApp flottant */
#floating-btn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  background: #25d366;
  border-radius: 50%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 9990;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

#floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#floating-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#floating-btn img,
#float-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  display: block;
}

/* Header NT PROCON — identique sur toutes les pages */
.header__logo,
.header__left-menu,
.header__menu-toggle {
  opacity: 1 !important;
  visibility: visible !important;
}

.header__logo {
  left: 50% !important;
  transform: translate3d(-50%, -70%, 0) !important;
}

.header__left-menu {
  display: flex !important;
  align-items: center;
  margin-left: 0;
}

.header__menu-toggle,
.header__reserve-toggle {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

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

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

body.is-menu-open .header__menu-bg {
  display: block !important;
  opacity: 0.65 !important;
  z-index: 1040 !important;
  pointer-events: auto !important;
}

body.is-menu-open .header__menu-wrap {
  transform: translateX(0) !important;
  z-index: 1050 !important;
}

body.is-menu-open .header__menu-toggle {
  z-index: 1060 !important;
  mix-blend-mode: normal !important;
  color: #000 !important;
  text-shadow: none !important;
}

/* Liens menu visibles (le thème les met à opacity:0 pour GSAP) */
body.is-menu-open .header__menu-main a {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  color: #000 !important;
}

body.is-menu-open .header__menu-bottom {
  opacity: 1 !important;
  filter: none !important;
}

body.is-menu-open .header__menu-bottom a,
body.is-menu-open .mobile-menu-lang a {
  opacity: 1 !important;
  color: #000 !important;
}

/* Bloquer le scroll derrière le menu */
html.procon-menu-open,
body.procon-menu-open {
  overflow: hidden !important;
}

.header__menu-wrap {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__menu-bg {
  transition: opacity 0.28s ease;
}

/* Scroll natif — priorité sur bundle / Lenis / Safari */
html.about-page-scroll,
html.projects-page-scroll,
html.procon-native-scroll {
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  scroll-behavior: auto !important;
}

body.about-page,
body.projects-page,
body.procon-native-scroll:not(.procon-home-page) {
  display: block !important;
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  touch-action: pan-y !important;
  position: relative !important;
}

body.about-page.reserve-popup-open,
body.projects-page.reserve-popup-open,
body.procon-native-scroll.reserve-popup-open {
  overflow: hidden !important;
}

body.about-page .site__wrap,
body.projects-page .site__wrap,
body.procon-native-scroll .site__wrap,
body.about-page #content,
body.projects-page #content,
body.procon-native-scroll #content,
body.about-page main,
body.projects-page main,
body.procon-native-scroll main,
body.about-page .content__inner,
body.projects-page .content__inner,
body.procon-native-scroll .content__inner {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}

html.about-page-scroll::-webkit-scrollbar,
html.projects-page-scroll::-webkit-scrollbar,
html.procon-native-scroll::-webkit-scrollbar {
  display: block !important;
  width: 10px;
}

html.about-page-scroll::-webkit-scrollbar-thumb,
html.projects-page-scroll::-webkit-scrollbar-thumb,
html.procon-native-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 5px;
}

html.lenis,
html.lenis-stopped,
html.lenis-locked,
body.lenis,
body.lenis-stopped,
body.lenis-locked {
  overflow-y: scroll !important;
  height: auto !important;
}

html.lenis-locked {
  overflow-y: scroll !important;
  height: auto !important;
}

/* Conteneur commun — centrage contenu & photos */
.procon-about-intro__container,
.procon-projects-wrap {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.procon-native-scroll .site__wrap,
body.about-page .site__wrap,
body.projects-page .site__wrap {
  opacity: 1 !important;
  visibility: visible !important;
}

body.procon-native-scroll .loading.is-hidden,
body.procon-native-scroll #procon-loader.is-hidden,
body.about-page .loading.is-hidden,
body.about-page #procon-loader.is-hidden,
body.projects-page .loading.is-hidden,
body.projects-page #procon-loader.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

body.procon-home-page .fios,
body.procon-home-page .stagger-in__el,
body.procon-home-page .ctaos {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  visibility: visible !important;
}

body.procon-home-page .transition,
body.procon-home-page .video-fs {
  display: none !important;
  pointer-events: none !important;
}

body.procon-native-scroll .procon-home-section__inner {
  max-width: 1120px;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

@media (max-width: 767.98px) {
  .procon-home-section {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  }

  .procon-project-card__body {
    padding: 1rem 1.15rem;
  }
}
