/* BeandBus — annuaire · feuille de styles de la page */
:root { --hdr-max: 1240px; --leading: 28px; --half: 14px; --edge: clamp(20px, 5vw, 72px);
  --ink: var(--color-neutral-900);
  --ink-78: color-mix(in srgb, var(--color-neutral-900) 78%, transparent);
  --ink-64: color-mix(in srgb, var(--color-neutral-900) 70%, transparent);
  --ink-55: color-mix(in srgb, var(--color-neutral-900) 62%, transparent);
  --flash: oklch(0.685 0.205 24);
  --flash-deep: oklch(0.495 0.190 24);
  --flash-tint: oklch(0.945 0.050 24);
  --flash-ink: oklch(0.255 0.090 24);
  --ok: oklch(0.50 0.115 155);
  --ok-tint: oklch(0.945 0.040 155);
}
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); text-wrap: pretty;
  background: radial-gradient(900px 460px at 88% -200px, color-mix(in srgb, var(--color-accent-200) 32%, transparent), transparent 64%),
    var(--color-neutral-100); }
a { color: var(--color-accent-700); text-decoration: none; }
a:where(:hover) { color: var(--color-accent-600); }
:focus-visible { outline: 2px solid var(--color-accent-600); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--edge); }

/* — chrome — */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--space-4);
  height: 58px; padding-inline: max(var(--edge), calc((100% - 1240px) / 2 + var(--edge)));
  background: color-mix(in srgb, var(--color-neutral-100) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid color-mix(in srgb, var(--color-neutral-900) 7%, transparent); }
.nav a { font-size: 14px; line-height: 21px; white-space: nowrap; color: var(--color-neutral-700); }
.nav a:hover { color: var(--color-accent-700); }
.nav .brand { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.nav .sp { flex: 1; }
.nav .cta { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-md);
  color: var(--color-accent-700); border: 1px solid var(--color-accent-600); }
.nav .cta:hover { background: color-mix(in srgb, var(--color-accent-200) 50%, transparent); }
@media (max-width: 760px) { .nav a:not(.brand):not(.cta) { display: none; } }

/* — en-tête — */
.head { padding: calc(1.5 * var(--leading)) 0 var(--leading); }
.crumb { font-size: 13px; line-height: 20px; margin: 0 0 var(--space-3); color: var(--ink-55); }
h1 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.022em; margin: 0; }
.head .sub { font-size: 16px; line-height: 26px; margin: var(--space-3) 0 0; color: var(--ink-64);
  max-width: 62ch; }
.head .sub b { color: var(--ink); font-weight: 500; }

/* — barre de recherche : point de départ, capacité, dates — */
.search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 6px; padding: 6px; margin-top: var(--leading); border-radius: 18px;
  background: var(--color-neutral-100);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--color-neutral-900) 12%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--color-neutral-900) 9%, transparent); }
.sc { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 13px;
  border-radius: 13px; min-width: 0;
  background: color-mix(in srgb, var(--color-section) 6%, transparent); }
.sc:focus-within { background: color-mix(in srgb, var(--color-section) 12%, transparent);
  box-shadow: inset 0 0 0 2px var(--color-section); }
.sc label { font-size: 11px; line-height: 15px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-section); font-weight: 600; }
.sc input { border: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 0; min-width: 0; font-feature-settings: "tnum" 1; }
.sc input::placeholder { color: color-mix(in srgb, var(--color-section) 55%, transparent); }
.sc input:focus { outline: none; }
.search .go { align-self: stretch; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px;
  border-radius: 13px; font-size: 15px; font-weight: 600; white-space: nowrap;
  background: var(--flash); color: var(--flash-ink);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--flash) 36%, transparent); }
