:root {
  --bg-color: #faf8f5;
  --bg-alt: #f2eee7;
  --surface-color: #ffffff;
  --text-main: #1f1e1c;
  --text-muted: #5f5b54;
  --accent: #8c5a2b;
  --border-subtle: rgba(31, 30, 28, 0.1);
  --gap: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: 1.25rem;
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text-main);
}

/* Hero / Accroche */
.hero {
  padding-block: 3.5rem 2.5rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-quote {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 55ch;
  margin: 0 auto 2.25rem;
}

.hero-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.hero-showcase {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(31, 30, 28, 0.12);
}

.hero-showcase img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

/* Sections génériques */
.section {
  padding-block: 4.5rem;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Filtres et Galerie */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.filter-btn.is-active {
  background-color: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

.gallery-grid {
  columns: 3 300px;
  column-gap: var(--gap);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
}

.gallery-item.is-hidden {
  display: none;
}

.photo-trigger {
  display: block;
  width: 100%;
  background: var(--bg-alt);
  border: none;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.photo-trigger:hover img,
.photo-trigger:focus-visible img {
  transform: scale(1.02);
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cartes Livres photo */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.book-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-cover {
  aspect-ratio: 4 / 3;
  background-color: #e6e0d6;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.book-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.book-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.book-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.book-link:hover {
  text-decoration: underline;
}

/* À propos */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-intro h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.about-intro .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Contact & Footer */
.contact-inner {
  text-align: center;
  max-width: 58ch;
}

.contact-inner h2 {
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.contact-inner p {
  color: var(--text-muted);
}

.contact-mail {
  margin-block: 1.25rem;
}

.contact-mail a {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background-color: var(--text-main);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.contact-mail a:hover {
  opacity: 0.88;
}

.contact-location {
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Visionneuse (Lightbox) */
.lightbox {
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  padding: 0;
  color: #f5f3ef;
}

.lightbox::backdrop {
  background: rgba(20, 19, 17, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-figure figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #d6d1c7;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.5rem;
}

.lightbox-nav.prev {
  left: 1.25rem;
}

.lightbox-nav.next {
  right: 1.25rem;
}
/* Cadre responsive pour intégrer une page HTML externe/locale */
.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10; /* Ajustez selon le format de votre page flamants/index.html (ex. 4 / 3) */
  min-height: 360px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-color);
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}