/*
 * Port contrôlé du modèle de source individuelle de LE-RADAR.
 *
 * Référence fonctionnelle : packages/theme-radar/LE-RADAR-SOURCE-VIEW.json.
 * Cette feuille est chargée après theme.css afin que la vue partagée soit la
 * seule autorité pour les cartes de liste, dans le build comme dans la démo.
 */

.article {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 14px 0;
  color: inherit;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: transform 160ms cubic-bezier(.22, 1, .36, 1);
}
.article::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: -14px;
  width: 3px;
  border-radius: 3px;
  background: var(--c, var(--accent));
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .article:hover { transform: translateX(3px); }
  .article:hover::before { opacity: 1; }
  .article:hover .article-title { color: var(--c, var(--accent)); }
}
@media (hover: none), (pointer: coarse) {
  .article:active .article-title { color: var(--c, var(--accent)); }
}

.article-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 2px;
  margin-bottom: 4px;
  font-size: 12px;
}
.article-section {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--c, var(--accent));
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.article-section::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.article-section--empty::before { display: none; }
.article-time {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: right;
}
.article-time::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule);
  content: "";
}
.article-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
  /* Pas de césure dans les titres : un mot long passe à la ligne entier. */
  hyphens: none;
  -webkit-hyphens: none;
  /* Évite les orphelins d’un seul mot (« de » / « compost ») en bas de titre. */
  text-wrap: pretty;
  transition: color 140ms ease;
}
.article-title a { color: inherit; text-decoration: none; }
.article-title a:hover { text-decoration: underline; text-underline-offset: .14em; }
@media (min-width: 600px) { .article-title { font-size: 1.6rem; } }
.article-byline {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.35;
}
.article--feature .article-title { margin-bottom: 2px; }
.article--feature .article-byline { margin: 0 0 8px; }
.article-byline__label {
  display: inline;
  margin: 0;
  margin-inline-end: 0.3em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.article-byline__sep {
  display: inline;
  margin: 0;
  font-weight: 500;
  color: var(--muted);
  white-space: pre-wrap;
}
.article-byline .article-author {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 600;
}
.article-byline a.article-author { text-decoration: none; }
.article-byline a.article-author:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-brief {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.55;
}
.article-brief-text { display: inline; }
/*
 * Suite du fil — focus-group le-radar-suite-more (B) :
 * more INLINE après le chapô (pas block+end = trou vide bas-droite).
 */
.article-more {
  display: inline;
  margin-left: .35em;
  color: var(--c, var(--accent));
  font-size: .88em;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.25;
}
.article-more:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/*
 * Vedettes / En bref — focus-group le-radar-brief-more (A) :
 * more bas-droite colonne texte, jamais float orphelin.
 */
.news-hero .article--feature .article-more,
.brief-rail .article--compact .article-more {
  display: block;
  float: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0.2rem 0 0;
  margin-left: 0;
  padding: 0;
  text-align: end;
}

/*
 * Médias de carte : le ratio n’est PAS global.
 * - À la une (lead) → pleine largeur 16:9
 * - Vedettes / En bref (thumb) → vignette carrée 1:1
 * Un 16:9 par défaut sur .article-media forçait le paysage partout
 * (y compris En bref et features), d’où les pastilles « bizarres ».
 */
.article-media {
  display: none;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-soft);
}
.article.has-image .article-media { display: block; }
.article-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.article-media-credit {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  /* Lisible : 12 px environ (il était à 11 px, et 9 px sur les vignettes). */
  font-size: .76rem;
  line-height: 1.4;
}

