@layer legacy {
:root {
  --bg: var(--palette-slate-100);
  --surface: var(--palette-white);
  --surface-soft: var(--palette-slate-50);
  --text: var(--palette-slate-900);
  --muted: var(--palette-slate-500);
  --line: var(--palette-slate-200);
  --brand: var(--color-brand);
  --brand-soft: var(--palette-blue-100);
  --color-green: var(--color-success);
  --color-orange: var(--color-warning);
  --color-red: var(--palette-red-500);
  /* ⛔ NE PAS REMETTRE UNE VALEUR EN DUR ICI (20/08/2026).
     Cette ligne valait `16px` et ANNULAIT le choix « à peine arrondi » de
     Xavier du 26/06/2026 : tokens.css descend --radius-sm/md/lg à 6 px et
     prévoit l'alias `--radius: var(--radius-lg)` « pour permettre à app.css
     de continuer à fonctionner sans modif » — sauf que ce bloc-ci vit dans
     @layer legacy, le DERNIER layer chargé, donc il gagnait sur les tokens.
     Résultat : le rayon est resté à 16 px partout pendant deux mois et le
     défaut est remonté de session en session (« le coin du bloc est trop
     arrondi ! »). Le rayon se règle dans tokens.css, jamais ici. */
  --radius: var(--radius-lg, 6px);   /* repli : sans tokens.css, des coins carrés seraient pires que 6 px */
  --shadow: 0 10px 30px var(--palette-blue-900-a8);
}
* { box-sizing: border-box; }
html { font-size: 83.3333%; }
body {
  margin: 0;
  /* PAR LE TOKEN, PAS EN DUR (31/08/2026). La police du site était écrite ici
     en littéral : un thème ne pouvait donc PAS la changer, puisqu'un thème ne
     surcharge que des tokens. Résultat, le thème hippique posait sa police
     (Pretendard) sur `.th-home` uniquement — l'accueil — et TOUT LE RESTE DU
     SITE restait en SF Pro Text. Deux typographies pour un seul site, visible
     sur n'importe quel bloc partagé : le bloc « Résultats de nos pronostics »
     n'avait ni les mêmes largeurs de mots, ni les mêmes points de suspension
     sur l'accueil et ailleurs (constaté par Xavier, captures à l'appui).
     Le repli garde le rendu historique si tokens.css venait à manquer. */
  font-family: var(--font-family-sans, "SF Pro Text", "Segoe UI", sans-serif);
  color: var(--text);
  /* Fond uni gris clair (var(--bg) #f2f4f7 = couleur du conteneur) au lieu du
     dégradé radial — choix Xavier 2026-06-26. Body + wrappers partagent --bg. */
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }
/* Maintenance admin bypass banner */
.maintenance-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-danger);
  color: var(--color-text-inverse);
  text-align: center;
  font-size: var(--font-size-13);
  font-weight: var(--text-semibold-weight);
  padding: 4px 12px;
  line-height: var(--line-height-140);
}
body.has-maintenance-banner .topbar {
  top: 26px;
}
@media (max-width: 479px) {
  .maintenance-banner { font-size: var(--font-size-11); padding: 3px 8px; }
  body.has-maintenance-banner .topbar { top: 22px; }
}

.topbar {
  --brand-stack-shift: clamp(84px, 8.2vw, 102px);
  --brand-stack-nav-shift: clamp(118px, 11vw, 146px);
  --brand-stack-nav-overlap: 47px;
  position: sticky;
  top: 0;
  z-index: 80;
  isolation: isolate;
  backdrop-filter: none;
  background: var(--color-surface);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 980px) {
  .topbar.has-bookmaker-sticky {
    position: relative;
    top: auto;
  }
}
.brand-link-desktop-stacked {
  display: none;
}
.brand-logo-desktop-stacked {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; background: var(--color-surface); }
.topbar-head { gap: 12px; position: relative; }
.brand {
  font-weight: var(--text-bold-weight);
  letter-spacing: 0.3px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--palette-green-700b);
  color: var(--color-text-inverse);
  font-size: var(--font-size-15);
  font-weight: var(--text-extrabold-weight);
  line-height: var(--text-tight-height);
}
.brand-name {
  font-size: 32px;
  line-height: var(--text-tight-height);
  letter-spacing: -0.02em;
  color: var(--palette-green-800);
}
.top-search-placeholder {
  flex: 1 1 auto;
  min-width: 120px;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--color-surface);
}
.top-bookmakers-strip {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 6px;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 1px 0;
  background: var(--color-surface);
}
.top-bookmakers-strip::-webkit-scrollbar {
  display: none;
}
.top-bookmaker-card {
  --bm-font-max: 16px;
  --bm-line1-size: 16px;
  --bm-line2-size: 16px;
  --bm-line-gap: clamp(2px, calc(var(--bm-font-max) * 0.16), 5px);
  --bm-line-py: clamp(1px, calc(var(--bm-font-max) * 0.12), 4px);
  --bm-logo-h: calc(var(--bm-line1-size) + var(--bm-line2-size) + (var(--bm-line-py) * 4) + var(--bm-line-gap));
  --bm-logo-col: clamp(74px, calc(var(--bm-logo-h) * 2.75), 148px);
  --bm-card-gap: clamp(2px, calc(var(--bm-font-max) * 0.18), 6px);
  --bm-pad-y: clamp(2px, calc(var(--bm-font-max) * 0.22), 6px);
  --bm-pad-r: clamp(3px, calc(var(--bm-font-max) * 0.3), 9px);
  --bm-pad-l: clamp(1px, calc(var(--bm-font-max) * 0.1), 3px);
  min-width: 0;
  max-width: calc((100% - 12px) / 3);
  width: auto;
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: var(--bm-logo-col) minmax(0, 1fr);
  gap: var(--bm-card-gap);
  align-items: center;
  padding: var(--bm-pad-y) var(--bm-pad-r) var(--bm-pad-y) var(--bm-pad-l);
  border-radius: var(--radius-sm);
  border: 1px solid var(--palette-blue-150);
  background: var(--color-surface);
  box-shadow: none;
}
.top-bookmaker-logo {
  width: auto;
  height: var(--bm-logo-h);
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  justify-self: center;
  display: block;
}
.top-bookmaker-lines {
  display: grid;
  gap: var(--bm-line-gap);
}
.top-bookmaker-line {
  --bm-line-color: var(--palette-white);
  --bm-line-bg: var(--palette-red-600b);
  --bm-line-size: 16px;
  display: block;
  border-radius: clamp(6px, calc(var(--bm-line-size) * 0.45), 10px);
  padding: var(--bm-line-py) clamp(4px, calc(var(--bm-line-size) * 0.38), 10px);
  line-height: 1.05;
  font-weight: var(--text-extrabold-weight);
  font-size: var(--bm-line-size);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bm-line-color);
  background: var(--bm-line-bg);
}
.top-bookmaker-line.is-top {
  font-weight: var(--text-bold-weight);
}
.top-bookmaker-line.is-bottom {
  font-weight: var(--text-extrabold-weight);
}
.top-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--palette-blue-100c);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.top-account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-weight: var(--text-extrabold-weight);
  background: var(--palette-orange-600);
  overflow: hidden;
}
.top-account-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-account-name {
  font-size: var(--font-size-15);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-900);
}
.top-menu-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--palette-blue-900b);
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.top-menu-icon {
  width: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.top-menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--palette-blue-900b);
}
.mobile-only-inline {
  display: none;
}
.topbar-nav-wrap {
  border-top: 1px solid var(--line);
  background: var(--color-surface);
}
.topbar-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 4px 0;
  position: relative;
}
.top-links {
  display: flex;
  gap: 12px;
  font-size: var(--font-size-sm);
  color: var(--muted);
}
.top-links-main {
  flex: 1 1 auto;
  min-width: 0;
  gap: 28px;
  align-items: center;
  padding: 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.top-links-main::-webkit-scrollbar {
  display: none;
}
.top-nav-item {
  display: inline-flex;
  align-items: center;
}
.top-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 0 9px;
  color: var(--palette-blue-800);
  font-size: 17px;
  font-weight: var(--text-bold-weight);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.top-nav-link.is-active {
  color: var(--palette-blue-900c);
}
.top-nav-link.is-parier {
  padding: 6px 10px 8px;
  border-radius: 10px;
  background: var(--palette-orange-50);
  border: 1px solid var(--palette-orange-200);
  color: var(--color-orange);
}
.top-nav-link.is-parier:hover {
  background: var(--palette-orange-100);
}
.top-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--palette-red-500b);
}
.top-nav-item-programme {
  display: none;
  position: static;
}
.top-nav-link-programme.is-active {
  color: var(--palette-blue-800);
}
.top-nav-caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
  transform: translateY(2px);
}
.top-programme-menu {
  display: none;
}
/* Menus Programme et Ligues : leur vert (--color-green, #085e3d) devient
   celui de l'en-tête du turf-fr.com, #1B764F, dans ces deux menus seulement
   (Xavier 2026-10-29, sur visuel). Retour arrière : supprimer cette règle.
   Les menus Quinté+ et Concours gardent le vert du site. */
.top-programme-menu,
.top-mm-menu--ligues {
  --color-green: #1b764f;
}
.top-programme-menu-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  border: 1px solid var(--palette-blue-200-a95);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 22px 54px var(--palette-blue-900-a12);
  overflow: hidden;
}
.top-programme-panel {
  min-height: 400px;
  padding: 28px 28px 24px;
}
.top-programme-panel-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--palette-blue-150-a96);
}
.top-programme-heading {
  margin: 0 0 16px;
  color: var(--palette-gray-600);
  font-size: var(--font-size-11);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.top-programme-heading-link,
.top-programme-heading-link:hover,
.top-programme-heading-link:visited {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-programme-heading-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
/* ⚠️ COLONNE DE GAUCHE — REFAITE LE 22/09/2026 (Xavier : « pas gracieuse »).
   Elle empilait des lignes à puces, deux cartes de couleur et un aplat vert,
   sous deux chapeaux qui répétaient « Quinté+ ». Le partage est maintenant
   net : les trois DATES sont des rangées nues séparées d'un filet, et les
   trois destinations qui comptent (Quinté+ du jour, Quinté+ demain, pronostics
   VIP) sont trois BLOCS du même format, en bas de colonne — les deux Quinté+
   en pastel, le VIP en vert plein parce qu'il doit rester le point d'appel.
   Ne pas redonner de fond aux rangées de dates : c'est ce contraste
   rangées / blocs qui tient la colonne. */
.top-programme-quick-links {
  display: flex;
  flex-direction: column;
}
.top-programme-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 2px 0;
  border-bottom: 1px solid var(--palette-blue-150-a96);
  white-space: nowrap;
  color: var(--palette-gray-900);
}
.top-programme-quick-link:last-child {
  border-bottom: 0;
}
.top-programme-quick-link-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--font-size-15);
  font-weight: var(--font-weight-500);
}
.top-programme-quick-link.is-today .top-programme-quick-link-label {
  color: var(--color-green);
  font-weight: 600;
}
.top-programme-quick-link-meta {
  color: var(--palette-gray-600b);
  font-size: var(--font-size-13);
}
/* C'est ce filet qui porte le `margin-top: auto` — donc lui qui pousse le
   Quinté+ et le bouton VIP vers le bas de la colonne. Le vide se pose ainsi
   AU MILIEU, entre les dates et le Quinté+, au lieu de s'accumuler sous la
   dernière ligne. */
.top-programme-sep {
  margin: auto 0 12px;
  border: 0;
  border-top: 1px solid var(--palette-blue-150-a96);
}
/* Les deux Quinté+ sont des BLOCS, comme le bouton VIP qui les suit (Xavier,
   22/09/2026) — mais en pastel : vert très clair pour aujourd'hui, bleu très
   clair pour demain, texte foncé. Le seul aplat franc de la colonne reste le
   bouton VIP, sinon les trois blocs se disputeraient le regard. */
.top-programme-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--palette-green-200);
  border-radius: var(--radius-md);
  background: var(--palette-green-100);
}
.top-programme-q + .top-programme-q {
  margin-top: 8px;
}
.top-programme-q.is-tomorrow {
  background: var(--palette-blue-100d);
  border-color: var(--palette-blue-200);
}
/* Jour sans Quinté+ : le bloc reste, en gris, plutôt qu'un trou dans la colonne
   (le payload y met « Quinté+ à venir »). */
.top-programme-q.is-empty {
  background: var(--color-surface-soft);
  border-color: var(--color-border);
}
.top-programme-q-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--color-green);
}
.top-programme-q.is-tomorrow .top-programme-q-icon {
  color: var(--palette-blue-700b);
}
.top-programme-q.is-empty .top-programme-q-icon {
  color: var(--palette-gray-600b);
}
/* ⚠️ Le mot « Quinté+ du jour » / « Quinté+ de demain » est DANS le lien, et
   c'est voulu : avant la refonte il vivait dans un <p> au-dessus, donc il ne
   comptait pas comme texte d'ancre vers /quinte/ (Xavier, 22/09/2026 : « pour
   le SEO c'est important »). Il ne se tronque jamais — c'est le nom de la
   course, à sa gauche, qui rend la place.
   ⚠️ `flex: 1 1 0` + `min-width: min-content` — l'étiquette part de ZÉRO et
   n'occupe que la place laissée par le nom de la course, sans jamais descendre
   sous son mot le plus long. Résultat voulu par Xavier le 22/09/2026 : une
   seule ligne tant que la place suffit, deux lignes (« QUINTÉ+ » puis « DU
   JOUR ») dès que le nom en réclame — et le nom n'est plus coupé pour un
   pixel. La coupure tombe après « Quinté+ » parce que le PHP colle « du » à
   « jour » par une espace insécable, sans quoi on lirait « QUINTÉ+ DU » puis
   « JOUR ». Le texte envoyé à Google, lui, ne change pas.
   ⛔ Ne pas remettre `margin-left: auto` ni `max-width` : la marge auto
   mangerait l'espace libre avant l'étiquette (qui resterait pliée en
   permanence), le max-width la replierait même quand la place ne manque pas.
   C'est `text-align: right` qui la tient contre le bord droit. */
.top-programme-q-tag {
  flex: 1 1 0;
  min-width: min-content;
  padding-left: 10px;
  font-size: 10px;
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-align: right;
  text-transform: uppercase;
  white-space: normal;
  color: var(--color-green);
}
.top-programme-q.is-tomorrow .top-programme-q-tag {
  color: var(--palette-blue-700b);
}
/* ⚠️ `flex: 0 1 auto` — sa base est la largeur du texte, donc le NOM DE LA
   COURSE est servi en premier ; l'étiquette, elle, part de zéro et ne prend
   que ce qui reste (cf. .top-programme-q-tag). L'ordre inverse coupait
   « Grand National Du Trot » pour un seul pixel. */
.top-programme-q-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 0 1 auto;
}
/* ⚠️ Nom de course ou hippodrome trop long : il se coupe à l'écran avec « … »
   (jamais de retour à la ligne, qui rallongerait le menu) mais le texte reste
   ENTIER dans le HTML — c'est celui-là que Google lit. Ne jamais raccourcir la
   chaîne côté PHP pour « faire tenir ». */
.top-programme-q-main strong {
  color: var(--palette-gray-900);
  font-size: var(--font-size-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-programme-q-main span {
  color: var(--palette-gray-600b);
  font-size: var(--font-size-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Jour sans Quinté+ : la rangée reste, en gris, plutôt qu'un trou dans la
   colonne (le payload y met « Quinté+ à venir »). */
.top-programme-q.is-empty .top-programme-q-main strong {
  color: var(--palette-gray-600b);
  font-weight: var(--font-weight-500);
}
/* ⚠️ Cartes du méga-menu CONCOURS (partials/megamenu.php). Elles partageaient
   ces couleurs « jour / demain » avec les cartes Quinté+ du menu Programme ;
   depuis la refonte de la colonne (22/09/2026) elles sont SEULES à les porter.
   Changer une valeur ici ne touche donc plus que le menu Concours. */
.top-mm-card.is-today {
  border-radius: var(--radius-md);
  background: var(--palette-green-100);
  border: 1px solid var(--palette-green-200);
}
.top-mm-card.is-tomorrow {
  background: var(--palette-blue-100d);
  border-color: var(--palette-blue-200);
}
.top-mm-card.is-tomorrow .top-mm-card-copy strong {
  color: var(--palette-blue-700b);
}
.top-mm-card.is-tomorrow .top-mm-card-copy span {
  color: var(--palette-blue-500b);
}
.top-mm-card.is-today .top-mm-card-copy strong {
  color: var(--color-green);
}
.top-mm-card.is-today .top-mm-card-copy span {
  color: var(--palette-green-700b, var(--color-green));
}
/* « Pronostics VIP du jour » — le bouton qui ferme la colonne de gauche. Vert
   PLEIN : depuis la refonte du 22/09/2026 c'est la SEULE zone de couleur de la
   colonne, et c'est précisément ce qui le fait voir au milieu des rangées.
   Même vert que le lien de journée des fiches course (.vip-day-link,
   race-shared.css) : c'est la même destination. */
.top-programme-vip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  /* #1B764F comme le reste du menu (Xavier 2026-10-29) ; retour arrière :
     var(--palette-green-800c), et var(--palette-green-900) au survol. */
  background: #1b764f;
  color: var(--color-text-inverse);
}
.top-programme-vip:hover,
.top-programme-vip:focus-visible {
  background: #14573a;
}
.top-programme-vip-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.top-programme-vip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.top-programme-vip-copy strong {
  font-size: var(--font-size-sm);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* L'accroche tient sur UNE ligne : si elle passe à deux, la colonne de gauche
   regagne les 14 px qu'on vient de lui prendre et le méga-menu rallonge. */
.top-programme-vip-copy span {
  font-size: var(--font-size-xs);
  line-height: 1.2;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-programme-vip-arrow {
  margin-left: auto;
  font-weight: var(--text-extrabold-weight);
}
.top-programme-panel-right {
  display: flex;
  flex-direction: column;
}
.top-programme-date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--palette-blue-150-a96);
}
.top-programme-date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--palette-orange-300);
  background: transparent;
  color: var(--palette-gray-800);
  font-family: inherit;
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  cursor: pointer;
  text-decoration: none;
}
.top-programme-date-pill:hover {
  border-color: var(--palette-gray-500);
}
.top-programme-date-pill.is-active {
  border-color: var(--color-green);
  background: var(--color-green);
  color: var(--color-text-inverse);
}
.top-programme-date-pill.is-active:hover {
  border-color: var(--color-green);
}
.top-programme-tab-content {
  display: none;
}
.top-programme-tab-content.is-active {
  display: block;
}
.top-programme-reunions-scroll {
  display: flex;
  flex-direction: column;
  gap: 1px;
  /* Affiche 5 réunions + une demi-6e qui dépasse (peek) : le fondu bas l'estompe
     = signal « il y en a d'autres ». Zone liste (236) + bouton (44) ≈ +20px vs
     l'origine, mais la légende est en margin-top:auto et la colonne gauche
     (cartes Quinté+) fait généralement la hauteur → absorbé, le méga-menu ne
     grandit pas. Repli sans croissance possible : raccourcir le bouton. */
  min-height: 236px;
  max-height: 236px;
  margin-top: 14px;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--palette-blue-400-a75) transparent;
}
/* Fondu bas : signale qu'il reste des réunions sous la ligne de flottaison.
   Retiré dès qu'on atteint le bas (.is-at-end posée par header.js) et absent
   quand la liste ne déborde pas (.is-overflow requise). */
.top-programme-reunions-scroll.is-overflow:not(.is-at-end) {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
}
.top-programme-reunions-scroll::-webkit-scrollbar {
  width: 3px;
}
.top-programme-reunions-scroll::-webkit-scrollbar-thumb {
  background: var(--palette-blue-400-a85);
  border-radius: var(--radius-full);
}
/* Bouton « Voir les X autres réunions » sous la liste : défile en interne et
   bascule en « Remonter » une fois en bas. Pas de séparateur (le peek + le
   fondu de la demi-6e réunion suffisent à délimiter). Masqué par défaut (et
   sans JS) ; révélé par header.js si la liste déborde. */
.top-programme-reunions-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--color-green);
  font-family: inherit;
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  cursor: pointer;
}
.top-programme-reunions-more[hidden] {
  display: none;
}
.top-programme-reunions-more:hover {
  background: var(--palette-green-100);
}
.top-programme-reunions-more-icon {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.top-programme-reunions-more-icon svg {
  width: 16px;
  height: 16px;
}
.top-programme-reunions-more.is-collapse .top-programme-reunions-more-icon {
  transform: rotate(180deg);
}
.top-programme-reunion-link {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 3px 0;
}
.top-programme-reunion-code {
  font-size: var(--font-size-15);
  font-weight: var(--text-extrabold-weight);
  color: var(--palette-gray-900);
}
.top-programme-reunion-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.top-programme-reunion-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--font-size-15);
  color: var(--palette-gray-900);
}
.top-programme-reunion-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--palette-red-600c);
  color: var(--color-text-inverse);
  font-size: var(--font-size-11);
  font-weight: var(--text-bold-weight);
}
.top-programme-reunion-meta {
  color: var(--palette-gray-600b);
  font-size: var(--font-size-13);
  font-weight: var(--text-regular-weight);
}
.top-programme-reunion-meta strong {
  font-weight: var(--text-semibold-weight);
}
.top-programme-calendar-link {
  margin-left: auto;
  color: var(--palette-gray-700);
  font-size: var(--font-size-xs);
  font-weight: var(--text-regular-weight);
  text-decoration: none;
  white-space: nowrap;
}
.top-programme-calendar-link:hover {
  color: var(--palette-blue-800);
}
.top-programme-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--palette-blue-150-a96);
  color: var(--palette-gray-700);
  font-size: var(--font-size-xs);
}
.top-programme-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-programme-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex: 0 0 10px;
  background: var(--palette-slate-300b);
}
.top-programme-dot.is-france {
  background: var(--color-green);
}
.top-programme-dot.is-quinte {
  background: var(--color-red);
}
.top-programme-dot.is-etranger {
  background: var(--color-orange);
}
.top-programme-empty {
  margin: 4px 0 0;
  color: var(--palette-blue-600);
  font-size: var(--font-size-13);
  line-height: 1.5;
}
/* ══════════════════════════════════════════════════════════════════════
 *  LES DEUX MÉGA-MENUS DE LA BARRE — « Concours » et « Ligues »
 *  ⛔ Le méga-menu unique « Trophées » (13/09/2026) est ABANDONNÉ : le mot
 *  n'était pas explicite (Xavier 14/09/2026). Chaque rubrique a repris son
 *  lien et son menu ; les mesures, elles, n'ont pas bougé.
 *  Mêmes mesures que le méga-menu Programme ci-dessus : c'est le même objet
 *  pour le visiteur, il ne doit pas changer de forme d'un menu à l'autre.
 *  Markup : partials/megamenu.php (partagé par le header générique et le
 *  thème hippique). Le panneau n'apparaît qu'à partir de 1024 px — en
 *  dessous, le lien reste un simple lien vers sa page.
 * ══════════════════════════════════════════════════════════════════════ */
/* ⚠️ Affiché à TOUTES les largeurs : cette boîte ne contient pas que le menu,
   elle contient le LIEN de barre lui-même. La masquer sous 1024 px ferait
   disparaître « Concours » et « Ligues » de la barre — c'est ce trou que
   l'ancien menu « Trophées » devait combler avec des liens de repli. */
.top-nav-item-mm {
  display: inline-flex;
  position: static;
}
.top-nav-link-mm.is-active {
  color: var(--palette-blue-800);
}
.top-mm-menu {
  display: none;
}
/* ⚠️ SOURCE UNIQUE du fond des méga-menus — Programme, Concours et Ligues
   (Xavier 13/09/2026, essai G1). Dégradé gris → blanc : dense sous la barre rouge
   d'où le menu sort, puis il s'éclaircit vers la page. Sans lui, le blanc du menu
   touchait le blanc du contenu et on ne voyait plus où il s'arrêtait. Amplitude
   mesurée : 9,3 % — en dessous de 5 %, l'œil ne voit rien. Changer le fond ICI le
   change dans les trois menus : ne jamais recopier ces valeurs ailleurs. */