.search .go:hover { color: var(--flash-ink); background: color-mix(in srgb, var(--flash) 92%, black); }
.search .go svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .search { grid-template-columns: 1fr 1fr; }
  /* les deux dates ne tiennent pas dans une demi-ligne (« dd/r ») : ligne entière */
  .search .sc:has(.sc-pair) { grid-column: 1 / -1; }
  .search .go { grid-column: 1 / -1; justify-content: center; padding: 13px 22px; } }

.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none;
  margin: 0; padding: 5px; max-height: 250px; overflow-y: auto; min-width: 230px;
  border-radius: var(--radius-md); background: var(--color-neutral-100);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-neutral-900) 18%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--color-neutral-900) 9%, transparent); }
.ac-list[hidden] { display: none; }
.ac-i { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 20px; cursor: pointer; }
.ac-i svg { flex: none; width: 14px; height: 14px; color: var(--color-section); }
.ac-i:hover, .ac-i.on { background: color-mix(in srgb, var(--color-section) 10%, transparent); }

/* — corps : filtres + résultats — */
.body { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px);
  padding: var(--leading) 0 calc(3 * var(--leading)); align-items: start; }
/* collant, mais jamais plus haut que l'écran : à 1440×900 le panneau (1150 px) laissait « Qualité de
   service » et « Tout réinitialiser » hors champ jusqu'au bas de la liste. */
.filters { position: sticky; top: 76px; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0;
  max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; }
.filt-toggle { display: none; }
.fbox { padding: var(--space-4); border-radius: 16px; background: var(--color-neutral-100);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-neutral-900) 9%, transparent); }
.fbox + .fbox { margin: 0; }
.fl { font-size: 11.5px; line-height: 18px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-55); margin: 0 0 var(--space-3); display: flex; align-items: baseline; gap: 7px; }
.fl i { font-style: normal; margin-left: auto; font-size: 11px; color: var(--color-accent-700); cursor: pointer; }
.fl i:hover { text-decoration: underline; }
.segs { display: flex; gap: 4px; padding: 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-neutral-900) 5%, transparent); }
.seg { flex: 1; font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 4px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink-64); }
.seg[aria-selected="true"] { background: var(--color-neutral-100); color: var(--ink); font-weight: 500;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-neutral-900) 12%, transparent); }
.rows { display: flex; flex-direction: column; gap: 3px; }
.row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 4px; border-radius: 8px;
  font-size: 13.5px; line-height: 20px; color: var(--ink-78); }
.row:hover { background: color-mix(in srgb, var(--color-neutral-900) 4%, transparent); }
.row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-neutral-900) 24%, transparent); }
.row input:checked + .box { background: var(--color-section); color: var(--color-neutral-100); box-shadow: none; }
.row input:focus-visible + .box { outline: 2px solid var(--color-accent-600); outline-offset: 2px; }
.row .cnt { margin-left: auto; font-size: 11.5px; color: var(--ink-55); font-feature-settings: "tnum" 1; }
.rng { display: flex; align-items: center; gap: 12px; }
.rng input[type="range"] { flex: 1; accent-color: var(--color-section); min-width: 0; }
.rng b { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; line-height: 24px; font-feature-settings: "tnum" 1; white-space: nowrap; }
.rng-note { font-size: 12px; line-height: 18px; margin: 8px 0 0; color: var(--ink-55); font-feature-settings: "tnum" 1; }
.cap-in { display: flex; align-items: center; gap: 8px; }
.cap-in input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 11px;
  border-radius: var(--radius-md); color: var(--ink); font-feature-settings: "tnum" 1;
  background: color-mix(in srgb, var(--color-section) 5%, var(--color-neutral-100));
  border: 1px solid color-mix(in srgb, var(--color-section) 22%, transparent); }
.cap-in input:focus { outline: none; border-color: var(--color-section); }
.cap-in span { font-size: 12.5px; color: var(--ink-55); white-space: nowrap; }
.reset { width: 100%; font: inherit; font-size: 13px; cursor: pointer; padding: 9px 12px;
  border-radius: var(--radius-md); background: transparent; color: var(--ink-64);
  border: 1px solid color-mix(in srgb, var(--color-neutral-900) 16%, transparent); }
