/* Rangée des filtres (#226, 29-11-2026) : une seule, sous les onglets, collée, pour toutes les pages à filtres. À gauche, ce que la page y met
   (sélecteur, « ← Vidéos ») ; à droite, menus, tri et vues ; sans rien à gauche, menus à gauche et nombre à droite. Artistes
   dès 1280 px (#231) : menus, tri et vues à gauche, puis les lettres (#rangee-droite).
   Tout nouveau filtre ou bouton de page va ici. Jamais d'`overflow` sur .rangee : les menus en dépassent (Safari). Chargée en dernier. */
html body > .rangee { position:sticky; top:var(--haut-onglets, 0px); z-index:33; margin:0; padding:0; background:var(--c-bg); box-shadow:none; }
html body > .rangee[hidden] { display:none; }
html body > .rangee > .barre-haute-in { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:var(--esp-s); max-width:var(--largeur-max); box-sizing:border-box; min-height:56px; margin:0 auto; padding:var(--esp-s) var(--gouttiere); border:0; }
html body .rangee-gauche { display:flex; flex:1 1 0; align-items:center; min-width:0; }
html body .rangee-gauche:empty { display:none; }
html body .rangee-droite { display:flex; flex:1 1 0; align-items:center; min-width:0; }
html body .rangee-droite:empty { display:none; }
html body .rangee .barre-filtres { flex:1 1 auto; min-width:0; }
html body .rangee-gauche:not(:empty) + .barre-filtres, html body .rangee .barre-filtres:has(+ .rangee-droite:not(:empty)) { flex:0 1 auto; }
html body .rangee .barre-filtres .filtres-in { display:flex; flex-flow:row nowrap; align-items:center; gap:var(--esp-s); }
html body .rangee .filtres-in > :is(.filtre, .al-outils) { flex:none; width:auto; min-width:0; margin:0; }
html body .rangee .filtres-in > .filtre-vide { display:none; }
html body .rangee .filtres-in > .filtres-fin { flex:1 1 auto; flex-direction:row; align-items:center; justify-content:flex-end; order:1; min-width:0; max-width:none; margin:0; }
html body .rangee-gauche:not(:empty) + .barre-filtres .filtres-fin { display:none; }
html body .rangee .barre-filtres:has(+ .rangee-droite:not(:empty)) .filtres-fin { display:none; }
html body .rangee .menu-cases { width:auto; min-width:0; }
html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre { box-sizing:border-box; width:auto; min-width:0; max-width:none; height:40px; min-height:0; margin:0; padding:0 28px 0 var(--esp-m); background-position-x:right 8px; line-height:40px; white-space:nowrap; }
/* Largeurs fixes : poser un filtre ne déplace rien. */
html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre[data-filtre=emission] { width:12rem; overflow:hidden; text-overflow:ellipsis; }
html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre[data-filtre=completes] { width:9.25rem; }
html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre[data-filtre=tri] { width:8rem; }
html body .rangee .barre-filtres .filtre.avec-croix .menu-cases summary.menu-filtre { padding-right:36px; }
html body .rangee .filtre-croix { width:36px; height:40px; }
html body .rangee .al-vues { grid-template-columns:repeat(2, var(--piste-h)); }
html body .rangee .al-vues button { width:var(--piste-h); height:var(--piste-h); }
/* Menus calés à droite, et le tri : leur liste s'ouvre vers la gauche. */
html body .rangee .menu-cases-liste { z-index:34; left:0; right:auto; max-width:calc(100vw - 2 * var(--gouttiere)); }
html body .rangee-gauche:not(:empty) + .barre-filtres .menu-cases-liste, html body .rangee .al-tri .menu-cases-liste { left:auto; right:0; }
/* Coups de cœur */
html body .rangee .coeurs-ligne { flex:1 1 auto; flex-wrap:nowrap; min-width:0; margin:0; }
html body .rangee .coeurs-compte { margin-left:auto; padding-right:var(--esp-s); }
/* Émission : le crayon d'Édition est au bout de la place libre, fond uni sans lui. */
html body .rangee .pe-tete { flex:1 1 auto; min-width:0; min-height:40px; margin:0; }
html body .rangee .pe-retour { min-height:40px; white-space:nowrap; }
html body .az-bulle { z-index:34; }

