/* ═══════════════════════════════════════════════════════════════════════
   STREAMLOG : sujets et maillage (pages d'étiquette, « Dans cet article »,
   fiches dans la recherche, page Sujets, aperçu au survol, fil d'Ariane).

   Même matière que les fiches (fiche.css) : blanc et noir, filets de 1 px,
   angles droits, ombre portée noire au survol, étiquettes en capitales
   espacées. Les couleurs viennent des variables du thème quand il les pose.
   ═══════════════════════════════════════════════════════════════════════ */

.stl-tp {
  --tp-tx:   var(--tx, #0a0a0a);
  --tp-bg:   var(--bg, #fff);
  --tp-mt:   var(--mt, #6b6b6b);
  --tp-surf: var(--surf, #f3f3f3);
  --tp-red:  var(--wf-red, #d23c0f);
  --tp-line: 1px solid var(--tp-tx);
  --tp-font: var(--sans, 'Inter', 'Helvetica Neue', Arial, sans-serif);
  font-family: var(--tp-font);
  color: var(--tp-tx);
}
.stl-tp *, .stl-tp *::before, .stl-tp *::after { box-sizing: border-box; }
.stl-tp :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; }
.stl-tp :where(ul, ol) { padding: 0; list-style: none; }
.stl-tp img { display: block; max-width: 100%; }
.stl-tp a { color: inherit; }

.stl-tp-kicker {
  margin: 0 0 12px !important;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-mt);
}

/* ── Boutons ─────────────────────────────────────────────────────────── */
.stl-tp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; }
.stl-tp-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: var(--tp-line); background: var(--tp-bg); color: var(--tp-tx);
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  transition: background .15s, color .15s;
}
.stl-tp-btn:hover, .stl-tp-btn.is-solid { background: var(--tp-tx); color: var(--tp-bg); }
.stl-tp-btn.is-solid:hover { background: var(--tp-bg); color: var(--tp-tx); }

/* ── Page de sujet : la fiche en vedette ─────────────────────────────── */
.stl-tp-hub { margin: 0 0 48px; }
.stl-tp-feature {
  display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 32px;
  padding: 24px; border: var(--tp-line); background: var(--tp-bg); margin-bottom: 28px;
}
.stl-tp-feature--person { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); }
.stl-tp-feature-img { display: block; aspect-ratio: 2 / 3; background: var(--tp-surf); border: var(--tp-line); overflow: hidden; }
.stl-tp-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.stl-tp-feature--person .stl-tp-feature-img { aspect-ratio: 3 / 4; }
.stl-tp-noimg {
  display: grid; place-items: center; height: 100%; background: var(--tp-tx); color: var(--tp-bg);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.stl-tp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px !important; }
.stl-tp-facts span {
  padding: 4px 8px; border: var(--tp-line);
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.stl-tp-facts span:first-child { background: var(--tp-tx); color: var(--tp-bg); }
.stl-tp-feature-title {
  font-size: clamp(34px, 5vw, 64px) !important; font-weight: 900; line-height: .95; letter-spacing: -.035em; text-transform: uppercase;
}
.stl-tp-feature-title a { text-decoration: none; }
.stl-tp-feature-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.stl-tp-lead { margin-top: 16px !important; max-width: 62ch; font-size: 17px; line-height: 1.55; }

.stl-tp-cells { display: flex; flex-wrap: wrap; margin-top: 20px !important; border: var(--tp-line); }
.stl-tp-cells > div { flex: 1 1 200px; padding: 12px 16px; border-left: var(--tp-line); }
.stl-tp-cells > div:first-child { border-left: 0; }
.stl-tp-cells dt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-mt); }
.stl-tp-cells dd { margin-top: 4px; font-size: 18px; font-weight: 800; }
.stl-tp-cells dd small { display: block; font-size: 12px; font-weight: 500; color: var(--tp-mt); }
.stl-tp-cells .is-live dt::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--tp-red);
}
.stl-tp-feature .stl-tp-kicker { margin-top: 24px !important; }

/* ── Rangée d'affiches ───────────────────────────────────────────────── */
.stl-tp-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 160px); gap: 14px;
  overflow-x: auto; padding: 2px 4px 14px 2px; scroll-snap-type: x proximity;
}
.stl-tp-strip.is-small { grid-auto-columns: minmax(104px, 122px); gap: 12px; }
.stl-tp-card { scroll-snap-align: start; }
.stl-tp-card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.stl-tp-card-img {
  display: block; aspect-ratio: 2 / 3; border: var(--tp-line); background: var(--tp-surf); overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.stl-tp-card--person .stl-tp-card-img { aspect-ratio: 1; border-radius: 50%; }
.stl-tp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.stl-tp-card a:hover .stl-tp-card-img { box-shadow: 5px 5px 0 var(--tp-tx); transform: translate(-2px, -2px); }
.stl-tp-card--person a:hover .stl-tp-card-img { box-shadow: none; transform: none; outline: 2px solid var(--tp-tx); outline-offset: 2px; }
.stl-tp-card-title { font-size: 14px; font-weight: 800; line-height: 1.2; }
.stl-tp-card a:hover .stl-tp-card-title { text-decoration: underline; }
.stl-tp-card-sub { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-mt); }
.stl-tp-card.is-live .stl-tp-card-sub { color: var(--tp-red); }

