/* Section principale */
.mt-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Slider Container */
.mt-slider-container {
  position: relative;
  width: 100%;
}

/* Slider Wrapper */
.mt-slider-wrapper {
  overflow: hidden;
  border-radius: 24px;
  width: 100%;
  padding: 10px;
}

.mt-cards-container {
  display: flex;
  transition: transform 0.6s ease;
  width: calc(300% + 120px); /* Largeur pour 3x les cartes + gaps */
  gap: 30px;
}

/* HAUTEUR AUGMENTÉE - Desktop */
.mt-card-regular {
  flex: 0 0 calc((100vw - 140px) / 3);
  max-width: calc((1400px - 140px) / 3);
  height: 520px; /* Augmenté de 420px à 520px */
  cursor: pointer;
  position: relative;
  perspective: 1000px;
  transition: all 0.4s ease;
}

.mt-card-regular:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Container pour l'effet flip */
.mt-card-regular .mt-card-default,
.mt-card-regular .mt-card-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
              0 1px 3px rgba(249, 30, 90, 0.1);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* FACE AVANT - Carte par défaut */
.mt-card-default {
  transform: rotateY(0deg);
  z-index: 2;
  background: linear-gradient(135deg, 
    rgba(249, 30, 90, 0.03) 0%, 
    rgba(92, 225, 230, 0.03) 100%);
}

/* FACE ARRIÈRE - Carte de hover */
.mt-card-hover {
  transform: rotateY(-180deg);
  z-index: 1;
}

/* Animation FLIP au hover */
.mt-card-regular:hover .mt-card-default {
  transform: rotateY(180deg);
}

.mt-card-regular:hover .mt-card-hover {
  transform: rotateY(0deg);
}

/* Styles de la face avant - Proportions ajustées */
.mt-member-image {
  width: 100%;
  height: 75%; /* Augmenté de 70% à 75% pour garder les proportions */
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.mt-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s ease;
}

.mt-card-regular:hover .mt-member-image img {
  transform: scale(1.15) rotate(2deg);
}

.mt-member-info {
  padding: 20px;
  text-align: center;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.95),
    rgba(249, 30, 90, 0.04) 0%,
    rgba(92, 225, 230, 0.04) 100%);
  height: 25%; /* Ajusté de 30% à 25% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 0 24px 24px;
  position: relative;
}

.mt-member-info::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f91e5a, #5ce1e6);
  border-radius: 2px;
}

.mt-member-name {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.mt-member-role {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* FACE ARRIÈRE - Design blanc avec border gradient */
.mt-card-hover {
  background: linear-gradient(135deg, 
    rgba(249, 30, 90, 0.02) 0%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(92, 225, 230, 0.02) 100%);
  color: #1e293b;
  overflow: hidden;
  position: relative;
}

.mt-card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f91e5a, #5ce1e6);
  border-radius: 2px 2px 0 0;
  z-index: 1;
}

.mt-hover-content {
  height: 100%;
  padding: 50px 35px 45px; /* Plus d'espace avec la hauteur augmentée */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Animation d'apparition des éléments */
.mt-hover-header {
  width: 100%;
  opacity: 0;
  transform: translateY(-30px);
  animation: slideInDown 0.6s ease 0.3s forwards;
}

@keyframes slideInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mt-hover-name {
  font-size: 28px; /* Légèrement augmenté */
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
  text-shadow: none;
}

.mt-hover-role {
  font-size: 17px; /* Légèrement augmenté */
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Corps avec description */
.mt-hover-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn 0.6s ease 0.5s forwards;
  padding: 20px 0; /* Plus d'espace */
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mt-hover-desc {
  font-size: 16px; /* Légèrement augmenté */
  line-height: 1.8;
  color: #475569;
  margin: 0;
  text-align: center;
  padding: 25px 0;
  position: relative;
}

.mt-hover-desc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #f91e5a, #5ce1e6);
}

.mt-hover-desc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #f91e5a, #5ce1e6);
}

/* Footer avec LinkedIn animé */
.mt-hover-footer {
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease 0.7s forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mt-hover-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px; /* Légèrement augmenté */
  height: 65px;
  background: linear-gradient(90deg, #f91e5a, #5ce1e6);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  font-weight: bold;
  font-size: 24px; /* Légèrement augmenté */
  transition: all 0.4s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.mt-hover-linkedin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.linkedin-text {
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: lowercase;
  position: relative;
  z-index: 2;
}

.mt-hover-linkedin:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(249, 30, 90, 0.3);
}

.mt-hover-linkedin:hover::before {
  width: 100%;
  height: 100%;
}

/* === SYSTÈME DE PAGINATION AVEC POINTS === */
.mt-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 12px;
}

.mt-pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mt-pagination-dot:hover {
  background: #cbd5e1;
  transform: scale(1.2);
}

.mt-pagination-dot.active {
  width: 32px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f91e5a, #5ce1e6);
}

.mt-pagination-dot.active:hover {
  transform: scale(1.1);
}

/* Animation pour le point actif */
.mt-pagination-dot.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.3));
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Responsive Design - Tablettes */
@media (max-width: 1200px) {
  .mt-card-regular {
    flex: 0 0 calc((100vw - 110px) / 2);
    max-width: calc((1200px - 110px) / 2);
    height: 480px; /* Augmenté de 380px à 480px */
  }
  
  .mt-hover-content {
    padding: 45px 30px 40px;
  }
  
  .mt-hover-name {
    font-size: 26px;
  }
  
  .mt-hover-desc {
    font-size: 15px;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .mt-section {
    padding: 0 20px;
  }

  .mt-card-regular {
    flex: 0 0 calc(100vw - 40px);
    max-width: calc(768px - 40px);
    height: 460px; /* Augmenté de 360px à 460px */
  }
  
  .mt-cards-container {
    gap: 20px;
    width: calc(300% + 40px);
  }
  
  .mt-hover-content {
    padding: 40px 25px 35px;
  }
  
  .mt-hover-name {
    font-size: 24px;
  }
  
  .mt-hover-desc {
    font-size: 14px;
    padding: 20px 0;
  }
  
  .mt-hover-linkedin {
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .mt-pagination {
    margin-top: 30px;
    gap: 8px;
  }

  .mt-pagination-dot {
    width: 10px;
    height: 10px;
  }

  .mt-pagination-dot.active {
    width: 24px;
  }
}

/* Responsive Design - Petit Mobile */
@media (max-width: 480px) {
  .mt-section {
    margin: 20px auto;
    padding: 0 15px;
  }

  .mt-card-regular {
    flex: 0 0 calc(100vw - 30px);
    max-width: calc(480px - 30px);
    height: 440px; /* Augmenté de 340px à 440px */
  }
  
  .mt-cards-container {
    gap: 15px;
    width: calc(300% + 30px);
  }
  
  .mt-hover-content {
    padding: 35px 20px 30px;
  }
  
  .mt-hover-name {
    font-size: 22px;
  }
  
  .mt-hover-role {
    font-size: 15px;
  }
  
  .mt-hover-desc {
    font-size: 13px;
    line-height: 1.7;
  }
  
  .mt-hover-linkedin {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .mt-pagination {
    margin-top: 25px;
    gap: 6px;
  }

  .mt-pagination-dot {
    width: 8px;
    height: 8px;
  }

  .mt-pagination-dot.active {
    width: 20px;
  }
}