/*
 * LE KIOSQUE — thème éditorial « radar ».
 *
 * Reprend le rythme éditorial de LE-RADAR (style.css, section WIRE) : titres
 * serif, filets fins, hiérarchie par la typographie plutôt que par la couleur.
 * Beaucoup de blanc. Une couleur par rôle.
 *
 * Les jetons sont dans tokens.css — c'est là qu'une équipe personnalise, pas ici.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /*
   * Couper le débordement horizontal ici (html + body, comme LE-RADAR).
   * overflow-x:clip seul sur body peut casser position:sticky (bandeau
   * démo + barre radio) sur certains moteurs (Safari / pairing overflow-y).
   */
  overflow-x: hidden;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Le débordement horizontal est coupé, jamais scrollable : sur iPad, un
     dépassement de 3 px suffit à rendre toute la page baladeuse. */
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─────────────── BLOC-TITRE ─────────────── */

.masthead {
  border-bottom: 1px solid var(--rule-strong);
  padding: 26px 0 14px;
  margin-bottom: 0;
}
/* Sans radio : filet de séparation normal. Avec radio + photo : voir body.with-radio. */
.masthead-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wordmark {
  /* Nom du journal en caractères de titre de journal, quelle que soit la typographie
     du site : Times New Roman, ou ses équivalents libres (Liberation Serif, Tinos : OFL). */
  font-family: var(--masthead-serif, "Times New Roman", Times, "Liberation Serif", Tinos, "Nimbus Roman", serif);
  font-weight: 700;
  font-size: var(--wordmark-size);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
}
.wordmark a { text-decoration: none; color: inherit; }
.publication-logo { display: block; max-width: min(420px, 78vw); height: clamp(56px, 7vw + 24px, 96px); width: auto; object-fit: contain; object-position: left center; }
.masthead[data-text-alignment="center"] .publication-logo { margin-inline: auto; object-position: center; }
.masthead[data-text-alignment="right"] .publication-logo { margin-left: auto; object-position: right center; }
.masthead-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
  letter-spacing: 0.01em;
}
.masthead-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Le basculeur de thème est un .masthead-tool (pastille ronde) — styles plus bas. */

/* ─────────────── NAVIGATION ─────────────── */

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.86rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
/* Couleurs de rubrique (section.color) — Accueil / Équipe restent sur --accent. */
.nav a.nav-section:hover,
.nav a.nav-section[aria-current="page"] {
  color: var(--nav-c, var(--accent));
  border-bottom-color: var(--nav-c, var(--accent));
}
:root[data-theme="dark"] .nav a.nav-section:hover,
:root[data-theme="dark"] .nav a.nav-section[aria-current="page"] {
  color: color-mix(in srgb, var(--nav-c, var(--accent)) 72%, #fff);
  border-bottom-color: color-mix(in srgb, var(--nav-c, var(--accent)) 72%, #fff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a.nav-section:hover,
  :root:not([data-theme="light"]) .nav a.nav-section[aria-current="page"] {
    color: color-mix(in srgb, var(--nav-c, var(--accent)) 72%, #fff);
    border-bottom-color: color-mix(in srgb, var(--nav-c, var(--accent)) 72%, #fff);
  }
}

/* Mobile : 1 rangée visible + peek de la 2ᵉ + bouton d’expansion. */
.nav-toggle {
  display: none;
  font-family: var(--sans);
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 12px;
  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;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
  position: relative;
  z-index: 3; /* au-dessus du dégradé de peek */
}
@media (hover: hover) and (pointer: fine) {
  .nav-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  }
}
/* iOS/Android : le :hover « collé » après un tap restait mauve. */
.nav-toggle:focus { outline: none; }
.nav-toggle:focus:not(:focus-visible) {
  border-color: var(--rule);
  color: var(--ink-soft);
  background: var(--bg-soft);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle:active {
  border-color: var(--rule);
  color: var(--ink-soft);
  background: var(--bg-soft);
}
@media (max-width: 720px) {
  .nav-shell {
    position: relative;
  }
  .nav-shell.has-overflow:not(.is-expanded) .nav {
    position: relative;
    max-height: 2.65rem; /* ~1 rangée + léger peek */
    overflow: hidden;
    padding-bottom: 4px;
    border-bottom: 0;
  }
  /* Dégradé sur le *nav* seulement — pas sur le bouton (évitait le flou bas). */
  .nav-shell.has-overflow:not(.is-expanded) .nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.1rem;
    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) 70%, transparent) 55%,
      var(--bg) 100%
    );
    /* Pas de backdrop-filter : flou collait au bouton en dessous. */
  }
  .nav-shell.has-overflow .nav-toggle {
    display: inline-flex;
    margin-top: 4px;
    margin-bottom: 2px;
    padding: 6px 12px;
  }
  .nav-shell.is-expanded .nav {
    max-height: none;
    overflow: visible;
    padding-bottom: 8px;
  }
  .nav-shell.is-expanded .nav::after {
    display: none;
  }
  .nav-shell.has-overflow .nav {
    border-bottom: 0;
  }
  .nav-shell.has-overflow {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
  }
}

/* ─────────────── BANDEAU DE DÉMONSTRATION ───────────────
 * Sticky au scroll (démo) : reste au-dessus de la barre radio.
 * --demo-banner-sticky-h = hauteur réelle (mesurée en JS) pour que
 * le contenu ne glisse pas sous un bandeau 2 lignes sur mobile. */
:root {
  --demo-banner-sticky-h: 0px;
}
html:has(.demo-banner) {
  /* 1 ligne : 7+7 padding + ~14 px de ligne ≈ 28–32 px.
   * Posé sur :root (pas sur body) pour que la mesure JS
   * (documentElement.style) ne soit pas écrasée par un jeton body. */
  --demo-banner-sticky-h: 2rem;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* min-height fixe (1 ligne) — ne pas lier à --demo-banner-sticky-h
   * (sinon circularité quand le JS mesure offsetHeight). */
  min-height: 2rem;
  background: var(--live);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px var(--pad);
  box-sizing: border-box;
  line-height: 1.25;
}
.demo-banner a { color: #fff; }
.demo-banner__lead,
.demo-banner__rest {
  display: inline;
}
/* Dans une boîte flex, les espaces autour du tiret disparaissent : « FICTIF—ESSAI ».
   La marge les remet. */
.demo-banner__sep { margin-inline: 0.45em; }
/* Mobile : 2 lignes contrôlées
 *   DÉMONSTRATION DU KIOSQUE —
 *   JOURNAL ÉTUDIANT FICTIF
 * (évite « FICTIF » seul sur la 2ᵉ ligne par wrap naturel). */
@media (max-width: 720px) {
  html:has(.demo-banner) {
    /* Fallback 2 lignes tant que le JS n’a pas mesuré. */
    --demo-banner-sticky-h: 2.85rem;
  }
  .demo-banner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .demo-banner__sep {
    display: none;
  }
  .demo-banner__lead::after {
    content: '\00a0—';
  }
  .demo-banner__lead,
  .demo-banner__rest {
    display: block;
    max-width: 100%;
  }
}

/* ─────────────── BARRE RADIO (module de LE-RADAR) ───────────────
 * radio.js pose un emplacement et une ligne d'appel à
 * https://le-radar.ca/radio-barre.js. Le module dessine la barre (son
 * style vit dans son Shadow DOM, chez LE-RADAR). Le journal ne règle que la
 * place : la colonne du journal, sous le mât. L'emplacement reste replié tant
 * que le module n'a pas dit « ready » (LE-RADAR muet : rien du tout). */
.radar-radio-slot { display: none; }
/* Place réservée pendant le chargement du module (sans attribut) : une barre
 * sombre de la hauteur de celle de LE-RADAR (68 px à l'ordinateur, 58 px au
 * téléphone), pour que la page ne saute pas quand elle arrive. « off » : replié. */
.radar-radio-slot:not([data-radar-radio]),
.radar-radio-slot[data-radar-radio="ready"] {
  display: block;
  max-width: var(--maxw, 1200px);
  margin: 10px auto 0;
  padding: 0 var(--pad, 16px);
  box-sizing: border-box;
}
/*
 * Barre radio collante (parité LE-RADAR .tuner) : quand la radio est
 * activée, l'emplacement reste en haut du viewport au défilement.
 * top = hauteur du bandeau démo (0 sans bandeau) ; encoche : on s'ancre
 * sous safe-area seulement s'il n'y a pas de bandeau (sinon double compte).
 * z-index 100, sous le bandeau démo (110), au-dessus du fil.
 * Fond de page sur l'emplacement : le contenu ne transparaît pas dans le
 * padding autour de la barre arrondie. Rien ne saute : sticky n'ôte
 * aucune place du flux. Radio éteinte : ces règles ne s'appliquent pas
 * (l'emplacement reste display:none).
 */
body.with-radio .radar-radio-slot:not([data-radar-radio]),
body.with-radio .radar-radio-slot[data-radar-radio="ready"] {
  position: sticky;
  top: var(--demo-banner-sticky-h, 0px);
  z-index: 100;
  background: var(--bg);
  /* La barre reste dans la colonne (mêmes max-width et padding que
   * le dock météo et les cartes sports). Seul le fond opaque (::after)
   * traverse le viewport, pour que le fil ne transparaîsse pas à côté
   * de la barre une fois collée. */
  isolation: isolate;
}
body.with-radio .radar-radio-slot:not([data-radar-radio])::after,
body.with-radio .radar-radio-slot[data-radar-radio="ready"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: var(--bg);
  z-index: -1;
}
body.with-radio:not(:has(.demo-banner)) .radar-radio-slot:not([data-radar-radio]),
body.with-radio:not(:has(.demo-banner)) .radar-radio-slot[data-radar-radio="ready"] {
  top: env(safe-area-inset-top, 0px);
}
/* Ancres : s'arrêter sous la barre collante, pas sous elle. */
body.with-radio #contenu,
body.with-radio .nav-wrap,
body.with-radio .sports-panel,
body.with-radio [id] {
  scroll-margin-top: calc(var(--demo-banner-sticky-h, 0px) + var(--radio-sticky-h, 5.5rem) + 8px);
}
.radar-radio-slot:not([data-radar-radio])::before {
  content: "";
  display: block;
  height: 68px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(22, 24, 30, 0.94), rgba(38, 41, 50, 0.9), rgba(22, 24, 30, 0.94));
  background-size: 200% 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  animation: radar-radio-attente 1.6s ease-in-out infinite;
}
.radar-radio-slot:not([data-radar-radio]) > .radar-radio { display: none; }
@media (max-width: 720px) {
  .radar-radio-slot:not([data-radar-radio])::before { height: 58px; }
  /* Même air qu’entre la puce météo et la carte sport (padding-top 4 px du bandeau). */
  .radar-radio-slot:not([data-radar-radio]),
  .radar-radio-slot[data-radar-radio="ready"] {
    margin-top: 4px;
  }
}
@keyframes radar-radio-attente {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-radio-slot:not([data-radar-radio])::before { animation: none; }
}
@media print {
  .radar-radio-slot::before { display: none !important; }
}
/* Petit air entre la barre radio et la rangée de rubriques. */
body.with-radio .nav-wrap {
  margin-top: 0;
  padding-top: 12px;
}
body.with-radio .nav {
  border-top: none;
}

