/* ============================================================
   Broum Elementor Widgets — Styles front-end
   ============================================================ */

/* ── Galerie Facebook ─────────────────────────────────────── */

.bn-fb-gallery {
  width: 100%;
}

.bn-fb-gallery__heading {
  font-family:    var(--font-primary);
  font-size:      clamp(24px, 3vw, 36px);
  font-weight:    var(--font-weight-extrabold);
  color:          var(--color-text-primary);
  line-height:    1.2;
  margin-bottom:  32px;
  text-align:     center;
}

.bn-fb-gallery__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   12px;
}

/* Item */
.bn-fb-gallery__item {
  position:    relative;
  aspect-ratio: 1 / 1;
  overflow:    hidden;
  border-radius: 8px;
  background:  #edf6ed;
  cursor:      pointer;
}

/* Overlay hover */
.bn-fb-gallery__item::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: rgba(158, 188, 88, 0.0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.bn-fb-gallery__item:hover::after {
  background: rgba(158, 188, 88, 0.3);
}

/* Image */
.bn-fb-gallery__img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.35s ease;
}

.bn-fb-gallery__item:hover .bn-fb-gallery__img {
  transform: scale(1.06);
}

/* Lien wrapper */
.bn-fb-gallery__link {
  display:         block;
  width:           100%;
  height:          100%;
  text-decoration: none;
  position:        relative;
}

/* Icône centrée au survol */
.bn-fb-gallery__overlay {
  position:    absolute;
  inset:       0;
  display:     flex;
  align-items: center;
  justify-content: center;
  opacity:     0;
  transition:  opacity 0.25s ease;
  z-index:     2;
  pointer-events: none;
}

.bn-fb-gallery__item:hover .bn-fb-gallery__overlay {
  opacity: 1;
}

.bn-fb-gallery__icon {
  font-family: var(--font-icons);
  font-size:   28px;
  color:       var(--color-white);
  filter:      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  line-height: 1;
}

/* Lien "voir l'album complet" */
.bn-fb-gallery__source {
  text-align:   center;
  margin-top:   20px;
  font-family:  var(--font-primary);
  font-size:    var(--text-sm);
  color:        var(--color-text-secondary);
}

.bn-fb-gallery__source a {
  color:           var(--color-vert);
  font-weight:     var(--font-weight-semibold);
  text-decoration: none;
  transition:      opacity 0.2s ease;
}

.bn-fb-gallery__source a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .bn-fb-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bn-fb-gallery__grid {
    grid-template-columns: 1fr;
  }

  .bn-fb-gallery__heading {
    font-size: 24px;
  }
}
