* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: auto;
}

.programme {
  margin-top: 50px;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  color: #0a2a66;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.programme.visible {
  opacity: 1;
  transform: translateY(0);
}

.formations {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.formation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.formation-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.formation-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #03284d;
}

.formation-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.formation-item.reverse .formation-content {
  flex-direction: row-reverse;
}

.formation-img img {
  width: 400px;
  max-width: 90vw;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.formation-text {
  max-width: 600px;
  font-size: 1.1rem;
  color: #0a2a66;
}

.formation-text p {
  line-height: 1.6;
  font-size: 1rem;
}

.btn-details {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background-color: #0a2a66;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-details:hover {
  background-color: #03284d;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ---------------------
   ✅ Responsive Styles
--------------------- */

@media (max-width: 768px) {
  .programme {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 10px;
  }

  .formation-content {
    flex-direction: column;
  }

  .formation-text {
    text-align: center;
  }

  .formation-img img {
    width: 100%;
    max-width: 350px;
  }

  .btn-details {
    margin-top: 25px;
  }

  .formation-text .formation-title {
    display: none;
  }

  .formation-item::before {
    content: attr(data-title);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #03284d;
  }
}
