/* NT PROCON — polish design (charte graphique 2026) */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(var(--procon-lime-rgb), 0.35);
  color: var(--procon-black);
}

/* --- Header au scroll --- */
.header {
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header.header--scrolled {
  background: rgba(26, 26, 26, 0.9) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(var(--procon-lime-rgb), 0.18);
}

body.is-menu-open .header.header--scrolled,
body.reserve-popup-open .header.header--scrolled {
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header__left-menu a {
  position: relative;
  transition: color 0.2s ease;
}

.header__left-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--procon-lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.header__left-menu a:hover::after,
.header__left-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__menu-toggle:hover,
.header__reserve-toggle:hover {
  color: var(--procon-lime) !important;
}

/* --- CTAs unifiés --- */
.block-f__cta,
.block-c__cta,
.contactform_cta,
.home-hero__text .block-f__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--procon-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--procon-black) !important;
  background: var(--procon-lime);
  border: 2px solid var(--procon-lime);
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.block-f__cta:hover,
.block-c__cta:hover,
.contactform_cta:hover,
.home-hero__text .block-f__cta:hover {
  background: transparent;
  color: var(--procon-lime) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.block-f__cta svg path,
.block-c__cta svg path,
.contactform_cta svg path {
  stroke: currentColor;
}

/* Bandeau pré-footer */
.block-f.bg-black {
  background: var(--procon-black) !important;
  position: relative;
  overflow: hidden;
}

.block-f.bg-black::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--procon-lime), transparent);
  pointer-events: none;
}

.block-f .procon-home-contact-teaser,
.block-f .block-c__title {
  color: #fff !important;
}

/* --- Footer --- */
.footer {
  background: var(--procon-black) !important;
  border-top: 1px solid rgba(var(--procon-lime-rgb), 0.12);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(180px, 36%);
  height: 3px;
  background: var(--procon-lime);
  pointer-events: none;
}

.footer__t--2 {
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer,
.footer p,
.footer__p,
.footer__p p,
.footer__r--3,
.footer__r--3 > [class*="col-"],
.footer small {
  color: #fff !important;
}

.footer__nav a {
  color: #fff !important;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer__nav a:hover {
  color: var(--procon-lime) !important;
  transform: translateX(3px);
}

.footer__p a {
  color: #fff !important;
  transition: color 0.2s ease;
}

.footer__p a:hover {
  color: var(--procon-lime) !important;
}

.footer .iubenda-cs-preferences-link {
  color: rgba(255, 255, 255, 0.75) !important;
}

.footer .iubenda-cs-preferences-link:hover {
  color: var(--procon-lime) !important;
}

.footer__scrolltop {
  border-color: rgba(var(--procon-lime-rgb), 0.45) !important;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer__scrolltop:hover {
  background: var(--procon-lime) !important;
  transform: translateY(-3px);
}

.footer__scrolltop:hover circle,
.footer__scrolltop:hover path {
  stroke: var(--procon-black);
}

/* --- Formulaire contact --- */
body.contact-page .block-contact .input--2,
body.contact-page .block-contact textarea.input--2,
body.contact-page .block-contact select.input--2 {
  border: 1px solid rgba(10, 12, 16, 0.12);
  background: var(--procon-gray);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.contact-page .block-contact .input--2:focus,
body.contact-page .block-contact textarea.input--2:focus,
body.contact-page .block-contact select.input--2:focus {
  outline: none;
  border-color: var(--procon-lime);
  box-shadow: 0 0 0 3px rgba(var(--procon-lime-rgb), 0.22);
  background: #fff;
}

body.contact-page .contactform_cta {
  background: var(--procon-black);
  color: var(--procon-lime) !important;
  border-color: var(--procon-black);
}

body.contact-page .contactform_cta:hover {
  background: var(--procon-lime);
  color: var(--procon-black) !important;
  border-color: var(--procon-lime);
}

/* --- Popup devis --- */
.reserve-popup__dialog {
  border-top: 4px solid var(--procon-lime);
  border-radius: 8px;
}

.reserve-popup__kicker {
  color: var(--procon-lime);
  font-weight: 700;
}

.reserve-popup__input:focus,
.reserve-popup__select:focus,
.reserve-popup__textarea:focus {
  outline: none;
  border-color: var(--procon-lime);
  box-shadow: 0 0 0 3px rgba(var(--procon-lime-rgb), 0.22);
}

.reserve-popup-fab {
  background: var(--procon-black) !important;
  border: 1px solid rgba(var(--procon-lime-rgb), 0.35);
}

.reserve-popup-fab:hover {
  background: var(--procon-lime) !important;
  color: var(--procon-black) !important;
}

/* --- Accueil --- */
.home-intro {
  position: relative;
}

.home-intro::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--procon-lime);
  margin: 1.5rem auto 0;
}

.home__scroll-down span {
  transition: transform 0.3s ease;
}

.home__scroll-down:hover span {
  transform: translateY(5px);
}

.procon-home-section--light .procon-home-section__kicker {
  background: var(--procon-black);
  color: var(--procon-lime);
  border-radius: 4px;
  transform: none;
}

.procon-why-card {
  border-left: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.procon-why-card:hover {
  border-left-color: var(--procon-lime);
}

/* --- Scrollbar pages claires --- */
html.about-page-scroll::-webkit-scrollbar-thumb,
html.projects-page-scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--procon-lime-rgb), 0.5);
}

