/* ============================================================
   EVORIS — PAGES DE CONTENU
   Pages légales, carnet et gabarit d'article : prose, listes,
   tableaux de données, filtres et mise en page d'article.
   Dépend de tokens.css + site.css.
   ============================================================ */

/* ---- Prose --------------------------------------------------- */
.prose {
  max-width: 74ch;
}

.prose > h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2-legal);
  line-height: 1.15;
  margin-top: 44px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 14px;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose a,
.prose .link-inline {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.prose .link-inline {
  font-size: 16.5px;
}

.prose--wide {
  max-width: none;
}

.prose--wide > p,
.prose--wide > h2 {
  max-width: 74ch;
}

.prose .prose__lede,
.prose__lede {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 74ch;
  margin-top: 0;
}

.prose .prose__lede + h2 {
  margin-top: 44px;
}

.prose .prose__note,
.prose__note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--faint);
  margin-top: 14px;
  max-width: 74ch;
}

.prose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Listes à barre oblique — le « / » est décoratif (alternative vide). */
.slash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.slash-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.slash-list li::before {
  content: "/" / "";
  color: var(--accent);
  flex: none;
}

/* ---- Liste de définitions (mentions légales) ------------------ */
.deflist {
  margin-top: 20px;
  border-top: 1px solid var(--rule-soft);
}

.deflist > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
}

.deflist dt {
  font-size: var(--fs-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--faint);
  padding-top: 4px;
}

.deflist dd {
  margin: 0;
}

.deflist a {
  color: var(--accent);
}

/* ---- Tableaux de données -------------------------------------- */
.table--data {
  min-width: 560px;
  color: var(--muted);
}

.table--wide {
  min-width: 720px;
}

.table--data th[scope="col"] {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--faint);
}

.table--data th[scope="row"],
.table--data td {
  padding: 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

.table--data th[scope="row"] {
  color: inherit;
}

.table--data tr > *:first-child {
  padding-left: 0;
}

.table--data tr > *:last-child {
  padding-right: 0;
}

.table--data .is-code {
  font-family: var(--font-mono);
  color: var(--fg);
}

/* ---- Carnet ---------------------------------------------------- */
.blog__lede {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin-top: 22px;
}

.blog__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1-blog);
  line-height: 0.98;
  max-width: 26ch;
}

.blog__grid {
  border-top: none;
  margin-top: clamp(28px, 3vw, 40px);
}

/* ---- Article ---------------------------------------------------- */
.article__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1-article);
  line-height: 1;
  max-width: 22ch;
}

.article__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: var(--fs-kicker);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.article__layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(36px, 4vw, 56px);
  align-items: flex-start;
}

.article__aside {
  flex: 0 1 240px;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  border-left: 2px solid var(--vermilion);
  padding-left: 18px;
}

.article__aside h2 {
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}

.article__toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.4;
}

.article__share {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.article__share h2 {
  margin-bottom: 12px;
}

.article__share div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article__share .btn {
  padding: 11px 14px;
  font-size: var(--fs-kicker);
  letter-spacing: 0.08em;
}

.article__body {
  max-width: 68ch;
  font-size: 18.5px;
  line-height: 1.75;
  color: #302d28;
}

.article__body > h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2-article);
  line-height: 1.15;
  margin-top: 44px;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.article__body p {
  margin-top: 16px;
}

.article__chapo {
  font-size: 21px;
  line-height: 1.55;
  color: var(--fg);
}

.article__pull {
  margin: 36px 0;
  border-left: 2px solid var(--vermilion);
  padding: 4px 0 4px 22px;
}

.article__pull blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  line-height: 1.25;
  color: var(--fg);
}

.article__cta {
  margin-top: 48px;
  padding: clamp(24px, 2.4vw, 36px);
}

.article__cta p:first-child {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  line-height: 1.15;
}

.article__cta p + p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
  max-width: 52ch;
}

.article__cta .btn {
  margin-top: 22px;
}

@media (max-width: 899px) {
  .article__aside {
    position: static;
    flex-basis: 100%;
  }
}
