/* ── Local fonts (no external dependency) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/CormorantGaramond-Italic-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 600; font-display: swap;
  src: url(fonts/CormorantGaramond-Italic-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/CormorantGaramond-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/CormorantGaramond-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/Lora-Italic-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/Lora-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/Lora-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url(fonts/Outfit-300.ttf) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/Outfit-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/Outfit-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/Outfit-600.ttf) format('truetype');
}

:root {
  --bg:          #f9f7f4;
  --bg-alt:      #f1ede7;
  --surface:     #ffffff;
  --border:      #e0d9d0;
  --text:        #2a2218;
  --text-muted:  #8a7e6e;
  --accent:      #5c7a4e;
  --accent-soft: #eaf2e6;
  --accent2:     #7a4e2a;
  --radius:      6px;
  --max-w:       720px;
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Language toggle ── */
html[lang="fr"] .en { display: none; }
html[lang="en"] .fr { display: none; }

.lang-btn {
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--bg-alt); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 11px; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.lang-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,247,244,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo__monogram {
  width: 34px; height: 34px;
  background: var(--text); color: var(--bg);
  border-radius: 5px; display: flex;
  align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 600; font-style: italic;
  transition: background var(--transition);
}
.site-logo:hover .site-logo__monogram { background: var(--accent); }
.site-logo__text { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; color: var(--text); }
.site-logo__sub { font-size: 11px; font-weight: 300; color: var(--text-muted); display: block; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  padding: 5px 10px; border-radius: 20px;
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }

/* ── Layout ── */
.page-wrap { max-width: calc(var(--max-w) + 80px); margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.page-hero { padding: 52px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-hero__eyebrow {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.15; color: var(--text);
}
.page-hero__title em { font-style: italic; color: var(--accent); }
.page-hero__sub { margin-top: 14px; font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--text-muted); font-weight: 300; max-width: 500px; line-height: 1.6; }

/* ── Stats ── */
.stats-bar {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 18px 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 36px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--text); line-height: 1; }
.stat__label { font-family: 'Outfit', sans-serif; font-size: 10px; color: var(--text-muted); letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500; }

/* ── Post list ── */
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: grid; grid-template-columns: 76px 1fr;
  gap: 0 22px; padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; align-items: start;
}
.post-item:hover .post-item__title { color: var(--accent); }
.post-item__date-col { text-align: right; padding-top: 2px; }
.post-item__date { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; }
.post-item__cat { display: inline-block; font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.post-item__title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--text); transition: color var(--transition); margin-bottom: 5px; }
.post-item__excerpt { font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.6; }

/* ── Single post ── */
.post-header { padding: 44px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.post-header__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--text-muted); text-decoration: none; margin-bottom: 22px;
  transition: color var(--transition);
}
.post-header__back:hover { color: var(--accent); }
.post-header__back svg { width: 14px; height: 14px; stroke: currentColor; transition: transform var(--transition); }
.post-header__back:hover svg { transform: translateX(-3px); }
.post-header__cat { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-header__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 600; line-height: 1.2; color: var(--text); margin-bottom: 14px; }
.post-header__meta { font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.post-header__meta span::before { content: '·'; margin-right: 16px; opacity: 0.4; }
.post-header__meta span:first-child::before { display: none; }

/* ── Post body ── */
.post-body { max-width: var(--max-w); padding-bottom: 60px; }
.post-body p { margin-bottom: 1.35em; font-size: 16px; line-height: 1.8; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2, .post-body h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; margin: 2em 0 0.6em; color: var(--text); line-height: 1.25; }
.post-body h2 { font-size: 1.6rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body ul, .post-body ol { margin: 1em 0 1em 1.5em; line-height: 1.9; }
.post-body li { margin-bottom: 0.3em; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; margin: 1.4em 0; font-style: italic; color: var(--text-muted); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }

/* ── Images in posts ── */
.post-body img, .post-img {
  max-width: 100%; height: auto;
  border-radius: var(--radius); margin: 1.5em 0; display: block;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.post-body a[href$=".jpg"] img, .post-body a[href$=".png"] img { margin: 0; }
.post-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 1.5em 0; }
.post-img-grid img { margin: 0; width: 100%; height: 180px; object-fit: cover; }
.img-caption { font-family: 'Outfit', sans-serif; font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: -10px; margin-bottom: 1.4em; }

/* ── Post nav ── */
.post-nav { display: flex; gap: 14px; padding: 28px 0; border-top: 1px solid var(--border); max-width: var(--max-w); }
.post-nav__btn { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color var(--transition); }
.post-nav__btn:hover { border-color: var(--accent); }
.post-nav__btn--next { text-align: right; }
.post-nav__label { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.post-nav__title { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.3; font-family: 'Outfit', sans-serif; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0; }
.site-footer__inner { max-width: calc(var(--max-w) + 80px); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer__copy { font-family: 'Outfit', sans-serif; font-size: 12px; color: var(--text-muted); }
.site-footer__cc { font-family: 'Outfit', sans-serif; font-size: 11px; color: var(--text-muted); }
.site-footer__links { display: flex; gap: 18px; }
.site-footer__links a { font-family: 'Outfit', sans-serif; font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.site-footer__links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-item { grid-template-columns: 1fr; gap: 6px; }
  .post-item__date-col { text-align: left; display: flex; align-items: center; gap: 10px; }
  .post-item__cat { margin-top: 0; }
  .post-nav { flex-direction: column; }
  .stats-bar { gap: 18px; }
  .page-hero { padding: 32px 0 24px; }
}
@media (max-width: 400px) { .site-nav { display: none; } }
