/* ============================================================
   Lettre pour Résilier — Design éditorial
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --bg: #faf6ee;
  --bg-card: #ffffff;
  --bg-soft: #f1ebe0;
  --ink: #14201f;
  --ink-soft: #4a5b59;
  --ink-mute: #78867f;
  --line: #e3d9c6;
  --line-soft: #ede5d4;

  --brand: #14403c;
  --brand-deep: #0d2c2a;
  --brand-soft: #d8e4dc;
  --accent: #d4530b;
  --accent-soft: #fbe6d2;
  --highlight: #f4d35e;

  /* Cat colors */
  --c-banque: #1d3557;
  --c-assurance: #2d6a4f;
  --c-internet: #6a4c93;
  --c-presse: #9d2933;
  --c-rencontre: #c2185b;
  --c-abonnement: #b6651b;
  --c-television: #3f3d56;
  --c-modele: #14403c;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 31, 0.04);
  --shadow-md: 0 4px 18px -8px rgba(20, 32, 31, 0.18);
  --shadow-lg: 0 18px 48px -22px rgba(20, 32, 31, 0.22);

  --container: 1200px;
  --content-w: 720px;

  --t-fast: 160ms ease;
  --t-base: 240ms cubic-bezier(.2,.7,.3,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
.muted { color: var(--ink-mute); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ===========================
   Header
   =========================== */
.topbar {
  background: var(--brand-deep);
  color: #cfded8;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px;
}
.topbar a { color: #cfded8; }
.topbar a:hover { color: var(--highlight); }
.topbar-links { display: flex; gap: 20px; }

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250, 246, 238, 0.92);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  gap: 30px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  background: var(--brand);
  color: var(--highlight);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px;
  letter-spacing: -0.04em;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1;
}
.brand-name span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.search-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all var(--t-fast);
}
.search-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.menu-toggle { display: none; }

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  max-width: 16ch;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero-lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-search {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  max-width: 600px;
  box-shadow: var(--shadow-md);
}
.hero-search input {
  flex: 1;
  border: none; background: transparent;
  padding: 14px 22px;
  font: inherit; color: var(--ink);
  outline: none;
}
.hero-search button {
  background: var(--brand);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 0 28px;
  font-weight: 600;
  transition: background var(--t-fast);
}
.hero-search button:hover { background: var(--accent); }

.hero-stats {
  display: flex; gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats div { font-family: 'Fraunces', serif; }
.hero-stats strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero-stats span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 6px;
  display: block;
}

/* ===========================
   Categories ribbon
   =========================== */
.cat-ribbon {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 24px 0;
}
.cat-ribbon .container {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: center;
}
.cat-ribbon-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 8px;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--t-fast);
}
.cat-pill:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.cat-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ===========================
   Layout principal (content + sidebar)
   =========================== */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  padding: 72px 0;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-mute); font-size: 0.95rem; }
.section-head .view-all {
  font-weight: 600; font-size: 0.9rem;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.section-head .view-all::after { content: '→'; transition: transform var(--t-fast); }
.section-head .view-all:hover::after { transform: translateX(4px); }

/* ===========================
   Article cards (grid)
   =========================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-mute);
}
.post-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-cover svg { width: 100%; height: 100%; display: block; }
.post-cover .cat-tag {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center;
  background: var(--bg-card);
  color: var(--ink);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-title {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 18px; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.82rem; color: var(--ink-mute);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.post-meta time { font-variant-numeric: tabular-nums; }
.post-meta .read-time {
  display: inline-flex; align-items: center; gap: 5px;
}
.post-meta .read-time::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: currentColor;
  display: inline-block;
}

/* Featured post (full width) */
.post-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.post-featured .post-cover { aspect-ratio: auto; height: 100%; min-height: 320px; }
.post-featured .post-body { padding: 40px 44px; justify-content: center; }
.post-featured .post-title { font-size: 1.95rem; margin-bottom: 14px; }
.post-featured .post-excerpt { font-size: 1.05rem; }

/* ===========================
   Sidebar
   =========================== */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
}
.widget--feature {
  background: var(--brand);
  color: #d3e1da;
  border-color: var(--brand);
}
.widget--feature h4, .widget--feature .widget-title { color: var(--bg); }
.widget--feature p { color: #b8cdc4; }
.widget--feature a { color: var(--highlight); }

.widget-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.widget-title::before {
  content: ''; width: 24px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.search-widget { display: flex; gap: 8px; }
.search-widget input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  font: inherit; outline: none;
  transition: border-color var(--t-fast);
}
.search-widget input:focus { border-color: var(--brand); }
.search-widget button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: var(--bg);
  display: grid; place-items: center;
}
.search-widget button:hover { background: var(--accent); }

