/* ================================================
   JCOV VIGNEUX — galerie.css
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
  --dark:      #1f2f25;
  --dark-soft: #323F35;
  --green:     #87AA91;
  --green-light:#a8c5b0;
  --white:     #ffffff;
  --off-white: #f5f7f5;
  --muted:     #6b7e71;
  --border:    #d8e5da;
  --radius:    14px;
  --shadow:    0 6px 24px rgba(31,47,37,.1);
  --container: 1200px;
  --gap:       22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--dark);
  background: var(--off-white);
  overflow-x: hidden;
}

/* === NAVBAR === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(135,170,145,.25);
  border: 1px solid rgba(135,170,145,.4);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--green-light);
}
.brand__text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.menu { display: flex; gap: 8px; }
.menu a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: white;
  background: rgba(255,255,255,.1);
}

/* Mobile galerie — logo toujours visible */
@media (max-width: 768px) {
  .nav__inner { padding: 0 16px; }
  .brand__text { font-size: 13px; }
  .menu { gap: 4px; }
  .menu a { padding: 8px 10px; font-size: 12px; }
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: white;
  background: rgba(255,255,255,.1);
}

/* === HERO === */
.hero {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center left;
  color: white;
  overflow: hidden;
  background: var(--dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('../images/background.jpg') center/cover no-repeat;
  filter: brightness(.55);
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(31,47,37,.85) 0%,
    rgba(31,47,37,.4) 60%,
    transparent 100%
  );
}
.hero__content {
  position: relative; z-index: 1;
  max-width: var(--container);
  width: 100%;
  padding: 0 32px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--green-light);
}
.hero h1 {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -2px;
  text-transform: uppercase;
}

/* === CONTAINER GALERIE === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 24px 80px;
}

/* Filtres */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
}
.filter-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

/* === MASONRY === */
.masonry {
  column-count: 1;
  column-gap: var(--gap);
}
@media (min-width: 640px)  { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }

.tile {
  break-inside: avoid;
  margin: 0 0 var(--gap);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: white;
  cursor: pointer;
  position: relative;
}
.tile img {
  width: 100%; height: auto;
  display: block;
  transition: transform .4s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,47,37,.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s;
}
.tile:hover .tile-overlay { opacity: 1; }
.tile-overlay svg {
  width: 36px; height: 36px;
  stroke: white; fill: none; stroke-width: 1.5;
}

/* === PAGINATION === */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}
.pager button {
  font-family: 'Montserrat', sans-serif;
  border: 1.5px solid var(--border);
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  color: var(--dark);
}
.pager button:hover:not([disabled]) {
  border-color: var(--dark);
  background: var(--off-white);
}
.pager button[disabled] { opacity: .4; cursor: not-allowed; }
.pager .is-active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-close svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-prev svg, .lb-next svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2.5; }

/* === FOOTER === */
.footer {
  background: #111814;
  color: #f1f1f1;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-title {
  font-weight: 800; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--green-light); margin-bottom: 16px;
}
.partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partner {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; color: #eee;
}
.list { margin: 0; padding: 0; list-style: none; line-height: 2; font-size: 14px; color: rgba(255,255,255,.7); }
.contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.7); }
.contact-item svg { min-width: 18px; margin-top: 4px; opacity: .85; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 14px 24px; text-align: center; color: #888; font-size: 13px;
}
a.link { color: var(--green-light); text-decoration: none; }
a.link:hover { text-decoration: underline; }
