/* =====================================================================
   blog.css — feuille de style partagée du blog « Oracle des mots »
   Reprend les tokens & l'esprit de index.html (terre & bois, Spectral +
   Hanken Grotesk). Sert l'index du blog ET les pages article.
   ===================================================================== */
:root {
  --sand:#e6dcc9; --sand-lo:#ded2bc; --paper:#f5efe3; --paper-2:#f0e8d9;
  --clay:#b15b36; --clay-deep:#8f4527; --wood:#7a5a39;
  --ink:#2c2620; --ink-soft:#6e6353; --ink-faint:#978a76;
  --line:rgba(54,42,28,0.14); --line-soft:rgba(54,42,28,0.08);
  --shadow:0 1px 2px rgba(54,42,28,.06), 0 12px 34px -16px rgba(54,42,28,.30);
  --ease:cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--ink);
  background: radial-gradient(130% 80% at 50% -8%, #efe7d6 0%, var(--sand) 50%, var(--sand-lo) 100%) fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(122,90,57,.05) 1px, transparent 1.4px); background-size: 4px 4px;
}
::selection { background: rgba(177,91,54,.20); }
a { color: inherit; }
.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.wrap-narrow { max-width: 720px; }

/* nav (identique à index.html) */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--clay); display: grid; place-items: center; }
.brand-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.brand-name { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 8px 22px; }
.nav-link { font-size: 14px; font-weight: 600; letter-spacing: .01em; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--clay-deep); }
.nav-cta {
  font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: var(--clay-deep);
  border: 1px solid var(--clay); border-radius: 9px; padding: 9px 18px; transition: background .2s;
}
.nav-cta:hover { background: rgba(177,91,54,.08); }
@media (max-width: 600px) { .nav-links .nav-link { display: none; } .nav-links .nav-cta { display: inline-block; } }

.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--clay-deep); }
.divider { height: 1px; background: var(--line-soft); border: none; margin: 0; }

/* ---------- index du blog ---------- */
.blog-hero { padding: clamp(36px, 7vh, 72px) 0 clamp(28px, 4vh, 44px); max-width: 760px; }
.blog-hero h1 {
  font-family: "Spectral", serif; font-weight: 300; letter-spacing: -.015em;
  font-size: clamp(38px, 7vw, 66px); line-height: 1.1; margin: 16px 0 0;
}
.blog-hero h1 em { font-style: italic; color: var(--clay-deep); }
.blog-hero p { font-size: clamp(16px, 2.3vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; margin: 20px 0 0; }

/* article à la une */
.blog-feature {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 48px);
  align-items: stretch; margin-bottom: clamp(28px, 5vh, 52px);
}
@media (max-width: 760px) { .blog-feature { grid-template-columns: 1fr; } }
.blog-feature-art {
  position: relative; min-height: 260px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(150deg, #efe6d3, #e3d8bf);
  display: grid; place-items: center;
}
.blog-feature-body { display: flex; flex-direction: column; justify-content: center; }
.blog-feature-body h2 {
  font-family: "Spectral", serif; font-weight: 400; font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16; letter-spacing: -.01em; margin: 12px 0 0;
}
.blog-feature-body h2 a { text-decoration: none; }
.blog-feature-body p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 14px 0 0; max-width: 52ch; }

/* grille de cartes */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(54,42,28,.06), 0 22px 44px -20px rgba(54,42,28,.42); }
.post-card-art {
  height: 150px; display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, #efe6d3, #e4d9c1);
}
.post-card-glyph { font-family: "Spectral", serif; font-size: 60px; line-height: 1; color: var(--clay-deep); opacity: .82; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--clay-deep); }
.post-card h3 {
  font-family: "Spectral", serif; font-weight: 400; font-size: 21px; line-height: 1.22;
  letter-spacing: -.005em; margin: 10px 0 0; color: var(--ink); text-wrap: pretty;
}
.post-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 10px 0 0; flex: 1; }
.post-meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

