/* ===================================================================
   HYDREAULYS — Page Stations d'épuration (page mère)
   =================================================================== */

/* ---- Le rôle : texte + photo ---- */
.stp-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}
.stp-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--hy-ink);
  margin: 26px 0 18px;
  text-wrap: pretty;
}
.stp-lede strong { color: var(--hy-blue); }
.stp-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--hy-muted);
  margin: 0 0 18px;
}
.stp-text strong { color: var(--hy-blue-ink); }
.stp-split .cta { margin-top: 14px; }

.stp-split__media { position: relative; }
.stp-photo {
  aspect-ratio: 4 / 3.4;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 80px -40px rgba(0,80,152,.45);
}
.stp-photo__chip {
  position: absolute;
  left: -14px; bottom: 26px;
  background: #fff;
  color: var(--hy-blue-ink);
  font-size: 13px; font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 22px 44px -18px rgba(0,58,112,.4);
}

/* ---- Deux stations : texte + chiffres ---- */
.stp-two__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 64px;
  align-items: center;
}
.stp-figures {
  background: linear-gradient(160deg, #003a70 0%, #005098 100%);
  color: #fff;
  border-radius: 28px;
  padding: 36px 36px 30px;
  box-shadow: 0 40px 80px -40px rgba(0,58,112,.6);
}
.stp-figures__title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hy-cyan);
  margin-bottom: 20px;
}
.stp-fig {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.stp-fig__ico {
  grid-row: 1 / 3;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: var(--hy-cyan);
  display: grid; place-items: center;
}
.stp-fig__val {
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stp-fig__val small { font-size: 15px; font-weight: 700; color: var(--hy-cyan); margin-left: 6px; }
.stp-fig__label { font-size: 14px; color: rgba(255,255,255,.8); font-weight: 500; margin-top: 4px; }

/* ---- Découvrir nos stations : 2 grandes cartes ---- */
.stp-discover { background: var(--hy-paper); }
.stp-stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.stp-station {
  --accent: #005098;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hy-line);
  border-radius: 28px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.stp-station:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 40px 80px -42px rgba(0,80,152,.4); }
.stp-station__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 26px 30px;
}
.stp-station__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,42,86,0) 35%, rgba(0,42,86,.78) 100%);
}
.stp-station__name {
  position: relative; z-index: 2;
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,15,35,.4);
  margin: 0;
}
.stp-station__body {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.stp-station__rows { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 4px; }
.stp-station__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hy-line);
}
.stp-station__row:last-child { border-bottom: none; }
.stp-station__row-ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  display: grid; place-items: center;
}
.stp-station__row-txt { display: flex; flex-direction: column; }
.stp-station__row-txt strong {
  font-size: 17px; font-weight: 800; color: var(--hy-blue-ink); letter-spacing: -0.01em;
}
.stp-station__row-txt span { font-size: 13px; color: var(--hy-muted); margin-top: 2px; }
.stp-station__cta { margin-top: auto; align-self: flex-start; }

/* Définition équivalent-habitant */
.stp-eh {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--hy-line);
  border-left: 4px solid var(--hy-cyan);
  border-radius: 18px;
  padding: 24px 28px;
}
.stp-eh__ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--hy-green-tint); color: var(--hy-blue);
  display: grid; place-items: center;
}
.stp-eh__title { font-size: 16px; font-weight: 800; color: var(--hy-blue-ink); margin-bottom: 7px; }
.stp-eh__txt { font-size: 14.5px; line-height: 1.6; color: var(--hy-muted); margin: 0; max-width: 90ch; }

/* ---- Engagements environnementaux : 3 cartes ---- */
.stp-eng__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stp-eng-card {
  background: #fff;
  border: 1px solid var(--hy-line);
  border-radius: 24px;
  padding: 34px 30px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.stp-eng-card:hover { transform: translateY(-5px); border-color: var(--hy-cyan); box-shadow: 0 34px 64px -38px rgba(0,80,152,.32); }
.stp-eng-card__ico {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--hy-green-tint);
  color: var(--hy-cyan);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.stp-eng-card:hover .stp-eng-card__ico { background: var(--hy-cyan); color: #fff; }
.stp-eng-card__title { font-size: 20px; font-weight: 700; color: var(--hy-blue-ink); letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }
.stp-eng-card__desc { font-size: 14.5px; line-height: 1.6; color: var(--hy-muted); margin: 0; }

.stp-eng__foot {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--hy-line);
  border-radius: 24px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.stp-eng__concl {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hy-ink);
  margin: 0;
  max-width: 58ch;
  flex: 1 1 420px;
}
.stp-eng__concl em { font-family: var(--font-sans); font-style: normal; color: var(--hy-blue); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .stp-split { grid-template-columns: 1fr; gap: 44px; }
  .stp-two__grid { grid-template-columns: 1fr; gap: 40px; }
  .stp-stations { grid-template-columns: 1fr; }
  .stp-eng__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stp-photo__chip { left: 0; }
  .stp-eng__foot { padding: 28px 24px; }
}