.top-programme-menu-grid,
.top-mm-panel {
  background: linear-gradient(180deg, var(--palette-slate-200) 0%, var(--color-surface) 100%);
}
.top-mm-panel {
  /* ⛔ Pas de min-height : le panneau prend la hauteur de son contenu. Les 400 px
     copiés du méga-menu Programme faisaient descendre le menu bien plus bas que
     nécessaire, avec du vide sous les colonnes (retour Xavier 13/09/2026). */
  display: flex;
  flex-direction: column;
  padding: 24px 28px 20px;
  border: 1px solid var(--palette-blue-200-a95);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 22px 54px var(--palette-blue-900-a12);
}
.top-mm-heading {
  margin: 0 0 16px;
  color: var(--palette-gray-600);
  font-size: var(--font-size-11);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.top-mm-heading-sub {
  margin-top: 20px;
}


.top-mm-ico {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--palette-gray-600b);
}
/* Blocs en blanc PUR sur le dégradé : c'est ce qui les détache. ⛔ Seulement ceux
   de ces deux menus : dans Programme, les liens et les réunions n'ont volontairement
   aucun fond, leur en donner un les transformerait en cartes. */
.top-mm-card,
.top-mm-jour,
.top-mm-gains,
.top-mm-kpi,
.top-mm-chiffre,
.top-mm-more-panel {
  background: var(--color-surface);
}

/* ══ MENU CONCOURS ══════════════════════════════════════════════════════
   Refait le 27/09/2026 (Xavier : « le A avec le podium de B pour la droite ») :
   la photo de la course et les tuiles à gauche, le podium du mois et la carte de
   l'autre concours à droite — les règles .top-mmc-* plus bas. La CARTE
   (.top-mm-card) est celle de l'ancien menu, gardée pour l'autre concours. */
.top-mm-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  text-decoration: none;
  position: relative;
}
.top-mm-card:not(.is-today):not(.is-tomorrow):hover {
  border-color: var(--palette-gray-500);
}
.top-mm-card.is-today:hover,
.top-mm-card.is-tomorrow:hover {
  filter: brightness(0.98);
}
.top-mm-card-copy {
  min-width: 0;
}
/* Les trois lignes ne se replient JAMAIS : une date longue qui passait sur deux
   lignes faisait une carte plus haute que l'autre (retour Xavier 13/09/2026). */
.top-mm-card-copy strong,
.top-mm-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-mm-card-copy strong {
  color: var(--palette-gray-900);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-500);
  line-height: 1.35;
}
.top-mm-card-date {
  color: var(--palette-gray-800);
  font-size: var(--font-size-13);
  line-height: 1.35;
}
.top-mm-card-meta {
  color: var(--palette-gray-600b);
  font-size: var(--font-size-xs);
  line-height: 1.35;
}
/* La PASTILLE du coin de la carte (Xavier 14/09/2026) : « Jouer » en vert quand
   c'est une action, « En cours… » en gris quand il n'y a rien à faire, et
   « Classement » dans le rouge de la page concours, où le bouton « Voir le
   classement » porte déjà cette couleur.
   ⚠️ La place se réserve sur le TITRE seul, pas sur toute la carte : en la
   réservant sur les trois lignes, « R1C1 Beaumont de Lomagne · 13:55 » se faisait
   couper par le « … » (vu au banc le 14/09/2026). */
.top-mm-card:has(.top-mm-pastille) .top-mm-card-copy strong {
  padding-right: 92px;
}
.top-mm-pastille {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  white-space: nowrap;
}
.top-mm-pastille.is-jouer {
  background: var(--color-green);
  color: var(--color-text-inverse);
}
.top-mm-pastille.is-encours {
  background: var(--palette-slate-100);
  border: 1px solid var(--palette-blue-150-a96);
  color: var(--palette-gray-700);
}
.top-mm-pastille.is-classement {
  background: var(--color-danger-soft);
  border: 1px solid var(--palette-red-200, var(--palette-red-500));
  color: var(--palette-red-700);
}
.top-mm-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: var(--radius-full);
  background: var(--palette-slate-300);
  flex: 0 0 auto;
}
.top-mm-dot.is-today,
.top-mm-card.is-tomorrow .top-mm-dot {
  /* Même repère que le méga-menu Programme : un point rouge, lisible sur le vert
     comme sur le bleu (un point vert sur fond vert clair disparaissait). */
  background: var(--palette-red-500);
}
.top-mm-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: var(--palette-gray-900);
  font-size: var(--font-size-15);
  font-weight: var(--font-weight-500);
  /* Les libellés du concours (« Liste des pronostics ») tiennent sur une ligne :
     pas de retour à la ligne dans un menu (demande Xavier 13/09/2026). */
  white-space: nowrap;
  text-decoration: none;
}
.top-mm-link:hover {
  text-decoration: underline;
}

/* ── La photo, les tuiles, le podium (27/09/2026) ──────────────────────────
   partials/megamenu-concours.php. Préfixe .top-mmc- : rien n'est partagé avec
   Ligues ni Quinté+, hors le cadre (.top-mm-panel), le titre (.top-mm-heading)
   et la carte (.top-mm-card). Couleurs du podium = celles de la page du
   concours (.concours-pod), même or, même argent, même bronze. */
.top-mmc {
  /* Les quatre tons des tuiles, dans l'ordre où la page du concours sert ses
     pages : un repère par couleur, pas une décoration. */
  --top-mmc-vert: var(--color-green);
  --top-mmc-bleu: var(--palette-blue-700b);
  --top-mmc-orange: var(--palette-orange-700b);
  --top-mmc-violet: var(--palette-violet-600c);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 0 28px;
  /* stretch : la photo s'allonge jusqu'au bas de la colonne de droite, les deux
     colonnes finissent au même niveau (maquette validée le 27/09/2026). */
  align-items: stretch;
}
/* Ni podium ni second concours : une seule colonne, la photo prend la largeur. */
.top-mmc.is-solo {
  grid-template-columns: minmax(0, 1fr);
}
/* ⚠️ Les deux états de l'échange portent un `display` en classe : sans cette
   règle, `hidden` perdait et on voyait les deux photos l'une sous l'autre. */
.top-mmc [hidden] {
  display: none;
}
.top-mmc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.top-mmc-photo {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 200px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  /* Le voile vert de la page du concours (.concours-hero-home) : le texte blanc
     reste lisible sur toutes les photos, et sans photo le vert reste seul. */
  background: var(--palette-green-900b);
  color: var(--color-text-inverse);
  text-decoration: none;
}
/* La photo en FOND d'un pseudo-élément, comme le menu Quinté+ : menu fermé, le
   navigateur ne la télécharge pas. `border-radius: inherit` arrondit la photo
   sans `overflow: hidden` sur la carte. */
.top-mmc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image:
    linear-gradient(101deg, rgba(11, 61, 46, 0.95) 0%, rgba(13, 72, 54, 0.86) 48%, rgba(18, 72, 88, 0.55) 100%),
    var(--top-mmc-photo, none);
  background-size: cover;
  background-position: center 40%;
}
.top-mmc-photo:hover .top-mmc-nom {
  text-decoration: underline;
}
.top-mmc-cap {
  font-size: var(--font-size-11);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}
/* Le nom du prix tient sur UNE ligne : trop long, il finit par « … » (Xavier
   28/09/2026 : « le nom du prix doit être tronqué s'il est trop long pour éviter
   les retours à la ligne »). */
.top-mmc-nom {
  margin-top: 6px;
  overflow: hidden;
  font-size: 23px;
  font-weight: var(--text-bold-weight);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-mmc-meta {
  margin-top: 4px;
  font-size: var(--font-size-13);
  opacity: 0.9;
}
/* La ligne de la course tient sur UNE ligne : trop longue, SEUL l'hippodrome
   rétrécit et finit par « … » (Xavier 28/09/2026) — « Quinté+ · R1C4 » devant,
   l'heure, la discipline et les partants derrière restent entiers. `pre` garde
   les espaces de bout des morceaux, qu'un flex écraserait. */
.top-mmc-ligne {
  display: flex;
  min-width: 0;
  white-space: nowrap;
}
.top-mmc-ligne-fixe {
  flex: 0 0 auto;
  white-space: pre;
}
.top-mmc-hippo {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-mmc-preuve {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 14px;
  font-size: var(--font-size-13);
}
.top-mmc-preuve b {
  font-weight: var(--text-bold-weight);
}
/* Les petites bulles de joueurs, comme la preuve du haut de la page du concours. */
.top-mmc-avs {
  display: inline-flex;
}
.top-mmc-avs i {
  display: block;
  width: 21px;
  height: 21px;
  margin-left: -7px;
  border: 2px solid var(--palette-green-900b);
  border-radius: var(--radius-full);
  background: var(--palette-blue-200d);
}
.top-mmc-avs i:first-child {
  margin-left: 0;
}
.top-mmc-avs i:nth-child(2) {
  background: var(--palette-orange-100);
}
.top-mmc-avs i:nth-child(3) {
  background: var(--palette-green-200);
}
.top-mmc-avs i:nth-child(4) {
  background: var(--palette-white);
}
.top-mmc-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
/* Sans ligne de joueurs, c'est le bas qui descend en bas de la photo. */
.top-mmc-meta + .top-mmc-bas,
.top-mmc-nom + .top-mmc-bas {
  margin-top: auto;
  padding-top: 14px;
}
.top-mmc-cd {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.top-mmc-cd-lab {
  margin-right: 5px;
  font-size: 12.5px;
  opacity: 0.88;
}
.top-mmc-cd-h {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-mmc-cd b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--palette-white-a22);
  border-radius: var(--radius-md);
  background: var(--palette-white-a14);
  font-size: 21px;
  font-weight: var(--text-bold-weight);
  font-variant-numeric: tabular-nums;
}
.top-mmc-cd i {
  margin-right: 3px;
  font-size: 12.5px;
  font-style: normal;
  opacity: 0.88;
}
/* Le bouton : blanc sur la photo tant qu'on peut jouer ; fermé, il prend la
   couleur de la pastille qu'il remplace (« En cours… », « Classement »). */
.top-mmc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  margin-left: auto;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-15);
  font-weight: var(--text-bold-weight);
  white-space: nowrap;
}
.top-mmc-cta.is-jouer {
  background: var(--color-surface);
  color: var(--palette-green-800g);
}
.top-mmc-cta.is-encours {
  border: 1px solid var(--palette-white-a35);
  background: var(--palette-white-a14);
  color: var(--color-text-inverse);
}
.top-mmc-cta.is-classement {
  background: var(--color-danger-soft);
  color: var(--palette-red-700);
}
.top-mmc-photo:hover .top-mmc-cta {
  filter: brightness(0.97);
}
/* Entre deux concours : le vert seul, la phrase de la page du concours. */
.top-mmc-photo.is-vide .top-mmc-meta {
  margin-top: auto;
  padding-top: 14px;
}

.top-mmc-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.top-mmc-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--palette-gray-900);
  font-size: var(--font-size-15);
  font-weight: var(--font-weight-500);
  white-space: nowrap;
  text-decoration: none;
}
.top-mmc-tile:hover {
  border-color: var(--palette-gray-500);
}
.top-mmc-ico {
  --top-mmc-ton: var(--top-mmc-vert);
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--top-mmc-ton) 12%, var(--color-surface));
  color: var(--top-mmc-ton);
}
.top-mmc-ico.is-bleu {
  --top-mmc-ton: var(--top-mmc-bleu);
}
.top-mmc-ico.is-orange {
  --top-mmc-ton: var(--top-mmc-orange);
}
.top-mmc-ico.is-violet {
  --top-mmc-ton: var(--top-mmc-violet);
}
.top-mmc-ico .top-mm-ico {
  color: inherit;
}

.top-mmc-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.top-mmc-side-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
/* « Tout voir » n'est pas un titre : ni capitales, ni gris. */
.top-mmc-side-h a {
  color: var(--palette-blue-700b);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-600);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}
.top-mmc-side-h a:hover {
  text-decoration: underline;
}
.top-mmc-podium {
  overflow: hidden;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.top-mmc-marches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 0;
  list-style: none;
}
.top-mmc-marche {
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}
/* L'or au milieu : c'est un podium, pas un tableau. Le DOM reste 1 · 2 · 3.
   Placé par COLONNE, pas par `order` : avec un ou deux joueurs, `order` laissait
   l'or dans la première case, à gauche (audit du 27/09/2026). */
.top-mmc-marche {
  grid-row: 1;
}
.top-mmc-marche.is-1 {
  grid-column: 2;
}
.top-mmc-marche.is-2 {
  grid-column: 1;
}
.top-mmc-marche.is-3 {
  grid-column: 3;
}
.top-mmc-marche-nom {
  max-width: 100%;
  overflow: hidden;
  color: var(--palette-gray-900);
  font-size: 13.5px;
  font-weight: var(--text-bold-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-mmc-marche-pts {
  color: var(--palette-gray-600b);
  font-size: 11.5px;
}
.top-mmc-marche-barre {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin-top: 7px;
  padding-top: 6px;
  border-radius: 5px 5px 0 0;
  color: var(--color-text-inverse);
  font-size: 16px;
  font-weight: var(--text-bold-weight);
}
.top-mmc-marche.is-1 .top-mmc-marche-barre {
  height: 74px;
  background: var(--palette-orange-500e);
}
.top-mmc-marche.is-2 .top-mmc-marche-barre {
  height: 54px;
  background: var(--palette-blue-400i);
}
.top-mmc-marche.is-3 .top-mmc-marche-barre {
  height: 40px;
  background: var(--palette-orange-700b);
}
.top-mmc-rang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border-top: 1px solid var(--palette-blue-150-a96);
  font-size: var(--font-size-sm);
}
.top-mmc-rang-n {
  width: 18px;
  color: var(--palette-gray-600b);
  font-weight: var(--text-bold-weight);
  text-align: center;
}
.top-mmc-rang-nom {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--palette-gray-900);
  font-weight: var(--text-bold-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-mmc-rang-pts {
  color: var(--palette-gray-600b);
  font-size: var(--font-size-13);
  white-space: nowrap;
}
/* Votre place : la ligne verte du classement de la page du concours (is-me).
   ⚠️ Elle passe à la ligne au besoin : « 1 234e sur 5 678 · 13 565,2 pts » ne tient
   pas en 290 px, et le cadre du podium (overflow: hidden) coupait les points. */
.top-mmc-moi {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--palette-green-200);
  background: var(--color-success-soft);
  color: var(--palette-green-800q);
  text-decoration: none;
}
.top-mmc-moi:hover .top-mmc-moi-val {
  text-decoration: underline;
}
/* Le contour du clavier À L'INTÉRIEUR : le cadre du podium coupe ce qui dépasse. */
.top-mmc-moi:focus-visible {
  outline-offset: -3px;
}
.top-mmc-moi-lab {
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-mmc-moi-val {
  font-size: 19px;
  font-weight: var(--text-bold-weight);
  white-space: nowrap;
}
.top-mmc-moi-val sup {
  font-size: 0.55em;
}
.top-mmc-moi-val small {
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-500);
}
.top-mmc-moi-pts {
  margin-left: auto;
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-600);
  white-space: nowrap;
}
.top-mmc-moi-absent {
  margin-left: auto;
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-500);
}
/* Le visiteur : l'invitation à la place de sa place. */
.top-mmc-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--palette-green-200);
  background: var(--color-success-soft);
  color: var(--palette-green-800q);
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
}
.top-mmc-invite-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--color-green);
  color: var(--color-text-inverse);
  font-size: var(--font-size-13);
  text-decoration: none;
  white-space: nowrap;
}
.top-mmc-invite-btn:hover {
  filter: brightness(0.95);
}
/* La carte de l'autre concours, sous le podium. L'écart vient du `gap` de la
   colonne : un état caché (display: none) n'en prend pas, une marge si. */
.top-mmc-suite .top-mm-card {
  margin-bottom: 0;
}

/* ══ MENU LIGUES ════════════════════════════════════════════════════════
   Pilules, carte du membre, tuiles de récompenses. */
.top-mm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--palette-blue-150-a96);
}
.top-mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--palette-orange-300);
  background: transparent;
  color: var(--palette-gray-800);
  font-family: inherit;
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  text-decoration: none;
  cursor: pointer;
}
.top-mm-pill:hover {
  border-color: var(--palette-gray-500);
}
.top-mm-pill.is-mine,
.top-mm-pill.is-active {
  border-color: var(--color-green);
  background: var(--color-green);
  color: var(--color-text-inverse);
}
/* Le bouton « Aide » : posé juste après le déroulant, avant les pastilles, à
   l'endroit où l'œil bute sur les pilules sans savoir ce qu'est une ligue. */
.top-mm-aide {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--palette-orange-300);
  color: var(--palette-gray-800);
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  text-decoration: none;
  white-space: nowrap;
}
.top-mm-aide:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}
.top-mm-aide-ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.top-mm-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--palette-slate-100);
  color: var(--palette-gray-800);
  font-size: var(--font-size-xs);
  white-space: nowrap;
}
.top-mm-stat b {
  color: var(--color-green);
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
}
.top-mm-more {
  position: relative;
  display: inline-flex;
}
.top-mm-more-btn .top-mm-ico {
  width: 13px;
  height: 13px;
  color: inherit;
}
.top-mm-more-panel {
  display: none;
  position: absolute;
  /* Collé à la pilule, SANS espace : 6 px de vide suffisaient à perdre :hover en
     descendant vers le panneau, qui se refermait sous le pointeur (revue Codex
     13/09/2026). Il n'y a aucun JS pour rattraper ça. */
  top: 100%;
  right: 0;
  z-index: 6;
  min-width: 168px;
  padding: 5px;
  background: var(--color-surface);
  border: 1px solid var(--palette-blue-200-a95);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px var(--palette-blue-900-a12);
}
/* Ouverture au survol ET au focus clavier — aucun JS, comme le méga-menu lui-même. */
.top-mm-more:hover .top-mm-more-panel,
.top-mm-more:focus-within .top-mm-more-panel {
  display: block;
}
.top-mm-more-item {
  display: block;
  padding: 7px 10px;
  color: var(--palette-gray-900);
  font-size: var(--font-size-sm);
  text-decoration: none;
  white-space: nowrap;
}
.top-mm-more-item:hover {
  text-decoration: underline;
}
.top-mm-more-item.is-active {
  font-weight: var(--text-bold-weight);
}
.top-mm-more-item.is-muted {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--palette-blue-150-a96);
  color: var(--palette-gray-600b);
}

/* ══ MENU LIGUES — « LA JOURNÉE » (Xavier 22/09/2026) ═══════════════════
   ⛔ Le menu ne parlait que du pronostic ; les points XP viennent de l'activité de
   tous les jours. Au MEMBRE : sa journée et sa série à gauche, sa semaine à droite.
   Au VISITEUR : la promesse à gauche, ce qui rapporte des points à droite.
   Les pilules des ligues ferment le panneau dans les deux cas. */
.top-mm-pills--bas {
  margin-top: 16px;
  padding-bottom: 0;
  border-bottom: 0;
  /* Les pilules à gauche, les pastilles chiffrées et « Aide » poussées à droite, à
     l'aplomb du « Règlement des ligues » du pied. ⛔ PAS de nowrap : le panneau fait
     900 px quelle que soit la fenêtre, donc un repli commandé par la largeur d'écran
     n'a aucun sens — au-dessus de 1400 px il forçait les libellés à se casser à
     l'intérieur des pilules au lieu de replier la rangée (audit Codex 23/09/2026).
     Mesuré à 842 px utiles : « Division », trois ligues et 100 000 joueurs tiennent
     (795 px) ; un mot réglé très long replie proprement, le groupe de droite restant
     d'un bloc sur la seconde ligne. */
  align-items: center;
}
.top-mm-pills-fin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}
/* ⚠️ La rangée est passée EN BAS du panneau (22/09/2026) : le déroulant « Toutes les
   ligues » s'ouvrait donc vers le bas, masquait le pied du menu et débordait de 180 px
   sous le panneau (vu au rendu). Il s'ouvre maintenant vers le haut — toujours COLLÉ à
   la pilule, sans espace, sinon on perd le :hover en y allant (il n'y a aucun JS). */
.top-mm-pills--bas .top-mm-more-panel {
  top: auto;
  bottom: 100%;
}


/* ── Le visiteur ── */
.top-mm-hero {
  display: grid;
  /* 320 px pour la liste des gains : « Se servir des outils » et sa pastille tiennent
     sur une ligne, et la promesse garde de quoi respirer à gauche. */
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  /* 6 px, pas 16 : il n'y a plus de ligne de titre au-dessus, le padding du panneau
     suffit à aérer (audit Codex 23/09/2026 — la remise à zéro d'avant était écrasée). */
  margin-top: 6px;
}
.top-mm-hero-titre {
  margin: 0 0 8px;
  color: var(--palette-gray-900);
  font-size: var(--font-size-xl);
  line-height: 1.22;
}
.top-mm-hero-titre b {
  color: var(--color-green);
}
.top-mm-hero-texte {
  margin: 0 0 14px;
  color: var(--palette-gray-700);
  font-size: var(--font-size-sm);
  line-height: 1.45;
}
.top-mm-hero-ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.top-mm-hero-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--color-green);
  color: var(--color-text-inverse);
  font-size: var(--font-size-sm);
  font-weight: var(--text-bold-weight);
  text-decoration: none;
  white-space: nowrap;
}
.top-mm-hero-lien {
  color: var(--palette-gray-700);
  font-size: var(--font-size-13);
  text-decoration: none;
}
.top-mm-hero-lien u {
  color: var(--palette-gray-900);
}

/* ── Ce qui rapporte des points (visiteur) ── */
.top-mm-gains {
  padding: 4px 12px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
}
.top-mm-gain {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--palette-gray-800);
  font-size: var(--font-size-13);
  text-decoration: none;
}
.top-mm-gain + .top-mm-gain {
  border-top: 1px solid var(--palette-slate-100);
}
.top-mm-gain .top-mm-ico {
  color: var(--palette-gray-500);
}
.top-mm-gain-txt {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.top-mm-gain-pts {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--palette-green-100);
  color: var(--color-green);
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  white-space: nowrap;
}
/* La série est le seul gain qui ne se gagne pas dans la journée : elle a sa couleur. */
.top-mm-gain.is-feu .top-mm-ico,
.top-mm-serie-ico .top-mm-ico {
  color: var(--palette-orange-600b);
}
.top-mm-gain.is-feu .top-mm-gain-pts {
  background: var(--palette-yellow-100);
  color: var(--palette-orange-600b);
}
/* « Et bien plus encore… » : il mène à /points/, où le barème est complet. */
.top-mm-gain-plus,
.top-mm-gain-plus .top-mm-ico {
  color: var(--color-green);
}
.top-mm-gain-plus {
  font-weight: var(--text-bold-weight);
}
.top-mm-gain-plus:hover .top-mm-gain-txt {
  text-decoration: underline;
}
.top-mm-gain-plus--jour {
  padding: 9px 0 4px;
}
.top-mm-gain-chev {
  flex: 0 0 auto;
  font-size: var(--font-size-base);
  line-height: 1;
}
.top-mm-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.top-mm-chiffre {
  padding: 10px 12px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  text-align: center;
}
.top-mm-chiffre b {
  display: block;
  color: var(--color-green);
  font-size: var(--font-size-lg);
  font-weight: var(--text-bold-weight);
}
.top-mm-chiffre span {
  color: var(--palette-gray-600b);
  font-size: var(--font-size-xs);
}

