/*
====================================================
Project : Société de Plomberie Ayouche
Page    : Plomberie Sanitaire & Piscines
Author  : AI + User
Version : 1.0.0
Notes   : Reuses the site's shared design system (colors, fonts,
          buttons, spacing tokens) defined in style.css — only
          page-specific layout lives here.
====================================================
*/

/* --------------------------------------------------------------------------
   SHARED — eyebrow variants used across this page
   -------------------------------------------------------------------------- */
.psp-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.psp-eyebrow--dark {
  margin-bottom: 0;
}

.psp-eyebrow-line {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 12px 0 20px;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.psp-hero {
  position: relative;
  min-height: 600px;
  padding-top: calc(var(--navbar-height) + 90px);
  background-color: #000A17;
  background-image: url('../images/luxurious.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.psp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 10, 23, .9) 0%, rgba(0, 10, 23, .65) 50%, rgba(0, 10, 23, .3) 100%);
}

/* Soft diagonal cut at the Hero's bottom edge — the Hero box itself stays
   perfectly rectangular; the white section below appears to rise into it. */
.psp-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 210px;
  background-color: var(--color-white);
  clip-path: polygon(0 100%, 100% 14%, 100% 100%);
  pointer-events: none;
}

.psp-hero-inner {
  position: relative;
  z-index: 1;
}

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

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

.psp-hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 69px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 20px;
}

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

.psp-hero-content p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  max-width: 440px;
  margin: 0 0 36px;
}

.psp-hero-dots {
  display: flex;
  align-items: center;
  gap: 18px;
}

.psp-hero-dots span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .4);
  transition: color var(--transition-base);
}

.psp-hero-dots span.active {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   PRÉSENTATION
   -------------------------------------------------------------------------- */
.psp-intro {
  padding-top: 40px;
  background-color: var(--color-white);
}

.psp-intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
}

.psp-intro-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0 0 30px;
}

.psp-intro-text h2 .accent {
  color: var(--color-primary);
}

.psp-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.psp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.psp-feature-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background-color: rgba(0, 140, 209, .1);
  color: var(--color-primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psp-feature-item p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-text-gray);
  margin: 4px 0 0;
}

.psp-intro-media {
  position: relative;
  height: 640px;
  background-color: var(--color-bg-light);
  border: 6px solid #FFFFFF;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 16%);
  filter: drop-shadow(0 35px 70px rgba(1, 41, 99, .3));
  /* Cancels .container-custom's own right padding so the image reaches
     the viewport's right edge (the container is edge-to-edge below its
     1320px max-width, so this alone is enough up to that point). */
  margin-right: -24px;
}

/* Past the container's 1320px max-width it starts centering itself, so the
   bleed also has to cover that growing centering margin. */
@media (min-width: 1320px) {
  .psp-intro-media {
    margin-right: calc(-24px - (100vw - var(--container-width)) / 2);
  }
}

/* Entrance: drops in and bounces like a dropped ball before settling.
   .is-visible is toggled by a dedicated IntersectionObserver in
   plomberie-sanitaire-piscines.js (not AOS) so it replays every time the
   block re-enters the viewport, instead of firing once and being missed
   when the section already sits inside the first screen on load. */
.psp-intro-media {
  opacity: 0;
  transform: translateY(-160px);
}

.psp-intro-media.is-visible {
  animation: pspMediaBounceIn 1.1s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes pspMediaBounceIn {
  0% {
    opacity: 0;
    transform: translateY(-160px);
  }

  45% {
    opacity: 1;
    transform: translateY(0);
  }

  60% {
    opacity: 1;
    transform: translateY(-40px);
  }

  75% {
    opacity: 1;
    transform: translateY(0);
  }

  85% {
    opacity: 1;
    transform: translateY(-14px);
  }

  93% {
    opacity: 1;
    transform: translateY(0);
  }

  97% {
    opacity: 1;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .psp-intro-media {
    opacity: 1;
    transform: none;
  }

  .psp-intro-media.is-visible {
    animation: none;
  }
}

.psp-intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.psp-intro-media:hover img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .psp-intro-media img {
    transition: none;
  }

  .psp-intro-media:hover img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   NOS SOLUTIONS
   -------------------------------------------------------------------------- */
.psp-solutions {
  position: relative;
  background-color: #E8EEF5;
  overflow: hidden;
}

.psp-solutions-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: block;
}

.psp-solutions-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  padding-inline: 24px;
}