/* ---------- page article ---------- */
.article-head { padding: clamp(28px, 5vh, 56px) 0 clamp(20px, 3vh, 32px); }
.breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--ink); }
.article-head h1 {
  font-family: "Spectral", serif; font-weight: 300; letter-spacing: -.015em;
  font-size: clamp(32px, 5.6vw, 56px); line-height: 1.1; margin: 14px 0 0; max-width: 18ch;
}
.article-head h1 em { font-style: italic; color: var(--clay-deep); }
.article-dek { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.55; color: var(--ink-soft); margin: 20px 0 0; max-width: 56ch; font-family: "Spectral", serif; font-weight: 300; font-style: italic; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 26px; font-size: 13.5px; color: var(--ink-faint); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.article-author { font-weight: 600; color: var(--ink-soft); }

.article-cover {
  height: clamp(200px, 34vw, 380px); border-radius: 18px; margin: clamp(20px,3vh,36px) 0;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  background: linear-gradient(150deg, #efe6d3, #e2d7be); display: grid; place-items: center;
}
.article-cover-glyph { font-family: "Spectral", serif; font-size: clamp(90px, 16vw, 180px); line-height: 1; color: var(--clay-deep); opacity: .8; }

/* prose : le corps que l'on remplit */
.prose { font-size: 17.5px; line-height: 1.72; color: var(--ink); }
.prose > p { margin: 0 0 22px; }
.prose .lead { font-size: 20px; line-height: 1.62; color: var(--ink); }
.prose h2 {
  font-family: "Spectral", serif; font-weight: 500; font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2; letter-spacing: -.01em; margin: 46px 0 0; color: var(--ink);
}
.prose h2 + p { margin-top: 16px; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 32px 0 0; color: var(--ink); }
.prose h3 + p { margin-top: 10px; }
.prose a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.3em; }
.prose li { margin: 0 0 9px; }
.prose .article-source { font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.prose .article-tree { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7; color: var(--clay-deep); background: rgba(177,91,54,.06); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 22px; overflow-x: auto; white-space: pre; }
.prose .table-wrap { margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.prose thead th { background: rgba(177,91,54,.08); color: var(--ink); font-weight: 700; text-align: left; font-size: 12.5px; letter-spacing: .01em; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; }
.prose th:last-child, .prose td:last-child { border-right: none; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:nth-child(even) td { background: rgba(122,90,57,.03); }
.prose td strong { color: var(--ink); }
.prose .article-chapo { font-size: 14px; line-height: 1.6; color: var(--clay-deep); background: rgba(177,91,54,.06); border: 1px solid var(--clay); border-left: 3px solid var(--clay); border-radius: 10px; padding: 16px 18px; margin: 0 0 28px; }
.prose .article-chapo b { font-weight: 700; }
.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--clay);
  font-family: "Spectral", serif; font-style: italic; font-weight: 300;
  font-size: clamp(20px, 3vw, 26px); line-height: 1.42; color: var(--wood);
}
.prose figure { margin: 30px 0; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 10px; text-align: center; font-style: italic; }

/* encadré “à remplir” — repère éditorial, retirable */
.fill-note {
  font-size: 13px; line-height: 1.5; color: var(--clay-deep); background: rgba(177,91,54,.06);
  border: 1px dashed var(--clay); border-radius: 10px; padding: 12px 16px; margin: 0 0 22px;
}
.fill-note b { font-weight: 700; }

/* CTA vers l'oracle */
.article-cta {
  margin: clamp(40px, 6vh, 64px) 0 0; padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, #f7f0e1, #ece2cd); border: 1px solid var(--line);
  border-radius: 18px; text-align: center; box-shadow: var(--shadow);
}
.article-cta h2 { font-family: "Spectral", serif; font-weight: 300; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.16; margin: 0; }
.article-cta h2 em { font-style: italic; color: var(--clay-deep); }
.article-cta p { font-size: 15.5px; color: var(--ink-soft); margin: 12px auto 0; max-width: 44ch; }
.btn-primary {
  font-size: 16px; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: #f7efe2;
  background: linear-gradient(180deg, var(--clay), var(--clay-deep)); border-radius: 11px; padding: 14px 30px;
  box-shadow: 0 1px 2px rgba(54,42,28,.18), 0 14px 30px -12px rgba(143,69,39,.7);
  transition: transform .2s var(--ease), filter .2s; display: inline-block; margin-top: 22px;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }

/* articles liés */
.related { margin-top: clamp(44px, 7vh, 80px); }
.related-h { font-family: "Spectral", serif; font-weight: 400; font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 22px; }

/* footer (identique à index.html) */
.foot { border-top: 1px solid var(--line-soft); padding: 36px 0 48px; margin-top: clamp(44px, 7vh, 80px); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot-brand { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); margin-top: 22px; max-width: 72ch; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- zone verrouillée + offres Stripe (injectées par paywall.js) ---------- */
.alc-lock { display: none; }
.alc-wrap.is-locked .alc-card { filter: blur(7px); pointer-events: none; user-select: none; }
.alc-wrap.is-locked .alc-lock {
  display: flex; position: absolute; inset: 0; z-index: 3; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 24px;
  background: radial-gradient(70% 70% at 50% 42%, rgba(245,239,227,.72), rgba(245,239,227,.94)); border-radius: 18px;
}
.alc-lock .ico { width: 38px; height: 38px; border-radius: 50%; border: 1.6px solid var(--clay); display: grid; place-items: center; color: var(--clay-deep); font-size: 18px; margin-bottom: 2px; }
.alc-lock h3 { font-family: "Spectral", serif; font-weight: 500; font-size: 23px; margin: 0; color: var(--ink); }
.alc-lock .lock-sub { font-size: 14.5px; color: var(--ink-soft); margin: 2px 0 6px; max-width: 38ch; }
.offer-row { display: flex; gap: 12px; width: 100%; max-width: 460px; margin: 2px 0 0; }
@media (max-width: 480px) { .offer-row { flex-direction: column; } }
.offer {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; font: inherit; cursor: pointer;
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .2s, border-color .2s;
}
.offer:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(54,42,28,.08), 0 20px 42px -18px rgba(54,42,28,.5); }
.offer:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: var(--shadow); }
.offer-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.offer-price { font-family: "Spectral", serif; font-size: 30px; line-height: 1; color: var(--ink); }
.offer-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; }
.offer-pass { border-color: var(--clay); background: linear-gradient(180deg,#fff7ec,#f3e7cf); }
.offer-pass .offer-price { color: var(--clay-deep); }
.offer-badge { position: absolute; top: -10px; right: 14px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f7efe2; background: var(--clay-deep); border-radius: 999px; padding: 3px 10px; }
.offer-reassure { font-size: 12px; color: var(--ink-faint); margin: 12px 0 0; }
.offer-status { font-size: 13px; font-weight: 600; color: var(--clay-deep); margin: 10px 0 0; }
