/* ===== GALERIE (comme ton design vert) ===== */
.gallery{
  background: var(--primary);
  padding: 60px 0 70px;
  margin-bottom: 0;
  border-bottom: 0;
  position: relative;
  z-index: 1;
}

.gallery__container{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.gallery__title{
  color: #f3e7d6;
  font-family: serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 0 0 28px;
}

/* Grille simple (2 colonnes comme capture) */
.gallery__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.gallery__item{
  margin: 0;
  overflow: hidden;
  background: rgba(0,0,0,0.08);
  cursor: pointer;
  height: 420px;              /* ajuste selon ton rendu */
}

.gallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery__item:hover img{
  transform: scale(1.03);
}

/* ===== Effet apparition (rebond léger) ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity .45s ease,
    transform .55s cubic-bezier(.2, .9, .2, 1.25);
  will-change: transform, opacity;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== MODAL ===== */
.gallery-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.gallery-modal.is-open{
  display: block;
}

.gallery-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.gallery-modal__content{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: pointer;
}

.gallery-modal__img{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.15);
}

/* Croix */
.gallery-modal__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  transition: background-color .2s ease, transform .2s ease;
}
.gallery-modal__close:hover{
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* Navigation */
.gallery-modal__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color .2s ease, transform .2s ease;
}

.gallery-modal__nav:hover{
  background: rgba(255,255,255,0.24);
  transform: translateY(-50%) scale(1.05);
}

.gallery-modal__prev{ left: 18px; }
.gallery-modal__next{ right: 18px; }

/* Masquer la nav quand la galerie est ouverte */
body.gallery-open .site-nav{
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px){
  .gallery__grid{
    grid-template-columns: 1fr;
  }
  .gallery__item{
    height: 320px;
  }
}
