/**
 * Team 2 Section - Grid de cartes avec images rectangulaires intégrées
 *
 * Layout: Titre centré + Grid flexible
 * - Images rectangulaires full-width intégrées dans les cartes
 * - Cartes blanches avec shadow
 * - Nom (grande taille), poste, LinkedIn en coin
 *
 * @package Dioqa_UI_Kit
 */

/* ============================================
   Section Container
   ============================================ */

.team-2-section {
  position: relative;
  overflow: hidden;
}

/* Background Shape - Bottom Right */
.team-2-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-2-section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   Header - Titre et Description
   ============================================ */

.team-2-header {
  text-align: center;
  margin-bottom: 4.6875rem; /* 75px */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5625rem; /* 25px */
}

.team-2-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--display-md); /* 36px */
  line-height: 1;
  color: var(--bs-dark);
  margin: 0;
}

.team-2-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-md); /* 16px */
  line-height: 1.4375; /* 23px */
  color: var(--bs-text);
  max-width: 40.5rem; /* 648px */
  text-align: center;
  margin: 0;
}

/* ============================================
   Grid des membres
   ============================================ */

.team-2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* 24px */
  max-width: 82.5rem; /* 1320px */
  margin: 0 auto;
}

/* ============================================
   Card
   ============================================ */

.team-2-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);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-2-card:hover {
  box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* ============================================
   Image
   ============================================ */

.team-2-image-wrapper {
  width: 100%;
  height: 26.5625rem; /* 425px */
  overflow: hidden;
  flex-shrink: 0;
}

.team-2-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   Content
   ============================================ */

.team-2-content {
  padding: 1.5625rem; /* 25px */
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
}

/* ============================================
   Info Wrapper (nom/poste + LinkedIn)
   ============================================ */

.team-2-info-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* ============================================
   Info (Nom + Poste)
   ============================================ */

.team-2-info {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /* 15px */
  flex: 1;
}

.team-2-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 2.625rem; /* 42px */
  line-height: 1;
  color: var(--bs-dark);
  margin: 0;
}

.team-2-position {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-md); /* 16px */
  line-height: 1.4375; /* 23px */
  color: var(--bs-text);
  text-transform: uppercase;
  letter-spacing: 0.15em; /* 2.4px */
  margin: 0;
}

/* ============================================
   Arrow Link (LinkedIn)
   ============================================ */

.team-2-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem; /* 22px */
  height: 1.375rem; /* 22px */
  flex-shrink: 0;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Flèche décorative (sans lien) */
span.team-2-arrow {
  cursor: default;
}

.team-2-card:hover .team-2-arrow {
  transform: translate(0.25rem, -0.25rem); /* Déplace vers le haut à droite */
}

.team-2-arrow svg {
  width: 100%;
  height: 100%;
}

.team-2-arrow svg path {
  stroke: #304248;
  transition: stroke 0.3s ease;
}

.team-2-card:hover .team-2-arrow svg path {
  stroke: var(--bs-primary, #007bff);
}

/* ============================================
   Dark Background Adaptation
   ============================================ */

.team-2-section.text-white .team-2-title {
  color: white;
}

.team-2-section.text-white .team-2-description {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablettes */
@media (max-width: 991.98px) {
  .team-2-section::after {
    width: 300px;
    height: 303px;
  }

  .team-2-header {
    margin-bottom: 3rem;
    gap: 1.25rem;
  }

  .team-2-title {
    font-size: var(--display-sm);
  }

  .team-2-description {
    font-size: var(--text-base);
  }

  /* 2 colonnes sur tablette */
  .team-2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .team-2-image-wrapper {
    height: 20rem;
  }

  .team-2-name {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .team-2-section::after {
    width: 200px;
    height: 202px;
  }

  .team-2-header {
    margin-bottom: 2rem;
    gap: 1rem;
  }

  .team-2-title {
    font-size: var(--display-sm-mobile);
  }

  .team-2-description {
    font-size: var(--text-sm);
  }

  /* 1 colonne sur mobile */
  .team-2-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-2-image-wrapper {
    height: 18.75rem; /* 300px */
  }

  .team-2-content {
    padding: 1.25rem;
  }

  .team-2-name {
    font-size: 1.75rem; /* 28px */
  }

  .team-2-position {
    font-size: var(--text-sm);
  }
}

/* Petits mobiles */
@media (max-width: 575.98px) {
  .team-2-image-wrapper {
    height: 15rem; /* 240px */
  }

  .team-2-name {
    font-size: 1.5rem; /* 24px */
  }

  .team-2-info-wrapper {
    gap: 0.75rem;
  }
}

/* ============================================
   Accessibility & Motion
   ============================================ */

/* Focus visible pour accessibilité clavier */
.team-2-arrow:focus-visible {
  outline: 2px solid var(--bs-primary, #007bff);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .team-2-card {
    transition: none;
  }

  .team-2-card:hover {
    transform: none;
  }

  .team-2-arrow {
    transition: none;
  }

  .team-2-card:hover .team-2-arrow {
    transform: none;
  }

  .team-2-arrow svg path {
    transition: none;
  }
}
