/* Omarow - une interface d'instrument, pas de pronostiqueur.
   Les couleurs vives sont reservees aux resultats mesures : vert au-dessus
   de 100 EUR rendus, rouge en dessous. Partout ailleurs, du gris de sonde. */

:root {
  --fond:      #F5F6F7;
  --surface:   #FFFFFF;
  --surface-2: #EDF0F2;
  --encre:     #161A1D;
  --sourd:     #5B6670;
  --faible:    #8B959D;
  --regle:     #D7DCE0;
  --sonde:     #1F5673;
  --sonde-pale:#E3EDF2;
  --gain:      #2E6F4E;
  --perte:     #9C3B2C;
  --alerte:    #8A6514;
  --ombre:     0 1px 2px rgba(22,26,29,.06), 0 8px 24px -12px rgba(22,26,29,.18);
  --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond:      #101417;
    --surface:   #171C20;
    --surface-2: #1E242A;
    --encre:     #E7ECEF;
    --sourd:     #97A3AC;
    --faible:    #6B767E;
    --regle:     #2A3238;
    --sonde:     #5FA8C9;
    --sonde-pale:#18323F;
    --gain:      #6DBF8F;
    --perte:     #E08A77;
    --alerte:    #D5A94A;
    --ombre:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --fond:      #101417;
  --surface:   #171C20;
  --surface-2: #1E242A;
  --encre:     #E7ECEF;
  --sourd:     #97A3AC;
  --faible:    #6B767E;
  --regle:     #2A3238;
  --sonde:     #5FA8C9;
  --sonde-pale:#18323F;
  --gain:      #6DBF8F;
  --perte:     #E08A77;
  --alerte:    #D5A94A;
  --ombre:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 15px/1.55 "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .cond {
  font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  font-weight: 600; text-wrap: balance; margin: 0;
}
.num, td.num, th.num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
a { color: var(--sonde); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--sonde); outline-offset: 2px; }

/* ---------------------------------------------------------- ossature */
header.haut {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: 11px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--regle);
}
.marque { font-size: 19px; letter-spacing: -.01em; }
.marque b { color: var(--sonde); font-weight: 600; }
.marque { font-weight: 600; }
.etiquette {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faible);
}
.haut .pousse { margin-left: auto; display: flex; gap: 10px; align-items: center; }
/* l'adresse du client se lit, elle ne se crie pas : pas de capitales ici */
.identite { font-size: 12.5px; color: var(--sourd); }
.identite b { font-family: "IBM Plex Sans Condensed", sans-serif; }

/* Deux colonnes seulement : la liste des courses, et la carte. Les
   mesures passent en pleine largeur dessous. A trois colonnes, la
   troisieme tombait sous la ligne de flottaison des 1 100 px - et une
   fenetre de portable fait souvent moins. */
.grille {
  display: grid; gap: 18px; padding: 18px 22px 24px; align-items: start;
  grid-template-columns: minmax(300px, 352px) minmax(0, 1fr);
  max-width: 1480px; margin: 0 auto;
}
.colonne-gauche { display: flex; flex-direction: column; }
@media (max-width: 880px) {
  .grille { grid-template-columns: minmax(0,1fr); padding: 14px; }
}

.panneau {
  background: var(--surface);
  border: 1px solid var(--regle);
  border-radius: var(--r);
  box-shadow: var(--ombre);
}
.panneau > .titre {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-bottom: 1px solid var(--regle);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--sourd);
}
.panneau > .corps { padding: 13px; }

/* --------------------------------------------------- bandeau des journees */
.bande-jours {
  position: sticky; top: 47px; z-index: 15;
  background: var(--surface); border-bottom: 1px solid var(--regle);
}
.rouleau {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin;
  padding: 8px 22px; max-width: 1480px; margin: 0 auto;
}
@media (max-width: 760px) { .rouleau { padding: 8px 14px; } }
.rouleau button {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 5px 11px; cursor: pointer;
  background: none; color: var(--sourd); border: 1px solid transparent;
  border-radius: var(--r); line-height: 1.2;
}
.rouleau button:hover { background: var(--surface-2); color: var(--encre); }
.rouleau button[aria-current="true"] {
  background: var(--sonde); border-color: var(--sonde); color: #fff;
}
.rouleau .d {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; white-space: nowrap;
}
.rouleau .n { font-family: "IBM Plex Mono", monospace; font-size: 10px; opacity: .72; }
.vide-ligne { padding: 6px; color: var(--faible); font-size: 13px; }

