/* ===== PAGE NOS FORMATIONS - DESIGN MODERNE ===== */

.formations-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.formations-icon img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

/* ===== PAGINATION STYLÉE ===== */
.formations-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.pagination-btn {
  background: white;
  border: 2px solid #3a0ca3;
  color: #3a0ca3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: #3a0ca3;
  color: white;
  transform: scale(1.1);
}

.pagination-dots {
  color: #666;
  margin: 0 5px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formation-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.formation-card:nth-child(1) {
  animation-delay: 0.1s;
}
.formation-card:nth-child(2) {
  animation-delay: 0.2s;
}
.formation-card:nth-child(3) {
  animation-delay: 0.3s;
}
.formation-card:nth-child(4) {
  animation-delay: 0.4s;
}
.formation-card:nth-child(5) {
  animation-delay: 0.5s;
}
.formation-card:nth-child(6) {
  animation-delay: 0.6s;
}
.formation-card:nth-child(7) {
  animation-delay: 0.7s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  .formations-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .formations-title {
    font-size: 2.5rem;
  }

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .formations-grid {
    padding: 60px 0;
  }

  .formations-container {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .formation-content {
    padding: 25px;
  }

  .formations-cta {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 575px) {
  .formations-header {
    padding: 50px 20px;
  }

  .formations-title {
    font-size: 1.8rem;
  }

  .formation-content {
    padding: 20px;
  }

  .formation-name {
    font-size: 1.2rem;
  }
}
