/* Section Équipe Moderne */

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  color: var(--dark-color);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), #94d815);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.3rem;
  text-align: center;
  color: var(--gray-color);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Grille d'équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* Cartes de membres */
.team-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.02), rgba(148, 216, 21, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.team-card:hover::before {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 86, 179, 0.2);
}

/* Photo de profil */
.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid rgba(0, 86, 179, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.team-card:hover .team-photo {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* Nom du membre */
.team-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

/* Rôle du membre */
.team-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

/* Biographie */
.team-bio {
  font-size: 1rem;
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Liens sociaux */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), #007bff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

.social-links a:nth-child(2) {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-links a:nth-child(3) {
  background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.social-links a:nth-child(4) {
  background: linear-gradient(135deg, #333, #24292e);
}

/* Styles pour les avatars par défaut */
.team-card .fa-user {
  font-size: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .team-card {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
  
  .team-card {
    padding: 25px 20px;
    border-radius: 20px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .team-name {
    font-size: 1.3rem;
  }
  
  .team-role {
    font-size: 1rem;
  }
  
  .team-bio {
    font-size: 0.95rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .team-card {
    padding: 20px 15px;
    border-radius: 16px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .team-name {
    font-size: 1.2rem;
  }
  
  .social-links {
    gap: 10px;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Mode sombre */
.dark-theme .team-card {
  background: rgba(45, 55, 72, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .team-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(148, 216, 21, 0.02));
}

.dark-theme .team-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .team-photo {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .team-card:hover .team-photo {
  border-color: var(--primary-color);
}

.dark-theme .team-name {
  color: #e2e8f0;
}

.dark-theme .team-bio {
  color: #a0aec0;
}

/* Animations d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-card {
  animation: fadeInUp 0.8s ease-out;
}

.team-card:nth-child(1) {
  animation-delay: 0.1s;
}

.team-card:nth-child(2) {
  animation-delay: 0.3s;
}

.team-card:nth-child(3) {
  animation-delay: 0.5s;
}

/* Effet de particules en arrière-plan */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 86, 179, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(148, 216, 21, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section .container {
  position: relative;
  z-index: 1;
}
