/*
====================================================
Project : Société de Plomberie Ayouche
Page    : Climatisation (HVAC)
Author  : AI + User
Version : 1.0.0
Notes   : Reuses the site's shared design system (variables, buttons,
          navbar, footer from style.css) plus the generic component
          library built for Plomberie Sanitaire & Piscines (eyebrow,
          solutions grid, process hexagons, expertise band — loaded via
          plomberie-sanitaire-piscines.css). Only HVAC-specific layout
          lives here: Hero, breadcrumb, stats bar, intro, sectors,
          process wrapper, projects slider, final CTA band.
====================================================
*/

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hvac-hero {
  position: relative;
  min-height: 740px;
  padding-top: calc(var(--navbar-height) + 40px);
  padding-bottom: 40px;
  background-color: #000A17;
  background-image: url('../back/hero1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hvac-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 10, 23, .93) 0%, rgba(0, 10, 23, .72) 48%, rgba(0, 10, 23, .25) 100%);
}

/* No container-custom here on purpose — the mockup pins the title hard
   against the viewport's left edge (much tighter than the site's usual
   centered 1320-1700px container would allow), so this uses a fixed
   left inset instead of a centered max-width wrapper. */
.hvac-hero-inner {
  position: relative;
  z-index: 1;
  padding-left: clamp(24px, 5.5vw, 96px);
  padding-right: 24px;
}

.hvac-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 30px;
}

.hvac-breadcrumb a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hvac-breadcrumb a:hover {
  color: var(--color-primary);
}

.hvac-breadcrumb i {
  font-size: 9px;
  color: rgba(255, 255, 255, .3);
}

.hvac-breadcrumb span[aria-current] {
  color: var(--color-primary);
}

.hvac-hero-content {
  max-width: 620px;
}

.hvac-hero-content .psp-eyebrow {
  margin-bottom: 16px;
}

.hvac-hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 50px;
  line-height: 1.18;
  color: #FFFFFF;
  margin: 0 0 20px;
}

.hvac-hero-content h1 .accent {
  color: var(--color-primary);
}

.hvac-hero-content>p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  max-width: 480px;
  margin: 0 0 30px;
}

.hvac-hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.hvac-hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hvac-hero-feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(0, 140, 209, .15);
  color: #FFFFFF;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hvac-hero-feature h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: #FFFFFF;
  margin: 0 0 2px;
}

.hvac-hero-feature p {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
  margin: 0;
}

/* Positioned bottom-right of the Hero (not spanning the full width) so it
   sits over the image half of the hero1.png background, per the mockup. */
.hvac-stats-wrap {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4.5vw, 70px);
  bottom: 36px;
  left: clamp(24px, 4.5vw, 70px);
  display: flex;
  justify-content: flex-end;
}

.hvac-stats-bar {
  width: min(880px, 62%);
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 70px rgba(1, 41, 99, .25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hvac-stat-item {
  text-align: center;
  padding: 26px 20px;
  border-right: 1px solid var(--color-border);
}

.hvac-stat-item:last-child {
  border-right: none;
}

.hvac-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--color-primary-dark);
}

.hvac-stat-label {
  display: block;
  font-size: 12.5px;
  color: var(--color-text-gray);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   NOS SOLUTIONS HVAC — the banner (shape, curves, blueprint, HVAC photo,
   all decorative detail) is a single pre-made graphic; this only lays the
   text over its left-side white area. Do not recreate any of the banner's
   graphics in CSS.
   -------------------------------------------------------------------------- */
.hvac-solutions {
  position: relative;
  aspect-ratio: 1537 / 707;
  margin-top: 80px;
  background-image: url('../back/bann.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hvac-solutions-content {
  width: 34%;
  padding-left: clamp(80px, 6vw, 100px);
  padding-right: 24px;
}

.hvac-solutions-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  color: #071B38;
  margin: 14px 0 18px;
}

.hvac-solutions-content h2 .accent {
  color: var(--color-primary);
}

.hvac-solutions-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-gray);
  margin: 0 0 26px;
}