.article--lead {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0 12px;
  border-bottom: 2px solid var(--rule-strong);
}
.article--lead > .article-eyebrow { order: 1; }
.article--lead > .article-meta { order: 2; }
.article--lead > .article-title { order: 3; }
.article--lead > .article-byline { order: 4; }
.article--lead > .article-media { order: 5; }
.article--lead > .article-brief { order: 6; }
.article--lead::before { top: 40px; }
/* Eyebrow → rubrique : 8 px (identique titre « En bref » → première méta). */
.article-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.article--lead .article-eyebrow {
  margin: 0 0 8px;
}
.article--lead .article-eyebrow + .article-meta {
  margin-top: 0;
  margin-bottom: 4px;
}
.article--lead .article-title {
  margin: 0 0 2px;
  font-size: var(--lead-title-size);
  line-height: 1.08;
}
.article--lead.has-image .article-title { margin-bottom: 4px; }
/*
 * À la une : photo pleine largeur (16:9), jamais vignette flottante.
 * Les vedettes (feature) restent en carré à gauche ; la une ne partage pas
 * ce traitement — accueil, section, catégorie et fiche journaliste inclus.
 */
.article--lead.has-image .article-media {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  background: var(--bg-soft);
  /* Figure seule porte le ratio : l’img suit. */
  aspect-ratio: 16 / 9;
}
.article--lead.has-image .article-media:has(.article-media-credit) {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.article--lead.has-image .article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: auto;
}
.article--lead.has-image .article-media:has(.article-media-credit) img {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--bg-soft);
}
/* Pendant que la photo de la une arrive (téléphone, réseau lent) : un reflet
 * qui passe plutôt qu'un bloc gris immobile qui a l'air vide. La photo, opaque,
 * le recouvre dès qu'elle est peinte ; l'animation s'arrête d'elle-même. */