.reset:hover { border-color: var(--flash-deep); color: var(--flash-deep); }

/* — résultats — */
.res-top { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.res-n { font-size: 14.5px; line-height: 22px; margin: 0; font-feature-settings: "tnum" 1; }
.res-n b { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-55); }
.sort select { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: var(--radius-md); color: var(--ink);
  background: var(--color-neutral-100);
  border: 1px solid color-mix(in srgb, var(--color-neutral-900) 14%, transparent); }
.chips-on { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-3); }
.chip-on { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 20px;
  padding: 3px 6px 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--color-section) 10%, transparent);
  color: var(--color-section); font-weight: 500; }
.chip-on button { font: inherit; font-size: 13px; line-height: 1; cursor: pointer; border: 0; width: 18px; height: 18px;
  border-radius: 50%; background: color-mix(in srgb, var(--color-section) 18%, transparent); color: var(--color-section); }
.chip-on button:hover { background: var(--color-section); color: var(--color-neutral-100); }
/* La croix ne fait que 18 px : visuellement c'est bien, mais au doigt c'est trop
   petit. On étend la zone cliquable à 36 px avec un pseudo-élément, sans rien
   changer à l'apparence ni pousser les chips voisins. */
.chip-on button { position: relative; }
.chip-on button::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; }

.list { display: flex; flex-direction: column; gap: var(--space-3); }
.card { display: grid; grid-template-columns: 208px minmax(0, 1fr) 178px; gap: var(--space-4);
  padding: var(--space-4); border-radius: 18px; background: var(--color-neutral-100);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--color-neutral-900) 8%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--color-neutral-900) 8%, transparent);
  transition: transform .14s ease, box-shadow .14s ease;
  /* L'annuaire n'a pas de pagination : les 278 fiches sont rendues d'un coup,
     soit ~56 000 px de haut. content-visibility laisse le navigateur sauter la
     mise en page de tout ce qui n'est pas à l'écran, et contain-intrinsic-size
     lui donne la hauteur à réserver (182 px mesurés) pour que la barre de
     défilement reste juste. `auto` = la vraie hauteur remplace l'estimation
     une fois la carte affichée une première fois. */
  content-visibility: auto;
  contain-intrinsic-size: auto 182px; }
.card:hover { transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--color-neutral-900) 13%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--color-accent-500) 55%, transparent); }
.card.is-top { box-shadow: 0 10px 28px color-mix(in srgb, var(--color-neutral-900) 10%, transparent),
    inset 0 0 0 2px var(--flash); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
/* 268 fiches importées n'ont pas de photo : le cadre restait vide. Une photo
   d'autocar en gris et très floue sert de fond — assez reconnaissable pour ne
   pas ressembler à une image cassée, assez en retrait pour ne pas concurrencer
   le logo posé dessus. Fichier LOCAL (7 Ko) et non chargé depuis Unsplash :
   le bandeau du site classe les contenus tiers comme soumis au consentement,
   un fond qui disparaît selon le choix RGPD serait pire que pas de fond. */
.c-media { position: relative; border-radius: 13px; overflow: hidden; aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--color-neutral-900) 5%, transparent)
    url('../img/bus-placeholder.jpg') center / cover no-repeat; }
/* Le même visuel répété sur 268 cartes se remarque. On décale le cadrage et le
   zoom d'une carte à l'autre : six combinaisons, aucune image supplémentaire à
   charger. Sans effet sur les fiches qui ont leur vraie photo, l'<img> couvre
   le fond. */
.card:nth-child(3n+2) .c-media { background-position: 26% center; }
.card:nth-child(3n+3) .c-media { background-position: 74% center; }
.card:nth-child(2n) .c-media { background-size: auto 128%; }