/* --------------------------------------------------------------------------
   NOS SOLUTIONS HVAC — 6-card grid below the banner
   -------------------------------------------------------------------------- */
.hvac-solutions-cards {
  position: relative;
  padding-top: 56px;
  padding-bottom: 8px;
  background-color: var(--color-white);
}

.hvac-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hvac-solution-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 250px;
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px rgba(1, 41, 99, .1);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hvac-solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(1, 41, 99, .16);
}

.hvac-solution-info {
  position: relative;
  z-index: 1;
  flex: 0 0 56%;
  max-width: 56%;
  padding: 26px 20px 24px 26px;
  display: flex;
  flex-direction: column;
}

.hvac-solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 140, 209, .1);
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 10px;
}

.hvac-solution-number {
  position: absolute;
  top: 26px;
  left: 78px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-primary);
}

.hvac-solution-info h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #071B38;
  margin: 0 0 10px;
}

.hvac-solution-info p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin: 0 0 auto;
}

.hvac-solution-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(0, 140, 209, .1);
  color: var(--color-primary);
  font-size: 15px;
  margin-top: 16px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.hvac-solution-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.hvac-solution-media {
  position: relative;
  flex: 0 0 44%;
  max-width: 44%;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
}

.hvac-solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hvac-solutions-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.hvac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D8E3EE;
}

.hvac-dot.is-active {
  width: 11px;
  height: 11px;
  background-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   DOMAINES D'APPLICATION (Secteurs)
   -------------------------------------------------------------------------- */
.hvac-sectors {
  background-color: var(--color-bg-light);
}

.hvac-sectors-header {
  max-width: 640px;
  margin: 0 0 56px;
}

.hvac-sectors-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-primary-dark);
  margin: 12px 0 14px;
}

.hvac-sectors-header p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-gray);
  margin: 0;
}

.hvac-sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.hvac-sector-media {
  position: relative;
  height: 180px;
}

.hvac-sector-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(1, 41, 99, .12);
  transition: transform var(--transition-slow);
}

.hvac-sector-card:hover .hvac-sector-media img {
  transform: scale(1.05);
}

.hvac-sector-icon {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 140, 209, .4);
  border: 4px solid var(--color-bg-light);
}

.hvac-sector-label {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   NOTRE PROCESSUS
   -------------------------------------------------------------------------- */
.hvac-process {
  position: relative;
  background-color: #002764;
  padding-block: 60px;
  overflow: hidden;
}

.hvac-process-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  align-items: center;
  gap: 40px;
}

.hvac-process-header .psp-eyebrow-line {
  margin-bottom: 14px;
}

.hvac-process-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.hvac-process-header p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .65);
  max-width: 260px;
  margin: 0;
}

.hvac-process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.hvac-process-grid::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(0, 140, 209, .5) 0 8px, transparent 8px 16px);
}

.hvac-process-step {
  position: relative;
}

.hvac-process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 14px 0 10px;
  color: var(--color-primary);
  font-size: 16px;
}

.hvac-process-step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.hvac-process-step p {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
  margin: 0;
}

/* --------------------------------------------------------------------------
   POURQUOI PLA — reuses .psp-expertise-band, just swaps the background
   photo so it doesn't look identical to the Plomberie page's band.
   -------------------------------------------------------------------------- */
.hvac-why {
  background-image: url('../images/Climatisation.jpg');
}

/* --------------------------------------------------------------------------
   NOS RÉALISATIONS HVAC
   -------------------------------------------------------------------------- */
.hvac-projects {
  background-color: var(--color-white);
}

.hvac-projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.hvac-projects-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.3;
  color: var(--color-primary-dark);
  margin: 12px 0 12px;
}

.hvac-projects-header>div>p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-gray);
  max-width: 420px;
  margin: 0 0 20px;
}

.hvac-projects-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.hvac-projects-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background-color: #FFFFFF;
  color: var(--color-primary-dark);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hvac-projects-arrow:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

.hvac-projects-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.hvac-projects-track::-webkit-scrollbar {
  display: none;
}

.hvac-project-card {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(1, 41, 99, .1);
  background-color: #FFFFFF;
}