/* Artistes : lettres dans la rangée quand elles tiennent (24 px chacune), sinon au-dessus de la liste, où elles défilent. */
html body .rangee nav.az.al-az { position:static; display:block; flex:1 1 auto; min-width:0; min-height:0; margin:0; padding:0; overflow:visible; border:0; background:none; }
html body .rangee nav.az::before { display:none; }
html body .rangee .al-zone { height:40px; }
html body .rangee .al-zone:not(.al-paliers, .al-etat) { grid-template-columns:repeat(27, minmax(0, 1fr)); gap:0; }
html body .rangee nav.az :is(a, .vide) { display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:0; height:40px; padding:0; background:transparent; color:var(--c-ink); font:var(--s-donnee); text-decoration:none; }
html body .rangee nav.az a:hover { background:var(--c-bg-alt); }
html body .rangee nav.az a.actif { background:var(--c-ink); color:var(--c-on-ink); }
html body .rangee nav.az .vide { color:var(--c-muted); }
html body .rangee nav.az .al-paliers a { font:var(--s-texte-fort-petit); white-space:nowrap; }
html.annuaire body .rangee nav.az a:focus-visible { outline:3px solid var(--noir); outline-offset:-3px; box-shadow:none; background:var(--blanc-pur); color:var(--noir); }
html body .col-annuaire nav.az.al-az { position:static; }
html body.sur-artistes #page { padding-top:var(--esp-s); }
html body .col-annuaire nav.az { margin-top:0; padding-top:var(--esp-s); }
html body .page-emission { margin-top:0; }
html body #page:has(> :is(.page-coeurs, .page-videos, .page-emission, .accueil-annuaire, .vue-carte)) { padding-top:var(--esp-s); --ecart-haut:var(--esp-s); }

