/* =========================================================
   GINA PIZZA LOVERS — Article de journal
   Mesure courte, hiérarchie nette, lecture longue confortable.
   ========================================================= */

.article__head {
  padding-block: var(--s-8) var(--s-6);
  max-width: 74ch;
}
.article__head h1 {
  font-size: var(--t-3xl);
  letter-spacing: -.035em;
  margin-block: var(--s-3);
}
.article__lede { font-size: var(--t-lg); color: var(--text-mute); }
.article__byline {
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--text-mute);
}

.article__body {
  display: grid; grid-template-columns: 240px minmax(0, 68ch);
  gap: var(--s-8); align-items: start;
  padding-bottom: var(--s-9);
}
@media (max-width: 1000px) { .article__body { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------------- Sommaire ---------------- */
.toc {
  position: sticky; top: calc(var(--header-h) + var(--s-5));
  font-size: var(--t-sm);
  border-left: 2px solid var(--line);
  padding-left: var(--s-4);
}
@media (max-width: 1000px) {
  .toc {
    position: static; border-left: 0;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: var(--s-5);
  }
}
.toc h2 {
  font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: var(--s-3);
}
.toc ul { display: grid; gap: .35rem; list-style: none; padding: 0; }
.toc a { color: var(--text-mute); transition: color var(--d-fast); }
.toc a:hover { color: var(--c-red); }
.toc .toc--3 { padding-left: var(--s-4); font-size: .92em; }

/* ---------------- Corps de texte ---------------- */
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: var(--s-4); }

.prose h2 {
  font-size: var(--t-xl);
  margin-top: var(--s-8) !important;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.prose h3 {
  font-size: var(--t-lg);
  margin-top: var(--s-6) !important;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.prose h4 { font-size: var(--t-base); margin-top: var(--s-5) !important; }

.prose a {
  color: var(--c-red); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--d-fast);
}
.prose a:hover { color: var(--c-orange); }

.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: .4rem; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: -1.1rem; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--grad-heat);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { font-family: var(--font-display); font-weight: 700; color: var(--c-red); }

.prose blockquote {
  border-left: 4px solid var(--c-gold);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  font-family: var(--font-display);
  font-size: var(--t-lg); font-weight: 500;
  letter-spacing: -.01em; color: var(--text);
}
.prose blockquote p + p { margin-top: var(--s-3); }

.prose img { border-radius: var(--r-lg); margin-block: var(--s-6); width: 100%; }

.prose code {
  background: var(--bg-alt); padding: .12em .38em;
  border-radius: 5px; font-size: .88em; font-family: var(--font-mono);
}
.prose pre {
  background: var(--grad-ink); color: #ECE7DD;
  padding: var(--s-5); border-radius: var(--r-lg);
  overflow-x: auto; font-size: .88rem; line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: inherit; }

.prose hr {
  border: 0; height: 1px; background: var(--line);
  margin-block: var(--s-7);
}

.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-alt); font-family: var(--font-display); }

/* Première lettre travaillée, sur le premier paragraphe du texte.
   « first-of-type » et non « first-child » : depuis que le contenu vient de
   l'administration, un titre précède souvent le premier paragraphe. */
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700;
  font-size: 3.4em; line-height: .82; padding: .06em .09em 0 0;
  background: var(--grad-heat);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Le texte administré commence parfois par un titre : on remonte la lettrine
   au premier paragraphe qui suit, et à lui seul. */
.prose > h2:first-child + p::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700;
  font-size: 3.4em; line-height: .82; padding: .06em .09em 0 0;
  background: var(--grad-heat);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prose > h2:first-child + p ~ p::first-letter,
.prose > h2 + p:not(:first-of-type)::first-letter {
  float: none; font-size: inherit; line-height: inherit; padding: 0;
  background: none; color: inherit; font-family: inherit; font-weight: inherit;
}

/* ---------- En-tête d'article : respiration comparable aux autres pages ---------- */
.article--journal { padding-top: var(--s-8); }
.article--journal .crumbs { margin-bottom: var(--s-5); }
.article--journal .article__head { padding-bottom: var(--s-6); }
@media (max-width: 900px) { .article--journal { padding-top: var(--s-6); } }

/* Un bloc « à lire ensuite » vide ne doit pas laisser un trou. */
.grid--3:empty { display: none; }
.grid--3:empty + * { margin-top: 0; }
