/* =============================================================
   Section Frise — Template Solution Single Enfant
   En-tête centré + timeline zigzag avec étapes alternées.
   ============================================================= */

.child-frise {
  background-color: #f2f7f5;
  border-bottom: 1px solid rgba(221, 227, 225, 0.4);
  padding: 150px 80px;
}

.child-frise__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* =============================================================
   En-tête
   ============================================================= */

.child-frise__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}

.child-frise__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #21b593;
  margin: 0;
  line-height: 1;
}

.child-frise__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 45px;
  font-weight: 700;
  color: #13201c;
  margin: 0;
  line-height: 1;
}

.child-frise__title p {
  margin: 0;
}

.child-frise__desc p {
  margin: 0;
}

.child-frise__desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #003c3d;
  margin: 0;
  line-height: 1.325;
  max-width: 512px;
  text-align: center;
}

/* =============================================================
   Timeline
   ============================================================= */

.child-frise__timeline {
  position: relative;
}

/* Ligne verticale centrale */
.child-frise__line {
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(33, 181, 147, 0.2);
  z-index: 0;
  pointer-events: none;
}

/* ── Ligne d'étape (2 colonnes) ── */

.child-frise__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  align-items: center;
  min-height: 200px;
}

/* Colonne vide */
.child-frise__col--empty {
  display: block;
}

/* Colonne avec la carte */
.child-frise__col--card {
  display: flex;
  align-items: center;
  padding: 32px 0;
}

/* Cartes sur la gauche : étapes impaires (1re col) */
.child-frise__step:nth-child(odd) .child-frise__col--card {
  justify-content: flex-end;
}

/* Cartes sur la droite : étapes paires (2e col) */
.child-frise__step:nth-child(even) .child-frise__col--card {
  justify-content: flex-start;
}

/* ── Carte ── */

.child-frise__card {
  background-color: #ffffff;
  border: 1px solid rgba(221, 227, 225, 0.6);
  border-radius: 16px;
  padding: 61px 33px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
  max-width: 640px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.child-frise__card--visible {
  opacity: 1;
  transform: translateY(0);
}

.child-frise__step-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #21b593;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.17;
}

.child-frise__step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #13201c;
  margin: 0;
  line-height: 1.39;
}

.child-frise__step-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #003c3d;
  margin: 0;
  line-height: 1.33;
}

/* ── Bullet numéroté ── */

.child-frise__bullet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #025253;
  border: 4px solid #ffffff;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  z-index: 2;
  flex-shrink: 0;
}

/* =============================================================
   Responsive — ≤ 1280px
   ============================================================= */
@media (max-width: 1280px) {
  .child-frise {
    padding: 100px 40px;
  }

  .child-frise__title {
    font-size: 36px;
  }

  .child-frise__card {
    padding: 40px 28px;
  }

  .child-frise__step-label {
    font-size: 28px;
  }
}

/* =============================================================
   Responsive — ≤ 991px
   ============================================================= */
@media (max-width: 991px) {
  .child-frise {
    padding: 60px 24px;
  }

  .child-frise__inner {
    gap: 48px;
  }

  /* Masquer la ligne verticale */
  .child-frise__line {
    display: none;
  }

  /* Étapes en colonne simple */
  .child-frise__step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    position: relative;
    padding-top: 28px;
    margin-bottom: 32px;
  }

  .child-frise__step:last-child {
    margin-bottom: 0;
  }

  /* Masquer les colonnes vides */
  .child-frise__col--empty {
    display: none;
  }

  .child-frise__col--card {
    padding: 0 !important;
    justify-content: stretch !important;
  }

  /* Bullet au centre haut de la carte */
  .child-frise__bullet {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    font-size: 14px;
  }

  .child-frise__card {
    max-width: none;
    width: 100%;
    padding: 25px;
    gap: 16px;
  }

  .child-frise__label {
    font-size: 16px;
  }

  .child-frise__title {
    font-size: 28px;
  }

  .child-frise__step-label {
    font-size: 28px;
  }

  .child-frise__step-title {
    font-size: 20px;
  }

  .child-frise__step-desc {
    font-size: 16px;
  }
}

/* =============================================================
   Responsive — ≤ 575px
   ============================================================= */
@media (max-width: 575px) {
  .child-frise {
    padding: 48px 16px;
  }

  .child-frise__title {
    font-size: 24px;
  }
}
