/* ================================
   ANIMATIONS SPÉCIFIQUES À L'ÉQUIPE
   Compatible avec le système d'animations unifié
=============================== */

/* États initiaux pour les éléments de l'équipe */
.team-section-revolutionary .team-header:not(.animate-in),
.team-section-revolutionary .team-member-card:not(.animate-in),
.team-section-revolutionary .team-cta-section:not(.animate-in) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* États finaux pour les éléments de l'équipe */
.team-section-revolutionary .team-header.animate-in,
.team-section-revolutionary .team-member-card.animate-in,
.team-section-revolutionary .team-cta-section.animate-in {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: all 0.8s ease-out !important;
}

/* Animation fade-in-up pour l'équipe */
@keyframes teamFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-section-revolutionary .fade-in-up.animate-in {
  animation: teamFadeInUp 0.8s ease-out forwards;
}

/* Effets de hover pour les cartes d'équipe - Modernisés */
.team-section-revolutionary .team-member-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.team-section-revolutionary .team-member-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 24px 48px rgba(138, 76, 255, 0.15) !important;
}

/* Animation des statistiques des membres */
.team-section-revolutionary .member-stats:not(.animate-in) {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.team-section-revolutionary .member-stats.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.6s ease-out !important;
}

/* Animation des compétences des membres */
.team-section-revolutionary .member-expertise:not(.animate-in) {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease-out;
}

.team-section-revolutionary .member-expertise.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.5s ease-out !important;
}

/* Animation des actions des membres */
.team-section-revolutionary .member-actions:not(.animate-in) {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease-out;
  display: flex !important;
  flex-direction: row !important;
}

.team-section-revolutionary .member-actions.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.4s ease-out !important;
  display: flex !important;
  flex-direction: row !important;
}

/* Délais d'animation pour les cartes d'équipe */
.team-section-revolutionary .team-member-card:nth-child(1) {
  animation-delay: 0.1s;
}

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

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

.team-section-revolutionary .team-cta-section {
  animation-delay: 0.7s;
}

/* Animation du badge de l'équipe */
.team-section-revolutionary .team-badge {
  animation: teamBadgePulse 2s ease-in-out infinite;
}

@keyframes teamBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(138, 76, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(138, 76, 255, 0);
  }
}

/* Animation des formes flottantes */
.team-section-revolutionary .floating-shape {
  animation: teamFloat 6s ease-in-out infinite;
}

.team-section-revolutionary .floating-shape:nth-child(1) {
  animation-delay: 0s;
}

.team-section-revolutionary .floating-shape:nth-child(2) {
  animation-delay: 1.5s;
}

.team-section-revolutionary .floating-shape:nth-child(3) {
  animation-delay: 3s;
}

.team-section-revolutionary .floating-shape:nth-child(4) {
  animation-delay: 4.5s;
}

@keyframes teamFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Responsive pour mobile - Animations optimisées */
@media (max-width: 768px) {
  .team-section-revolutionary .team-member-card:hover {
    transform: translateY(-4px) scale(1.005) !important;
    box-shadow: 0 12px 24px rgba(138, 76, 255, 0.12) !important;
  }
  
  .team-section-revolutionary .team-member-card {
    transition: all 0.25s ease;
  }
}

/* S'assurer que les animations fonctionnent même avec les styles forcés */
.team-section-revolutionary .team-header,
.team-section-revolutionary .team-member-card,
.team-section-revolutionary .team-cta-section {
  animation-duration: 0.8s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.8s !important;
}

/* Animations spécifiques pour la section CTA */
.team-section-revolutionary .team-cta-section {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-section-revolutionary .cta-content {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-section-revolutionary .cta-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(138, 76, 255, 0.1);
}

.team-section-revolutionary .cta-buttons .btn-primary,
.team-section-revolutionary .cta-buttons .btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Protection contre les modifications externes */
.team-section-revolutionary .animate-in {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}
