/* simple.css — l'APPLI (20/10/2026 ; refaite « premium » le 21/10 : demande de Thibaut, « inspire-toi d'Apple »).
   Pour un marchand ou un client de 40 à 60 ans, sur un téléphone, souvent dehors au soleil.
   Premium ≠ petit et gris : texte de base 18 px (jamais moins de 16 px), cibles ≥ 48 px, un mot sur chaque bouton,
   contraste fort (texte principal 18:1, secondaire ≥ 8:1, vert des boutons 8:1). Le « premium » vient de l'air, de la
   hiérarchie, des cartes douces sur fond gris très clair (comme Réglages ou Santé sur iPhone), des transitions sobres
   (≤ 200 ms, coupées si l'utilisateur le demande) — jamais d'un texte pâle.
   Polices du système (SF Pro sur iPhone/Mac, Segoe UI sur Windows) : aucune requête externe. iPhone : marges
   env(safe-area-inset-*) (encoche, barre d'accueil), champs ≥ 16 px (pas de zoom à la saisie), aucune largeur fixe.
   Clair partout (pas de mode sombre : il n'aurait pas été impeccable). Indépendant de styles.css (ancienne interface). */
:root {
  --ink: #0b1220;            /* texte principal : 18,9:1 sur blanc (même encre que le logo) */
  --ink-2: #3b4352;          /* texte secondaire : 9,9:1 sur blanc, 9,0:1 sur --fond */
  --ink-3: #4f5766;          /* mentions : 7,4:1 */
  --fond: #f2f2f7;           /* fond des pages (gris iOS) */
  --fond-2: #f4f5f8;         /* panneaux dans une carte */
  --line: #d6d9e0;           /* filets */
  --line-2: #e6e8ed;
  --cadre: #8b929d;          /* bord des champs : 3,2:1 (visible au soleil, sans être noir) */
  --bord-btn: #cdd1d8;
  --brand: #075c41;          /* vert foncé : 8,0:1 avec le blanc (AAA) */
  --brand-2: #05452f;
  --brand-soft: #e5f1eb;
  --gris-donnee: #a1a8b3;    /* série secondaire des graphiques */
  --warn: #7a3300;           /* « estimé », « à vérifier » : 9,9:1 sur son fond */
  --warn-soft: #fff1db;
  --r: 16px;
  --r-carte: 22px;
  --ombre: 0 1px 2px rgba(11, 18, 32, .05), 0 6px 22px rgba(11, 18, 32, .06);
  --ombre-btn: 0 1px 2px rgba(11, 18, 32, .07);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --g-gauche: max(16px, env(safe-area-inset-left, 0px));
  --g-droite: max(16px, env(safe-area-inset-right, 0px));
  --vitesse: .16s;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--fond); }
body.simple { margin: 0; min-height: 100vh; background: var(--fond); color: var(--ink); font-family: var(--font); font-size: 18px;
  line-height: 1.5; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; }
/* remises à zéro au niveau ÉLÉMENT (spécificité minimale) : la marge d'un composant (.s-par, .s-hero-titre…) l'emporte
   toujours — « .simple p { margin: 0 } » écrasait toutes les marges des paragraphes et des titres */
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--ink); font-weight: 700; }
p { margin: 0; }
a { color: var(--ink); }
.simple svg { display: inline-block; vertical-align: middle; flex: none; }
.simple img { max-width: 100%; }
.simple :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; border-radius: 10px; }
.simple [id] { scroll-margin-top: calc(80px + env(safe-area-inset-top, 0px)); }
.s-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }

