/* Section « L'équipe » (accueil) : Tommy et Emma dans deux cartes bleu marine,
   photo encadrée à l'intérieur, nom, rôle et présentation en dessous. */
#team-section .div-block-20 {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(2, minmax(0, 27rem));
  gap: 2rem;
  align-items: start;
}

#team-section .div-block-23,
#team-section .div-block-24 {
  display: flex;
}

#team-section .team-card {
  width: 100%;
  height: auto;
  gap: 1.25rem;
  padding: 1rem 1rem 1.75rem;
  border: 1px solid #ffffff24;
  border-radius: 1.75rem;
  background-color: #1f4e79;
  background-image: radial-gradient(circle at 50% 135%, #9ad6ff59, #1f4e7900 55%);
  color: #fff;
  box-shadow: 0 18px 40px -24px #0b1f3399;
}

#team-section .team-card-main {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.02;
  border: 1px solid #ffffff1f;
  border-radius: 1.1rem;
  background-color: #173d60;
}

/* un voile bleuté et un léger adoucissement sur les photos, pour qu'elles se fondent dans la carte
   (sinon la photo brute tranche trop avec le bleu) */
#team-section .team-card-main .team-card-image {
  filter: saturate(.92) contrast(.96) brightness(1.02);
}

#team-section .team-card-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background-image:
    linear-gradient(180deg, #1f4e7914 0%, #1f4e7900 38%, #1f4e7966 100%),
    radial-gradient(circle at 50% 35%, #1f4e7900 45%, #0b1f3359 100%);
  box-shadow: inset 0 0 0 1px #ffffff1f;
  pointer-events: none;
}

#team-section .team-card-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #1f4e79;
  mix-blend-mode: soft-light;
  opacity: .35;
  pointer-events: none;
}

#team-section .team-card-innershasdow {
  border-radius: 1.1rem;
}

#team-section .team-card-name-wrap {
  gap: .5rem;
  padding: 0 .75rem;
}

#team-section .team-card-name {
  margin-bottom: 0;
  font-weight: var(--font-weight--semibold);
  color: #fff;
}

#team-section .text-block {
  margin-bottom: .5rem;
  line-height: 1.3;
  color: #ff8a5c;
}

#team-section .team-card-position {
  width: auto;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #ffffffd9;
}

/* la suite du texte : repliée tant qu'on n'a pas cliqué sur « En savoir plus »
   (sans script, tout le texte reste visible et le bouton est masqué) */
#team-section .ll-equipe-suite {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
}

#team-section .ll-equipe-suite-fond {
  min-height: 0;
  overflow: hidden;
}

.w-mod-js #team-section .team-card:not(.est-ouverte) .ll-equipe-suite {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease, visibility 0s .45s;
}

/* dans la carte : le petit lien discret qui déplie la suite du texte */
#team-section .ll-equipe-deplier {
  display: none;
  align-items: center;
  gap: .45rem;
  margin-top: .35rem;
  padding: .45rem 1rem;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  background-color: #ffffff14;
  color: #fff;
  font-family: var(--font-family--text);
  font-size: .9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.w-mod-js #team-section .ll-equipe-deplier {
  display: inline-flex;
}

#team-section .ll-equipe-deplier:hover {
  border-color: #ffffff80;
  background-color: #ffffff26;
}

#team-section .ll-equipe-deplier:focus-visible {
  outline: 2px solid #ff6b35;
  outline-offset: 3px;
}

#team-section .ll-equipe-deplier svg {
  transition: transform .35s ease;
}

#team-section .team-card.est-ouverte .ll-equipe-deplier svg {
  transform: rotate(180deg);
}

/* sous les deux cartes : le bouton orange du site (le même que « Nous appeler ») vers la page À propos */
#team-section .ll-equipe-pied {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  #team-section .ll-equipe-suite,
  #team-section .ll-equipe-deplier svg {
    transition: none !important;
  }
}

@media screen and (max-width: 767px) {
  #team-section .div-block-20 {
    grid-template-columns: minmax(0, 27rem);
  }
}