/* Dock météo + sports sous le tuner (mobile) — LE-RADAR masthead-weather-dock. */
.masthead-weather-dock {
  display: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}
.masthead-weather-dock:not(:empty) {
  display: block;
  /* Même rythme haut/bas que LE-RADAR sports strip. */
  padding-top: 8px;
  padding-bottom: 8px;
}
/* Host docké = pleine largeur utile sous la radio. */
.masthead-weather-dock .masthead-status,
.masthead-weather-dock .masthead-status--docked {
  width: 100%;
  max-width: 100%;
}
.masthead-weather--docked,
.masthead-status--docked {
  display: flex !important;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
}
/*
 * Bandeau météo + sports (mât ou dock sous radio).
 * Dynamique : météo = largeur du nom de ville ; sports = tout l’espace restant.
 * Jamais de coupe nette du chrome (bord droit arrondi toujours visible).
 */
.masthead-status {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  width: 100%;
  overflow: visible;
}
/* Météo : largeur au contenu (ville longue/courte). */
.masthead-status .masthead-weather {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, max-content);
  overflow: visible;
}
.masthead-status .weather-chip,
.masthead-status .masthead-weather__city {
  min-width: 0;
  width: max-content;
  max-width: min(100%, 22rem);
  box-sizing: border-box;
}
/* Sports : occupe l’espace libre après la météo (marquee si trop long). */
.masthead-status .masthead-sports {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
  display: flex;
}
.masthead-status .sports-chip,
.masthead-status .masthead-sports__chip {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 721px) {
  .masthead-status {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .masthead-status .masthead-weather {
    flex: 0 1 auto;
    max-width: min(45vw, 18rem);
  }
  .masthead-status .masthead-sports {
    flex: 1 1 auto;
    margin-left: 0;
    min-width: 0;
    max-width: none;
  }
  .masthead-status .weather-chip,
  .masthead-status .masthead-weather__city {
    width: max-content;
    max-width: 100%;
  }
  .masthead-status .sports-chip,
  .masthead-status .masthead-sports__chip {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}
/*
 * Dock sous la radio (≤720px) : météo au contenu, sports = reste de la rangée.
 */
.masthead-status--docked,
.masthead-weather--docked {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.masthead-status--docked .masthead-weather,
.masthead-weather--docked.masthead-weather {
  /* Largeur = nom de ville ; ne grossit pas, peut rétrécir si la rangée déborde. */
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  overflow: visible;
}
.masthead-status--docked .masthead-sports {
  /* Tout l’espace restant après la météo (dynamique). */
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  overflow: visible;
}
.masthead-weather--docked .weather-chip,
.masthead-weather--docked .masthead-weather__city,
.masthead-status--docked .weather-chip,
.masthead-status--docked .masthead-weather__city {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: flex-start;
}
.masthead-status--docked .sports-chip,
.masthead-weather--docked .sports-chip,
.masthead-status--docked .masthead-sports__chip {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: flex-start;
  /* overflow hidden ici = radius + marquee ; le cadre reste arrondi. */
  overflow: hidden;
  border-radius: 6px;
}
/*
 * Dock sous la radio (mobile) : même famille ardoise LE-RADAR
 * (verre sombre + texte clair), y compris en thème clair.
 * L’ancien panneau --bg-soft + texte blanc était illisible.
 */
.masthead-weather-dock .weather-chip,
.masthead-weather-dock .masthead-weather__city,
.masthead-weather-dock .sports-chip {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, var(--sports-tone, #c8102e)) 16%, transparent) 0%, transparent 55%),
    rgba(54, 59, 68, 0.72);
  color: rgba(245, 246, 248, 0.96);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 3px 10px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
}
.masthead-weather-dock .weather-chip__name,
.masthead-weather-dock .masthead-weather__name,
.masthead-weather-dock .weather-chip__temp,
.masthead-weather-dock .masthead-weather__temp,
.masthead-weather-dock .sports-chip__line {
  color: rgba(245, 246, 248, 0.96);
}
.masthead-weather-dock .weather-chip__temp,
.masthead-weather-dock .masthead-weather__temp,
.masthead-weather-dock .sports-chip__score {
  color: #fff;
}
:root[data-theme="dark"] .masthead-weather-dock .weather-chip,
:root[data-theme="dark"] .masthead-weather-dock .masthead-weather__city,
:root[data-theme="dark"] .masthead-weather-dock .sports-chip {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, var(--sports-tone, #c8102e)) 22%, transparent) 0%, transparent 55%),
    rgba(22, 24, 30, 0.92);
  color: rgba(245, 246, 248, 0.96);
}

/* ─────────────── FIL D'ARTICLES ─────────────── */

.wire { padding-bottom: 48px; }
@media (max-width: 720px) {
  .wire { padding-bottom: 16px; }
}

.wire-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  /* Densité type LE-RADAR après bandeau météo/sports. */
  margin-top: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--rule-strong);
}
@media (max-width: 720px) {
  .wire-head { margin-top: 0; }
  .wire-title { font-size: 1.25rem; /* 20 px, parité LE-RADAR */ }
}
.wire-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.wire-status { font-size: 12px; color: var(--muted); }

.news-list { margin-top: 4px; }

/* Les cartes de liste vivent exclusivement dans source-view.css : même
   contrat LE-RADAR pour le build statique et le démo navigateur. */

/* ─────────────── PAGE D'ARTICLE ─────────────── */

.post { padding: 26px 0 80px; }
/* Page article dans la grille magazine : pas de largeur artificielle
   qui décale le texte par rapport au reste du site. Padding bas modéré
   pour limiter le vide sous l’article face à En bref. */
.post--in-magazine {
  padding: 14px 32px 28px 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.wire--article { padding-top: 8px; padding-bottom: 40px; }
.article-column { min-width: 0; }

/*
 * Rubrique au-dessus du titre — même sémantique visuelle que .article-section
 * des cartes (pastille + couleur de section), pour ne plus « disparaître ».
 */
.post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 2px;
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c, var(--accent));
  text-decoration: none;
  line-height: 1.2;
}
.post-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}
.post-eyebrow:hover {
  color: color-mix(in srgb, var(--c, var(--accent)) 78%, #000);
}
.post-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--lead-title-size);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}
.post-subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.post-dek {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 0.86rem;
  color: var(--muted);
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--rule);
}
.post-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-meta a:hover { color: var(--accent); }

/* Flux lead + corps : le float d’impression partage ce conteneur. */
.post-flow {
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
}
/* Lead article (écran) : pleine largeur de colonne, place réservée au chargement. */
.post-lead {
  display: block;
  margin: 10px 0 8px;
  max-width: 100%;
}
.post-lead img,
.post-lead__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 12rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-soft, #eceef2);
}
.post-lead figcaption,
.post-lead__credit {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

.post-body {
  font-size: 1.06rem;
  line-height: 1.72;
  margin-top: 14px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Justifié sur le prose ; titres / code / listes gardent l’alignement naturel. */
.post-body p,
.post-body li {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.post-body h2,
.post-body h3,
.post-body h4,
.post-body pre,
.post-body table {
  text-align: start;
  hyphens: none;
  -webkit-hyphens: none;
}
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 1.9em;
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  margin-top: 1.6em;
}
.post-body a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* Photos dans le corps (pas le lead) : flottent, le texte les épouse. */
.post-body {
  overflow: visible;
}
.post-body::after {
  content: "";
  display: table;
  clear: both;
}
.post-body figure.post-figure,
.post-body figure:not(.post-lead) {
  float: right;
  clear: right;
  width: min(42%, 17.5rem);
  max-width: 100%;
  margin: 0.15em 0 0.85em 1.15em;
  padding: 0;
  border: 0;
}
.post-body figure.post-figure--left {
  float: left;
  clear: left;
  margin: 0.15em 1.15em 0.85em 0;
}
.post-body figure.post-figure--wide {
  float: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 1.1em 0;
}
.post-body figure img,
.post-body p:has(> img:only-child) img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--bg-soft, #eceef2);
}
/* Markdown « ![alt](src) » seul dans un paragraphe → même flottement. */
.post-body p:has(> img:only-child) {
  float: right;
  clear: right;
  width: min(42%, 17.5rem);
  max-width: 100%;
  margin: 0.15em 0 0.85em 1.15em;
}
.post-body figure figcaption,
.post-body figure .post-figure__credit {
  display: block;
  margin-top: 0.4em;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: start;
  hyphens: none;
}
/* Les titres de section reprennent toute la largeur sous les flottants. */
.post-body h2,
.post-body h3 {
  clear: both;
}
.post-body img { max-width: 100%; height: auto; border-radius: 6px; }
.post-body blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.post-body pre {
  background: var(--bg-soft);
  padding: 14px 16px;
  border-radius: 6px;
  overflow-x: auto;
}
.post-body pre code { background: none; padding: 0; }
.post-body table { width: 100%; border-collapse: collapse; }
.post-body th, .post-body td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
}

