/* ====== RESET MINIMAL ====== */
.team-section * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== SECTION WRAPPER ====== */
.team-section {
  padding: 70px 20px 90px;
  background: #fff;
  color: #2b2b2b;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.team-section .container {
  max-width: 1150px;
  margin: 0 auto;
}

/* ====== TITLE WITH LINES LEFT/RIGHT ====== */
.section-title {
  text-align: center;
  margin-bottom: 55px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #e93196; /* aligné avec la palette principale */
  font-size: 34px;
}

.section-title span {
  display: inline-block;
  padding: 0 18px;
  position: relative;
}

.section-title span::before,
.section-title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 420px;
  height: 1px;
  background: #cfcac6; /* lignes fines */
  transform: translateY(-50%);
}

.section-title span::before { right: 100%; margin-right: 18px; }
.section-title span::after  { left: 100%;  margin-left: 18px; }

/* ====== GRID ====== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 60px 120px;
  align-items: start;
  justify-items: center;
  justify-content: center; /* centre le contenu pour espaces égaux à gauche/droite */
}

/* ====== MEMBER CARD (typography) ====== */
.member {
  text-align: center;
  max-width: 520px;
}

/* Variante: image à gauche, bloc texte fixe à droite (500x500) */
.member--side {
  text-align: left;
  max-width: none;
  display: grid;
  grid-template-columns: 460px 500px;
  gap: 24px;
  align-items: start;
  margin: 0 auto; /* centre le bloc dans le conteneur */
  justify-self: center; /* assure le centrage dans la grille */
}
.member--side .text-box {
  width: 500px;
  height: 500px;
  overflow: auto;
}
.member--side .text-box .desc { text-align: justify; text-justify: inter-word; }

.name {
  margin-top: 26px;
  font-size: 26px;
  font-weight: 700;
  color: #1f1f1f;
}

.role {
  margin-top: 12px;
  font-size: 18px;
  color: #6d6d6d;
}

.desc, .cert {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: #6d6d6d;
}

.cert a {
  color: #6d6d6d;
  text-decoration: underline;
}

/* ====== AVATAR (grand cercle) ====== */
.avatar {
  width: 460px;           /* proche du visuel */
  height: 460px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;    /* gris de fond comme sur la photo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* remplit bien le cercle */
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
  .section-title span::before,
  .section-title span::after { width: 30vw; }
  .avatar { width: 380px; height: 380px; }
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; gap: 70px; }
  .section-title span::before,
  .section-title span::after { width: 22vw; }
  .member--side { grid-template-columns: 1fr; }
  .member--side .text-box { width: 100%; height: auto; }
}

@media (max-width: 480px) {
  .avatar { width: 300px; height: 300px; }
  .name { font-size: 22px; }
  .section-title { font-size: 28px; }
}
