/* Container principal */
.container-article {
  background-color: #FFF;
  padding: 20px;
  overflow: hidden; /* Évite les débordements */
}

/* Style de chaque bloc d'article */
.article-rectangle {
  display: flex;
  flex-direction: column; /* Aligne en colonne */
  align-items: center; /* Centre l'image et le texte */
  text-align: center; /* Centre le texte */
  padding: 15px;
  width: 100%;
  max-width: 600px;
  height: 130px; /* Hauteur fixe */
  margin-bottom: 15px;
  border: 1px solid #ddd; /* Bordure pour délimiter le bloc */
  border-radius: 8px; /* Coins arrondis */
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, 
              rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, 
              rgba(0, 0, 0, 0.2) 0px -3px 0px inset; /* Effet d'ombre */
  background-color: #FFF; /* Fond blanc */
  overflow: hidden; /* Assure que tout reste dans les limites */
}

/* Conteneur de l'image */
.article-image {
  flex-shrink: 0; /* Empêche l'image de rétrécir */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60%; /* Ajuste l'espace réservé à l'image */
  width: 100%;
}

.article-image img {
  max-width: 100%; /* Évite que l’image dépasse */
  max-height: 100%; /* Garde les proportions sans dépasser */
  object-fit: contain; /* Assure un bon ajustement */
  border-radius: 8px; /* Arrondi léger */
}

/* Conteneur du contenu texte */
.article-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre le texte */
  justify-content: center;
  height: 40%; /* Ajuste l'espace réservé au texte */
  width: 100%;
}

/* Style du titre */
.article-title {
  font-size: 16px;
  font-weight: bold;
  padding: 5px;
  margin-top: 5px;
}

.article-title a {
  font-weight: normal;
  text-decoration: none;
}

.article-title a:hover {
  text-decoration: underline;
}