/* ────────────────────────────────────────────────────
   SHARZAD KARILA — Galerie photographique
   Design : sobre, minimaliste, poétique
──────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --bg:         #ffffff;
  --fg:         #111111;
  --fg-muted:   #aaaaaa;
  --gap:        6px;
  --pad:        2.5rem;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.35s ease;
  --header-h:   70px;
  --filter-h:   46px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ── HEADER ─────────────────────────────────────── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid #ebebeb;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #666;
}

.site-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--fg);
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--fg); }

/* Séparateur langue */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-left: 0.5rem;
}
.lang-sep { opacity: 0.4; }

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color var(--transition);
  padding: 0;
}
.lang-btn.active { color: var(--fg); font-weight: 700; }
.lang-btn:hover  { color: var(--fg); }

/* ── FILTRES ─────────────────────────────────────── */

.filters {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: var(--filter-h);
  z-index: 190;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 var(--pad);
  border-bottom: 1px solid #ebebeb;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color var(--transition);
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
}
.filter-btn:hover { color: var(--fg); }
.filter-btn.active {
  color: var(--fg);
}
.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--fg);
}

/* ── GALERIE ─────────────────────────────────────── */

.gallery {
  margin-top: calc(var(--header-h) + var(--filter-h));
  padding: var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--transition);
}
.gallery-item:hover img { opacity: 0.82; }

/* Titre au survol */
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(to top, rgba(255,255,255,0.97) 60%, transparent);
  transform: translateY(101%);
  transition: transform var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-caption .cap-title {
  display: none;
}

.gallery-caption .cap-desc {
  display: block;
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 300;
  text-align: center;
  color: #555;
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* Animation d'entrée lors du filtre */
.gallery-item { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LIGHTBOX ────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbFadeIn 0.3s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox[hidden] { display: none; }

.lb-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.5rem;
  max-width: 92vw;
  max-height: 90vh;
}

#lb-img {
  max-height: 85vh;
  max-width: 65vw;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.lb-caption {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

#lb-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

#lb-series {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: -0.6rem;
}

#lb-desc {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  line-height: 1.8;
  border-left: 1px solid rgba(255,255,255,0.4);
  padding-left: 1rem;
  margin-top: 0.8rem;
}

/* Infos vente */
.lb-edition {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.lb-edition p {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Contrôles lightbox */
.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  font-weight: 300;
}
.lb-close:hover { color: #fff; }

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 2.5rem;
  font-weight: 100;
  cursor: pointer;
  transition: color var(--transition);
  padding: 1.5rem 1.2rem;
  line-height: 1;
  font-family: var(--serif);
}
.lb-prev:hover,
.lb-next:hover { color: rgba(255,255,255,0.9); }
.lb-prev { left: 0; }
.lb-next { right: 0; }

/* Counter */
.lb-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
}


/* Mention vendue sans cadre */
.lb-sans-cadre {
  margin-top: 1.2rem;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-style: italic;
}

/* Bouton acheter */
.lb-buy-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-align: center;
}
.lb-buy-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}
/* ── PAGE À PROPOS ───────────────────────────────── */

.about-wrapper {
  margin-top: calc(var(--header-h) + 1px);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem var(--pad) 6rem;
}

.about-content {
  max-width: 620px;
  width: 100%;
}

.about-content h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  color: var(--fg);
}

.about-text p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 2;
  font-weight: 300;
  color: #444;
  margin-bottom: 1.6rem;
}

.about-contact {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #ebebeb;
}

.about-contact a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity var(--transition);
}
.about-contact a:hover { opacity: 0.5; }

/* ── FOOTER ─────────────────────────────────────── */

footer {
  padding: 2.5rem var(--pad);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-top: 1px solid #ebebeb;
}

/* ── PAGE D'ACCUEIL APPOSÉ ───────────────────────────── */

.artists-grid {
  margin-top: calc(var(--header-h) + 4rem);
  padding: var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.artist-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.artist-cover {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.artist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--transition);
}

.artist-card:hover .artist-cover img { opacity: 0.82; }

.artist-info {
  padding: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.artist-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.artist-desc {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── RESPONSIVE ───────────────────────────