/* Rubriques de la homepage : vue #rubriqueView (segments, immobilier compris, et vues annexes), fiche .rb-drawer.
 * Mise en page reprise de la vue segment d'Orchestra (#segView : barre d'angles, grille #svGrid de cartes blanches en
 * 2 colonnes, rail #svRail de palmarès à droite ; cartes podcast, duel, classement, allocation), restylée avec les jetons
 * de la homepage (police SF, encre #0a1217, gris, rayons, ombres légères, fond clair). Plus aucune grammaire « books »
 * (ni couverture pastel, ni dos, ni ombre de livre, ni inclinaison 3D). Jetons déclarés sur les vues, jamais sur :root.
 * Aucune donnée, aucun appel réseau. Lot F1. Le lecteur (.rb-pod*) est mis en forme par rubrique-podcast.css (lot F4) ;
 * la fiche latérale (.rb-drawer) par rubrique-drawer.css, chargée avec rubrique-drawer.js à la première ouverture. */

.rb-view,
.rb-drawer,
.rb-drawer-scrim {
  --rb-ink: #0a1217;
  --rb-muted: #6b7280;
  --rb-slate: #64748b;
  --rb-slate-2: #94a3b8;
  --rb-slate-3: #cbd5e1;
  --rb-line: #e5e7eb;
  --rb-bg: #fff;
  --rb-surface: #f5f7f8;
  --rb-surface-2: #f8fafc;
  --rb-up: #047857;
  --rb-down: #b42318;
  --rb-flat: #59636b;
  --rb-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
  --rb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rb-dur: 360ms;
  --rb-r-pill: 999px;
  --rb-r-sm: 8px;
  --rb-r-md: 12px;
  --rb-r-lg: 18px;
  --rb-r-card: 22px;
  /* cartes blanches d'Orchestra, posées sur le fond clair de la homepage : filet et ombre légers */
  --rb-card: #fff;
  --rb-card-line: rgb(10 18 23 / 0.08);
  --rb-card-shadow: 0 1px 2px rgb(10 18 23 / 0.04), 0 12px 28px -24px rgb(10 18 23 / 0.32);
  --rb-card-shadow-hover: 0 1px 2px rgb(10 18 23 / 0.05), 0 18px 36px -24px rgb(10 18 23 / 0.36);
  /* barres, onde et podium (valeurs d'Orchestra) */
  --rb-track: #e2e5e9;
  --rb-wave: #cfd4da;
  --rb-green: #12c08a;
  --rb-blue: #2e5bff;
  --rb-neutral: #64748b;
  --rb-p1: #0d47d9;
  --rb-p2: #1f73f1;
  --rb-p3: #90c4f9;
  --rb-p3-ink: #0c2a6e;
  --rb-focus: #0a1217;
  --rb-scrim: rgb(10 18 23 / 0.12);
  --rb-edge: rgb(10 18 23 / 0.12);
  --rb-bar-bg: rgb(255 255 255 / 0.92);
}

/* Luxe & Prestige, rubriques à trois colonnes (cartes + palmarès), Collection exclue (2026-10-09, « pour toutes les rubriques
   des verticales de Luxe & Prestige sidebar sauf "collection" intégrer un fond aux items interface avec colonne 3 du gris le
   plus pâle possible ») : cartes et palmarès sur un gris à peine teinté ; le thème sombre garde sa surface. */