/* ── Le membre : deux colonnes ── */
.top-mm-deux {
  display: grid;
  /* 330 px à droite : « Gagnés cette semaine » et « 502 XP au total » tiennent sans
     se replier, et la journée garde la largeur qu'il faut à ses boutons. */
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin-top: 6px;
}
.top-mm-deux.is-solo,
.top-mm-hero.is-solo {
  grid-template-columns: minmax(0, 1fr);
}
.top-mm-deux.is-solo .top-mm-col--sep {
  border-left: 0;
  padding-left: 0;
}
.top-mm-col--sep {
  border-left: 1px solid var(--palette-blue-150-a96);
  padding-left: 22px;
}
.top-mm-heading-ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.top-mm-heading-norm {
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--font-weight-400);
  color: var(--palette-gray-600b);
}
/* Le retard du robot, écrit à l'écran : les cases sont cochées à son passage suivant. */
.top-mm-fraicheur {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--palette-gray-600b);
  font-size: var(--font-size-11);
  font-weight: var(--font-weight-400);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.top-mm-fraicheur-ico {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

/* ── Les cases du jour ── */
.top-mm-jour {
  padding: 4px 12px 10px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
}
.top-mm-jour-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0 7px;
  border-bottom: 1px solid var(--palette-slate-100);
  color: var(--palette-gray-900);
  font-size: var(--font-size-13);
}
.top-mm-jour-gagnes {
  color: var(--color-green);
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  white-space: nowrap;
}
.top-mm-mission {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: var(--palette-gray-800);
  font-size: var(--font-size-13);
  text-decoration: none;
}
.top-mm-mission + .top-mm-mission,
.top-mm-mission + .top-mm-gain-plus {
  border-top: 1px solid var(--palette-slate-100);
}
.top-mm-coche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--color-green);
  color: var(--color-text-inverse);
}
.top-mm-coche svg {
  width: 12px;
  height: 12px;
}
/* Ce qui reste à faire se voit : cercle vide et texte appuyé. */
.top-mm-mission.is-a-faire .top-mm-coche {
  background: var(--color-surface);
  border: 1.5px dashed var(--palette-gray-500);
}
.top-mm-mission.is-a-faire .top-mm-mission-txt {
  color: var(--palette-gray-900);
  font-weight: var(--text-bold-weight);
}
.top-mm-mission.is-faite .top-mm-mission-txt {
  color: var(--palette-gray-600b);
}
.top-mm-mission-txt {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.top-mm-mission-pts {
  flex: 0 0 auto;
  color: var(--palette-gray-600b);
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  white-space: nowrap;
}
.top-mm-mission.is-a-faire .top-mm-mission-pts {
  color: var(--color-green);
}
.top-mm-mission-cta {
  display: inline-flex;
  align-items: center;
  height: 26px;
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--color-green);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  /* ⚠️ Sans nowrap, « Y aller » se coupait en deux et débordait de la carte. */
  white-space: nowrap;
}

/* ── La série ── */
.top-mm-serie {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--palette-yellow-150b);
  border-radius: var(--radius-md);
  background: var(--palette-yellow-100);
}
.top-mm-serie-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--color-surface);
}
.top-mm-serie-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.top-mm-serie-copy strong {
  display: block;
  color: var(--palette-gray-900);
  font-size: var(--font-size-sm);
}
.top-mm-serie-copy span {
  color: var(--palette-gray-700);
  font-size: var(--font-size-13);
}
.top-mm-serie-joker {
  flex: 0 0 auto;
  color: var(--color-green);
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  white-space: nowrap;
}
.top-mm-serie-joker.is-utilise {
  color: var(--palette-gray-600b);
}

/* ── La semaine : trois ou quatre cartes ── */
.top-mm-kpi {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.top-mm-kpi + .top-mm-kpi {
  margin-top: 10px;
}
.top-mm-kpi:hover {
  border-color: var(--palette-gray-500);
}
.top-mm-kpi.is-bientot {
  background: var(--palette-slate-50);
}
.top-mm-kpi.is-bientot:hover {
  border-color: var(--palette-blue-150-a96);
}
.top-mm-kpi-lab {
  display: block;
  margin-bottom: 3px;
  color: var(--palette-gray-600);
  font-size: var(--font-size-11);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top-mm-kpi-val {
  display: block;
  color: var(--palette-gray-900);
  font-size: var(--font-size-lg);
  font-weight: var(--text-bold-weight);
  line-height: 1.15;
}
.top-mm-kpi-val.is-vert {
  color: var(--color-green);
}
/* Une phrase n'est pas un nombre : « Classement en préparation » garde une taille de texte. */
.top-mm-kpi-val--texte {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-500);
}
.top-mm-kpi-val sup {
  font-size: var(--font-size-11);
}
.top-mm-kpi-plus {
  color: var(--palette-gray-600b);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-400);
}
.top-mm-kpi-sous {
  display: block;
  color: var(--palette-gray-600b);
  font-size: var(--font-size-xs);
}
.top-mm-kpi-sous.is-monte {
  color: var(--color-green);
  font-weight: var(--text-bold-weight);
}
.top-mm-kpi-sous.is-descend {
  color: var(--color-danger);
  font-weight: var(--text-bold-weight);
}

/* ══ LE PIED, commun aux deux menus ═════════════════════════════════════
   Concours : le pont vers les ligues, puis le règlement.
   Ligues   : le pont vers le concours, le décompte, puis le règlement.
   space-between répartit ces deux ou trois blocs sur toute la largeur. */
.top-mm-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  /* Même hauteur de ligne que les liens du menu Concours (34 px, texte centré). */
  min-height: 34px;
  color: var(--palette-gray-700);
  font-size: var(--font-size-xs);
}
/* Ligues fermées : le pied ne porte plus que le règlement. space-between le
   laisserait à gauche, tout seul et de travers — il reprend sa place à droite. */
.top-mm-legend > :only-child {
  margin-left: auto;
}
/* Le pont vers l'autre menu : en vert, c'est la seule phrase du menu qui explique
   à quoi sert le reste (Xavier 14/09/2026). */
.top-mm-vers {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--color-green);
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  text-decoration: none;
}
.top-mm-vers:hover {
  text-decoration: underline;
}
.top-mm-vers .top-mm-ico {
  width: 15px;
  height: 15px;
  color: inherit;
}
/* Le podium de « Vos pronostics rapportent des points XP… » : la hauteur d'une
   CAPITALE du texte (0,72 em), du pied à la ligne de base — sa case est recadrée
   sur le dessin (partials/megamenu.php). À 15 px dans une case carrée, le dessin
   plat ne faisait que 5 px de haut (Xavier 28/09/2026). */
.top-mm-vers .top-mm-ico.top-mm-ico--podium {
  width: auto;
  height: 0.72em;
  aspect-ratio: 16.5 / 8.5;
}
.top-mm-legend-links {
  white-space: nowrap;
}
.top-mm-echeance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.top-mm-echeance b {
  color: var(--palette-gray-900);
  font-weight: var(--text-bold-weight);
}
.top-mm-echeance-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--palette-gray-600b);
}
/* La dernière heure avant le calcul : c'est le moment où l'on peut encore
   gagner une place, il doit se voir. */
.top-mm-echeance.is-urgent,
.top-mm-echeance.is-urgent b,
.top-mm-echeance.is-urgent .top-mm-echeance-ico {
  color: var(--color-danger);
}
.top-mm-legend-links a {
  color: var(--palette-gray-800);
  text-decoration: none;
}
.top-mm-legend-links a:hover {
  color: var(--palette-blue-800);
  text-decoration: underline;
}

/* ══ MENU QUINTÉ+ (Xavier 24/09/2026, maquette C) ══════════════════════
   partials/megamenu-quinte.php. À gauche la course du jour sur la photo de sa
   discipline, puis ses cinq pages en tuiles ; à droite le Quinté de demain (le
   bloc du menu Programme, .top-programme-q, repris tel quel) et le bouton du
   bookmaker. Préfixe .top-mmq- : rien n'est partagé avec Concours et Ligues,
   hors le cadre (.top-mm-panel) et les liens de colonne (.top-mm-link). */
.top-mmq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 0 32px;
  align-items: start;
}
/* La photo (170 px) et les tuiles (44 px) sont hautes EXPRÈS : le bouton du
   bookmaker a fait grandir la colonne de droite, et les deux colonnes finissent
   ainsi à la même hauteur (maquette validée le 24/09/2026). */
.top-mmq-photo {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  /* Le vert du bandeau du hub (.qh-band-hero), sans valeur en dur. */
  background: linear-gradient(180deg, var(--palette-green-800g) 0%, color-mix(in srgb, var(--palette-green-800g) 70%, black) 100%);
  color: var(--color-text-inverse);
  text-decoration: none;
}
/* La photo en FOND d'un pseudo-élément, comme le bandeau du hub : menu fermé, le
   navigateur ne la télécharge pas. `border-radius: inherit` arrondit la photo
   sans `overflow: hidden` sur la carte. */
.top-mmq-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: var(--top-mmq-photo, none);
  background-size: cover;
  background-position: 60% 35%;
  opacity: 0.34;
}
.top-mmq-photo:hover .top-mmq-photo-name {
  text-decoration: underline;
}
/* « Quinté+ du jour » dans une pastille rouge, la date à côté (Xavier 28/09/2026) :
   le rouge de la pastille QUINTÉ+ du bandeau vert du hub (.qh-band-chip.is-quinte).
   Le léger voile (0.9) ne touche plus que la date : la pastille reste franche. */
.top-mmq-photo-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-11);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.top-mmq-pastille {
  flex: none;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: var(--palette-red-500d);
  letter-spacing: 0.08em;
}
.top-mmq-photo-date {
  opacity: 0.9;
}
/* Le nom du prix tient sur UNE ligne : trop long, il finit par « … » (Xavier
   28/09/2026 : « le prix doit être tronqué s'il est vraiment long pour éviter le
   retour à la ligne ») — même règle que le menu Concours (.top-mmc-nom). */
.top-mmq-photo-name {
  margin-top: 4px;
  overflow: hidden;
  font-size: var(--font-size-lg);
  font-weight: var(--text-bold-weight);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-mmq-photo-meta {
  margin-top: 3px;
  font-size: var(--font-size-13);
  opacity: 0.92;
}
/* La ligne de la course tient sur UNE ligne : trop longue, SEUL l'hippodrome
   rétrécit et finit par « … » (Xavier 28/09/2026 : « tronque aussi le nom de
   l'hippodrome s'il est trop long ») — « · R1C1 · 13:55 · Trot attelé · 2 150 m ·
   15 partants » reste entier. `pre` garde l'espace de tête du morceau, qu'un flex
   écraserait. Mêmes règles que le menu Concours (.top-mmc-ligne). */
.top-mmq-ligne {
  display: flex;
  min-width: 0;
  white-space: nowrap;
}
.top-mmq-ligne-fixe {
  flex: 0 0 auto;
  white-space: pre;
}
.top-mmq-hippo {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Le coin haut droit (Xavier 28/09/2026, maquette A) : les non-partants puis la
   météo, dans les pastilles du bandeau vert du hub (.qh-band-chip). Posé sur la
   photo, au-dessus du texte qui descend en bas : 170 px de photo laissent la place
   même avec l'arrivée (le nom et la ligne ne font plus qu'une ligne chacun). */
.top-mmq-coin {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
}
.top-mmq-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--palette-white-a20);
  border-radius: var(--radius-full);
  background: var(--palette-white-a12);
  color: var(--color-text-inverse);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-600);
  line-height: 1.2;
  white-space: nowrap;
}
/* Le rose des non-partants du hero de l'accueil et du bandeau du hub (--qhb-np) :
   l'information se reconnaît d'un bloc à l'autre. PAS en gras (Xavier 28/09/2026 :
   « ne met pas en gras Non partant : 8 »). Une liste très longue finit par « … »
   plutôt que de sortir de la photo (ceinture : jamais vu en course). */
.top-mmq-chip.is-np {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #ffb3ba;
  font-weight: var(--text-regular-weight);
  text-overflow: ellipsis;
}
.top-mmq-chip-emoji {
  font-size: var(--font-size-13);
  line-height: 1;
}
.top-mmq-chip .top-mm-ico {
  width: 14px;
  height: 14px;
  color: inherit;
}
.top-mmq-arr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: var(--font-size-13);
}
.top-mmq-arr-label {
  margin-right: 3px;
  font-weight: var(--text-bold-weight);
}
.top-mmq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  background: var(--palette-slate-100);
  color: var(--palette-gray-900);
  font-weight: var(--text-bold-weight);
}
/* Le gagnant en vert. ⚠️ Pas :first-of-type : le libellé « Arrivée » est lui
   aussi un <span>, il serait le premier. */
.top-mmq-arr-label + .top-mmq-num {
  border-color: var(--palette-green-200);
  background: var(--palette-green-100);
  color: var(--color-green);
}
.top-mmq-arr-texte {
  font-weight: var(--text-bold-weight);
}
.top-mmq-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.top-mmq-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--palette-gray-900);
  font-size: var(--font-size-15);
  font-weight: var(--font-weight-500);
  white-space: nowrap;
  text-decoration: none;
}
/* « Partants du Quinté » sur toute la largeur : c'est la page d'arrivée du lien
   « Quinté+ », et 5 tuiles en 2 colonnes laisseraient un trou. */