/* ── Sous la liste d'articles ────────────────────────────────────────── */
.stl-tp-more { margin-top: 56px; padding-top: 22px; border-top: 2px solid var(--tp-tx); }
.stl-tp-h2 {
  margin-bottom: 22px !important; font-size: clamp(24px, 3vw, 36px) !important; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase;
}
.stl-tp-more .stl-tp-strip { margin-bottom: 26px; }
.stl-tp-allsubjects { margin: 36px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stl-tp-allsubjects a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ── Recherche ───────────────────────────────────────────────────────── */
.stl-tp-search { margin: 0 0 32px; padding-bottom: 8px; }
.stl-tp-more-link { margin: 4px 0 28px !important; font-size: 13px; font-weight: 600; }
.stl-tp-kicker--articles { padding-top: 18px; border-top: 1px solid var(--tp-tx); }

/* ── Article : « Dans cet article » ──────────────────────────────────── */
.stl-tp-inarticle {
  max-width: var(--wf-read, 760px); margin: 40px auto 0; padding: 18px 0 0; border-top: 2px solid var(--tp-tx);
}
.wf-article .stl-tp-inarticle { padding-left: var(--pad, 24px); padding-right: var(--pad, 24px); max-width: calc(var(--wf-read, 760px) + 2 * var(--pad, 24px)); }
a.stl-autolink { text-decoration-style: dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.stl-autolink:hover { text-decoration-style: solid; }

/* ── Pages plateforme et genre : l'actu ──────────────────────────────── */
.stl-tp-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.stl-tp-news a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.stl-tp-news-img { display: block; aspect-ratio: 16 / 9; border: var(--tp-line); background: var(--tp-surf); overflow: hidden; }
.stl-tp-news-img img { width: 100%; height: 100%; object-fit: cover; }
.stl-tp-news-date { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-mt); }
.stl-tp-news-title { font-size: 15px; font-weight: 800; line-height: 1.25; }
.stl-tp-news a:hover .stl-tp-news-title { text-decoration: underline; }

/* ── Fil d'Ariane (fiches, page Sujets) ──────────────────────────────── */
.stl-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mt, #6b6b6b);
}
.stl-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.stl-crumbs a:hover { color: var(--tx, #0a0a0a); border-bottom-color: currentColor; }
.stl-crumbs [aria-current] { color: var(--tx, #0a0a0a); }
.stl-f-crumbs { margin: 0 0 18px; }
.wf-ahead-crumbs { margin-bottom: 16px !important; }

/* ── Page « Sujets » ─────────────────────────────────────────────────── */
.stl-tp-index { max-width: var(--wf-max-width, var(--max, 1320px)); margin: 0 auto; padding: 24px var(--pad, 40px) 80px; }
.stl-tp-index-head { padding-bottom: 26px; border-bottom: 2px solid var(--tp-tx); margin-bottom: 30px; }
.stl-tp-index-head .stl-crumbs { margin-bottom: 26px; }
.stl-tp-index-title { font-size: clamp(44px, 8vw, 110px) !important; font-weight: 900; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.stl-tp-index-lead { margin-top: 14px !important; max-width: 60ch; font-size: 17px; line-height: 1.5; color: var(--tp-mt); }
.stl-tp-letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 22px; }
.stl-tp-letters a {
  display: grid; place-items: center; min-width: 36px; height: 36px; border: var(--tp-line);
  font-weight: 800; text-decoration: none;
}
.stl-tp-letters a:hover { background: var(--tp-tx); color: var(--tp-bg); }
.stl-tp-index-featured { margin-bottom: 40px; }
.stl-tp-az { columns: 4 240px; column-gap: 32px; }
.stl-tp-az-group { break-inside: avoid; margin-bottom: 28px; scroll-margin-top: 90px; }
.stl-tp-az-letter { font-size: 40px !important; font-weight: 900; line-height: 1; padding-bottom: 6px; border-bottom: var(--tp-line); margin-bottom: 6px !important; }
.stl-tp-az li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--surf, #e8e8e8); }
.stl-tp-az li a { font-weight: 600; text-decoration: none; }
.stl-tp-az li a:hover { text-decoration: underline; }
.stl-tp-az-meta { font-size: 11px; color: var(--tp-mt); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stl-tp-az-meta b { margin-right: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-tx); }

/* ── Aperçu au survol ────────────────────────────────────────────────── */
.stl-peek {
  position: absolute; z-index: 9999; width: 320px; padding: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 14px;
  background: var(--bg, #fff); color: var(--tx, #0a0a0a); border: 1px solid var(--tx, #0a0a0a); box-shadow: 6px 6px 0 var(--tx, #0a0a0a);
  font-family: var(--sans, 'Inter', 'Helvetica Neue', Arial, sans-serif); pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.stl-peek.is-on { opacity: 1; transform: none; }
.stl-peek-img { width: 76px; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--tx, #0a0a0a); background: var(--surf, #f3f3f3); }
.stl-peek.is-round .stl-peek-img { aspect-ratio: 1; border-radius: 50%; }
.stl-peek-kind { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mt, #6b6b6b); }
.stl-peek-title { margin: 2px 0 6px; font-size: 17px; font-weight: 900; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.stl-peek-lead { font-size: 12.5px; line-height: 1.45; }
.stl-peek-meta { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stl-peek-meta span + span::before { content: " · "; color: var(--mt, #6b6b6b); }

/* ── Petits écrans ───────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .stl-tp-feature, .stl-tp-feature--person { grid-template-columns: 1fr; padding: 16px; gap: 18px; }
  .stl-tp-feature-img { max-width: 180px; }
  .stl-tp-lead { font-size: 15px; }
  .stl-tp-cells > div { border-left: 0; border-top: var(--tp-line); }
  .stl-tp-cells > div:first-child { border-top: 0; }
  .stl-tp-btn { width: 100%; justify-content: center; }
  .stl-tp-index { padding: 16px 16px 60px; }
}
