/* Feuille de style partagée du blog Magisteria.
   Reprend la charte « Bibliothèque contemporaine » : Inter (corps), Fraunces (titres),
   palette Anthracite / Sauge / Terracotta / Ivoire. Voir CHARTE.md. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --anthracite: #2B2D31;
  --sauge: #7C9A7A;
  --sauge-hover: #6E8B6C;
  --terra: #C9785A;
  --ivoire: #FAFAF5;
  --brun: #7A6F5E;
  --bordure: #ECE8E1;
  --blanc: #ffffff;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--ivoire);
  color: var(--anthracite);
  line-height: 1.6;
}

/* ── Navigation (identique au reste du site) ── */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,245,0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.lp-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-nav-logo-symbol {
  width: 36px; height: 36px;
  filter: brightness(0) saturate(100%) invert(71%) sepia(39%) saturate(500%) hue-rotate(5deg) brightness(95%) contrast(88%);
}
.lp-nav-logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px; font-weight: 600; color: var(--anthracite);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }
.lp-btn-ghost {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--brun); text-decoration: none; transition: color 0.14s;
}
.lp-btn-ghost:hover { color: var(--anthracite); }
.lp-btn-ghost.actif { color: var(--anthracite); font-weight: 600; }
.lp-btn-outline {
  padding: 8px 18px; border: 1.5px solid var(--anthracite); border-radius: 12px;
  font-size: 13px; font-weight: 500; color: var(--anthracite);
  text-decoration: none; transition: background 0.14s, color 0.14s;
}
.lp-btn-outline:hover { background: var(--anthracite); color: var(--ivoire); }
.lp-btn-primary {
  padding: 8px 18px; background: var(--sauge); border-radius: 12px;
  font-size: 13px; font-weight: 600; color: white;
  text-decoration: none; transition: background 0.14s;
}
.lp-btn-primary:hover { background: var(--sauge-hover); }

/* ── En-tête d'article ── */
.article-head {
  max-width: 720px; margin: 0 auto;
  padding: 72px 40px 24px; text-align: center;
}
.article-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: 20px; padding: 6px 16px;
  font-size: 12px; font-weight: 500; color: var(--brun);
  margin-bottom: 24px; letter-spacing: 0.02em;
}
.article-head h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--anthracite); margin-bottom: 18px;
}
.article-head h1 em { font-style: italic; color: var(--sauge); }
.article-chapeau {
  font-size: 18px; color: var(--brun);
  max-width: 600px; margin: 0 auto; line-height: 1.6;
}
.article-meta {
  margin-top: 22px; font-size: 13px; color: var(--brun);
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.article-meta .sep { color: var(--bordure); }

/* ── Corps d'article ── */
.article-body {
  max-width: 680px; margin: 0 auto;
  padding: 20px 40px 40px;
  font-size: 17px; color: #3A3C40; line-height: 1.72;
}
.article-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 27px; font-weight: 600; color: var(--anthracite);
  margin: 44px 0 16px; line-height: 1.25;
}
.article-body h3 {
  font-size: 20px; font-weight: 600; color: var(--anthracite);
  margin: 32px 0 12px;
}
.article-body h4 {
  font-size: 16px; font-weight: 600; color: var(--brun);
  margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 0.04em;
}
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 26px; }
.article-body li { margin-bottom: 8px; }
.article-body p, .article-body li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.article-body a { color: var(--sauge-hover); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--terra); }
.article-body strong { font-weight: 600; color: var(--anthracite); }
.article-body code {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14.5px;
  background: #F1EEE7; border: 1px solid var(--bordure);
  border-radius: 5px; padding: 1px 6px;
}
.article-body blockquote {
  margin: 24px 0; padding: 4px 22px;
  border-left: 3px solid var(--sauge);
  color: var(--brun); font-style: italic;
}
.article-body hr { border: none; border-top: 1px solid var(--bordure); margin: 40px 0; }

/* ── Encart CTA de fin d'article ── */
.article-cta {
  max-width: 680px; margin: 40px auto 0; padding: 0 40px;
}
.article-cta-inner {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 20px;
  box-shadow: 0 8px 32px rgba(43,45,49,0.06);
  padding: 32px 34px; text-align: center;
}
.article-cta-inner h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--anthracite); margin-bottom: 10px;
}
.article-cta-inner p { font-size: 15px; color: var(--brun); margin-bottom: 20px; }

/* ── Page d'index ── */
.blog-head {
  max-width: 720px; margin: 0 auto;
  padding: 72px 40px 28px; text-align: center;
}
.blog-head h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 600; line-height: 1.14; color: var(--anthracite); margin-bottom: 16px;
}
.blog-head h1 em { font-style: italic; color: var(--sauge); }
.blog-head p { font-size: 17px; color: var(--brun); max-width: 540px; margin: 0 auto; }
.blog-list { max-width: 760px; margin: 0 auto; padding: 16px 40px 40px; }
.blog-card {
  display: block; text-decoration: none;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 18px;
  transition: box-shadow 0.16s, transform 0.16s, border-color 0.16s;
}
.blog-card:hover { box-shadow: 0 10px 30px rgba(43,45,49,0.08); transform: translateY(-2px); border-color: #E0DACE; }
.blog-card-meta { font-size: 12.5px; color: var(--brun); margin-bottom: 10px; letter-spacing: 0.02em; }
.blog-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--anthracite); margin-bottom: 8px; line-height: 1.3;
}
.blog-card p { font-size: 15px; color: var(--brun); line-height: 1.6; }
.blog-empty { text-align: center; color: var(--brun); padding: 40px; }

/* ── Pied de page (identique au reste du site) ── */
.lp-footer {
  background: var(--anthracite); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.lp-footer-logo { display: flex; align-items: center; gap: 8px; }
.lp-footer-logo-symbol {
  width: 24px; height: 24px;
  filter: brightness(0) saturate(100%) invert(71%) sepia(39%) saturate(500%) hue-rotate(5deg) brightness(95%) contrast(88%);
}
.lp-footer-logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px; font-weight: 600; color: rgba(250,250,245,0.55);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.lp-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-footer-links a { font-size: 12.5px; color: rgba(250,250,245,0.32); text-decoration: none; transition: color 0.14s; }
.lp-footer-links a:hover { color: rgba(250,250,245,0.65); }
.lp-footer-copy { font-size: 12px; color: rgba(250,250,245,0.2); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .lp-nav { padding: 0 18px; }
  .lp-nav-actions .lp-btn-ghost { display: none; }
  .article-head { padding: 48px 20px 20px; }
  .article-body { padding: 16px 20px 32px; font-size: 16px; }
  .article-cta, .blog-list { padding-left: 20px; padding-right: 20px; }
  .blog-head { padding: 48px 20px 24px; }
  .lp-footer { padding: 24px 18px; flex-direction: column; align-items: flex-start; }
}