.article--lead.has-image .article-media img,
.article--lead.has-image .article-media:has(.article-media-credit) img {
  background-color: var(--bg-soft);
  background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ink, #16181c) 12%, transparent) 50%, transparent 70%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: une-attente 1.4s ease-in-out 8;
}
@keyframes une-attente {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .article--lead.has-image .article-media img,
  .article--lead.has-image .article-media:has(.article-media-credit) img { animation: none; background-image: none; }
}
.article--lead .article-byline { margin-bottom: 6px; font-size: .92rem; }
.article--lead .article-brief {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article--feature .article-brief {
  max-width: none;
  font-size: .98rem;
  line-height: 1.52;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-brief,
.article-brief-text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.article--compact { padding: 11px 0; }
.article--compact .article-meta { margin-bottom: 3px; }
.article--compact .article-title {
  margin-top: 0;
  margin-bottom: 2px;
  font-size: 1.28rem;
  line-height: 1.18;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}
.article--compact .article-byline { margin: 0 0 6px; font-size: .78rem; }
.article--compact .article-brief { margin-top: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
/*
 * En bref sans photo : clamp sur le *texte* seulement — le lien « Lire la suite »
 * reste sur une ligne visible sous l’extrait.
 */
.brief-rail .article--compact:not(.has-image) .article-brief-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.brief-rail .article--compact:not(.has-image) .article-brief.is-truncated .article-brief-text {
  -webkit-line-clamp: 2;
}
/*
 * En bref + photo — focus-group le-radar-brief-more (A) :
 * grille 2 pistes vignette | texte (plus de float wrap / more orphelin).
 */
.brief-rail .article--compact.article--thumb.has-image {
  display: grid;
  grid-template-columns: minmax(4rem, 5.75rem) minmax(0, 1fr);
  column-gap: 0.65rem;
  align-items: start;
}
.brief-rail .article--compact.article--thumb.has-image > .article-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  margin-bottom: 3px;
}
.brief-rail .article--compact.article--thumb.has-image > .article-meta .article-time {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  text-align: right;
  align-self: start;
  white-space: nowrap;
}
.brief-rail .article--compact.article--thumb.has-image > .article-meta .article-time::before {
  display: none;
}
.brief-rail .article--compact.article--thumb.has-image > .article-media {
  grid-column: 1;
  /* title + byline + brief = 3 rangées (pas 4 → vide sous « Lire la suite »). */
  grid-row: 2 / span 3;
  float: none;
  width: 100%;
  margin: 2px 0 0;
  shape-outside: none;
  aspect-ratio: auto;
  align-self: start;
  overflow: visible;
  background: transparent;
}
.brief-rail .article--compact.article--thumb.has-image > .article-title,
.brief-rail .article--compact.article--thumb.has-image > .article-byline,
.brief-rail .article--compact.article--thumb.has-image > .article-brief {
  grid-column: 2;
  min-width: 0;
}
.brief-rail .article--compact.article--thumb.has-image > .article-title {
  display: block;
  margin-bottom: 2px;
}
.brief-rail .article--compact.article--thumb.has-image > .article-byline {
  display: block;
  margin: 0 0 6px;
}
.brief-rail .article--compact.article--thumb.has-image > .article-brief {
  display: block;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 0;
  padding-bottom: 0;
}
.brief-rail .article--compact.article--thumb.has-image .article-brief-text,
.brief-rail .article--compact.article--thumb.has-image .article-brief.is-truncated .article-brief-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-wrap: pretty;
}
.brief-rail .article--compact.article--thumb.has-image .article-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
.article--thumb.has-image {
  display: grid;
  grid-template-columns: clamp(64px, 22vw, 88px) minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
}
.article--thumb.has-image > .article-meta { grid-column: 1 / -1; }
.article--thumb.has-image > .article-title,
.article--thumb.has-image > .article-byline,
.article--thumb.has-image > .article-brief { grid-column: 2; min-width: 0; }
.article--thumb.has-image > .article-media {
  grid-column: 1;
  grid-row: 2 / span 3;
  min-width: 0;
  margin: 2px 0 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  /* Figure = contenu (img carrée + crédit) — jamais 16:9. */
  aspect-ratio: auto;
}
/*
 * Vignette carrée stricte (features + En bref).
 * height:auto + aspect-ratio bat les attributs HTML width/height du fichier source.
 */
.article--thumb.has-image .article-media img,
.article--feature.article--thumb.has-image .article-media img,
.article--brief.article--thumb.has-image .article-media img,
.brief-rail .article--thumb.has-image .article-media img,
.news-hero .article--feature.article--thumb.has-image .article-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  border-radius: 6px;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
/* « Suite du fil » : vignette paysage 3:2 uniforme (parité LE-RADAR).
   Sans ce verrou, la règle carrée 1:1 des vedettes / En bref s’applique. */
.news-tail-body .article.article--thumb.has-image .article-media img,
.news-tail-grid .article.article--thumb.has-image .article-media img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.article--thumb.has-image .article-media-credit {
  display: block;
  margin-top: 4px;
  font-size: .7rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
/* Vignette : la légende complète est dans l'article ; on garde le crédit entier. */
.article--thumb.has-image .article-media-credit:has(.article-media-photo) .article-media-caption { display: none; }
.article--thumb.has-image .article-media-caption {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
/*
 * Vedettes + photo — focus-group le-radar-brief-more (A) :
 * grille 2 pistes (plus de float wrap / CTA orphelin).
 */
.news-hero .article--feature.article--thumb.has-image {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: start;
  padding-top: 12px;
  padding-bottom: 8px;
}
.news-hero .article--feature.article--thumb.has-image > .article-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  margin-bottom: 4px;
}
.news-hero .article--feature.article--thumb.has-image > .article-meta .article-time {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  text-align: right;
  align-self: start;
  white-space: nowrap;
}
.news-hero .article--feature.article--thumb.has-image > .article-meta .article-time::before {
  display: none;
}
.news-hero .article--feature.article--thumb.has-image > .article-media {
  grid-column: 1;
  /* title + byline + brief = 3 rangées (pas 4 → vide sous « Lire la suite »). */
  grid-row: 2 / span 3;
  float: none;
  width: 100%;
  margin: 2px 0 0;
  shape-outside: none;
  aspect-ratio: auto;
  align-self: start;
  overflow: visible;
  background: transparent;
}
.news-hero .article--feature.article--thumb.has-image > .article-title,
.news-hero .article--feature.article--thumb.has-image > .article-byline,
.news-hero .article--feature.article--thumb.has-image > .article-brief {
  grid-column: 2;
  min-width: 0;
}
.news-hero .article--feature.article--thumb.has-image > .article-title {
  display: block;
  margin-bottom: 4px;
}
.news-hero .article--feature.article--thumb.has-image > .article-byline {
  display: block;
  margin: 0 0 6px;
}
.news-hero .article--feature.article--thumb.has-image > .article-brief {
  display: block;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 0;
  max-width: none;
  padding-bottom: 0;
}
.news-hero .article--feature.article--thumb.has-image .article-brief-text,
.news-hero .article--feature.article--thumb.has-image .article-brief.is-truncated .article-brief-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  line-height: 1.48;
}
.news-hero .article--feature.article--thumb.has-image .article-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
}
@media (min-width: 601px) {
  .article--thumb.has-image { grid-template-columns: clamp(72px, 22%, 110px) minmax(0, 1fr); column-gap: 14px; }
  .article--thumb.has-image > .article-media { margin-top: 3px; }
  .article--thumb.has-image .article-media-credit { font-size: .7rem; line-height: 1.3; }
  .news-hero .article--feature.article--thumb.has-image {
    grid-template-columns: minmax(7.5rem, 10.5rem) minmax(0, 1fr);
    column-gap: 0.9rem;
  }
  .brief-rail .article--compact.article--thumb.has-image {
    grid-template-columns: minmax(4.5rem, 6.25rem) minmax(0, 1fr);
    column-gap: 0.75rem;
  }
}