.c-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-lg { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; padding: 6px 9px;
  border-radius: 9px; background: color-mix(in srgb, var(--color-neutral-100) 94%, transparent);
  box-shadow: 0 3px 12px color-mix(in srgb, black 26%, transparent); }
/* Les logos viennent de 101 sites différents : le rapport largeur/hauteur va de
   0,75 (carré ou plus haut que large) à 8,4 (bandeau très allongé). Une hauteur
   FIXE de 22 px écrasait les deux extrêmes — 22 logos dépassaient ensuite la
   largeur max et étaient réduits jusqu'à devenir illisibles, 39 autres
   tombaient sous 40 px de large. On borne les deux dimensions et on laisse
   `contain` choisir : chaque logo prend la plus grande taille qui tient. */
.c-lg img { width: auto; height: auto; max-width: 116px; max-height: 26px; object-fit: contain; }
/* Boîte de taille stable pour que les cartes s'alignent malgré des logos
   de formes très différentes. */
.c-lg { min-width: 52px; min-height: 32px; }
/* « Sans photo » — pendant de `.vh-no` sur la fiche. En bas à gauche : le logo
   tient le haut gauche, la pastille « période creuse » le haut droit. */
.c-no { position: absolute; left: 8px; bottom: 8px; z-index: 2;
  font-size: 10.5px; line-height: 15px; padding: 2px 7px; border-radius: 5px;
  color: color-mix(in srgb, var(--v-deep) 76%, transparent);
  background: color-mix(in srgb, var(--color-neutral-100) 74%, transparent); }
.c-lg i { font-style: normal; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 12px; color: var(--color-section); }
.c-pill { position: absolute; left: 8px; bottom: 8px; font-size: 11px; line-height: 18px; padding: 2px 9px;
  border-radius: 999px; background: var(--flash); color: var(--flash-ink); font-weight: 600; }
.c-pill.creux { background: var(--ok); color: var(--color-neutral-100); }
.bdg-cut { background: var(--ok-tint); color: var(--ok); }
.c-from s { display: block; font-size: 12.5px; color: var(--ink-55); }
.c-from s + b { color: var(--ok); }
.c-main { min-width: 0; }
.c-top { display: flex; align-items: flex-start; gap: var(--space-3); }
.c-n { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; line-height: 25px; margin: 0; letter-spacing: -0.012em; }
.c-loc { font-size: 12.5px; line-height: 19px; margin: 3px 0 0; color: var(--ink-55); font-feature-settings: "tnum" 1; }
.c-score { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.c-score b { width: 36px; height: 36px; border-radius: 9px 9px 9px 3px; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14.5px;
  background: var(--color-section); color: var(--color-neutral-100); font-feature-settings: "tnum" 1; }
.c-score span { font-size: 11.5px; line-height: 17px; color: var(--ink-55); text-align: right; }
.c-score span i { display: block; font-style: normal; font-weight: 500; color: var(--ink); font-size: 12.5px; }
.c-facts { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: var(--space-3); font-size: 13px;
  line-height: 20px; color: var(--ink-64); font-feature-settings: "tnum" 1; }
.c-facts b { color: var(--ink); font-weight: 500; }
.c-eq { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.c-eq span { font-size: 11.5px; line-height: 17px; padding: 1px 8px; border-radius: 4px; color: var(--ink-64);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-neutral-900) 14%, transparent); }
.c-eq span.hit { color: var(--color-section); font-weight: 500;
  background: color-mix(in srgb, var(--color-section) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-section) 34%, transparent); }
.c-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.bdg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 18px;
  font-weight: 500; padding: 2px 9px; border-radius: 5px; font-feature-settings: "tnum" 1; }
.bdg-ok { background: var(--ok-tint); color: var(--ok); }
.bdg-hot { background: var(--flash-tint); color: var(--flash-deep); }
.bdg-sec { background: var(--color-section); color: var(--color-neutral-100); }
/* Entreprise sans historique sur BeandBus : une puce sobre, pas une note à 0.
   Le bloc note de la carte reste vide — mieux qu'un « 0,0 » qui se lit comme
   un mauvais score. */