.psp-solutions-layout {
  display: grid;
  grid-template-columns: 1fr 1128px;
  gap: 64px;
  align-items: start;
}

.psp-solutions-header .psp-eyebrow {
  font-size: 16px;
  letter-spacing: 2.5px;
}

.psp-solutions-header .psp-eyebrow-line {
  width: 45px;
  margin: 14px 0 20px;
}

.psp-solutions-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.15;
  color: #071B38;
  margin: 0;
}

.psp-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  grid-auto-rows: 170px;
  gap: 24px;
}

.psp-solution-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 360px;
  height: 170px;
  background-color: #FFFFFF;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(1, 41, 99, .06);
  padding: 12px 20px;
}

.psp-solution-icon {
  flex-shrink: 0;
  display: flex;
  color: #008CD1;
  font-size: 56px;
  line-height: 1;
}

.psp-solution-content {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.psp-solution-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #071B38;
  margin: 0 0 4px;
}

.psp-solution-card p {
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-text-gray);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psp-solution-arrow {
  display: block;
  width: fit-content;
  flex-shrink: 0;
  margin-top: auto;
  color: #008CD1;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.psp-solution-arrow:hover {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   BANDEAU — 30 ANS D'EXPERTISE
   -------------------------------------------------------------------------- */
.psp-expertise-band {
  position: relative;
  background-color: #01152E;
  background-image: url('../images/factory-.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: 34px;
  overflow: hidden;
}

.psp-expertise-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(1, 21, 46, .95) 0%, rgba(1, 41, 99, .9) 55%, rgba(1, 41, 99, .82) 100%);
}

.psp-expertise-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .7fr 1.6fr;
  align-items: center;
  gap: 40px;
}

.psp-expertise-intro h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 8px;
}

.psp-expertise-intro p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .75);
  max-width: 320px;
  margin: 0 0 14px;
}

.psp-expertise-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.psp-expertise-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #FFFFFF;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.psp-expertise-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.psp-expertise-item p {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

/* --------------------------------------------------------------------------
   NOS DOMAINES D'INTERVENTION
   -------------------------------------------------------------------------- */
.psp-domains-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 40px;
  align-items: start;
}

.psp-domains-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  color: #071B38;
  margin: 12px 0 14px;
}

.psp-domains-header p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin: 0 0 22px;
}

.psp-domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.psp-domain-card {
  display: block;
  opacity: 0;
  transform: translateY(28px) scale(.94);
  transition-property: opacity, transform;
  transition-duration: .7s;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

/* AOS's own data-aos-delay attribute isn't actually wired to any CSS in
   this build (verified: no matching stylesheet rule, no injected inline
   style), so the stagger is done by hand here instead. */
.psp-domain-card:nth-child(1) {
  transition-delay: 0ms;
}

.psp-domain-card:nth-child(2) {
  transition-delay: 90ms;
}

.psp-domain-card:nth-child(3) {
  transition-delay: 180ms;
}

.psp-domain-card:nth-child(4) {
  transition-delay: 270ms;
}

.psp-domain-card.aos-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.psp-domain-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(1, 41, 99, .1);
  transition: transform var(--transition-slow);
}

.psp-domain-card:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .psp-domain-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.psp-domain-card span {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary-dark);
  margin-top: 12px;
}

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

/* Soft curved transition into the lighter CTA section below — the section
   box itself stays rectangular, only this pseudo-element carries the cut. */
.psp-process::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 100px;
  background-color: #EEF3F9;
  clip-path: polygon(0 100%, 78% 100%, 100% 30%, 100% 100%);
  pointer-events: none;
}

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

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

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