.top-mmq-tile.is-large {
  grid-column: 1 / -1;
}
.top-mmq-tile:hover {
  border-color: var(--palette-gray-500);
}
.top-mmq-tile .top-mm-ico {
  color: var(--color-green);
}
.top-mmq-cap {
  margin: 0 0 10px;
  color: var(--palette-gray-600);
  font-size: var(--font-size-11);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.top-mmq-demain {
  margin-bottom: 6px;
  text-decoration: none;
}
.top-mmq-links {
  display: flex;
  flex-direction: column;
}
.top-mmq-cta {
  margin-top: 18px;
  padding: 12px 12px 10px;
  border: 1px solid var(--palette-blue-150-a96);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.top-mmq-cta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.top-mmq-cta-logo {
  flex: 0 0 auto;
  width: auto;
  height: 22px;
}
.top-mmq-cta-bonus {
  color: var(--palette-gray-900);
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  line-height: 1.25;
  text-wrap: balance;
}
/* Le jaune du bouton « Parier » de la barre (--th-accent) : même geste, même
   couleur. Repli pour le header générique, qui ne pose pas la variable. */
.top-mmq-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--th-accent, var(--palette-orange-500));
  color: var(--th-accent-text, var(--palette-gray-900));
  font-size: var(--font-size-15);
  font-weight: var(--text-bold-weight);
  text-decoration: none;
}
.top-mmq-cta-btn:hover {
  filter: brightness(0.96);
}
.top-mmq-cta-legal {
  margin: 8px 0 0;
  color: var(--palette-gray-600b);
  font-size: var(--font-size-11);
  line-height: 1.35;
}
@media (min-width: 1024px) {
  .top-links-main {
    overflow: visible;
  }
  .top-nav-item-programme {
    display: inline-flex;
    position: static;
  }
  .top-nav-link-legacy {
    display: none;
  }
  .top-nav-item-programme.is-programme-open .top-programme-menu,
  .top-nav-item-programme:hover .top-programme-menu,
  .top-nav-item-programme:focus-within .top-programme-menu {
    display: block;
  }
  .top-programme-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
  }
  /* .is-mm-open : ouvert au DOIGT (header.js, « MÉGA-MENUS AU DOIGT ») — le premier
     toucher ouvre, le deuxième va à la page (Xavier 30/10/2026, option A). */
  .top-nav-item-mm:hover .top-mm-menu,
  .top-nav-item-mm:focus-within .top-mm-menu,
  .top-nav-item-mm.is-mm-open .top-mm-menu {
    display: block;
  }
  /* ⛔ Centré sur le CONTENEUR de la barre, pas ancré au lien (.top-nav-item-mm
     reste en position:static, comme Programme). Un panneau de cette taille posé
     sous « Ligues », tout à droite, sortirait de l'écran ; posé sous « Concours »
     à 1024 px, il sortirait à gauche. Centré, il tient à toutes les largeurs, et
     c'est exactement la position des maquettes validées le 14/09/2026. */
  .top-mm-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
  }
  /* Concours : 840 px depuis la refonte du 27/09/2026 (la photo de la course à
     gauche, le podium du mois à droite — la largeur des maquettes validées, celle
     du menu Quinté+). Même ceinture que Ligues sur un écran étroit (zoom compris) :
     les grilles intérieures sont en minmax(0, 1fr), elles suivent. */
  .top-mm-menu--concours {
    width: 840px;
    max-width: calc(100vw - 32px);
  }
  /* 900 px depuis « La journée » (Xavier 22/09/2026) : deux colonnes pour le membre
     (sa journée, sa semaine), hero + liste des gains pour le visiteur. Le menu
     Concours est à 840 depuis le 27/09/2026 : les largeurs diffèrent, c'est assumé. */
  .top-mm-menu--ligues {
    width: 900px;
    /* Ceinture : le méga-menu existe dès 1024 px de fenêtre, où 900 px de panneau ne
       laissent que 62 px de chaque côté. Sur un écran plus étroit que prévu (zoom
       navigateur compris), il rétrécit au lieu de sortir de l'écran — les deux grilles
       intérieures sont en minmax(0, 1fr), elles suivent. */
    max-width: calc(100vw - 32px);
  }
  /* Quinté+ : 840 px, la largeur de la maquette C (Xavier 24/09/2026). La colonne
     de droite fait 290 px : « Pronostic du Quinté de demain » y tient sur une
     ligne. Même ceinture que Ligues sur un écran étroit (zoom compris).
     ⚠️ PAS centré comme Concours et Ligues : il part du bord GAUCHE du site, à
     l'aplomb du bandeau vert (Xavier 24/09/2026, capture turf-dev). Le bloc qui
     le contient est le conteneur de la barre, aligné sur celui de la page —
     c'est aussi là que commence le méga-menu Programme. */
  .top-mm-menu--quinte {
    left: 0;
    transform: none;
    width: 840px;
    max-width: calc(100vw - 32px);
  }
  /* Le menu Programme se ferme 120 ms APRÈS la sortie de la souris (header.js) et,
     au même z-index mais plus loin dans le HTML, il passe par-dessus. Venu de
     « Programme », un visiteur qui glissait sur « Quinté+ » puis descendait vite
     tombait dans le panneau Programme, qui restait ouvert — les deux partent du
     même bord gauche (audit 24/09/2026). Le menu survolé passe devant. */
  .top-nav-item-mm--quinte:hover .top-mm-menu,
  .top-nav-item-mm--quinte:focus-within .top-mm-menu,
  .top-nav-item-mm--quinte.is-mm-open .top-mm-menu {
    z-index: 101;
  }
}
@media (max-width: 1023px) {
  .top-nav-item-programme {
    display: none !important;
  }
  /* ⛔ Pas de `display: none` sur .top-nav-item-mm : cette boîte porte le LIEN de
     barre. Sous 1024 px le méga-menu ne s'ouvre pas (aucune règle ne le montre),
     mais « Concours » et « Ligues » restent des liens cliquables — et le tiroir
     garde les siens.
     En revanche le chevron s'en va : il annonce un menu qui ne s'ouvrira pas
     (vu au banc sur la vraie page à 950 px, le 14/09/2026). */
  .top-nav-item-mm .top-nav-caret,
  .top-nav-item-mm .th-nav-caret {
    display: none;
  }
}
.top-account-nav {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 10px;
}
.top-account-nav .top-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}
.top-account-nav .top-account-name {
  font-size: 17px;
  line-height: var(--text-tight-height);
}
.topbar-sticky-bookmaker {
  --sb-bar-bg: var(--palette-green-700d);
  --sb-height: 92px;
  --sb-center-text-color: var(--palette-white);
  --sb-center-text-size: 18px;
  --sb-right-text-color: var(--palette-white);
  --sb-right-text-size: 18px;
  --sb-right-bg: var(--palette-gray-900b);
  display: block;
  height: var(--sb-height);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  box-sizing: border-box;
  background: var(--sb-bar-bg);
  transition: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 82;
}
body.has-maintenance-banner .topbar-sticky-bookmaker {
  top: 26px;
}
@media (max-width: 479px) {
  body.has-maintenance-banner .topbar-sticky-bookmaker {
    top: 22px;
  }
}
.topbar-sticky-bookmaker-inner {
  --sb-right-col: 320px;
  --sb-col-gap: 16px;
  --sb-left-slot: clamp(64px, 9vw, 132px);
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, var(--sb-right-col));
  align-items: center;
  gap: var(--sb-col-gap);
  background: var(--sb-bar-bg);
  border-radius: 0;
}
.topbar-sticky-left {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: var(--sb-left-slot);
  height: auto;
  max-height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.topbar-sticky-left-logo {
  width: auto;
  height: 100%;
  max-height: calc(var(--sb-height) - 12px);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.topbar-sticky-center {
  grid-column: 1;
  justify-self: center;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
}
.topbar-sticky-center-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  min-width: 0;
}
.topbar-sticky-center-text {
  color: var(--sb-center-text-color);
  font-size: var(--sb-center-text-size);
  line-height: 1.05;
  font-weight: var(--text-extrabold-weight);
  white-space: nowrap;
}
.topbar-sticky-center-logo {
  width: auto;
  height: calc(var(--sb-height) - 34px);
  max-width: clamp(92px, 16vw, 238px);
  object-fit: contain;
  object-position: center;
}
.topbar-sticky-right {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 0.9vw, 14px) clamp(10px, 1.5vw, 22px);
  border-radius: var(--radius-sm);
  background: var(--sb-right-bg);
  max-width: 100%;
}
.topbar-sticky-right-text {
  color: var(--sb-right-text-color);
  font-size: var(--sb-right-text-size);
  line-height: 1.05;
  font-weight: var(--text-extrabold-weight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* « Pub de la régie » (bookmakers.pl, Xavier 28/10/2026) : une seule colonne, la pub
   centrée dans tout le bandeau, comme sur l'ancien turf-fr.com. De chaque côté, la place
   du logo de gauche (posé en absolu) : la pub (728 px) ne passe jamais dessus — à 980 px,
   largeur où le bandeau apparaît, il reste 780 px au milieu. */
.topbar-sticky-bookmaker--regie .topbar-sticky-bookmaker-inner {
  grid-template-columns: minmax(0, 1fr);
}
.topbar-sticky-regie {
  grid-column: 1;
  align-self: stretch;
  min-width: 0;
  padding: 0 var(--sb-left-slot);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-sticky-link,
.topbar-sticky-link:hover,
.topbar-sticky-link:focus,
.topbar-sticky-link:visited {
  text-decoration: none !important;
}
.topbar-sticky-center-text.topbar-sticky-link,
.topbar-sticky-center-link.topbar-sticky-link,
.topbar-sticky-center-text.topbar-sticky-link:hover,
.topbar-sticky-center-link.topbar-sticky-link:hover,
.topbar-sticky-center-text.topbar-sticky-link:focus,
.topbar-sticky-center-link.topbar-sticky-link:focus,
.topbar-sticky-center-text.topbar-sticky-link:visited,
.topbar-sticky-center-link.topbar-sticky-link:visited {
  color: var(--sb-center-text-color) !important;
}
.topbar-sticky-right-text.topbar-sticky-link,
.topbar-sticky-right-text.topbar-sticky-link:hover,
.topbar-sticky-right-text.topbar-sticky-link:focus,
.topbar-sticky-right-text.topbar-sticky-link:visited {
  color: var(--sb-right-text-color) !important;
}
.topbar.has-bookmaker-sticky .topbar-head,
.topbar.has-bookmaker-sticky .topbar-nav-wrap {
  max-height: none;
  opacity: 1;
  transform: none;
  transition: none;
  visibility: visible;
}
.topbar.has-bookmaker-sticky .topbar-head {
  overflow: visible;
}
.topbar.has-bookmaker-sticky .topbar-nav-wrap {
  overflow: visible;
}
.topbar.has-bookmaker-sticky.is-bookmaker-scrolled + .topbar-sticky-bookmaker {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .topbar-sticky-bookmaker {
    transition: none !important;
  }
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--palette-blue-900-a45);
  z-index: 220;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 360px);
  background: var(--color-surface);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 30px var(--palette-blue-900-a15);
  z-index: 230;
  transform: translateX(100%);
  transition: transform var(--duration-220ms) var(--easing-ease);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.mobile-drawer[hidden],
.mobile-drawer-overlay[hidden] {
  display: none;
}
body.menu-open {
  overflow: hidden;
}
body.menu-open .mobile-drawer {
  transform: translateX(0);
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--palette-blue-100c);
  color: var(--palette-blue-800);
  font-size: 26px;
  line-height: var(--text-tight-height);
}
.mobile-drawer-nav {
  display: grid;
  align-content: start;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer-nav a {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: var(--font-size-base);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-800);
}
.mobile-drawer-nav a.is-active {
  color: var(--palette-green-800);
  background: var(--palette-green-150);
}
.mobile-drawer-account {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.layout { display: grid; gap: 16px; margin: 14px auto 100px; }
/* TÉLÉPHONE ET TABLETTE (moins de 1 200 px : une seule colonne) : 24 px entre la fin du contenu et le pied de
   page, au lieu de 100 px — sur téléphone ce n'était qu'un vide (le pied de page suit le contenu ; la barre du
   bas et le bandeau collant sont fixes), très visible sous le pavé pub du bas du contenu (Xavier, 09/11/2026 :
   « ca serait mieux B non ? au moins on aurait le même espace »). L'ordinateur garde ses 100 px. Les pages qui
   règlent elles-mêmes cet espace le gardent : le Concours à barre collée (concours.css, même couche legacy,
   gagne parce qu'il est chargé APRÈS app.css — ne pas déplacer ses règles avant), la connexion et les pages
   Landing (@layer modules, qui passe après legacy). */
@media (max-width: 1199px) {
  .layout { margin-bottom: 24px; }
}
.main-col { min-width: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h1, .card h2, .card h3 { margin-top: 0; }
.card h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.card h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.card h3 {
  font-size: var(--heading-card-size);
  line-height: var(--text-ui-height);
}
.layout-course {
  --course-heading-size: 24px;
}
.layout.layout-course {
  margin-top: 0;
}
/* Même règle pour le hub Quinté : son bandeau vert est collé au header, comme
   celui de la fiche course. Posée ici, dans la couche de `.layout`, et pas dans
   quinte-hub.css : elle tient alors par la seule spécificité, sans dépendre de
   l'ordre des @layer. */
.layout.layout-quinte {
  margin-top: 0;
}
/* Et les pronostics VIP (20/09/2026). Sur téléphone, les 14 px de `.layout`
   se voyaient comme une bande grise entre le header vert et la carte du fil
   d'Ariane — mesuré au banc : 14 px de #f2f4f7, rien d'autre (aucune gouttière
   latérale, la carte est déjà à x=0 sous 980 px). La page est une feuille de
   lecture d'un seul tenant, comme /programme/ : sa carte se colle au header. */
.layout.layout-pronos-vip {
  margin-top: 0;
}
.layout-course .card {
  border-radius: 0;
}
.layout-course .card h1,
.layout-course .card h2,
.layout-course .card h3 {
  font-size: var(--course-heading-size);
  line-height: var(--text-ui-height);
  letter-spacing: 0;
}
.layout-course .card h1 { color: var(--palette-red-600d); }
.layout-course .card h2 { color: var(--palette-blue-700c); }
.layout-course .card h3 { color: var(--palette-green-700e); }
.meta-line { color: var(--muted); font-size: var(--text-body-size); margin-top: -6px; }
.grid-2 { display: grid; gap: 12px; }
.list-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-weight: var(--text-semibold-weight);
}
.btn-primary { background: var(--brand); color: var(--color-text-inverse); border-color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.layout-homepage {
  margin-top: 16px;
}
.home-shell {
  display: grid;
  gap: 16px;
  align-items: start;
}
.home-main {
  display: grid;
  gap: 16px;
  min-width: 0;
  /* SANS CETTE LIGNE LA PAGE DÉBORDE DE L'ÉCRAN. Une colonne de grille
     implicite (`auto`) se règle sur le contenu : un nom de course long en
     `white-space: nowrap` (le titre du hero Quinté) élargissait la colonne à
     464 px sur un écran de 390 → H1 coupé en plein mot, carte Quinté et
     heures de départ hors champ, et le titre ne se tronquait plus (il avait
     toute la place, donc plus de « … »). `minmax(0, 1fr)` autorise la colonne
     à rétrécir sous son contenu. Iso-visuel quand le contenu tient
     (mesuré à 1280 px avant/après : identique). */
  grid-template-columns: minmax(0, 1fr);
}
.home-sidebar {
  display: none;
  gap: 14px;
}
.home-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  /* même raison que .home-main ci-dessus : la carte est elle aussi une grille,
     et corriger le parent seul ne suffit pas — le débordement repartait d'un
     cran plus bas. */
  grid-template-columns: minmax(0, 1fr);
}
.home-day-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.home-day-tab {
  position: relative;
  padding: 6px 20px;
  border-radius: 10px;
  font-weight: var(--text-bold-weight);
  font-size: var(--font-size-18);
  line-height: var(--line-height-110);
  color: var(--palette-blue-800);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.home-day-tab:focus-visible {
  outline: 2px solid var(--palette-red-500b);
  outline-offset: 2px;
  border-radius: 6px;
}
.home-day-tab.is-active {
  color: var(--palette-blue-900c);
}
.home-day-tab.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -13px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--palette-red-500b);
}
.home-feature {
  border: 2px solid var(--palette-green-700b);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.home-feature-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-18);
  line-height: var(--line-height-110);
  font-weight: var(--text-extrabold-weight);
  color: var(--color-text-inverse);
  background: linear-gradient(120deg, var(--palette-green-700f), var(--palette-green-800b));
}
.home-feature-badge-main,
.home-feature-badge-date {
  white-space: nowrap;
}
.home-feature-badge-sep {
  white-space: nowrap;
}
.home-feature h1.home-feature-title {
  margin: 2px 0 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.home-feature-top {
  display: grid;
  gap: 10px;
}
.home-feature-top.is-pronostic {
  grid-template-columns: minmax(0, 1fr) minmax(148px, 262px);
  align-items: end;
  gap: 14px;
}
.home-feature-main {
  display: grid;
  gap: 10px;
}
.home-feature-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: var(--font-size-18);
  line-height: var(--text-ui-height);
  color: var(--palette-blue-800b);
}
.home-feature-meta-detail {
  align-items: center;
  gap: 6px 10px;
}
.home-feature-meta-sep {
  color: var(--palette-blue-600);
  font-weight: var(--text-bold-weight);
}
.home-feature-discipline-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-feature-discipline-icon {
  width: 30px;
  height: 21px;
  object-fit: contain;
  display: block;
  flex: 0 0 30px;
}
.home-feature-meta-np {
  color: var(--palette-red-600e);
  font-weight: var(--text-extrabold-weight);
}
.home-feature-pmu-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: var(--palette-red-600f);
  color: var(--color-text-inverse);
  font-size: var(--font-size-18);
  line-height: var(--line-height-110);
  font-weight: var(--text-extrabold-weight);
}
.home-feature-media {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
  max-width: 262px;
  justify-self: end;
  min-height: 120px;
}
.home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-feature-media-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--palette-red-600f);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: var(--font-size-11);
  line-height: var(--text-tight-height);
  font-weight: var(--text-extrabold-weight);
}
.home-feature-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 12px 12px;
  color: var(--color-text-inverse);
  font-size: var(--font-size-sm);
  line-height: 1.18;
  font-weight: var(--text-bold-weight);
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--palette-blue-900-a0) 0%, var(--palette-blue-900-a72) 100%);
}
.home-feature-result {
  border-radius: 14px;
  background: linear-gradient(140deg, var(--palette-green-700f), var(--palette-green-800b));
  color: var(--color-text-inverse);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 14px;
}
.home-feature-result strong {
  font-size: 8px;
  letter-spacing: 0.08em;
}
.home-feature-result p {
  margin: 0;
  font-size: 36px;
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.04em;
}
.home-feature-result span {
  font-size: var(--font-size-10);
}
.home-feature-reports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-feature-report-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--palette-blue-50);
  display: grid;
  gap: 4px;
}
.home-feature-report-card span {
  font-size: var(--font-size-xs);
  color: var(--palette-blue-700d);
  font-weight: var(--text-bold-weight);
}
.home-feature-report-card strong {
  font-size: clamp(22px, 3vw, 36px);
  line-height: var(--text-tight-height);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--palette-green-700b);
}
.home-feature-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 14px;
  color: var(--color-text-inverse);
  font-size: var(--font-size-18);
  line-height: var(--line-height-110);
  font-weight: var(--text-extrabold-weight);
  background: linear-gradient(130deg, var(--palette-green-700f), var(--palette-green-800b));
  box-shadow: 0 10px 24px var(--palette-green-800-a25);
}
.home-panel h2.home-program-title {
  margin: 18px 0 12px;
  font-size: var(--font-size-lg) !important;
  line-height: var(--text-ui-height) !important;
}
.home-program-list {
  display: grid;
  gap: 10px;
}
.home-program-group {
  display: grid;
  gap: 8px;
}
.home-program-row {
  display: grid;
  grid-template-columns: 58px 76px minmax(150px, 1fr) minmax(120px, 1fr) minmax(56px, max-content);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 10px 12px;
}
.home-program-row-toggle {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.home-program-row-toggle:focus {
  outline: none;
}
.home-program-row-toggle:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}
.home-program-row-toggle[aria-expanded="true"] {
  border-color: var(--palette-green-300);
  background: var(--palette-green-50);
}
.home-program-row.is-highlighted {
  border-color: var(--palette-orange-600);
  background: var(--palette-orange-100b);
}
.home-program-col-code {
  font-size: var(--font-size-base);
}
.home-program-col-time {
  font-size: var(--font-size-base);
  color: var(--palette-blue-700e);
  font-weight: var(--text-bold-weight);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.home-program-col-time-icon {
  width: auto;
  height: 16px;
  max-width: 28px;
  display: block;
  object-fit: contain;
  transform: scale(1.28);
  transform-origin: center;
}
.home-program-col-name {
  font-size: var(--font-size-base);
  line-height: var(--line-height-110);
  color: var(--palette-blue-900c);
}
.home-program-col-detail {
  font-size: var(--font-size-base);
  line-height: var(--line-height-110);
  color: var(--palette-blue-700d);
}
.home-program-col-status {
  min-width: 44px;
  width: auto;
  height: 44px;
  padding: 0 12px;
  margin-right: 8px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--text-extrabold-weight);
}
.home-program-col-status.is-done {
  background: var(--palette-green-150b);
  color: var(--palette-green-700g);
}
.home-program-col-status.is-highlight {
  background: var(--palette-red-400);
  color: var(--color-text-inverse);
}
.home-program-col-status.is-pending {
  background: var(--palette-blue-100e);
  color: var(--palette-blue-500c);
}
.home-program-col-status.is-time {
  min-width: 72px;
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
}
.home-program-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 200px;
}
.home-program-accordion.is-open {
  animation: homeAccordionIn var(--duration-180ms) var(--easing-ease);
}
@keyframes homeAccordionIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.home-program-course-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.home-program-course-row:first-child {
  border-top: none;
}
.home-program-course-code {
  font-size: var(--font-size-sm);
  color: var(--palette-blue-900b);
}
.home-program-course-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.home-program-course-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.home-program-course-name-link {
  font-size: var(--font-size-15);
  line-height: var(--text-ui-height);
  font-weight: var(--text-extrabold-weight);
  color: var(--palette-blue-900b);
}
.home-program-course-name-link:hover,
.home-program-course-name-link:focus-visible {
  text-decoration: underline;
}
.home-program-course-meta {
  font-size: var(--font-size-13);
  line-height: var(--text-ui-height);
  color: var(--palette-blue-700f);
}
.home-program-course-np {
  color: var(--palette-red-600e);
  font-weight: var(--text-regular-weight);
}
.home-program-course-end {
  justify-self: end;
  text-align: right;
}
.home-program-course-depart {
  font-size: var(--font-size-13);
  line-height: var(--text-ui-height);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-700f);
}
.home-program-course-result-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-13);
  line-height: var(--text-ui-height);
  font-weight: var(--text-extrabold-weight);
  color: var(--palette-teal-800);
}
.home-program-arrivee-status {
  display: block;
  margin-top: 2px;
  font-size: var(--font-size-xs);
  line-height: var(--text-ui-height);
  font-weight: var(--text-regular-weight);
  color: var(--palette-red-600e);
  white-space: nowrap;
}
.home-program-arrivee-desktop {
  display: inline;
}
.home-program-arrivee-mobile {
  display: none;
}
.home-program-course-result-link:hover,
.home-program-course-result-link:focus-visible {
  text-decoration: underline;
}
.home-bonus-banner {
  border-color: var(--palette-red-600c);
  background: linear-gradient(140deg, var(--palette-red-500c), var(--palette-red-600g));
  color: var(--color-text-inverse);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}
.home-bonus-banner h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  color: var(--color-text-inverse);
}
.home-bonus-banner p {
  margin: 0;
  font-size: var(--font-size-base);
}
.home-bonus-btn {
  margin-top: 6px;
  background: var(--color-surface);
  border-color: var(--color-surface);
  color: var(--palette-red-600h);
}
.home-sidebar-ad {
  padding: 14px;
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}
.home-ad-box {
  min-height: 340px;
  border: 2px dashed var(--palette-blue-200b);
  border-radius: 14px;
  background: var(--palette-blue-50b);
  display: grid;
  place-items: center;
  color: var(--palette-blue-700e);
  font-size: var(--font-size-18);
  font-weight: var(--text-bold-weight);
}
.home-sidebar-card h2 {
  margin: 0 0 10px;
  font-size: var(--heading-card-size);
}
.home-sidebar-card {
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}
.home-top-picks {
  display: grid;
  gap: 8px;
}
.home-top-pick {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--color-surface-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: var(--font-size-sm);
}
.home-top-pick strong {
  color: var(--palette-green-700b);
  font-size: var(--font-size-base);
}
/* La carte « Parier en ligne » n'est plus réservée à la colonne de droite :
   depuis le 31/08/2026 elle remplace aussi « Comparer les bookmakers » dans
   des blocs PLEINE LARGEUR (page simple, communauté, repli du quinté). En
   grille à une colonne, les boutons y devenaient deux barres vertes en
   travers de la page. En ligne souple, ils se rangent tout seuls :
     - colonne de 300 px → base 240 px, deux ne tiennent pas côte à côte,
       ils s'empilent et remplissent la largeur — rendu IDENTIQUE à avant ;
     - bloc pleine largeur → ils se mettent côte à côte, plafonnés à 360 px,
       comme le faisait la rangée de boutons de l'ancien bloc. */
.home-bookmaker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-bookmaker-btn {
  display: block;
  flex: 1 1 240px;
  max-width: 360px;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--color-text-inverse);
  font-size: var(--font-size-15);
  font-weight: var(--text-extrabold-weight);
  background: linear-gradient(130deg, var(--palette-green-700f), var(--palette-green-800b));
}
/* Mention d'affiliation reprise de bookmakers.php : discrète, sous les
   boutons, seulement là où l'ancien bloc l'affichait. */
.home-bookmaker-note {
  margin: 10px 0 0;
}
/* LA PAGE D'ACCUEIL GARDE LA BARRE (17/09/2026). Elle la masquait, si bien
   que la barre apparaissait et disparaissait pendant qu'on naviguait — et que
   la page la plus visitée du site était la seule sans raccourci vers le
   programme du jour. Le pied de page garde donc ici la même réserve de place
   qu'ailleurs (la règle `footer` générique, 120 px). */
.h-scroll-wrap {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.h-scroll-track {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}
.h-scroll-track::-webkit-scrollbar { display: none; }
.scroll-btn {
  height: 32px;
  width: 32px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  line-height: var(--text-tight-height);
  color: var(--muted);
  font-weight: var(--text-bold-weight);
  cursor: pointer;
}
.scroll-btn[disabled] { opacity: 0.35; cursor: default; }
.reunion-nav { display: flex; gap: 6px; }
.reunion-pill {
  min-width: 145px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 6px 8px;
  display: grid;
  gap: 1px;
}
.reunion-pill-code { font-weight: var(--text-bold-weight); font-size: var(--font-size-base); line-height: var(--text-tight-height); }
.reunion-pill-name {
  font-size: var(--font-size-xs);
  line-height: var(--text-ui-height);
  color: var(--palette-blue-800b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reunion-pill.active { background: var(--brand-soft); border-color: var(--palette-blue-200c); color: var(--color-brand-hover); }
.reunion-pill.active .reunion-pill-name { color: var(--color-brand-hover); }
/* --- VIP tab --- */
.vip-content { padding: 0; }
.vip-loader { text-align: center; padding: 32px 0; color: var(--muted); font-size: var(--text-body-size); }
.vip-loader-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--palette-blue-150b);
  border-top-color: var(--palette-blue-400);
  border-radius: 50%;
  animation: vip-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes vip-spin { to { transform: rotate(360deg); } }
#panel-vip .course-result-section-title { margin: 0 0 16px; }
#panel-vip .course-result-section-title h3 {
  margin: 0;
  color: var(--palette-green-800c);
  font-size: var(--font-size-sm);
  font-weight: var(--text-bold-weight);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#panel-pronostic { overflow: hidden; }
#panel-pronostic .course-result-section-title { margin: 0 0 16px; }
#panel-pronostic .course-result-section-title :is(h2, h3) {
  margin: 0;
  color: var(--palette-green-800c);
  font-size: var(--font-size-sm);
  font-weight: var(--text-bold-weight);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 2-column layout: article left, picks right */
.vip-layout { display: flex; gap: 24px; align-items: flex-start; }
.vip-layout-main { flex: 1 1 0; min-width: 0; }
.vip-layout-side { flex: 0 0 380px; }
@media (max-width: 768px) {
  .vip-layout { flex-direction: column; }
  .vip-layout-side { flex: none; width: 100%; }
}

.vip-article { font-size: var(--text-body-size); line-height: 1.65; }
.vip-article p { margin: 0 0 12px; }
.vip-intro {
  background: var(--palette-blue-100f);
  border-left: 4px solid var(--palette-blue-400);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.vip-intro p { margin: 0; font-style: italic; color: var(--palette-blue-700g); font-size: var(--font-size-15); }

/* Picks sidebar */
.vip-picks {
  background: var(--palette-blue-50c);
  border: 1px solid var(--palette-blue-150b);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 100px;
}
a.vip-pick-name { color: inherit; text-decoration: underline; }
a.vip-pick-name:hover { color: inherit; }
/* min-height = hauteur du carré numéro : le nom se centre sur le carré (et le
   commentaire éventuel — Quinté — vient dessous). */
.vip-pick-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.vip-pick-cote { font-size: var(--font-size-13); font-weight: var(--text-bold-weight); color: var(--palette-blue-900c); white-space: nowrap; }
.vip-pick-np { font-size: var(--font-size-11); font-weight: var(--text-bold-weight); color: var(--color-text-inverse); background: var(--palette-orange-600); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.vip-cote-theo { cursor: help; border-bottom: 1px dotted var(--color-disabled); position: relative; }
.vip-cote-theo .vip-cote-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  background: var(--palette-black);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--text-regular-weight);
  line-height: var(--line-height-140);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: normal;
  width: 240px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-interaction), visibility var(--transition-interaction);
  pointer-events: none;
  z-index: 30;
}
.vip-cote-theo .vip-cote-tooltip::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 100%;
  border-width: 5px;
  border-style: solid;
  border-color: var(--palette-black) transparent transparent transparent;
}
.vip-cote-theo:hover .vip-cote-tooltip {
  opacity: 1;
  visibility: visible;
}
.vip-lock-icon { vertical-align: -1px; opacity: 0.7; }
.vip-lock-open { color: var(--palette-green-800d); opacity: 1; }
.vip-lock-closed { color: var(--color-disabled); }
.vip-horse-link { color: inherit; text-decoration: underline; }
.vip-horse-link:hover { color: inherit; }
.vip-picks-section { margin-bottom: 16px; }
.vip-picks-section:last-child { margin-bottom: 0; }
.vip-picks-section-title {
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--palette-slate-600);
  margin: 0 0 10px;
}
.vip-pick {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 7px 0; /* densité : ligne ~42px (28px de carré + 2x7) au lieu de ~52px */
  border-bottom: 1px solid var(--palette-blue-100g);
}
.vip-pick:last-child { border-bottom: none; }
.vip-pick-num {
  flex: 0 0 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  color: var(--color-text-inverse);
  background: var(--color-disabled);
}
.vip-pick--base .vip-pick-num { background: var(--palette-red-600e); }
.vip-pick--complement .vip-pick-num { background: var(--palette-green-800d); }
.vip-pick--reserve .vip-pick-num { background: var(--palette-orange-600); color: var(--color-text-inverse); }
/* Non-partant : carré et nom grisés mais lisibles (après les variantes couleur,
   pour l'emporter à spécificité égale) ; le badge NP orange reste le repère. */
.vip-pick--np .vip-pick-num { background: var(--color-disabled); }
.vip-pick--np .vip-pick-name { color: var(--palette-slate-600); }
.vip-pick-body { flex: 1; min-width: 0; }
.vip-pick-name { font-size: var(--font-size-13); font-weight: var(--text-bold-weight); display: block; }
.vip-pick-comment { font-size: var(--text-body-size); line-height: 1.6; color: var(--palette-blue-700d); margin: 4px 0 0; }
.vip-pick-more {
  color: var(--palette-blue-400);
  font-size: var(--font-size-13);
  font-weight: var(--text-semibold-weight);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
  display: inline;
}
.vip-pick-more:hover { text-decoration: underline; }
.vip-unavailable { text-align: center; padding: 32px 16px; color: var(--muted); font-size: var(--text-body-size); }
.vip-error { text-align: center; padding: 24px 16px; color: var(--palette-red-600e); font-size: var(--text-body-size); }

/* VIP promo block (non-authorized users) */
.vip-promo {
  text-align: center;
  padding: 40px 24px;
  max-width: 420px;
  margin: 0 auto;
}
.vip-promo-icon { font-size: 40px; margin-bottom: 12px; }
.vip-promo-title { font-size: 1.2rem; font-weight: var(--text-bold-weight); margin: 0 0 10px; }
.vip-promo-text { font-size: var(--text-body-size); line-height: 1.55; color: var(--palette-blue-700d); margin: 0 0 14px; }
.vip-promo-price { font-size: var(--font-size-15); margin: 0 0 20px; color: var(--palette-blue-900c); }
.vip-promo-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--palette-blue-400);
  color: var(--color-text-inverse);
  font-size: var(--font-size-sm);
  font-weight: var(--text-semibold-weight);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-interaction);
}
.vip-promo-cta:hover { background: var(--palette-blue-500d); }

