/* ===================================================
   GALLERY PAGE — Styles dédiés
=================================================== */

.gallery-page .nav {
  position: sticky;
  top: 0;
}


/* --- Header --- */
.gallery-header {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}
.gallery-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  margin: 8px 0 16px;
}
.gallery-header-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* --- Filtres --- */
.gallery-filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.filters-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-row::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --- Grille principale --- */
.gallery-main { padding: 48px 0 80px; }

.gallery-full-grid {
  columns: 3 320px;
  gap: 16px;
}

.gfull-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.gfull-item:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}

.gfull-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.gfull-item:hover img { transform: scale(1.03); }

.gfull-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.gfull-item:hover .gfull-caption { opacity: 1; transform: translateY(0); }

.gfull-cat {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 3px;
}
.gfull-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
}

/* Masquer les items filtrés */
.gfull-item.hidden {
  display: none;
}

/* --- CTA section --- */
.gallery-cta-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.gallery-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.gallery-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}
.gallery-cta-inner p {
  max-width: 480px;
}

/* =====================================================
   LIGHTBOX
===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
}
.lightbox-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 0 8px;
}
.lightbox-cat {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .gallery-full-grid { columns: 2 240px; }
  .gallery-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .gallery-full-grid { columns: 1; }
  .gallery-header { padding: 60px 0 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
