/* Variables & Reset */
:root {
  --bg-color: #fcfcfa;       /* Blanc cassé papier d'art */
  --text-color: #181818;     /* Noir encre */
  --muted-color: #6e6e6a;
  --border-color: #e4e4e0;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.55;
}

/* En-tête fixe minimaliste */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(252, 252, 250, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.4rem 3vw;
  border-bottom: 1px solid var(--border-color);
}

.site-header h1 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

/* Conteneur principal */
main {
  padding: 2.2rem 3vw 3rem;
  max-width: 1680px;
  margin: 0 auto;
}

/* Barre de filtres discrets */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--muted-color);
  cursor: pointer;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-color);
}

.filter-btn.active {
  color: var(--text-color);
  border-bottom-color: var(--text-color);
}

/* Grille de galerie (Masonry fluide via colonnes CSS) */
.gallery-grid {
  column-count: 4;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: zoom-in;
  overflow: hidden;
  background-color: #f2f2ee;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.018);
}

/* Sections À propos & Expositions */
.info-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.bio p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  max-width: 48ch;
}

.exhibitions ul {
  list-style: none;
}

.exhibitions li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.exhibitions li:last-child {
  border-bottom: none;
}

/* Contact */
.contact-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.contact-section p {
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Pied de page */
.site-footer {
  padding: 3rem 3vw 2rem;
  font-size: 0.8rem;
  color: var(--muted-color);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(252, 252, 250, 0.98);
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 82vw;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

#lightbox-caption {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted-color);
  text-align: center;
}

#lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-color);
}

.lightbox-nav {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.lightbox-nav:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1150px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 1rem;
  }
  .gallery-item {
    margin-bottom: 1rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lightbox {
    padding: 1rem;
  }
  .lightbox-nav {
    padding: 0.5rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }
}