/* VIP TDS classements */
.vip-classements {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--palette-blue-150b);
}
.vip-classements .course-result-section-title { margin: 0 0 16px; }
.vip-classements .course-result-section-title h3 {
  margin: 0;
  color: var(--palette-green-800c);
  font-size: var(--font-size-sm);
  font-weight: var(--text-bold-weight);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vip-classements-grid {
  display: grid;
  gap: 16px;
}
.vip-classements-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vip-classements-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .vip-classements-cols-3,
  .vip-classements-cols-4 { grid-template-columns: 1fr; }
}
.vip-classement-col {
  background: var(--palette-blue-50c);
  border: 1px solid var(--palette-blue-150b);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.vip-classement-title {
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--palette-slate-600);
  margin: 0 0 8px;
}
.vip-classement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-13);
}
.vip-classement-table tr { border-bottom: 1px solid var(--palette-blue-100g); }
.vip-classement-table tr:last-child { border-bottom: none; }
.vip-classement-table td { padding: 4px 4px; vertical-align: middle; }
.vip-classement-num {
  width: 28px;
  text-align: center;
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-800b);
}
.vip-classement-name {
  font-weight: var(--text-semibold-weight);
  color: var(--palette-blue-900c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  width: 100%;
}
.vip-classement-nc {
  color: var(--color-disabled);
  font-style: italic;
}
.vip-classement-np td {
  color: var(--color-disabled);
}
.vip-classement-np a {
  color: var(--color-disabled);
}
.vip-classement-np-badge {
  display: inline-block;
  background: var(--palette-orange-500b);
  color: var(--color-text-inverse);
  font-size: 0.65rem;
  font-weight: var(--text-bold-weight);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: var(--text-ui-height);
  vertical-align: middle;
}

.conditions-line {
  margin: 2px 0 12px;
  font-size: var(--font-size-13);
  font-weight: var(--text-regular-weight);
  line-height: 1.35;
  color: var(--muted);
}
.course-main-title { margin-bottom: 2px; }
.course-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.course-result-head {
  text-align: right;
  display: grid;
  gap: 2px;
  padding-top: 4px;
}
.course-result-arrivee {
  font-weight: var(--text-extrabold-weight);
  color: var(--palette-green-800e);
  font-size: var(--font-size-base);
  line-height: var(--text-ui-height);
}
.course-result-np {
  color: var(--color-text-muted);
  font-size: var(--font-size-13);
}
.ad-slot {
  border: 2px dashed var(--palette-blue-300);
  background: var(--palette-blue-150c);
  color: var(--palette-blue-600b);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
}
.ad-slot-fragment {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  text-align: center;
}
.ad-slot-link {
  display: inline-block;
}
.ad-slot-fragment img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.ad-slot-device-mobile {
  display: block;
}
.ad-slot-device-desktop {
  display: none;
}
.ad-sidebar-sticky {
  position: sticky;
  top: 110px;
  z-index: 1;
}
.desktop-only > .card,
.home-sidebar-card,
.course-content-sidebar > .card:not(.ad-sidebar-sticky),
.social-bookmakers-side > .card {
  position: relative;
  z-index: 2;
}
.ad-300x250 { height: 250px; }
.ad-300x600 { height: 600px; }
.ad-leaderboard { height: 90px; }
.ad-mobile { height: 100px; }
.ad-footer { height: 120px; }
/* =============================================================================
   BARRE DE NAVIGATION DU BAS (partials/nav-bottom.php).
   Visible jusqu'à 1199 px, masquée à partir de 1200 px (plus bas dans ce
   fichier). Refondue le 17/09/2026 : icône + libellé, rubrique en cours
   signalée, zone sûre de l'iPhone, effacement au défilement.

   ⚠️ FLEX, PAS UNE GRILLE DE CINQ COLONNES. « Le Direct » n'est rendu que si
   direct_accessible() : avec `repeat(5, 1fr)`, une barre à quatre entrées
   laissait une colonne vide à droite. En flex, chaque lien prend sa part de
   ce qui est là, quel que soit leur nombre.

   ⚠️ LA HAUTEUR N'EST PAS ÉCRITE EN DUR. Deux scripts la mesurent pour se
   poser au-dessus (le lanceur d'Omar via --asst-lift, le champ de saisie de
   la messagerie via --st-bottom-nav-height). Une valeur en dur ici et ils
   mentiraient le jour où l'on change une taille de police.
   ============================================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--palette-white-a97);
  border-top: 1px solid var(--line);
  display: flex;
  /* La zone sûre = la barre d'accueil de l'iPhone. Sans elle, les libellés
     sont posés SUR le trait du bas et l'on tape à côté du lien. */
  padding: 7px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  /* L'effacement au défilement (assets/js/nav-bas.js). Un glissement, donc
     rien à recalculer : la carte graphique s'en charge seule. */
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
/* Quand on descend dans la page. `translateY(100%)` sort la barre par le bas
   sans changer sa hauteur mesurée : les deux scripts qui la mesurent lisent
   donc autre chose que offsetHeight (cf. leurs commentaires respectifs). */
.bottom-nav.is-effacee {
  transform: translateY(100%);
}
/* Mouvement réduit demandé par le système : la barre va toujours d'un état à
   l'autre, mais sans glissement. */
@media (prefers-reduced-motion: reduce) {
  .bottom-nav {
    transition: none;
  }
}
/* ⚠️ PAS DE RÈGLE `:focus-within` ICI. Elle remettait bien le glissement à
   zéro au clavier, mais laissait la classe `is-effacee` en place : la barre
   revenait à l'écran pendant qu'Omar et la messagerie la croyaient absente et
   pouvaient la recouvrir. Le retour au focus est donc traité par l'ÉTAT, dans
   assets/js/nav-bas.js (écoute `focusin`). */
.bottom-nav a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--muted);
  font-weight: var(--text-semibold-weight);
  text-decoration: none;
}
/* Le conteneur de l'icône ancre la pastille des alertes (components.css la
   pose en position absolue dans son parent relatif). */
.bottom-nav-ico {
  position: relative;
  display: block;
  line-height: 0;
}
.bottom-nav-ico svg {
  width: 23px;
  height: 23px;
  display: block;
}
/* ⚠️ DEUX DESSINS SUPERPOSÉS, UN SEUL AFFICHÉ. Au repos le TRAIT ; dans la
   rubrique en cours, l'APLAT. Les deux héritent la couleur du lien, donc ils
   passent au vert sans règle de plus. Cf. partials/nav-bottom.php pour le
   pourquoi de ce doublement (« le trait vert est trop léger », Xavier). */
.bottom-nav-trait {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav-plein {
  fill: currentColor;
  display: none;
}
.bottom-nav a.is-active .bottom-nav-trait { display: none; }
/* `inline`, PAS `block` : c'est la valeur que le navigateur donne lui-même à
   un <g> de SVG. Toute valeur autre que `none` fait dessiner le groupe, mais
   reprendre la valeur par défaut évite de parier sur la façon dont chaque
   moteur traite un `display` de mise en page sur un élément SVG. */
.bottom-nav a.is-active .bottom-nav-plein { display: inline; }
.bottom-nav-lab {
  line-height: 1;
  /* Un libellé plus long que sa part n'élargit pas la barre : il se coupe. */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* LA RUBRIQUE EN COURS = icône pleine (règle ci-dessus) + vert + libellé gras.
   ⚠️ PAS DE FILET AU-DESSUS. Il y en avait un, de 2 px : « le trait vert est
   trop léger » (Xavier, 17/09/2026). Il avait raison — un filet de 2 px
   disparaît à bout de bras. Une fois l'icône passée en aplat, le filet ne
   servait plus à rien : il a été retiré, pas épaissi. Ne pas le remettre « en
   plus » : deux marqueurs pour une seule information ne se lisent pas mieux
   qu'un seul, ils se gênent. */
.bottom-nav a.is-active {
  color: var(--brand);
}
.bottom-nav a.is-active .bottom-nav-lab {
  font-weight: var(--text-bold-weight);
}
/* ⚠️ LA PLACE DE LA PASTILLE N'EST PAS RÉGLABLE D'ICI. Tout ce fichier vit en
   @layer legacy, et l'ordre déclaré (partials/header.php : `tokens, base,
   legacy, components, layout, modules, utilities`) met `components` APRÈS :
   components.css gagne, quelle que soit la spécificité. La règle est donc
   posée là-bas, avec le reste du dessin de .notification-badge. */
footer { color: var(--muted); font-size: var(--font-size-13); padding: 24px 0 120px; }
.desktop-only { display: none; }
.no-margin { margin: 0; }
.meta-line-block { display: block; margin-top: 2px; }
.flash-error { color: var(--palette-red-700b); }
.flash-ok { color: var(--palette-green-800f); }
.btn-row-top { margin-top: 12px; }
.stack-form { margin-top: 14px; display: grid; gap: 8px; }
.input-textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.reunion-day-block { padding: 10px 0; border-top: 1px solid var(--line); }
.section-title-sm { margin: 0 0 8px; }
.section-divider { border: none; border-top: 1px solid var(--line); margin: 10px 0; }
.summary-flex {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.grid-gap-sm { margin-top: 12px; display: grid; gap: 10px; }
.course-item-card { margin: 0; padding: 12px; }
.block-link { display: block; }
.course-name-link {
  color: inherit;
  text-decoration: none;
  font-size: var(--font-size-base);
  line-height: var(--text-ui-height);
  font-weight: var(--text-extrabold-weight);
}
.course-name-link:hover,
.course-name-link:focus-visible { text-decoration: underline; }
.btn-row-tight-top { margin-top: 8px; }
.btn-row-between { justify-content: space-between; align-items: center; }
.race-pill {
  display: inline-block;
  margin-left: 0;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-10);
  font-weight: var(--text-extrabold-weight);
  line-height: 1.15;
  vertical-align: middle;
  white-space: nowrap;
  pointer-events: none;
}
.race-pill-quinte {
  background: var(--palette-red-500d);
  color: var(--color-text-inverse);
}
.race-pill-pick5 {
  background: var(--palette-yellow-600);
  color: var(--palette-red-600i);
}
.race-pill-multi {
  background: var(--palette-violet-600);
  color: var(--color-text-inverse);
}
/* .course-day-row / .course-day-main legacy supprimées (07/2026) : orphelines
   depuis le redesign course-day, et .course-day-row collisionnait avec la
   ligne du TABLEAU des courses de la nouvelle page (course-day.css). */
.course-day-reunion-card {
  scroll-margin-top: calc(var(--topbar-scroll-offset, 148px) + 16px);
}
.course-day-reunion-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.course-day-reunion-head-main {
  min-width: 0;
  flex: 1 1 auto;
}
.course-day-reunion-meta {
  margin: 6px 0 10px;
  font-size: var(--font-size-sm);
  line-height: 1.28;
  color: var(--palette-blue-700f);
}
.course-day-reunion-meta strong {
  color: var(--palette-blue-900b);
}
.course-day-reunion-link {
  color: var(--palette-blue-900b);
  text-decoration: underline;
  font-weight: var(--text-semibold-weight);
}
.course-day-reunion-link:hover,
.course-day-reunion-link:focus-visible {
  color: var(--palette-teal-800b);
}
.course-day-weather {
  margin-top: 2px;
  min-width: 0;
  max-width: 290px;
  text-align: right;
  color: var(--palette-teal-800);
  font-size: var(--font-size-sm);
  line-height: 1.25;
  font-weight: var(--text-regular-weight);
}
.course-day-weather.is-risk {
  color: var(--palette-red-700b);
}
.course-day-weather-line {
  display: block;
  white-space: nowrap;
}
.course-day-course-meta {
  margin-top: 2px;
}
.course-day-course-np {
  color: var(--palette-red-600e);
  font-weight: var(--text-regular-weight);
  font-size: var(--font-size-sm);
}
.course-day-course-end {
  justify-self: end;
  text-align: right;
  flex: 0 0 auto;
}
.course-day-arrivee-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  line-height: 1.18;
  font-weight: var(--text-extrabold-weight);
  color: var(--palette-teal-800);
  text-decoration: none;
  white-space: nowrap;
}
.course-day-arrivee-link:hover,
.course-day-arrivee-link:focus-visible {
  text-decoration: underline;
}
.course-day-arrivee-status {
  display: block;
  margin-top: 2px;
  font-size: var(--font-size-13);
  line-height: var(--text-ui-height);
  font-weight: var(--text-regular-weight);
  color: var(--palette-red-600e);
  white-space: nowrap;
}
.course-day-depart {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  line-height: var(--text-ui-height);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-700f);
  white-space: nowrap;
}
.reunions-hero-text {
  margin-top: 8px;
  max-width: 95ch;
}
.reunions-headline-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.reunions-quick-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.reunions-quick-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 12px;
  display: grid;
  gap: 4px;
}
.reunions-quick-card strong {
  font-size: var(--font-size-xl);
  line-height: 1.15;
}
.reunions-quick-card.is-available {
  border-color: var(--palette-blue-200c);
  background: var(--palette-green-200b);
}
.reunions-quick-card.is-today {
  border-color: var(--palette-blue-200c);
  background: var(--palette-green-200b);
}
.reunions-quick-card.is-muted {
  background: var(--palette-blue-50d);
  color: var(--palette-slate-600);
}
.reunions-status-muted {
  font-size: var(--font-size-xs);
  color: var(--palette-slate-600);
  font-weight: var(--text-semibold-weight);
}
.reunions-calendar-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}
.reunions-calendar-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 10px;
  display: grid;
  gap: 1px;
}
.reunions-calendar-card strong {
  font-size: 30px;
  line-height: var(--text-tight-height);
}
.reunions-calendar-card.is-available {
  border-color: var(--palette-blue-200c);
  background: var(--palette-green-200b);
}
.reunions-calendar-card.is-today {
  border-color: var(--palette-blue-200c);
  background: var(--palette-green-200b);
}
.reunions-calendar-card.is-muted {
  background: var(--palette-blue-50d);
  color: var(--color-disabled);
}
.reunions-relative {
  font-size: var(--font-size-11);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reunions-coming-soon {
  margin-top: 2px;
  font-size: var(--font-size-11);
  line-height: var(--text-tight-height);
  color: var(--color-disabled);
  font-weight: var(--text-semibold-weight);
}
.reunions-datepicker {
  position: relative;
  min-width: 0;
  margin-left: auto;
}
.reunions-datepicker__trigger {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--palette-blue-900b);
  width: 64px;
  height: 64px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  cursor: pointer;
  min-width: 64px;
}
.reunions-datepicker__trigger-label {
  display: none;
}
.reunions-datepicker__trigger-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.reunions-datepicker__trigger-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}
.reunions-datepicker__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 10px 30px var(--palette-blue-900-a12b);
  padding: 8px;
  width: 280px;
}
.reunions-inline-calendar__head {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.reunions-inline-calendar__label {
  text-align: center;
  text-transform: capitalize;
  font-size: var(--font-size-13);
  line-height: var(--text-ui-height);
}
.reunions-inline-calendar__nav {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  background: var(--color-surface);
  color: var(--palette-blue-700e);
  font-weight: var(--text-bold-weight);
  cursor: pointer;
  line-height: var(--text-tight-height);
}
.reunions-inline-calendar__nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.reunions-inline-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
  color: var(--palette-blue-600);
  font-size: var(--font-size-11);
  font-weight: var(--text-bold-weight);
  text-align: center;
}
.reunions-inline-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.reunions-inline-calendar__day {
  border-radius: 7px;
  min-height: 28px;
  display: grid;
  place-items: center;
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  text-decoration: none;
  border: 1px solid transparent;
}
.reunions-inline-calendar__day.is-empty {
  background: transparent;
  border-color: transparent;
}
.reunions-inline-calendar__day.is-available {
  background: var(--palette-green-200b);
  color: var(--palette-green-800g);
  border-color: var(--palette-blue-200c);
}
.reunions-inline-calendar__day.is-available:hover {
  filter: brightness(0.98);
}
.reunions-inline-calendar__day.is-muted {
  background: var(--palette-blue-100g);
  color: var(--color-disabled);
}
.reunions-inline-calendar__day.is-selected {
  outline: 2px solid var(--palette-red-500b);
  outline-offset: 1px;
}
@supports (content-visibility: auto) {
  .course-item-card,
  .reunion-day-block {
    content-visibility: auto;
    contain-intrinsic-size: 140px;
  }
}
.mobile-ad-wrap { margin: 12px 0; }
/* Le pavé du bas du contenu (partials/footer.php), dernier élément de la colonne : sa marge du bas s'ajouterait
   aux 24 px sous le contenu ; il ne reste que la réserve de la case Akcelo (Xavier, 09/11/2026). */
.main-col > .mobile-ad-wrap:last-child { margin-bottom: 0; }
.mobile-sticky-ad {
  position: fixed;
  /* ⚠️ SUIT LA BARRE DU BAS, plus un 56 px figé (17/09/2026). La barre a
     changé de hauteur, elle s'efface au défilement, et elle est visible
     jusqu'à 1199 px alors que ce bloc ne l'est que sur mobile. La variable est
     publiée par assets/js/nav-bas.js — le repli sert au cas où le script
     n'aurait pas encore tourné. */
  bottom: var(--st-nav-bas-hauteur, 52px);
  transition: bottom .26s cubic-bezier(.4, 0, .2, 1);
  left: 0;
  right: 0;
  z-index: 25;
  padding: 0 8px;
}
/* LE BANDEAU COLLANT DU BAS D'AKCELO (Turffr_Sticky, collé dans « Code de fin de page » de l'admin
   Publicité, 04/11/2026). Son script déplace la case dans un cadre à lui, `.slm_sticky`, posé au
   début de <body>, avec en style en ligne `position: fixed`, `bottom: 0` et `z-index: 10000` : sur
   téléphone il recouvrait la barre du bas, et passait au-dessus des menus et des fenêtres du site.
   Il fait donc comme notre bandeau collant (.mobile-sticky-ad) : posé au-dessus de la barre (0 px
   quand elle est effacée, ou absente à partir de 1 200 px), au même étage (25). `!important` est
   le seul moyen de passer devant un style en ligne. Navigateur sans :has() (iOS avant 15.4) : le
   bandeau reste où Akcelo le pose. */
.slm_sticky:has(#Turffr_Sticky) {
  bottom: var(--st-nav-bas-hauteur, 52px) !important;
  z-index: 25 !important;
  transition: bottom .26s cubic-bezier(.4, 0, .2, 1);
}
/* Après « fermer », Akcelo retire le contenu du cadre mais laisse le cadre vide, qui reprendrait son
   `z-index: 10000` et son `bottom: 0` (la règle du dessus ne le reconnaît plus) : caché. */
.slm_sticky:not(:has(*)) { display: none !important; }
.ad-header-wrap {
  margin-top: 16px;
  margin-bottom: 18px;
  padding-top: 0;
}
/* Fallback also matches legacy inline ad wrapper markup shown in source view. */
.topbar ~ .ad-header-wrap,
body.page-home > .container[style*="margin-top"] {
  margin-top: 16px !important;
  margin-bottom: 18px !important;
  padding-top: 0 !important;
}
.ad-incontent { margin: 16px 0; }
.ad-footer-gap { margin: 16px 0 12px; }
.ad-sidebar-gap { margin-bottom: 16px; }
.right-col-sidebar > .ad-sidebar-sticky:first-child { margin-top: 16px; }
.mobile-ad-wrap-top { margin-top: 0; margin-bottom: 0; }
.mobile-ad-wrap-top + .container.layout { margin-top: 0; }
.mobile-ad-wrap-top .ad-slot-fragment {
  min-height: 0 !important;
  display: flex;
  justify-content: center;
}
.mobile-ad-wrap-top .ad-slot-link {
  display: inline-block;
}
.mobile-ad-wrap-top .ad-slot-fragment img {
  width: auto;
  max-width: 100%;
  height: auto;
}
/* ── Habillage desktop (skin) ───────────────────────────── */
/* Le skin n'existe QUE sur desktop (≥ 1200px).
   En mobile/tablette : aucun effet.                         */
.ad-skin-shell {
  position: static;
  z-index: auto;
  background: transparent;
}
.ad-skin-link,
.ad-skin-shell__top,
.ad-skin-shell__side {
  display: block;
}
.ad-skin-link--global-image {
  display: none;
}
.ad-skin-link img,
.ad-skin-shell__top img,
.ad-skin-shell__side img {
  width: 100%;
}
.ad-skin-shell__inner {
  width: min(1600px, 100%);
  margin: 0 auto;
}
.ad-skin-shell__top {
  line-height: 0;
}
.ad-skin-shell__sides {
  position: relative;
  width: 100%;
}
.ad-skin-shell__side {
  display: none;
}
/* Le bloc d'habillage ne coupe rien (25/10/2026) : le code d'une régie pose
   son habillage HORS du bloc (Akcelo : position absolue, puis fixe au
   défilement), et le overflow: hidden de .ad-slot-fragment le coupait à la
   hauteur de la bande — côtés vides au bas de l'écran. */
.ad-slot-kind-skin {
  overflow: visible;
  border-radius: 0;
}
.ad-skin-canvas {
  display: none;
}