.post-tags {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 11px;
  text-decoration: none;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ─────────────── AUTEUR·RICE / ÉQUIPE ─────────────── */

.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.author-card--alumni { opacity: 0.96; }
.author-card__body { min-width: 0; flex: 1 1 auto; }
.author-avatar-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}
.author-avatar {
  --author-avatar-size: 88px;
  position: relative;
  display: block;
  width: var(--author-avatar-size);
  height: var(--author-avatar-size);
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft, #eceae6);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.35);
}
.author-avatar__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-avatar__initials {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--sans);
  font-size: calc(var(--author-avatar-size) * 0.28);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: linear-gradient(145deg, var(--bg-soft, #eceae6), color-mix(in srgb, var(--accent) 12%, #fff));
}
.author-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.author-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.3;
}
.author-role { font-size: 0.84rem; color: var(--muted); margin: 0 0 8px; }
.author-cohort {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.author-bio { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* En-tête fiche auteur·rice individuelle */
.author-page-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  /* Même air sous la nav que .wire-head (évite de coller la ligne du menu). */
  margin: 22px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.author-page-head > .author-avatar,
.author-page-head > .author-avatar-link {
  flex: 0 0 auto;
  align-self: flex-start;
}
.author-page-head .author-avatar {
  /* Évite le flash d’initiales / reflow quand la photo charge. */
  background: var(--bg-soft, #eceae6);
}
.author-page-head .author-avatar__img {
  /* Chargement : fond opaque, pas de mélange avec les initiales. */
  background: var(--bg-soft, #eceae6);
}
.author-page-head__text { min-width: 0; flex: 1 1 auto; }
.author-page-head .author-bio { margin-top: 8px; max-width: 42rem; }

/* Équipe : colonne principale + rail En bref (même grille magazine). */
.magazine-layout--team {
  align-items: start;
}
.magazine-layout--team .team-column {
  min-width: 0;
  padding-right: 32px;
  border-bottom: none;
}
.magazine-layout--team .team-column > .author-card:last-child {
  border-bottom: 0;
}
.team-alumni-head {
  margin-top: 28px;
  padding-top: 8px;
}
/* Aligné midwidth C (magazine mid dès 900 px). */
@media (max-width: 899.98px) {
  .magazine-layout--team {
    grid-template-columns: 1fr;
  }
  .magazine-layout--team .team-column {
    padding-right: 0;
  }
  .magazine-layout--team .brief-rail {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
    margin-top: 12px;
    padding-top: 8px;
  }
  .author-page-head {
    gap: 14px;
  }
}

/* ─────────────── DÉFILEMENT DES TITRES QUI DÉBORDENT ─────────────── */
/*
 * Un titre qui ne tient pas défile doucement plutôt que d'être tronqué par une
 * ellipse : on ne cache pas la fin d'un titre de journal. Repris du motif
 * `applyMarquee` de LE-RADAR. `will-change: transform` suffit — empiler les
 * promotions de couche GPU rend le texte flou sur écran dense.
 */
.is-marquee {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}
.is-marquee > span {
  display: inline-block;
  will-change: transform;
  animation: marquee-slide var(--marquee-duration, 12s) linear infinite alternate;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift, 0px)); }
}
/* Mouvement réduit : on retombe sur l'ellipse, seul repli acceptable. */
@media (prefers-reduced-motion: reduce) {
  .is-marquee { text-overflow: ellipsis; }
  .is-marquee > span { animation: none; }
}

/* ─────────────── PIED DE PAGE (inspiré LE-RADAR site-foot) ─────────────── */

.site-foot,
.footer {
  margin-top: 20px;
  /* Assez de place sous la dernière ligne pour les deux boutons flottants. */
  padding: 22px 0 88px;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .site-foot,
  .footer {
    margin-top: 12px;
    padding: 18px 0 32px;
  }
}
.site-foot a,
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.site-foot a:hover,
.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-foot__brand {
  margin: 0 0 16px;
}
.site-foot__wordmark {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.site-foot__signature {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
/* Menu principal (même structure que .nav en haut). */
.site-foot__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.site-foot__nav a {
  color: var(--ink);
  font-weight: 650;
}
.site-foot__nav a[aria-current="page"] {
  color: var(--accent);
}
.site-foot__nav a.nav-section:hover,
.site-foot__nav a.nav-section[aria-current="page"] {
  color: var(--nav-c, var(--accent));
}
:root[data-theme="dark"] .site-foot__nav a.nav-section:hover,
:root[data-theme="dark"] .site-foot__nav a.nav-section[aria-current="page"] {
  color: color-mix(in srgb, var(--nav-c, var(--accent)) 72%, #fff);
}
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 18px;
  font-size: 0.88rem;
}
.site-foot__sep {
  color: var(--rule-strong);
  opacity: 0.45;
  user-select: none;
}
.site-foot__credit {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.site-foot__contact {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.site-foot__legal {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.site-foot__built,
.footer-built {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0.9;
}
.site-foot__built a {
  font-weight: 600;
}
.site-foot__built .site-foot__sep {
  margin: 0 0.4em;
}
.site-foot__redaction {
  font-weight: 500;
  color: inherit;
}
.site-foot__redaction:hover,
.site-foot__redaction:focus-visible {
  color: var(--accent);
}

/* ─────────────── ARCHIVES (catalogue chronologique / SEO) ─────────────── */
/* Inspiré des pages SEO LE-RADAR, adapté à une source unique (ce journal). */

.archive-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
}
.archive-crumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.archive-crumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.archive-crumbs__sep { opacity: 0.55; }

.archive-lead {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.archive-back {
  margin: 12px 0 0;
  font-size: 0.9rem;
}
.archive-back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.archive-back a:hover { text-decoration: underline; text-underline-offset: 2px; }

.archive-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}
.archive-year-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.archive-year-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}
.archive-year-nav__count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.archive-year {
  margin: 32px 0 8px;
}
.archive-year__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule-strong);
}
.archive-year__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.archive-year__title a {
  color: inherit;
  text-decoration: none;
}
.archive-year__title a:hover { color: var(--accent); }
.archive-year__count {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/*
 * Fiches d’archive riches (contenu local du journal) :
 * cartes vedette avec vignette, extrait et « Lire la suite ».
 */
.archive-year__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.archive-entry {
  border-bottom: 1px solid var(--rule);
}
.archive-entry:last-child { border-bottom: 0; }
.archive-entry > .article {
  border-bottom: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}
.archive-entry__badge {
  margin: 12px 0 0;
  padding: 0;
}
.archive-record__badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.archive-entry--off-wire > .article {
  opacity: 0.96;
}

/* ─────────────── PAGINATION / LISTES ─────────────── */

.section-intro {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 10px 0 0;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

/* ─────────────── MÂT ÉDITORIAL ─────────────── */

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: 12px 0 16px;
  background: var(--bg-soft);
}
.masthead-background,
.masthead-background-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.masthead-background { object-fit: cover; z-index: -3; }
/* Fondu shuffle (LE-RADAR bg-photo-transition) — entre base (-3) et voile (-1). */
.masthead-background-transition {
  z-index: -2;
  opacity: 0;
  transition: opacity 480ms ease;
  pointer-events: none;
}
.masthead-background-transition.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .masthead-background-transition { transition: none; }
}
/* Voile minimal façon LE-RADAR (lisibilité = ombres de texte, pas film noir). */
.masthead-background-shade {
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.14) 0%,
      transparent 28%,
      transparent 72%,
      rgba(10, 12, 16, 0.12) 100%
    ),
    rgba(5, 8, 11, calc(var(--masthead-overlay, .42) * 0.22));
}
.masthead--illustrated {
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  /*
   * Bande fixe façon journal (Le Quorum) — pas hauteur « contenu » comme
   * LE-RADAR. Ratio ~3,55, plafonnée pour un strip photo stable (wordmark +
   * outils + photo) sans s’étirer avec le viewport. Le bandeau démo rouge
   * (hors .masthead) ne compte pas dans cette hauteur.
   */
  --masthead-ar: 3.55;
  height: clamp(156px, calc(100vw / var(--masthead-ar)), 214px);
  min-height: 156px;
  max-height: 214px;
  padding: 10px 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.masthead--illustrated > .wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  width: 100%;
}
/* Jointure mât → radio : pas de filet clair (LE-RADAR). Classe posée au build. */
body.with-radio .masthead--illustrated {
  border-bottom-color: var(--tuner-session-base, color-mix(in srgb, var(--accent, #6c2163) 22%, #14101a));
}
/*
 * Lettrage sur photo — multi-couches LE-RADAR (style.css wordmark-mark /
 * masthead-date) : lisible sur ciel clair / béton sans voile global.
 */
.masthead--illustrated .wordmark,
.masthead--illustrated .masthead-tagline,
.masthead--illustrated .masthead-meta,
.masthead--illustrated .masthead-clock {
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.masthead--illustrated .wordmark {
  position: relative;
  isolation: isolate;
  /* Même échelle que --radar-wordmark-size (LE-RADAR). */
  font-size: var(--wordmark-size, clamp(2.05rem, 6.8vw + 0.3rem, 4.25rem));
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.16);
}
/* Halo LE-RADAR (quasi transparent) derrière le titre. */
.masthead--illustrated .wordmark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: -1;
  width: min(40rem, 90vw);
  height: min(7.2rem, 32vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse 48% 38% at 50% 48%,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.02) 50%,
    transparent 74%
  );
}
.masthead--illustrated .masthead-tagline {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.32),
    0 0 12px rgba(0, 0, 0, 0.2);
}
.masthead--illustrated .masthead-meta,
.masthead--illustrated .masthead-clock {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(0, 0, 0, 0.22);
}
.masthead--illustrated .masthead-meta {
  color: rgba(255, 255, 255, 0.96);
}
.masthead--illustrated .masthead-utility {
  padding-bottom: 6px;
  min-height: 0;
}
.masthead-utility {
  min-height: 42px;
  display: grid;
  /* Colonne milieu (météo+sports) : minmax(0,1fr) pour ne pas forcer le clip. */
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 12px;
  min-width: 0;
  overflow: visible;
}
.masthead-clock {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
}
.masthead-clock span,
.masthead-clock time { display: block; }
/*
 * Sur photo : une ligne date · heure (parité LE-RADAR), point médian centré.
 * Invisible tant que la 1ʳᵉ image n’est pas peinte (masthead--photo-ready).
 */