:root:not([data-theme="dark"]) .rb-view[data-mode="segment"] { --rb-card: #fafbfc; }

/* Variante sombre prête (§6.3) : inactive tant que la homepage n'a pas de sélecteur de thème. Pas de prefers-color-scheme seul. */
:root[data-theme="dark"] .rb-view,
:root[data-theme="dark"] .rb-drawer,
:root[data-theme="dark"] .rb-drawer-scrim {
  --rb-ink: #f8fafc;
  --rb-muted: #94a3b8;
  --rb-slate: #94a3b8;
  --rb-slate-2: rgb(248 250 252 / 0.42);
  --rb-slate-3: rgb(248 250 252 / 0.24);
  --rb-line: rgb(255 255 255 / 0.08);
  --rb-bg: #0a1217;
  --rb-surface: rgb(255 255 255 / 0.04);
  --rb-surface-2: rgb(255 255 255 / 0.08);
  --rb-up: #6ee7b7;
  --rb-down: #fca5a5;
  --rb-flat: #94a3b8;
  --rb-card: rgb(255 255 255 / 0.04);
  --rb-card-line: rgb(255 255 255 / 0.08);
  --rb-card-shadow: none;
  --rb-card-shadow-hover: none;
  --rb-track: rgb(255 255 255 / 0.12);
  --rb-wave: rgb(255 255 255 / 0.22);
  --rb-neutral: #94a3b8;
  --rb-p3: #4e7fc4;
  --rb-p3-ink: #f8fafc;
  --rb-focus: #7dd3fc;
  --rb-scrim: rgb(0 0 0 / 0.4);
  --rb-edge: rgb(255 255 255 / 0.08);
  --rb-bar-bg: rgb(10 18 23 / 0.92);
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Vue                                                                                                                 */
/* ------------------------------------------------------------------------------------------------------------------ */
.rb-view[hidden] { display: none; }

.rb-view {
  position: relative;
  z-index: 70;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 0 72px;
  overflow-x: clip;                     /* le fond pleine largeur de la barre ne crée jamais de défilement horizontal */
  color: var(--rb-ink);
  background: var(--rb-bg);
  font-family: var(--rb-font);
}
.rb-view *,
.rb-drawer * { box-sizing: border-box; }

.rb-wrap {
  --rb-wrap-max: 1264px;
  --rb-wrap-pad: 24px;
  width: min(var(--rb-wrap-max), 100%);
  margin: 0 auto;
  padding: 0 var(--rb-wrap-pad);
}

.rb-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: -1px !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- barre du haut, collante : angles en onglets texte, « Explorer l'Index », loupe ---- */
.rb-topbar {
  position: sticky;
  z-index: 12;
  top: 0;
}
.rb-topbar::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  content: "";
  background: var(--rb-bar-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.rb-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  /* alignement parfait (2026-09-27) : menu, onglets, « Index … », loupe et cloche sur le même axe, 38 px du haut
     (boutons fixes de la homepage : 36 px à 20 px du bord) ; 20 + 36 + 10 = 66 px, hauteur de barre inchangée */
  padding: 20px 0 10px 56px;            /* à gauche : bouton du menu de la homepage */
  /* cloche des notifications, fixe en haut à droite : jamais recouverte, 12 px d'écart comme entre les boutons */
  padding-right: max(0px, calc(60px - max(0px, (100vw - var(--rb-wrap-max)) / 2) - var(--rb-wrap-pad)));
}
.rb-angles {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rb-angles::-webkit-scrollbar { display: none; }
.rb-angles > :first-child { margin-left: auto; }
.rb-angle {
  position: relative;
  flex: 0 0 auto;
  padding: 6px 0;
  border: 0;
  cursor: pointer;
  color: var(--rb-muted);
  background: none;
  font: 500 13px / 1.2 var(--rb-font);
  white-space: nowrap;
  transition: color 150ms ease;
}
.rb-angle:hover { color: var(--rb-ink); }
.rb-angle[aria-pressed="true"] { color: var(--rb-ink); font-weight: 600; }
.rb-angle span { margin-left: 5px; color: var(--rb-slate-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.rb-nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }

.rb-explore {
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;                         /* même hauteur que la loupe, le menu et la cloche */
  align-items: center;
  padding: 0 15px;
  border: 2.5px solid var(--rb-ink);
  border-radius: 22px;
  cursor: pointer;
  color: var(--rb-ink);
  background: var(--rb-bg);
  font: 600 10px / 1.2 var(--rb-font);
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.rb-explore:hover { color: var(--rb-bg); background: var(--rb-ink); }

.rb-angle:focus-visible,
.rb-explore:focus-visible,
.rb-search-open:focus-visible,
.rb-search-close:focus-visible,
.rb-rub:focus-visible,
.rb-rail-row:focus-visible,
.rb-hit:focus-visible,
.rb-card-link:focus-visible {
  outline: 2px solid var(--rb-focus);
  outline-offset: 4px;
}

/* ---- recherche : pastille loupe qui s'étire, résultats en panneau déroulant ---- */
.rb-search {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
}
.rb-search-pill {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 0;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-r-pill);
  background: var(--rb-bg);
  transform: translateY(-50%);
  transition: width 320ms cubic-bezier(0.2, 0.7, 0.2, 1), padding 300ms ease, border-color 200ms ease;
}
.rb-search.is-expanded .rb-search-pill {
  width: min(300px, calc(100vw - 88px));
  justify-content: flex-start;
  padding: 0 6px 0 9px;
}
.rb-search-pill:focus-within { border-color: var(--rb-slate); }
.rb-search-open,
.rb-search-close {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--rb-slate);
  background: transparent;
}
.rb-search:not(.is-expanded) .rb-search-open { width: 36px; height: 36px; }
.rb-search-open:hover,
.rb-search-close:hover { color: var(--rb-ink); background: var(--rb-surface); }
.rb-search svg { width: 14px; height: 14px; }
.rb-search-input {
  display: none;
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--rb-ink);
  background: transparent;
  font: 400 12.5px / 1.2 var(--rb-font);
}
.rb-search.is-expanded .rb-search-input { display: block; }
.rb-search.is-expanded .rb-search-close { display: inline-flex; }
.rb-search:not(.is-expanded) .rb-search-close { display: none; }
.rb-search-input::placeholder { color: var(--rb-slate-2); }
.rb-search-input::-webkit-search-cancel-button,
.rb-search-input::-webkit-search-decoration { display: none; -webkit-appearance: none; appearance: none; }
.rb-search-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: 380px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-r-lg);
  background: var(--rb-bg);
  box-shadow: 0 24px 56px -22px rgb(11 13 18 / 0.34);
}
.rb-search-panel[hidden] { display: none; }
.rb-search-meta { margin: 6px 9px 8px; color: var(--rb-muted); font: 400 11px / 1.4 var(--rb-font); }
.rb-hits { margin: 0; padding: 0; list-style: none; }
.rb-hit {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 7px 9px;
  border-radius: var(--rb-r-md);
  color: var(--rb-ink);
  text-decoration: none;
}
.rb-hit:hover { background: var(--rb-surface); }
.rb-hit .rb-av { width: 36px; height: 36px; min-width: 36px; }
.rb-hit .rb-av .rb-monogram { font-size: 10.5px; }
/* picto du segment (Art : peintre, photographe, sculpteur) quand la vignette manque, jamais de monogramme (2026-09-29) :
   56 % du diamètre, sous les 70,7 % du carré inscrit dans la bulle, le picto y tient entier */