html.about-page-scroll::-webkit-scrollbar-thumb:hover,
html.projects-page-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--procon-lime);
}

/* --- Focus accessible --- */
a:focus-visible,
button:focus-visible,
.procon-projects-filter:focus-visible {
  outline: 2px solid var(--procon-lime);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .block-f__cta,
  .footer__nav a,
  .footer__scrolltop,
  .home__scroll-down span {
    transition: none;
  }

  .block-f__cta:hover,
  .footer__scrolltop:hover {
    transform: none;
  }
}

/* --- Pré-prod / launch polish --- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--procon-font-body);
}

h1, h2, h3, h4, .block-c__title, .home-hero__title,
.procon-home-section__title, .procon-devis-banner__title {
  font-family: var(--procon-font-display);
}

/* Bouton boutique legacy (thème Doimo) */
.store-btn {
  display: none !important;
}

/* Hero accueil */
body.procon-home-page .home-hero {
  justify-content: center;
}

body.procon-home-page .home-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7rem) 1.25rem clamp(4rem, 10vh, 6rem);
  text-align: center;
}

body.procon-home-page .home-hero__kicker {
  display: block;
  margin: 0 0 0.85rem;
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--procon-lime);
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 10;
}

body.procon-home-page .home-hero__title {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  margin-bottom: 0.85rem !important;
}

body.procon-home-page .home-hero__text {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  text-transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.procon-home-page .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  position: relative;
  z-index: 10;
}

body.procon-home-page .home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--procon-lime);
  background: var(--procon-lime);
  color: var(--procon-black);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.procon-home-page .home-hero__btn:hover {
  background: transparent;
  color: var(--procon-lime);
  transform: translateY(-1px);
}

body.procon-home-page .home-hero__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

body.procon-home-page .home-hero__btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  body.procon-home-page .home-hero__title br {
    display: inline;
  }
}

body.procon-home-page .home-hero__kicker,
body.procon-home-page .home-hero__actions {
  animation: procon-hero-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.procon-home-page .home-hero__actions {
  animation-delay: 0.22s;
}

body.procon-home-page .home-hero__kicker {
  animation-delay: 0.02s;
}
img {
  max-width: 100%;
  height: auto;
}

.procon-logo--footer {
  width: auto;
  max-height: 56px;
  margin-bottom: 1rem;
}

/* WhatsApp flottant — SVG local */
#floating-btn svg,
#float-icon {
  width: 28px !important;
  height: 28px !important;
  display: block;
}

/* Titres devis : une ligne propre */
.procon-devis-banner__title {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.procon-devis-banner__actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* Cartes présence */
.procon-presence__card {
  border-radius: 4px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.procon-presence__card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--procon-lime-rgb), 0.5);
}

/* Menu offcanvas — liens plus lisibles */
.header__menu-main a {
  transition: color 0.2s ease;
}

.header__menu-main a:hover {
  color: var(--procon-lime) !important;
}

@media (max-width: 767.98px) {
  body.procon-home-page .home-hero__btn {
    min-height: 2.5rem;
    padding: 0.6rem 1.05rem;
    font-size: 0.64rem;
  }

  .procon-devis-banner__title {
    max-width: none;
  }
}

@media (hover: none) {
  body.procon-home-page .home-hero__btn:hover,
  .procon-presence__card:hover {
    transform: none;
  }
}
