.bio,
.bio a {
  color: #000;
}

.bio {
  padding: 34px 15px 60px;
}

/* Tablet + mobile: the fixed .ui-menu-mobile bar ends at 80px (51px <=767px).
   The "Retour" link opens the page 24px under it — no top padding on top of
   the margin, which left a ~100px empty band on phones. */
@media (max-width: 1280px) {
  .bio {
    margin-top: 104px;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .bio {
    margin-top: 75px;
  }
}

.bio-up {
  animation: bup 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bio-up.d1 { animation-delay: 0.12s; }
.bio-up.d2 { animation-delay: 0.24s; }

@keyframes bup {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

@keyframes bioblink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.bio [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bio [data-reveal].reveal-in {
  opacity: 1;
  transform: none;
}

.bio-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 15px;
  align-items: start;
}

.bio-aside {
  position: sticky;
  top: 20px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 1280px) {
  .bio-aside { top: 130px; }
}

.bio-idcard {
  background: #d0eff2;
  color: #000;
  border-radius: 24px;
  padding: 32px 34px;
}

.bio-idtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e9511c;
  color: #f8feff;
  border-radius: 13px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 22px;
}

.bio-idtag::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f8feff;
  animation: bioblink 1.8s ease-in-out infinite;
}

.bio-name {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}

.bio-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #e9511c;
  margin-top: 14px;
  text-transform: uppercase;
}

