/* ==========================================================================
   Sport Pulse : fiche course Quinté+ (quinte.html). Chargé APRÈS accueil.css
   (jetons, titres à liseré rouge, onglets pilules, tableaux des classements,
   publicité) et commun.css (fil d'Ariane, colonne droite, cartes en grille,
   « Meilleurs sites de paris »).
   Une fiche sobre : texte simple, filets fins, tableaux nets. Le vert n'est
   que la couleur de rubrique « Turf » (nos chevaux, bouton PMU).
   ========================================================================== */

/* ---------- Barre de la course : collée en haut de l'écran pendant le défilement ---------- */
/* Bandeau vert de la rubrique Turf, texte blanc : la course se lit d'un coup d'œil */
.barre-course {
  position: sticky; top: 0; z-index: 15;
  background: var(--vert); color: #fff; box-shadow: 0 1px 0 var(--vert-3);
}
.barre-course__int { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.barre-course__course { display: flex; align-items: baseline; gap: 2px 14px; min-width: 0; flex-wrap: wrap; }
.barre-course__code {
  font-family: var(--police-etroite); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: .02em;
  padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .28);
}
.barre-course__lieu { font-weight: 700; font-size: 17px; line-height: 1.2; color: #fff; }
.barre-course__quinte {
  font-family: var(--police-etroite); font-weight: 700; font-size: 14px; line-height: 1.2;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  padding: 2px 7px 1px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 3px;
}
.barre-course__statut { font-size: 14.5px; line-height: 1.2; color: rgba(255, 255, 255, .86); white-space: nowrap; font-variant-numeric: tabular-nums; }
.barre-course__statut--live { color: #fff; font-weight: 700; }
.barre-course__compte:empty { display: none; }
.barre-course__compte::before { content: "·"; margin: 0 6px; color: rgba(255, 255, 255, .6); }
.barre-course__actions { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.barre-course__select {
  width: 300px; max-width: 100%; min-width: 0; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--bordure-2); border-radius: 4px; background-color: var(--blanc);
  padding: 8px 32px 8px 10px; font-size: 14px; font-weight: 600; color: var(--texte); cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2314171C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 16px;
}
.barre-course__select { border-color: transparent; }
.barre-course__pmu {
  flex: none; display: inline-block; height: 38px; line-height: 38px; padding: 0 16px;
  background: #fff; color: var(--vert); border-radius: 4px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap;
}
.barre-course__pmu:hover { background: #E8F1EC; }

/* ---------- Haut de page : fil d'Ariane, Quinté+ précédent / suivant ---------- */
.fiche { padding-top: 18px; }
.fiche__haut { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; min-height: 20px; }
.fiche__ariane { min-width: 0; }
.fiche-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.fiche-nav__lien {
  display: inline-flex; align-items: center; gap: 4px; color: var(--bleu);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.fiche-nav__lien .ico { width: 14px; height: 14px; }
.fiche-nav__lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.fiche-nav__court { display: none; }
.fiche__grille { margin-top: 16px; }

/* ---------- En-tête de la course ---------- */
.fiche-tete__sq-titre { height: 36px; margin-top: 8px; }
.fiche-tete__titre {
  font-family: var(--police-serif); font-weight: 700; font-size: 36px; line-height: 1.14;
  letter-spacing: -.01em; color: var(--texte); text-wrap: balance;
}
.fiche-tete__synthese { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--texte-2); }
.fiche-tete__chapo { margin-top: 14px; font-size: 19px; line-height: 1.5; font-weight: 500; }
.fiche-tete__arrivee { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.fiche-tete__libelle {
  font-family: var(--police-etroite); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
}
.fiche-tete__numeros {
  font-family: var(--police-etroite); font-weight: 700; font-size: 30px; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.fiche-tete__note { font-size: 14px; color: var(--texte-3); }
.fiche-tete__conditions {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bordure);
  font-size: 15.5px; font-weight: 600; line-height: 1.6; color: var(--texte);
}
.fiche-tete__condition { white-space: nowrap; }
.fiche-tete__point { margin: 0 4px 0 8px; color: var(--texte-3); font-weight: 400; }
.fiche-tete__conditions-texte { margin-top: 6px; }
.fiche-tete__texte {
  font-size: 14.5px; line-height: 1.55; color: var(--texte-2); max-width: 82ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.fiche-tete__texte--ouvert { display: block; -webkit-line-clamp: unset; overflow: visible; }
.fiche-tete__plus {
  margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--bleu); font-weight: 600; font-size: 14px;
}
.fiche-tete__plus:hover { text-decoration: underline; text-underline-offset: 3px; }
.fiche-tete__terrain { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--texte-2); }
.fiche-tete__terrain .fiche-tete__condition { white-space: normal; }
.fiche-tete .etat { padding: 18px 0; }

/* ---------- Deux offres de sites de paris hippiques ---------- */
.offres { margin-top: 22px; }
.offres__etiquette {
  margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3);
}
.offres__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offre {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
}
.offre__logo { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--fond); }
.offre__logo--texte { display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--texte-2); }
.offre__texte { min-width: 0; }
.offre__nom { font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.offre__offre { margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--texte-2); }
.offre__bouton {
  display: inline-flex; align-items: center; padding: 6px 12px; white-space: nowrap;
  border: 1.5px solid var(--texte); border-radius: 3px; color: var(--texte);
  font-weight: 700; font-size: 13.5px; text-decoration: none;
}
.offre__bouton:hover { background: var(--texte); color: #fff; }

/* ---------- Onglets ---------- */
.fiche-corps { margin-top: 28px; }
.fiche-onglets { flex-wrap: wrap; gap: 6px; }
.fiche-onglets .onglet { font-size: 14.5px; font-weight: 600; padding: 8px 14px; }
.fiche-onglets .onglet:hover { color: var(--texte); background: var(--bordure); }
.fiche-onglets .onglet[aria-selected="true"], .fiche-onglets .onglet[aria-selected="true"]:hover { background: #1B2F5B; color: #fff; }
.panneau { padding-top: 22px; }
.panneau:focus-visible { outline-offset: 6px; }
.fiche-message { padding: 4px 0 8px; font-size: 16px; line-height: 1.5; color: var(--texte-2); }
.fiche-note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--texte-3); }