.psp-process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.psp-process-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 0 18px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background-color: #FFFFFF;
  color: #071B38;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
}

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

.psp-process-step p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA FINAL
   -------------------------------------------------------------------------- */
.psp-cta {
  background-color: #EEF3F9;
}

.psp-cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1fr .8fr;
  align-items: stretch;
  gap: 40px;
}

.psp-cta-media {
  position: relative;
  overflow: hidden;
  /* Bleeds the photo to the viewport's left edge (mirroring
     .psp-intro-media's right-side bleed) and, since .psp-cta has no
     padding-block of its own (moved onto .psp-cta-content instead), also
     stretches flush to the section's top/bottom via grid stretch. */
  margin-left: -24px;
}

@media (min-width: 1320px) {
  .psp-cta-media {
    margin-left: calc(-24px - (100vw - var(--container-width)) / 2);
  }
}

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

/* Entrance equivalent to Animate.css's animate__backInLeft — reproduced
   natively here rather than pulling in the whole external library for a
   single animation. Selector is qualified with .psp-cta-grid (rather than
   just .psp-cta-media) so it reliably outweighs AOS's own same-element
   [data-aos="fade-right"] rule — AOS's stylesheet is cross-origin (unpkg
   CDN), so its exact specificity can't be inspected from this page, and
   plain single-class parity wasn't enough to win the cascade here. */
.psp-cta-grid .psp-cta-media {
  opacity: .7;
  transform: translateX(-260px) scale(.7);
}

.psp-cta-grid .psp-cta-media.aos-animate {
  animation: pspCtaBackInLeft .9s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes pspCtaBackInLeft {
  0% {
    opacity: .7;
    transform: translateX(-260px) scale(.7);
  }

  80% {
    opacity: .7;
    transform: translateX(0) scale(.7);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .psp-cta-grid .psp-cta-media {
    opacity: 1;
    transform: none;
  }

  .psp-cta-grid .psp-cta-media.aos-animate {
    animation: none;
  }
}

.psp-cta-content {
  align-self: center;
  /* .psp-cta itself carries no padding-block anymore — it lives here
     instead so .psp-cta-media (a grid sibling with align-items: stretch)
     can stretch flush to the section's real top/bottom edges. */
  padding-block: 70px;
}

.psp-cta-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #071B38;
  margin: 0 0 8px;
}

.psp-cta-content p {
  font-size: 18px;
  color: var(--color-text-gray);
  margin: 0 0 26px;
}

.psp-cta-card {
  align-self: center;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 30px;
}

.psp-cta-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 140, 209, .1);
  color: var(--color-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.psp-cta-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

.psp-cta-card>p {
  font-size: 13.5px;
  color: var(--color-text-gray);
  margin: 0 0 18px;
}

.psp-cta-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.psp-cta-card-item:last-child {
  margin-bottom: 0;
}

.psp-cta-card-item i {
  color: var(--color-primary);
}

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

  .psp-expertise-grid {
    grid-template-columns: 1fr;
  }

  .psp-expertise-intro p {
    max-width: none;
  }

  .psp-cta-grid {
    grid-template-columns: 1fr;
  }

  .psp-cta-media {
    order: -1;
    margin-left: 0;
    border-radius: 20px;
  }
}

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

  .psp-hero::after {
    display: none;
  }

  .psp-intro {
    padding-top: 32px;
  }

  .psp-intro-grid {
    grid-template-columns: 1fr;
  }

  .psp-intro-media {
    height: 380px;
    order: -1;
  }

  .psp-solutions-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .psp-solution-card {
    width: 100%;
    height: auto;
    min-height: 170px;
  }

  .psp-domains-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

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

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

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

  .psp-solutions-grid {
    grid-template-columns: 1fr;
  }

  .psp-expertise-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .psp-domains-grid {
    grid-template-columns: 1fr;
  }

  .psp-process-grid {
    grid-template-columns: 1fr;
  }

  .psp-intro-media {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}