/* Styles propres à la page galerie_photos.php (déplacés depuis le fichier PHP, sans modification). */
.galerie-hero {
  position: relative;
  overflow: hidden;
  height: 400px;            /* <-- tu forces directement la hauteur */
  display: flex;            /* pour centrer proprement */
  align-items: center;
  justify-content: center;
  margin-top: 2000;            /* au cas où */
}

.galerie-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px 400px at 10% -10%, rgba(255,64,129,.25), transparent 60%),
    linear-gradient(135deg, #ff4081 0%, #2b0a1c 35%, #121212 65%, #000 100%);
  filter: saturate(105%);
  opacity: .95;
}

.galerie-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.galerie-hero__icon {
  font-size: 28px;    /* réduit pour ne pas casser la hauteur */
  margin-bottom: 2px;
}

.galerie-hero h1 {
  font-size:clamp(22px, 3vw, 32px); /* mini mais pro */
}

.galerie-hero__tagline {
  font-size: .8rem;
  margin-top: 2px;
  opacity: 0.75;
}
/* --- SECTION GALERIE --- */
.photo-gallery {
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 20px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-size: 2.4rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff4d8d, #7c1f3e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-header p {
  color: #c7c9d4;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* --- Filtres --- */
.gallery-filters {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  border: none;
  background: rgba(255,255,255,0.05);
  color: #ccc;
  padding: 8px 20px;
  margin: 5px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #ff4d8d, #7c1f3e);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255,77,141,0.3);
}

/* --- Grille Masonry --- */
.gallery-grid {
  columns: 3 300px;
  column-gap: 18px;
}

.gallery-item {
  margin-bottom: 18px;
  break-inside: avoid;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Le conteneur entier est cliquable */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;                   /* ✅ feedback UX */
  transform: scale(1);
  transition: transform 0.4s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}



.gallery-card:hover {
  transform: scale(1.04);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s ease;
  filter: brightness(0.85);
}

.gallery-card:hover img {
  filter: brightness(0.6) blur(1px);
  transform: scale(1.1);
}

.overlay {
  pointer-events: none;              /* ✅ clé du problème */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 65%, rgba(0,0,0,0.8));
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 18px;
}



.gallery-card:hover .overlay {
  opacity: 1;
}

.overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

/* Assure que la lightbox passe au-dessus de tout */
.lightbox {
  position: fixed !important;
  inset: 0;
  z-index: 999999 !important;        /* ✅ par-dessus le SPA et le player */
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  animation: fadeIn 0.4s ease;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  animation: zoomIn 0.5s ease forwards;
  position: relative;
  z-index: 10;
}

.lightbox-caption {
  color: #ddd;
  font-size: 1rem;
  margin-top: 18px;
  text-align: center;
  z-index: 10;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 11;
}

.lightbox .close:hover {
  color: #ff4d8d;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .gallery-grid { columns: 2 200px; }
}
@media (max-width: 600px) {
  .gallery-grid { columns: 1; }
  .filter-btn { padding: 6px 14px; font-size: 0.9rem; }
}








.gallery-item {
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.96);
}
.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}
.filter-btn.active {
  background-color: var(--primary-color, #e53935);
  color: #fff;
}




.gallery-warning {
  background: #fff8e1;
  border-top: 1px solid #ffe082;
  border-bottom: 1px solid #ffe082;
  padding: 0.8rem 0;
  font-family: 'Poppins', sans-serif;
  color: #5d4037;
  text-align: center;
  font-size: 0.95rem;
  animation: fadeIn 0.8s ease;
}

.gallery-warning .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-warning i {
  color: #ffb300;
  font-size: 1.4rem;
}

.reload-btn {
  background: #ffb300;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

.reload-btn:hover {
  background: #ffa000;
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Version mobile : suppression du bandeau de dédicaces === */
@media (max-width: 768px) {
  .dedicace-bar {
    display: none !important;
  }
}
