/* ===== BASE ===== */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
}
.nav a {
  color: #444;
  text-decoration: none;
  margin-left: 16px;
  font-size: 14px;
}
.nav a:hover {
  color: #000;
}

/* ===== MASONRY (3/2/1 colonnes) ===== */
.masonry {
  column-count: 5;
  column-gap: 5px;
}
.tile {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 5px;
  break-inside: avoid;
}
.tile img {
  width: 100%;
  height: auto;
  border: none;
  transition: filter .18s ease, box-shadow .18s ease;
}

/* Responsive */
@media (max-width: 1024px) {
  .masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry { column-count: 1; }
}

/* ===== HOVER ===== */
.tile:hover img {
  filter: brightness(1.05) contrast(1.04);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 40px 16px 60px;
  color: #666;
  font-size: 14px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: none;
  justify-content: center;
  align-items: center;
}
.lightbox[aria-hidden="false"] {
  display: flex;
}
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}
.lb-btn {
  position: fixed;
  background: rgba(0,0,0,0.1);
  border: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
