/**
 * Team 1 Section - Grid de cartes avec photos rondes débordantes
 *
 * Layout: Titre centré + Grid 3 colonnes
 * - Photos rondes qui débordent en haut des cartes
 * - Cartes blanches avec shadow
 * - Nom, poste, description, LinkedIn
 *
 * @package Dioqa_UI_Kit
 */

/* ============================================
   Section Container
   ============================================ */

.team-1-section {
  position: relative;
  overflow: hidden;
}

/* Background Shape - Bottom Right */
.team-1-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 486px;
  height: 491px;
  background-image: url("data:image/svg+xml,%3Csvg width='486' height='491' viewBox='0 0 486 491' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='0.5' fill-rule='evenodd' clip-rule='evenodd' d='M464.155 319.956C392.826 443.501 252.89 537.42 129.3 466.065C-5.73209 388.105 -35.5316 211.439 42.4007 76.4558C105.979 -33.6647 257.139 -9.76395 367.3 53.8374C463.092 109.143 519.441 224.198 464.155 319.956Z' fill='%23E4E8EB'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* Container above background shape */
.team-1-section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   Header - Titre et Description
   ============================================ */

.team-1-header {
  text-align: center;
  margin-bottom: 4.6875rem; /* 75px */
}

.team-1-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--display-md);
  line-height: 1;
  color: var(--bs-dark);
  margin: 0;
}

.team-1-description {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--bs-text);
  max-width: 800px;
  margin: 1.5rem auto 3rem;
}

/* ============================================
   Grid des membres
   ============================================ */

.team-1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* 24px */
}

/* ============================================
   Member Wrapper
   ============================================ */

.team-1-member-wrapper {
  position: relative;
  padding-top: 3.125rem; /* 50px - espace pour la photo qui déborde */
  display: flex;
  flex-direction: column;
}

/* ============================================
   Photo (déborde en haut)
   ============================================ */

.team-1-photo-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7.0625rem; /* 113px */
  height: 7.0625rem; /* 113px */
  border-radius: var(--photo-radius, 50%);
  overflow: hidden;
  z-index: 2;
}

.team-1-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   Card
   ============================================ */

.team-1-card {
  background: var(--card-bg, var(--bs-white));
  border-radius: var(--card-radius, 20px);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
  padding: 5.3125rem 1.5625rem 1.5625rem; /* 85px top, 25px horizontal, 25px bottom */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 28.125rem; /* 450px */
  flex: 1;
}

/* ============================================
   Card Content
   ============================================ */

.team-1-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
  text-align: center;
  flex: 1;
}

/* ============================================
   Info (Nom + Poste)
   ============================================ */

.team-1-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.team-1-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.4375; /* 23px / 16px */
  color: var(--bs-dark);
  margin: 0;
}

.team-1-position {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-md);
  line-height: 1.4375;
  color: var(--bs-text);
  text-transform: uppercase;
  letter-spacing: 0.15em; /* 2.4px / 16px ≈ 0.15em */
  margin: 0;
}

/* ============================================
   Description
   ============================================ */

.team-1-member-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 1.4375; /* 23px / 16px */
  color: var(--bs-text);
  margin: 0;
}

/* ============================================
   LinkedIn Link
   ============================================ */

.team-1-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; /* 24px */
  height: 1.5rem;
  color: #6b687d;
  transition: opacity 0.3s ease;
  align-self: center;
  margin-top: 1.5rem;
}

.team-1-linkedin:hover {
  opacity: 0.7;
}

.team-1-linkedin svg {
  width: 100%;
  height: 100%;
}

.team-1-linkedin svg path {
  fill: currentColor;
}

/* ============================================
   Dark Background Adaptation
   ============================================ */

.team-1-section.text-white .team-1-title {
  color: white;
}

.team-1-section.text-white .team-1-description {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablettes */
@media (max-width: 991.98px) {
  .team-1-section::after {
    width: 300px;
    height: 303px;
  }

  .team-1-header {
    margin-bottom: 3rem;
  }

  .team-1-title {
    font-size: var(--display-sm);
  }

  .team-1-description {
    font-size: var(--text-base);
    margin: 1rem auto 2.5rem;
  }

  /* 2 colonnes sur tablette */
  .team-1-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .team-1-card {
    min-height: 26rem;
    padding: 4.5rem 1.5rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .team-1-section::after {
    width: 200px;
    height: 202px;
  }

  .team-1-header {
    margin-bottom: 2rem;
  }

  .team-1-title {
    font-size: var(--display-sm-mobile);
  }

  .team-1-description {
    font-size: var(--text-sm);
    margin: 1rem auto 2rem;
  }

  /* 1 colonne sur mobile */
  .team-1-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-1-member-wrapper {
    padding-top: 2.5rem; /* Photo un peu plus petite */
  }

  .team-1-photo-wrapper {
    width: 5.625rem; /* 90px */
    height: 5.625rem;
  }

  .team-1-card {
    min-height: auto;
    padding: 4rem 1.25rem 1.25rem;
  }

  .team-1-name {
    font-size: var(--text-base);
  }

  .team-1-position {
    font-size: var(--text-sm);
  }

  .team-1-member-description {
    font-size: var(--text-sm);
    line-height: 1.5;
  }
}

/* Petits mobiles */
@media (max-width: 575.98px) {
  .team-1-card-content {
    gap: 1rem;
  }
}

/* ============================================
   Accessibility & Motion
   ============================================ */

/* Focus visible pour accessibilité clavier */
.team-1-linkedin:focus-visible {
  outline: 2px solid var(--bs-primary, #007bff);
  outline-offset: 2px;
  border-radius: 4px;
}