/*
 * Grille magazine (accueil + page article).
 * Filets : un bas unique sur le conteneur + séparateur vertical En bref.
 * Pas de border-bottom par colonne (évite les lignes croisées / décalées).
 */
.magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 370px);
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.magazine-layout--article {
  align-items: stretch;
}
.magazine-layout--article .article-column {
  min-width: 0;
  padding-right: 32px;
  border-bottom: none;
  display: flex;
  flex-direction: column;
}
.magazine-layout--article .article-column > .post {
  flex: 1 1 auto;
}
.magazine-layout--article .brief-rail--article {
  position: static;
  max-height: none;
  overflow: visible;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border-bottom: none;
  min-height: 100%;
}
.news-hero {
  min-width: 0;
  padding-right: 32px;
  border-bottom: none;
}
.news-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.news-features > .article { border-bottom: 1px solid var(--rule); }
.news-features > .article:last-child { border-bottom: 0; }
/* Lead : séparateur avec les vedettes (pas de double filet en bas de colonne). */
.news-hero > .article--lead {
  border-bottom: 1px solid var(--rule);
}
.brief-rail {
  min-width: 0;
  padding: 0 0 12px 28px;
  border-bottom: none;
  border-left: 1px solid var(--rule);
}
/* Dernier item En bref : pas de filet (le magazine-layout porte le bas). */
.brief-rail > .article:last-child,
.magazine-layout--article .brief-rail--article > .article:last-child {
  border-bottom: 0;
}
/*
 * Titres de colonne (« En bref », « Suite du fil ») :
 * même rythme que .article-eyebrow → méta (8 px) — pas de double gap
 * (padding-bottom h2 + padding-top article).
 */