/* Titres des blocs d'un onglet (titre-barre, un cran plus petit) */
.fiche-titre { font-size: 20px; }
.prono__tete { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.prono__date { font-size: 13.5px; color: var(--texte-3); }

/* ---------- Onglet Pronostic : notre sélection (une seule fois), puis l'analyse ---------- */
.selection {
  margin-top: 14px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px; background: var(--bordure); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden;
}
.selection__cheval { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 10px 13px; background: var(--blanc); }
.selection__cheval--base { box-shadow: inset 0 3px 0 var(--vert); }
.selection__num {
  font-family: var(--police-etroite); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums;
}
.selection__nom { font-size: 13.5px; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.selection__base {
  font-family: var(--police-etroite); font-weight: 700; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--vert);
}
.prono__couverture { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--texte-2); }
.prono__couverture strong { color: var(--texte); font-weight: 700; }
.prono__commentaire { margin-top: 10px; font-size: 16.5px; line-height: 1.6; max-width: 72ch; }
.prono__commentaire p { margin: 0 0 .8em; }
.prono__commentaire > :last-child { margin-bottom: 0; }

.analyse { margin-top: 34px; }
.analyse__texte { margin-top: 14px; font-size: 17px; line-height: 1.65; max-width: 72ch; overflow-wrap: break-word; }
.analyse__texte > :first-child { margin-top: 0; }
.analyse__texte p { margin: 0 0 1em; }
.analyse__texte h2, .analyse__texte h3 {
  margin: 1.5em 0 .5em; font-family: var(--police-etroite); font-weight: 700; font-size: 22px; line-height: 1.15;
}
.analyse__texte h4 { margin: 1.3em 0 .4em; font-weight: 700; font-size: 17px; }
.analyse__texte ul, .analyse__texte ol { margin: 0 0 1em; padding-left: 1.3em; }
.analyse__texte ul { list-style: disc; }
.analyse__texte ol { list-style: decimal; }
.analyse__texte li { margin: .45em 0; padding-left: .15em; }
.analyse__texte li::marker { color: var(--texte-3); }
.analyse__texte strong { font-weight: 700; }
.analyse__texte a { color: var(--bleu); text-underline-offset: 3px; text-decoration-color: rgba(59, 90, 154, .45); }
.analyse__texte a:hover { text-decoration-color: currentColor; }
.analyse__texte img { height: auto; border-radius: 4px; }
.analyse__texte figure { margin: 1.4em 0; }
.analyse__texte table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1em; }
.analyse__texte th, .analyse__texte td { padding: 6px 8px; border-bottom: 1px solid var(--bordure); text-align: left; }
.analyse__texte > :last-child { margin-bottom: 0; }
.analyse__texte .analyse__prudence { font-size: 14px; color: var(--texte-3); } /* « Aucun pronostic n'est certain. » */

