/* ---------- En-tête de page ---------- */
.page-entete {
  background: linear-gradient(135deg, rgba(31,122,51,0.95), rgba(47,158,68,0.88));
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}
.page-entete h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.8rem; }
.page-entete p { max-width: 650px; margin: 0 auto; opacity: 0.95; }

.fil-ariane { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.9; }
.fil-ariane a:hover { text-decoration: underline; }

/* ---------- Galerie ---------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.galerie-item {
  aspect-ratio: 4 / 3;
  background: var(--couleur-clair);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galerie-item:hover img { transform: scale(1.06); }

/* ---------- Visionneuse (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 20, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.ouvert { display: flex; }

.lightbox figure {
  max-width: 90vw;
  max-height: 88vh;
  text-align: center;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 8px;
}
.lightbox figcaption {
  color: #fff;
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  transition: background 0.2s;
}
.lightbox button:hover { background: var(--couleur-principale); }

.lb-fermer { top: 1.2rem; right: 1.2rem; }
.lb-prec { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-suiv { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .lb-prec, .lb-suiv { width: 40px; height: 40px; }
}