/* ---------------------------------------------------------- liste courses */
.courses { display: flex; flex-direction: column; }
.courses { max-height: 62vh; overflow-y: auto; }
.ligne-course {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 46px 44px minmax(0,1fr) auto;
  padding: 10px 13px; border-bottom: 1px solid var(--regle);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; color: inherit; cursor: pointer;
}
.ligne-course:last-child { border-bottom: 0; }
.ligne-course:hover { background: var(--surface-2); }
.ligne-course[aria-current="true"] { background: var(--sonde-pale); }
.heure { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--sourd); }
.rc {
  font-family: "IBM Plex Sans Condensed", sans-serif; font-weight: 600;
  font-size: 13px; color: var(--sonde);
}
.ou { font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 15px; }
.ou small { display: block; font-family: "IBM Plex Sans", sans-serif;
            font-size: 11.5px; color: var(--faible); font-weight: 400; }

.pastille {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 100px; border: 1px solid var(--regle);
  color: var(--sourd); white-space: nowrap;
}
.pastille.ok     { color: var(--gain);   border-color: color-mix(in srgb, var(--gain) 45%, transparent); }
.pastille.att    { color: var(--alerte); border-color: color-mix(in srgb, var(--alerte) 45%, transparent); }
.pastille.pleine { background: var(--sonde); border-color: var(--sonde); color: var(--surface); }

/* ---------------------------------------------------------- carte de course */
.carte-entete {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 15px 16px 13px; border-bottom: 1px solid var(--regle);
}
/* Le retour a la liste. Il passe en premier dans l'entete et occupe
   toute la largeur : sur telephone la carte prend tout l'ecran, et sans
   lui on reste prisonnier de la course ouverte. */
.retour-courses {
  flex-basis: 100%; order: -1;
  align-self: flex-start;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--sourd); padding: 0 0 4px;
}
.retour-courses:hover { color: var(--encre); text-decoration: underline; }
.retour-courses:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.carte-entete h2 { font-size: 23px; letter-spacing: -.015em; }
.carte-entete .meta { color: var(--sourd); font-size: 13px; }
.carte-entete .meta span + span::before,
.vue .meta span + span::before { content: "·"; margin: 0 7px; color: var(--faible); }

table.programme { width: 100%; border-collapse: collapse; font-size: 14px; }
table.programme th {
  position: sticky; top: 0;
  font-family: "IBM Plex Sans Condensed", sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sourd); text-align: right;
  padding: 8px 10px; background: var(--surface-2);
  border-bottom: 1px solid var(--regle); white-space: nowrap;
}
table.programme th.g, table.programme td.g { text-align: left; }
table.programme td {
  padding: 7px 10px; text-align: right;
  border-bottom: 1px solid var(--regle); white-space: nowrap;
}
table.programme tbody tr:last-child td { border-bottom: 0; }
table.programme tbody tr.choix { background: var(--sonde-pale); }
table.programme tbody tr.hors { color: var(--faible); }

