/* ===== 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, écart 5px) ===== */
.masonry {
  column-count: 3;
  column-gap: 5px;
}
.tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 5px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  text-decoration: none;
  color: inherit;
}
.tile img {
  width: 100%;
  height: auto;
  border: none;
  opacity: 0;
  transition:
    opacity .35s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

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

/* ===== FADE-IN DES VIGNETTES ===== */
.tile img.thumb-visible {
  opacity: 1;
}

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

/* ===== 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: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity .3s ease;
  touch-action: pan-y; /* permet le swipe horizontal naturel */
}
.lightbox-img.visible {
  opacity: 1;
}

/* ===== BOUTONS LIGHTBOX ===== */
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.06);
  color: #111;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
}
.lb-btn:hover {
  background: rgba(0,0,0,0.12);
}
.lb-close {
  top: 24px;
  right: 24px;
  transform: none;
  font-size: 32px;
  width: 44px;
  height: 44px;
  line-height: 44px;
}
.lb-prev {
  left: 24px;
}
.lb-next {
  right: 24px;
}
```*
