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

body {
  font-family: 'Roboto', sans-serif;
}

.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);
}

/* SECTION */

.formations {
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* BLOCS */

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

/* Inversion desktop */
.formation-item.reverse {
  flex-direction: row-reverse;
}

/* IMAGE */

.formation-img img {
  width: 450px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* TEXTE */

.formation-text {
  max-width: 600px;
}

.formation-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0a2a66;
}

.formation-text p {
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

  .formation-item,
  .formation-item.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  /* Met le texte au-dessus de l'image sur mobile */
  .formation-text {
    order: -1;
  }

  .formations {
    padding: 60px 5%;
  }

  .formation-text h2 {
    font-size: 1.6rem;
  }

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

}