.hvac-project-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hvac-project-caption {
  padding: 18px 20px;
}

.hvac-project-caption h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary-dark);
  margin: 0 0 4px;
}

.hvac-project-caption p {
  font-size: 12.5px;
  color: var(--color-text-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA FINAL
   -------------------------------------------------------------------------- */
.hvac-cta {
  position: relative;
  background-color: #000A17;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  padding-block: 56px;
  overflow: hidden;
}

.hvac-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
}

.hvac-cta-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 140, 209, .15);
  border: 1.5px solid rgba(255, 255, 255, .25);
  color: #FFFFFF;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hvac-cta-text {
  flex: 1;
  min-width: 0;
}

.hvac-cta-text .psp-eyebrow {
  margin-bottom: 8px;
}

.hvac-cta-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.hvac-cta-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  margin: 0;
  max-width: 480px;
}

.hvac-cta-inner>.btn-pla {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .hvac-hero-content h1 {
    font-size: 42px;
  }

  .hvac-solutions-content {
    width: 42%;
  }

  .hvac-solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hvac-sectors-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 44px;
  }

  .hvac-project-card {
    flex-basis: calc(33.333% - 16px);
  }

  .hvac-cta-inner {
    flex-wrap: wrap;
  }

  .hvac-cta-text {
    flex-basis: 100%;
    order: 2;
  }

  .hvac-cta-inner>.btn-pla {
    order: 3;
  }
}

@media (max-width: 991.98px) {
  .hvac-hero {
    min-height: 0;
    padding-top: calc(var(--navbar-height) + 30px);
    padding-bottom: 40px;
  }

  .hvac-hero-inner {
    padding-right: clamp(24px, 5.5vw, 96px);
  }

  /* Absolute bottom-right placement only makes sense once there's a wide
     image half for it to float over — below that it drops back into
     normal flow, centered and full-width beneath the Hero content. */
  .hvac-stats-wrap {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 36px;
  }

  .hvac-stats-bar {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .hvac-stat-item:nth-child(2) {
    border-right: none;
  }

  .hvac-stat-item:nth-child(1),
  .hvac-stat-item:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }

  .hvac-solutions-content {
    width: 46%;
    padding-left: 40px;
  }

  .hvac-solutions-content h2 {
    font-size: 26px;
  }

  .hvac-solutions-content p {
    font-size: 13px;
  }

  .hvac-solutions-cards {
    padding-top: 40px;
  }

  .hvac-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hvac-process-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hvac-process-header p {
    max-width: none;
  }

  .hvac-process-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 44px;
  }

  .hvac-process-grid::before {
    display: none;
  }

  .hvac-projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hvac-project-card {
    flex-basis: calc(50% - 12px);
  }
}

@media (max-width: 767.98px) {
  .hvac-hero-content h1 {
    font-size: 34px;
  }

  .hvac-stats-bar {
    grid-template-columns: 1fr;
  }

  .hvac-stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--color-border);
  }

  .hvac-stat-item:last-child {
    border-bottom: none;
  }

  .hvac-solutions-content {
    width: 40%;
    padding-left: 14px;
    padding-right: 6px;
  }

  .hvac-solutions-content h2 {
    font-size: 15px;
    margin: 4px 0 6px;
  }

  .hvac-solutions-content p {
    font-size: 9px;
    line-height: 1.4;
    margin: 0;
  }

  .hvac-solutions-content .psp-eyebrow--dark {
    font-size: 8px;
  }

  .hvac-solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hvac-solution-card {
    flex-direction: column;
    min-height: 0;
  }

  .hvac-solution-info {
    flex-basis: auto;
    max-width: 100%;
    order: 2;
    padding: 22px 22px 24px;
  }

  .hvac-solution-number {
    left: auto;
    right: 22px;
  }

  .hvac-solution-media {
    flex-basis: auto;
    max-width: 100%;
    height: 180px;
    order: 1;
    clip-path: none;
  }

  .hvac-sectors-grid {
    grid-template-columns: 1fr;
    row-gap: 44px;
  }

  .hvac-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hvac-project-card {
    flex-basis: 85%;
  }
}