.brief-rail > h2,
.news-tail > h2,
.news-tail-title {
  margin: 0;
  padding: 10px 0 8px; /* top = padding une ; bas = gap eyebrow→méta */
  color: var(--muted);
  font: 800 10px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
/* Premier article sous le titre : le 8 px du titre suffit (parité À la une). */
.brief-rail > h2 + .article,
.news-tail > h2 + .article,
.news-tail-title + .article,
.news-tail-title + .news-tail-body .article:first-child {
  padding-top: 0;
}
/* Suite du fil : gabarit compact (LE-RADAR .article--standard en grille). */
.article--tail {
  padding: 14px 0;
}
.article--tail .article-meta { margin-bottom: 4px; }
.article--tail .article-title {
  margin: 0 0 4px;
  font-size: 1.22rem;
  line-height: 1.2;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  text-wrap: pretty;
}
.article--tail .article-byline {
  margin: 2px 0 4px;
  font-size: 0.78rem;
}
.article--tail .article-brief {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-tail {
  /* Peek 6e rangée : titre + auteurs (hauteur affinée en JS). */
  --news-tail-peek: 72px;
  grid-column: 1 / -1;
  margin-top: 28px;
  border-top: 2px solid var(--rule-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Évite le scroll-anchoring qui envoie en bas à l’ouverture (LE-RADAR). */
  overflow-anchor: none;
}
.news-tail-body,
.news-tail-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  column-gap: 0;
  overflow-anchor: none;
}
.news-tail-toggle {
  overflow-anchor: none;
}
@media (min-width: 600px) {
  .news-tail-body,
  .news-tail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(14px, 2.4vw, 28px);
  }
}
@media (min-width: 1100px) {
  .news-tail-body,
  .news-tail-grid { column-gap: 32px; }
}
/* Repli suite du fil (LE-RADAR) : 10 cartes = 5 rangées en 2 col. */
.news-tail.has-overflow:not(.is-expanded) .news-tail-body {
  overflow: hidden;
  max-height: var(--news-tail-collapsed-h, none);
  transition: max-height 0.4s ease;
}
.news-tail.is-expanded .news-tail-body {
  max-height: none !important;
  overflow: visible;
  transition: max-height 0.45s ease;
}
/* Dépliage unidirectionnel : pas de « Réduire » sticky ni en bas du fil. */
.news-tail.is-expanded .news-tail-toggle {
  display: none !important;
}
/*
 * Rangée peek (6e) : rubrique + titre + auteurs (pas l’extrait ni la date
 * longue). Le flou démarre sous la 1ʳᵉ ligne lisible (voir ::after).
 */
.news-tail.has-overflow:not(.is-expanded) .article.is-tail-overflow {
  padding-top: 6px;
  padding-bottom: 0;
  border-bottom-color: transparent;
}
.news-tail.has-overflow:not(.is-expanded) .article.is-tail-overflow .article-brief,
.news-tail.has-overflow:not(.is-expanded) .article.is-tail-overflow .article-time {
  display: none;
}
.news-tail.has-overflow:not(.is-expanded) .article.is-tail-overflow .article-meta {
  margin-bottom: 3px;
}
.news-tail.has-overflow:not(.is-expanded) .article.is-tail-overflow .article-section {
  font-size: 0.68rem;
}
.news-tail.has-overflow:not(.is-expanded) .article.is-tail-overflow .article-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 2px;
  font-size: 1.05rem;
  line-height: 1.25;
}
.news-tail.has-overflow:not(.is-expanded) .article.is-tail-overflow .article-byline {
  margin: 0;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-tail-toggle {
  display: none;
  font-family: var(--sans);
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0 4px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  flex-shrink: 0;
  appearance: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
  -webkit-tap-highlight-color: transparent;
}
.news-tail.has-overflow .news-tail-toggle { display: inline-flex; }
@media (hover: hover) and (pointer: fine) {
  .news-tail-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  }
}
.news-tail-toggle:focus { outline: none; }
/* Tap tactile : ne pas rester « engagé » mauve après le clic. */
.news-tail-toggle:focus:not(:focus-visible),
.news-tail-toggle:active {
  border-color: var(--rule);
  color: var(--ink-soft);
  background: var(--bg-soft);
}
.news-tail-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/*
 * Dégradé + flou sur la zone peek (6e rangée).
 * Haut net (rubrique + 1ʳᵉ ligne de titre) ; le flou/dégradé commence
 * vers le bas de la 1ʳᵉ ligne de contenu, puis s’intensifie vers le bouton.
 */
