/* Équipes — subsidiary name on each portrait, between two hairlines. */

.experts-directory-page__card .senior-advisor-card__image {
  position: relative;
}

/* Soft navy veil so the name reads on any photo. */
.experts-directory-page__card .senior-advisor-card__image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(6, 24, 39, 0) 0%, rgba(6, 24, 39, 0.55) 70%, rgba(6, 24, 39, 0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

.expert-unit-name {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 92%;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  transition: gap 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Hairlines fading out, with a tiny diamond at their inner end. */
.expert-unit-name::before,
.expert-unit-name::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 233, 239, 0), #7fe9ef);
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.expert-unit-name::after {
  background: linear-gradient(90deg, #7fe9ef, rgba(127, 233, 239, 0));
  /* letter-spacing adds space after the last letter: balance it. */
  margin-left: -0.32em;
}

.experts-directory-page__card:hover .expert-unit-name,
.experts-directory-page__card:focus-visible .expert-unit-name {
  gap: 18px;
}

.experts-directory-page__card:hover .expert-unit-name::before,
.experts-directory-page__card:hover .expert-unit-name::after,
.experts-directory-page__card:focus-visible .expert-unit-name::before,
.experts-directory-page__card:focus-visible .expert-unit-name::after {
  width: 52px;
}

@media (max-width: 600px) {
  .expert-unit-name {
    bottom: 16px;
    gap: 10px;
    font-size: 0.66rem;
    letter-spacing: 0.26em;
  }

  .expert-unit-name::before,
  .expert-unit-name::after {
    width: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expert-unit-name,
  .expert-unit-name::before,
  .expert-unit-name::after {
    transition: none;
  }
}

/* Experts hero: the introduction sentence stays on one line (tablet and up). */
@media (min-width: 768px) {
  body .senior-advisors-page__hero .cf-hero__lede,
  body .senior-advisors-page__hero .cf-hero__lede > p {
    max-width: none !important;
    white-space: nowrap;
  }
}

/* Second hero paragraph (holding / Gestion sous mandat) wraps normally. */
body .senior-advisors-page__hero .cf-hero__lede > p.experts-directory-page__holding {
  max-width: 46rem !important;
  margin-top: .9em;
  white-space: normal;
}
