/* ==========================================================
   Amarity — journal (s'appuie sur styles.css)
   En-tête sombre, corps de l'article sur fond os pour la lecture.
   ========================================================== */
.jpage { padding-top: 120px; }

/* ---------- Article : en-tête ---------- */
.art__head { max-width: 1100px; margin: 0 auto; padding: 4vh var(--gutter) 6vh calc(var(--gutter) + 24px); display: grid; gap: 22px; }
.crumbs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--bone); }
.crumbs span[aria-current] { color: var(--bone-2); }
.art__title {
  margin: 0; font-weight: 850; font-variation-settings: "wdth" 118;
  font-size: clamp(34px, 5vw, 76px); line-height: .98; letter-spacing: -.025em; text-wrap: balance;
}
.art__dek { margin: 0; max-width: 46ch; font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--bone-2); }
.art__meta { margin: 6px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.art__meta a { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }

.art__cover { margin: 0 auto; max-width: 1400px; padding: 0 var(--gutter); }
.art__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.art__cover figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }

/* ---------- Article : corps (fond os) ---------- */
.art__body {
  margin-top: 8vh; background: var(--bone); color: var(--ink);
  display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 720px); justify-content: center; gap: clamp(32px, 6vw, 96px);
  padding: 10vh var(--gutter) 12vh;
}
.art__toc { position: sticky; top: 110px; align-self: start; }
.art__toc .kicker { color: #6b665d; }
.art__toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: toc; border-left: 1px solid rgba(11,11,10,.15); }
.art__toc li { counter-increment: toc; }
.art__toc a { display: block; padding-left: 16px; font-size: 14px; line-height: 1.35; color: #4c4842; transition: color .2s; }
.art__toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--f-mono); font-size: 10px; color: var(--gold-ink); }
.art__toc a:hover { color: var(--ink); }

.prose { font-size: 18px; line-height: 1.72; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p:first-child::first-letter {
  float: left; margin: .06em .12em 0 0; font-family: var(--f-serif); font-size: 4.4em; line-height: .8; color: var(--gold-ink);
}
.prose h2 {
  margin: 2.2em 0 0; scroll-margin-top: 110px;
  font-weight: 850; font-variation-settings: "wdth" 112; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.015em;
}
.prose h3 { margin: 1.8em 0 0; font-weight: 750; font-variation-settings: "wdth" 108; font-size: 21px; line-height: 1.25; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 750; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold-ink); }
.prose blockquote {
  margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--gold);
  font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25;
}
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: #6b665d; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(11,11,10,.14); }
.prose th { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #6b665d; }
.prose .table-wrap { overflow-x: auto; }
.callout { padding: 22px 24px; background: rgba(11,11,10,.05); border-left: 2px solid var(--ink); font-size: 16px; }
.callout p + p { margin-top: .6em; }
.prose .source { font-size: 14px; color: #6b665d; }

/* FAQ */
.prose .faq { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid rgba(11,11,10,.16); }
.prose .faq h3 { margin-top: 1.4em; }

/* auteur */
.author { margin-top: 3em !important; padding: 26px 26px 24px; background: var(--ink); color: var(--bone); }
.author__name { font-weight: 850; font-variation-settings: "wdth" 120; text-transform: uppercase; font-size: 22px; letter-spacing: -.01em; }
.author__role { margin-top: 4px !important; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.author p:last-child { margin-top: 12px; font-size: 16px; color: var(--bone-2); }

/* à lire aussi */
.jrelated { padding: 14vh var(--gutter) 6vh calc(var(--gutter) + 24px); }
.jrelated .kicker { display: block; margin-bottom: 40px; }

/* ---------- Index du journal ---------- */
.jindex__head { padding: 6vh var(--gutter) 8vh calc(var(--gutter) + 24px); display: grid; gap: 22px; }
.jindex__head h1 { font-size: clamp(56px, 12vw, 200px); }
.jindex__intro { margin: 0; max-width: 54ch; font-size: 18px; color: var(--bone-2); }
.jfeat {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end;
  margin: 0 var(--gutter) 12vh calc(var(--gutter) + 24px);
}
.jfeat__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.jfeat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jfeat:hover .jfeat__img img { transform: scale(1.04); }
.jfeat__body { display: grid; gap: 16px; }
.jfeat__title { margin: 0; font-weight: 850; font-variation-settings: "wdth" 118; font-size: clamp(28px, 3.2vw, 50px); line-height: 1.02; letter-spacing: -.02em; }
.jfeat:hover .jfeat__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.jindex__grid { padding: 0 var(--gutter) 12vh calc(var(--gutter) + 24px); }

/* ---------- Pied de page ---------- */
.jfooter { background: var(--bone); color: var(--ink); padding: 14vh var(--gutter) 0 calc(var(--gutter) + 24px); }
.jcta__title { margin: 0; max-width: 18ch; font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(36px, 6vw, 96px); line-height: .9; letter-spacing: -.035em; }
.jcta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.jcta .link { margin-top: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .jpage { padding-top: 96px; }
  .art__head, .jindex__head, .jrelated, .jindex__grid, .jfooter { padding-left: var(--gutter); }
  .art__body { grid-template-columns: 1fr; padding-top: 7vh; }
  .art__toc { position: static; }
  .prose { font-size: 17px; }
  .jfeat { grid-template-columns: 1fr; margin-left: var(--gutter); }
}