.news-tail.has-overflow:not(.is-expanded) .news-tail-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--news-tail-peek);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 0%, transparent) 0%,
    color-mix(in srgb, var(--bg) 0%, transparent) 22%,
    color-mix(in srgb, var(--bg) 32%, transparent) 48%,
    color-mix(in srgb, var(--bg) 78%, transparent) 78%,
    var(--bg) 100%
  );
  -webkit-backdrop-filter: blur(1.25px);
  backdrop-filter: blur(1.25px);
  /* Masque : aucun flou sur le haut ; le blur n’apparaît qu’après ~28 %. */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 28%,
    #000 55%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 28%,
    #000 55%,
    #000 100%
  );
}
.news-tail.is-expanded .news-tail-body::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .news-tail.has-overflow:not(.is-expanded) .news-tail-body,
  .news-tail.is-expanded .news-tail-body { transition: none; }
  .news-tail.has-overflow:not(.is-expanded) .news-tail-body::after {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/*
 * Midwidth — focus-group le-radar-midwidth-fil (C) :
 * densify 600–899 (stack 1 col) ; magazine mid 900–1099 (rail étroit) ;
 * bureau ≥1100 inchangé (tracks ci-dessus).
 */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .magazine-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 0;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
  }
  .news-hero {
    padding-right: 1rem;
  }
  .brief-rail {
    padding-left: 0.85rem;
  }
  .magazine-layout--article .article-column {
    padding-right: 1rem;
  }
  .news-hero .article--feature.article--thumb.has-image {
    grid-template-columns: minmax(6rem, 8.5rem) minmax(0, 1fr);
    column-gap: 0.75rem;
  }
  .brief-rail .article--compact.article--thumb.has-image {
    grid-template-columns: minmax(3.75rem, 5.25rem) minmax(0, 1fr);
    column-gap: 0.55rem;
  }
  .news-hero .article--feature .article-title {
    font-size: 1.38rem;
    line-height: 1.18;
  }
  .brief-rail .article--compact .article-title {
    font-size: 1.12rem;
    line-height: 1.2;
  }
}

