:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --ink: #23302c;
  --muted: #66716d;
  --line: #e7e0d4;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ec;
  --warm: #e8835a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 48, 44, .06), 0 6px 20px rgba(35, 48, 44, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
main > section, main > article { padding-top: 40px; padding-bottom: 24px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.section-title { margin-top: 1.6em; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-mark { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
}

/* Accueil */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 48px 0 32px !important; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--warm); margin: 0 0 .5em; }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; } .hero-img { max-height: 320px; width: 100%; } }

/* Boutons, puces */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.btn:hover { filter: brightness(1.1); }
.btn-wrap { text-align: center; }
.chip { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.chips .chip { padding: 6px 14px; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); }
.chips .chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.link { font-weight: 700; text-decoration: none; }

/* Cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; background: var(--accent-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { height: 100%; display: grid; place-items: center; font: 700 3rem "Fraunces", serif; color: var(--accent); opacity: .5; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .chip { align-self: flex-start; }
.card-body h3 { margin: 4px 0 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }

/* Article */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.meta { color: var(--muted); margin-bottom: 28px; }
.prose h2 { margin-top: 1.6em; }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: var(--radius); margin: 0 auto; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.prose blockquote { margin: 20px 0; padding: 16px 20px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose li { margin-bottom: 6px; }
.embed { margin: 24px 0; }
.embed iframe { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: block; }
.embed-full { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .9rem; }
.related { border-top: 1px solid var(--line); margin-top: 24px; }
.empty { padding: 32px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Pied de page */
.site-footer { margin-top: 48px; padding: 32px 0; border-top: 1px solid var(--line); background: var(--surface); font-size: .95rem; }
.site-footer p { margin: 4px 0; }
