/* « Où va l'eau » (chiffre, trois étapes reliées par un trait d'eau qui se dessine) et avant/après du capot.
   Par défaut le trait est entier et les étapes allumées : l'animation n'est qu'un bonus (classe est-anime). */

.eau__accroche {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 72px);
}

.eau__chiffre {
  font-family: var(--police-titre, sans-serif);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(5rem, 17vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--roi, #1652d8);
  white-space: nowrap;
}

.eau__texte {
  max-width: 34rem;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.45;
}

.eau__parcours {
  position: relative;
  margin-top: clamp(56px, 7vw, 104px);
  padding-left: 72px;
}

.eau__trait {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 100%;
  overflow: visible;
}

.eau__trait path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.eau__trait-fond {
  stroke: var(--brume-2, #e6e9ee);
  stroke-width: 4;
}

.eau__trait-eau {
  stroke: var(--roi, #1652d8);
  stroke-width: 6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.eau__etapes {
  display: grid;
  gap: clamp(64px, 9vw, 128px);
}

.eau__etape {
  position: relative;
  min-height: 40px;
}

.eau__numero {
  position: absolute;
  top: 0;
  left: -72px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--roi, #1652d8);
  border-radius: 50%;
  background: var(--roi, #1652d8);
  color: var(--blanc, #fff);
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.eau__etape p {
  max-width: 22ch;
  font-family: var(--police-titre, sans-serif);
  font-stretch: 104%;
  font-weight: 720;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  transition: color 0.3s ease;
}

.eau.est-anime .eau__etape:not(.est-atteinte) .eau__numero {
  background: var(--blanc, #fff);
  color: var(--roi, #1652d8);
}

.eau.est-anime .eau__etape:not(.est-atteinte) p {
  color: var(--graphite-2, #4a5261);
}

.eau__solaire {
  max-width: 36rem;
  margin-top: clamp(64px, 8vw, 112px);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.45;
}

.eau__fin {
  max-width: 30ch;
  margin-top: 28px;
  font-family: var(--police-titre, sans-serif);
  font-stretch: 104%;
  font-weight: 720;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

@media (min-width: 900px) {
  .eau__accroche {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    column-gap: 56px;
  }

  .eau__texte {
    padding-bottom: 12px;
  }

  .eau__parcours {
    margin-left: 12%;
  }
}

/* Avant / après : une seule image du capot, étiquetée de chaque côté du ruban bleu */
.avant-apres__figure {
  max-width: 570px;
  margin-top: clamp(40px, 5vw, 64px);
  margin-inline: auto;
}

.avant-apres__image {
  position: relative;
}

.avant-apres__image img {
  width: 100%;
  height: auto;
}

.avant-apres__etiquette {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  background: var(--graphite, #1b2029);
  color: var(--blanc, #fff);
  font-weight: 650;
  font-size: 0.95rem;
}

.avant-apres__etiquette--gauche { left: 16px; }
.avant-apres__etiquette--droite { right: 16px; }

@media (min-width: 900px) {
  .avant-apres .titre-section,
  .avant-apres .chapeau {
    margin-inline: auto;
    text-align: center;
  }
}
