/* ============================================================
   galerie.css — Styles spécifiques à la page galerie
   ============================================================ */

/* ─── EN-TÊTE PAGE GALERIE ─── */
.gallery-header {
  padding: 60px 0 40px;
  border-bottom: var(--border-thick);
  background: var(--cream);
}

.gallery-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.gallery-page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
}

.gallery-header-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.gallery-count-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--dark);
  line-height: 1;
}

.gallery-count-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── FILTRES ─── */
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  border: var(--border-mid);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  background: var(--cream-dark);
}

.filter-btn.active {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

/* ─── GRILLE GALERIE — MASONRY JS (ordre gauche→droite, haut→bas) ─── */
.gallery-section {
  padding: 60px 0 100px;
}

/* Conteneur en position relative pour le masonry JS */
.gallery-grid-full {
  position: relative;
  width: 100%;
  /* Caché jusqu'au premier layout masonry pour éviter le flash */
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-grid-full.masonry-ready {
  opacity: 1;
}

/* Chaque carte positionnée par JS */
.artwork-card {
  position: absolute;
  display: block;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease;
}

/* Image : hauteur naturelle */
.gallery-grid-full .artwork-card-img {
  aspect-ratio: unset;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Carte cachée lors du filtrage */
.artwork-card.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Message vide */
.gallery-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 1rem;
}