/* le rang du moteur : le chiffre le plus fort de la page */
table.programme td.rang {
  font-family: "IBM Plex Mono", monospace; font-weight: 600;
  font-size: 15px; width: 44px; text-align: center; color: var(--faible);
}
tr.choix td.rang { color: var(--sonde); }
td.cheval { font-weight: 500; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
td.arrivee b { color: var(--gain); }
.caviar {
  display: inline-block; min-width: 42px; height: 13px; border-radius: 2px;
  background: repeating-linear-gradient(135deg, var(--regle) 0 4px, transparent 4px 8px);
  vertical-align: middle;
}
.deborde { overflow-x: auto; }

/* ---------------------------------------------------------- mesures */
.mesure { padding: 10px 0; border-bottom: 1px solid var(--regle); }
.mesure:last-child { border-bottom: 0; }
.mesure .q { font-size: 12.5px; color: var(--sourd); }
.mesure .v {
  font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums;
  font-size: 21px; font-weight: 500; line-height: 1.25;
}
.mesure .v.gain  { color: var(--gain); }
.mesure .v.perte { color: var(--perte); }
.mesure .n { font-size: 11px; color: var(--faible); font-family: "IBM Plex Mono", monospace; }

/* ---------------------------------------------------------- boutons, formulaire */
.bt {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--regle); background: var(--surface); color: var(--encre);
  font-family: "IBM Plex Sans Condensed", sans-serif; font-weight: 600; font-size: 14px;
}
.bt:hover { background: var(--surface-2); }
.bt.plein { background: var(--sonde); border-color: var(--sonde); color: #fff; }
.bt.plein:hover { filter: brightness(1.08); }
.bt:disabled { opacity: .5; cursor: not-allowed; }

label.champ { display: block; margin-bottom: 11px; }
label.champ span {
  display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sourd); margin-bottom: 4px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
}
input[type=email], input[type=password] {
  width: 100%; padding: 8px 10px; font: inherit;
  background: var(--fond); color: var(--encre);
  border: 1px solid var(--regle); border-radius: var(--r);
}

/* ---------------------------------------------------------- mur de vente */
.mur { padding: 26px 20px; text-align: center; }
.mur h3 { font-size: 19px; margin-bottom: 7px; }
.mur p { color: var(--sourd); max-width: 44ch; margin: 0 auto 15px; font-size: 14px; }
.prix { font-family: "IBM Plex Mono", monospace; font-size: 29px; font-weight: 500; }
.prix small { font-size: 13px; color: var(--sourd); font-weight: 400; }

.avis {
  padding: 9px 12px; border-radius: var(--r); font-size: 13px;
  border: 1px solid var(--regle); background: var(--surface-2); color: var(--sourd);
}
.avis.rouge { color: var(--perte); border-color: color-mix(in srgb, var(--perte) 40%, transparent); }
.vide { padding: 34px 16px; text-align: center; color: var(--faible); font-size: 14px; }
.bandeau {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--regle);
  border-left: 3px solid var(--alerte); border-radius: var(--r);
}
.bandeau b { font-family: "IBM Plex Sans Condensed", sans-serif; }
@media (prefers-reduced-motion: no-preference) {
  .ligne-course, .bt, .jours button { transition: background-color .12s ease; }
}

/* ---------------------------------------------------------- code d'acces */
/* Discret, pas dissimule : qui a un code le trouve, les autres ne voient
   qu'un lien sobre et ne se demandent pas ce qu'ils ratent. */
.lien-code {
  display: inline-block; margin-top: 14px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  color: var(--faible); font-size: 12.5px; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--regle);
}
.lien-code:hover { color: var(--sonde); text-decoration-color: var(--sonde); }
.boite-code {
  max-width: 260px; margin: 14px auto 0; padding-top: 14px;
  border-top: 1px solid var(--regle); text-align: left;
}
.boite-code .bt { width: 100%; justify-content: center; }

/* ------------------------------------------------- les mesures, en bas */
.mesures-bas {
  max-width: 1480px; margin: 0 auto; padding: 8px 22px 64px;
  scroll-margin-top: 96px;
}
@media (max-width: 760px) { .mesures-bas { padding: 8px 14px 48px; } }
.titre-section {
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--sourd); padding: 14px 0 10px;
  border-top: 1px solid var(--regle); margin-bottom: 14px;
}
.pave-mesures {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
}
.pave-mesures .mesure {
  padding: 13px 15px; border: 1px solid var(--regle); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--ombre);
}
.pave-mesures .intro {
  grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--sourd);
  max-width: 72ch;
}
.lien-haut {
  font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 13.5px;
  color: var(--sourd); text-decoration: none;
}
.lien-haut:hover { color: var(--sonde); text-decoration: underline; }

/* ------------------------------------------------------------- l'accueil */
/* Le visiteur doit comprendre avant d'avoir fait defiler. Donc pas de
   grand discours : la demonstration elle-meme, en chiffres, au-dessus
   de la ligne de flottaison. */