.bdg-new { background: var(--v-tint); color: var(--v); }
.c-side { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.c-from { font-size: 12px; line-height: 18px; color: var(--ink-55); text-align: right; }
.c-from b { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px; line-height: 26px; color: var(--ink); letter-spacing: -0.014em; font-feature-settings: "tnum" 1; }
.c-add { font-size: 14px; font-weight: 600; text-align: center; padding: 11px 14px; border-radius: 12px;
  background: var(--flash); color: var(--flash-ink);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--flash) 32%, transparent); }
.c-add:hover { color: var(--flash-ink); background: color-mix(in srgb, var(--flash) 92%, black); }
.c-see { font-size: 13px; text-align: center; padding: 8px 12px; border-radius: 12px; color: var(--ink-78);
  border: 1px solid color-mix(in srgb, var(--color-neutral-900) 16%, transparent); }
.c-see:hover { border-color: var(--color-accent-500); color: var(--color-accent-700); }
@media (max-width: 1100px) { .body { grid-template-columns: minmax(0, 1fr); }
  /* empilés au-dessus des résultats ils faisaient 1 160 px : le premier autocariste arrivait à
     deux écrans et demi. Repliés derrière un bouton ; le nombre de filtres actifs y est rappelé. */
  .filters { position: static; max-height: none; overflow: visible; display: none; }
  .filters.is-open { display: flex; }
  .filt-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--space-3);
    padding: 10px 16px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    color: var(--ink); background: var(--color-neutral-100);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-neutral-900) 14%, transparent); }
  .filt-toggle[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--color-section); }
  .fbox-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); } }
@media (max-width: 720px) { .card { grid-template-columns: 1fr; }
  .c-media { max-width: 260px; } .c-side { align-items: stretch; } .c-from { text-align: left; } }

.none { padding: calc(2 * var(--leading)) var(--space-6); text-align: center; border-radius: 18px;
  background: var(--color-neutral-100);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-neutral-900) 9%, transparent); }
.none p { font-size: 14.5px; line-height: 22px; color: var(--ink-64); margin: 0 0 var(--space-4); }
.pool { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  margin-bottom: var(--space-3); font-size: 13px; line-height: 20px;
  background: var(--flash-tint); color: var(--flash-ink); font-feature-settings: "tnum" 1; }
.pool b { font-weight: 600; }
.pool.ok { background: var(--ok-tint); color: var(--ok); }
.pool svg { flex: none; width: 16px; height: 16px; }
footer { padding: calc(2 * var(--leading)) 0 var(--leading);
  border-top: 1px solid color-mix(in srgb, var(--color-neutral-900) 8%, transparent); }
.f-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--leading) var(--space-6); }
.f-b { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 16px; letter-spacing: -0.01em; }
.f-brand p { font-size: 13px; line-height: 20px; color: var(--ink-55); margin: 10px 0 0; max-width: 34ch; }
.f-col h4 { font-size: 11.5px; line-height: 18px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-55); margin: 0 0 12px; font-weight: 500; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f-col a { font-size: 13.5px; line-height: 20px; color: var(--color-neutral-700); }
.f-col a:hover { color: var(--color-accent-700); }
.f-base { margin: calc(1.5 * var(--leading)) 0 0; padding-top: var(--leading);
  border-top: 1px solid color-mix(in srgb, var(--color-neutral-900) 8%, transparent);
  font-size: 12.5px; line-height: 19px; color: var(--ink-55); }
@media (max-width: 720px) { .f-cols { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN 3 · détails de l'annuaire, portés depuis
   `Beandbus annuaire/export-final/css/annuaire.css`. Aspect seul.
   ═══════════════════════════════════════════════════════════════════════════ */

/* — les liens : le violet vif porte, le sombre confirme.
     `.nav > a` n'est pas concerné, `blocks.css` le tient en neutral-800. — */
a { color: var(--v); }
a:where(:hover) { color: var(--v-hi); }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--v); }
.f-col a:hover { color: var(--v); }

