/* Conteneur principal pour la page */
section.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centrer tout le contenu horizontalement */
  margin: auto;
  width: 80%;
  max-width: 1100px;
  padding: 40px;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center; /* Centrer le texte */
}

/* Section de l'en-tête d'introduction */
.section-header {
  margin-bottom: 50px; /* Espacement entre l'en-tête et le reste du contenu */
}

/* Titre de l'introduction */
.intro-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e1c70;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 2px;
  transform: translateY(-20px);
}

/* Paragraphe d'introduction */
.intro-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Animation d'apparition pour l'introduction */
.intro-text:nth-child(1) {
  animation-delay: 0.5s;
}

.intro-text:nth-child(2) {
  animation-delay: 1s;
}

.intro-text:nth-child(3) {
  animation-delay: 1.5s;
}
/* Article */
.section-content {
  margin-bottom: 60px; /* Espacement entre les sections */
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1e1c70;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  opacity: 1; /* On définit l'opacité initiale à 1 */
  animation-fill-mode: forwards; /* Maintient l'élément visible après l'animation */
}

/* Délai d'animation des titres */
.section-title:nth-child(1) {
  animation-delay: 0.5s; /* Délai d'animation du titre */
}

.section-title:nth-child(2) {
  animation-delay: 1s;
}

.section-title:nth-child(3) {
  animation-delay: 1.5s;
}

/* Image dans les sections */
.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Espacement entre l'image et le texte */
}

.atelier-image {
  width: 40%;
  max-width: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
  opacity: 1; /* L'élément devient visible */
}

.section-content {
  opacity: 0;
  transform: translateY(30px); /* Pour faire glisser l'article vers le haut */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Délai d'animation du texte dans chaque article */
.section-text:nth-child(1) {
  animation-delay: 2s;
}

.section-text:nth-child(2) {
  animation-delay: 2.5s;
}

.section-text:nth-child(3) {
  animation-delay: 3s;
}

@media only screen and (max-width: 768px) {
  section.container {
    width: 100%;
    max-width: 100%;
    padding: 0;          /* Plus aucun padding */
    margin: 0;           /* Pas de marge */
    box-sizing: border-box;
  }


  .content-wrapper {
    flex-direction: column; /* Empile verticalement */
    align-items: center;
  }

  .atelier-image {
    width: 90%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
  }

  .intro-heading {
    font-size: 1.8rem;
  }

  .intro-text, .section-text {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 10px;
  }

  .section-title {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  /* Ajuste le margin-top pour les articles */
  article.section-content {
    margin-top: 2rem;
  }
}