@media (min-width: 1200px) {
  /* Habillage en image (26/10/2026) : le calque de l'image (partials/ads/header.php,
     taille et image dans le <style> de partials/header.php) est COLLÉ par le
     navigateur — il commence sous le menu, remonte avec la page et s'arrête au bas
     de ce qui reste collé en haut (--ads-skin-stick). Aucun calcul pendant le
     défilement : le script qui recalait l'image avait un temps de retard et
     laissait voir une bande noire entre le menu et l'image. z-index -1 : sous
     tout le contenu de la page, jamais par-dessus. */
  body.has-ad-skin-global .ad-skin-canvas {
    display: block;
    position: sticky;
    top: var(--ads-skin-stick, 0px);
    z-index: -1;
    pointer-events: none;
  }
  /* Lien cliquable transparent couvrant le viewport         */
  .ad-skin-link--global-image {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: none !important;
    z-index: 1;
  }
  /* Mode « 3 images » : les images de côté commencent sous le menu
     (--ads-skin-y, posé une fois par le script de partials/ads/header.php, et
     elles restent fixes à cette hauteur) et prennent la place libre à
     côté du contenu (1 120 px), JAMAIS plus — elles passaient sur le contenu
     entre 1 200 et ~1 360 px. 100 % et pas 100vw : pour un élément fixe,
     100 % exclut la barre de défilement (17 px sous Windows), 100vw la compte.
     z-index 1, comme le lien de l'habillage en image (et plus 6) : elles ne
     touchent plus le contenu, et le pied de page, qui fait toute la largeur,
     passe DEVANT elles au lieu d'être recouvert. */
  .ad-skin-shell__side {
    display: block;
    position: fixed;
    top: var(--ads-skin-y, 136px);
    width: min(160px, calc((100% - 1120px) / 2));
    z-index: 1;
    line-height: 0;
  }
  .ad-skin-shell__side-left { left: 0; }
  .ad-skin-shell__side-right { right: 0; }

  /* Contenu AU-DESSUS du skin                               */
  .ad-header-wrap,
  .mobile-ad-wrap,
  .layout,
  .home-shell {
    position: relative;
    z-index: 2;
  }
  .layout,
  .home-shell {
    background: var(--bg);
  }

  /* Skin actif : contenu collé au header. Le fond de la page n'est PLUS
     forcé transparent ici (25/10/2026) : un habillage en image pose son fond
     (image + couleur) par le <style> de partials/header.php, et le fond
     qu'une régie pose sur <body> par son code n'est plus effacé. */
  body.has-ad-skin .layout {
    margin-top: 0 !important;
    padding-top: 0;
    margin-bottom: 0 !important;
    padding-bottom: 100px;
  }
  body.has-ad-skin .layout.layout-course {
    padding-top: 0;
  }
  body.has-ad-skin .home-shell {
    margin-top: 0;
    padding-top: 0;
  }
  body.has-ad-skin .ad-header-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: var(--bg);
  }
  /* Skin global : spacer transparent pour montrer le haut   */
  body.has-ad-skin-global .ad-skin-shell {
    min-height: var(--ads-skin-top-h, 100px);
    background: transparent;
  }
  body.has-ad-skin footer {
    background: var(--bg);
    position: relative;
    z-index: 2;
  }
  /* La bannière du bas (partials/footer.php → partials/ads/footer.php) est
     hors de <main> : sans ceci, le lien plein écran de l'habillage passait
     par-dessus et un clic sur la bannière ouvrait l'annonceur de l'habillage. */
  body.has-ad-skin .ad-footer-gap {
    position: relative;
    z-index: 2;
  }
}
.tracking-pixels { display: none; }
.list-space-top { margin-top: 12px; }
.horse-head-card h1 {
  margin-bottom: 10px;
  text-transform: uppercase;
}
.horse-next-card {
  overflow: hidden;
}
.horse-next-title {
  margin-bottom: 10px;
}
.horse-next-card .tableWrap {
  margin: 0;
}
.horse-block-title {
  font-size: var(--font-size-lg);
  line-height: var(--text-ui-height);
  font-weight: var(--text-extrabold-weight);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.horse-last-races-title {
  margin: 0;
}
.horse-display-switch {
  align-items: center;
}
.horse-display-label {
  line-height: var(--text-tight-height);
  position: relative;
  top: 1px;
}
.horse-last-races-head {
  margin-bottom: 12px;
}
.horse-title-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.horse-title-icon svg {
  width: 20px;
  height: 20px;
}
.horse-col-course {
  width: 72px;
  text-align: center;
}
.horse-course-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-soft);
  color: var(--palette-blue-900);
}
.horse-course-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.horse-quinte-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-11);
  line-height: var(--text-ui-height);
  font-weight: var(--text-bold-weight);
  color: var(--color-text-inverse);
  background: var(--palette-red-600c);
  vertical-align: middle;
}
.horse-head-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 8px 0 14px;
}
.horse-head-grid p {
  margin: 0;
}
.horse-musique-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.horse-musique-grid > div {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.horse-musique-grid > div:nth-last-child(-n + 2) {
  border-bottom: none;
}
.horse-musique-label {
  font-weight: var(--text-bold-weight);
  background: var(--palette-blue-100h);
}
.horse-filter-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.horse-filter-field {
  display: grid;
  gap: 4px;
}
.horse-filter-field select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 0 10px;
  font: inherit;
}
.horse-filter-field select:disabled,
.horse-filter-field select.is-disabled {
  background: var(--palette-blue-100i);
  color: var(--palette-blue-400b);
  cursor: not-allowed;
}
.horse-filter-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}
.horse-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--text-semibold-weight);
}
.horse-filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.horse-filter-check input[type="checkbox"]:disabled + span {
  color: var(--palette-blue-400b);
}
.horse-cards-list {
  display: grid;
  gap: 12px;
}
.horse-perf-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--color-surface);
}
@supports (content-visibility: auto) {
  .horse-perf-card {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
  }
}
.horse-perf-title {
  margin: 0 0 8px;
  font-size: var(--font-size-18);
  font-weight: var(--text-extrabold-weight);
}
.horse-perf-prefix {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
  line-height: 0;
  overflow: visible;
}
.horse-perf-type-icon {
  width: 18px;
  height: 18px;
  display: block;
  transform: scale(1.28);
  transform-origin: center;
}
.horse-perf-type-fallback {
  display: inline-block;
}
.horse-perf-subtitle {
  margin: 0 0 8px;
  font-size: var(--font-size-15);
  color: var(--palette-blue-700d);
}
.horse-perf-subtitle-extra {
  font-size: var(--font-size-xs);
  margin-top: -4px;
}
.horse-list-hippodrome-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.horse-index-page {
  display: grid;
  gap: 14px;
}
/* Titres alignés sur la taille du menu (.th-nav-link desktop 15px) — plus spécifiques que .card h1/h2 */
.horse-index-page .horse-index-main-title {
  margin: 0;
  font-size: var(--font-size-15);
  line-height: var(--text-ui-height);
  letter-spacing: 0;
}
.horse-index-page .horse-index-search-card h2,
.horse-index-page .horse-index-list-card h2,
.horse-index-page .horse-index-faq-card h2 {
  margin: 0 0 10px;
  font-size: var(--font-size-sm);
  line-height: var(--text-ui-height);
  letter-spacing: 0;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--palette-green-700h);
}
.horse-index-intro {
  margin: 0 0 10px;
  color: var(--palette-blue-700d);
}
.horse-index-search-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: var(--palette-blue-100i);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
}
.horse-index-search-input {
  height: 54px;
  border: 2px solid var(--palette-green-600b);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font: inherit;
  font-size: var(--font-size-lg);
}
.horse-index-search-btn {
  min-width: 170px;
  height: 54px;
}
.horse-index-suggest {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
.horse-index-suggest ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.horse-index-suggest li + li {
  border-top: 1px solid var(--line);
}
.horse-index-suggest a {
  display: block;
  padding: 12px 14px;
}
.horse-index-letter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--palette-blue-100i);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
}
.horse-letter-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
}
.horse-letter-count {
  margin-left: 6px;
  font-size: var(--font-size-11);
  opacity: .85;
}
.horse-index-results {
  margin-top: 12px;
}
.horse-index-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
}
.horse-index-grid li {
  margin: 0;
  padding: 0;
}
.horse-index-grid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.horse-index-ico {
  font-size: var(--font-size-sm);
}
.horse-index-pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.horse-page-btn {
  min-width: 44px;
}
.horse-page-dots {
  color: var(--palette-slate-600);
  font-weight: var(--text-bold-weight);
}
.horse-faq-list {
  display: grid;
}
.horse-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.horse-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: var(--text-bold-weight);
  color: var(--palette-green-700h);
  padding: 8px 0;
}
.horse-faq-item summary::-webkit-details-marker {
  display: none;
}
.horse-faq-plus {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--palette-green-700h);
  font-size: 22px;
  line-height: var(--text-tight-height);
}
.horse-faq-answer {
  color: var(--palette-blue-700d);
  padding: 0 0 8px;
}
.horse-note {
  margin: 8px 0 0;
  font-size: var(--font-size-15);
  line-height: 1.35;
  color: var(--palette-blue-800b);
}
.horse-runner-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.horse-runner-status-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.horse-runner-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: var(--text-tight-height);
}
.horse-runner-status-image {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  /* Le nom de l'icône est dans son alt (25/10/2026) : il ne s'écrit jamais dans la case (chargement, image manquante) */
  color: transparent;
}
.horse-runner-status-galop .horse-runner-status-image {
  width: 12.5px;
  height: 12.5px;
}
.horse-perf-table-wrap {
  margin-top: 10px;
}
@supports (content-visibility: auto) {
  .horse-cv-card {
    content-visibility: auto;
    contain-intrinsic-size: 560px;
  }
  .horse-perf-table-wrap {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
  }
}
.horse-runner-selected {
  background: var(--palette-orange-500c) !important;
}
.horse-runner-np {
  background: var(--palette-red-700) !important;
}
.horse-runner-np td,
.horse-runner-np a {
  color: var(--color-text-inverse) !important;
}
.horse-fields-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}
.horse-fields-grid p {
  margin: 0;
  font-size: var(--font-size-sm);
}
.horse-pagination {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.horse-page-legend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--palette-blue-150d);
}
.horse-page-legend-title {
  margin: 0 0 8px;
  color: var(--palette-blue-700d);
  font-size: var(--font-size-xs);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.horse-page-legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.horse-page-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.horse-page-legend-label {
  color: var(--palette-slate-600);
  font-size: var(--font-size-13);
  line-height: var(--text-ui-height);
}
.horse-cache-hint {
  margin-top: 8px;
  font-size: var(--font-size-xs);
  color: var(--palette-slate-600);
}
.tableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--palette-blue-150d);
  /* ⛔ Rayon « à peine arrondi » (choix Xavier) : il se règle dans tokens.css,
     jamais en dur ici. Cette boîte a porté 14 px face aux 6 px des cartes qui
     l'entourent — visible sur les tableaux de course de la fiche cheval. */
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.race-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 0; background: var(--color-surface); font-size: var(--font-size-11); line-height: 1.15; }
.race-table th, .race-table td { padding: 6px 6px; border-bottom: 1px solid var(--palette-blue-150d); border-right: 1px solid var(--palette-blue-150e); text-align: left; vertical-align: middle; }
.race-table th:last-child, .race-table td:last-child { border-right: none; }
.race-table thead th { font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.09em; color: var(--palette-blue-600c); background: var(--palette-blue-100h); }
.race-table tbody tr:nth-child(odd) { background: var(--color-surface); }
.race-table tbody tr:nth-child(even) { background: var(--palette-blue-50e); }
.race-table tbody tr.runner-np { background: var(--palette-red-600j); color: var(--color-text-inverse); }
.race-table tbody tr.runner-np td {
  background: var(--palette-red-600j);
  color: var(--color-text-inverse);
  border-bottom-color: var(--palette-red-300);
  border-right-color: var(--palette-red-300);
}
.race-table tbody tr.runner-np .col-n { color: var(--color-text-inverse); }
.race-table tbody tr.runner-np .casaque { border-color: var(--palette-white-a35); }
.race-table .col-n { width: 54px; font-weight: var(--text-bold-weight); text-align: center; color: var(--palette-blue-700h); }
.race-table .col-name { min-width: 170px; width: 18%; font-weight: var(--text-bold-weight); }
.race-table .col-right { text-align: right; white-space: nowrap; }
.race-table .col-perf { white-space: normal; min-width: 180px; max-width: 260px; }
.race-table .col-cote {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: center;
  white-space: nowrap;
}
.cotes-compare-table .col-name {
  min-width: 210px;
}
.cotes-compare-table .col-cote {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
}
.cotes-compare-table .col-cote-current {
  width: 122px;
  min-width: 122px;
  max-width: 122px;
}
.cote-current-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cote-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-11);
  line-height: var(--text-tight-height);
  font-weight: var(--text-extrabold-weight);
}
.cote-trend-down {
  background: var(--palette-green-150c);
  color: var(--palette-green-700i);
}
.cote-trend-down::before {
  content: "\2193";
}
.cote-trend-equal {
  background: var(--palette-blue-100j);
  color: var(--palette-blue-600c);
}
.cote-trend-equal::before {
  content: "=";
}
.cote-trend-up {
  background: var(--palette-red-100);
  color: var(--palette-red-600k);
}
.cote-trend-up::before {
  content: "\2191";
}
.race-table td:not(.col-perf), .race-table th:not(.col-perf) { white-space: nowrap; }
.quinte-slim-table .col-name { min-width: 210px; }
.quinte-full-link {
  margin-top: 12px;
  font-size: var(--font-size-sm);
  color: var(--palette-blue-900);
}
.quinte-full-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--text-bold-weight);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.stats-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  padding: 10px;
  display: grid;
  gap: 3px;
}
.stats-card strong {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stats-card span {
  font-size: var(--font-size-sm);
  font-weight: var(--text-bold-weight);
}
.stats-lists {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.stats-lists p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.35;
}
.stats-page-title {
  margin: 8px 0 18px;
}
.layout-course .stats-page-title :is(h2, h3) {
  margin: 0;
  color: var(--palette-green-800c);
  font-size: var(--font-size-sm);
  line-height: var(--text-tight-height);
  font-weight: var(--text-semibold-weight);
  letter-spacing: 0;
  text-transform: uppercase;
}
.stats-lines-section {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}
.layout-course .stats-lines-section .course-result-section-title h3 {
  margin: 0;
  color: var(--palette-green-800c);
  font-size: var(--font-size-sm);
  line-height: var(--text-tight-height);
  font-weight: var(--text-semibold-weight);
  letter-spacing: 0;
  text-transform: uppercase;
}
.stats-lines-section .course-result-section-title {
  margin: 6px 0 16px;
}
.stats-lines-list {
  display: grid;
  gap: 10px;
}
.stats-lines-more {
  margin-top: 10px;
  text-align: center;
}
.stats-lines-more button.btn {
  cursor: pointer;
}
.stats-line-race {
  border: 1px solid var(--palette-blue-150d);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.stats-line-head {
  background: var(--palette-blue-800c);
  color: var(--color-text-inverse);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stats-line-title {
  margin: 0;
  font-size: var(--font-size-xs);
  line-height: var(--text-ui-height);
}
.stats-line-title a {
  color: var(--color-text-inverse);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stats-line-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stats-line-body {
  display: grid;
  gap: 8px;
  padding: 8px 10px 10px;
}
.stats-line-horse {
  --stats-line-icon-size: 24px;
}
.stats-line-horse-main {
  margin: 0;
  font-size: var(--font-size-xs);
  line-height: 1.35;
  color: var(--palette-blue-800d);
}
.stats-line-horse-symbol {
  display: inline-flex;
  width: var(--stats-line-icon-size);
  height: var(--stats-line-icon-size);
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.stats-line-horse-main a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stats-line-casaque {
  display: inline-block;
  vertical-align: middle;
}
.stats-line-horse-emoji {
  display: none;
  font-size: 22px;
  line-height: var(--text-tight-height);
}
.stats-line-horse-emoji.is-fallback {
  display: inline-block;
}
.stats-line-horse.is-alert .stats-line-horse-main {
  color: var(--palette-red-600l);
}
.stats-line-horse-note {
  margin: 2px 0 0 calc(var(--stats-line-icon-size) + 4px);
  font-size: var(--font-size-11);
  line-height: 1.35;
  color: var(--palette-blue-600d);
  font-style: italic;
}
.quinte-archive-editorial {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tableWrap.prono-table-wrap{
  display:inline-block;
  width:auto;
  max-width:100%;
  vertical-align:top;
}
.race-table.prono-race-table{
  width:auto !important;
  min-width:0;
  table-layout:auto;
  display:inline-table;
}
.race-table.prono-race-table .prono-label-head,
.race-table.prono-race-table .prono-label-cell{
  width:1%;
  white-space:nowrap;
}
.race-table.prono-race-table .prono-label-cell{
  font-weight:700;
  vertical-align:middle;
}
.race-table.prono-race-table .col-name{
  width:auto;
  min-width:220px;
}
.race-table.prono-race-table col.prono-col-label{
  width:1px;
}
.cheval-cell { display: flex; gap: 6px; align-items: center; font-size: var(--font-size-11); }
.cheval-cell span { white-space: normal; }
.horse-name-wrap {
  display: inline-block;
  white-space: nowrap;
}
.cheval-cell a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.race-table tbody tr.runner-np .cheval-cell a { color: var(--color-text-inverse); }
.horse-origin-suffix {
  margin-left: 0;
  color: var(--palette-green-700j);
  font-weight: var(--text-regular-weight);
  font-size: 0.9em;
  line-height: var(--text-tight-height);
}
.horse-np-badge {
  margin-left: 0;
  color: var(--palette-yellow-600b);
  font-weight: var(--text-extrabold-weight);
  text-decoration: underline;
  text-decoration-color: var(--palette-yellow-600b);
  text-underline-offset: 2px;
}
.casaque { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; border: 1px solid var(--palette-blue-150d); background: var(--color-surface); }
.result-table-wrap { margin-top: 10px; }
.result-table thead th {
  background: var(--palette-blue-800c);
  color: var(--color-text-inverse);
  letter-spacing: 0.04em;
}
.result-col-place,
.result-col-num,
.result-col-cote {
  text-align: center;
  white-space: nowrap;
}
.result-col-place {
  width: 70px;
}
.result-col-num {
  width: 70px;
  font-weight: var(--text-extrabold-weight);
  color: var(--palette-green-800h);
}
.result-col-cote {
  width: 90px;
}
.result-th-short {
  display: none;
}
.result-cote-source {
  margin-top: 8px;
}
.result-reports-switch {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.result-tabs {
  margin-top: 12px;
}
.result-tab-btn {
  cursor: pointer;
}
.result-tab-btn.is-active {
  background: var(--brand);
  color: var(--color-text-inverse);
  border-color: var(--brand);
}
.result-active-channel {
  margin: 6px 0 0;
}
.result-active-label {
  display: inline-block;
  border: 1px solid var(--palette-blue-200c);
  background: var(--brand-soft);
  color: var(--color-brand-hover);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: var(--font-size-11);
  font-weight: var(--text-extrabold-weight);
  line-height: var(--line-height-110);
  vertical-align: middle;
}
.result-active-offline,
.result-active-web {
  display: inline-block;
}
.result-reports-group {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.result-reports-title {
  margin: 0;
  font-size: var(--font-size-xl);
}
.result-rapport-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 10px;
}
.result-rapport-card h4 {
  margin: 0 0 8px;
  font-size: var(--font-size-18);
  color: var(--palette-green-800e);
  text-transform: uppercase;
}
.result-rapport-table th,
.result-rapport-table td {
  text-align: center;
}
@supports (content-visibility: auto) {
  .result-reports-group,
  .result-rapport-card {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}
@media (min-width: 1200px) {
  .ad-slot-device-desktop {
    display: block;
  }
  .ad-slot-device-mobile {
    display: none;
  }
  .layout { grid-template-columns: 1fr 320px; align-items: start; }
  .layout.no-right-col { grid-template-columns: minmax(0, 1fr) !important; }
  .layout.no-right-col > section { width: 100%; max-width: none; }
  .desktop-only { display: block; }
  .mobile-only { display: none; }
  .home-shell { grid-template-columns: minmax(0, 1fr) 340px; }
  .home-sidebar { display: grid; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reunions-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reunions-calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bottom-nav { display: none; }
  /* MASQUÉE, ELLE NE PREND AUCUNE PLACE — DÈS LE PREMIER AFFICHAGE (29/09/2026).
     assets/js/nav-bas.js publie la place réelle de la barre, mais il tourne
     après le premier affichage : jusque-là, les barres collées des outils
     (Tris, Partition, Réducteur) prenaient leur valeur de repli, 52 px, et
     glissaient ensuite de 52 px vers le bas sous les yeux du lecteur. Sous
     1 200 px, 52 px est la vraie hauteur de la barre (mesurée de 320 à 1 199
     px) : le repli y est juste, rien à poser. Le script garde le dernier mot
     (un style en ligne l'emporte sur cette règle). */
  :root { --st-nav-bas-hauteur: 0px; }
  footer { padding-bottom: 36px; }
}
@media (max-width: 979px) {
  .container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .topbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand-link-desktop-stacked {
    display: none !important;
  }
  .topbar-head {
    gap: 8px;
    padding: 10px 0;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-18);
  }
  .brand-name {
    font-size: var(--font-size-xl);
  }
  .top-search-placeholder {
    display: none;
  }
  .top-bookmakers-strip {
    display: none;
  }
  .desktop-account,
  .topbar-nav-wrap {
    display: none;
  }
  .topbar-sticky-bookmaker {
    display: none !important;
  }
  /* « PUB DE LA RÉGIE » SUR TÉLÉPHONE (Xavier, 06/11/2026 : « pour le mobile je veux juste la pub
     akcelo en sticky header sans notre bloc vert, juste la pub »). Le même code de l'admin Bookmakers
     sert aux deux : le script d'Akcelo y envoie un 728×90 sur ordinateur et un 320×100 sur téléphone
     (Turffrmobile_ATF_300x100, dans la même case). Ici, ni vert ni logo : la pub seule, collée SOUS
     la bande du haut, qui reste (menu, cloche, avatar). header.js la montre au défilement, SEULEMENT
     quand la pub est arrivée (bloqueur, pas de campagne : rien de collé), et pose `--sb-tel-top` =
     le bas de l'en-tête. « Ma pub » reste caché sur téléphone (règle du dessus).
     - Le fond vert (`background-color`) n'est PAS changé, il est recouvert : course.js lit cette
       couleur pour peindre le haut des pages course.
     - Étage 79, juste sous l'en-tête (80) : ses panneaux (notifications…) passent par-dessus la pub.
     - `[data-sticky-bookmaker]` : passe devant `body.has-maintenance-banner .topbar-sticky-bookmaker`. */
  .topbar-sticky-bookmaker.topbar-sticky-bookmaker--regie[data-sticky-bookmaker] {
    display: block !important;
    top: var(--sb-tel-top, 56px);
    height: auto;
    z-index: 79;
    background-image: linear-gradient(var(--bg), var(--bg));
  }
  .topbar-sticky-bookmaker--regie .topbar-sticky-bookmaker-inner {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
  }
  .topbar-sticky-bookmaker--regie .topbar-sticky-left {
    display: none;
  }
  .topbar-sticky-bookmaker--regie .topbar-sticky-regie {
    padding: 0;
  }
  .mobile-only-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .top-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .top-menu-icon {
    width: 17px;
    gap: 3px;
  }
  .home-panel {
    padding: 14px;
    gap: 14px;
  }
  .home-day-tab {
    padding: 6px 14px;
    font-size: var(--font-size-sm);
  }
  .home-feature {
    padding: 14px;
  }
  .home-feature-top.is-pronostic {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .home-feature-badge {
    font-size: var(--font-size-18);
    line-height: 1.15;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: none;
    text-align: center;
  }
  .home-feature-badge-main,
  .home-feature-badge-date {
    display: block;
    width: 100%;
    white-space: nowrap;
    text-align: center;
  }
  .home-feature-badge-sep {
    display: none;
  }
  .home-feature h1.home-feature-title {
    font-size: var(--font-size-15);
  }
  .home-feature-meta {
    font-size: var(--font-size-base);
    gap: 6px 12px;
  }
  .home-feature-discipline-icon {
    width: 27px;
    height: 19px;
    flex-basis: 27px;
  }
  .home-feature-pmu-pill {
    font-size: var(--font-size-base);
    padding: 9px 14px;
    border-radius: 14px;
  }
  .home-feature-media {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    min-height: 185px;
  }
  .home-feature-media-caption {
    font-size: var(--font-size-13);
    padding: 9px 10px 10px;
  }
  .home-feature-result p {
    font-size: 30px;
  }
  .home-feature-reports {
    gap: 8px;
  }
  .home-feature-report-card {
    padding: 9px 9px;
    gap: 3px;
  }
  .home-feature-report-card strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    font-size: clamp(18px, 5.7vw, 23px);
    line-height: 1.05;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .home-feature-cta {
    width: 100%;
    font-size: var(--font-size-base);
  }
  .home-panel h2.home-program-title {
    font-size: var(--font-size-xs) !important;
  }
  .home-program-row {
    grid-template-columns: 46px 64px minmax(0, 1fr) minmax(64px, max-content);
    gap: 8px;
    padding: 9px 10px;
    overflow: hidden;
  }
  .home-program-col-code {
    font-size: var(--font-size-xs);
  }
  .home-program-col-time {
    font-size: var(--font-size-xs);
  }
  .home-program-col-time-icon {
    width: auto;
    height: 12px;
    max-width: 22px;
    transform: scale(1.22);
    transform-origin: center;
  }
  .home-program-col-name {
    font-size: var(--font-size-xs);
  }
  .home-program-col-detail {
    display: none;
  }
  .home-program-col-status {
    min-width: 40px;
    width: auto;
    height: 40px;
    padding: 0 8px;
    margin-right: 6px;
    font-size: var(--font-size-xs);
  }
  .home-program-col-status.is-time {
    min-width: 64px;
    font-size: var(--font-size-10);
  }
  .home-program-course-row {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 8px 10px;
  }
  .home-program-course-code {
    font-size: var(--font-size-xs);
  }
  .home-program-course-name-link {
    font-size: var(--font-size-xs);
  }
  .home-program-course-meta {
    font-size: var(--font-size-11);
  }
  .home-program-course-end {
    grid-column: 2;
    justify-self: stretch;
    text-align: right;
  }
  .home-program-course-depart,
  .home-program-course-result-link {
    font-size: var(--font-size-11);
  }
  .home-program-arrivee-status {
    font-size: var(--font-size-10);
    margin-top: 1px;
  }
  .home-program-arrivee-desktop {
    display: none;
  }
  .home-program-arrivee-mobile {
    display: inline;
  }
  .home-bonus-banner h2 {
    font-size: 34px;
  }
  .home-bonus-banner p {
    font-size: var(--font-size-sm);
  }
  .card h1 { font-size: 28px; line-height: 1.12; }
  .card h2 { font-size: var(--font-size-xl); line-height: 1.18; }
  .card h3 { font-size: var(--font-size-lg); line-height: var(--text-ui-height); }
  .stats-grid { grid-template-columns: 1fr; }
  #panel-stats .stats-lines-list,
  #panel-stats .stats-lines-more,
  #panel-stats .stats-lines-section > .meta-line,
  #panel-stats .pab-section {
    margin-left: -16px;
    margin-right: -16px;
  }
  #panel-stats .pab-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .horse-block-title { font-size: var(--font-size-18); }
  .horse-last-races-head {
    align-items: flex-start;
  }
  .horse-last-races-head .btn-row {
    width: 100%;
  }
  .horse-head-grid {
    grid-template-columns: 1fr;
  }
  .horse-musique-grid {
    grid-template-columns: 1fr;
  }
  .horse-fields-grid {
    grid-template-columns: 1fr;
  }
  .horse-filter-form {
    grid-template-columns: 1fr;
  }
  .horse-index-search-wrap {
    grid-template-columns: 1fr;
  }
  .horse-index-search-btn {
    width: 100%;
    min-width: 0;
  }
  .horse-index-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 980px) and (max-width: 1210px) {
  .brand-name {
    font-size: var(--font-size-xl);
  }
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .top-account-nav {
    padding: 2px 7px;
  }
  .top-account-nav .top-account-avatar {
    width: 26px;
    height: 26px;
  }
  .top-account-nav .top-account-name {
    font-size: 17px;
  }
  .top-links-main {
    gap: 20px;
  }
  .top-bookmakers-strip {
    gap: 4px;
  }
  .top-bookmaker-card {
    max-width: calc((100% - 8px) / 3);
    --bm-logo-col: clamp(64px, calc(var(--bm-logo-h) * 2.35), 124px);
    --bm-card-gap: clamp(2px, calc(var(--bm-font-max) * 0.14), 5px);
    --bm-pad-y: clamp(2px, calc(var(--bm-font-max) * 0.16), 4px);
    --bm-pad-r: clamp(3px, calc(var(--bm-font-max) * 0.2), 6px);
    --bm-pad-l: 2px;
  }
  .top-bookmaker-line {
    font-size: var(--bm-line-size);
  }
  .topbar-sticky-bookmaker-inner {
    --sb-right-col: 300px;
    --sb-col-gap: 12px;
    --sb-left-slot: clamp(58px, 8vw, 112px);
  }
}
@media (min-width: 980px) {
  .topbar.has-desktop-brand-logo {
    overflow: visible;
  }
  .topbar.has-desktop-brand-logo .brand-link-mobile {
    display: none;
  }
  .topbar.has-desktop-brand-logo .brand-link-desktop-stacked {
    display: block;
    position: absolute;
    top: 0;
    left: 4px;
    height: calc(100% + var(--brand-stack-nav-overlap));
    width: auto;
    z-index: 30;
  }
  .topbar.has-desktop-brand-logo .topbar-head {
    z-index: 30;
    overflow: visible;
    padding-top: 8px;
    padding-bottom: 6px;
    padding-left: var(--brand-stack-shift);
  }
  .topbar.has-desktop-brand-logo .topbar-nav-wrap {
    position: relative;
    z-index: 10;
  }
  .topbar.has-desktop-brand-logo .topbar-nav-inner {
    min-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .topbar.has-desktop-brand-logo .topbar-nav-wrap .container {
    box-sizing: border-box;
    padding-left: var(--brand-stack-nav-shift);
  }
}
@media (max-width: 768px) {
  .stats-line-casaque {
    display: none;
  }
  .stats-line-horse-emoji {
    display: inline-block;
  }
  .result-reports-group,
  .result-rapport-card,
  .result-rapport-card .tableWrap,
  .result-rapport-table {
    content-visibility: visible !important;
    contain: none !important;
  }
  .result-table-wrap,
  .result-rapport-card .tableWrap {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  .result-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
  }
  .result-table th,
  .result-table td,
  .result-table th:not(.col-perf),
  .result-table td:not(.col-perf) {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: var(--font-size-xs);
    padding: 6px 4px;
  }
  .result-table .result-col-place {
    width: 3ch;
    min-width: 3ch;
  }
  .result-table .result-col-num {
    width: 42px;
  }
  .result-table .result-col-cote {
    width: 56px;
  }
  .result-table th:nth-child(4),
  .result-table td:nth-child(4),
  .result-table th:nth-child(5),
  .result-table td:nth-child(5) {
    display: none;
  }
  .result-table,
  .result-rapport-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
  }
  .result-th-long {
    display: none;
  }
  .result-th-short {
    display: inline;
  }
  .result-rapport-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed !important;
  }
  .result-rapport-table thead th {
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .result-rapport-table th,
  .result-rapport-table td {
    min-width: 0;
    font-size: var(--font-size-10);
    line-height: var(--text-ui-height);
    box-sizing: border-box;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: normal;
    padding: 5px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .result-rapport-table td:last-child,
  .result-rapport-table th:last-child {
    white-space: nowrap !important;
  }
  .result-rapport-table-3col col:nth-child(1) { width: 38%; }
  .result-rapport-table-3col col:nth-child(2) { width: 24%; }
  .result-rapport-table-3col col:nth-child(3) { width: 38%; }
  .result-rapport-table-2col col:nth-child(1) { width: 44%; }
  .result-rapport-table-2col col:nth-child(2) { width: 56%; }
  .result-rapport-table-classic col:nth-child(1) { width: 38%; }
  .result-rapport-table-classic col:nth-child(2) { width: 31%; }
  .result-rapport-table-classic col:nth-child(3) { width: 31%; }
  .result-reports-switch {
    display: grid;
    grid-template-columns: 1fr;
  }
  .result-tab-btn {
    width: 100%;
    justify-content: center;
  }
  .result-reports-title {
    font-size: var(--font-size-lg);
    line-height: var(--text-ui-height);
  }
  .result-rapport-card h4 {
    font-size: var(--font-size-base);
    line-height: var(--text-ui-height);
  }
  .course-result-section.result-tabs .course-result-section-title {
    padding: 0 10px;
  }
}
@media (max-width: 640px) {
  .reunions-datepicker {
    width: auto;
  }
  .reunions-datepicker__trigger {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  .reunions-datepicker__panel {
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 24px));
  }
  .course-hero-datepicker .reunions-datepicker__panel {
    left: 0;
    right: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   PAB — % d'Adversaires Battus (onglet Statistiques)
   ═══════════════════════════════════════════════════════════════════════ */

.pab-section { margin-bottom: 24px; }

/* Card wrapper */
.pab-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px var(--palette-black-a10), 0 2px 4px var(--palette-black-a6);
  overflow: hidden;
  border: 1px solid var(--palette-blue-150f);
}
.pab-badge {
  background: var(--palette-white-a25);
  color: var(--palette-white-a70);
  font-size: 8px;
  font-weight: var(--text-semibold-weight);
  padding: 2px 7px;
  border-radius: var(--badge-radius);
}

/* ─── Table PAB (desktop) ──────────────────────────────────────────── */
.pab-tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pab-tbl-wrap::-webkit-scrollbar { height: 3px; }
.pab-tbl-wrap::-webkit-scrollbar-thumb { background: var(--palette-blue-400c); border-radius: 2px; }

table.pab-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-xs);
}
table.pab-tbl thead tr {
  background: var(--palette-blue-900d);
  color: var(--color-text-inverse);
}
table.pab-tbl thead th {
  padding: 10px 6px;
  text-align: center;
  font-size: 9px;
  font-weight: var(--text-bold-weight);
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.35;
  vertical-align: middle;
  border-right: 1px solid var(--palette-white-a7);
}
table.pab-tbl thead th.pab-th-num { width: 34px; white-space: nowrap; }
table.pab-tbl thead th.pab-th-horse { text-align: left; width: 200px; padding-left: 12px; white-space: nowrap; }

table.pab-tbl tbody tr {
  border-bottom: 1px solid var(--palette-blue-150f);
  transition: background var(--transition-microaction);
}
table.pab-tbl tbody tr:nth-child(odd)  { background: var(--color-surface); }
table.pab-tbl tbody tr:nth-child(even) { background: var(--palette-blue-50b); }
table.pab-tbl tbody tr:hover { background: inherit; }

table.pab-tbl td {
  padding: 8px 8px;
  text-align: center;
  border-right: 1px solid var(--palette-blue-150f);
  font-size: var(--font-size-xs);
}
.pab-td-num {
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-400c);
  font-size: var(--font-size-11);
}
.pab-td-horse {
  text-align: left;
  padding-left: 12px;
  font-weight: var(--text-semibold-weight);
  color: var(--palette-blue-900d);
}
.pab-horse-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pab-horse-name-row a,
.pab-block-name a,
.pab-synth-name a,
.pab-synth-list-name a {
  color: inherit;
  text-decoration: underline;
}
.pab-horse-name-row a:hover,
.pab-block-name a:hover,
.pab-synth-name a:hover,
.pab-synth-list-name a:hover {
  color: inherit;
  text-decoration: underline;
  opacity: 1;
}

/* PCT cells */
.pab-td-pct { font-weight: var(--font-weight-500); color: var(--palette-blue-800e); font-variant-numeric: tabular-nums; }
.pab-td-pct.pab-hi { color: var(--palette-green-700k); font-weight: var(--text-bold-weight); }
.pab-td-pct.pab-mid { color: var(--palette-orange-600b); font-weight: var(--text-semibold-weight); }
.pab-td-pct.pab-lo { color: var(--palette-red-600e); font-weight: var(--text-semibold-weight); }
.pab-td-pct.pab-na { color: var(--palette-blue-400c); font-weight: var(--text-regular-weight); }
.pab-td-pct.pab-best { background: var(--palette-green-700-a9); }

/* Avg row */
/* Plus de !important (30/09/2026) : course-stats-blocs.css (@layer modules) habille désormais cette
   ligne en vert clair, au style des blocs de l'onglet ; un !important ici l'en empêchait. */
tr.pab-avg-row td {
  background: var(--palette-blue-900d);
  color: var(--palette-white-a88);
  font-weight: var(--text-bold-weight);
  font-size: var(--font-size-11);
  text-align: center;
}
tr.pab-avg-row td.pab-td-horse { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; }
tr.pab-avg-row td.pab-td-num { color: var(--palette-white-a30); }
tr.pab-avg-row:hover td { background: var(--palette-blue-900d); }

/* NP row */
tr.pab-row-np td { opacity: .45; }
tr.pab-row-np:hover td { opacity: .65; }

/* NP pill */
.pab-np-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: var(--text-extrabold-weight);
  background: var(--palette-orange-500d);
  /* Texte foncé : le blanc sur cet orange ne se lisait pas (1,7:1). Xavier, 30/09/2026 : « ok
     pour le NP » — même réglage que la pastille des blocs (course-stats-blocs.css). Foncé FIXE,
     comme l'orange du fond (--color-text devient clair sous un thème sombre). */
  color: var(--palette-slate-900);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Heart */
.pab-heart { font-size: var(--font-size-10); line-height: var(--text-tight-height); }

/* Legend */
.pab-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: var(--palette-blue-50b);
  border-top: 1px solid var(--palette-blue-150f);
}
.pab-leg-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--palette-blue-700i);
  font-weight: var(--font-weight-500);
}
.pab-leg-dot { width: 7px; height: 7px; border-radius: 50%; }
.pab-leg-dot.pab-leg-hi  { background: var(--palette-green-700k); }
.pab-leg-dot.pab-leg-mid { background: var(--palette-orange-600b); }
.pab-leg-dot.pab-leg-lo  { background: var(--palette-red-600e); }

/* Tooltip */
[data-pab-tip] { position: relative; cursor: default; }
[data-pab-tip]:hover::after {
  content: attr(data-pab-tip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--palette-blue-900d);
  color: var(--color-text-inverse);
  font-size: var(--font-size-10);
  font-weight: var(--font-weight-500);
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 99;
  pointer-events: none;
}
[data-pab-tip]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--palette-blue-900d);
  z-index: 99;
}

/* ─── Table Synthèse (desktop) ─────────────────────────────────────── */
table.pab-synth-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-xs);
}
table.pab-synth-tbl thead tr {
  background: var(--palette-blue-900d);
  color: var(--color-text-inverse);
}
table.pab-synth-tbl thead th {
  padding: 9px 12px;
  font-size: 9.5px;
  font-weight: var(--text-bold-weight);
  letter-spacing: .5px;
  text-transform: uppercase;
  border-right: 1px solid var(--palette-white-a7);
}
table.pab-synth-tbl thead th:first-child { width: 44px; text-align: center; }
table.pab-synth-tbl thead th.pab-synth-th-pab { text-align: right; padding-right: 18px; width: 200px; }