.accueil {
  background: var(--surface); border-bottom: 1px solid var(--regle);
}
.accueil .dedans { max-width: 1480px; margin: 0 auto; padding: 26px 22px 22px; }
@media (max-width: 760px) { .accueil .dedans { padding: 20px 14px 18px; } }
.accroche {
  font-family: "IBM Plex Sans Condensed", sans-serif; font-weight: 600;
  font-size: clamp(21px, 3.1vw, 31px); line-height: 1.18; margin: 0 0 9px;
  letter-spacing: -.015em; max-width: 24ch; text-wrap: balance;
}
.accroche em { font-style: normal; color: var(--sonde); }
.sous { margin: 0 0 18px; color: var(--sourd); font-size: 14.5px; max-width: 70ch; }

.echelle { display: flex; gap: 3px; align-items: flex-end; flex-wrap: nowrap;
           overflow-x: auto; padding-bottom: 4px; }
.barre { flex: 1 1 0; min-width: 92px; text-align: center; }
.barre .tige {
  border-radius: 2px 2px 0 0; margin-bottom: 6px;
  background: color-mix(in srgb, var(--sonde) 24%, transparent);
  border-top: 3px solid var(--sonde);
}
.barre.haut .tige {
  background: color-mix(in srgb, var(--gain) 26%, transparent);
  border-top-color: var(--gain);
}
.barre.bas .tige {
  background: color-mix(in srgb, var(--perte) 20%, transparent);
  border-top-color: var(--perte);
}
.barre .pct {
  font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 500; line-height: 1.2;
}
.barre.haut .pct { color: var(--gain); }
.barre.bas .pct  { color: var(--perte); }
.barre .lab {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--sourd);
  margin-top: 2px; white-space: nowrap;
}
.barre .eff { font-size: 10px; color: var(--faible);
              font-family: "IBM Plex Mono", monospace; }
.note-bas { margin: 16px 0 0; font-size: 13.5px; color: var(--sourd); max-width: 78ch; }

/* ---------------------------------------------------------- fiche cheval */
table.programme tbody tr.cliquable { cursor: pointer; }
table.programme tbody tr.cliquable:hover { background: var(--surface-2); }
table.programme tbody tr.choix.cliquable:hover {
  background: color-mix(in srgb, var(--sonde) 16%, var(--surface));
}
.fiche { border-top: 1px solid var(--regle); padding: 15px 16px 18px; }
.fiche-haut {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 13px;
}
.fiche-haut h3 { font-size: 19px; letter-spacing: -.01em; }
.fiche-chiffres { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.fiche-chiffres div { text-align: right; }
.fiche-chiffres .v {
  font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 500; line-height: 1.2;
}
.fiche-chiffres .l {
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--faible); font-family: "IBM Plex Sans Condensed", sans-serif;
}
.ferme {
  background: none; border: 1px solid var(--regle); border-radius: var(--r);
  color: var(--sourd); cursor: pointer; padding: 2px 9px; font-size: 16px;
  line-height: 1.3;
}
.ferme:hover { background: var(--surface-2); color: var(--encre); }
td.ec { font-family: "IBM Plex Mono", monospace; font-weight: 500; }
td.ec.plus  { color: var(--gain); }
td.ec.moins { color: var(--perte); }

/* ------------------------------------------------- verdict de la course */
/* Savoir qu'une course est illisible vaut autant que savoir qui gagne :
   c'est la seule information qui fasse economiser de l'argent. */
.verdict {
  display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--regle);
  background: var(--surface-2); font-size: 13.5px;
}
.verdict b {
  font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 14px;
  letter-spacing: .02em; text-transform: uppercase;
}
.verdict span { color: var(--sourd); }
.verdict.ok  { border-left: 3px solid var(--gain); }
.verdict.ok b  { color: var(--gain); }
.verdict.att { border-left: 3px solid var(--alerte); }
.verdict.att b { color: var(--alerte); }
.verdict.evi { border-left: 3px solid var(--perte); }
.verdict.evi b { color: var(--perte); }