@media (max-width:700px) {
  html body > .rangee { transition:top .2s ease; }
  /* Lettres (ou paliers) toujours visibles en défilant, collées sous les filtres (Alice, 30-11) ; elles suivent l'en-tête qui part ou revient. */
  html body .col-annuaire nav.az.al-az:has(a) { position:sticky; top:var(--haut-entete, 0px); transition:top .2s ease; }
  @media (prefers-reduced-motion:reduce) { html body > .rangee, html body .col-annuaire nav.az.al-az:has(a) { transition:none; } }
  html body > .rangee > .barre-haute-in { min-height:60px; padding-block:var(--esp-xs); }
  html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre { height:var(--cible-min); line-height:var(--cible-min); padding:0 26px 0 var(--esp-s); }
  html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre[data-filtre] { width:auto; }
  html body .rangee .barre-filtres .filtre.avec-croix .menu-cases summary.menu-filtre { padding-right:30px; }
  html body .rangee .filtre-croix { width:30px; height:var(--cible-min); }
  html body .rangee :is(.pe-tete, .pe-retour) { min-height:var(--cible-min); }
  /* Listes calées sur la rangée entière, jamais hors de l'écran. */
  html body .rangee .filtres-in { position:relative; }
  html body .rangee :is(.filtre, .al-outils, .menu-cases) { position:static; }
  html body .rangee .filtre.avec-croix { position:relative; }
  html body .rangee .filtre.avec-croix .menu-cases { position:static; }
  /* Coups de cœur : sélecteur, puis le menu en entonnoir (le nom lu reste « Émission : … ») ; l'entonnoir est le composant commun .menu-icone (annuaire.css). */
  html body .rangee .coeurs-ligne .coeurs-vues { flex:1 1 auto; min-width:0; }
  html body .rangee .coeurs-ligne .coeurs-vues.coeurs-vues a { flex:1 1 auto; min-width:0; padding-inline:var(--esp-xs); text-align:center; white-space:nowrap; }
  html body .rangee .coeurs-compte { position:absolute; width:1px; height:1px; min-width:0; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  html body.sur-coeurs .rangee > .barre-haute-in { flex-wrap:nowrap; }
  html body.sur-coeurs .rangee > .barre-haute-in:has(.filtres-pastilles) { flex-wrap:wrap; }
  html body.sur-coeurs .rangee > .barre-haute-in:has(.filtres-pastilles) > .rangee-gauche { flex-basis:100%; }
  /* Émission : « ← Vidéos » et le menu Vidéos, comme avant. */
  html body.sur-emission .rangee .filtres-in > .filtre:not(.filtre-completes) { display:none; }
  /* Vidéos, Coups de cœur : « Filtres », qui ne porterait que « Tout effacer », s'efface ; le total garde son nombre, son mot reste lu. */
  html body:not(.sur-artistes):has(.page-videos, .page-coeurs) .rangee .filtres-in > .filtre:has(.menu-cases-court):not(:has(.filtres-pastilles)) { display:none; }
  html body .rangee .filtres-in:has(.filtre.avec-croix + .filtre-completes.avec-croix) .compte-mot { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  @media (max-width:389px) { html body .rangee .filtres-in:has(.filtre.avec-croix) .compte-mot { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; } }
  html body .rangee .filtres-in:has(.filtres-pastilles) { flex-wrap:wrap; }
  /* Artistes : trois menus sur toute la largeur, aux mêmes places triés ou non ; le nombre et les vues sont au-dessus des lettres. */
  html body.sur-artistes .rangee .filtres-in > :is(.filtre, .al-outils) { flex:1.15 1 0; }
  html body.sur-artistes .rangee .filtres-in > .al-outils > .filtre, html body.sur-artistes .rangee .filtres-in .menu-cases { flex:1 1 auto; width:100%; }
  html body.sur-artistes .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre[data-filtre] { width:100%; }
  html body.sur-artistes .rangee .filtres-in > .filtres-fin { display:none; }
  html body .rangee .al-tri .menu-cases-liste { left:auto; right:0; }
  html body.sur-artistes .al-rangee { justify-content:space-between; margin:0; }
  html body .al-rangee .filtres-compte { position:static; width:auto; height:auto; }
  html body.sur-artistes #filtres-compte { text-align:left; }
}
@media (max-width:389px) {
  html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre { padding:0 22px 0 6px; background-position-x:right 4px; }
  html body .rangee .barre-filtres .filtre.avec-croix .menu-cases summary.menu-filtre { padding-right:28px; }
  html body .rangee .filtre-croix { width:28px; }
}
/* Les lettres sont dans la rangée : même air sous elle que sur les autres pages. */
@media (min-width:1280px) and (min-width:80em) { html body.sur-artistes .annuaire-corps { padding-top:0; } }
@media (max-width:22em) {
  html body .rangee .compte-mot { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  html body .rangee .barre-filtres .filtres-in { gap:var(--esp-xs); }
  html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre { padding:0 22px 0 var(--esp-xs); background-position-x:right 4px; }
}
/* Sélecteur des Coups de cœur : sur un petit écran, ses mots passent sur deux lignes dans la même hauteur. */
@media (max-width:389px), (max-width:24em) {
  html body .rangee .coeurs-ligne .coeurs-vues.coeurs-vues a { white-space:normal; line-height:1.15; }
}
/* De 701 à 767 px (#226, rangée de 56 px) : la place du sélecteur y est aussi étroite ; deux lignes de 1,1 tiennent dans les 32 px du segment. */
@media (min-width:701px) and (max-width:767px) {
  html body .rangee .coeurs-ligne .coeurs-vues.coeurs-vues a { white-space:normal; line-height:1.1; }
}
/* Texte très agrandi : la rangée passe à la ligne et défile avec la page (jamais deux rangées collées). */
@media (max-width:22em), (min-width:701px) and (max-width:40em) {
  html body > .rangee { position:static; }
  html body .rangee .barre-filtres .filtres-in { flex-wrap:wrap; }
  html body.sur-artistes .rangee .filtres-in > :is(.filtre, .al-outils) { flex:1 1 auto; }
  html body .rangee .barre-filtres .filtres-in .menu-cases summary.menu-filtre[data-filtre] { width:auto; min-width:max-content; }
}
@media (max-width:22em) { html body.sur-emission .rangee-gauche { flex-basis:100%; } } /* « ← Vidéos » et le crayon sur leur ligne */
/* Écran très bas (téléphone couché) : rien de collé en plus de l'en-tête. */
@media (max-height:480px) { html body > .rangee, html body .col-annuaire nav.az.al-az:has(a) { position:static; } }
/* #244 : le bouton de filtres est l'icône, carré de 40 px à la souris, 44 au doigt ; il ne s'étire pas, la place libérée revient aux menus voisins (rangée pleine au téléphone). */
html body .rangee { --cote-icone:40px; }
@media (max-width:700px), (pointer:coarse) { html body .rangee { --cote-icone:var(--cible-min); } }
html body .rangee .barre-filtres .filtres-in > .filtre:has(.menu-icone) { flex:none; }