table.pab-synth-tbl tbody tr {
  border-bottom: 1px solid var(--palette-blue-150f);
  border-left: 4px solid transparent;
  transition: background var(--transition-microaction);
}
table.pab-synth-tbl tbody tr:hover { background: inherit; }
table.pab-synth-tbl tbody tr:nth-child(odd) { background: var(--color-surface); }
table.pab-synth-tbl tbody tr:nth-child(even) { background: var(--palette-blue-50b); }

/* Podium borders */
table.pab-synth-tbl tbody tr.pab-rank-1 { border-left-color: var(--palette-orange-600c); }
table.pab-synth-tbl tbody tr.pab-rank-2 { border-left-color: var(--palette-blue-400c); }
table.pab-synth-tbl tbody tr.pab-rank-3 { border-left-color: var(--palette-orange-600d); }

table.pab-synth-tbl tbody td { padding: 9px 12px; }
.pab-synth-td-rank {
  text-align: center;
  font-weight: var(--text-extrabold-weight);
  font-size: var(--font-size-13);
  color: var(--palette-blue-400c);
  padding: 9px 6px;
}
tr.pab-rank-1 .pab-synth-td-rank { color: var(--palette-orange-600c); }
tr.pab-rank-2 .pab-synth-td-rank { color: var(--palette-blue-400c); }
tr.pab-rank-3 .pab-synth-td-rank { color: var(--palette-orange-600d); }

.pab-synth-horse {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pab-synth-num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--palette-blue-150f);
  font-size: var(--font-size-11);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-800e);
  flex-shrink: 0;
}
.pab-synth-name {
  font-weight: var(--text-semibold-weight);
  color: var(--palette-blue-900d);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* PAB bar cell */
.pab-synth-td-pab { text-align: right; padding-right: 18px; }
.pab-synth-pab-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.pab-synth-bar-wrap {
  flex: 1;
  max-width: 100px;
  height: 5px;
  background: var(--palette-blue-150f);
  border-radius: 3px;
  overflow: hidden;
}
.pab-synth-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.pab-synth-bar-hi  { background: linear-gradient(90deg, var(--palette-green-700k), var(--palette-green-600c)); }
.pab-synth-bar-mid { background: linear-gradient(90deg, var(--palette-orange-600b), var(--palette-yellow-400)); }
.pab-synth-bar-lo  { background: linear-gradient(90deg, var(--palette-red-600e), var(--palette-red-200)); }

.pab-synth-pab-val {
  font-size: var(--font-size-13);
  font-weight: var(--text-bold-weight);
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pab-synth-pv-hi  { color: var(--palette-green-700k); }
.pab-synth-pv-mid { color: var(--palette-orange-600b); }
.pab-synth-pv-lo  { color: var(--palette-red-600e); }

/* NP in synth */
table.pab-synth-tbl tbody tr.pab-row-np td { opacity: .45; }
table.pab-synth-tbl tbody tr.pab-row-np:hover td { opacity: .65; }

/* Avg divider */
tr.pab-synth-avg-divider td {
  background: var(--palette-blue-100k); /* plus forcé depuis le 30/09/2026 : cf. tr.pab-avg-row td */
  border-top: 2px dashed var(--palette-blue-200d);
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: var(--text-semibold-weight);
  color: var(--palette-blue-700i);
  text-transform: uppercase;
  letter-spacing: .4px;
}
tr.pab-synth-avg-divider td.pab-synth-td-pab { text-align: right; }

/* ─── Mobile: blocks PAB ───────────────────────────────────────────── */
.pab-desktop-only { display: block; }
.pab-mobile-only  { display: none; }

.pab-block {
  border-bottom: 1px solid var(--palette-blue-150f);
}
.pab-block:last-child { border-bottom: none; }
.pab-block:nth-child(even) .pab-block-header { background: var(--palette-green-100b); }
.pab-block:nth-child(odd)  .pab-block-header { background: var(--palette-blue-50b); }
.pab-block:nth-child(even) .pab-block-grid   { background: var(--palette-green-50b); }

.pab-block-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--palette-blue-150f);
}
.pab-block-num {
  font-size: 10.5px;
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-400c);
  min-width: 14px;
}
.pab-block-num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--palette-blue-150f);
  font-size: var(--font-size-11);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-800e);
  flex-shrink: 0;
}
.pab-block-name {
  font-size: 12.5px;
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-900d);
  text-transform: uppercase;
  letter-spacing: .1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pab-block-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  background: var(--color-surface);
}
.pab-block-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 2px;
  border-right: 1px solid var(--palette-blue-150f);
  min-width: 0;
}
.pab-block-cell:last-child { border-right: none; }
.pab-cell-label {
  font-size: 7.5px;
  font-weight: var(--text-semibold-weight);
  color: var(--palette-blue-400c);
  text-transform: uppercase;
  letter-spacing: .2px;
  text-align: center;
  line-height: var(--text-ui-height);
  margin-bottom: 3px;
}
.pab-cell-val {
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  font-variant-numeric: tabular-nums;
  line-height: var(--text-tight-height);
}
.pab-cell-val.pab-hi  { color: var(--palette-green-700k); }
.pab-cell-val.pab-mid { color: var(--palette-orange-600b); }
.pab-cell-val.pab-lo  { color: var(--palette-red-600e); }
.pab-cell-val.pab-na  { color: var(--palette-blue-400c); font-weight: var(--text-regular-weight); }
.pab-cell-val.pab-best { background: var(--palette-green-700-a8); border-radius: 3px; padding: 0 2px; }

/* NP block mobile */
.pab-block-np { opacity: .45; }

/* Avg block mobile */
.pab-avg-block-mobile {
  background: var(--palette-blue-900d);
}
.pab-avg-block-mobile .pab-block-header {
  background: transparent !important;
  border-bottom-color: var(--palette-white-a10);
  padding: 6px 12px;
}
.pab-avg-block-mobile .pab-block-name {
  color: var(--palette-white-a70);
  font-size: var(--font-size-10);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pab-avg-block-mobile .pab-block-grid { background: var(--palette-blue-900d); }
.pab-avg-block-mobile .pab-block-cell {
  background: transparent !important;
  border-right-color: var(--palette-white-a10);
}
.pab-avg-block-mobile .pab-cell-label { color: var(--palette-white-a40); }
.pab-avg-block-mobile .pab-cell-val   { color: var(--palette-white-a90); }

/* ─── Mobile: synth list ───────────────────────────────────────────── */
.pab-synth-list-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--palette-blue-150f);
  border-left: 4px solid transparent;
  transition: background var(--transition-microaction);
}
.pab-synth-list-row:last-child { border-bottom: none; }
.pab-synth-list-row:hover { background: inherit; }
.pab-synth-list-row.pab-rank-1 { border-left-color: var(--palette-orange-600c); }
.pab-synth-list-row.pab-rank-2 { border-left-color: var(--palette-blue-400c); }
.pab-synth-list-row.pab-rank-3 { border-left-color: var(--palette-orange-600d); }
.pab-synth-list-row:nth-child(odd) { background: var(--color-surface); }
.pab-synth-list-row:nth-child(even) { background: var(--palette-blue-50b); }

.pab-synth-list-rank {
  font-size: var(--font-size-13);
  font-weight: var(--text-extrabold-weight);
  color: var(--palette-blue-400c);
  min-width: 28px;
  text-align: center;
}
.pab-synth-list-row.pab-rank-1 .pab-synth-list-rank { color: var(--palette-orange-600c); }
.pab-synth-list-row.pab-rank-2 .pab-synth-list-rank { color: var(--palette-blue-400c); }
.pab-synth-list-row.pab-rank-3 .pab-synth-list-rank { color: var(--palette-orange-600d); }

.pab-synth-list-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--palette-blue-150f);
  font-size: var(--font-size-11);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-800e);
  flex-shrink: 0;
  margin-right: 7px;
}
.pab-synth-list-name {
  flex: 1;
  font-size: var(--font-size-13);
  font-weight: var(--text-semibold-weight);
  color: var(--palette-blue-900d);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pab-synth-list-pab {
  font-size: var(--font-size-sm);
  font-weight: var(--text-bold-weight);
  font-variant-numeric: tabular-nums;
  min-width: 58px;
  text-align: right;
}

/* NP in synth list mobile */
.pab-synth-list-row.pab-row-np { opacity: .45; }
.pab-synth-list-row.pab-row-np:hover { opacity: .65; }

/* Avg divider mobile */
.pab-synth-list-avg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: var(--palette-blue-100k);
  border-top: 2px dashed var(--palette-blue-200d);
  border-bottom: 1px solid var(--palette-blue-150f);
  border-left: 4px solid transparent;
}
.pab-synth-list-avg span:first-child {
  font-size: var(--font-size-10);
  font-weight: var(--text-semibold-weight);
  color: var(--palette-blue-700i);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.pab-synth-list-avg span:last-child {
  font-size: var(--font-size-xs);
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-700i);
}

/* ─── Responsive PAB ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pab-desktop-only { display: none !important; }
  .pab-mobile-only  { display: block !important; }
  .pab-legend { gap: 10px; }
  .pab-leg-na { display: none; }
}

/* Les pronostics de la presse (onglet Pronostic de la fiche course) : course-pronostic-blocs.css
   depuis la refonte du 02/10/2026 (les règles .presse-* d'ici ont été retirées). */

/* ── Quinté Pronostic excerpt ── */
.qpt-prono-excerpt {
  margin-bottom: 20px;
}
.qpt-prono-excerpt p {
  font-size: var(--font-size-15);
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 12px;
}
.qpt-prono-link {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--text-semibold-weight);
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qpt-prono-link:hover { color: var(--color-green); }

.qpt-prono-bases {
  margin: 24px 0;
  padding: 20px;
  background: var(--color-surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
/* Titres barre verte quinté — même rendu que page course */
.qpt-prono-bases .course-result-section-title h3,
.card > .course-result-section-title h3 {
  margin: 0;
  color: var(--palette-green-800c);
  font-size: var(--font-size-sm);
  font-weight: var(--text-extrabold-weight);
  letter-spacing: .04em;
}
.qpt-prono-bases-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.qpt-prono-base-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  flex: 1;
  min-width: 180px;
}
.qpt-prono-base-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-text-inverse);
  font-weight: var(--text-extrabold-weight);
  font-size: var(--font-size-15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qpt-prono-base-name {
  font-weight: var(--text-bold-weight);
  font-size: var(--font-size-15);
  color: var(--palette-blue-900e);
  text-transform: uppercase;
}
a.qpt-prono-base-name:hover { text-decoration: underline; }

.qpt-prono-cta {
  margin-top: 20px;
  text-align: center;
}
.qpt-prono-cta-link {
  /* Les boutons des onglets de la page Quinté+ (pleins, et à contour dans
     quinte-cotes.css, qui lisent la même variable) : le vert de l'en-tête,
     #1B764F (Xavier 2026-10-29). Retour arrière : supprimer cette ligne
     (vert du site #085e3d) et remettre var(--palette-green-800i) au survol. */
  --color-green: #1b764f;
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-green);
  color: var(--color-text-inverse);
  font-weight: var(--text-bold-weight);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-interaction);
}
.qpt-prono-cta-link:hover { background: #14573a; }

@media (max-width: 600px) {
  .qpt-prono-bases { padding: 14px; }
  .qpt-prono-base-card { padding: 10px 14px; min-width: 0; flex: 1 1 100%; }
  .qpt-prono-cta-link { width: 100%; text-align: center; padding: 14px 20px; }
}

/* Quinté hub — h1 plus compact */
h1.quinte-h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }

/* ═══════════════════════════════════════════════════════════
   QUINTÉ PARTANTS TABLE  (qpt-*)
   Tableau étendu 11 colonnes — spécifique au hub /quinte/
   ═══════════════════════════════════════════════════════════ */

/* ── Desktop table ── */
.qpt-desktop-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  /* À peine arrondi (règle maison, tokens à 6px) : 10px faisait un coin mou
     là où tout le reste du site est presque droit. */
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--palette-blue-900-a10);
}
.qpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-xs);
  table-layout: auto;
}