/* ------------------------------------------------------ accueil simple */
.premiers-pas {
  max-width: 1480px; margin: 0 auto; padding: 26px 22px 10px;
  display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
}
.intro-simple {
  grid-column: 1 / -1; padding: 26px 30px;
  border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #123d35, #1f6153 58%, #143b45);
  box-shadow: 0 16px 40px -24px #0b322b;
}
.intro-simple .etiquette { color: #bce6d4; }
.intro-simple h1 { max-width: 760px; margin: 6px 0 8px; font-size: clamp(27px, 3vw, 43px); line-height: 1.08; }
.intro-simple p { max-width: 680px; margin: 0; color: #d8ede4; }
.intro-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 18px; }
.intro-actions span { color: #cce9dc; font-size: 12px; }
.bt.clair { background: #f5fff9; color: #174d3d; border-color: #f5fff9; font-weight: 600; }
.bt.clair:hover { background: #d8f5e4; }
.f-recherche, .analyse-accueil {
  min-width: 0; padding: 22px; background: var(--surface);
  border: 1px solid var(--regle); border-radius: 16px; box-shadow: var(--ombre);
}
.f-recherche label { display: block; margin-bottom: 10px; font-size: 17px; font-weight: 600; }
.ligne-recherche { display: flex; gap: 8px; }
.ligne-recherche input {
  width: 100%; min-width: 0; padding: 11px 13px; font: inherit;
  background: var(--fond); color: var(--encre);
  border: 1px solid var(--regle); border-radius: 9px;
}
.ligne-recherche .bt { flex: 0 0 auto; }
.resultats { display: grid; gap: 6px; margin-top: 14px; max-height: 310px; overflow: auto; }
.resultat {
  display: grid; grid-template-columns: 56px 1fr; gap: 2px 10px;
  width: 100%; padding: 10px 11px; text-align: left; cursor: pointer;
  background: var(--fond); color: var(--encre); border: 1px solid var(--regle);
  border-radius: 9px;
}
.resultat:hover, .resultat:focus-visible { border-color: var(--sonde); background: var(--sonde-pale); }
.resultat-type { grid-row: span 2; align-self: center; color: var(--sonde); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.resultat b { font-size: 14px; }
.resultat small { color: var(--sourd); }
.analyse-accueil h2 { font-size: 25px; margin: 4px 0 8px; }
.analyse-accueil p { margin: 0 0 14px; color: var(--sourd); }
.analyse-titre { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.signal { display: inline-block; padding: 5px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.signal.favorable { color: var(--gain); background: color-mix(in srgb, var(--gain) 12%, var(--surface)); }
.signal.incertain { color: var(--alerte); background: color-mix(in srgb, var(--alerte) 12%, var(--surface)); }
.signal.defavorable { color: var(--perte); background: color-mix(in srgb, var(--perte) 12%, var(--surface)); }
.mini-signal { display: block; width: max-content; margin-top: 3px; font-size: 10px;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600; }
.mini-signal.favorable { color: var(--gain); }
.mini-signal.incertain { color: var(--alerte); }
.mini-signal.defavorable { color: var(--perte); }
.analyse-detail { margin-top: 8px; }
.analyse-detail summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--sonde);
  padding: 4px 0; list-style-position: inside;
}
.analyse-detail summary:hover { text-decoration: underline; }
.texte-analyse {
  padding-top: 10px; border-top: 1px solid var(--regle);
  line-height: 1.6; font-size: 14px; max-width: 70ch;
}
.texte-analyse p { margin: 0 0 10px; }
.texte-analyse h3 {
  margin: 16px 0 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sourd);
}
.analyse-verrou { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--regle); }
.analyse-verrou span { color: var(--sourd); font-size: 13px; }
.verdict { border-radius: 8px; font-size: 15px; }
.verdict.ok { background: color-mix(in srgb, var(--gain) 10%, var(--surface)); }
.verdict.evi { background: color-mix(in srgb, var(--perte) 10%, var(--surface)); }
.verdict.att { background: color-mix(in srgb, var(--alerte) 10%, var(--surface)); }
@media (max-width: 860px) {
  .premiers-pas { grid-template-columns: 1fr; padding: 15px 14px 4px; }
  .intro-simple { padding: 22px; }
}
@media (max-width: 550px) {
  header.haut, .bande-jours { position: static; }
  header.haut { padding: 10px 14px; gap: 6px 10px; }
  .haut .etiquette { display: none; }
  .haut .pousse { margin-left: auto; }
  .haut .pousse .identite { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .ligne-recherche { flex-direction: column; }
  .ligne-recherche .bt { justify-content: center; }
  .haut .pousse { flex-wrap: wrap; }
  .intro-simple h1 { font-size: 28px; }
}
.departage {
  display: flex; align-items: baseline; gap: 9px;
  padding: 8px 16px; border-bottom: 1px solid var(--regle); font-size: 13px;
}
.departage b { font-family: "IBM Plex Sans Condensed", sans-serif; color: var(--sonde); }

table.programme.large { font-size: 13px; min-width: 980px; }
table.programme td.fort {
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 14px;
}
/* 18/11/2026 - COLLISION DE SPECIFICITE, a ne pas refaire.
   `table.programme td` pose white-space: nowrap et pese (0,1,2).
   Ces trois regles etaient ecrites `td.detail`, `td.musique`,
   `td.jockey` : (0,1,1). Elles PERDAIENT. Les pastilles ne passaient
   donc jamais a la ligne, debordaient de leur colonne et s'imprimaient
   par-dessus la cote, le poids et la valeur - le tableau etait
   illisible des que la fenetre n'etait pas large. Le prefixe
   `table.programme` remet ces regles au-dessus (0,2,2). Toute nouvelle
   colonne qui doit passer a la ligne doit porter le meme prefixe. */
table.programme td.detail {
  white-space: normal; min-width: 210px; max-width: 290px;
}
td.detail .bout {
  display: inline-block; margin: 1px 4px 1px 0; padding: 1px 6px;
  border: 1px solid var(--regle); border-radius: 100px;
  font-size: 11px; color: var(--sourd); white-space: nowrap;
}
table.programme td.musique {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  color: var(--sourd); max-width: 150px; white-space: normal;
  word-break: break-all;
}
table.programme td.jockey {
  font-size: 11.5px; color: var(--sourd); max-width: 130px;
  white-space: normal;
}
td.pas-note { color: var(--faible); font-style: italic; font-size: 12.5px; }
.aide-tableau {
  margin: 0; padding: 10px 16px; font-size: 12.5px; color: var(--faible);
  border-top: 1px solid var(--regle);
}

/* ------------------------------------------- les onglets d'une course */
/* Le classement et la lecture handicap disent deux choses differentes
   de la meme course. Les empiler allongeait la page sans le dire ; en
   onglets, on voit tout de suite qu'il y a un second regard. */
.onglets-course {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 0;
  border-bottom: 1px solid var(--regle); scrollbar-width: none;
}
.onglets-course::-webkit-scrollbar { display: none; }
.onglets-course button {
  flex: 0 0 auto; cursor: pointer; padding: 8px 14px; font-size: 13.5px;
  font-weight: 600; color: var(--sourd); background: none;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 9px 9px 0 0; margin-bottom: -1px;
}
.onglets-course button:hover { color: var(--encre); }
.onglets-course button.actif {
  color: var(--sonde); background: var(--surface);
  border-color: var(--regle); border-bottom-color: var(--surface);
}
.vue[hidden] { display: none; }

/* La lecture handicap : l'ecart au poids se lit au signe, pas a l'ombre. */
td .bon  { color: var(--gain); }
td .dur  { color: var(--perte); }
td .faible, .faible { color: var(--faible); }
tr.repere { background: var(--sonde-pale); }
tr.repere td { border-color: var(--regle); }
.vue .meta { color: var(--sourd); font-size: 13px; }

/* ------------------------------------ le recap des deux indices */
/* Deux lectures de la meme course, cote a cote. Ce qui compte n'est
   pas seulement ce que chacune dit, c'est si elles tombent d'accord. */
.recap { display: grid; gap: 12px; padding: 12px 16px 2px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.recap-carte { min-width: 0; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--regle); }
.rc-quoi { margin: 6px 0 10px; font-size: 12.5px; color: var(--sourd);
  line-height: 1.5; }
.recap-liste { margin: 0; padding: 0; list-style: none; }
.recap-liste li { display: flex; align-items: baseline; gap: 8px;
  padding: 5px 0; border-top: 1px solid var(--regle); }
.recap-liste li:first-child { border-top: none; }
.rc-num { font-family: "IBM Plex Mono", monospace; font-size: 12px;
  color: var(--sourd); min-width: 2ch; }
.rc-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 14px; }
.rc-val { font-family: "IBM Plex Mono", monospace; font-size: 14px;
  color: var(--sonde); }
.rc-note { margin: 10px 0 0; font-size: 12.5px; color: var(--sourd);
  padding-top: 8px; border-top: 1px solid var(--regle); }
.rc-vide { margin: 0; font-size: 12.5px; color: var(--faible); font-style: italic; }
.rc-cote { font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  color: var(--sourd); min-width: 4ch; text-align: right; }
.rc-col { float: right; font-weight: 400; letter-spacing: .02em;
  text-transform: none; color: var(--faible); }

/* La porte d'entree, pour qui arrive par le lien partage.
 *
 * Le 17/11/2026, l'accueil chargeait `compte.js` sans ses styles : la
 * boite s'ouvrait en `position:static`, sans fond ni cadre, quelque
 * part sous la page. Elle etait bien la, et invisible. Ces regles sont
 * celles d'`omarow.css`, traduites dans les variables d'ici - les deux
 * feuilles ne partagent pas les memes noms de couleurs.
 */
#voile-compte{position:fixed;inset:0;background:rgba(22,26,29,.45);z-index:50;
  display:flex;align-items:center;justify-content:center;padding:20px}
.boite-compte{background:var(--surface);border:1px solid var(--regle);
  border-radius:var(--r);box-shadow:0 18px 50px rgba(22,26,29,.22);
  width:100%;max-width:400px;overflow:hidden}
.bc-onglets{display:flex;background:var(--surface-2);border-bottom:1px solid var(--regle)}
.bc-onglets button{all:unset;cursor:pointer;flex:1;text-align:center;padding:12px 6px;
  font-size:13px;color:var(--sourd);border-bottom:2px solid transparent}
.bc-onglets button:hover{color:var(--encre)}
.bc-onglets button[aria-current]{background:var(--surface);color:var(--sonde);
  font-weight:650;border-bottom-color:var(--sonde)}
.bc-corps{padding:24px 26px 22px}
.bc-corps h2{margin:0 0 6px;font-size:18px;letter-spacing:-.01em;
  text-transform:none;color:var(--encre)}
.bc-corps p{margin:0 0 16px;font-size:13.5px;line-height:1.55;color:var(--sourd)}
.bc-corps label{display:block;font-size:12px;color:var(--sourd);margin:12px 0 4px}
.bc-corps input{width:100%;box-sizing:border-box;padding:11px 13px;font:inherit;
  font-size:15px;border:1px solid var(--regle);border-radius:10px;
  background:var(--surface-2);color:var(--encre)}
.bc-corps input.gros{font:600 18px/1 "IBM Plex Mono",monospace;letter-spacing:.12em;
  text-align:center;text-transform:uppercase}
.bc-corps input:focus{outline:2px solid var(--sonde-pale);border-color:var(--sonde)}
.bc-corps .msg{min-height:20px;font-size:13px;margin:12px 0 2px;color:var(--sourd)}
.bc-corps .msg.err{color:var(--perte)}
.bc-corps .msg.ok{color:var(--gain);font-weight:600}
.bc-corps .actes{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}
.bc-corps .actes button{padding:10px 18px;border-radius:10px;font:inherit;
  font-size:14px;font-weight:600;cursor:pointer;border:1px solid var(--regle)}
.bc-corps .sec{background:var(--surface);color:var(--sourd)}
.bc-corps .prim{background:var(--sonde);color:#fff;border-color:var(--sonde)}

/* La grille des offres (fonction grille() dans app.js). Deux cases cote a
   cote, qui passent l'une sous l'autre sur un ecran etroit - c'est un
   telephone, la plupart du temps. Dupliquee dans omarow.css : les deux
   feuilles se repondent, voir la note plus haut. */
.grille-offres{display:flex; gap:12px; flex-wrap:wrap; margin:14px 0}
.grille-offres .offre{flex:1 1 150px; min-width:140px; padding:12px 14px;
  border:1px solid var(--regle); border-radius:12px; background:var(--carte)}
.grille-offres .offre .prix{margin:6px 0 2px}
.grille-offres .offre p{margin:0; font-size:.86rem; opacity:.72}