/* ---- en-tête collant, léger (verre dépoli comme la barre de Safari) */
.s-haut { position: sticky; top: 0; z-index: 30; background: rgba(242, 242, 247, .88);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(11, 18, 32, .08); padding-top: env(safe-area-inset-top, 0px); }
.s-haut-in { max-width: 760px; margin: 0 auto; min-height: 62px; padding: 6px var(--g-droite) 6px var(--g-gauche);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 20px; font-weight: 700;
  letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.simple a.s-logo { color: var(--ink); }
.simple .s-logo-marque { display: block; width: auto; height: 36px; }
.simple .s-haut-marque { display: block; width: auto; height: 34px; flex: none; opacity: .92; }
/* « ‹ Retour » : une capsule teintée (bouton évident, sans cadre noir) */
.s-retour { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; max-width: 100%; padding: 6px 16px 6px 10px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-size: 18px; font-weight: 600;
  line-height: 1.2; text-decoration: none; transition: background-color var(--vitesse), transform var(--vitesse); }
.simple a.s-retour { color: var(--brand-2); }
.s-retour svg { width: 22px; height: 22px; }
.s-retour:active { transform: scale(.97); background: #d4e8dd; }
.s-page > .s-retour { margin: 0 0 12px; }

/* ---- page : une colonne aérée */
.s-page { max-width: 760px; margin: 0 auto; padding: 18px var(--g-droite) 32px var(--g-gauche); }
.s-pied { max-width: 760px; margin: 0 auto; padding: 8px var(--g-droite) 36px var(--g-gauche); }

/* ---- boutons : ≥ 56 px, pleine largeur, texte toujours présent */
.s-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px;
  padding: 12px 20px; border: 1px solid var(--bord-btn); border-radius: var(--r); background: #fff; color: var(--ink);
  font: inherit; font-size: 19px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer; box-shadow: var(--ombre-btn); -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
  transition: transform var(--vitesse) ease, background-color var(--vitesse), box-shadow var(--vitesse); }
.simple a.s-btn { color: var(--ink); }
.s-btn + .s-btn { margin-top: 12px; }
.s-btn:active { transform: scale(.98); background: #eceef2; }
.s-btn svg { width: 24px; height: 24px; }
.s-btn-primaire { background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(7, 92, 65, .3), 0 8px 18px rgba(7, 92, 65, .18); }
.simple a.s-btn-primaire, .simple .s-btn-primaire { color: #fff; }
.s-btn-primaire:active { background: var(--brand-2); }
@media (hover: hover) { .s-btn:hover { background: #f6f7f9; } .s-btn-primaire:hover { background: var(--brand-2); } }

/* ---- champ de recherche : grand, doux, la loupe dedans, « Effacer » écrit */
.s-cherche { margin: 0; }
.s-cherche-lbl { display: block; font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 10px 2px; }
.s-champ-boite { position: relative; }
.s-champ { display: block; width: 100%; min-height: 64px; padding: 12px 18px; border: 2px solid var(--cadre);
  border-radius: 18px; background: #fff; color: var(--ink); font: inherit; font-size: 21px; font-weight: 500;
  box-shadow: var(--ombre); -webkit-appearance: none; appearance: none;
  transition: border-color var(--vitesse), box-shadow var(--vitesse); }
.s-champ-boite .s-champ { padding-left: 54px; padding-right: 124px; min-height: 66px; }
.s-champ::placeholder { color: #545c6a; opacity: 1; font-weight: 400; }
.s-champ:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(7, 92, 65, .2), var(--ombre); }
.s-champ::-webkit-search-cancel-button, .s-champ::-webkit-search-decoration { -webkit-appearance: none; }
.s-champ-loupe { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.s-effacer { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); min-height: 56px; padding: 0 16px;
  border: 0; border-radius: 12px; background: #eceef2; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.s-effacer:active { background: #dfe2e8; }
.s-cherche .s-btn { margin-top: 14px; min-height: 60px; font-size: 20px; }
.s-cherche-petit { margin: 4px 0 6px; }

/* ---- accueil : le logo, la promesse, la barre */
body.s-accueil { background: linear-gradient(180deg, #fff 0, #fff 260px, var(--fond) 640px); }
.s-accueil .s-page { padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
.s-hero { text-align: center; }
.s-logo-grand { display: inline-block; border-radius: 20px; }
.simple .s-logo-grand img { display: block; width: 128px; height: auto; margin: 0 auto; }
.s-hero-titre { font-size: 31px; line-height: 1.14; letter-spacing: -.025em; margin: 30px auto 0; max-width: 16em; }
.s-hero-sous { font-size: 18px; line-height: 1.45; color: var(--ink-2); margin: 14px auto 0; max-width: 30em; }
.s-hero .s-cherche { text-align: left; margin-top: 32px; }
.s-hero-titre, .s-hero-sous, .s-logo-grand { transition: opacity var(--vitesse); }
/* pendant la saisie sur un téléphone : le logo et les phrases s'effacent, la barre monte en haut (le clavier ne cache
   plus les suggestions) — remis dès que le champ est vide et quitté (simple.js) */
@media (max-width: 759px) {
  .s-saisie .s-logo-grand, .s-saisie .s-hero-titre, .s-saisie .s-hero-sous { display: none; }
  .s-saisie .s-hero .s-cherche { margin-top: 0; }
  .s-saisie.s-accueil .s-page { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}
.s-liens-discrets { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.s-liens-discrets a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 8px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--ombre-btn);
  font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.s-liens-discrets svg { width: 22px; height: 22px; color: var(--ink-2); }

/* ---- suggestions et résultats : des listes groupées (comme Contacts) */
.s-suggestions:empty { display: none; }
.s-suggestions { margin-top: 22px; text-align: left; }
.s-groupe + .s-groupe { margin-top: 22px; }
.s-groupe-titre { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; margin: 0 4px 10px; }
.s-groupe-n { display: inline-block; font-size: 18px; font-weight: 600; color: var(--ink-2); background: #e4e6ec; border-radius: 999px;
  padding: 1px 10px; font-variant-numeric: tabular-nums; }
.s-vide { font-size: 18px; padding: 16px 18px; background: #fff; border-radius: var(--r); box-shadow: var(--ombre); }
.s-voir-tous { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; margin-top: 10px;
  padding: 8px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-2); font-size: 18px; font-weight: 600;
  text-decoration: none; }
.simple a.s-voir-tous { color: var(--brand-2); }
.s-voir-tous svg { width: 20px; height: 20px; }

.s-lignes { list-style: none; margin: 0 0 14px; padding: 0; background: #fff; border-radius: 20px; box-shadow: var(--ombre); overflow: hidden; }
.s-lignes li + li { border-top: 1px solid var(--line-2); }
.s-ligne { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; min-height: 76px; padding: 13px 14px 13px 16px;
  color: var(--ink); background: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vitesse); }
.s-ligne:active { background: #eef0f3; }
@media (hover: hover) { .s-ligne:hover { background: #f7f8fa; } }
.s-ligne > span { display: block; }
.s-ligne > .s-ligne-corps { display: flex; }
.s-ligne > .s-avatar { display: grid; }
.s-ligne-corps > span { display: block; }
/* ancienne forme (Notre dossier, Trajets) : nom, détails et « Voir sa fiche » l'un sous l'autre */
.s-ligne > .s-ligne-nom, .s-ligne > .s-ligne-det, .s-ligne > .s-ligne-orig, .s-ligne > .s-ligne-voir { flex: 1 0 100%; }
/* nouvelle forme : pastille · texte · chevron */
.s-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 17px;
  font-weight: 700; letter-spacing: .02em; }
.s-avatar-cheval { background: #eceef3; color: var(--ink); }
.s-avatar-cheval svg { width: 26px; height: 26px; }
.s-avatar-cav { background: var(--brand-soft); color: var(--brand-2); }
.s-avatar-grand { width: 60px; height: 60px; font-size: 22px; }
.s-ligne-corps { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-ligne-nom { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.s-ligne-det { font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.s-ligne-orig { font-size: 18px; line-height: 1.4; color: var(--ink); font-weight: 600; }
.s-ligne-voir { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--brand); }
.s-ligne-corps ~ .s-ligne-voir { flex: none; margin: 0; color: #7d8592; }
.s-ligne-corps ~ .s-ligne-voir svg { width: 22px; height: 22px; }
.s-etiquette-ligne { display: inline-block; vertical-align: 2px; margin-left: 4px; font-size: 18px; font-weight: 700; color: var(--brand-2);
  background: var(--brand-soft); border-radius: 999px; padding: 0 9px; letter-spacing: 0; }
/* 22/10 : plusieurs chevaux portent ce nom — ce qui les distingue (naissance, père inconnu, dernier cavalier), en grand */
.s-ligne-distinct { margin-top: 6px; padding: 6px 10px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink);
  background: var(--warn-soft); border-radius: 10px; }
.s-hom-item { display: block; }
/* 23/10 : « Reconnu par son nom seulement » (cheval sans numéro officiel), dans la liste, en grand */
.s-ligne-nomseul { flex: 1 0 100%; margin-top: 6px; padding: 6px 10px; font-size: 18px; font-weight: 700; line-height: 1.4;
  color: var(--warn); background: var(--warn-soft); border-radius: 10px; }
.s-homonymes { margin: 0 2px 14px; padding: 12px 14px; font-size: 18px; line-height: 1.45; color: var(--ink);
  background: var(--warn-soft); border-radius: 14px; }
.s-homonymes b { display: block; font-size: 19px; color: var(--warn); }
.s-homonymes span { display: block; margin-top: 4px; }
.s-titre-res { font-size: 27px; font-weight: 700; letter-spacing: -.015em; margin: 26px 2px 14px; }
.s-titre-res-2 { font-size: 22px; margin-top: 24px; }
.s-aide { font-size: 18px; color: var(--ink-2); margin: 0 2px 12px; }

/* ---- fiche : en-tête (sur le fond, sans carte) */
.s-tete { padding: 10px 2px 4px; }
.s-tete-det { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.s-nom { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin-top: 4px; }
.s-tete-nom { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.s-tete-nom .s-nom { margin-top: 0; min-width: 0; }
.s-par { font-size: 20px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.35; }
.s-tete-pays { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; font-size: 18px; color: var(--ink-2); }
.s-point { color: var(--ink-2); }
.s-avert { margin-top: 12px; font-size: 18px; color: var(--ink); background: var(--warn-soft); border-radius: 14px; padding: 10px 14px; }
.badge-est, .badge-nom { display: inline-block; font-weight: 700; color: var(--warn); margin-right: 4px; }
.badge-nom { text-transform: none; }
.s-tete-actions { display: grid; gap: 12px; margin-top: 20px; }
.s-tete-actions .s-btn + .s-btn { margin-top: 0; }
.s-btn-dossier svg { color: var(--brand); }

/* ---- envoyer la fiche : un gros bouton qui ouvre 4 gros choix écrits (pas un menu caché) */
.s-partage > summary { list-style: none; }
.s-partage > summary::-webkit-details-marker { display: none; }
.s-partage > summary > span { display: inline-flex; align-items: center; gap: 10px; }
.s-partage .s-fermer { display: none; }
.s-partage[open] > summary { background: #fff; color: var(--ink); border-color: var(--bord-btn); box-shadow: var(--ombre-btn); }
.s-partage[open] > summary .s-ouvrir { display: none; }
.s-partage[open] > summary .s-fermer { display: inline-flex; }
.s-partage-corps { margin-top: 12px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--ombre); }
.s-partage-corps > .s-texte { margin: 0 2px 14px; color: var(--ink-2); font-size: 18px; }
.s-partage-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.s-partage-corps .s-btn + .s-btn { margin-top: 12px; }
.s-partage-grille .s-btn + .s-btn { margin-top: 0; }
.s-btn-partage { justify-content: flex-start; padding-left: 18px; }
.s-partage-grille .s-btn-partage { flex-direction: column; justify-content: center; gap: 6px; min-height: 92px; padding: 12px 8px;
  font-size: 18px; background: var(--fond-2); border-color: transparent; box-shadow: none; }
.s-btn-partage .s-ico { width: 30px; height: 30px; color: var(--ink); }
.s-btn-partage[data-canal="whatsapp"] .s-ico { color: #0a7a3e; }
.s-lien-lbl { display: block; margin: 16px 2px 0; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.s-lien-champ { display: block; width: 100%; min-height: 54px; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; font-size: 18px; color: var(--ink); background: var(--fond-2); resize: none; word-break: break-all; }

/* ---- chiffres clés : 4 tuiles (2 × 2 sur téléphone) */
.s-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.s-chiffre { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 15px; border-radius: 20px; background: #fff; box-shadow: var(--ombre); }
.s-chiffre b { font-size: 33px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.s-chiffre-sf b { color: var(--brand); }
.s-chiffre b.s-chiffre-date { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; padding-top: 3px; }
.s-chiffre span { margin-top: 6px; font-size: 18px; line-height: 1.3; color: var(--ink-2); }
.s-chiffre small { margin-top: 2px; font-size: 18px; color: var(--ink-3); }

/* ---- sections : des cartes blanches */
.s-sec { margin-top: 16px; padding: 22px 18px; border-radius: var(--r-carte); background: #fff; box-shadow: var(--ombre); }
.s-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -.015em; margin-bottom: 14px; }
.s-sec h3 { font-size: 20px; margin-bottom: 8px; }
.s-sous-titre { margin-top: 26px; }
.s-gros { font-size: 21px; font-weight: 600; }
.s-moyen { font-size: 19px; font-weight: 600; margin-top: 6px; }
.s-texte { font-size: 18px; color: var(--ink); margin-top: 8px; }
.s-discret { color: var(--ink-2); font-size: 18px; }
.s-note { background: var(--fond-2); border-radius: 14px; padding: 12px 14px; }
.s-source { font-size: 18px; color: var(--ink-2); margin-top: 8px; }
.s-inconnu { color: var(--ink-2); font-weight: 500; }
.s-loc-pays { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 25px; font-weight: 700; letter-spacing: -.01em; }
.s-drapeau { border-radius: 4px; box-shadow: 0 0 0 1px rgba(11, 18, 32, .18); }
.s-tete-pays .s-drapeau { width: 27px; height: 18px; }
.s-estime { display: inline-block; font-size: 18px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 10px; border-radius: 999px; letter-spacing: 0; }
.s-boutons { display: grid; gap: 12px; margin-top: 16px; }
.s-boutons .s-btn + .s-btn { margin-top: 0; }
.s-btn-cav svg { color: var(--brand); }
.s-code { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
/* pays en drapeau seul (22/10) : dans une ligne de texte, à la hauteur des lettres */
.s-pays { display: inline-flex; vertical-align: middle; }
.s-drapeau-petit { border-radius: 2px; }

/* liste « clé : valeur » (origines et papiers) — comme une liste de Réglages */
.s-kv { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.s-kv > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 13px 16px; }
.s-kv > div + div { border-top: 1px solid var(--line-2); }
.s-kv dt { font-size: 18px; color: var(--ink-2); }
.s-kv dd { margin: 0; font-size: 18px; font-weight: 600; text-align: right; min-width: 0; margin-left: auto; }
.s-kv dd.s-inconnu { font-weight: 500; color: var(--ink-2); }

/* ---- résultats : national / international, côte à côte dès qu'il y a la place */
.s-niveaux { display: grid; gap: 14px; margin-top: 14px; }
.s-bloc { margin-top: 14px; padding: 18px 16px 16px; border-radius: 18px; background: var(--fond-2); }
.s-niveaux .s-bloc { margin-top: 0; }
.s-bloc h3 { font-size: 19px; color: var(--ink); }
.s-bloc-gros { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.s-bloc-gros b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--brand); }
.s-bloc-gros span { font-size: 18px; color: var(--ink-2); }
.s-bloc-kv { margin: 12px 0 0; }
.s-bloc-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid #e1e4ea; }
.s-bloc-kv dt { font-size: 18px; color: var(--ink-2); }
.s-bloc-kv dd { margin: 0; font-size: 18px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.s-bloc-info { background: #fff; border: 1px solid var(--line-2); }
.s-verdict { font-weight: 600; }
.s-verdict-pepite { color: var(--brand-2); }
.s-face p { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 17px; }
.s-face p span { min-width: 0; }
.s-face p b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-face-barre { display: block; height: 12px; margin-top: 5px; border-radius: 6px; background: #e8eaef; overflow: hidden; }
.s-face-barre i { display: block; height: 100%; border-radius: 6px; background: var(--gris-donnee); }
.s-face-barre i.moi { background: var(--brand); }

/* ---- liens vers les sites : une liste propre, honnête (coche = la page du cheval, loupe = une recherche) */
.s-liste-liens { margin-top: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); overflow: hidden; }
.s-bloc .s-liste-liens { border-color: #e1e4ea; }
.s-liste-liens > a { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 11px 14px; color: var(--ink);
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color var(--vitesse); }
.s-liste-liens > a + a { border-top: 1px solid var(--line-2); }
.s-liste-liens > a:active { background: #eef0f3; }
@media (hover: hover) { .s-liste-liens > a:hover { background: #f7f8fa; } }
.simple .s-liste-liens a { color: var(--ink); }
.s-liste-liens .lb-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #eceef3; color: var(--ink-2); }
.s-liste-liens .lb-ico svg { width: 22px; height: 22px; }
.s-liste-liens .profil .lb-ico, .s-liste-liens .s-lien-interne .lb-ico { background: var(--brand-soft); color: var(--brand); }
.s-liste-liens .profil_probable .lb-ico { background: var(--warn-soft); color: var(--warn); }
.s-liste-liens .lb-txt { flex: 1; min-width: 0; }
.s-liste-liens .lb-txt b { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.s-liste-liens .lb-txt small { display: block; margin-top: 2px; font-size: 18px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.s-liste-liens .profil_probable .lb-txt small { color: var(--warn); }
.s-liste-liens .lb-ext { flex: none; color: #7d8592; }
.s-liste-liens .lb-ext svg { width: 20px; height: 20px; }
.s-liste-liens .hx-request { opacity: .7; }
/* bouton de lien de l'ANCIENNE forme (macros.bouton_lien) s'il apparaît encore dans une page de l'appli */
.s-page .lien-btn:not(.s-liste-liens > a) { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px;
  border: 1px solid var(--bord-btn); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; }
.s-page .lien-btn .lb-txt b { display: block; font-size: 18px; }
.s-page .lien-btn .lb-txt small { display: block; font-size: 18px; color: var(--ink-2); }

/* ---- saison par saison : un tableau lisible à 360 px */
.s-table { width: 100%; border-collapse: collapse; font-size: 18px; font-variant-numeric: tabular-nums; }
.s-table th, .s-table td { padding: 10px 6px 6px; text-align: left; vertical-align: top; }
.s-table th:first-child, .s-table td:first-child { padding-left: 2px; }
.s-table thead th { font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.25; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.s-table tbody th { font-size: 19px; font-weight: 700; }
.s-table tbody th span { display: block; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.s-table td { font-weight: 600; }
.s-table tbody + tbody { border-top: 1px solid var(--line-2); }
.s-table .s-table-cav td { padding-top: 0; padding-bottom: 10px; font-size: 16px; font-weight: 500; color: var(--ink-2); }

/* ---- graphiques (rendu.graphe_progression, rendu.barres_hauteurs) : texte HTML réel, traits SVG */
.g-prog { margin: 6px 0 0; }
.g-zone { position: relative; height: 214px; }
.g-plot { position: absolute; top: 38px; right: 4px; bottom: 12px; left: 4px; }
.g-grille { position: absolute; left: 0; right: 0; height: 1px; background: #eceef2; }
.g-traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.g-l-sf { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.g-l-max { fill: none; stroke: var(--gris-donnee); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-pt { position: absolute; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, 50%); box-shadow: 0 0 0 3px #fff; }
.g-pt-sf { background: var(--brand); }
.g-pt-max { width: 11px; height: 11px; background: var(--gris-donnee); }
.g-val { position: absolute; transform: translateX(-50%); font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--ink);
  white-space: nowrap; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .85); border-radius: 6px; padding: 0 3px; }
.g-axe { position: relative; height: 48px; margin: 8px 4px 0; border-top: 1px solid var(--line); }
.g-axe span { position: absolute; top: 6px; transform: translateX(-50%); text-align: center; font-size: 16px; line-height: 1.25;
  color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-axe b { display: block; color: var(--ink); font-weight: 700; }
.g-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.g-legende span { display: inline-flex; align-items: center; gap: 8px; }
.g-pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.g-p-sf { background: var(--brand); }
.g-p-max { background: var(--gris-donnee); }
.g-p-autre { background: #c9ced6; border-radius: 3px; }
.g-barres { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.g-barres p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 17px; margin-bottom: 6px; }
.g-barres p b { font-size: 18px; font-variant-numeric: tabular-nums; }
.g-barres p span { color: var(--ink-2); }
.g-b { display: flex; gap: 2px; height: 14px; }
.g-b i { display: block; height: 100%; border-radius: 4px; }
.g-b-sf { background: var(--brand); }
.g-b-autre { background: #c9ced6; }

/* choix de la saison : des pastilles (année + âge), celle montrée en vert */
.s-saisons-choix { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.s-choix { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 78px; min-height: 58px;
  padding: 6px 12px; border-radius: 14px; background: #eef0f3; color: var(--ink); font-size: 16px; line-height: 1.2; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: background-color var(--vitesse), transform var(--vitesse); }
.simple a.s-choix { color: var(--ink); }
.s-choix b { font-size: 18px; font-variant-numeric: tabular-nums; }
.s-choix:active { transform: scale(.97); }
.s-choix.on, .simple a.s-choix.on { background: var(--brand); color: #fff; }
.s-choix.hx-request { opacity: .7; }
.s-hauteurs-resume { font-size: 18px; color: var(--ink); }

/* derniers mois */
.s-mois { list-style: none; margin: 4px 0 0; padding: 0; }
.s-mois li { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; padding: 11px 0; font-size: 17px; }
.s-mois li + li { border-top: 1px solid var(--line-2); }
.s-mois-date { font-weight: 700; white-space: nowrap; }

/* cavaliers, propriétaires */
.s-cavs, .s-props { list-style: none; margin: 0; padding: 0; }
.s-cav, .s-prop { padding: 18px 0 4px; }
.s-cav + .s-cav, .s-prop + .s-prop { border-top: 1px solid var(--line-2); margin-top: 14px; }
.s-cavs > .s-cav:first-child, .s-props > .s-prop:first-child { padding-top: 4px; }
.s-cav-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.s-cav-nom { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.s-cav-det { font-size: 18px; color: var(--ink-2); margin-top: 4px; }
.s-etiquette { display: inline-block; margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--brand-2); background: var(--brand-soft);
  padding: 2px 10px; border-radius: 999px; }
.s-cav-lien { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); }
.s-plus { margin-top: 18px; }
.s-plus > summary { list-style: none; }
.s-plus > summary::-webkit-details-marker { display: none; }
.s-plus[open] > summary { display: none; }
.s-plus > .s-cavs > .s-cav:first-child { padding-top: 4px; }

/* actions du bas */
.s-actions { display: grid; gap: 12px; margin-top: 22px; }
.s-actions .s-btn + .s-btn { margin-top: 0; }
.s-suivre svg { width: 26px; height: 26px; color: #b45309; }
.s-suivre.on { background: #fff7e6; border-color: #f1d9a8; }

/* pied de page : langues en toutes lettres (pas de « FR / EN ») avec leur drapeau (22/10), date des données */
.s-langues { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; }
.s-langues a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; font-size: 18px;
  gap: 10px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.s-langues a.on .s-drapeau { box-shadow: 0 0 0 1px #fff; }
.s-langues a.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.s-donnees { margin-top: 14px; font-size: 18px; color: var(--ink-2); }

/* message bref (lien copié) */
.s-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px);
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px; background: rgba(11, 18, 32, .94); color: #fff; font-size: 18px;
  font-weight: 600; transition: transform .2s, opacity .2s; z-index: 50; text-align: center; opacity: 0; visibility: hidden;
  box-shadow: 0 10px 30px rgba(11, 18, 32, .25); }
.s-toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.hx-request { opacity: .8; }

@media (min-width: 420px) {
  .s-langues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ================================================================================================================
   HABILLAGE PREMIUM (22/10/2026, demande de Fabien : « une interface beaucoup plus premium »). Mêmes règles qu'avant :
   texte ≥ 18 px, boutons ≥ 56 px pleine largeur, un mot sur chaque bouton, contraste fort (texte nuit sur blanc 17:1,
   blanc sur nuit 17:1, nuit sur or 8:1). Bleu marine (« nuit ») + or (22/10 : le vert remplacé par un bleu marine très foncé, demande de Fabien) ; titres en serif DU SYSTÈME (aucune
   requête externe). L'or n'est jamais une couleur de texte sur fond clair (trop pâle au soleil). */
:root {
  --nuit: #08101f; --nuit-2: #121d36; --or: #c9a961; --or-pale: #f3eedf; --ivoire: #faf8f3; --creme-txt: #ece6d6;
  --brand: #0b1528; --brand-2: #050b17; --brand-soft: #f3eedf; --fond-2: #f4f1e8; --line: #ddd5c3; --cadre: #08101f;
  --r: 16px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --ombre: 0 1px 2px rgba(8, 16, 31, .06), 0 8px 24px rgba(8, 16, 31, .07);
}
body.simple { background: var(--ivoire); }
.simple h1, .simple h2, .s-nom, .s-cherche-titre, .s-titre-res, .s-ligne-nom, .s-cav-nom, .s-chiffre b, .s-kv dd {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }

/* en-tête : bandeau nuit, logo en blanc */
.s-haut { background: var(--nuit); border-bottom: 1px solid var(--or); }
.s-logo, .simple a.s-logo { color: #fff; font-family: var(--serif); letter-spacing: .01em; }
/* logos en or (fichiers *_or.png, 22/10) : plus besoin de filtre */
.s-haut-accueil { padding: 28px 16px 34px; border-radius: 0 0 28px 28px; border-bottom: 0; }
.s-haut-accueil .s-accroche { margin: 16px auto 0; max-width: 22ch; font-family: var(--serif); font-style: italic; font-size: 22px;
  line-height: 1.3; color: #fff; }

/* boutons */
.s-btn { border-radius: var(--r); box-shadow: 0 1px 2px rgba(8, 16, 31, .08); }
.s-btn-primaire, .s-btn-primaire:hover { background: var(--nuit); border-color: var(--nuit); color: #fff;
  box-shadow: 0 6px 18px rgba(8, 16, 31, .22); }
.s-btn-primaire:hover { background: var(--nuit-2); }
.s-btn-primaire svg { color: var(--or); }
.s-retour { background: #fff; }

/* accueil : chaque recherche dans une carte blanche */
.s-cherche { margin: 22px 0 8px; padding: 22px 18px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--ombre); }
.s-cherche-2 { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.s-cherche-titre { font-size: 28px; }
.s-champ { border-width: 2px; background: var(--ivoire); }
.s-champ:focus { background: #fff; }

/* listes : cartes blanches */
.s-ligne { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--ombre); }
.s-ligne:hover { background: #fff; border-color: var(--nuit); }
.s-ligne-voir { color: var(--nuit); }
.s-ligne-voir span { color: #8c6d2c; }

/* fiche : chaque partie dans une carte */
.s-sec { margin-top: 18px; padding: 22px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--ombre); }
.s-sec h2 { font-size: 27px; }
.s-nom { font-size: 36px; }
.s-chiffre { background: var(--nuit); }
.s-chiffre b { color: #fff; }
.s-chiffre span { color: var(--creme-txt); }
.s-kv div, .s-note, .s-vide { background: var(--fond-2); }
.s-cav, .s-prop, .s-bloc { border: 1px solid var(--line); background: var(--ivoire); }
.s-etiquette { background: var(--or); color: var(--nuit); }
.s-partage-corps { border: 1px solid var(--or); background: var(--or-pale); }
.s-page .lien-btn { border-width: 2px; border-color: var(--nuit); border-radius: var(--r); }
.s-page .lien-btn.profil { border-color: var(--nuit); background: var(--or-pale); }
.s-suivre.on { background: var(--or-pale); }

/* logo du site sur chaque bouton de lien (22/10) : pastille blanche cerclée, ou sigle or sur marine */
.s-page .lien-btn .lb-logo { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); overflow: hidden; }
.s-page .lien-btn .lb-logo img { display: block; width: 32px; height: 32px; object-fit: contain; }
.s-page .lien-btn .lb-sigle { background: var(--nuit); border-color: var(--nuit); color: var(--or); font-size: 16px;
  font-weight: 800; letter-spacing: .02em; line-height: 1; }

/* pied de page */
.s-pied { border-top: 0; }
.s-langues a { background: #fff; border-color: var(--line); }
.s-langues a.on { background: var(--nuit); border-color: var(--nuit); }
.s-toast { background: var(--nuit); box-shadow: 0 0 0 1px var(--or), 0 10px 30px rgba(8, 16, 31, .3); }

@media (min-width: 640px) {
  .s-niveaux { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .s-sec { padding: 26px 26px; }
}
@media (min-width: 760px) {
  .s-page { padding-top: 26px; }
  .s-nom { font-size: 44px; }
  .s-hero-titre { font-size: 46px; }
  .s-hero-sous { font-size: 20px; }
  .simple .s-logo-grand img { width: 156px; }
  .s-accueil .s-page { padding-top: 56px; }
  .s-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-tete-actions { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .s-partage[open] { grid-column: 1 / -1; }
  .s-partage-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .simple *, .simple *::before, .simple *::after { transition: none !important; animation: none !important; }
}

/* ---- 21/10 (resserrage de la fiche) */
.s-bloc-ligne { font-size: 18px; color: var(--ink); margin-top: 6px; }
.s-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.s-sommaire a { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--ombre-btn); font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.simple .s-sommaire a { color: var(--ink); }
.s-sommaire a:active { background: #eceef2; }
.s-liste-liens > a:not(:has(small)) { min-height: 56px; }

/* Résultats : les blocs national / international sont des cartes à part entière (pas une carte dans une carte : plus
   de largeur pour le texte des liens sur un téléphone) */
.s-sec-ouverte { background: transparent; box-shadow: none; padding: 0; margin-top: 26px; }
.s-sec-ouverte > h2 { margin: 0 2px 4px; }
.s-sec-ouverte > .s-texte, .s-sec-ouverte > .s-note { margin-left: 2px; margin-right: 2px; }
.s-sec-ouverte .s-bloc { background: #fff; box-shadow: var(--ombre); border: 0; padding: 20px 16px 16px; border-radius: var(--r-carte); }
.s-sec-ouverte .s-bloc .s-liste-liens { border-color: var(--line-2); }
.s-liste-liens .lb-ico { width: 34px; height: 34px; }
.s-liste-liens .lb-ico svg { width: 21px; height: 21px; }
.s-liste-liens .lb-ext svg { width: 18px; height: 18px; }
.s-liste-liens > a { gap: 11px; padding: 11px 12px; }
/* encadrés d'explication posés sur le fond gris (Trajets, Notre dossier) : une carte blanche, sinon ils disparaissent */
.tr-explique, .simple .eq-vide { background: #fff; box-shadow: var(--ombre); }
.s-sommaire-res { margin: -4px 0 18px; }

/* 21/10 — barre de chargement : réponse immédiate au doigt pendant que la page suivante arrive (voir simple.js). */
body.s-charge::before { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999;
  background: var(--or, var(--brand)); transform-origin: 0 50%; animation: s-charge 2.4s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes s-charge { from { transform: scaleX(.05); } to { transform: scaleX(.9); } }
@media (prefers-reduced-motion: reduce) { body.s-charge::before { animation: none; transform: scaleX(.6); } }

/* ---- 22/10 — raccord entre l'habillage nuit et or (Fabien) et l'accueil à barre unique (PC du 21/10) */
html { background: var(--ivoire, var(--fond)); }
.s-haut.s-haut-accueil { position: static; text-align: center; padding: calc(26px + env(safe-area-inset-top, 0px)) var(--g-droite) 30px var(--g-gauche); }
.simple .s-haut-accueil .s-accroche { font-weight: 500; color: #fff; }
.s-accueil .s-page { padding-top: 22px; }
.s-hero-sous { margin-top: 0; }
@media (max-width: 759px) {
  /* pendant la saisie sur un téléphone, le bandeau s'efface comme le logo avant lui : le clavier ne cache plus les suggestions */
  .s-saisie .s-haut-accueil, .s-saisie .s-hero-sous { display: none; }
  .s-saisie.s-accueil .s-page { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}
/* liste « Voir ailleurs » : le logo du site (Fabien, 22/10) porte en pastille sur son coin le degré de certitude (21/10) :
   coche = page vérifiée du cheval, point d'interrogation = page probable, loupe = recherche */
.s-liste-liens .lb-marque { position: relative; flex: none; display: inline-flex; }
.s-liste-liens .lb-marque .lb-logo { width: 44px; height: 44px; }
.s-liste-liens .lb-marque .lb-ico { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border: 2px solid #fff; }
.s-liste-liens .lb-marque .lb-ico svg { width: 15px; height: 15px; }
/* dans une LISTE de liens, pas de cadre nuit autour de chaque ligne (le cadre de Fabien vaut pour un bouton isolé) :
   un simple filet entre les lignes, le fond or pâle de la page vérifiée reste */
.s-liste-liens > .lien-btn { border: 0; border-radius: 0; }
.s-liste-liens > .lien-btn + .lien-btn, .s-liste-liens > a + a { border-top: 1px solid var(--line); }
.simple .s-haut-marque { opacity: 1; }
/* chiffres clés sur fond nuit : la petite ligne « 122 sur 178 » doit rester lisible (crème, 11:1 ; le gris de la
   version claire tombait à 2,6:1) */
.s-chiffre small { color: #cfc8b6; }

/* Logos WhatsApp, Waze, Google Maps sur leurs boutons (22/10, demande de Fabien) */
.s-marque { flex: none; display: block; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.s-partage-grille .s-btn-partage .s-marque { width: 34px; height: 34px; }

/* « Il est ici » (22/10) : l'adresse exacte notée par l'équipe, sur la fiche */
.s-ici { margin: 6px 0 14px; padding: 16px; border: 2px solid var(--or); border-radius: 20px; background: #fffaf0; }
.s-ici .s-btn { margin-top: 10px; }
.s-ici-titre { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--nuit); }
.s-ici-adresse { margin-top: 6px; white-space: pre-line; }
.s-ici-ok { font-size: 18px; font-weight: 700; color: #0a6b3b; margin-bottom: 8px; }
.s-ici-sep { margin: 4px 0 6px; font-size: 17px; font-weight: 700; color: var(--ink-2); }
.s-btn.s-btn-noter-lieu { margin-top: 14px; }

/* « Voir le propriétaire sur la FEI » (22/10) : le logo du site sur un gros bouton */
.s-page .s-btn-fei-proprio { margin-top: 14px; gap: 12px; }
.s-page .s-btn-fei-proprio .lb-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.s-page .s-btn-fei-proprio .lb-logo img { width: 28px; height: 28px; object-fit: contain; }
.s-page .s-btn-fei-proprio .lb-sigle { background: var(--nuit); color: var(--or); font-size: 16px; font-weight: 800; }

/* ===================================================================== fiche épurée (22/10, demande de Fabien)
   « Quand on tape un cheval, organise sa fiche pour qu'elle soit plus épurée et moderne » : une carte sombre en tête
   (qui il est + 4 chiffres clés, séparés par de simples filets), des parties blanches au titre souligné d'or, le
   détail (hauteurs, derniers mois) rangé derrière un bouton écrit. Sélecteurs préfixés .s-fiche : passent devant. */
.s-fiche .fs-hero { position: relative; margin: 6px 0 0; padding: 22px 18px 16px; border-radius: 26px; color: #fff;
  background-color: var(--nuit); background-image: radial-gradient(130% 90% at 100% 0%, #1b2b4b 0%, var(--nuit) 62%);
  border: 1px solid rgba(201, 169, 97, .35); box-shadow: 0 22px 44px -22px rgba(8, 16, 31, .7); }
.s-fiche .fs-hero .s-tete-det { color: var(--creme-txt); font-size: 18px; font-weight: 600; }
.s-fiche .fs-hero .s-nom { color: #fff; font-size: 38px; line-height: 1.08; margin-top: 6px; }
.s-fiche .fs-hero .s-par { color: var(--or); font-size: 19px; margin-top: 8px; }
.s-fiche .fs-hero .s-tete-pays { gap: 8px; margin-top: 14px; color: #fff; }
.s-fiche .fs-puce { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 18px; font-weight: 600; }
.s-fiche .fs-hero .s-avert { color: var(--creme-txt); }
.s-fiche .fs-hero .s-chiffres { gap: 0; margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.s-fiche .fs-hero .s-chiffre { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 14px 4px 10px 0; }
.s-fiche .fs-hero .s-chiffre:nth-child(2n) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.s-fiche .fs-hero .s-chiffre:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
.s-fiche .fs-hero .s-chiffre b { color: #fff; font-size: 30px; }
.s-fiche .fs-hero .s-chiffre-sf b { color: var(--or); }
.s-fiche .fs-hero .s-chiffre b.s-chiffre-date { font-size: 21px; }
.s-fiche .fs-hero .s-chiffre span { color: rgba(255, 255, 255, .78); font-size: 18px; }
.s-fiche .fs-hero .s-chiffre small { color: rgba(255, 255, 255, .6); }
.s-fiche .fs-actions { margin-top: 14px; gap: 10px; }

.s-fiche .fs-sommaire { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.s-fiche .fs-sommaire-titre { grid-column: 1 / -1; margin: 0 2px 2px; font-size: 18px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2); }
.s-fiche .fs-sommaire a { justify-content: center; text-align: center; min-height: 52px; padding: 6px 6px; border-radius: 14px;
  font-size: 18px; line-height: 1.2; box-shadow: none; border-color: var(--line); }

.s-fiche .s-sec:not(.s-sec-ouverte) { margin-top: 18px; padding: 22px 18px 20px; border-radius: 24px; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(8, 16, 31, .04), 0 10px 26px -16px rgba(8, 16, 31, .18); }
.s-fiche .s-sec > h2 { font-size: 25px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.s-fiche .s-sec > h2::before { content: ''; flex: none; width: 4px; height: 24px; border-radius: 2px; background: var(--or); }
.s-fiche .s-sec-ouverte > h2 { border-bottom: 0; padding-bottom: 0; }
.s-fiche .fs-plus { margin-top: 20px; }
.s-fiche .fs-plus > summary.s-btn { justify-content: center; }
.s-fiche .fs-plus > summary.s-btn::after { content: '▾'; margin-left: 8px; color: var(--or); }
.s-fiche .fs-plus .s-sous-titre { margin-top: 18px; }

@media (min-width: 760px) {
  .s-fiche .fs-hero { padding: 30px 30px 20px; }
  .s-fiche .fs-hero .s-nom { font-size: 48px; }
  .s-fiche .fs-hero .s-chiffre, .s-fiche .fs-hero .s-chiffre:nth-child(2n) { padding: 16px 16px 10px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .14); }
  .s-fiche .fs-hero .s-chiffre:first-child { padding-left: 0; border-left: 0; }
  .s-fiche .fs-sommaire { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.s-fiche .fs-pepite { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 18px;
  background: var(--or-pale); border: 1px solid var(--or); font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.s-fiche .fs-pepite svg { flex: none; color: #a8842f; margin-top: 2px; }
.s-fiche .s-sec-ouverte .fs-plus .s-bloc { margin-top: 14px; }
.s-fiche .s-sec-ouverte { border: 0; background: transparent; box-shadow: none; }

/* « Chez son cavalier » (22/10) : où est basé son cavalier actuel — là où le cheval vit le plus souvent */
.s-fiche .s-chez-cav { margin: 6px 0 14px; padding: 16px; border-radius: 20px; background: var(--ivoire); border: 1px solid var(--line); }
.s-fiche .s-chez-cav .s-btn { margin-top: 10px; }
.s-fiche .s-chez-cav .s-moyen a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; }

/* « Vérifier les liens » (22/10) */
.vl-liste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.vl-ligne { padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.vl-ligne .s-btn { margin-top: 10px; }
.vl-nom { font-size: 19px; }
.vl-etat { display: inline-block; margin-left: 6px; font-weight: 700; }
.vl-ok .vl-etat { color: #0a6b3b; }
.vl-introuvable .vl-etat, .vl-panne .vl-etat, .vl-muet .vl-etat, .vl-sans_cheval .vl-etat { color: #b42318; }
.vl-bloque .vl-etat { color: #8a5a00; }
.vl-introuvable, .vl-panne, .vl-muet, .vl-sans_cheval { border-color: #e9b4ae; }
.vl-main-titre { margin-top: 26px; }
.vl-resume { margin-top: 14px; }
.s-btn.vl-lancer { margin-top: 18px; }

/* Haut de « Chercher » (22/10, Fabien : « le haut n'est pas très bien aligné ») : lignes équilibrées (plus de mot seul
   sur la dernière ligne : « … en une seule / recherche. »), logo et textes sur le même axe que la carte de recherche. */
.simple .s-haut-accueil .s-accroche, .s-hero-sous, .s-titre-res { text-wrap: balance; }
.simple .s-haut-accueil .s-accroche { max-width: 19em; line-height: 1.3; }
.s-haut.s-haut-accueil { display: flex; flex-direction: column; align-items: center; }
.s-haut-accueil .s-logo-grand { margin: 0 auto; }
.s-accueil .s-hero-sous { max-width: 24em; margin-left: auto; margin-right: auto; padding: 0 4px; }

/* ===================================================================== accueil premium (22/10, Fabien : « plus joli,
   plus moderne et premium » ; capture iPhone : bande grise sous l'heure, « recherche. » seul sur sa ligne).
   Le bandeau nuit monte sous la barre d'état (fond de page nuit en haut), halo doré discret, filet or entre le logo et
   la phrase, la carte de recherche posée À CHEVAL sur le bandeau, l'explication en dessous, plus légère. */
html:has(body.s-accueil) { background: var(--nuit); }
body.s-accueil { background-color: var(--ivoire); background-image: linear-gradient(var(--nuit) 0 120px, var(--ivoire) 120px); }   /* le haut nuit : Safari teinte la barre d'état en nuit */
.s-haut.s-haut-accueil { padding: calc(30px + env(safe-area-inset-top, 0px)) var(--g-droite) 66px var(--g-gauche);
  border-radius: 0 0 34px 34px; background-color: var(--nuit);
  background-image: radial-gradient(90% 70% at 50% 0%, rgba(201, 169, 97, .16) 0%, rgba(201, 169, 97, 0) 60%),
                    radial-gradient(140% 90% at 50% 0%, #182846 0%, var(--nuit) 70%);
  box-shadow: 0 24px 48px -30px rgba(8, 16, 31, .75); }
.simple .s-haut-accueil .s-logo-grand img { width: 112px; }
.simple .s-haut-accueil .s-accroche { margin-top: 0; max-width: none; font-size: 24px; line-height: 1.3; letter-spacing: .005em; }
.s-haut-accueil .s-accroche::before { content: ''; display: block; width: 44px; height: 2px; margin: 18px auto 16px;
  border-radius: 2px; background: linear-gradient(90deg, rgba(201, 169, 97, 0), var(--or), rgba(201, 169, 97, 0)); }
.s-haut-accueil .s-accroche > span { display: block; }
.s-accueil .s-page { padding-top: 0; }
.s-accueil .s-hero .s-cherche { position: relative; z-index: 1; margin-top: -42px; padding: 22px 20px 20px; border-radius: 28px;
  background: #fff; border: 1px solid rgba(201, 169, 97, .35);
  box-shadow: 0 2px 4px rgba(8, 16, 31, .05), 0 22px 44px -24px rgba(8, 16, 31, .45); }
.s-accueil .s-cherche-lbl { font-size: 18px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.s-accueil .s-champ-boite:focus-within .s-champ { border-color: var(--or); box-shadow: 0 0 0 4px rgba(201, 169, 97, .22); }
.s-accueil .s-hero-sous { margin: 22px auto 0; max-width: 21em; font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 759px) {
  .s-saisie .s-haut-accueil { display: none; }
  .s-saisie.s-accueil .s-hero .s-cherche { margin-top: 0; }
  body.s-saisie.s-accueil { background: var(--ivoire); }
  html:has(body.s-saisie.s-accueil) { background: var(--ivoire); }
}
@media (min-width: 760px) {
  .s-haut.s-haut-accueil { padding-bottom: 84px; }
  .simple .s-haut-accueil .s-logo-grand img { width: 140px; }
  .simple .s-haut-accueil .s-accroche { font-size: 32px; }
}
/* 23/10 : « Fiche pas à jour ? Prévenir Thibaut » */
.s-maj { margin-top: 18px; }
.s-maj-ok { font-size: 18px; font-weight: 700; padding: 12px 14px; border-radius: 14px; background: #ecfdf5; color: #065f46; border: 2px solid #059669; margin-bottom: 10px; }

/* ===================================================================== fiche EN ONGLETS (23/10/2026, Thibaut : « quand
   j'appuie sur Résultats, Cavaliers ou Vidéos, que ça aille sur un autre onglet, détaillé ») — fiche_onglets.py.
   Sur la fiche, « En détail » : une ligne par onglet (comme les Réglages de l'iPhone : un mot, ce qu'on y trouve, une
   flèche), chaque ligne OUVRE une page ; sur chaque page : « ‹ Retour à la fiche » en haut et en bas, le nom du cheval,
   la barre des onglets. Texte ≥ 18 px, cibles ≥ 56 px, un mot sur chaque bouton, contraste fort. */
.fo-detail { margin-top: 22px; }
.fo-detail-titre { margin: 0 4px 10px; font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.fo-lignes { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--ombre); overflow: hidden; }
.fo-lignes li + li { border-top: 1px solid var(--line); }
.fo-ligne { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px 12px 16px; color: var(--ink);
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color var(--vitesse); }
.simple a.fo-ligne { color: var(--ink); }
.fo-ligne:active { background: var(--or-pale); }
@media (hover: hover) { .fo-ligne:hover { background: var(--ivoire); } }
.fo-ligne-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--nuit); color: var(--or); }
.fo-ligne-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fo-ligne-txt b { font-size: 21px; font-weight: 700; line-height: 1.2; }
.fo-ligne-txt small { font-size: 18px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.fo-ligne-fleche { flex: none; color: #7d8592; }
.fo-ligne-fleche svg { width: 24px; height: 24px; }
/* le gros bouton « Tous les … » au bas d'une partie de la fiche */
.s-sec .s-btn.fo-tous { margin-top: 16px; }
.s-btn.fo-tous svg { color: var(--or); }
.s-btn.fo-tous:not(.s-btn-primaire) svg { color: var(--nuit); }

/* page d'onglet : en-tête, barre des onglets, retours */
.s-retour.fo-retour { min-height: 56px; padding: 8px 18px 8px 12px; font-size: 19px; }
.fo-tete { padding: 6px 2px 2px; }
.fo-tete-onglet { font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a5c1f; }
.fo-nom { font-size: 32px; margin-top: 4px; }
.fo-page .s-sec .s-vh + .s-aide { margin-top: 0; }
.fo-tete-det { margin-top: 6px; font-size: 18px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.fo-barre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 18px 0 4px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--ombre); }
.fo-barre-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fo-barre-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fo-onglet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px;
  padding: 6px 4px; border-radius: 15px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700;
  line-height: 1.15; text-align: center; -webkit-tap-highlight-color: transparent; }
.simple a.fo-onglet { color: var(--ink); }
.fo-onglet svg { color: var(--ink-2); }
.fo-onglet.on, .simple a.fo-onglet.on { background: var(--nuit); color: #fff; }
.fo-onglet.on svg { color: var(--or); }
.fo-onglet:active { transform: scale(.98); }
@media (min-width: 560px) { .fo-barre-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fo-barre-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fo-pied { margin-top: 26px; }
.s-btn.fo-retour-bas { min-height: 60px; font-size: 20px; }
.fo .s-sec { scroll-margin-top: calc(84px + env(safe-area-inset-top, 0px)); }

/* résultats : chiffres + dernier résultat (carte nuit, comme l'en-tête de la fiche) */
.s-fiche .fs-hero.fo-resume { margin-top: 16px; padding-top: 6px; }
.s-fiche .fs-hero.fo-resume .s-chiffres { margin-top: 0; border-top: 0; }
.fo-dernier { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.fo-dernier-titre { font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.fo-dernier-txt { margin-top: 4px; font-size: 19px; font-weight: 600; color: #fff; line-height: 1.35; }
.fo-dernier-res { margin-top: 8px; font-size: 18px; color: var(--creme-txt); }

/* le résultat d'un parcours : une pastille écrite (jamais une couleur seule) */
.fo-res { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.fo-res-sf { background: #e3f4ea; color: #0a5c33; }
.fo-res-faute { background: #f1ede3; color: #3b3324; }
.fo-res-elim { background: #fbe9e7; color: #8f1d12; }
.fo-res-inconnu { background: #eceef2; color: var(--ink-2); }

/* sans faute par hauteur */
.fo-ph { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.fo-ph-ligne { padding: 12px 2px; }
.fo-ph-ligne + .fo-ph-ligne { border-top: 1px solid var(--line-2); }
.fo-ph-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fo-ph-h { font-size: 20px; }
.fo-ph-pct { font-size: 20px; text-align: right; }
.fo-ph-l2 { margin-top: 2px; font-size: 18px; color: var(--ink-2); }
.fo-ph-barre { display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: #e9e4d6; overflow: hidden; }
.fo-ph-barre i { display: block; height: 100%; background: var(--nuit); border-radius: 4px; }

/* filtres : de gros menus natifs (la roue de l'iPhone) et trois gros choix écrits */
.fo-filtres { display: grid; gap: 14px; margin: 4px 0 18px; }
.fo-filtre { margin: 0; padding: 0; border: 0; min-width: 0; }
.fo-filtre > label, .fo-filtre > legend { display: block; margin: 0 0 6px 2px; padding: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.fo-filtre select { display: block; width: 100%; min-height: 58px; padding: 10px 44px 10px 16px; border: 2px solid var(--cadre);
  border-radius: 16px; background-color: #fff; color: var(--ink); font: inherit; font-size: 19px; font-weight: 600;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.fo-choix { display: grid; grid-template-columns: .75fr 1fr 1.3fr; gap: 6px; }
.fo-choix-un { position: relative; display: block; }
.fo-choix-un input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fo-choix-un span { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 6px 2px; letter-spacing: -.01em;
  border: 2px solid var(--line); border-radius: 16px; background: #fff; font-size: 18px; font-weight: 700; text-align: center; line-height: 1.15; }
.fo-choix-un input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.fo-choix-un input:focus-visible + span { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.fo-compte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 2px 10px; font-size: 19px; }
.fo-tout { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--or-pale);
  color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; }
.simple a.fo-tout { color: var(--ink); }
.fo-filtres.hx-request ~ .fo-liste { opacity: .6; }

/* la liste des parcours */
.fo-saison { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  margin: 22px 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--nuit); color: #fff; }
.fo-parcours > .fo-saison:first-child { margin-top: 4px; }
.fo-saison-an { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; }
.fo-saison-chiffres { font-size: 18px; font-weight: 600; color: var(--creme-txt); }
.fo-p { margin-top: 10px; padding: 14px 16px 6px; border: 1px solid var(--line); border-left: 5px solid #cfc6b0; border-radius: 16px; background: #fff; }
.fo-p-sf { border-left-color: #0a7a42; }
.fo-p-elim { border-left-color: #b4321f; }
.fo-p-tete { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.fo-p-lieu { margin-top: 2px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.fo-p-epreuve { margin-top: 4px; font-size: 18px; color: var(--ink-2); line-height: 1.35; }
.fo-p-res { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 18px; }
.fo-p-rang { font-weight: 700; }
.fo-p-det { margin-top: 6px; font-size: 18px; color: var(--ink-2); line-height: 1.35; }
.fo-p-source { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; margin-top: 8px;
  border-top: 1px solid var(--line-2); color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
.simple a.fo-p-source { color: var(--ink); }
.fo-p-source svg { flex: none; width: 20px; height: 20px; color: #7d8592; }
.fo-suite { margin-top: 16px; }
.fo-plus.hx-request { opacity: .7; }
.fo-note { margin-top: 14px; }
.fo-masques { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.fo-masque { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 16px; background: var(--ivoire); font-size: 18px; }
.fo-masque .fo-p-source { margin-top: 6px; }

/* cavaliers */
.fo-cavs > .fo-cav { padding-bottom: 6px; }
.fo-cav-kv { margin: 8px 0 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; }
.fo-cav-kv > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 10px 14px; }
.fo-cav-kv > div + div { border-top: 1px solid var(--line-2); }
.fo-cav-kv dt { font-size: 18px; color: var(--ink-2); }
.fo-cav-kv dd { margin: 0 0 0 auto; font-size: 18px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fo-cav .s-liste-liens { margin-top: 12px; }
.fo-cav .s-lien-interne { min-height: 62px; }

/* vidéos : une carte par plateforme */
.fo-plateformes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fo-plateforme { padding: 14px 14px 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--ivoire); }
.fo-plateforme-nom { font-size: 21px; }
.fo-plateforme-aide { margin-top: 4px; font-size: 18px; color: var(--ink-2); }
.fo-plateforme .s-liste-liens { margin: 10px 0 10px; }
@media (min-width: 760px) {
  .fo-nom { font-size: 44px; }
  .fo-filtres { grid-template-columns: 1fr 1.4fr 1fr; align-items: end; }
}
/* 24/10 : résultats FFE récents copiés par l'équipe */
.rc-bouton { margin: 10px 0 16px; }
.rc-etapes { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.rc-zone { min-height: 180px; font-size: 16px; }
.rc-liste { list-style: none; padding: 0; display: grid; gap: 10px; margin: 12px 0; }
.rc-ligne { font-size: 18px; padding: 12px 14px; border: 2px solid #d6d3c4; border-radius: 14px; background: #fff; display: grid; gap: 4px; }
/* 24/10 : photo portrait et classement mondial sur la fiche cavalier */
.s-photo-cav { flex: none; display: block; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 3px solid var(--or, #c8a96a); background: #eee; }
.s-photo-cav img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.s-nom-bloc { min-width: 0; }
.s-longines { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
/* 24/10 : photo du cavalier dans les listes de la fiche cheval */
.s-avatar-photo { overflow: hidden; padding: 0; background: #eee; }
.s-avatar-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
/* 24/10 : nom du cavalier jamais coupé au milieu d'un mot (simple.js l'ajuste à la largeur) */
.fc .s-tete-nom { align-items: center; }
.fc .s-nom-bloc { flex: 1 1 auto; min-width: 0; }
.s-nom-ajuste { overflow-wrap: normal; word-break: keep-all; hyphens: none; -webkit-hyphens: none; font-size: clamp(26px, 8.5vw, 40px); }
.s-nom-mot { display: inline-block; white-space: nowrap; }
.s-nom-casse .s-nom-mot { white-space: normal; overflow-wrap: anywhere; display: inline; }

/* 24/10 (Fabien) : chaque parcours dans le temps, Top 3 / Top 10, sans faute par cavalier, vidéo par parcours */
.fo-periodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 12px; }
.fo-periode { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 6px 4px; border: 2px solid var(--line);
  border-radius: 14px; background: #fff; font-size: 18px; font-weight: 700; text-align: center; text-decoration: none; }
.simple a.fo-periode { color: var(--ink); }
.simple a.fo-periode-on { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.g-parcours .g-pt { width: 12px; height: 12px; box-shadow: 0 0 0 2px #fff; }
.g-parcours .g-pt-sf, .g-pastille.g-pt-sf { background: #0a7a4a; }
.g-pt-faute { background: #c08a2b; }
.g-pt-elim { background: #c62828; }
.g-pt-inconnu { background: #9aa1ac; }
.g-parcours .g-pt-top { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f2937; }
.g-pastille-top { background: #fff; box-shadow: inset 0 0 0 3px #1f2937; }
.g-h { position: absolute; left: -44px; width: 40px; text-align: right; transform: translateY(50%); padding-right: 4px; background: #fff; font-size: 16px; color: var(--ink-2); line-height: 1; }
.g-parcours .g-plot { left: 44px; }
.g-axe-dates { margin-left: 44px; height: 32px; }
.g-axe-dates span:first-child { transform: none; }
.g-axe-dates span:last-child { transform: translateX(-100%); }
.fo-top { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 16px; font-weight: 800; }
.fo-top-3 { background: #1f2937; color: #fff; }
.fo-top-10 { background: #e5e7eb; color: #1f2937; }
.fo-p-video > span { display: inline-flex; align-items: center; gap: 10px; }
.fo-p-video small { display: block; font-size: 16px; color: var(--ink-2); font-weight: 400; }
.fo-vc { list-style: none; margin: 0; padding: 0; }
.fo-vc li + li { border-top: 1px solid var(--line-2); }
.s-cav-barre { max-width: 320px; margin: 8px 0 10px; }
.fo-p-video-vraie { display: block; margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.simple a.fo-p-video-vraie { color: var(--ink); }
.fo-p-video-vraie img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.fo-vv-txt { display: block; padding: 10px 14px 12px; }
.fo-vv-txt b { display: block; font-size: 18px; }
.fo-vv-txt small { display: block; margin-top: 2px; font-size: 16px; color: var(--ink-2); }
.fo-vc .fo-p-video-vraie { margin: 10px 0; }
/* 08/11/2026 : « ▶ Vidéo » — le lien direct vers la vidéo du parcours (videos_site.py), sur la fiche et dans les résultats d'une épreuve */
.fo-vid-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; padding: 6px 16px 6px 8px; border-radius: 14px;
  border: 1px solid var(--nuit); background: var(--nuit); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.simple a.fo-vid-btn, .simple a.fo-vid-btn:visited { color: #fff; }
.fo-vid-btn .lb-logo { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #fff; overflow: hidden; }
.fo-vid-btn .lb-logo img { display: block; width: 26px; height: 26px; object-fit: contain; }
.fo-vid-btn .lb-sigle { background: var(--or); color: var(--nuit); font-size: 16px; font-weight: 800; }
.fo-vid-btn small { font-size: 16px; font-weight: 400; color: var(--creme-txt, #ece6d6); }
.fo-vid-btn:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
/* 08/11 : « Replay sur ClipMyHorse » = bouton de REPLI (page du concours, jamais à la place d'une vraie vidéo) : contour, fond clair, moins fort que « ▶ Vidéo » */
.fo-vid-btn.fo-vid-btn-repli { background: #fff; border-color: var(--ink-2); font-size: 16px; font-weight: 600; }
.simple a.fo-vid-btn.fo-vid-btn-repli, .simple a.fo-vid-btn.fo-vid-btn-repli:visited { color: var(--ink); }
.fo-vid-btn.fo-vid-btn-repli small { color: var(--ink-2); font-size: 16px; }
/* 09/11 (K2) : « ClipMyHorse » = repli de DERNIER rang (la recherche du cheval sur ClipMyHorse, videos_site.bouton_repli_cmh), sur chaque
   résultat sans vidéo : plus discret encore que « Replay » — contour fin, fond transparent, texte secondaire, pastille réduite
   (jamais sous 16 px : règle de l'interface simple, test_interface_premium) */
.fo-vid-btn.fo-vid-btn-cmh { min-height: 44px; padding: 4px 14px 4px 6px; background: transparent; border-color: var(--line); font-size: 16px; font-weight: 600; }
.simple a.fo-vid-btn.fo-vid-btn-cmh, .simple a.fo-vid-btn.fo-vid-btn-cmh:visited { color: var(--ink-2); }
.fo-vid-btn.fo-vid-btn-cmh .lb-logo { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line-2); }
.fo-vid-btn.fo-vid-btn-cmh .lb-logo img { width: 24px; height: 24px; }
.fo-vid-btn.fo-vid-btn-cmh small { color: var(--ink-3); font-size: 16px; }
.ls-video { margin: 4px 0 0; }

/* 24/10 (Thibaut) : onglet Résultats — le petit bouton « Tous les parcours (N) » (la liste a sa page), le graphique de
   chaque parcours (une FORME par résultat, nombre de fautes dans le point, Top 3 cerclé d'or, toucher = le détail) et
   « sans faute hauteur par hauteur » face aux autres chevaux de son cavalier */
.fo-btn-parcours { display: flex; align-items: center; gap: 10px; min-height: 56px; margin: 16px 0 0; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 18px; font-weight: 700; text-decoration: none;
  box-shadow: var(--ombre-btn); -webkit-tap-highlight-color: transparent; }
.simple a.fo-btn-parcours { color: var(--ink); }
.fo-btn-parcours span { flex: 1 1 auto; min-width: 0; }
.fo-btn-parcours svg { color: var(--ink-2); }
.fo-btn-parcours:active { transform: scale(.99); background: #f6f7f9; }
.g-parcours .g-zone { height: 196px; }
.g-parcours .g-plot { top: 16px; bottom: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-parcours .g-pt { z-index: 1; width: 14px; height: 14px; font-size: 0; color: transparent; }
.g-parcours .g-pt-n { z-index: 2; width: 19px; height: 19px; font-size: 13px; font-weight: 800; line-height: 19px; text-align: center;
  color: #1f1400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.g-parcours .g-pt-sf { background: #0a7a4a; }
.g-parcours .g-pt-faute, .g-pastille.g-pt-faute { background: #e8952b; }
.g-parcours .g-pt-elim, .g-pastille.g-pt-elim { border-radius: 3px;    /* carré rouge marqué d'une croix blanche (dessinée, pas écrite) */
  background: linear-gradient(45deg, transparent 41%, #fff 41%, #fff 59%, transparent 59%) center / 64% 64% no-repeat,
    linear-gradient(-45deg, transparent 41%, #fff 41%, #fff 59%, transparent 59%) center / 64% 64% no-repeat, #c62828; }
.g-parcours .g-pt-inconnu, .g-pastille.g-pt-inconnu { z-index: 0; background: #fff; box-shadow: inset 0 0 0 2px #8b929d, 0 0 0 2px #fff; }
.g-parcours .g-pt-top { box-shadow: 0 0 0 1.5px #fff, 0 0 0 4px #b8902f; }
.g-parcours .g-pt-inconnu.g-pt-top { box-shadow: inset 0 0 0 2px #8b929d, 0 0 0 1.5px #fff, 0 0 0 4px #b8902f; }
.g-pastille.g-pastille-top { background: #fff; box-shadow: inset 0 0 0 3px #b8902f; }
.g-parcours .g-pt-choisi { z-index: 3; transform: translate(-50%, 50%) scale(1.4); outline: 2px solid var(--ink); outline-offset: 3px; }
.g-parcours .g-legende { gap: 6px 16px; font-size: 17px; color: var(--ink); }
.g-parcours .g-legende b { font-weight: 800; font-variant-numeric: tabular-nums; }
.g-parcours .g-pastille { width: 14px; height: 14px; }
.g-info { margin: 10px 0 0; padding: 10px 12px; min-height: 52px; border-radius: 12px; background: var(--fond-2); font-size: 18px;
  line-height: 1.4; color: var(--ink-2); }
.g-info b { display: block; color: var(--ink); font-weight: 700; }
.g-info.on { background: var(--or-pale); color: var(--ink); }
.fo-periodes.fo-periodes-3 { grid-template-columns: repeat(3, 1fr); }
.fo-ff-qui-txt { margin: 2px 2px 4px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.fo-ff-note { margin: 0 2px 8px; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.fo-ff-ligne { padding: 14px 2px 12px; }
.fo-ff-ligne + .fo-ff-ligne { border-top: 1px solid var(--line-2); }
.fo-ff-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.fo-ff-v { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.fo-ff-v-mieux { background: #e3f4ea; color: #0a5c33; }
.fo-ff-v-pareil { background: #eceef2; color: var(--ink-2); }
.fo-ff-v-moins { background: #fdeee0; color: #7a3300; }
.fo-ff-c { margin-top: 10px; }
.fo-ff-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 600; }
.fo-ff-qui { min-width: 0; }
.fo-ff-cav .fo-ff-qui { font-weight: 500; color: var(--ink-2); }
.fo-ff-pct { font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fo-ff-barre { display: block; height: 10px; margin-top: 4px; border-radius: 5px; background: #ece8dc; overflow: hidden; }
.fo-ff-barre i { display: block; height: 100%; border-radius: 5px; background: var(--nuit); }
.fo-ff-cav .fo-ff-barre i { background: #9aa1ac; }
.fo-ff-l2 { margin-top: 3px; font-size: 18px; line-height: 1.35; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fo-ff-gris { color: #5f6673; font-style: italic; }

/* 26/10 (Fabien : « laisse juste français et anglais, plus petit, plus joli ») : langues de l'accueil = un petit
   sélecteur à deux cases, centré, discret (le choix reste écrit en toutes lettres, avec son drapeau) */
.simple .s-langues { display: inline-flex; flex-wrap: nowrap; gap: 4px; margin: 14px auto 0; padding: 4px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(8, 16, 31, .06); }
.s-pied:has(.s-langues) { text-align: center; }
.simple .s-langues a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-size: 16px; font-weight: 600; letter-spacing: .01em; text-decoration: none; }
.simple .s-langues a .s-drapeau { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(8, 16, 31, .12); }
.simple .s-langues a.on { background: var(--nuit); color: #fff; }
.simple .s-langues a.on .s-drapeau { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

/* 26/10 (Fabien : « la fiche cavalier au même style ») : la carte sombre de la fiche d'un cheval, avec sa photo */
.s-fiche .fs-hero .s-tete-nom { margin-top: 10px; }
.s-fiche .fs-hero .s-longines { color: var(--or); }
.s-fiche .fs-hero .s-longines-maj, .s-fiche .fs-hero .s-photo-credit { color: rgba(255, 255, 255, .72); margin-top: 8px; }
.s-fiche .fs-hero .s-avatar-cav { background: var(--or-pale); color: var(--nuit); }
.s-fiche .fs-hero .fs-puce span { color: #fff; }

/* Onglet Résultats simplifié (26/10) : le détail est replié dans un seul bouton */
.fo-plus { margin: 18px 0 0; }
.fo-plus > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; cursor: pointer; list-style: none; }
.fo-plus > summary::-webkit-details-marker { display: none; }
.fo-plus > summary span { flex: 1 1 auto; }
.fo-plus[open] > summary svg { transform: rotate(90deg); }

/* Onglet Pedigree (27/10) : l'arbre père / mère / père de la mère */
.fo-ped { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: center; margin: 4px 0 18px; }
.fo-ped-col { display: flex; flex-direction: column; gap: 10px; }
.fo-ped-mere { display: flex; flex-direction: column; gap: 6px; }
.fo-ped-case { margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--ombre); line-height: 1.25; }
.fo-ped-case small { display: block; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.fo-ped-case b { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.fo-ped-nom { background: var(--nuit); color: #fff; font-size: 20px; font-weight: 800; text-align: center; border-color: var(--nuit); }
.fo-ped-pm { margin-left: 14px; }
.fo-ped-inconnu b { font-weight: 600; color: var(--ink-2); }

/* ===================================================================== fiche CAVALIER, version simplifiée (8/11/2026, Thibaut :
   « plus propre, dans le style des fiches de chevaux, un petit bouton Derniers résultats dès l'arrivée »).
   Le bouton « Derniers résultats » (or) juste sous l'en-tête ; la liste des chevaux en lignes plates ; les liens vers
   d'autres sites repliés. Texte ≥ 18 px, cibles ≥ 56 px. */
.s-fiche .fc-btn-resultats { background: var(--or); border-color: var(--or); color: var(--nuit); font-weight: 800; }
.simple a.fc-btn-resultats, .simple a.fc-btn-resultats:hover { color: var(--nuit); background: var(--or); }
.s-fiche .fc-btn-resultats svg { color: var(--nuit); }
.s-fiche .fc-btn-resultats:active { filter: brightness(.94); }
.s-fiche .fs-hero .s-tete-pays .s-longines { margin: 0; color: var(--or); font-weight: 700; }
.s-fiche .fs-hero .s-tete-pays .s-longines { border-color: rgba(201, 169, 97, .5); }
.s-sec .fc-sous-titre { display: flex; align-items: center; gap: 8px; margin: 18px 2px 8px; font-size: 18px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-2); font-family: inherit; }
.s-sec .fc-sous-titre:first-of-type { margin-top: 6px; }
.fc-chevaux { list-style: none; margin: 0 0 6px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.fc-chevaux li + li { border-top: 1px solid var(--line-2); }
.fc-ch { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 12px 12px 16px; color: var(--ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent; }
.simple a.fc-ch { color: var(--ink); }
.fc-ch:active { background: var(--or-pale); }
@media (hover: hover) { .fc-ch:hover { background: var(--ivoire); } }
.fc-ch-corps { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-ch-corps > span { display: block; }
.fc-ch-nom { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.fc-ch-det { font-size: 18px; line-height: 1.4; color: var(--ink); }
.fc-ch-stats { font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.fc-ch-fleche { flex: none; color: #7d8592; }
.fc-ch-fleche svg { width: 24px; height: 24px; }
.s-sec-liste .s-plus > .fc-chevaux { margin-top: 14px; }
/* « Ses résultats sur d'autres sites » : une carte repliée, titre + flèche */
.s-fiche .fc-replie > details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; min-height: 56px; -webkit-tap-highlight-color: transparent; }
.s-fiche .fc-replie > details > summary::-webkit-details-marker { display: none; }
.s-fiche .fc-replie > details > summary h2 { margin: 0; padding: 0; border: 0; flex: 1 1 auto; min-width: 0; font-size: 22px; }
.fc-replie-fleche { flex: none; color: #7d8592; transition: transform var(--vitesse, .15s); }
.fc-replie-fleche svg { width: 24px; height: 24px; transform: rotate(90deg); }
.fc-replie > details[open] .fc-replie-fleche svg { transform: rotate(-90deg); }
.fc-replie > details[open] > summary { margin-bottom: 12px; }
.fc-notes { margin: 18px 4px 0; }
.fc-notes .s-texte { margin-top: 6px; font-size: 18px; }

/* 18/11 : « Meilleurs résultats » en haut de la fiche cavalier (3 lignes compactes, lisibles au téléphone ; la section est
   déjà une carte : pas de seconde bordure) */
.fc-palm { list-style: none; margin: 0; padding: 0; }
.fc-palm-l { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.fc-palm-l + .fc-palm-l { border-top: 1px solid var(--line-2); }
.fc-palm-i { flex: none; font-size: 24px; line-height: 1.25; }
.fc-palm-c { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fc-palm-t { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.fc-palm-h { font-size: 16px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.simple .fc-palm a { color: inherit; }
.simple .fc-palm .fc-palm-h a { text-decoration: none; }