.bio-links {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.bio-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #000;
  border-radius: 15px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.bio-pill:hover {
  background: #70cbd3;
  color: #000;
  border-color: #70cbd3;
}

.bio-pill .ic {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.bio-portrait {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #b4e4e8;
  aspect-ratio: 4 / 3;
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Team members (single-membre.php): the same 3:4 portrait as their card on
   "L'équipe" (.perm-photo in css/team.css), at every width, so a photo is
   framed the same way in the list and on the page it opens. Body-class scoped,
   and specific enough to win over the breakpoint ratios below. Conseil and
   parrain share it; mentors keep theirs. */
.single-membre .bio-portrait,
.single-conseil .bio-portrait,
.single-parrain .bio-portrait {
  aspect-ratio: 3 / 4;
}

@media (min-width: 761px) {
  .single-membre .bio-hero,
  .single-conseil .bio-hero,
  .single-parrain .bio-hero {
    grid-template-columns: min(42%, max(330px, calc((100vh - 330px) * 0.75))) 1fr;
    column-gap: clamp(24px, 4vw, 80px);
  }
}

@media (min-width: 1700px) {
  .single-membre .bio-hero,
  .single-parrain .bio-hero {
    grid-template-columns: min(42%, max(330px, calc((100vh - 420px) * 0.75))) 1fr;
  }
}

.bio-main {
  padding-top: 4px;
}

.bio-intro {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 22px;
  max-width: none;
  font-weight: 400;
}

/* A WYSIWYG value in a .rich-text <div>: paragraph and list spacing comes from
   .rich-text (styles.css, em-based, so the >=1700px vw size scales it too). */
.bio-intro strong,
.bio-intro b {
  color: #000;
  font-weight: 600;
}

.bio-text p {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 22px;
  max-width: none;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.bio-text strong,
.bio-text b {
  color: #000;
  font-weight: 600;
}

.bio-quote {
  margin: 36px 0 0;
  background: #f8feff;
  border: 1px solid #70cbd3;
  border-radius: 24px;
  padding: 40px 42px;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.bio-qmark {
  font-family: Castoro, Georgia, serif;
  font-size: 84px;
  line-height: 0.5;
  color: #e9511c;
  user-select: none;
  margin-bottom: 8px;
}

.bio-quote blockquote {
  font-family: Castoro, Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.42;
  margin: 0;
  max-width: none;
}

.bio-qbody cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e9511c;
}

.bio-parcours {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.bio-timeline {
  display: flex;
  flex-direction: column;
}

.bio .tl-row {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bio .tl-row:last-child {
  border-bottom: none;
}

.bio .tl-date {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e9511c;
  background: #f8feff;
  border: 1px solid #e9511c;
  border-radius: 11px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.bio .tl-body h3 {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.bio .tl-body p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
  margin: 0;
  max-width: none;
}

.bio-expertise {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.bio .tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bio .tag {
  border: 1px solid #70cbd3;
  border-radius: 15px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: #f8feff;
  transition:
    background-color 0.3s,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.bio .tag:hover {
  background: #d0eff2;
  transform: translateY(-2px);
}

.bio-engage {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.bio .eng-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.bio .eng-stat {
  border: 1px solid #70cbd3;
  border-radius: 20px;
  padding: 28px 30px;
  background: #d0eff2;
}

.bio .eng-stat .n {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.bio .eng-stat.sm .n {
  font-size: clamp(20px, 2vw, 26px);
}

.bio .eng-stat .l {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #e9511c;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .bio-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bio-aside {
    position: static;
    flex-direction: row;
    gap: 15px;
  }

  .bio-portrait {
    flex: 0 0 42%;
    aspect-ratio: 3 / 4;
  }

  .bio-idcard {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .bio-quote {
    padding: 48px 34px;
  }
}

@media (max-width: 640px) {
  .bio-aside {
    flex-direction: column;
  }

  .bio-portrait {
    flex: none;
    aspect-ratio: 4 / 5;
  }

  .bio-idcard {
    padding: 26px 24px;
  }

  .bio-quote {
    padding: 34px 24px;
  }

  .bio .tl-row {
    padding: 20px 0;
  }

  .bio .eng-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Big-screen styles — from 1700px up. Applies to both pages that share this
   stylesheet: Détail Mentor and Détail Équipe.

   Every fixed px length above is re-expressed in vw so the 1440px-reference
   design scales up proportionally instead of leaving the content marooned in
   whitespace. Conversion: 1px = 0.0694486429vw (100 / 1440). Percentages, fr
   units, ch widths, em letter-spacing and ratio line-heights are left
   untouched.

   The clamp() display headings drop their px ceiling here: the cap started
   binding at ~1700px, which would freeze them while the rest of the page
   grew. @keyframes offsets stay in px — a media query cannot override an
   individual keyframe step.
   ========================================================================== */

@media (min-width: 1700px) {
.bio {
    padding: 2.36125vw 1.04173vw 4.16692vw;
  }

  .bio [data-reveal] {
    transform: translateY(2.36125vw);
  }

  .bio-hero {
    gap: 1.04173vw;
  }

  .bio-aside {
    top: 1.38897vw;
    gap: 1.04173vw;
  }

  .bio-idcard {
    border-radius: 1.66677vw;
    padding: 2.22236vw 2.36125vw;
  }

  .bio-idtag {
    gap: 0.55559vw;
    border-radius: 0.90283vw;
    padding: 0.41669vw 0.97228vw;
    font-size: 0.69449vw;
    letter-spacing: 0.08334vw;
    margin-bottom: 1.52787vw;
  }

  .bio-idtag::before {
    width: 0.41669vw;
    height: 0.41669vw;
  }

  .bio-name {
    font-size: 3vw;
  }

  .bio-role {
    font-size: 0.76394vw;
    letter-spacing: 0.08334vw;
    margin-top: 0.97228vw;
  }

  .bio-links {
    gap: 0.69449vw;
    margin-top: 1.80566vw;
  }

  .bio-pill {
    gap: 0.62504vw;
    border: 0.06945vw solid #000;
    border-radius: 1.04173vw;
    padding: 0.69449vw 1.11118vw;
    font-size: 0.83338vw;
  }

  .bio-pill .ic {
    width: 1.52787vw;
    height: 1.52787vw;
    font-size: 0.90283vw;
  }

  .bio-portrait {
    border-radius: 1.66677vw;
  }

  .bio-main {
    padding-top: 0.27779vw;
  }

  .bio-intro {
    font-size: 1.11118vw;
    margin: 0 0 1.52787vw;
  }

  .bio-text p {
    font-size: 1.11118vw;
    margin: 0 0 1.52787vw;
  }

  .bio-quote {
    margin: 2.50015vw 0 0;
    border: 0.06945vw solid #70cbd3;
    border-radius: 1.66677vw;
    padding: 2.77795vw 2.91684vw;
  }

  .bio-qmark {
    font-size: 5.83369vw;
    margin-bottom: 0.55559vw;
  }

  .bio-quote blockquote {
    font-size: 1.6vw;
  }

  .bio-qbody cite {
    margin-top: 1.52787vw;
    font-size: 0.83338vw;
    letter-spacing: 0.06945vw;
  }

  .bio-parcours {
    margin-top: 2.63905vw;
    padding-top: 2.08346vw;
    border-top: 0.06945vw solid rgba(0, 0, 0, 0.14);
  }

  .bio .tl-row {
    padding: 1.38897vw 0;
    border-bottom: 0.06945vw solid rgba(0, 0, 0, 0.1);
  }

  .bio .tl-date {
    font-size: 0.69449vw;
    letter-spacing: 0.06945vw;
    border: 0.06945vw solid #e9511c;
    border-radius: 0.76394vw;
    padding: 0.27779vw 0.76394vw;
    margin-bottom: 0.83338vw;
  }

  .bio .tl-body h3 {
    font-size: 1.31952vw;
    margin: 0 0 0.41669vw;
  }

  .bio .tl-body p {
    font-size: 0.97228vw;
  }

  .bio-expertise {
    margin-top: 2.63905vw;
    padding-top: 2.08346vw;
    border-top: 0.06945vw solid rgba(0, 0, 0, 0.14);
  }

  .bio .tags-wrap {
    gap: 0.69449vw;
  }

  .bio .tag {
    border: 0.06945vw solid #70cbd3;
    border-radius: 1.04173vw;
    padding: 0.62504vw 1.25008vw;
    font-size: 0.90283vw;
  }

  .bio .tag:hover {
    transform: translateY(-0.1389vw);
  }

  .bio-engage {
    margin-top: 2.63905vw;
    padding-top: 2.08346vw;
    border-top: 0.06945vw solid rgba(0, 0, 0, 0.14);
  }

  .bio .eng-stats {
    gap: 1.04173vw;
  }

  .bio .eng-stat {
    border: 0.06945vw solid #70cbd3;
    border-radius: 1.38897vw;
    padding: 1.94456vw 2.08346vw;
  }

  .bio .eng-stat .n {
    font-size: 2.6vw;
  }

  .bio .eng-stat.sm .n {
    font-size: 2vw;
  }

  .bio .eng-stat .l {
    font-size: 0.69449vw;
    letter-spacing: 0.07639vw;
    margin-top: 0.69449vw;
  }
}