/* — la carte de résultat : la bague grise devient violette — */
.card { border: 0; border-radius: 18px;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--color-neutral-900) 7%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--v) 14%, transparent); }

/* — la liste de tri. Le `!important` vient de la maquette et sert :
     `.sort select` l'emporterait autrement. Le focus clavier de `blocks.css`
     reste au-dessus. — */
select { border-radius: 12px !important;
  background: color-mix(in srgb, var(--v) 4%, var(--color-neutral-100)) !important;
  border: 1px solid color-mix(in srgb, var(--v) 20%, transparent) !important; }
select:focus { outline: none; border-color: var(--v) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--v) 14%, transparent) !important; }

/* — la note gagne sa capsule lavande ; la pastille chiffrée reste pleine — */
.c-score { background: var(--v-tint); color: var(--v-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v) 22%, transparent); }

/* — le prix et les pastilles : le violet porte, le lime signale — */
.c-from b { color: var(--v-deep); }
.bdg-hot { background: var(--v); color: var(--color-neutral-100); }
.bdg-cut { background: var(--flash-tint); color: var(--flash-ink); }
.c-pill { background: var(--v); color: var(--color-neutral-100); }
.c-pill.creux { background: var(--flash); color: var(--flash-ink); }

/* — les boutons de l'en-tête. La géométrie reste celle de `header.css` :
     on ne porte que la couleur, la bordure et le rayon. — */
/* 1.84.0 : retiré — « Espace client » passait en violet/bleu sur les deux pages qui chargent cette feuille (CGV,
   confidentialité). L'en-tête est unique (tools/f140_entete.py) et son aspect vient de palette-redesign.css. */

/* — design 3 aplatit le fond de l'annuaire : le voile lavande disparaît.
     `blocks.css` repose ensuite `background-color: neutral-200`, donc la page
     reste bien un cran sous les cartes. — */
body { background: var(--color-neutral-100); }

/* Le champ « Dates » de la barre de recherche était une saisie libre — « 12 → 15
   mai » — que rien ne lisait. Ce sont deux vraies dates ; la cellule les tient
   côte à côte avec la flèche entre elles. */
.sc-pair { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sc-pair input { flex: 1 1 0; min-width: 0; }
.sc-pair span { flex: none; font-size: 13px;
  color: color-mix(in srgb, var(--color-section) 55%, transparent); }

/* ═══════════════════════════════════════════════════════════════════════
   REFONTE 14-09-2026 — l'annuaire au design Bleu
   ═══════════════════════════════════════════════════════════════════════
   Portage de `Nuevo/Redesign BeandBus annuaire`. La maquette n'est PAS une
   source de balisage : son export entier ne contient qu'UN identifiant
   (`id="annuaire"`), zero attribut `data-*` et aucun `<form>`, quand la page
   vivante en compte 33, 3 et 1. Coller son markup tuerait l'IIFE des la
   premiere ligne qui touche le DOM — en silence, l'IIFE etant `async`. On
   porte donc la DIRECTION VISUELLE sur les ancres existantes.

   La carte change d'anatomie : la maquette abandonne la photo et pose une
   rangee compacte « pastille de logo 64 px | contenu | actions ». Elle se
   fait donc SANS toucher a `card()` : `.c-media` devient la pastille, la
   photo et la mention « Sans photo » sont retirees. Un seul fichier touche,
   zero risque sur le gabarit. */

/* — en-tete : sur-titre, titre porteur du compte, deux sceaux — */
.head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-accent-600); margin: 0 0 12px; }
.head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 800; text-wrap: balance; }
.head h1 #hd-n { color: var(--color-accent-600); }
/* Si l'API ne repond pas, le compte reste vide : le titre doit rester lisible
   sans double espace. */