.rb-av .rb-picto { display: none; }
.rb-av.is-fallback .rb-picto {
  display: grid;
  width: 56%;
  height: 56%;
  place-items: center;
  color: rgb(10 18 23 / 0.62);
}
.rb-av .rb-picto svg,
.rb-search .rb-av .rb-picto svg { display: block; width: 100%; height: 100%; }
.rb-hit-txt { display: grid; min-width: 0; flex: 1; gap: 2px; }
.rb-hit-line { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.rb-hit-name { min-width: 0; overflow: hidden; font: 500 12.5px / 1.3 var(--rb-font); text-overflow: ellipsis; white-space: nowrap; }
.rb-hit-score { flex: 0 0 auto; color: var(--rb-slate); font: 500 11px / 1.2 var(--rb-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-hit-sub { overflow: hidden; color: var(--rb-muted); font: 400 11px / 1.3 var(--rb-font); text-overflow: ellipsis; white-space: nowrap; }
.rb-hit.is-here .rb-hit-name { font-weight: 600; }
.rb-search-empty { margin: 0; padding: 12px; color: var(--rb-muted); font: 400 12px / 1.4 var(--rb-font); }

/* ---- en-tête sobre : nom du segment, taille du corpus, filtre de rubrique, angle ---- */
.rb-head { padding-top: 4px; }
.rb-head-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rb-title {
  margin: 0;
  font: 600 19px / 1.2 var(--rb-font);
  letter-spacing: -0.01em;
}
.rb-title:focus { outline: none; }
.rb-count { color: var(--rb-muted); font: 400 11.5px / 1.4 var(--rb-font); }
.rb-count b { color: var(--rb-ink); font-weight: 600; }
.rb-rubs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rb-rubs::-webkit-scrollbar { display: none; }
.rb-rub {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: var(--rb-r-lg);
  cursor: pointer;
  color: var(--rb-muted);
  background: var(--rb-surface);
  font: 500 11px / 1.3 var(--rb-font);
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.rb-rub:hover { color: var(--rb-ink); }
.rb-rub[aria-pressed="true"] { color: var(--rb-ink); font-weight: 600; background: var(--rb-bg); border-color: var(--rb-line); }
.rb-rub span { margin-left: 5px; color: var(--rb-slate-2); font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rb-headline {
  margin: 12px 0 0;
  padding: 11px 0 0;
  border-top: 1px solid var(--rb-line);
  color: var(--rb-muted);
  font: 400 11.5px / 1.45 var(--rb-font);
}
.rb-headline b { color: var(--rb-ink); font-weight: 600; }
.rb-headline:empty { display: none; }

/* ---- corps : grille de cartes à gauche, rail de palmarès à droite ---- */
.rb-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}
.rb-body.is-full { grid-template-columns: minmax(0, 1fr); }
.rb-stage { min-width: 0; }
.rb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.rb-grid.is-switching { opacity: 0; transform: translateY(5px); }
.rb-cell { display: flex; min-width: 0; }
.rb-cell > * { flex: 1 1 auto; min-width: 0; }

/* ------------------------------------------------------------------------------------------------------------------ */
/* Cartes blanches (vignettes podcast / duel / classement / allocation)                                               */
/* ------------------------------------------------------------------------------------------------------------------ */
.rb-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--rb-card-line);
  border-radius: var(--rb-r-card);
  color: var(--rb-ink);
  background: var(--rb-card);
  box-shadow: var(--rb-card-shadow);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
.rb-card:hover { border-color: rgb(10 18 23 / 0.12); box-shadow: var(--rb-card-shadow-hover); }
.rb-card-title {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--rb-ink);
  font: 600 14.4px / 1.35 var(--rb-font);
  letter-spacing: -0.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* la carte entière s'ouvre (fiche latérale) : bouton du titre étiré sur toute la carte */
.rb-card-open {
  display: inline;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.rb-card-open::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: var(--rb-r-card);
  content: "";
}
.rb-card-open:focus-visible { outline: none; }
.rb-card-open:focus-visible::after { outline: 2px solid var(--rb-focus); outline-offset: 4px; }
.rb-card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.rb-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  cursor: pointer;
  color: var(--rb-slate);
  background: none;
  font: 500 11px / 1.2 var(--rb-font);
  text-decoration: none;
}
.rb-card-link:hover { color: var(--rb-ink); }
.rb-card-link svg { width: 10px; height: 10px; }

/* avatars : vignette ronde sur pastille pastel, produit contenu ; immobilier : photo qui remplit le cercle */
.rb-av {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--av-bg, #f3ebe4);
}
/* image centrée en absolu (2026-09-27) : dans la grille, height: 74 % ne s'appliquait pas et une vignette verticale
   (montre sur bracelet, 560 × 988) prenait sa hauteur naturelle, débordait vers le bas et sortait du centre */
.rb-av img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74%;
  height: 74%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  mix-blend-mode: multiply;           /* l'aplat blanc des photos produit disparaît sur la pastille */
}
.rb-av.is-fill img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.rb-av.is-tall img { width: 62%; height: 72%; }
.rb-av .rb-monogram { display: none; }
.rb-av.is-fallback img { display: none; }
.rb-av.is-fallback .rb-monogram { display: block; }
.rb-monogram {
  color: rgb(10 18 23 / 0.62);
  font: 600 12px / 1 var(--rb-font);
  letter-spacing: 0.02em;
  user-select: none;
}

/* duel et allocation : deux lignes vignette · nom · barre · valeur */
.rb-rows {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.rb-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.rb-row-mid { min-width: 0; }
.rb-row-name {
  margin-bottom: 9px;
  overflow: hidden;
  color: var(--rb-ink);
  font: 400 12.5px / 1.3 var(--rb-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-row-sub { margin-top: 7px; color: var(--rb-muted); font: 400 10.5px / 1.3 var(--rb-font); }
.rb-bar {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--rb-track);
}
.rb-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--rb-neutral);
}
.rb-bar.is-win > span { background: var(--rb-green); }
.rb-bar.is-other > span { background: var(--rb-blue); }
.rb-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--rb-ink);
  font: 600 12px / 1.2 var(--rb-font);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.rb-price small { color: var(--rb-muted); font-size: 10px; font-weight: 400; }
