/* TITRE PRINCIPAL */
.intro-article {
  text-align: center;
  font-size: 3rem;
  color: #4371c8; /* bleu foncé */
  margin: 1rem 0;
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .intro-article {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  .intro-article {
    font-size: 2rem;
  }
}

/* PARAGRAPHE INTRO */
.desc-article {
  font-size: 1.2rem;
  color: rgb(79, 77, 77);
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding-top: 20px;
  text-align: center;
  margin: 1rem auto;
}
@media (max-width: 768px) {
  .desc-article {
    font-size: 1rem;
    padding: 10px;
  }
}
@media (max-width: 480px) {
  .desc-article {
    font-size: 1rem;
    padding: 5px;
  }
}

/* SECTION DES ARTICLES */
.section3 {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;   /* permet de passer à la ligne */
  padding: 40px 20px;
  gap: 20px;
  background-color: #fedbac;
}

@media (max-width: 900px) {
  .section3 {
    flex-direction: column;
    padding: 20px 10px;
  }
}

/* CONTENEUR */
.box-art {
  width: 100%; /* occupe toute la largeur */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 1rem;
}

/* CARTE ARTICLE */
.article {
  display: flex;
  flex-direction: row; /* image à gauche, texte à droite */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  min-width: 320px;
  max-width: 1000px;
  flex: 1 1 420px;
}
.article:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* IMAGE */
.article .image-article {
  width: 260px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* TEXTE */
.texte-article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  flex: 1;
}

.titre-article {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #111;
}

.description-article {
  margin: 0 0 12px 0;
  line-height: 1.6;
  color: #444;
  flex: 1 1 auto;
}

.pub {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  color: #777;
}

/* BOUTON */
.bouton-article {
  align-self: flex-start;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg,#0d47a1,#1e88e5);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(13,71,161,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bouton-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(13,71,161,0.22);
}

/* RESPONSIVE : image au-dessus */
@media (max-width: 800px) {
  .article {
    flex-direction: column;
    min-width: auto;
  }
  .article .image-article {
    width: 100%;
    height: 220px;
  }
  .texte-article {
    padding: 12px;
  }
  .bouton-article {
    align-self: center;
  }
}