.head h1 #hd-n:empty { display: none; }
.head h1 #hd-n:empty + .hd-sp { display: none; }
.head .sub { font-size: 16px; line-height: 1.55; max-width: 720px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap; }
.seals { display: flex; gap: 8px; flex-wrap: wrap; }
.seal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.seal-ok { color: #166534; background: #DCFCE7; }
.seal-ins { color: #1E40AF; background: #E8EEFF; }

/* — la carte compacte —
   `blocks.css` charge APRES cette feuille et pose `.card` (430) puis
   `body .card` (1305, 1371, 1374) : a specificite egale ou moindre la
   feuille de page perd, et la carte gardait ses 208px/196px de photo.
   Les cartes vivent toutes dans `#res` : on s'y accroche (1,0,1). */
#res .card {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px; align-items: start; padding: 18px 20px; border-radius: 16px;
  background: var(--color-neutral-100);
  box-shadow: none; border: 1.5px solid #E3E8F0;
}
#res .card:hover { transform: none; border-color: #C9D1E3;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--color-neutral-900) 8%, transparent); }

/* la figure devient la pastille : plus de photo, plus d'aspect-ratio */
/* `min-height` bat `height` : `blocks.css:435` pose `min-height: 160px`
   sur `.c-media` (la photo faisait 160 de haut). Sans le remettre a 64,
   la pastille reste une colonne de 160. */
#res .c-media { aspect-ratio: auto; width: 64px; height: 64px; min-height: 64px; border-radius: 12px;
  border: 1px solid #E3E8F0; background: var(--color-neutral-100); padding: 6px;
  display: grid; place-items: center; overflow: hidden; }
#res .c-media > img,            /* la photo d'illustration */
#res .c-media .c-no,            /* la mention « Sans photo » */
#res .c-media .c-pill { display: none; }
#res .c-lg { position: static; left: auto; top: auto; padding: 0; border-radius: 0;
  background: none; box-shadow: none; min-width: 0; min-height: 0;
  width: 100%; height: 100%; display: grid; place-items: center; }
#res .c-lg img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
#res .c-lg i { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--color-accent-700); }

#res .c-main { display: flex; flex-direction: column; gap: 8px; }
#res .c-top { align-items: center; gap: 10px; flex-wrap: wrap; }
#res .c-n { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
#res .c-loc { font-size: 13px; margin: 0; }
#res .c-facts { margin-top: 0; gap: 6px 16px; font-size: 13px; }
#res .c-eq { margin-top: 0; }
#res .c-badges { margin-top: 0; }
#res .c-side { min-width: 170px; justify-content: flex-start; gap: 8px; }
/* La maquette met le bouton en contour encre, pas en aplat orange : c'est un
   annuaire, l'ajout n'est pas l'action finale. */
#res .c-add { background: var(--color-neutral-100); color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: none;
  font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 8px; }
#res .c-add:hover { background: var(--ink); color: var(--color-neutral-100); }
#res .c-see { font-size: 13px; font-weight: 600; color: var(--color-accent-600);
  border: 0; padding: 4px 12px; }
#res .c-see:hover { color: var(--color-accent-700); border: 0; }

/* — les segments de perimetre, en pastilles — */
.seg { border-radius: 999px; font-weight: 600; }
.seg[aria-selected="true"] { background: var(--color-accent-600); color: #fff; }

/* Meme ancrage `#res` qu'au-dessus : sans lui `blocks.css` reprend la main et
   la troisieme colonne tombe a 0 px (mesure a 375 : « 64px 205px 0px »). */
@media (max-width: 560px) {
  #res .card { grid-template-columns: 48px minmax(0, 1fr); }
  #res .c-media { width: 48px; height: 48px; min-height: 48px; }
  #res .c-side { grid-column: 1 / -1; min-width: 0; flex-direction: row; }
  #res .c-add, #res .c-see { flex: 1 1 auto; }
}
