.galerie__filtres {
  display: flex;
  justify-content: center;
  margin: 0 var(--espace-m) var(--espace-l);
}

/* Masonry legere via CSS columns */
.galerie__grille {
  columns: 3 280px;
  column-gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--espace-m) var(--espace-xl);
}
.galerie__item {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 12px;
  background: var(--noir-doux);
  break-inside: avoid;
  cursor: zoom-in;
}
/* Quand un filtre est actif, les tuiles hors categorie recoivent l'attribut [hidden].
   Ce selecteur (classe + attribut) prime sur le display:block ci-dessus pour bien les masquer. */
.galerie__item[hidden] { display: none; }
.galerie__item img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.galerie__item:hover img,
.galerie__item:focus-visible img { transform: scale(1.04); }
.galerie__tag {
  position: absolute;
  left: 0.8rem; bottom: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.75);
  color: var(--or);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.galerie__item:hover .galerie__tag,
.galerie__item:focus-visible .galerie__tag { opacity: 1; transform: none; }

/* ============ Lightbox maison ============ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--espace-m);
  background: rgba(13, 13, 13, 0.95);
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
  max-width: min(1000px, 92vw);
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox__legende { color: var(--gris); font-size: 0.9rem; text-align: center; }
.lightbox__btn {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(26, 26, 26, 0.8);
  color: var(--creme);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.lightbox__btn:hover { color: var(--or); border-color: rgba(201, 162, 75, 0.5); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