/* Colonnes courtes contraintes */
.qpt-th-num   { width: 36px; }
.qpt-th-dist,
.qpt-th-poids { width: 48px; }
.qpt-th-def,
.qpt-th-oeil  { width: 36px; }
.qpt-th-sa    { width: 38px; }
.qpt-th-rk,
.qpt-th-corde { width: 56px; }
.qpt-th-gains { width: 84px; }
.qpt-th-cote  { width: 52px; }

/* En-tête */
.qpt-table thead tr { background: var(--palette-blue-900e); color: var(--color-text-inverse); }
.qpt-table thead th {
  padding: 10px 6px;
  font-weight: var(--text-semibold-weight);
  font-size: var(--font-size-10);
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid var(--palette-white-a7);
  text-align: left;
}
.qpt-table thead th:last-child { border-right: none; }
.qpt-th-num,
.qpt-th-dist,
.qpt-th-poids,
.qpt-th-def,
.qpt-th-oeil,
.qpt-th-sa,
.qpt-th-rk,
.qpt-th-corde,
.qpt-th-cote { text-align: center; }
/* Titres cliquables pour trier (assets/js/quinte-partants.js, Xavier 16/11/2026,
   option A) : le même geste que l'onglet Cotes (quinte-cotes.css) — ↕ = triable,
   ▲ / ▼ = trié dans ce sens. Le bouton reprend tout du titre (capitales, taille,
   blanc) et suit son alignement (inline-flex dans un th aligné à gauche ou au
   centre). Pictogrammes muets pour les lecteurs d'écran (« / "" ») : le sens
   leur est donné par aria-sort sur le titre. */
.qpt-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.qpt-sort::after {
  content: "↕";
  content: "↕" / "";
  flex: none;
  font-size: 12px;
  letter-spacing: 0;
  opacity: .55;
}
.qpt-sort.is-asc::after { content: "▲"; content: "▲" / ""; font-size: 10px; opacity: 1; }
.qpt-sort.is-desc::after { content: "▼"; content: "▼" / ""; font-size: 10px; opacity: 1; }
.qpt-sort:hover::after { opacity: 1; }
/* Contour du clavier : la règle commune (components.css, :where(button):focus-visible,
   couche components, qui passe devant celle-ci) dessine var(--color-focus-ring),
   un vert à peine visible sur ce bleu nuit (2,15:1). On change la couleur à la
   source pour ce bandeau seulement : blanc, comme les autres fonds sombres du site. */
.qpt-table thead { --color-focus-ring: var(--color-text-inverse); }
.qpt-sort:focus-visible { border-radius: 4px; }

/* Corps */
.qpt-table tbody tr { border-bottom: 1px solid var(--palette-blue-150g); transition: background var(--transition-microaction); }
.qpt-table tbody tr:nth-child(odd)  { background: var(--color-surface); }
/* Même vert que le tableau des partants de la page course (race-shared.css)
   et que les cartes de ce même tableau sur téléphone, qui l'utilisaient déjà :
   le grand écran était le seul à alterner en gris-bleu. */
.qpt-table tbody tr:nth-child(even) { background: var(--palette-green-100f); }
/* Survol : le même orange que le tableau des partants de la page course
   (race-shared.css), texte en blanc. Chaque cellule a sa couleur propre — bleu
   du numéro et du nom, gris des mesures, vert des gains, rouge de la cote :
   toutes deviennent illisibles sur l'orange, elles passent au blanc comme elles
   le font déjà sur la ligne rouge d'un non-partant. */
.qpt-table tbody tr:not(.qpt-row-np):hover {
  background: var(--palette-orange-500e);
  color: var(--color-text-inverse);
}
.qpt-table tbody tr:not(.qpt-row-np):hover td { border-bottom-color: var(--palette-white-a28); }
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-td-num,
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-horse-name,
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-td-dist,
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-td-poids,
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-td-rk,
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-td-corde,
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-td-gains,
.qpt-table tbody tr:not(.qpt-row-np):hover .qpt-cote-value {
  color: var(--color-text-inverse);
}

.qpt-table tbody td {
  padding: 7px 6px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* NP */
.qpt-row-np,
.qpt-row-np:hover { background: var(--color-danger) !important; color: var(--color-text-inverse); }
.qpt-row-np td { border-bottom-color: var(--palette-white-a22); }

/* Cellule N° */
.qpt-td-num { text-align: center; font-weight: var(--text-bold-weight); color: var(--palette-blue-900e); }
.qpt-row-np .qpt-td-num { color: var(--color-text-inverse); }

/* Cellule Cheval */
.qpt-horse-cell { display: flex; align-items: center; gap: 5px; overflow: hidden; }
.qpt-casaque-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.qpt-casaque { width: 28px; height: 28px; border-radius: 2px; }
.qpt-horse-name {
  font-weight: var(--text-bold-weight);
  color: var(--palette-blue-900e);
  font-size: var(--font-size-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.qpt-horse-name:hover { text-decoration: underline; }
.qpt-row-np .qpt-horse-name { color: var(--color-text-inverse); }

/* Cellule déferré / œillères — réutilise les classes partants-status-* de la page course */
.qpt-td-def,
.qpt-td-oeil { text-align: center; font-size: var(--font-size-xs); }

/* Badge S/A */
.qpt-td-sa { text-align: center; }
.qpt-sa-badge {
  background: var(--palette-blue-900e);
  color: var(--color-text-inverse);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: var(--font-size-10);
  font-weight: var(--text-semibold-weight);
  white-space: nowrap;
  display: inline-block;
}
.qpt-sa-badge.is-f { background: var(--palette-pink-600); }
.qpt-sa-badge.is-m { background: var(--palette-blue-500e); }

/* Cellules centre/droite */
.qpt-td-dist,
.qpt-td-poids,
.qpt-td-rk,
.qpt-td-corde { text-align: center; font-size: var(--font-size-11); color: var(--color-text-muted); }
.qpt-td-gains { font-size: var(--font-size-11); font-weight: var(--text-semibold-weight); color: var(--color-success); }
.qpt-row-np .qpt-td-gains { color: var(--color-text-inverse); }

/* Performances */
.qpt-perfs-text {
  font-size: var(--font-size-xs);
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
}

/* Cotes */
.qpt-td-cote { text-align: center; }
.qpt-cote-value { font-weight: var(--text-bold-weight); color: var(--palette-red-600m); font-size: var(--font-size-xs); }
.qpt-td-cote.is-favorite .qpt-cote-value { font-size: var(--font-size-13); }
.qpt-row-np .qpt-cote-value { color: var(--color-text-inverse); }

/* ── Séparateur distance (trot rendu) ── */
.qpt-table tbody tr.qpt-distance-break td { border-top: 3px solid var(--palette-blue-800f); }
/* Trié sur autre chose que le numéro (quinte-partants.js) : le « +25m » et le
   trait épais ne tombent plus entre deux distances, on les cache. */
.qpt-table.qpt-tri-actif tbody tr.qpt-distance-break td { border-top: 0; }
.qpt-table.qpt-tri-actif .qpt-distance-rendu { display: none; }
.qpt-table tbody tr.qpt-distance-break > td:first-child { position: relative; overflow: visible; }
.qpt-distance-rendu {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(-50%);
  background: var(--palette-blue-800f); color: var(--color-text-inverse);
  font-size: var(--font-size-10); font-weight: var(--text-bold-weight);
  padding: 1px 7px; border-radius: 8px; /* comme .partants-distance-rendu */
  white-space: nowrap; z-index: 2;
  letter-spacing: .3px; line-height: 16px;
  pointer-events: none; margin-left: 8px;
}
.qpt-card-distance-break { border-top: 3px solid var(--palette-blue-800f); }
.qpt-card-distance-break > .qpt-distance-rendu { top: -2px; left: 16px; transform: translateY(-50%); }

/* ── Mobile cards ── */
/* Refonte 18/09/2026 : la carte tenait sur 169px (étiquettes « DRIVER » /
   « ENTRAÎNEUR » sur une ligne entière, musique sur deux rangs, gains sur une
   ligne à eux). Elle en fait 98 : le pilote monte sur la ligne d'identité, la
   musique s'arrête aux 6 dernières et les gains se rangent à droite. Ces
   classes ne servent qu'au hub Quinté (quinte-partants-table.php) — la fiche
   course a son propre bloc. */
.qpt-mobile-cards { display: none; }

/* ⚠️ PAS d'« overflow: hidden » sur la carte : `.qpt-distance-rendu` dépasse
   VOLONTAIREMENT du bord haut pour chevaucher le trait du changement de distance
   (« +25m » du trot rendu). Un rognage n'en laissait voir que 39 % — le haut des
   lettres coupé net (constaté 20/09/2026). Il y en avait un depuis le premier
   commit du bloc (17/04) sans qu'on sache pourquoi : la carte y était DÉJÀ au
   carré, il ne rognait donc aucun coin.
   Les coins arrondis de la première carte (quinte-hub.css, `:first-child`) n'en
   ont pas besoin : un `border-radius` rogne déjà le fond de l'élément tout seul.
   La page course ne l'a jamais eu non plus (.partants-mobile-card,
   race-shared.css), pour la même pastille. */
.qpt-card {
  background: var(--color-surface);
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--palette-blue-150g);
}
.qpt-card:nth-child(even) { background: var(--palette-green-100f); }
.qpt-card:last-child { border-bottom: none; }
.qpt-card-np { border-bottom-color: var(--color-danger); }
/* Le favori se repère par un liseré, pas par un fond : une ligne sur deux est
   déjà verte, et un favori posé juste avant une ligne paire donnait deux fonds
   verts qui se suivent — l'alternance ne se lisait plus (constaté 18/09/2026).
   Il garde par ailleurs son numéro vert, sa cote en vert plein et « ★ Favori ». */
.qpt-card.is-favorite { box-shadow: inset 3px 0 0 var(--color-green); }

.qpt-card-header {
  display: flex;
  align-items: center;
  padding: 9px 13px 0;
  gap: 9px;
}
.qpt-card-num {
  /* 22 px et non 26 : le chiffre flottait dans trop de vide, le carré prenait
     l'œil avant le nom du cheval (Xavier, 18/09/2026). La page course porte la
     même pastille, aux mêmes mesures (race-shared.css). */
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  background: var(--palette-blue-900e); color: var(--color-text-inverse);
  font-weight: var(--text-bold-weight); font-size: var(--font-size-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qpt-card.is-favorite .qpt-card-num { background: var(--color-green); }
.qpt-card-silk {
  position: relative;
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center;
}
.qpt-card-silk img { width: 34px; height: 34px; border-radius: 3px; }
.qpt-card-info { flex: 1; min-width: 0; }
/* Nom et icône (déferré, œillères, NP) sur la même ligne : c'est le nom qui se
   coupe quand l'épreuve est longue, jamais l'icône. */
.qpt-card-horse-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-weight: var(--text-bold-weight);
  font-size: var(--font-size-sm);
  color: var(--palette-blue-900e);
  line-height: var(--line-height-tight);
}
.qpt-card-horse-name a,
.qpt-card-horse-label {
  color: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qpt-card-horse-name a:hover { text-decoration: underline; }
.qpt-card-horse-name .partants-status-icon { flex: none; }
.qpt-card-meta {
  font-size: var(--font-size-11);
  color: var(--color-text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qpt-card-pilot { color: var(--color-text); font-weight: var(--font-weight-700); }
.qpt-card-odds {
  flex-shrink: 0;
  text-align: right;
  min-width: 62px;
}
.qpt-card-odds-value {
  display: block;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: var(--color-danger-soft);
  color: var(--palette-red-600m);
  font-size: var(--font-size-15);
  font-weight: var(--text-extrabold-weight);
  line-height: var(--line-height-tight);
}
.qpt-card.is-favorite .qpt-card-odds-value { background: var(--color-green); color: var(--color-text-inverse); }
.qpt-card-fav {
  display: block;
  margin-top: 2px;
  font-size: var(--font-size-10);
  font-weight: var(--text-bold-weight);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-green);
}
.qpt-card-odds.is-np { color: var(--color-danger); font-size: var(--font-size-13); font-weight: var(--text-semibold-weight); }

.qpt-card-body { padding: 7px 13px 10px 48px; }
.qpt-card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qpt-card-gains { flex: none; font-size: var(--font-size-11); color: var(--color-text-muted); white-space: nowrap; }
.qpt-card-gains b { color: var(--color-text); font-weight: var(--font-weight-700); }
/* L'entraîneur ne se montre qu'une fois la musique dépliée : replié, la carte
   s'en tient au pilote, qui est le nom qu'on cherche d'abord. */
.qpt-card-trainer { display: none; margin: 5px 0 0; font-size: var(--font-size-11); color: var(--color-text-muted); }
.qpt-musique-toggle:checked ~ .qpt-mobile-cards .qpt-card-trainer { display: block; }

/* Musique : ce qui tient sur une rangée, le reste derrière la pastille du
   total. Une seule case pour toute la liste (posée avant elle dans le HTML) :
   ouvrir une musique les ouvre toutes, en replier une les replie toutes — sans
   JavaScript, donc sans rien coûter au chargement de la page. */
.qpt-musique-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
/* Au clavier, la case est invisible : c'est le libellé qu'elle commande qui
   montre le focus, sinon on ne saurait pas où l'on est. */
.qpt-musique-toggle:focus-visible ~ .qpt-mobile-cards .qpt-perf-more {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}
.qpt-card-perfs.qpt-card-perfs-all { display: none; }
/* ⚠️ « :not(.qpt-perfs-zone-fixe) » — une carte à musique courte n'a pas de
   bloc complet à montrer à la place : la masquer la laisserait SANS musique dès
   qu'un autre cheval est déplié, puisque la case est commune à toute la liste
   (défaut d'origine, attrapé au banc le 22/09/2026). */
.qpt-musique-toggle:checked ~ .qpt-mobile-cards .qpt-card-perfs-zone:not(.qpt-perfs-zone-fixe) { display: none; }
.qpt-musique-toggle:checked ~ .qpt-mobile-cards .qpt-card-perfs.qpt-card-perfs-all { display: flex; }

/* ⚠️ UNE SEULE RANGÉE, QUELLE QUE SOIT LA LARGEUR (22/09/2026, Xavier : « le +5
   est à la ligne »). Le PHP ne peut pas trancher : il ignore la largeur de
   l'écran et la longueur des gains (« Gains 1 237 650 € » prend 20 px de plus
   que « Gains 97 325 € »). Mesuré au banc avant correction : 8 cartes sur 16
   passaient à la ligne à 360 px, 13 sur 16 avec des gains à sept chiffres.
   C'est donc la BOÎTE qui coupe : elle se laisse rétrécir par la ligne, les
   pastilles en trop basculent en rangée 2, et la rangée 2 est hors cadre. Une
   pastille est ainsi toujours ENTIÈRE ou absente, jamais coupée en deux — le
   défaut qu'avait laissé l'`overflow` d'avant la refonte. */
.qpt-card-perfs-zone {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 1 auto;
  min-width: 0;
}
.qpt-card-perfs.qpt-card-perfs-short {
  flex: 0 1 auto;
  min-width: 0;
  /* Une rangée = 2 px de rembourrage + 14 px de ligne (140 % de 10 px) + 2 px,
     et 3 px de plus pour le liseré du jalon d'année : 20 px. La rangée suivante
     commence au plus tôt à 21 px (18 px + l'écart de 3 px), donc rien n'en
     dépasse. ⛔ Ne pas monter cette valeur : à 21 px, un liseré de rangée 2
     réapparaît. */
  max-height: 20px;
  overflow: hidden;
}
/* La pastille du total vit HORS de la boîte qui coupe : c'est la seule dont on
   soit sûr qu'elle reste visible, et elle est la porte vers toute la musique.
   Son chevron dit qu'elle s'ouvre — un nombre seul serait muet au milieu des
   pastilles de musique, qui sont des nombres eux aussi. Il est réduit et les
   côtés sont resserrés : chaque pixel pris ici, c'est une sortie de moins à
   l'écran (10 px = une pastille sur un téléphone de 360). */
.qpt-perf-total { flex: none; padding-left: 5px; padding-right: 4px; }
.qpt-perf-total-chevron { margin-left: 1px; font-size: 8px; }
.qpt-perf-more {
  align-self: center;
  padding: 2px 6px;
  border: 1px dashed currentColor;
  border-radius: var(--radius-sm);
  color: var(--color-green);
  font-size: var(--font-size-10);
  font-weight: var(--text-bold-weight);
  cursor: pointer;
  white-space: nowrap;
}

/* Badges performances mobile : une ligne quand la musique est courte, plusieurs
   quand elle est dépliée (d'où flex-wrap, et plus d'overflow masqué qui
   coupait les jetons du bout). */
.qpt-card-perfs { display: flex; gap: 3px; flex-wrap: wrap; }
.qpt-perf-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 5px; border-radius: 4px;
  font-size: var(--font-size-10); font-weight: var(--text-bold-weight); min-width: 22px; line-height: var(--line-height-140);
}
.qpt-perf-win     { background: var(--palette-green-700m); color: var(--color-text-inverse); }
.qpt-perf-podium  { background: var(--palette-blue-500e); color: var(--color-text-inverse); }
.qpt-perf-da      { background: var(--palette-orange-600e); color: var(--color-text-inverse); }
.qpt-perf-zero    { background: var(--palette-gray-500c); color: var(--color-text-inverse); }
.qpt-perf-year    { background: transparent; color: var(--palette-red-400b); border: 1.5px solid var(--palette-red-400b); }
.qpt-perf-other   { background: var(--palette-blue-300b); color: var(--color-text-inverse); }

/* Carte d'un non-partant : la carte entière, pas seulement son en-tête —
   depuis la refonte, en-tête et corps ne sont plus séparés par un trait. */
.qpt-card-np,
.qpt-card-np:nth-child(even) { background: var(--color-danger); }
.qpt-card-np .qpt-card-num { background: var(--color-surface); color: var(--color-danger); }
.qpt-card-np .qpt-card-horse-name,
.qpt-card-np .qpt-card-horse-name a,
.qpt-card-np .qpt-card-meta,
.qpt-card-np .qpt-card-pilot,
.qpt-card-np .qpt-card-trainer,
.qpt-card-np .qpt-card-gains,
.qpt-card-np .qpt-card-gains b,
.qpt-card-np .qpt-card-odds { color: var(--color-text-inverse); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .qpt-desktop-wrap { display: none; }
  .qpt-mobile-cards { display: block; margin-left: -16px; margin-right: -16px; }
}
@media (max-width: 480px) {
  .qpt-card-odds { min-width: 56px; }
  .qpt-card-odds-value { font-size: var(--font-size-sm); }
}

.pseudo-link {
  color: inherit;
  text-decoration: none;
}
.pseudo-link:hover,
.pseudo-link:focus-visible {
  color: inherit;
  text-decoration: underline;
}
}

/* =============================================================================
   rsb — bloc « Résultats de nos pronostics » (colonne de droite, 300 px).
   Rendu par partials/blocks/bilan-sidebar.php (accueil + right-col).
   ⚠️ Tous les sélecteurs en « .rsb .rsb-* » (2 classes) : les règles génériques
   .card h2 / .bl .card ont montré qu'une classe seule se fait écraser.
   Le vert profond du bandeau = celui des têtes du thème hippique (--thh-deep),
   avec repli en dur pour le thème standard.
   ============================================================================= */
@layer legacy {

.rsb {
  padding: 0;
  overflow: hidden; /* le bandeau épouse l'arrondi de la carte */
}

/* La colonne partagée du site a une gouttière de 0 (--rail-gap : « ses cartes
   se touchent », chaque bloc gère ses marges) : sans ceci, le bloc COLLE à la
   pub 300×600 au-dessus et à la zone épinglée en dessous (vu en prod le
   26/08). L'accueil et les colonnes en grille (gap 14 px) ne passent pas par
   cette règle. */
.right-col-sidebar .rsb {
  margin: 14px 0;
}

.card.rsb .rsb-head {
  margin: 0;
  /* 3 classes : « .layout-course .card h2 » (pages courses, titre bleu 24 px)
     battait « .rsb .rsb-head » — vu le 27/08 sur /course/{date}/. */
  /* Option C choisie par Xavier (26/08/2026) : le vert du site #166b3c —
     celui des titres de page — à la place du vert très foncé des têtes
     du thème, jugé trop sombre ici. Puis le vert de l'en-tête du
     turf-fr.com (Xavier 2026-10-29, sur visuel) ; retour arrière :
     #166b3c. */
  background: #1b764f;
  color: var(--color-text-inverse);
  padding: 10px 12px;
  /* Casse normale (Xavier 28/09/2026 : « il faut normal partout »). En
     capitales, 13 px suffisaient ; en casse normale il faut la taille d'un
     titre de carte, sinon la ligne passe pour du texte courant.
     ⚠️ Ce bloc est PARTAGÉ : les quatre colonnes du site le posent, la
     modification vaut donc pour toutes les pages, pas seulement l'accueil. */
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.rsb .rsb-side {
  padding: 10px 12px;
}

.rsb .rsb-side + .rsb-side {
  border-top: 1px solid var(--color-border);
}

.rsb .rsb-chip {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  color: var(--color-text-inverse);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rsb .rsb-side--top .rsb-chip { background: var(--color-success); }
.rsb .rsb-side--turf .rsb-chip { background: var(--color-danger); }

.rsb .rsb-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

/* TOUS les montants et le segment Tiercé/Quarté/Quinté portent la couleur
   produit ; le GRAS (b) est réservé au segment Tiercé/Quarté/Quinté et aux
   trios au-dessus de 500 € (règle Xavier 26/08/2026). */
.rsb .rsb-side--top .rsb-text b,
.rsb .rsb-side--top .rsb-text .rsb-eur { color: var(--color-success); }
.rsb .rsb-side--turf .rsb-text b,
.rsb .rsb-side--turf .rsb-text .rsb-eur { color: var(--color-danger); }
.rsb .rsb-text b { font-weight: 800; }

.rsb .rsb-none {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-style: italic;
}

.rsb .rsb-none--alone {
  padding: 12px;
}

.rsb .rsb-foot {
  display: block;
  padding: 9px 10px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-link);
  text-decoration: none;
}

.rsb .rsb-foot:hover {
  text-decoration: underline;
}

/* LA LIGNE DU BAS EN DEUX (Xavier 17/11/2026, version B choisie sur visuel) :
   « Voir tous nos résultats › » à gauche, tel quel (mêmes règles .rsb-foot
   ci-dessus, que le banc bin/test_parier_en_ligne.php compare au pied de
   « Parier en ligne » : ne pas les toucher), et « S'abonner › » à droite, case
   pleine du rouge de l'étiquette TURF SELECTION, texte blanc. Les deux moitiés
   partent de la même largeur (flex 1 1 0) ; le texte de gauche, plus long
   (≈ 136 px + 20 px de marge), garde sa largeur : 156 / 144 px dans la colonne
   de 300 px. Un abonné VIP n'a pas cette rangée (bilan-sidebar.php). */
.rsb .rsb-foot-duo {
  display: flex;
}

.rsb .rsb-foot-duo > a {
  flex: 1 1 0;
  white-space: nowrap;
}

.rsb .rsb-abo {
  display: block;
  padding: 9px 10px;
  border-top: 1px solid var(--color-border);
  background: var(--color-danger);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-inverse);
  text-decoration: none;
}

.rsb .rsb-abo:hover {
  filter: brightness(0.9);
}

}

/* Le contour du clavier (touche Tab) des liens du pied, posé DEDANS : la carte
   coupe ce qui dépasse (overflow: hidden) et le contour global du site
   (components.css, :where(a, …):focus-visible, 2 px à l'extérieur) était rogné
   à droite et en bas (audit Codex du 17/11/2026). Même réglage que le pied de
   « Parier en ligne » (.pel .pel-foot:focus-visible) ; blanc sur la case rouge.
   En couche components, comme le contour global : une règle legacy perdrait
   contre lui, quelle que soit sa précision. */
@layer components {

.rsb .rsb-foot:focus-visible,
.rsb .rsb-abo:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: -3px;
}

.rsb .rsb-abo:focus-visible {
  outline-color: var(--color-text-inverse);
}

}