.masthead--illustrated:not(.masthead--photo-ready) .masthead-clock {
  opacity: 0;
  pointer-events: none;
}
.masthead--illustrated.masthead--photo-ready .masthead-clock {
  opacity: 1;
  transition: opacity 220ms ease-out;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  max-width: 100%;
  min-width: 0;
}
.masthead--illustrated.masthead--photo-ready .masthead-clock span,
.masthead--illustrated.masthead--photo-ready .masthead-clock time {
  display: inline;
  white-space: nowrap;
}
.masthead--illustrated.masthead--photo-ready .masthead-clock time {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.masthead--illustrated.masthead--photo-ready .masthead-clock time::before {
  content: "·";
  display: inline-block;
  margin: 0 0.42em;
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(-0.04em);
  opacity: 0.55;
}
.masthead-weather {
  display: flex;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

/*
 * Puces météo — style « villes secondaires » LE-RADAR (ardoise, pas panneau pâle).
 * Le nom de localité est TOUJOURS entier (multi-cégeps : « Saint-Louis-du-Ha! Ha! »,
 * « Rivière-du-Loup », « Trois-Rivières », etc.) — pas d’ellipsis / clipping.
 * La puce s’adapte au contenu ; le mât reste scrollable si plusieurs villes.
 */
.weather-chip,
.masthead-weather__city {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  padding: 4px 12px 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  /* Ardoise LE-RADAR : fond sombre + texte clair en clair comme en sombre. */
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, #c8102e) 16%, transparent) 0%, transparent 55%),
    rgba(54, 59, 68, 0.72);
  color: rgba(245, 246, 248, 0.96);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 3px 10px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
a.weather-chip:focus-visible,
a.masthead-weather__city:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--weather-tone, #c8102e) 70%, #fff);
  outline-offset: 2px;
}
/* Mât photo : verre un peu plus dense (comme LE-RADAR #bg-photo-layer). */
.masthead--illustrated .weather-chip,
.masthead--illustrated .masthead-weather__city {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, #c8102e) 22%, transparent) 0%, transparent 55%),
    rgba(22, 24, 30, 0.82);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 3px 12px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
/* Clair + photo : même famille ardoise, verre un peu plus clair (LE-RADAR). */
:root[data-theme="light"] .masthead--illustrated .weather-chip,
:root[data-theme="light"] .masthead--illustrated .masthead-weather__city {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, #c8102e) 16%, transparent) 0%, transparent 55%),
    rgba(54, 59, 68, 0.68);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 3px 10px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
:root[data-theme="dark"] .weather-chip,
:root[data-theme="dark"] .masthead-weather__city {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, #c8102e) 22%, transparent) 0%, transparent 55%),
    rgba(22, 24, 30, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
}
@media (hover: hover) and (pointer: fine) {
  .weather-chip:hover,
  .masthead-weather__city:hover {
    border-color: color-mix(in srgb, var(--weather-tone, #c8102e) 55%, rgba(255, 255, 255, 0.22));
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, #c8102e) 28%, transparent) 0%, transparent 55%),
      rgba(32, 35, 44, 0.9);
  }
  :root[data-theme="light"] .masthead--illustrated .weather-chip:hover,
  :root[data-theme="light"] .masthead--illustrated .masthead-weather__city:hover {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--weather-tone, #c8102e) 23%, transparent) 0%, transparent 55%),
      rgba(67, 73, 84, 0.78);
  }
}
.weather-icon-meteocon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  filter: brightness(1.12) saturate(1.05);
}
/* Prévisions de la puce (max/min, demain) : seulement dans le dock du téléphone. */
.weather-chip__today,
.weather-chip__tomorrow { display: none; }
/* Dock sous la radio (tous les formats) : max/min du jour et demain visibles. */
.masthead-weather-dock .weather-chip__today,
.masthead-weather-dock .weather-chip__tomorrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.masthead-weather-dock .weather-chip,
.masthead-status--docked .weather-chip {
  height: auto !important;
  max-height: none !important;
  min-height: var(--mat-h, 32px);
}
/* Puce d'attente (requête météo en cours) : même gabarit, icône en rond. */
.weather-icon-attente {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  filter: none;
}
.weather-chip--attente { pointer-events: none; }
.weather-chip--attente .weather-chip__temp { opacity: 0.6; }
/* Texte toujours clair sur ardoise — nom de ville entier (pas d’ellipsis).
 * flex-shrink: 0 : le nom ne se compresse pas sous la température
 * (sinon overflow:visible peignait « Ha!15° » sans espace visible). */
.weather-chip__name,
.masthead-weather__name {
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(245, 246, 248, 0.96);
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.weather-chip__temp,
.masthead-weather__temp {
  flex: 0 0 auto;
  /* Air garanti après le nom (y compris « Ha! »), en plus du gap flex. */
  margin-inline-start: 0.2em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  opacity: 0.98;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/*
 * Puce sports — famille ardoise LE-RADAR (sports-chip-look C + 2 lignes).
 * Haut : noms + score / « reçoit »|« à » ; bas : date · sport.
 * Pas de marquee sur le score (focus-group weather-fit A) ; rotation après lecture.
 */
.masthead-sports {
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  overflow: visible;
}
.sports-chip,
.masthead-sports__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  flex: 1 1 auto;
  padding: 4px 10px 4px 8px;
  border: 1.5px solid color-mix(in srgb, var(--accent, #6c2163) 58%, rgba(255, 255, 255, 0.22));
  border-radius: 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--sports-tone, var(--sports-brand, #6c2163)) 34%, transparent) 0%, transparent 55%),
    rgba(42, 46, 54, 0.92);
  color: rgba(245, 246, 248, 0.96);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px color-mix(in srgb, var(--accent, #6c2163) 22%, transparent);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* 2 lignes lecture (parité LE-RADAR .sports-chip--match). */
.sports-chip--match {
  white-space: normal;
  align-items: center;
  min-height: 44px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.sports-chip__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}
.sports-chip--match .sports-chip__line {
  flex: 0 0 auto;
  display: block;
  max-width: 100%;
  overflow: hidden;
}
.sports-chip--match .sports-chip__line-inner {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.sports-chip--match .sports-chip__sub {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}
.sports-chip--match .sports-chip__sub-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.sports-chip--match .sports-chip__name {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(245, 246, 248, 0.96);
}
.sports-chip--match .sports-chip__vs {
  opacity: 0.72;
  font-weight: 650;
  text-transform: none;
  font-size: 0.92em;
}
a.sports-chip:focus-visible,
a.masthead-sports__chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sports-tone, #6c2163) 70%, #fff);
  outline-offset: 2px;
}
.masthead--illustrated .sports-chip,
.masthead--illustrated .masthead-sports__chip {
  border-color: color-mix(in srgb, var(--accent, #6c2163) 48%, rgba(255, 255, 255, 0.16));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--sports-tone, var(--sports-brand, #6c2163)) 34%, transparent) 0%, transparent 55%),
    rgba(22, 24, 30, 0.88);
}
:root[data-theme="dark"] .sports-chip,
:root[data-theme="dark"] .masthead-sports__chip {
  border-color: color-mix(in srgb, var(--accent, #6c2163) 48%, rgba(255, 255, 255, 0.14));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--sports-tone, var(--sports-brand, #6c2163)) 32%, transparent) 0%, transparent 55%),
    rgba(22, 24, 30, 0.92);
}
/* Pulse bordure pourpre au repos (parité LE-RADAR rim-glow). */
.sports-chip--match {
  animation: sports-chip-rim-glow 3.2s ease-in-out infinite;
}
@keyframes sports-chip-rim-glow {
  0%, 100% {
    border-color: color-mix(in srgb, var(--accent, #6c2163) 52%, rgba(255, 255, 255, 0.2));
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 1px color-mix(in srgb, var(--accent, #6c2163) 18%, transparent);
  }
  50% {
    border-color: color-mix(in srgb, var(--accent, #6c2163) 78%, rgba(255, 255, 255, 0.3));
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 0 0 1px color-mix(in srgb, var(--accent, #6c2163) 36%, transparent),
      0 0 10px 0 color-mix(in srgb, var(--accent, #6c2163) 22%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sports-chip--match { animation: none; }
}
.sports-chip__glyph {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}
/* Pastille V/D — repère immédiat (style bandeaux RDS / scoreboard). */
.sports-chip__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 3px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  background: color-mix(in srgb, var(--sports-tone, #6c2163) 88%, #000);
}
.sports-chip__badge--w { background: #2f8f5b; }
.sports-chip__badge--l { background: #b84848; }
.sports-chip__badge--d { background: #6b7c8c; }
/*
 * Viewport texte : seul endroit où le scoreboard peut « clipper ».
 * Glyph + badge restent hors viewport → carte entière à gauche.
 * Marquee + masque en fondu : pas de coupure nette en milieu de lettre
 * sur le bord droit de la pilule.
 */
.sports-chip__line {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  letter-spacing: 0.02em;
  color: rgba(245, 246, 248, 0.96);
  /* Garde un peu d’air avant le bord droit du chrome de la carte. */
  margin-right: 1px;
}
.sports-chip__line-inner {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  font-weight: 700;
  vertical-align: middle;
}
/*
 * Marquee scoreboard (repère weather-name-scroll / tunerMarquee LE-RADAR) :
 * pauses en début et fin de course pour lire le score avant de bouger,
 * et avant le retour. Sans hold, le texte part trop vite.
 *
 * Pas de mask-image en fondu : un dégradé ~0,65 rem laissait les deux bouts
 * du libellé (mobile) flous en permanence, y compris aux pauses. Clip net
 * (overflow:hidden sur .sports-chip__line) + shift JS +2 px suffisent.
 */
.sports-chip__line.is-sports-marquee .sports-chip__line-inner {
  animation: sports-marquee-slide var(--sports-marquee-duration, 10s) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes sports-marquee-slide {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(var(--sports-marquee-shift, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .sports-chip__line.is-sports-marquee .sports-chip__line-inner {
    animation: none;
  }
  .sports-chip__line {
    text-overflow: ellipsis;
  }
  .sports-chip__line-inner {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.sports-chip__code,
.sports-chip__opp {
  font-weight: 800;
  letter-spacing: 0.04em;
}
/* Bureau : noms d’équipes (pas codes) — graisse un peu plus légère pour la lecture. */
.sports-chip__name {
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sports-chip__name.sports-chip__opp {
  font-weight: 650;
  opacity: 0.96;
}
.sports-chip__score {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 1px;
}
.sports-chip__vs {
  opacity: 0.72;
  font-weight: 650;
  text-transform: lowercase;
  font-size: 0.92em;
}
.sports-chip__when {
  font-weight: 650;
  opacity: 0.88;
  font-variant-numeric: tabular-nums;
}
.sports-chip[data-fictional="true"]::after {
  content: '';
}
/*
 * Rotation soft LE-RADAR : leave (0,42 s) puis arrive (0,64 s) — pas le « clac » gare.
 */
.sports-chip.is-leaving,
.masthead-sports__chip.is-leaving {
  animation: sports-chip-leave 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}
.sports-chip.is-arriving,
.masthead-sports__chip.is-arriving {
  animation: sports-chip-arrive 0.64s cubic-bezier(0.33, 0.1, 0.2, 1) both;
}
@keyframes sports-chip-leave {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to   { opacity: 0; transform: translateY(-5%); filter: blur(0.4px); }
}
@keyframes sports-chip-arrive {
  from { opacity: 0; transform: translateY(8%); filter: blur(0.5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sports-chip.is-arriving,
  .masthead-sports__chip.is-arriving,
  .sports-chip.is-leaving,
  .masthead-sports__chip.is-leaving {
    animation: none;
    filter: none;
  }
}

/* ─── Page /sports/ — tableau résultats (inspiré grilles SEO LE-RADAR) ─── */
.wire--sports { padding-bottom: 48px; }
.sports-board-meta {
  margin: -4px 0 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.sports-board-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.sports-board {
  display: grid;
  /* Parité LE-RADAR : min ~288px pour nom + ligne de match lisibles. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 288px), 1fr));
  gap: 14px;
  align-items: start;
}
.sports-panel {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-soft);
  padding: 14px 14px 12px;
  border-top: 3px solid var(--sports-panel-c, var(--accent));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 0;
  scroll-margin-top: 5.5rem; /* sous barre radio sticky */
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
/*
 * Deep-link puce mât (?team=) — carte formation ciblée (parité LE-RADAR).
 * Seule la bordure / le halo pulse ; le fond reste lisible.
 */
.sports-panel.is-spotlight {
  background: var(--bg-soft);
  border-color: var(--sports-panel-c, var(--accent));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 42%, transparent),
    0 8px 22px -12px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 38%, transparent);
  animation: sports-panel-spotlight-pulse 2.4s ease-in-out infinite;
}
@keyframes sports-panel-spotlight-pulse {
  0%, 100% {
    border-color: color-mix(in srgb, var(--sports-panel-c, var(--accent)) 72%, var(--rule));
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 28%, transparent),
      0 6px 18px -12px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 30%, transparent);
  }
  50% {
    border-color: var(--sports-panel-c, var(--accent));
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 48%, transparent),
      0 10px 26px -10px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 42%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sports-panel.is-spotlight {
    animation: none;
    border-color: var(--sports-panel-c, var(--accent));
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 40%, transparent),
      0 6px 18px -12px color-mix(in srgb, var(--sports-panel-c, var(--accent)) 32%, transparent);
  }
}
.sports-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.sports-panel__glyph {
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 2px;
}
.sports-panel__identity {
  min-width: 0;
  flex: 1 1 auto;
}
/* Identité : surnom / marque en tête (parité LE-RADAR). */
.sports-panel__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sports-panel__name--branded .sports-panel__brand {
  color: color-mix(in srgb, var(--sports-panel-c, var(--accent)) 42%, var(--ink));
}
.sports-panel__brand {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sports-panel__code {
  font-family: var(--sans);
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
  opacity: 0.85;
}
.sports-panel__sex {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  border-radius: 999px;
  padding: 2px 7px;
  flex: 0 0 auto;
}
.sports-panel__sex--f {
  color: #9d174d;
  background: color-mix(in srgb, #db2777 16%, transparent);
  border: 1px solid color-mix(in srgb, #db2777 36%, transparent);
}
.sports-panel__sex--m {
  color: #1e3a8a;
  background: color-mix(in srgb, #3b82f6 14%, transparent);
  border: 1px solid color-mix(in srgb, #3b82f6 32%, transparent);
}
.sports-panel__sex--x {
  color: var(--muted);
  background: color-mix(in srgb, var(--rule) 35%, transparent);
  border: 1px solid var(--rule);
}
.sports-result--live .sports-result__score--next {
  color: #b91c1c;
  font-weight: 800;
}
:root[data-theme="dark"] .sports-result--live .sports-result__score--next {
  color: #fecaca;
}
.sports-panel__official {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
}
.sports-panel__results-source {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sports-panel__results-source:hover,
.sports-panel__results-source:focus-visible {
  color: var(--accent, #6c2163);
}
.sports-panel__meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.sports-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Grille partagée : toutes les lignes (score + À venir) alignent les colonnes. */
  display: grid;
  grid-template-columns: 4.75rem 4.5rem minmax(0, 1fr) 1.35rem;
  column-gap: 8px;
}
.sports-panel__empty {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}
.sports-result {
  /* subgrid = même pistes que la liste (repli : mêmes largeurs fixes). */
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: start;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--rule) 78%, transparent);
}
@supports not (grid-template-columns: subgrid) {
  .sports-panel__list { display: block; }
  .sports-result {
    display: grid;
    grid-template-columns: 4.75rem 4.5rem minmax(0, 1fr) 1.35rem;
    column-gap: 8px;
    grid-column: auto;
  }
}
/* Prochain match : même grille ; seul le bandeau change (pas de décalage vs). */
.sports-result--next {
  border-left: 3px solid var(--status-upcoming-mid, #bd8a18);
  margin-inline: -6px;
  padding-inline: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--status-upcoming-soft, #e8c07a) 16%, transparent);
}
.sports-result:first-child {
  border-top: 0;
  padding-top: 0;
}
.sports-result__time {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
}
.sports-result__day {
  display: block;
}
.sports-result__clock {
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
}
.sports-result__score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.sports-result__score--next {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--status-upcoming, #9a6900);
  white-space: normal;
  line-height: 1.25;
}
.sports-result__title {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.sports-result__vs {
  opacity: 0.65;
  margin-right: 3px;
  font-weight: 600;
}
/* Adversaire : surnom en gras ; école courte sur sa ligne (pas de coupe verticale). */
.sports-result__opp {
  font-weight: 700;
  color: var(--ink);
}
.sports-result__opp-school,
.sports-result__inst {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
/* Domicile / extérieur — pastille lisible clair + sombre. */
.sports-result__venue {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: 999px;
  padding: 3px 8px;
}
.sports-result__venue--home {
  color: #145c38;
  background: color-mix(in srgb, #3d9a6a 22%, #fff);
  border: 1px solid color-mix(in srgb, #3d9a6a 48%, transparent);
}
.sports-result__venue--away {
  color: #6b3f0e;
  background: color-mix(in srgb, #c4922a 24%, #fff);
  border: 1px solid color-mix(in srgb, #c4922a 48%, transparent);
}
/* Mode sombre : texte clair sur pastille teintée (AA sur fond carte). */
:root[data-theme="dark"] .sports-result__venue--home {
  color: #b8f0d0;
  background: color-mix(in srgb, #3d9a6a 32%, #1a1d22);
  border-color: color-mix(in srgb, #6bcf98 55%, transparent);
}
:root[data-theme="dark"] .sports-result__venue--away {
  color: #f5d89a;
  background: color-mix(in srgb, #c4922a 30%, #1a1d22);
  border-color: color-mix(in srgb, #e0b45a 55%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sports-result__venue--home {
    color: #b8f0d0;
    background: color-mix(in srgb, #3d9a6a 32%, #1a1d22);
    border-color: color-mix(in srgb, #6bcf98 55%, transparent);
  }
  :root:not([data-theme="light"]) .sports-result__venue--away {
    color: #f5d89a;
    background: color-mix(in srgb, #c4922a 30%, #1a1d22);
    border-color: color-mix(in srgb, #e0b45a 55%, transparent);
  }
}
/* Repli tableau : 1 rangée de cartes + « Plus de matchs » (parité suite du fil). */
.sports-board-wrap {
  margin: 0 0 18px;
}
.sports-board-wrap .sports-board-scroll {
  margin-bottom: 0;
}
.sports-board-wrap.has-overflow:not(.is-expanded) .sports-board-scroll {
  overflow: hidden;
  max-height: var(--sports-board-collapsed-h, 22rem);
}
.sports-board-wrap.is-expanded .sports-board-scroll {
  max-height: none !important;
  overflow: visible;
}
.sports-board-toggle {
  display: none;
  font-family: var(--sans);
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 12px 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;
  appearance: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.sports-board-wrap.has-overflow .sports-board-toggle { display: inline-flex; }
/* Toggle reste visible déplié (« Moins de matchs ») pour re-réduire. */
@media (hover: hover) and (pointer: fine) {
  .sports-board-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  }
}
.sports-board-toggle:focus { outline: none; }
.sports-board-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sports-result__badge {
  justify-self: end;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.sports-result--W {
  border-left: 3px solid #3d9a6a;
  margin-inline: -6px;
  padding-inline: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, #3d9a6a 9%, transparent);
}
.sports-result--W .sports-result__badge { color: #2f7a54; }
.sports-result--L {
  border-left: 3px solid #c45c5c;
  margin-inline: -6px;
  padding-inline: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, #c45c5c 9%, transparent);
}
.sports-result--L .sports-result__badge { color: #a04545; }
.sports-result--D,
.sports-result--T {
  border-left: 3px solid #8fa3b0;
  margin-inline: -6px;
  padding-inline: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, #8fa3b0 10%, transparent);
}
.sports-result--next .sports-result__badge--next {
  color: var(--status-upcoming, #9a6900);
}
/* Hors saison (focus-group B) — méta sous le score. */
.sports-result__season-meta {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  padding: 0 0 0 0.15rem;
  font: 500 0.7rem/1.3 var(--sans);
  letter-spacing: 0.01em;
  color: var(--muted);
}
.sports-result--prior-season .sports-result__score {
  opacity: 0.92;
}

.sports-board-note {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42rem;
}
.sports-articles .wire-head {
  margin-top: 8px;
}
@media (max-width: 560px) {
  .sports-panel__list {
    grid-template-columns: 4.25rem 4rem minmax(0, 1fr) 1.2rem;
    column-gap: 6px;
  }
  .sports-result { font-size: 12.5px; }
  @supports not (grid-template-columns: subgrid) {
    .sports-result {
      grid-template-columns: 4.25rem 4rem minmax(0, 1fr) 1.2rem;
      column-gap: 6px;
    }
  }
  .sports-panel { padding: 12px 12px 10px; }
}

.masthead-tools { display: flex; gap: 7px; align-items: center; }
.masthead-tool {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease,
    transform 140ms ease;
}
/* Pas d’état « engagé » après clic (focus souris / sticky :active). */
.masthead-tool:focus { outline: none; }
.masthead-tool:focus:not(:focus-visible) {
  border-color: var(--rule);
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: none;
}
.masthead-tool:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.masthead-tool:active {
  transform: scale(0.9);
}
/*
 * Sur photo : pastilles ardoise stables (LE-RADAR). Ne pas suivre le thème clair
 * pour éviter que les pictogrammes disparaissent dans un ciel blanc.
 */
.masthead--illustrated .masthead-tool {
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(9, 14, 21, 0.62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.3),
    0 5px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.masthead--illustrated .masthead-tool svg {
  stroke-width: 2.15;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.52));
}
.masthead--illustrated .masthead-rss { color: #ffad70; }
.masthead--illustrated .masthead-pomo { border-color: rgba(255, 106, 106, 0.68); }
.masthead--illustrated .masthead-solitaire { border-color: rgba(255, 154, 154, 0.56); }
/* Icônes thème — même sémantique LE-RADAR (action, pas état). */
.theme-toggle .ico-sun { color: #f7c948; }
.theme-toggle .ico-moon { color: #9bd7ff; }
.theme-toggle .ico-sun.hidden,
.theme-toggle .ico-moon.hidden,
.masthead-tool .hidden { display: none !important; }
/* Pastille colorée selon l’icône visible (= mode courant inverse). */
.masthead--illustrated .theme-toggle:has(.ico-sun:not(.hidden)) {
  border-color: rgba(247, 201, 72, 0.74);
  background: rgba(89, 61, 7, 0.52);
}
.masthead--illustrated .theme-toggle:has(.ico-moon:not(.hidden)) {
  border-color: rgba(155, 215, 255, 0.72);
  background: rgba(15, 61, 92, 0.54);
}
/* Sur photo : le focus souris ne doit pas figer le look « hover engagé ». */
.masthead--illustrated .masthead-tool:focus:not(:focus-visible) {
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(9, 14, 21, 0.62);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.3),
    0 5px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.masthead--illustrated .theme-toggle:has(.ico-sun:not(.hidden)):focus:not(:focus-visible) {
  border-color: rgba(247, 201, 72, 0.74);
  background: rgba(89, 61, 7, 0.52);
}
.masthead--illustrated .theme-toggle:has(.ico-moon:not(.hidden)):focus:not(:focus-visible) {
  border-color: rgba(155, 215, 255, 0.72);
  background: rgba(15, 61, 92, 0.54);
}
/*
 * Page courante (Accueil) : discret, pas de pastille mauve « engagée ».
 * aria-current reste pour l’accessibilité ; le look suit les autres outils.
 */
.masthead-home[aria-current="page"],
.masthead--illustrated .masthead-home[aria-current="page"] {
  color: inherit;
  background: inherit;
  border-color: inherit;
  box-shadow: inherit;
}
.masthead--illustrated .masthead-home[aria-current="page"] {
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(9, 14, 21, 0.62);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.3),
    0 5px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Indice très léger de page courante (anneau, pas de fond accent). */
.masthead--illustrated .masthead-home[aria-current="page"]::after {
  content: none;
}
.masthead-tool:hover { border-color: var(--accent); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .masthead--illustrated .theme-toggle:hover,
  .masthead--illustrated .masthead-home:hover,
  .masthead--illustrated .masthead-rss:hover,
  .masthead--illustrated .masthead-solitaire:hover,
  .masthead--illustrated .masthead-shuffle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  .masthead--illustrated .masthead-pomo:hover {
    color: #fff;
    border-color: rgba(255, 140, 130, 0.5);
    background: rgba(200, 16, 46, 0.28);
    box-shadow:
      0 2px 10px rgba(200, 16, 46, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}
.masthead-tool svg { width: 15px; height: 15px; }
.masthead-tool svg[fill="currentColor"] { fill: currentColor; }
.masthead-tool svg[fill="none"] { fill: none; stroke: currentColor; }
.masthead-tool .app-emoji { width: 16px; height: 16px; display: block; }
.masthead-tool .ico-moon[hidden],
.masthead-tool .ico-sun[hidden] { display: none !important; }
.masthead-photo-credit {
  position: absolute;
  /* Gouttière contenu (parité LE-RADAR --masthead-edge-right). */
  right: max(
    env(safe-area-inset-right, 0px),
    calc((100% - min(100%, var(--maxw, 100%))) / 2 + var(--pad, 24px))
  );
  bottom: 7px;
  z-index: 1;
  max-width: min(70vw, 14rem);
  padding: 0.12rem 0.38rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.45);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  line-height: 1.25;
  text-align: right;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.masthead-photo-credit a {
  color: inherit;
  text-decoration: none;
}
.masthead-photo-credit a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
/* data-weather-tone : lavis condition (parité LE-RADAR). */
.weather-chip[data-weather-tone="sun"],
.masthead-weather__city[data-weather-tone="sun"] { --weather-tone: #f0b429; }
.weather-chip[data-weather-tone="cloud"],
.masthead-weather__city[data-weather-tone="cloud"] { --weather-tone: #8fa3b0; }
.weather-chip[data-weather-tone="rain"],
.masthead-weather__city[data-weather-tone="rain"] { --weather-tone: #5b9fd4; }
.weather-chip[data-weather-tone="snow"],
.masthead-weather__city[data-weather-tone="snow"] { --weather-tone: #a8c5d4; }
.weather-chip[data-weather-tone="storm"],
.masthead-weather__city[data-weather-tone="storm"] { --weather-tone: #8b7ec8; }
.masthead[data-text-alignment="center"] .masthead-top { text-align: center; justify-content: center; }
.masthead[data-text-alignment="center"] .masthead-meta { width: 100%; justify-content: center; }
.masthead[data-text-alignment="right"] .masthead-top { text-align: right; flex-direction: row-reverse; }
.masthead--image-error .masthead-background,
.masthead--image-error .masthead-background-shade,
.masthead--image-error .masthead-photo-credit { display: none; }
/* Image sans crédit : pas de pastille vide dans le coin du mât. */
.masthead-photo-credit:empty { display: none; }
.masthead--image-error { color: var(--ink); min-height: 0; }

/* Enchaînement mât → nav sans bande parasite */
.nav-wrap { margin-top: 0; background: var(--bg); }
.wire { margin-top: 0; }

/* La grille magazine est portée par source-view.css avec les cartes. */

@media (max-width: 720px) {
  body.with-radio .nav-wrap { padding-top: 0; }
  .masthead { min-height: 0; padding: 0; }
  .masthead--illustrated {
    --masthead-ar: 2.85;
    height: clamp(148px, calc(100vw / var(--masthead-ar)), 196px);
    min-height: 0;
    max-height: none;
    padding: 0;
  }
  .masthead-utility { grid-template-columns: 1fr auto; padding-bottom: 8px; }
  .masthead--illustrated .masthead-utility { padding-bottom: 4px; }
  /* Météo + sports dockés sous la radio : hors du mât pour libérer la place. */
  .masthead-status:not(.masthead-status--docked) {
    display: none !important;
  }
  /* Repli si la météo n’est pas dans .masthead-status (template minimal). */
  .masthead-utility > .masthead-weather:not(.masthead-weather--docked) {
    display: none !important;
  }
  .masthead-tools { grid-column: 2; grid-row: 1; gap: 4px; }
  .masthead-tool { width: 28px; height: 28px; }
  .masthead-top { align-items: flex-end; }
  .masthead-meta { width: 100%; }
  /* Dock visible même sans radio (sous le mât). */
  .masthead-weather-dock:not(:empty) {
    display: block;
  }
}

@media (min-width: 1100px) {
  :root { --maxw: 1180px; --pad: 32px; }
  .wire { padding-bottom: 56px; }
}
@media (max-width: 1099px) {
  .post--in-magazine { padding-right: 0; }
}

/* ─────────────── IMPRESSION (Ctrl+P) ───────────────
 * Article individuel : lecture papier simple — titre, méta, photo lead,
 * corps. Pas de mât photo, radio, nav, En bref. Le bandeau démo rouge
 * reste visible (journal de démonstration / mode démo) pour marquer
 * clairement que la sortie papier n’est pas un journal réel.
 */
@media print {
  @page {
    margin: 1.4cm 1.6cm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  /* Bandeau démo : forcé en tête d’impression (accueil + article). */
  .demo-banner {
    display: block !important;
    position: static !important;
    background: #c8102e !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    padding: 6px 0 !important;
    margin: 0 0 10px !important;
    border: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .demo-banner a {
    color: #fff !important;
  }

  .skip-link,
  .masthead-utility,
  .masthead-tools,
  .masthead-clock,
  .masthead-weather,
  .masthead-sports,
  .masthead-sports-strip,
  .masthead-status,
  .masthead-weather-dock,
  .masthead-background,
  .masthead-background-shade,
  .masthead-photo-credit,
  .masthead-background-transition,
  .radar-radio-slot,
  .nav-wrap,
  .nav-toggle,
  .brief-rail,
  .brief-rail--article,
  .news-tail-toggle,
  .site-foot,
  .footer,
  .post-tags {
    display: none !important;
  }

  /* Mât réduit au nom du journal (pas la photo full-bleed). */
  .masthead,
  .masthead--illustrated {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 0 10px !important;
    margin: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #ccc !important;
    color: #111 !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .masthead--illustrated .wordmark,
  .masthead--illustrated .masthead-tagline,
  .masthead--illustrated .masthead-meta,
  .masthead--illustrated .masthead-clock {
    color: #111 !important;
    text-shadow: none !important;
    filter: none !important;
  }
  .masthead--illustrated .wordmark::before {
    display: none !important;
  }
  .masthead-top {
    display: block;
  }
  .masthead-meta {
    display: none !important;
  }
  .wordmark {
    font-size: 1.15rem !important;
  }
  .masthead-tagline {
    font-size: 0.8rem !important;
    margin-top: 2px !important;
  }

  .wrap {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .wire--article {
    padding: 0 !important;
  }

  /* Une colonne : article seulement. */
  .magazine-layout,
  .magazine-layout--article {
    display: block !important;
    border: 0 !important;
  }
  .article-column {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .post,
  .post--in-magazine {
    padding: 0 !important;
    max-width: none !important;
  }

  .post-eyebrow {
    color: #333 !important;
    font-size: 10px !important;
  }
  .post-eyebrow::before {
    background: #333 !important;
  }
  .post-title {
    color: #000 !important;
    font-size: 1.65rem !important;
    line-height: 1.15 !important;
    margin: 6px 0 8px !important;
  }
  .post-meta {
    color: #444 !important;
    border-bottom-color: #ccc !important;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
  }
  .post-meta a {
    color: #111 !important;
    text-decoration: none !important;
  }

  /*
   * Photos d’impression (journal) :
   * - conteneur .post-flow pour que lead + corps partagent le float
   * - tailles en cm (pas en % de page) : les moteurs d’impression ignorent
   *   souvent les % quand l’image a un width HTML 1920
   * - texte qui épouse via float (pas de pleine largeur)
   */
  .post-flow {
    display: block !important;
    overflow: visible !important;
  }
  .post-flow::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
  }

  .post-flow .post-lead,
  .post-lead {
    float: right !important;
    clear: none !important;
    display: block !important;
    width: 6.8cm !important;
    max-width: 42% !important;
    margin: 0 0 8pt 12pt !important;
    padding: 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .post-flow .post-lead img,
  .post-flow .post-lead__img,
  .post-lead img,
  .post-lead__img {
    display: block !important;
    width: 6.8cm !important;
    max-width: 100% !important;
    max-height: 5cm !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .post-lead figcaption,
  .post-lead__credit {
    color: #555 !important;
    font-size: 8.5pt !important;
    margin-top: 3pt !important;
    line-height: 1.25 !important;
  }

  .post-body {
    font-size: 11pt !important;
    line-height: 1.5 !important;
    color: #111 !important;
    margin-top: 0 !important;
    overflow: visible !important;
    /* Ne pas créer de BFC qui empêcherait le wrap autour du lead. */
    display: block !important;
  }
  .post-body > *:first-child {
    margin-top: 0 !important;
  }
  .post-body::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
  }
  .post-body figure.post-figure,
  .post-body figure:not(.post-lead),
  .post-body p:has(> img:only-child) {
    float: right !important;
    clear: none !important;
    display: block !important;
    width: 5.8cm !important;
    max-width: 38% !important;
    margin: 2pt 0 8pt 10pt !important;
    padding: 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .post-body figure.post-figure--left {
    float: left !important;
    clear: none !important;
    margin: 2pt 10pt 8pt 0 !important;
  }
  .post-body figure.post-figure--wide {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8pt 0 !important;
  }
  .post-body figure img,
  .post-body p:has(> img:only-child) img,
  .post-body img {
    display: block !important;
    width: 5.8cm !important;
    max-width: 100% !important;
    max-height: 4.5cm !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .post-body figure figcaption {
    color: #555 !important;
    font-size: 8.5pt !important;
    margin-top: 2pt !important;
    line-height: 1.25 !important;
  }
  .post-body h2,
  .post-body h3 {
    clear: both !important;
    break-after: avoid;
    page-break-after: avoid;
  }
  .post-body a {
    color: #111 !important;
    text-decoration: underline !important;
  }
  /* N’afficher l’URL que pour les liens externes (pas les ancres internes). */
  .post-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }
  .post-body blockquote {
    border-left: 3px solid #666 !important;
    color: #333 !important;
    margin: 12px 0 !important;
    padding-left: 12px !important;
  }

  /* Pied minimal en bas de page article (optionnel via body class). */
  body.is-article-page::after {
    content: none;
  }
}

/* ── Outils bas de page ──
 * Flèche « haut de page » juste à gauche de la loupe, même taille (48 px)
 * et même écart (12 px), en bas à droite. Quand la flèche est masquée,
 * la loupe reste à cette place (flex-end + display:none sur la flèche).
 * Mobile : repli safe-area + 14 px.
 */
.page-tools {
  --tools-fab: 48px;
  --tools-outset: 12px;
  --tools-gutter: max(0px, calc((100vw - min(var(--maxw), 100vw)) / 2));
  --tools-side-right: max(
    max(14px, env(safe-area-inset-right, 0px)),
    calc(var(--tools-gutter) - var(--tools-fab) - var(--tools-outset))
  );
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--vk-inset, 0px));
  z-index: 180;
  display: flex;
  /* DOM = [flèche, loupe] — les deux en bas à droite, flèche à gauche de la loupe. */
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  padding-left: 14px;
  padding-right: var(--tools-side-right);
  pointer-events: none;
}
.page-tools > * { pointer-events: auto; }
.page-tools > .news-search {
  margin-left: 0;
}

.page-tools__fab,
.news-search__fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 2px 8px -2px rgba(0, 0, 0, 0.12),
    0 8px 24px -10px rgba(0, 0, 0, 0.18);
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}
.page-tools__fab svg,
.news-search__fab svg {
  width: 22px;
  height: 22px;
  display: block;
}
.page-tools__fab[hidden] { display: none !important; }
.news-search__fab .hidden { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .page-tools__fab:hover,
  .news-search__fab:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
    color: var(--accent);
  }
}
.page-tools__fab:active,
.news-search__fab:active { transform: scale(0.96); }
.page-tools__fab:focus,
.news-search__fab:focus { outline: none; }
.page-tools__fab:focus-visible,
.news-search__fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.news-search__fab.is-active,
.news-search.has-query .news-search__fab {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
[data-theme="dark"] .page-tools__fab,
[data-theme="dark"] .news-search__fab {
  background: var(--bg-soft);
  border-color: var(--rule);
}

.news-search {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}
.news-search > * { pointer-events: auto; }

.news-search__panel {
  width: min(320px, calc(100vw - 28px));
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  box-shadow:
    0 4px 16px -6px rgba(0, 0, 0, 0.14),
    0 16px 40px -16px rgba(0, 0, 0, 0.22);
}
.news-search__panel[hidden] { display: none !important; }
[data-theme="dark"] .news-search__panel { background: var(--bg-soft); }

.news-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-soft, var(--bg));
}
.news-search__field:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
}
.news-search__field-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--muted);
}
.news-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1.3 var(--sans);
  padding: 10px 0;
  outline: none;
}
.news-search__input::placeholder { color: var(--muted); opacity: 0.9; }
.news-search__input::-webkit-search-decoration,
.news-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.news-search__clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0 4px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.news-search__clear.hidden { display: none !important; }

.news-search__hint {
  margin: 8px 2px 0;
  font: 400 11.5px/1.4 var(--sans);
  color: var(--muted);
}

/* Cartes masquées par la recherche locale */
.article.is-search-hidden,
.news-features .article.is-search-hidden,
.brief-rail .article.is-search-hidden,
.news-tail .article.is-search-hidden {
  display: none !important;
}

@media print {
  .page-tools { display: none !important; }
}

/* Mise en page démo (t343u) : la date/heure ne se fait jamais recouvrir,
   la météo ne déborde pas sur les sports. */
.masthead-utility > .masthead-clock { white-space: nowrap; min-width: max-content; }
.masthead-status .masthead-weather { flex-shrink: 0; }
.masthead-status .weather-chip,
.masthead-status .masthead-weather__city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.masthead-status .masthead-sports { overflow: hidden; }
@media (min-width: 721px) and (max-width: 1100px) {
  .masthead-status .masthead-weather { max-width: 11rem; flex-shrink: 1; }
}
.masthead-status .weather-chip__name,
.masthead-status .masthead-weather__name { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.masthead-status .weather-chip__temp { flex: 0 0 auto; }
/* Date et heure en pastille sombre, comme le mât LE-RADAR : lisibles sur
   n'importe quelle photo et alignées sur la hauteur des pastilles voisines. */
.masthead--illustrated .masthead-utility { align-items: center; }
.masthead--illustrated .masthead-clock {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 6px;
  background: rgba(30, 33, 38, 0.62);
  backdrop-filter: blur(10px) saturate(1.06); -webkit-backdrop-filter: blur(10px) saturate(1.06);
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .masthead-utility { grid-template-columns: minmax(0, 1fr) auto; }
  .masthead-utility > .masthead-clock { min-width: 0; white-space: normal; }
  .masthead--illustrated.masthead--photo-ready .masthead-clock { flex-direction: column; align-items: flex-start; justify-self: start; padding: 3px 8px; line-height: 1.25; }
  .masthead--illustrated.masthead--photo-ready .masthead-clock time::before { content: none; }
  .masthead .masthead-utility > .masthead-clock span, .masthead .masthead-utility > .masthead-clock time { white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
  .masthead-utility > .masthead-clock { flex-wrap: wrap; overflow: visible; }
}
/* Mât uniforme (t346u) : date, météo, score et boutons partagent la même
   hauteur, le même verre, la même bordure, le même arrondi et le même texte.
   Les boutons ronds ont pour diamètre la hauteur des pastilles. */
html {
  --mat-h: 32px;
  --mat-rayon: 16px;
  --mat-fond: rgba(18, 21, 27, 0.62);
  --mat-bord: 1px solid rgba(255, 255, 255, 0.24);
  --mat-flou: blur(10px) saturate(1.06);
  --mat-texte: 11px;
  --mat-pad: 0 12px;
}
@media (max-width: 720px) { html { --mat-h: 30px; --mat-rayon: 15px; --mat-pad: 0 10px; --mat-texte: 10px; } }
.masthead .masthead-utility { align-items: center; }
.masthead-status { align-items: center; }
.masthead .masthead-clock,
.masthead-status .weather-chip,
.masthead-status .sports-chip,
.masthead--illustrated.masthead--photo-ready .masthead-clock {
  box-sizing: border-box; height: var(--mat-h); min-height: var(--mat-h); max-height: var(--mat-h);
  padding: var(--mat-pad); border: var(--mat-bord) !important; border-radius: var(--mat-rayon) !important;
  background: var(--mat-fond) !important; -webkit-backdrop-filter: var(--mat-flou); backdrop-filter: var(--mat-flou);
  color: #fff; font-size: var(--mat-texte); line-height: 1; box-shadow: none;
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
}
.masthead .masthead-tools { align-items: center; gap: 6px; }
.masthead .masthead-tools > .masthead-tool {
  box-sizing: border-box; width: var(--mat-h); height: var(--mat-h); min-width: var(--mat-h);
  border: var(--mat-bord); border-radius: 50%; background: var(--mat-fond);
  -webkit-backdrop-filter: var(--mat-flou); backdrop-filter: var(--mat-flou);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0;
}
/* Score sur une ligne : la date et la ligue restent dans l'infobulle. */
.masthead-status .sports-chip .sports-chip__body { display: flex; align-items: center; min-width: 0; height: auto; }
.masthead-status .sports-chip .sports-chip__sub { display: none; }
.masthead-status .sports-chip .sports-chip__line { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; font-size: var(--mat-texte); line-height: 1; }
.masthead-status .sports-chip .sports-chip__badge { width: 16px; height: 16px; line-height: 16px; font-size: 9px; border-radius: 50%; }
.masthead-status .masthead-weather,
.masthead-status .masthead-sports { height: var(--mat-h); display: flex; align-items: center; min-width: 0; }
.masthead-status .weather-chip .weather-icon-meteocon { width: 18px; height: 18px; }
@media (min-width: 1101px) { .masthead-status .masthead-weather { max-width: none; flex-shrink: 0; } }
/* La météo garde sa taille naturelle; c'est le score qui s'abrège (sigle). */
.masthead-status .masthead-weather { max-width: none !important; flex: 0 1 auto !important; min-width: 0; }
.masthead-status .masthead-weather .weather-chip__name { overflow: hidden; text-overflow: clip; min-width: 0; }
.masthead-status .masthead-sports { flex: 0 1 auto; min-width: 0; }
.masthead-status .sports-chip__line, .masthead-status .sports-chip__line-inner { justify-content: flex-start; text-align: left; }
.masthead .masthead-clock time, .masthead .masthead-clock span { white-space: nowrap !important; flex: 0 0 auto; }
.masthead .masthead-clock { flex-shrink: 0; max-width: none; overflow: visible; }
.masthead-status .sports-chip { max-width: 100%; min-width: 0; overflow: hidden; }
.masthead-status { overflow: hidden; }
/* Mobile : la date garde la même pastille sur une ligne, en plus petit. */
@media (max-width: 720px) {
  .masthead .masthead-utility > .masthead-clock,
  .masthead--illustrated.masthead--photo-ready .masthead-clock { flex-direction: row; white-space: nowrap; }
  .masthead .masthead-utility > .masthead-clock span { white-space: nowrap; }
}

/* ---------------------------------------------------------------------------
 * Mobile façon LE-RADAR — ordre : date, nom, sous-titre, outils, puis crédit
 * photo dans le coin sous les boutons. Rythme vertical : --mat-gap (8 px).
 * Boutons espacés également (space-between, écart 4 px, pas de groupes).
 * Sports : hors du mât, sous la radio / le dock météo.
 * ------------------------------------------------------------------------- */
@media (max-width: 720px) {
  html { --mat-h: 29px; --mat-rayon: 5px; --mat-texte: 11px; --mat-pad: 0 10px; }
  .masthead { --mat-gap: 8px; }
  .masthead--illustrated > .wrap,
  :has(> .masthead-utility) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--mat-gap);
    padding-top: var(--mat-gap);
    padding-bottom: var(--mat-gap);
  }
  .masthead .masthead-utility { display: contents; }
  .masthead .masthead-clock { order: 1; align-self: flex-start; font-weight: 650; margin: 0; }
  :has(> .masthead-utility) > .masthead-top { order: 2; }
  :has(> .masthead-utility) > :not(.masthead-utility):not(.masthead-top) { order: 4; }
  .masthead .masthead-tools {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
  }
  .masthead .masthead-tools > .masthead-tool {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    min-width: 35px;
    margin: 0;
    border-radius: 999px;
  }
  .masthead,
  .masthead--illustrated {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    justify-content: flex-start;
  }
  .masthead .masthead-top {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--mat-gap);
  }
  .masthead[data-text-alignment="center"] .masthead-top { align-items: center; }
  .masthead[data-text-alignment="right"] .masthead-top { align-items: flex-end; }
  .masthead .masthead-top > div:first-child {
    display: flex;
    flex-direction: column;
    gap: var(--mat-gap);
  }
  .masthead .wordmark,
  .masthead .masthead-tagline,
  .masthead .masthead-meta { margin: 0; }
  .masthead .masthead-tagline,
  .masthead .masthead-meta {
    display: block;
    line-height: 1.25;
    font-size: 12px;
  }
  /* Pas de double rembourrage : le mât mobile n’a plus de padding extérieur.
     Crédit dans le coin, clairement sous les boutons (parité LE-RADAR, 34 px). */
  .masthead,
  .masthead--illustrated { padding: 0; }
  .masthead:has(.masthead-photo-credit:not(:empty)) > .wrap,
  .masthead--illustrated:has(.masthead-photo-credit:not(:empty)) > .wrap {
    padding-bottom: 34px;
  }
  .masthead:has(.masthead-photo-credit:not(:empty)) .masthead-photo-credit {
    bottom: var(--mat-gap);
  }
  .masthead-weather-dock:not(:empty) { padding: 4px 18px 0; }
  /* Après retrait de la puce (échec météo), ne pas laisser le seul rembourrage. */
  .masthead-weather-dock:not(:has(.weather-chip)) { display: none; }
  .masthead-weather-dock .masthead-status {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; overflow: visible;
  }
  /* Puce météo pleine largeur : maintenant, max/min du jour, puis demain. */
  .masthead-weather-dock .masthead-weather { display: grid !important; grid-template-columns: 1fr; gap: 4px; width: 100%; }
  .masthead-weather-dock .weather-chip { background: rgba(42, 46, 54, .92) !important; color: #fff; }
  .masthead-weather-dock .weather-chip { width: 100%; justify-content: flex-start; gap: 5px; padding: 0 7px; font-weight: 650; }
  .masthead-weather-dock .weather-chip__today,
  .masthead-weather-dock .weather-chip__tomorrow {
    display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; white-space: nowrap;
    font-variant-numeric: tabular-nums; font-weight: 650;
  }
  .masthead-weather-dock .weather-chip__today { margin-left: auto; gap: 7px; }
  .masthead-weather-dock .weather-chip__tomorrow {
    margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.28);
  }
  .masthead-weather-dock .weather-chip__label { font-weight: 600; opacity: .72; }
  .masthead-weather-dock .weather-chip__tomorrow .weather-chip__label { margin-right: 1px; }
  .masthead-weather-dock .weather-chip .weather-chip__tomorrow-icon { width: 18px; height: 18px; }
  .masthead-weather-dock .weather-chip--attente .weather-chip__today,
  .masthead-weather-dock .weather-chip--attente .weather-chip__tomorrow-temp { opacity: .6; }
  @media (max-width: 374.98px) {
    .masthead-weather-dock .weather-chip__today { gap: 5px; }
    .masthead-weather-dock .weather-chip__tomorrow { margin-left: 6px; padding-left: 6px; }
  }
}


/* Puce météo élargie sous la radio, ordinateur compris (parité visuelle
 * des pastilles LE-RADAR : verre ardoise, ton de condition). */
.masthead-weather-dock:not(:empty) { padding: 8px var(--pad, 24px) 0; }
.masthead-weather-dock:not(:has(.weather-chip)) { display: none; }
.masthead-weather-dock .masthead-status {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  overflow: visible;
}
.masthead-weather-dock .masthead-weather { display: grid !important; grid-template-columns: 1fr; gap: 4px; width: 100%; }
.masthead-weather-dock .weather-chip {
  width: 100%;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 10px;
  font-weight: 650;
  border-radius: var(--mat-rayon, 16px) !important;
}
.masthead-weather-dock .weather-chip__today { margin-left: auto; gap: 7px; }
.masthead-weather-dock .weather-chip__tomorrow {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}
.masthead-weather-dock .weather-chip__label { font-weight: 600; opacity: .72; }
.masthead-weather-dock .weather-chip__tomorrow .weather-chip__label { margin-right: 1px; }
.masthead-weather-dock .weather-chip .weather-chip__tomorrow-icon { width: 18px; height: 18px; }
.masthead-weather-dock .weather-chip--attente .weather-chip__today,
.masthead-weather-dock .weather-chip--attente .weather-chip__tomorrow-temp { opacity: .6; }
@media (max-width: 374.98px) {
  .masthead-weather-dock .weather-chip { padding: 0 8px; gap: 4px; }
  .masthead-weather-dock .weather-chip__today { gap: 4px; }
  .masthead-weather-dock .weather-chip__tomorrow { margin-left: 4px; padding-left: 4px; }
}

/* Bandeau sports sous la radio (parité LE-RADAR PR 394) : hors du mât,
 * avant la nav et le fil. Hauteur réservée dès le premier paint pour
 * éviter un saut quand le JS peint les puces. */
.masthead-sports-strip {
  display: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--pad, 24px);
  box-sizing: border-box;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}
.masthead-sports-strip:not([hidden]),
.masthead-sports-strip[hidden]:not(.is-empty) {
  min-height: 60px;
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}
.masthead-sports-strip[hidden]:not(.is-empty) {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
.masthead-sports-strip.is-empty {
  display: none !important;
  min-height: 0;
}
.masthead-sports-strip.masthead-sports--split {
  display: flex;
  gap: 6px;
}
.masthead-sports-strip .sports-chip,
.masthead-sports-strip .masthead-sports__chip {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  height: auto !important;
  min-height: 44px;
  max-height: none !important;
  padding: 5px 10px 5px 7px;
  border-radius: 6px !important;
  align-items: center;
  overflow: hidden;
}
.masthead-sports-strip .sports-chip .sports-chip__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.masthead-sports-strip .sports-chip .sports-chip__sub {
  display: block !important;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
}
.masthead-sports-strip .sports-chip .sports-chip__line,
.masthead-sports-strip .sports-chip .sports-chip__line-inner {
  font-size: var(--mat-texte, 11px);
  line-height: 1.35;
  justify-content: flex-start;
  text-align: left;
}
@media (max-width: 720px) {
  .masthead-sports-strip {
    padding: 4px 18px 2px;
    width: 100%;
  }
  .masthead-sports-strip:not([hidden]),
  .masthead-sports-strip[hidden]:not(.is-empty) {
    /* 4 + puce (~48) + 2, plancher anti-saut un peu sous les 60 px du Radar. */
    min-height: 54px;
  }
  .masthead-sports-strip .sports-chip,
  .masthead-sports-strip .masthead-sports__chip {
    width: 100%;
    max-width: none;
    font-weight: 700;
    gap: 6px;
  }
}

/* Match en cours (case « En cours » du Socle, jamais déduit de l’horloge). */
.sports-chip--live {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px color-mix(in srgb, #dc2626 58%, transparent);
}
.sports-chip--live .sports-chip__glyph {
  color: #fecaca;
}

/* Sous-ligne trop longue : boucle continue (parité LE-RADAR PR 404/408). */
.sports-chip--match {
  --sports-loop-gap: 48px;
  --sports-scroll-duration-sub: 8s;
  --sports-scroll-delay: 1.6s;
}
.sports-chip--match.is-sub-overflowing .sports-chip__sub-text {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: sports-chip-scroll-sub var(--sports-scroll-duration-sub, 8s) linear var(--sports-scroll-delay, 1.6s) infinite backwards;
  will-change: transform;
}
.sports-chip__sub-text:has(> .sports-chip__loop) {
  position: relative;
  padding-right: var(--sports-loop-gap, 48px);
}
.sports-chip__loop {
  position: absolute;
  left: 100%;
  top: 0;
  display: inline-block;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  animation: none !important;
  transform: none !important;
  pointer-events: none;
}
@keyframes sports-chip-scroll-sub {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .sports-chip.is-sub-overflowing .sports-chip__sub-text {
    animation: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
  }
  .sports-chip__loop { display: none !important; }
}

/* Cibles tactiles ≥ 44 px (t350u) sans changer l’apparence : zone élargie
 * par un pseudo-élément transparent centré sur le lien ou le bouton. */
@media (pointer: coarse), (max-width: 900px) {
  .masthead .masthead-tool,
  .nav .nav-section,
  .article-more,
  .post-meta a,
  main#contenu li > a,
  .site-foot a { position: relative; }
  .masthead .masthead-tool::before,
  .nav .nav-section::after,
  .article-more::after,
  .post-meta a::after,
  main#contenu li > a::after,
  .site-foot a::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
}

/* Pied mobile (t350u) : pas de « · » orphelin en début de ligne. */
@media (max-width: 720px) {
  .site-foot__nav .site-foot__sep,
  .site-foot__links .site-foot__sep,
  .site-foot__built .site-foot__sep { display: none; }
  .site-foot__nav, .site-foot__links, .site-foot__built { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .site-foot { padding-bottom: 88px; }
}

/* Partage d’un article : boutons simples, sans script tiers. */
.share {
  margin: 1.2rem 0 0.4rem;
}
.share__label {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.share__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.share__btn:hover,
.share__btn:focus-visible {
  background: var(--accent, #6c2163);
  color: #fff;
  border-color: transparent;
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  align-items: end;
  margin: 1rem 0 1.4rem;
}
.search-form label {
  flex: 1 1 16rem;
}
.search-form label {
  font: 600 0.9rem/1.3 var(--sans);
  color: var(--ink);
}
.search-form input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin-top: 0.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--rule-strong, #14161a);
  border-radius: 8px;
  background: var(--bg, #fff);
  color: var(--ink);
  font: 500 1rem/1.3 var(--sans);
}
/* Bouton à la hauteur du champ, à la couleur du journal (il était minuscule, sans style). */
.search-form button[type="submit"] {
  min-height: 46px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent, #6c2163);
  color: #fff;
  font: 700 0.95rem/1 var(--sans);
  cursor: pointer;
}
.search-form button[type="submit"]:hover,
.search-form button[type="submit"]:focus-visible {
  filter: brightness(1.1);
  outline: 2px solid var(--accent, #6c2163);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .search-form button[type="submit"] { width: 100%; }
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Site statique : résultats en liste, avec la typographie des cartes. */
.search-results li {
  margin: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.search-results li > a {
  font: 700 1.25rem/1.25 var(--serif, Georgia, serif);
  color: var(--ink);
  text-decoration: none;
}
.search-results li > a:hover,
.search-results li > a:focus-visible { text-decoration: underline; }
.search-results li > p { margin: 0.35rem 0 0; color: var(--ink-soft, var(--ink)); }
.revue-actions {
  margin: 0 0 1.5rem;
}
.revue-piece {
  margin: 0 0 2.2rem;
  break-inside: avoid;
}
.revue-piece h2 {
  margin: 0 0 0.4rem;
}
@media print {
  .share,
  .revue-actions,
  .news-search {
    display: none !important;
  }
}

/* ─────────────── RÉSEAUX SOCIAUX (mât et pied de page) ───────────────
 * Mêmes icônes et même comportement que LE-RADAR (style-chrome.css,
 * .site-foot__social) : monochromes au repos, couleur principale du journal
 * au survol et au focus clavier, cible tactile de 44 px. */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.social-links svg { width: 20px; height: 20px; display: block; }
@media (hover: hover) and (pointer: fine) {
  .social-links a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); text-decoration: none; }
}
.social-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; color: var(--accent); }
.site-foot__social { margin: 10px 0 0 -12px; }
.masthead-social { margin-right: -12px; }
.masthead--illustrated .masthead-social a { color: rgba(255, 255, 255, 0.92); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)); }
@media (hover: hover) and (pointer: fine) {
  .masthead--illustrated .masthead-social a:hover { color: var(--accent); background: rgba(255, 255, 255, 0.92); filter: none; }
}
.masthead--illustrated .masthead-social a:focus-visible { color: var(--accent); background: rgba(255, 255, 255, 0.92); outline-color: #fff; filter: none; }
@media (max-width: 640px) {
  .masthead-meta { flex-wrap: wrap; }
  .masthead-social { flex-wrap: nowrap; width: calc(100% + 16px); margin-left: -8px; margin-right: -8px; gap: 0; }
  .masthead-social a { flex: 1 1 0; min-width: 28px; max-width: 44px; height: 40px; }
}
@media print { .social-links { display: none !important; } }


/* ---------------------------------------------------------------------------
 * Mobile : menu de rubriques façon LE-RADAR (.site-sections).
 * Ligne de liens texte séparés par des points, sans onglets ni bouton
 * pleine largeur « Toutes les rubriques ». Toutes les rubriques restent
 * visibles (retour à la ligne si besoin). Les pastilles du mât gardent
 * leur cible tactile de 44 px (::before).
 * ------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .nav-wrap {
    padding-top: 0;
    background: var(--bg);
  }
  .nav-shell,
  .nav-shell.has-overflow {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .nav,
  .nav-shell.has-overflow:not(.is-expanded) .nav,
  .nav-shell.is-expanded .nav,
  .nav-shell.has-overflow .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3px 0;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
    border: 0;
    font-size: 12px;
  }
  .nav-shell.has-overflow:not(.is-expanded) .nav::after {
    display: none !important;
  }
  .nav a,
  .nav a.nav-section,
  .nav a[aria-current="page"] {
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    border-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
  }
  .nav a + a::before {
    content: "·";
    display: inline;
    margin: 0 7px;
    color: var(--rule);
    font-weight: 400;
    pointer-events: none;
  }
  .nav a:hover,
  .nav a.nav-section:hover,
  .nav a[aria-current="page"],
  .nav a.nav-section[aria-current="page"] {
    color: var(--accent);
    border-bottom: 0;
    text-decoration: none;
  }
  .nav-toggle,
  .nav-shell.has-overflow .nav-toggle {
    display: none !important;
  }
}