.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.widget-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-list li:first-child { padding-top: 0; }
.widget-list a { color: var(--ink); display: block; line-height: 1.4; }
.widget-list a:hover { color: var(--accent); }
.widget-list .meta {
  font-size: 0.75rem; color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 0.92rem; color: var(--ink);
  transition: all var(--t-fast);
}
.cat-list a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-list .count {
  font-size: 0.78rem;
  color: var(--ink-mute);
  background: var(--bg-soft);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.cat-list a:hover .count { background: rgba(255,255,255,0.12); color: var(--bg); }

.tip-card {
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-size: 0.92rem;
  border-left: 4px solid var(--brand);
}
.tip-card strong { color: var(--brand); }

/* ===========================
   Newsletter
   =========================== */
.newsletter {
  background: var(--ink);
  color: var(--bg);
  padding: 72px 0;
  margin-top: 32px;
}
.newsletter .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.newsletter h2 { color: var(--bg); margin-bottom: 14px; }
.newsletter p { color: #c5cfcd; margin: 0; }
.newsletter form {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px;
  border-radius: 999px;
}
.newsletter input {
  flex: 1; background: transparent; border: none;
  padding: 14px 22px;
  color: var(--bg);
  outline: none;
  font: inherit;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter button {
  background: var(--highlight); color: var(--ink);
  border: none; border-radius: 999px;
  padding: 0 28px; font-weight: 600;
  transition: background var(--t-fast);
}
.newsletter button:hover { background: var(--accent); color: var(--bg); }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--brand-deep);
  color: #b8cdc4;
  padding: 64px 0 28px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h5 {
  font-family: 'Inter', sans-serif;
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.site-footer a { color: #b8cdc4; }
.site-footer a:hover { color: var(--highlight); }
.site-footer p { color: #94a8a2; font-size: 0.92rem; max-width: 36ch; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-name { color: var(--bg); }
.site-footer .brand-name span { color: #94a8a2; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 0.85rem; color: #7d908a;
}
.footer-bottom .legal-links { display: flex; gap: 22px; }

/* ===========================
   Article single
   =========================== */
.breadcrumb {
  padding: 24px 0 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb [aria-current] { color: var(--ink); }

.article-header {
  padding: 48px 0 56px;
  text-align: center;
  max-width: var(--content-w);
  margin: 0 auto;
}
.article-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 24px;
}
.article-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 24px;
}
.article-deck {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 32px;
  line-height: 1.45;
}
.article-byline {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  font-size: 0.88rem; color: var(--ink-mute);
}
.article-byline span { display: inline-flex; align-items: center; gap: 6px; }
.article-byline .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.article-cover {
  max-width: 1080px; margin: 0 auto 64px; padding: 0 24px;
}
.article-cover .cover-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
}
.article-cover svg { width: 100%; height: 100%; }

.article-body {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px 80px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  float: left;
  font-size: 4.4em;
  line-height: 0.85;
  font-weight: 700;
  color: var(--brand);
  padding: 6px 12px 0 0;
  margin-top: 6px;
}
.article-body h2 {
  font-size: 1.7rem;
  margin: 56px 0 18px;
  padding-top: 14px;
  position: relative;
}
.article-body h2::before {
  content: '';
  position: absolute; top: -2px; left: 0;
  width: 48px; height: 3px;
  background: var(--accent);
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}
.article-body p { margin-bottom: 1.4em; }
.article-body ul, .article-body ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 22px 28px;
  margin: 32px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.5;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article-body .callout {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
  padding-left: 64px;
  font-size: 0.98rem;
}
.article-body .callout::before {
  content: 'i';
  position: absolute; left: 22px; top: 24px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 700;
  font-size: 16px;
}
.article-body .callout strong { display: block; color: var(--brand); margin-bottom: 6px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }

.letter-template {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  margin: 32px 0;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  position: relative;
  box-shadow: var(--shadow-md);
}
.letter-template::before {
  content: 'Modèle de lettre';
  position: absolute; top: -10px; left: 28px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px;
}
.letter-template p { margin-bottom: 1em; }
.letter-template .signature { text-align: right; margin-top: 24px; }

.steps {
  counter-reset: step;
  display: grid; gap: 16px;
  margin: 36px 0;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px 24px 80px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.article-footer {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
  border-top: 1px solid var(--line);
}
.article-footer .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.article-footer .tag {
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--bg-soft);
  border-radius: 999px;
  color: var(--ink-soft);
}
.share-row { display: flex; align-items: center; gap: 14px; }
.share-row span { font-size: 0.85rem; color: var(--ink-mute); margin-right: 4px; }
.share-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: all var(--t-fast);
}
.share-row a:hover { background: var(--brand); color: var(--bg); border-color: var(--brand); }

/* Related */
.related-section {
  background: var(--bg-soft);
  padding: 72px 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.related-section h2 { text-align: center; margin-bottom: 40px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===========================
   Page header (catégorie / archive)
   =========================== */
.page-header {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }

/* ===========================
   Mentions
   =========================== */
.legal-page {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 56px 24px 96px;
  font-size: 1rem;
  line-height: 1.7;
}
.legal-page h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
}
.legal-page h2:first-of-type { margin-top: 0; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px) {
  .main-grid { grid-template-columns: 1fr; gap: 48px; padding: 56px 0; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-cover { min-height: 240px; }
  .post-featured .post-body { padding: 30px 28px; }
  .newsletter .container { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 36px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .menu-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
  }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 1.5rem; }
  .posts-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-featured .post-body { padding: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .article-body { font-size: 1rem; }
  .article-body > p:first-of-type::first-letter { font-size: 3.6em; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ==== Inline figures (illustrations dans articles) ==== */
.inline-figure {
  margin: 36px 0;
  text-align: center;
}
.inline-figure svg {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: block;
  margin: 0 auto;
}
.inline-figure figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-style: italic;
  font-family: 'Fraunces', serif;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