/* ---------- Tableaux de la fiche (famille des tableaux de classement) ---------- */
.tableau-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau--fiche { font-size: 14px; }
.tableau--fiche th, .tableau--fiche td { padding: 8px 8px; vertical-align: middle; }
.tableau--fiche thead th { white-space: nowrap; text-align: left; border-bottom: 1px solid var(--bordure-2); }
.tableau--fiche thead th.num, .tableau--fiche td.num { text-align: right; }
.tableau--fiche th:first-child, .tableau--fiche td:first-child { width: auto; text-align: left; color: var(--texte); }
.tableau--fiche td { text-align: left; color: var(--texte); white-space: normal; }
.tableau--fiche td.num, .tableau--fiche td.musique, .tableau--fiche td.rang { white-space: nowrap; }
.tableau--fiche abbr[title] { text-decoration: none; cursor: help; }
.tableau--fiche tbody th { font-weight: 400; text-align: left; padding: 8px 8px; }
.tableau--fiche tbody tr:last-child th, .tableau--fiche tbody tr:last-child td { border-bottom: 0; }
.tableau--fiche .cote { font-weight: 700; }
.tableau--fiche td.rang { width: 40px; font-weight: 700; color: var(--texte-2); white-space: nowrap; }
.tableau--fiche .musique { font-size: 13.5px; letter-spacing: .01em; color: var(--texte-2); }

/* Cellule « cheval » : numéro, casaque, nom, mentions */
.partant { display: flex; align-items: center; gap: 8px; min-width: 0; }
.partant__num {
  flex: none; width: 22px; text-align: right;
  font-family: var(--police-etroite); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums;
}
.partant__casaque { flex: none; width: 22px; height: 26px; object-fit: contain; }
.partant__id { display: flex; flex-direction: column; min-width: 0; }
.partant__nom { font-weight: 600; font-size: 14.5px; line-height: 1.25; color: var(--texte); white-space: nowrap; }
.partant__infos { margin-top: 1px; font-size: 12px; line-height: 1.3; color: var(--texte-3); white-space: nowrap; }
.partant__infos abbr[title] { text-decoration: none; cursor: help; }
.partant__marque {
  font-family: var(--police-etroite); font-weight: 700; font-size: 12px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--vert);
}
/* Nos chevaux : un filet vert à gauche ; non-partants barrés */
.ligne--selection > th { box-shadow: inset 3px 0 0 var(--vert); }
.ligne--np .partant__nom { text-decoration: line-through; color: var(--texte-3); font-weight: 500; }
.ligne--np td, .ligne--np .partant__num { color: var(--texte-3); }
.ligne--np .partant__casaque { opacity: .45; }
/* Arrivée : les cinq premiers en gras, les non-classés en gris */
.ligne--arrivee td.rang { color: var(--texte); }
.ligne--arrivee .partant__nom { font-weight: 700; }
.ligne--non-classe td { color: var(--texte-3); }

/* Statistiques : en-têtes triables */
.tri {
  display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; white-space: nowrap;
}
.tri:hover { color: var(--texte); text-decoration: underline; text-underline-offset: 3px; }
th[aria-sort] .tri { color: var(--texte); font-weight: 700; }
.tri__sens { font-size: 9px; }
.tri__sens:empty { display: none; }

/* Cotes : évolution par rapport à la cote de référence */
.tendance { font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--texte-3); }
.tendance--baisse { color: var(--r-tennis); }
.tendance--hausse { color: var(--rouge); }

