/* =========================================================
   1. Page d'accueil (articles en vedette)
   Image d'intro à gauche sous le titre, texte à droite
   ========================================================= */
.intro-flex {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.intro-flex .item-image {
  flex: 0 0 200px;          /* largeur de l'image, à ajuster */
  max-width: 40%;
  margin: 0 !important;
  float: none !important;
}
.intro-flex .item-image img {
  width: 100%;
  height: auto;
}
.intro-texte {
  flex: 1;
  min-width: 0;             /* évite que le texte déborde */
}

/* Sur mobile : image au-dessus du texte */
@media (max-width: 576px) {
  .intro-flex {
    flex-direction: column;
  }
  .intro-flex .item-image {
    flex-basis: auto;
    max-width: 100%;
  }
}

/* =========================================================
   2. Vue article
   Image complète (sinon image d'intro) à gauche, texte à droite
   ========================================================= */
.article-flex {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.article-flex .item-image {
  flex: 0 0 400px;          /* largeur de l'image dans l'article, à ajuster */
  max-width: 45%;
  margin: 0 !important;
  float: none !important;
}
.article-flex .item-image img {
  width: 100%;
  height: auto;
}
.article-texte {
  flex: 1;
  min-width: 0;
}

/* Tablette et mobile : image au-dessus du texte */
@media (max-width: 768px) {
  .article-flex {
    flex-direction: column;
  }
  .article-flex .item-image {
    flex-basis: auto;
    max-width: 100%;
  }
}

/* =========================================================
   3. Lightbox de l'image d'article
   ========================================================= */
.lightbox-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
  overflow: visible;
}
.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
.lightbox-dialog img {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}