/* ==========================================================================
   GéoPhoto — Jean-Paul Le Bacon
   Design « galerie » : blanc pur, typographie fine, aucune fioriture.
   La photographie est seule en scène.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-soft: #3d3d3d;
  --muted: #9a9691;
  --line: #ececea;
  --accent: #9c8563;
  --serif: "Cormorant Garamond", "Cormorant", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

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

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 18px; }

.brand .logo {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand .logo em { font-style: italic; font-weight: 400; }

.brand .byline {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; gap: 42px; }

.site-nav a {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-color: var(--ink); }

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 140px;
  padding: 60px 40px 70px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer .sig {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.site-footer a.admin-link { opacity: 0.4; font-size: 11px; }
.site-footer a.admin-link:hover { opacity: 1; }

/* ---------- Hero (accueil) ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 130px 40px 100px;
  text-align: center;
}

.hero .kicker {
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.015em;
}

.hero h1 em { font-style: italic; font-weight: 300; }

.hero .lede {
  max-width: 480px;
  margin: 36px auto 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
}

.hero .rule {
  width: 1px; height: 64px;
  background: var(--ink);
  opacity: 0.25;
  margin: 54px auto 0;
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.section-head .more {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.section-head .more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Image du mois (accueil) ---------- */

.idm {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 60px;
}

@media (max-width: 880px) { .idm { grid-template-columns: 1fr; gap: 34px; } }

.idm-photo { margin: 0; cursor: zoom-in; overflow: hidden; }
.idm-photo img { width: 100%; transition: transform 1.6s ease, opacity 0.4s; }
.idm-photo:hover img { transform: scale(1.015); }

.idm-text .kicker {
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.idm-text h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 24px;
}

.idm-body {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-soft);
}

.idm-body p + p { margin-top: 1em; }

.idm-body .idm-lieu {
  margin-top: 26px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Cartes d'exposition ---------- */

.expo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 72px 48px;
}

.expo-card { display: block; }

.expo-card .frame { background: none; padding: 0; border: none; box-shadow: none; }

.expo-card .frame .ph {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f6f6f5;
}

.expo-card .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s ease, opacity 0.5s ease;
}

.expo-card:hover .frame img { transform: scale(1.03); opacity: 0.92; }

.expo-card .meta { padding: 24px 0 0; text-align: left; }

.expo-card .meta .count {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.expo-card .meta h3 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.15;
  transition: opacity 0.3s;
}

.expo-card:hover .meta h3 { opacity: 0.65; }

.expo-card .meta .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Page exposition ---------- */

.expo-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 110px 40px 30px;
  text-align: center;
}

.expo-header .kicker {
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.expo-header h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 300;
  line-height: 1.05;
}

.expo-header .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--muted);
  margin-top: 16px;
}

.expo-intro {
  max-width: 600px;
  margin: 48px auto 0;
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-soft);
  text-align: left;
}

.expo-intro p + p { margin-top: 1.1em; }

.expo-intro::first-letter,
.expo-intro p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--ink);
}

/* ---------- Filtres par thème (galerie) ---------- */

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin-top: 46px;
}

.chip {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0 6px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.chip:hover { color: var(--ink); }

.chip.active { color: var(--ink); border-color: var(--ink); }

/* ---------- Galerie de photos (masonry) ---------- */

.masonry {
  column-count: 3;
  column-gap: 48px;
  padding-top: 40px;
}

@media (max-width: 1000px) { .masonry { column-count: 2; column-gap: 32px; } }
@media (max-width: 620px) { .masonry { column-count: 1; } }

.photo-item {
  break-inside: avoid;
  margin-bottom: 64px;
  cursor: zoom-in;
}

.photo-item .mat {
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

.photo-item .mat > img { width: 100%; transition: opacity 0.4s ease; }

.photo-item:hover .mat > img { opacity: 0.9; }

.photo-item .cap {
  padding: 16px 0 0;
  text-align: left;
}

.photo-item .cap .t {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.photo-item .cap .l {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 80px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 250px);
  box-shadow: 0 30px 80px rgba(20, 20, 20, 0.18);
}

.lightbox .lb-cap {
  text-align: center;
  margin-top: 30px;
}

.lightbox .lb-cap .t {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.lightbox .lb-cap .l {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 10.5px;
  margin-top: 7px;
  color: var(--muted);
}

.lightbox .lb-cap .d {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #b5b1ab;
  font-size: 32px;
  cursor: pointer;
  padding: 18px;
  line-height: 1;
  transition: color 0.25s;
  font-family: var(--sans);
  font-weight: 200;
}

.lightbox button:hover { color: var(--ink); }

.lightbox .lb-close { top: 20px; right: 26px; font-size: 26px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox { padding: 24px 14px; }
  .lightbox .lb-prev, .lightbox .lb-next { display: none; }
}

/* ---------- Page À propos ---------- */

.about {
  max-width: 660px;
  margin: 0 auto;
  padding: 110px 40px 20px;
}

.about h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 300;
  text-align: center;
}

.about .rule {
  width: 1px; height: 56px;
  background: var(--ink);
  opacity: 0.25;
  margin: 40px auto 56px;
}

.about .body {
  font-size: 16.5px;
  line-height: 2.1;
  color: var(--ink-soft);
}

.about .body p + p { margin-top: 1.3em; }

.about .body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--ink);
}

/* ---------- États vides / chargement ---------- */

.empty-state {
  text-align: center;
  padding: 100px 40px;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
}

.loading {
  text-align: center;
  padding: 80px;
  color: var(--muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 10.5px;
}

/* ---------- Bandeau démo ---------- */

.demo-banner {
  background: #faf9f7;
  border-bottom: 1px solid var(--line);
  color: #8a857c;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 16px;
}

.demo-banner strong { color: #6d5f49; font-weight: 400; }

/* ---------- Divers ---------- */

.back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.back-link:hover { color: var(--ink); border-color: var(--ink); }

::selection { background: #eee8dd; }

/* ==========================================================================
   Thème « Salle obscure » — fond sombre, les photos captent la lumière.
   ========================================================================== */

:root {
  --bg: #121110;
  --ink: #f0ece4;
  --ink-soft: #c9c3b8;
  --muted: #7d7870;
  --line: #262422;
  --accent: #c8a875;
}

body { background: var(--bg); }

.site-header {
  background: rgba(18, 17, 16, 0.92);
  border-bottom: 1px solid var(--line);
}

.demo-banner {
  background: #1b1a18;
  border-bottom: 1px solid var(--line);
  color: #8d8880;
}
.demo-banner strong { color: var(--accent); }

.hero .rule, .about .rule { background: var(--accent); opacity: 0.6; }

.expo-card .frame .ph { background: #1d1c1a; }
.expo-card:hover .frame img { opacity: 1; }
.photo-item:hover .mat > img { opacity: 0.85; }

.lightbox { background: rgba(10, 9, 8, 0.97); }
.lightbox img { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); }
.lightbox .lb-cap .t { color: #f0ece4; }
.lightbox button { color: #6d6862; }
.lightbox button:hover { color: #f0ece4; }

.site-footer { border-top: 1px solid var(--line); }

::selection { background: #3a3325; }