/* ---------- Onglet Arrivée et rapports ---------- */
.bilan { margin-bottom: 22px; font-size: 16.5px; line-height: 1.5; max-width: 72ch; }
.bilan strong { font-weight: 700; }
.resultat .tableau-defile { margin-top: 12px; }
.rapports { margin-top: 34px; }
.rapports__grille { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
.rapport { min-width: 0; }
.rapport__titre {
  padding-bottom: 6px; border-bottom: 1px solid var(--bordure-2);
  font-family: var(--police-etroite); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase;
}
.tableau--rapport { font-size: 14px; table-layout: fixed; } /* colonnes alignées d'un pari à l'autre */
.tableau--rapport th, .tableau--rapport td { padding: 7px 4px; vertical-align: top; }
.tableau--rapport th:first-child, .tableau--rapport td:first-child { width: auto; text-align: left; color: inherit; }
.tableau--rapport tbody th, .tableau--rapport tbody th:first-child {
  width: 104px; padding-right: 12px; white-space: nowrap; text-align: left; font-weight: 500; color: var(--texte-2);
}
.tableau--rapport td.rapport__gain { width: 108px; }
.rapport__une { white-space: nowrap; }
.tableau--rapport .rapport__combi { text-align: left; white-space: normal; font-variant-numeric: tabular-nums; color: var(--texte); }
.tableau--rapport .rapport__gain { font-weight: 700; color: var(--texte); white-space: nowrap; }

/* ---------- Onglet Casaques ---------- */
.casaques { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.casaque {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px; text-align: center;
  border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc);
}
.casaque img { width: 64px; height: 76px; object-fit: contain; }
.casaque__nom { font-weight: 600; font-size: 14px; line-height: 1.25; }
.casaque__num { font-family: var(--police-etroite); font-weight: 700; font-size: 16px; }
.casaque__jockey { font-size: 12.5px; line-height: 1.3; color: var(--texte-3); }
.casaque--np { opacity: .5; }
/* La casaque mène à la fiche officielle du cheval sur Equidia */
.casaque__lien { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; color: inherit; text-decoration: none; }
.casaque:has(.casaque__lien):hover { border-color: var(--bordure-2); box-shadow: var(--ombre); }
.casaque__lien:hover .casaque__nom { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sous les onglets : derniers Quinté+, actualité hippique ---------- */
.fiche-bloc { margin-top: 44px; }
.fiche-bloc__tete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.tableau--derniers tbody th a { color: var(--texte); text-decoration: none; }
.tableau--derniers tbody th a:hover { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }
.tableau--derniers tbody th strong { font-weight: 700; }
.tableau--derniers td.derniers__date { white-space: nowrap; color: var(--texte-2); }
.tableau--derniers td.derniers__arrivee {
  white-space: nowrap; font-family: var(--police-etroite); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums;
}
.derniers__libelle { display: none; } /* l'en-tête de colonne suffit ; affiché sur téléphone (lignes repliées) */
.fiche-bloc .grille-articles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }

/* ---------- Colonne droite : publicité PMU puis sites de paris ---------- */
.fiche__cote { gap: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .selection { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .barre-course__select { width: 240px; }
}

@media (max-width: 1024px) {
  /* Une colonne : la colonne droite passe sous la fiche, sites de paris d'abord, publicité à côté */
  .fiche__cote > .operateurs { order: -1; }
  .selection { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .selection { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fiche-bloc .grille-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .barre-course__int { min-height: 52px; gap: 10px; }
  .barre-course__course { flex-wrap: nowrap; gap: 8px; overflow: hidden; }
  .barre-course__code { font-size: 17px; }
  .barre-course__lieu { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .barre-course__quinte, .barre-course__compte { display: none; }
  .barre-course__statut { font-size: 13px; }
  .barre-course__actions { gap: 8px; }
  .barre-course__select { width: 92px; padding: 7px 26px 7px 8px; font-size: 13px; background-position: right 6px center; }
  .barre-course__pmu { height: 34px; line-height: 34px; padding: 0 12px; font-size: 14px; }
  .barre-course__pmu-suite { display: none; }

  .fiche { padding-top: 14px; }
  .fiche__grille { margin-top: 12px; }
  .fiche-tete__titre { font-size: 27px; line-height: 1.16; }
  .fiche-tete__synthese { font-size: 15px; }
  .fiche-tete__numeros { font-size: 27px; }
  .fiche-tete__conditions { font-size: 15px; }

  .offres__liste { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .offre { padding: 10px 12px; gap: 10px; grid-template-columns: 40px minmax(0, 1fr) auto; }
  .offre__logo { width: 40px; height: 40px; }

  /* Onglets : une ligne qui défile au doigt */
  .fiche-corps { margin-top: 24px; }
  .fiche-onglets {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--goutte)); padding-inline: var(--goutte);
  }
  .fiche-onglets::-webkit-scrollbar { display: none; }
  .fiche-onglets .onglet { flex: none; font-size: 14px; padding: 8px 12px; }
  .panneau { padding-top: 18px; }

  .selection__num { font-size: 26px; }
  .selection__cheval { padding: 10px 8px 11px; }
  .selection__nom { font-size: 13px; }
  .fiche-nav { width: 100%; justify-content: space-between; }
  .fiche-nav__long { display: none; }
  .fiche-nav__court { display: inline; }
  .analyse__texte { font-size: 16.5px; }

  /* Tableaux : défilement horizontal, la colonne du cheval reste à l'écran */
  .tableau--fiche { font-size: 13.5px; }
  .tableau--fiche th, .tableau--fiche td, .tableau--fiche tbody th { padding: 8px 5px; }
  .tableau--fiche td { white-space: nowrap; } /* le tableau défile ; la colonne du cheval reste à l'écran */
  .tableau--partants tbody th, .tableau--partants thead th:first-child,
  .tableau--stats tbody th, .tableau--stats thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--blanc); box-shadow: 1px 0 0 var(--bordure);
  }
  .tableau--partants .ligne--selection > th { box-shadow: inset 3px 0 0 var(--vert), 1px 0 0 var(--bordure); }
  .tableau--resultat td.rang, .tableau--resultat thead th:first-child,
  .tableau--cotes td.rang, .tableau--cotes thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--blanc); width: 40px; min-width: 40px;
  }
  .tableau--resultat tbody th, .tableau--resultat thead th:nth-child(2),
  .tableau--cotes tbody th, .tableau--cotes thead th:nth-child(2) {
    position: sticky; left: 40px; z-index: 1; background: var(--blanc);
  }
  .partant__nom { white-space: normal; max-width: 140px; }
  .partant__infos { white-space: normal; max-width: 140px; }

  .rapports__grille { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tableau--rapport tbody th, .tableau--rapport tbody th:first-child { width: 92px; padding-right: 8px; }
  .tableau--rapport td.rapport__gain { width: 88px; }
  .fiche-bloc { margin-top: 36px; }

  /* Derniers Quinté+ : une ligne repliée en trois (date ; hippodrome et prix ; arrivée et nos chevaux) */
  .tableau--derniers thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .tableau--derniers thead th { overflow: hidden; }
  .tableau--derniers, .tableau--derniers tbody { display: block; }
  .tableau--derniers tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px;
    grid-template-areas: "date date" "course course" "arrivee nos";
    padding: 10px 0; border-bottom: 1px solid var(--bordure);
  }
  .tableau--derniers tr:last-child { border-bottom: 0; }
  .tableau--derniers tbody th, .tableau--derniers td, .tableau--derniers tbody th:first-child,
  .tableau--derniers td:first-child { padding: 0; border: 0; width: auto; }
  .tableau--derniers td.derniers__date { grid-area: date; font-size: 13px; }
  .tableau--derniers th.derniers__course { grid-area: course; white-space: normal; font-size: 14.5px; line-height: 1.35; }
  .tableau--derniers td.derniers__arrivee { grid-area: arrivee; margin-top: 2px; }
  .tableau--derniers td.derniers__nos { grid-area: nos; font-size: 13px; color: var(--texte-2); }
  .derniers__libelle { display: inline; }
  .derniers__nos--vide { visibility: hidden; }
  .casaques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fiche-bloc .grille-articles { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   WordPress (thème sportpulse) : contenu des articles dans l'analyse rendue par
   le serveur (template-parts/quinte.php) et dans un article Quinté+ sans course
   rattachée (.analyse__texte--article) : blocs de l'éditeur, tableaux défilables.
   ========================================================================== */
.analyse__texte .tableau-defile { margin: 0 0 1em; }
.analyse__texte .tableau-defile table { margin: 0; }
.analyse__texte figure.wp-block-table { margin: 1.4em 0; }
.analyse__texte figure img, .analyse__texte .aligncenter { margin-inline: auto; }
.analyse__texte .has-text-align-center { text-align: center; }
.analyse__texte .has-text-align-right { text-align: right; }
.analyse__texte iframe { max-width: 100%; border: 0; }
.analyse__texte blockquote { margin: 1.2em 0; padding-left: 16px; border-left: 3px solid var(--bordure-2); color: var(--texte-2); }
.analyse__texte .sp-affiliation { margin: 1.6em 0; text-align: center; }
.analyse__texte .sp-affiliation a { display: inline-block; max-width: 100%; line-height: 0; }