.rb-price--big { font-size: 15px; }

/* classement : podium 2-1-3, barres bleues de hauteurs 100 / 80 / 62 */
.rb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}
.rb-pcol {
  display: flex;
  min-width: 0;
  max-width: 116px;
  flex: 1;
  flex-direction: column;
  align-items: center;
}
.rb-pcol .rb-av { width: 50px; height: 50px; min-width: 50px; margin-bottom: 8px; }
.rb-pname {
  display: -webkit-box;
  width: 100%;
  min-height: 26px;
  margin-bottom: 6px;
  overflow: hidden;
  color: var(--rb-slate);
  font: 500 10.5px / 1.24 var(--rb-font);
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rb-pbar {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 11px 11px 0 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rb-pbar.is-r1 { height: 100px; background: var(--rb-p1); }
.rb-pbar.is-r2 { height: 80px; background: var(--rb-p2); }
.rb-pbar.is-r3 { height: 62px; background: var(--rb-p3); color: var(--rb-p3-ink); }
.rb-pbar b { font: 600 14px / 1 var(--rb-font); }
.rb-pbar em { font: 600 9px / 1.2 var(--rb-font); font-style: normal; opacity: 0.92; white-space: nowrap; }
.rb-pbar .rb-prank { margin-top: 3px; font: 600 11px / 1 var(--rb-font); opacity: 0.78; }

/* DUEL et RANKING (demande de l'utilisateur, 2026-09-29) : à l'apparition de la carte (drawIn, rubriques-core.js), chaque
   barre se dessine depuis 0 jusqu'à sa valeur (largeur du duel, montée du podium), en légère cascade. Transform et
   clip-path seulement : valeur finale, texte et mise en page inchangés ; mouvement réduit ou impression : barres finales */
.rb-draw .rb-bar > span { transform-origin: 0 50%; }
.rb-draw:not(.is-drawn) .rb-bar > span { transform: scaleX(0); }
.rb-draw:not(.is-drawn) .rb-pbar { clip-path: inset(100% -50% 0 -50%); }
.rb-draw.is-drawn .rb-bar > span { transition: transform 820ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.rb-draw.is-drawn .rb-pbar { clip-path: inset(0 -50% 0 -50%); transition: clip-path 820ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.rb-draw.is-drawn .rb-row:nth-child(2) .rb-bar > span,
.rb-draw.is-drawn .rb-pcol:nth-child(2) .rb-pbar { transition-delay: 90ms; }
.rb-draw.is-drawn .rb-pcol:nth-child(3) .rb-pbar { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce), print {
  .rb-draw .rb-bar > span,
  .rb-draw .rb-pbar { transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Rail de palmarès (lists)                                                                                            */
/* ------------------------------------------------------------------------------------------------------------------ */
.rb-rail { display: flex; min-width: 0; flex-direction: column; gap: 20px; margin-top: 26px; }
.rb-rail:empty,
.rb-rail[hidden] { display: none; }
.rb-rail-card {
  padding: 18px 18px 8px;
  border: 1px solid var(--rb-card-line);
  border-radius: var(--rb-r-lg);
  background: var(--rb-card);
  box-shadow: var(--rb-card-shadow);
}
.rb-rail-card h3 { margin: 0; font: 600 14px / 1.25 var(--rb-font); letter-spacing: -0.01em; }
.rb-rail-sub { margin: 6px 0 4px; color: var(--rb-muted); font: 400 10.5px / 1.4 var(--rb-font); }
.rb-rail-list { margin: 0; padding: 0; list-style: none; }
.rb-rail-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--rb-line);
  cursor: pointer;
  color: inherit;
  background: none;
  font: inherit;
  text-align: left;
}
.rb-rail-row:hover .rb-rail-name { color: var(--rb-blue); }
.rb-rail-txt { min-width: 0; flex: 1 1 auto; }
.rb-rail-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rb-ink);
  font: 500 12.5px / 1.35 var(--rb-font);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rb-rail-sub2 { display: block; margin-top: 4px; color: var(--rb-muted); font: 400 11px / 1.3 var(--rb-font); }
.rb-rail-num { max-width: 46%; flex: 0 0 auto; text-align: right; }
.rb-rail-num b {
  display: block;
  color: var(--rb-ink);
  font: 600 13.5px / 1.25 var(--rb-font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.rb-rail-num i {
  display: block;
  margin-top: 3px;
  font: 600 11px / 1.2 var(--rb-font);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.rb-rail-num i.is-up { color: var(--rb-up); }
.rb-rail-num i.is-down { color: var(--rb-down); }
.rb-rail-num i.is-flat { color: var(--rb-flat); }

/* ------------------------------------------------------------------------------------------------------------------ */
/* Cote de tendance Prophetic (D6)                                                                                     */
/* ------------------------------------------------------------------------------------------------------------------ */
.rb-cote {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: inherit;
  font: 600 10px / 1.2 var(--rb-font);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.rb-cote b { font-weight: 600; }
.rb-cote i { font-style: normal; font-weight: 500; }
.rb-cote[data-persp="positive"] i { color: var(--rb-up); }
.rb-cote[data-persp="negative"] i { color: var(--rb-down); }
.rb-cote[data-persp="stable"] i { color: var(--rb-flat); }
.rb-cote.is-none { color: var(--rb-muted); font-weight: 500; }
.rb-pbar .rb-cote,
.rb-pbar .rb-cote i,
.rb-pbar .rb-cote.is-none { color: inherit; font-size: 9px; }
.rb-cote .rb-watch {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
  transform: translateY(-1px);
}


.rb-mark { font-style: normal; }
.rb-mark.is-up { color: var(--rb-up); }
.rb-mark.is-down { color: var(--rb-down); }
.rb-mark.is-flat { color: var(--rb-flat); }
.rb-delta { font: 600 11px / 1.2 var(--rb-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-delta.is-up { color: var(--rb-up); }
.rb-delta.is-down { color: var(--rb-down); }
.rb-delta.is-flat { color: var(--rb-flat); }

/* ------------------------------------------------------------------------------------------------------------------ */
/* États, squelette, pied de vue, boutons                                                                              */
/* ------------------------------------------------------------------------------------------------------------------ */
.rb-state {
  display: grid;
  width: min(560px, 100%);
  justify-items: start;
  gap: 12px;
  margin: 40px auto;
  padding: 22px;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-r-lg);
  color: var(--rb-ink);
  background: var(--rb-bg);
  font: 400 13px / 1.5 var(--rb-font);
}
.rb-state p { margin: 0; }
.rb-state strong { font-weight: 500; }
.rb-skel {
  min-height: 210px;
  border-radius: var(--rb-r-card);
  background: var(--rb-surface);
  animation: rb-pulse 1.4s ease-in-out infinite;
}
.rb-skel.is-rail { min-height: 250px; border-radius: var(--rb-r-lg); }
@keyframes rb-pulse { 50% { opacity: 0.55; } }

.rb-foot {
  margin: 42px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rb-line);
  color: var(--rb-muted);
  font: 400 11px / 1.5 var(--rb-font);
}
.rb-foot p { margin: 0; }
.rb-foot p + p { margin-top: 4px; }

.rb-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--rb-ink);
  border-radius: var(--rb-r-pill);
  cursor: pointer;
  color: var(--rb-bg);
  background: var(--rb-ink);
  font: 500 12.5px / 1.2 var(--rb-font);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}
.rb-btn:hover { opacity: 0.86; }
.rb-btn--ghost { color: var(--rb-ink); background: transparent; border-color: var(--rb-line); }
.rb-btn--ghost:hover { opacity: 1; border-color: var(--rb-ink); }
.rb-btn:focus-visible { outline: 2px solid var(--rb-focus); outline-offset: 3px; }
.rb-btn svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------------------------------------------------------ */
/* Responsive, mouvement réduit                                                                                        */
/* ------------------------------------------------------------------------------------------------------------------ */
@media (max-width: 1180px) {
  /* le rail passe sous la grille : retour à la largeur de lecture, rail en 2 colonnes */
  .rb-wrap { --rb-wrap-max: 920px; }
  .rb-body { grid-template-columns: minmax(0, 1fr); }
  .rb-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
}
@media (max-width: 760px) {
  .rb-nav { gap: 10px; padding-left: 52px; }
  .rb-angles {
    gap: 18px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
  }
  .rb-angle { font-size: 12.5px; }
  .rb-explore { padding: 0 11px; font-size: 9px; }
}
/* Tiroir mobile des onglets (04/10/2026) : au-delà de 760 px, le panneau ne crée aucune boîte, la barre reste identique */
.rb-nav-toggle,
.rb-nav-scrim,
.rb-nav-panel-head { display: none; }
.rb-nav-panel { display: contents; }
@media (max-width: 760px) {
  .rb-nav-toggle {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--rb-line, rgb(10 18 23 / 0.12));
    border-radius: 999px;
    color: var(--rb-ink);
    background: #fff;
    font: 600 12.5px / 1.2 var(--rb-font);
    cursor: pointer;
  }
  .rb-nav-toggle-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rb-nav-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; }
  .rb-nav-panel {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(320px, 86vw);
    flex-direction: column;
    gap: 18px;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--rb-bg, #fff);
    box-shadow: -18px 0 40px rgb(10 18 23 / 0.14);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 240ms;
  }
  .rb-topbar.is-nav-open .rb-nav-panel { transform: none; visibility: visible; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
  .rb-nav-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .rb-nav-panel-title { color: var(--rb-ink); font: 600 15px / 1.25 var(--rb-font); }
  .rb-nav-panel-close { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--rb-ink); background: rgb(10 18 23 / 0.06); cursor: pointer; }
  .rb-nav-panel-close svg { width: 18px; height: 18px; }
  /* tiroir ouvert : au-dessus du bouton du menu (125), de la sidebar (130) et du composeur, sous le panneau d'insight (170) */
  .rb-topbar.is-nav-open { z-index: 160; }
  #rubriqueView:has(.rb-topbar.is-nav-open) { z-index: 160; }   /* la vue (70) passe au-dessus du composeur (100) le temps du tiroir */
  .rb-nav-panel .rb-angles {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: visible;
    -webkit-mask-image: none !important;              /* dégradé de la barre horizontale : sans objet dans le tiroir */
    mask-image: none !important;
  }
  .rb-nav-panel .rb-angles > :first-child { margin-left: 0; }
  .rb-nav-panel .rb-angle { min-height: 44px; padding: 10px 12px; border-radius: 12px; font-size: 14px; text-align: left; white-space: normal; }
  .rb-nav-panel .rb-angle[aria-pressed="true"] { background: rgb(10 18 23 / 0.06); }
  .rb-nav-panel .rb-nav-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .rb-nav-panel .rb-explore { justify-content: center; min-height: 44px; font-size: 11px; }
  .rb-nav-scrim {
    position: fixed;
    z-index: 59;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    background: rgb(10 18 23 / 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }
  .rb-topbar.is-nav-open .rb-nav-scrim { opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
  .rb-wrap { --rb-wrap-pad: 16px; }
  .rb-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
  .rb-rail { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
  .rb-card { padding: 20px 16px 18px; border-radius: 18px; }
  .rb-card-open::after { border-radius: 18px; }
  .rb-rail-card { padding: 14px 14px 4px; border-radius: 16px; }
  .rb-rail-row { padding: 12px 0; }
  .rb-row { gap: 12px; }
}
@media (max-width: 430px) {
  .rb-nav { padding-left: 48px; }
  .rb-rub { min-height: 36px; padding: 8px 14px; }
  .rb-btn { min-height: 44px; }
  .rb-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .rb-row .rb-av { width: 44px; height: 44px; min-width: 44px; }
  .rb-pcol .rb-av { width: 42px; height: 42px; min-width: 42px; }
  .rb-podium { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-grid,
  .rb-card,
  .rb-search-pill,
  .rb-rub,
  .rb-angle,
  .rb-explore { transition-duration: 0ms !important; }
  .rb-skel { animation: none; }
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Correctifs de la revue (25/09/2026)                                                                                 */
/* ------------------------------------------------------------------------------------------------------------------ */
/* duel à égalité de score : aucune couleur de vainqueur */
.rb-bar.is-tie > span { background: var(--rb-slate-2); }
/* rail : horizon du delta inscrit (« M+36 ») ; liste sans ligne publiée */
.rb-rail-num i .rb-rail-h { margin-left: 4px; color: var(--rb-slate-2); font: 500 10px / 1 var(--rb-font); letter-spacing: 0.01em; }
.rb-rail-note { margin: 8px 0 14px; color: var(--rb-muted); font: 400 11.5px / 1.45 var(--rb-font); }
.rb-proj-none { color: var(--rb-muted); }
/* barre d'angles qui défile (quelle que soit la largeur) : dégradé sur le bord caché, retiré en fin de défilement */
.rb-angles.is-scrollable:not(.is-end) {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.rb-angles.is-scrollable.is-end:not(.is-start) {
  -webkit-mask-image: linear-gradient(to left, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to left, #000 0, #000 calc(100% - 28px), transparent 100%);
}
@media (max-width: 760px) {
  .rb-angles:not(.is-scrollable) { -webkit-mask-image: none; mask-image: none; }
}
/* mobile : zones tactiles de 44 px au moins (§6.2), texte de 11 px au moins */
@media (max-width: 430px) {
  .rb-angle,
  .rb-explore,
  .rb-search-open,
  .rb-card-link { position: relative; }
  .rb-angle::before,
  .rb-explore::before,
  .rb-card-link::before { position: absolute; inset: -9px -4px; content: ""; }
  .rb-search:not(.is-expanded) .rb-search-open::before { position: absolute; inset: -5px; content: ""; }
  .rb-card-link { min-height: 44px; }
  .rb-rub { min-height: 44px; }
  .rb-explore { font-size: 11px; }
  .rb-pbar .rb-cote,
  .rb-pbar .rb-cote i,
  .rb-pbar .rb-cote.is-none { font-size: 11px; }
}

/* ==== Retouche de l'utilisateur (2026-09-25) : en-tête et ombre des cartes identiques à Orchestra, style homepage ==== */
/* 1. En-tête : seule reste la barre d'Orchestra (angles à droite, « Explorer l'Index », loupe).
      Titre, compteur, date du corpus et ligne d'angle : gardés pour les lecteurs d'écran, jamais affichés. */
.rb-head {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.rb-rubs { display: none !important; }                 /* pastilles Sélection / Signal / Arena / League Arena / Floor */
.rb-angle span { display: none; }                      /* pas de compteur après les angles */
/* 2026-10-01 (demande de l'utilisateur : « ne pas au over de trait noir fixe ») : plus de trait noir sous l'onglet actif ni
   au survol ; l'onglet actif se lit à sa couleur d'encre et à sa graisse 600 */
.rb-angle[aria-pressed="true"]::after { content: none; }
/* 16/10 (« le menu de Scénarios à Portfolio Modeling ne doit pas bouger » ; « oui supprimer aussi le décalage du gras ») : double
   invisible du libellé en graisse 600, de hauteur nulle : chaque onglet garde la largeur de sa version active, le passage
   en gras ne décale plus les onglets voisins */
.rb-angle[data-rb-label]::after,
.rb-angle[data-rb-label][aria-pressed="true"]::after {
  content: attr(data-rb-label);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}
.rb-nav { position: relative; z-index: 2; }
.rb-nav::before {                                       /* fond semi-transparent flouté sur toute la largeur */
  content: "";
  position: absolute;
  top: 0;
  right: -50vw;
  bottom: 0;
  left: -50vw;
  z-index: -1;
  background: color-mix(in srgb, var(--rb-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* 2. Cartes : fond blanc, liseré qui s'efface en diagonale et petit halo d'ombre sur le coin haut gauche */
.rb-card,
.rb-card:hover {
  border-color: transparent;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}
.rb-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border: 1px solid rgb(178 183 191 / 0.24);
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(135deg, #000 6%, rgb(0 0 0 / 0.4) 30%, transparent 58%);
  mask: linear-gradient(135deg, #000 6%, rgb(0 0 0 / 0.4) 30%, transparent 58%);
}
.rb-card::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: -1;
  width: 72px;
  height: 72px;
  border-radius: 26px 0 0 0;
  pointer-events: none;
  background: radial-gradient(circle at 16% 16%, rgb(58 64 74 / 0.15) 0%, rgb(80 87 98 / 0.08) 34%, rgb(120 127 138 / 0.03) 52%, rgb(196 200 205 / 0) 62%);
  filter: blur(3px);
}
/* Luxe & Prestige à trois colonnes (2026-10-09) : les cartes reprennent le gris à peine teinté posé plus haut sur --rb-card */
:root:not([data-theme="dark"]) .rb-view[data-mode="segment"] .rb-card { background: var(--rb-card); }

/* titre d'une carte podcast reliée à Floor : ouvre la transcription, même aspect que le titre (2026-09-27) */
.rb-card-titlebtn { padding: 0; border: 0; color: inherit; background: none; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.rb-card-titlebtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.rb-card-titlebtn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* 2026-10-01 (demande de l'utilisateur : « le header de toutes les pages rubriques saute / bouge en scroll bas des pages, bien
   le fixer ») : pendant qu'une vue des rubriques est ouverte, plus de rebond élastique du défilement en haut et en bas de page
   (il entraînait la barre collante) ; la barre reste collée à 0 px, sans transformation ni changement de hauteur. */
html:has(#rubriqueView:not([hidden])),
html:has(#rubriqueView:not([hidden])) body { overscroll-behavior-y: none; }
#rubriqueView .rb-topbar { top: 0; transform: none; will-change: auto; }
/* 2026-10-04 (iPhone : « sur toutes les pages rubrique le haut de page header tremble au scroll ») : sur téléphone, plus de
   flou d'arrière-plan sous la barre collante (Safari la redessine à chaque pas du défilement) : fond blanc opaque ; bouton
   « Menu » calé à droite (pas de cloche à réserver sur mobile). Aucune transformation sur la barre : le tiroir fixe en dépend. */
@media (max-width: 760px) {
  .rb-topbar::before,
  .rb-nav::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--rb-bg, #fff); }
  .rb-nav { padding-right: 0; }
}
/* 2026-10-06 (iPad, tablette : « le header LEGAL saute au scroll rapide bas ou haut, fixer ») : même remède sur tout écran
   tactile (iPad compris, au-delà de 760 px) : fond opaque sans flou sous la barre collante, que Safari ne redessine plus à
   chaque pas d'un défilement rapide ; barre sur son propre calque (isolation, sans transformation : le tiroir fixe mobile en
   dépend). Ordinateur sans écran tactile : flou gardé. */
@media (any-pointer: coarse) {   /* écran tactile, iPad avec clavier à pavé compris */
  .rb-topbar::before,
  .rb-nav::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--rb-bg, #fff); }
  #rubriqueView .rb-topbar { isolation: isolate; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
}

/* Vins patrimoniaux, onglet « Régions » (2026-10-03) : huit podcasts et leurs points clés */
.rb-region-points { margin: 12px 0 0; padding-left: 16px; color: var(--rb-slate); font: 400 12px / 1.45 var(--rb-font); }
.rb-region-points li + li { margin-top: 4px; }
.rb-region-points:empty { display: none; }
