/* ===== DISONS DINETTE — Page "Galerie" : portfolio photo animé ===== */
/* Vient compléter assets/css/legal.css (palette, reset, nav, footer) */

/* ===== HERO ===== */
.gal-hero {
  padding: 70px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--creme-rose), var(--creme));
  position: relative; overflow: hidden;
}
.gal-hero .section-tag {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
}
.gal-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 14px; }
.gal-hero .gal-lede { max-width: 560px; margin: 0 auto; color: rgba(26,26,26,.65); font-size: 1rem; line-height: 1.6; }

/* ===== FILTRES ===== */
.gal-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 28px 24px; max-width: 980px; margin: 0 auto;
}
.gal-filter-btn {
  font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 500;
  padding: 9px 20px; border-radius: 30px; border: 1.5px solid rgba(30,74,46,.2);
  background: #fff; color: var(--vert-fonce); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.gal-filter-btn:hover { transform: translateY(-1px); border-color: var(--rose); }
.gal-filter-btn.active { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }

/* ===== MASONRY (colonnes CSS) ===== */
.gal-grid {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px 70px;
  column-count: 4; column-gap: 22px;
}
.gal-item {
  break-inside: avoid; margin-bottom: 22px; position: relative;
  border-radius: 16px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .6s ease, transform .6s ease;
}
.gal-item.visible { opacity: 1; transform: translateY(0) scale(1); }
.gal-item.gal-hidden { display: none; }

.gal-item img {
  width: 100%; display: block; transition: transform .6s ease;
}
.gal-item:hover img { transform: scale(1.06); }

.gal-item-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 30px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(20,40,25,.85));
  color: #fff; opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gal-item:hover .gal-item-caption { opacity: 1; transform: translateY(0); }
.gal-item-caption .gal-tag {
  display: inline-block; font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--or); margin-bottom: 6px;
}
.gal-item-caption p { font-size: .82rem; line-height: 1.4; }

.gal-zoom-icon {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--vert-fonce);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s;
}
.gal-item:hover .gal-zoom-icon { opacity: 1; transform: scale(1); }
.gal-zoom-icon svg { width: 15px; height: 15px; }

/* ===== LIGHTBOX ===== */
.gal-lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,30,22,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 60px 24px;
}
.gal-lightbox.open { opacity: 1; visibility: visible; }
.gal-lightbox-figure {
  max-width: 920px; max-height: 86vh; text-align: center;
  transform: scale(.94); transition: transform .3s ease;
}
.gal-lightbox.open .gal-lightbox-figure { transform: scale(1); }
.gal-lightbox-figure img {
  max-width: 100%; max-height: 72vh; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); display: block; margin: 0 auto;
}
.gal-lightbox-caption { color: #fff; margin-top: 16px; }
.gal-lightbox-caption .gal-tag {
  display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--or); margin-bottom: 6px;
}
.gal-lightbox-caption p { font-size: .92rem; color: rgba(255,255,255,.85); }

.gal-lightbox-close, .gal-lightbox-prev, .gal-lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); border: none; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .2s, transform .15s;
}
.gal-lightbox-close:hover, .gal-lightbox-prev:hover, .gal-lightbox-next:hover { background: rgba(255,255,255,.22); }
.gal-lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; }
.gal-lightbox-close svg { width: 18px; height: 18px; }
.gal-lightbox-prev, .gal-lightbox-next { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.gal-lightbox-prev:hover, .gal-lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.gal-lightbox-prev { left: 16px; }
.gal-lightbox-next { right: 16px; }
.gal-lightbox-prev svg, .gal-lightbox-next svg { width: 20px; height: 20px; }

/* ===== CTA bas de page ===== */
.gal-cta {
  text-align: center; padding: 70px 24px 90px;
  background: var(--creme-rose);
}
.gal-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.gal-cta p { max-width: 480px; margin: 0 auto 26px; color: rgba(26,26,26,.65); }
.gal-btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.gal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px; font-size: .92rem; font-weight: 500;
  text-decoration: none; transition: transform .15s, background .2s, color .2s;
}
.gal-btn--primary { background: var(--rose); color: #fff; }
.gal-btn--primary:hover { transform: translateY(-2px); background: var(--vert-fonce); }
.gal-btn--outline { border: 1.5px solid var(--vert-fonce); color: var(--vert-fonce); }
.gal-btn--outline:hover { transform: translateY(-2px); background: var(--vert-fonce); color: #fff; }

@media (max-width: 1080px) { .gal-grid { column-count: 3; } }
@media (max-width: 760px) {
  .gal-grid { column-count: 2; column-gap: 14px; padding: 10px 16px 56px; }
  .gal-item { margin-bottom: 14px; border-radius: 12px; }
  .gal-lightbox-prev, .gal-lightbox-next { width: 40px; height: 40px; }
  .gal-lightbox-close { width: 38px; height: 38px; top: 14px; right: 14px; }
}
@media (max-width: 480px) {
  .gal-grid { column-count: 1; }
}
