/* =============================================================
   Section "Le mot de l'expert" — Template Solution Single Enfant
   Fond teal foncé + pattern, carte 2 colonnes photo / citation.
   ============================================================= */

.child-expert {
  position: relative;
  background-color: #025253;
  border-bottom: 1px solid rgba(220, 229, 226, 0.4);
  padding: 80px;
  overflow: hidden;
}

/* Fond pattern — même principe que child-stats */
.child-expert__bg {
  position: absolute;
  inset: 0;
  background-image: url('../../img/financing_bg_pattern.png');
  background-size: 1093px auto;
  background-position: top left;
  background-repeat: no-repeat;
  opacity: 0.20;
  pointer-events: none;
}

/* Centrage intérieur */
.child-expert__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* =============================================================
   Carte intérieure
   ============================================================= */

.child-expert__card {
  background-color: #003c3d;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* =============================================================
   Colonne gauche — profil
   ============================================================= */

.child-expert__profile {
  flex: 1;
  min-width: 0;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Conteneur photo avec ombre verte décalée */
.child-expert__photo-wrap {
  position: relative;
  width: 310px;
  height: 310px;
}

/* Cercle vert décalé derrière la photo */
.child-expert__photo-shadow {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 310px;
  height: 310px;
  background-color: #21b593;
  border-radius: 290px 290px 0 290px;
}

/* Cadre de la photo */
.child-expert__photo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 310px;
  height: 310px;
  border-radius: 290px 290px 0 290px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.child-expert__photo-img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-top: -14%;
}

/* Identité sous la photo */
.child-expert__identity {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

/* =============================================================
   Colonne droite — citation
   ============================================================= */

.child-expert__quote-col {
  flex: 1;
  min-width: 0;
  max-width: 715px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

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

.child-expert__quote-body {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.child-expert__heading,
.child-expert__heading h1,
.child-expert__heading h2,
.child-expert__heading h3,
.child-expert__heading h4,
.child-expert__heading p {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

/* Zone texte de citation avec guillemets positionnés */
.child-expert__quote-text-wrap {
  position: relative;
}

.child-expert__quote-icon {
  position: absolute;
  width: 32px;
  height: 20px;
  display: block;
}

.child-expert__quote-icon--open {
  top: 0;
  left: -55px;
}

.child-expert__quote-icon--close {
  bottom: -28px;
  right: 0;
}

.child-expert__quote-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 23px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.39;
}

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

  .child-expert__card {
    padding: 40px 48px;
    gap: 40px;
  }

  .child-expert__heading,
  .child-expert__heading h1,
  .child-expert__heading h2,
  .child-expert__heading h3,
  .child-expert__heading h4,
  .child-expert__heading p {
    font-size: 32px;
  }

  .child-expert__quote-text {
    font-size: 20px;
  }

  .child-expert__profile {
    width: 260px;
  }

  .child-expert__photo-wrap {
    width: 260px;
    height: 260px;
  }

  .child-expert__photo-shadow {
    width: 260px;
    height: 260px;
  }

  .child-expert__photo-frame {
    width: 260px;
    height: 260px;
  }

}

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

  .child-expert__card {
    flex-direction: column;
    align-items: center;
    padding: 40px 32px;
    gap: 40px;
  }

  .child-expert__profile {
    width: 200px;
  }

  .child-expert__photo-wrap {
    width: 200px;
    height: 200px;
  }

  .child-expert__photo-shadow {
    width: 200px;
    height: 200px;
    top: 10px;
    left: -12px;
  }

  .child-expert__photo-frame {
    width: 200px;
    height: 200px;
  }


  .child-expert__heading,
  .child-expert__heading h1,
  .child-expert__heading h2,
  .child-expert__heading h3,
  .child-expert__heading h4,
  .child-expert__heading p {
    font-size: 26px;
  }

  .child-expert__quote-text {
    font-size: 17px;
  }

  .child-expert__quote-col {
    gap: 24px;
    width: 100%;
  }

  .child-expert__quote-body {
    gap: 32px;
  }
}

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

  .child-expert__card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .child-expert__heading,
  .child-expert__heading h1,
  .child-expert__heading h2,
  .child-expert__heading h3,
  .child-expert__heading h4,
  .child-expert__heading p {
    font-size: 22px;
  }

  .child-expert__quote-text {
    font-size: 15px;
  }

  .child-expert__name {
    font-size: 19px;
  }

  .child-expert__role {
    font-size: 15px;
  }
}
