/* =========================
   GALERIE – MAMMA MIA
   ========================= */

:root{
  --gal-bg: #fff;
  --gal-ink: #121212;
  --gal-muted: rgba(0,0,0,.65);
  --gal-soft: rgba(0,0,0,.08);
  --gal-soft2: rgba(0,0,0,.12);
  --gal-radius: 18px;
  --gal-max: 1100px;
}

/* Si ton styles.css a déjà user-select:none global, ok.
   Sinon, au moins sur cette page : */
.gal-hero, .gal-section, .gal-intro {
  -webkit-tap-highlight-color: transparent;
}

.no-scroll { overflow: hidden; }

.gal-container{
  max-width: var(--gal-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HERO */
.gal-hero{
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.65)),
   url(../library/HEADER_MAMMA.webp) center/cover no-repeat;
}

.gal-overlay{
  text-align: center;
  padding: 3.5rem 1.25rem;
  width: min(900px, 100%);
}

.gal-title{
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: .08em;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 .6rem;
  color: #fff;
  text-transform: uppercase;
}

.gal-subtitle{
  margin: 0 auto 1.4rem;
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  max-width: 62ch;
}

.gal-cta{
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Boutons */
.btn-gal{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
  user-select: none;
}

.btn-gal.primary{
  background: #111;
  color: #fff;
  border-color: rgba(255,255,255,.15);
}

.btn-gal.ghost{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}

.btn-gal.dark{
  background: #0a2240;
  color: #fff;
  border-color: rgba(255,255,255,.1);
}

.btn-gal:hover{
  transform: translateY(-2px);
  opacity: .95;
}

.btn-gal:active{
  transform: translateY(0);
}

/* INTRO */
.gal-intro{
  background: #fff;
  padding: 3.2rem 0 1.4rem;
}

.gal-intro h2{
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: .06em;
  font-size: 2.1rem;
  margin: 0 0 .7rem;
  color: var(--gal-ink);
}

.gal-intro p{
  margin: 0;
  color: var(--gal-muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

/* CHIPS (filtres) */
.gal-chips{
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.chip{
  border: 1px solid var(--gal-soft2);
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: .5rem .9rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.chip:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.03);
}

.chip.is-active{
  background: #111;
  color: #fff;
  border-color: #111;
}

/* SECTION GALLERY */
.gal-section{
  padding: 1.6rem 0 4rem;
  background: #fff;
}

.gal-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gal-head h2{
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: .06em;
  font-size: 2.2rem;
  margin: 0;
}

.gal-note{
  margin: 0;
  color: rgba(0,0,0,.55);
  font-size: .95rem;
}

/* GRID responsive */
.gal-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px){
  .gal-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px){
  .gal-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gal-item{
  position: relative;
  display: block;
  border-radius: var(--gal-radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transform: translateZ(0);
}

.gal-item img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

@media (min-width: 720px){
  .gal-item img{ height: 240px; }
}

.gal-item:hover img{
  transform: scale(1.06);
}

.gal-badge{
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255,255,255,.9);
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .82rem;
  font-weight: 700;
}

/* CTA bas */
.gal-bottom-cta{
  margin-top: 2.2rem;
}

.gal-cta-card{
  border-radius: 22px;
  border: 1px solid var(--gal-soft2);
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.00));
  padding: 1.5rem 1.25rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.gal-cta-card h3{
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: .06em;
  margin: 0 0 .4rem;
  font-size: 1.8rem;
  color: #111;
}

.gal-cta-card p{
  margin: 0 0 1.1rem;
  color: var(--gal-muted);
  line-height: 1.8;
}

.gal-cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

/* LIGHTBOX */
.gal-lightbox{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9999;
  padding: 1rem;
}

.gal-lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.gal-full{
  width: min(1100px, 96vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  background: rgba(255,255,255,.06);
}

.gal-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.gal-close:hover{
  transform: translateY(-1px);
  opacity: .95;
}