@media (min-width: 600px) and (max-width: 899.98px) {
  /* Densité stack : un peu moins d’air vertical. */
  .news-hero .article--feature,
  .brief-rail .article--compact,
  .news-tail .article--standard {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  .news-hero .article--feature.article--thumb.has-image {
    grid-template-columns: minmax(6rem, 8.5rem) minmax(0, 1fr);
    column-gap: 0.75rem;
  }
  .article--thumb.has-image {
    grid-template-columns: clamp(72px, 20%, 88px) minmax(0, 1fr);
    column-gap: 0.75rem;
  }
}

@media (max-width: 899.98px) {
  .magazine-layout {
    display: block;
    border-bottom: none;
  }
  .news-hero { padding-right: 0; border-bottom: 0; }
  .news-hero > .article--lead {
    border-bottom: 2px solid var(--rule-strong);
  }
  .magazine-layout--article .article-column {
    padding-right: 0;
    border-bottom: 0;
    display: block;
  }
  .magazine-layout--article .brief-rail--article {
    position: static;
    max-height: none;
    overflow: visible;
    min-height: 0;
    margin-top: 16px;
    padding-top: 6px;
    border-top: 2px solid var(--rule-strong);
    border-bottom: 0;
  }
  /* En bref empilé : coller au fil suivant (pas de grand vide). */
  .brief-rail {
    padding-left: 0;
    padding-bottom: 0;
    border-bottom: 0;
    border-left: 0;
    margin-bottom: 0;
  }
  .brief-rail > .article:last-child {
    padding-bottom: 8px;
  }
  .news-tail {
    margin-top: 8px;
    padding-top: 0;
  }
  .news-tail-title {
    margin-top: 8px;
  }
}
@media (max-width: 720px) {
  /* Parité LE-RADAR : moins d’air entre « Le fil étudiant » et La une. */
  .news-hero > .article--lead,
  .article--lead { padding-top: 6px; }
  .article-eyebrow,
  .article--lead .article-eyebrow { margin-bottom: 4px; }
  .news-tail-body,
  .news-tail-grid { grid-template-columns: 1fr; }
  /*
   * Titre à la une : même échelle LE-RADAR (--lead-title-size),
   * strictement sous le wordmark. L’ancien clamp(2rem, 10vw, 3rem)
   * dépassait « Le Quorum » sur téléphone.
   */
  .article--lead .article-title {
    font-size: var(--lead-title-size);
  }
  .article-meta { grid-template-columns: 1fr; }
  .article-time { justify-self: start; text-align: left; }

  /* Vedettes mobile : piste vignette un cran plus étroite (grille). */
  .news-hero .article--feature.article--thumb.has-image {
    grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr);
    column-gap: 0.65rem;
  }

  /*
   * À la une mobile : reste en colonne (eyebrow → méta → titre → byline →
   * photo pleine largeur 16:9 → extrait). Ne pas flotter la photo : le
   * 16:9 forcé dans une pastille ~140 px donnait le crop bizarre vu sur
   * l’accueil et les fiches journaliste. Les vedettes restent en grille.
   */
  .news-hero .article--lead.has-image {
    display: flex;
    flex-direction: column;
  }
  .news-hero .article--lead.has-image > .article-media {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    shape-outside: none;
  }
  .news-hero .article--lead.has-image > .article-brief {
    display: block;
    overflow: visible;
  }

  /* Moins d’air sous le bouton « Plus d’articles » avant le footer. */
  .news-tail-toggle {
    margin: 6px 0 0;
  }
  .news-tail {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/*
 * Colonne de droite de l'accueil quand « En bref » est vide (home-rail.js) :
 * tableau sportif et rubriques, sous le même titre de colonne que « En bref ».
 */
.home-rail__box + .home-rail__box { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--rule); }
.home-rail__list { list-style: none; margin: 0; padding: 0; }
.home-rail__list > li {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font: 500 0.86rem/1.4 var(--sans);
  color: var(--ink-soft, var(--ink));
}
.home-rail__list > li:last-child { border-bottom: 0; }
.home-rail__team { font-weight: 750; color: var(--ink); }
.home-rail__sport { color: var(--muted); font-size: 0.78rem; }
.home-rail__line { display: block; }
.home-rail__score { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.home-rail__score--v::before,
.home-rail__score--d::before,
.home-rail__score--n::before {
  display: inline-block;
  margin-right: 5px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  line-height: 1.5;
  vertical-align: 1px;
  color: #fff;
}
.home-rail__score--v::before { content: "V"; background: #2f7d4f; }
.home-rail__score--d::before { content: "D"; background: #a33a3a; }
.home-rail__score--n::before { content: "N"; background: #6b7280; }
.home-rail__when { color: var(--muted); font-size: 0.78rem; }
.home-rail__next { color: var(--muted); font-size: 0.8rem; }
.home-rail__list--rubriques > li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.home-rail__list--rubriques a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.home-rail__list--rubriques a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  vertical-align: 1px;
}
.home-rail__list--rubriques a:hover,
.home-rail__list--rubriques a:focus-visible { text-decoration: underline; }
.home-rail__count { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.home-rail__more {
  display: inline-block;
  margin-top: 6px;
  font: 700 0.8rem/1.4 var(--sans);
  /* Couleur du journal mêlée au texte : lisible aussi en sombre (accent foncé). */
  color: color-mix(in srgb, var(--accent) 62%, var(--ink));
  text-decoration: none;
}
.home-rail__more:hover,
.home-rail__more:focus-visible { text-decoration: underline; }
/* Téléphone et tablette : sous le fil, avec un filet. */
@media (max-width: 899.98px) {
  .home-rail { margin-top: 18px; padding: 4px 0 0; border-left: 0; border-top: 2px solid var(--rule-strong, var(--rule)); }
}
