/* BNTIC Research Africa — feuille de style de l'application.
 *
 * MOBILE D'ABORD. Les règles de base décrivent l'affichage téléphone ; les
 * requêtes média n'ajoutent que ce qu'un écran plus large permet. Points de
 * rupture : 600 px (grand téléphone), 900 px (tablette), 1100 px (ordinateur).
 * Aucun élément ne dépasse la largeur de l'écran, aucune cible tactile ne
 * descend sous 44 px, aucun champ sous 16 px (en dessous, iOS agrandit la
 * page à chaque mise au point et le visiteur doit dézoomer à la main).
 *
 * MÊME LANGAGE VISUEL QUE LES OBSERVATOIRES BNTIC : jeu de variables, ombres
 * légères, cartes qui se soulèvent au survol, titres soulignés d'un trait
 * d'accent, pictogrammes en pastille. Research Africa garde son accent
 * bleu-sarcelle ; l'écriture, elle, est la même d'une application à l'autre.
 *
 * TOUT EST PRÉFIXÉ PAR .ra-shell : la feuille générale du site ne peut pas
 * écraser ces règles, et ces règles ne débordent pas sur le reste du site.
 */

.ra-shell {
  --ra-ink: #10242d;
  --ra-texte: #2b4049;
  --ra-muted: #5c7178;
  --ra-line: #dde9e9;
  --ra-line-fort: #c4d7d7;
  --ra-fond: #f6fafa;
  --ra-pale: #eef7f5;
  --ra-blue: #075985;
  --ra-teal: #0f766e;
  --ra-teal-fonce: #0b4f55;
  --ra-teal-pale: #e2f3ef;
  --ra-hero-1: #072b3a;
  --ra-hero-2: #0b5563;
  --ra-hero-3: #11806f;
  --ra-or: #f2b705;
  --ra-rayon: 16px;
  --ra-rayon-petit: 11px;
  --ra-ombre: 0 1px 2px rgba(16, 36, 45, .05), 0 1px 1px rgba(16, 36, 45, .03);
  --ra-ombre-haute: 0 12px 30px -14px rgba(16, 36, 45, .30), 0 2px 6px rgba(16, 36, 45, .06);
  --ra-tap: 44px;
  --ra-transition: 160ms ease;
  background: #fff;
  color: var(--ra-texte);
  min-height: 70vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ra-shell *, .ra-shell *::before, .ra-shell *::after { box-sizing: border-box; }
.ra-shell a { color: var(--ra-blue); text-underline-offset: .18em; }
.ra-shell a:hover { color: var(--ra-teal-fonce); }
.ra-shell img { max-width: 100%; height: auto; }
.ra-shell h1, .ra-shell h2, .ra-shell h3 { color: var(--ra-ink); letter-spacing: -.01em; }
.ra-shell :focus-visible { outline: 3px solid var(--ra-or); outline-offset: 2px; border-radius: 6px; }
.ra-shell .bi { line-height: 1; }

/* Un titre, un DOI ou un nom d'institution ne doit jamais élargir la page. */
.ra-shell h1, .ra-shell h2, .ra-shell h3,
.ra-shell .ra-card h3, .ra-shell .ra-byline, .ra-shell .ra-method-note,
.ra-shell .ra-muted, .ra-shell .ra-chip-list > * {
  overflow-wrap: anywhere;
}

.ra-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------------------------------------------------------------- navigation */
.ra-shell .ra-nav {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--ra-line);
  background: rgba(255, 255, 255, .96);
}
.ra-shell .ra-nav-inner {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  align-items: stretch;
  padding-top: .5rem;
  padding-bottom: .35rem;
}
.ra-shell .ra-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--ra-tap);
  color: var(--ra-ink) !important;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
}
.ra-shell .ra-brand i {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ra-teal);
  color: #fff;
  font-size: 1rem;
}
/* Le rail de navigation défile horizontalement plutôt que de se replier sur
   plusieurs lignes : l'ordre des rubriques reste lisible et la hauteur du
   bandeau ne varie pas. */
.ra-shell .ra-nav-scroll {
  margin-inline: -1rem;
  padding-inline: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ra-shell .ra-nav-scroll::-webkit-scrollbar { display: none; }
.ra-shell .ra-nav-links { display: flex; flex-wrap: nowrap; gap: .15rem; width: max-content; padding-bottom: .4rem; }
.ra-shell .ra-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 .8rem;
  border-radius: 999px;
  color: var(--ra-texte);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ra-transition), color var(--ra-transition);
}
.ra-shell .ra-nav-links a:hover,
.ra-shell .ra-nav-links a:focus-visible { background: var(--ra-pale); color: var(--ra-teal-fonce); }
.ra-shell .ra-nav-links a[aria-current="page"] { background: var(--ra-teal-pale); color: var(--ra-teal-fonce); }

/* --------------------------------------------------------------- en-têtes */
.ra-shell .ra-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(155deg, var(--ra-hero-1) 0%, var(--ra-hero-2) 58%, var(--ra-hero-3) 100%);
  padding-block: clamp(2rem, 6vw, 4rem);
}
.ra-shell .ra-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: .07; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 22px 22px;
}
.ra-shell .ra-page-head {
  padding-block: clamp(1.5rem, 4vw, 2.6rem) clamp(1rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--ra-line);
  background: linear-gradient(180deg, var(--ra-fond), #fff);
}
.ra-shell .ra-hero-grid { display: grid; gap: 1.5rem; align-items: center; }

.ra-shell .ra-kicker, .ra-shell .ra-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--ra-teal-pale);
  color: var(--ra-teal-fonce);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ra-shell .ra-hero .ra-kicker {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #bdeee2;
}

.ra-shell .ra-hero h1 {
  margin: .7rem 0 .9rem;
  color: #fff;
  font-size: clamp(1.8rem, 5.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.ra-shell .ra-hero p {
  max-width: 44ch;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.05rem;
  line-height: 1.65;
}
.ra-shell .ra-page-head h1, .ra-shell .ra-detail h1, .ra-shell .ra-prose-page h1 {
  margin: .6rem 0 .7rem;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
}
.ra-shell .ra-page-head p {
  max-width: 70ch;
  margin: 0;
  color: var(--ra-muted);
  font-size: 1.02rem;
}

/* ------------------------------------------------------- champs et boutons */
.ra-shell input, .ra-shell select, .ra-shell textarea, .ra-shell button {
  font: inherit;
  font-size: max(1rem, 16px);
}
.ra-shell input:not([type="checkbox"]):not([type="radio"]),
.ra-shell select,
.ra-shell textarea {
  width: 100%;
  min-height: var(--ra-tap);
  padding: .6rem .75rem;
  border: 1px solid var(--ra-line-fort);
  border-radius: var(--ra-rayon-petit);
  background: #fff;
  color: var(--ra-ink);
  transition: border-color var(--ra-transition), box-shadow var(--ra-transition);
}
.ra-shell input:focus, .ra-shell select:focus, .ra-shell textarea:focus {
  border-color: var(--ra-teal);
  box-shadow: 0 0 0 3px var(--ra-teal-pale);
}
.ra-shell input[type="checkbox"], .ra-shell input[type="radio"] {
  width: 1.15rem; height: 1.15rem; margin-right: .5rem;
  accent-color: var(--ra-teal);
}

.ra-shell .ra-button, .ra-shell .ra-search-line button, .ra-shell .ra-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: var(--ra-tap);
  padding: .7rem 1.15rem;
  border: 1px solid var(--ra-teal);
  border-radius: 12px;
  background: var(--ra-teal);
  color: #fff !important;
  font-weight: 700;
  font-size: .96rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ra-transition), box-shadow var(--ra-transition), transform var(--ra-transition);
}
.ra-shell .ra-button:hover, .ra-shell .ra-button:focus-visible,
.ra-shell .ra-search-line button:hover, .ra-shell .ra-filter button:hover {
  background: var(--ra-teal-fonce);
  border-color: var(--ra-teal-fonce);
}
.ra-shell .ra-button-light, .ra-shell .ra-button-clair {
  border: 1px solid var(--ra-line-fort);
  background: #fff;
  color: var(--ra-teal) !important;
  align-self: start;
  white-space: nowrap;
}
.ra-shell .ra-button-light:hover, .ra-shell .ra-button-clair:hover {
  border-color: var(--ra-teal);
  background: var(--ra-teal-pale);
  color: var(--ra-teal-fonce) !important;
}

/* ------------------------------------------------------ panneau de recherche */
.ra-shell .ra-search-panel {
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .55);
}
.ra-shell .ra-search-panel label { display: block; margin-bottom: .5rem; color: var(--ra-ink); font-weight: 800; }
.ra-shell .ra-search-line { display: flex; gap: .45rem; }
.ra-shell .ra-search-line input { flex: 1; min-width: 0; }
.ra-shell .ra-search-line button { flex: 0 0 auto; padding-inline: 1rem; }
.ra-shell .ra-quick-fields { display: grid; gap: .55rem; margin-top: .6rem; }
/* Hors du bandeau (page Rechercher), le panneau reste une carte claire. */
.ra-shell .ra-page-head .ra-search-panel,
.ra-shell .ra-section .ra-search-panel {
  border-color: var(--ra-line);
  box-shadow: var(--ra-ombre);
}

/* ------------------------------------------------------------- mise en page */
.ra-shell .ra-section { padding-top: clamp(2rem, 4.5vw, 3.4rem); }
.ra-shell .ra-section:last-of-type { padding-bottom: 1rem; }
.ra-shell .ra-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.ra-shell .ra-section-head h2, .ra-shell .ra-panel h2, .ra-shell .ra-detail h2 {
  margin: .25rem 0;
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
}
.ra-shell .ra-section-head h2::after {
  content: ""; display: block;
  width: 44px; height: 3px;
  margin-top: .5rem;
  border-radius: 3px;
  background: var(--ra-teal);
}
.ra-shell .ra-section-head > a {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: var(--ra-tap);
  font-weight: 700;
  text-decoration: none;
}
.ra-shell .ra-section-head > a:hover { text-decoration: underline; }

.ra-shell .ra-layout { display: grid; gap: 1.2rem; padding-top: 1.5rem; }
.ra-shell .ra-layout > *, .ra-shell .ra-two-cols > *, .ra-shell .ra-compare-grid > * { min-width: 0; max-width: 100%; }

/* Encadré de mise en avant : une idée, une phrase, une action. */
.ra-shell .ra-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ra-line);
  border-left: 4px solid var(--ra-teal);
  border-radius: var(--ra-rayon);
  background: linear-gradient(180deg, var(--ra-pale), #fff 70%);
  box-shadow: var(--ra-ombre);
}
.ra-shell .ra-feature > div > i {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--ra-teal-pale);
  color: var(--ra-teal);
  font-size: 1.3rem;
}
.ra-shell .ra-feature h3 { margin: .6rem 0 .35rem; font-size: 1.08rem; font-weight: 800; }
.ra-shell .ra-feature p { max-width: 70ch; margin: 0; color: var(--ra-muted); }
.ra-shell .ra-feature-editorial { border-left-color: var(--ra-blue); }
.ra-shell .ra-feature-editorial > div > i { background: #e7f0f7; color: var(--ra-blue); }

/* Thèmes d'exploration */
.ra-shell .ra-topic-grid { display: grid; gap: .7rem; }
.ra-shell .ra-topic {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
  text-decoration: none;
  transition: border-color var(--ra-transition), box-shadow var(--ra-transition), transform var(--ra-transition);
}
.ra-shell .ra-topic:hover {
  border-color: var(--ra-teal);
  box-shadow: var(--ra-ombre-haute);
  transform: translateY(-2px);
}
.ra-shell .ra-topic i {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--ra-teal-pale);
  color: var(--ra-teal);
  font-size: 1.15rem;
}
.ra-shell .ra-topic span { margin: .7rem 0 .15rem; color: var(--ra-ink); font-weight: 800; }
.ra-shell .ra-topic small { color: var(--ra-muted); font-size: .84rem; }

/* Nuage des pays et pastilles */
.ra-shell .ra-country-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.ra-shell .ra-country-cloud a, .ra-shell .ra-chip-list > * {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
  padding: .4rem .8rem;
  border: 1px solid var(--ra-line);
  border-radius: 999px;
  background: #fff;
  font-size: .88rem;
  text-decoration: none;
  transition: border-color var(--ra-transition), background var(--ra-transition);
}
.ra-shell .ra-country-cloud a { color: var(--ra-texte); }
.ra-shell .ra-country-cloud a:hover { border-color: var(--ra-teal); background: var(--ra-pale); color: var(--ra-teal-fonce); }
.ra-shell .ra-chip-list { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Provenance des données, en pied de page d'application. */
.ra-shell .ra-attribution {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: var(--ra-fond);
}
.ra-shell .ra-attribution i {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ra-teal-pale);
  color: var(--ra-teal);
  font-size: 1.1rem;
}
.ra-shell .ra-attribution p { margin: 0; color: var(--ra-muted); font-size: .88rem; line-height: 1.6; }
.ra-shell .ra-attribution strong { color: var(--ra-ink); }

/* -------------------------------------------------------------- filtres */
/* Sur téléphone, le formulaire précède les résultats : replié dans un
   « details », il tient en une ligne et le visiteur voit ses résultats tout
   de suite ; ouvert, il occupe toute la largeur. */
.ra-shell .ra-filter-shell {
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
  overflow: hidden;
}
.ra-shell .ra-filter-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 50px;
  padding: .6rem 1rem;
  background: var(--ra-fond);
  color: var(--ra-ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.ra-shell .ra-filter-toggle::-webkit-details-marker { display: none; }
.ra-shell .ra-filter-toggle::after {
  content: "▾";
  margin-left: auto;
  color: var(--ra-muted);
  transition: transform var(--ra-transition);
}
.ra-shell .ra-filter-shell[open] .ra-filter-toggle { border-bottom: 1px solid var(--ra-line); }
.ra-shell .ra-filter-shell[open] .ra-filter-toggle::after { transform: rotate(180deg); }
.ra-shell .ra-filter { padding: 1rem; }
.ra-shell .ra-filter h2 { font-size: 1.02rem; font-weight: 800; }
.ra-shell .ra-filter p { margin-bottom: .75rem; color: var(--ra-muted); font-size: .9rem; }
.ra-shell .ra-filter label { display: block; margin-bottom: .25rem; font-size: .85rem; font-weight: 700; }
.ra-shell .ra-filter .helptext { display: block; margin-top: .25rem; color: var(--ra-muted); font-size: .8rem; }
.ra-shell .ra-filter ul { margin: 0 0 .8rem; padding: 0; list-style: none; }
.ra-shell .ra-filter ul li { display: flex; align-items: flex-start; gap: .4rem; margin-bottom: .45rem; }
.ra-shell .ra-filter ul li label { margin: 0; font-size: .9rem; font-weight: 500; line-height: 1.4; }
.ra-shell .ra-filter button { width: 100%; }

.ra-shell .ra-filter-group + .ra-filter-group {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--ra-line);
}
.ra-shell .ra-filter-legend {
  margin: 0 0 .7rem;
  color: var(--ra-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ra-shell .ra-field { margin: 0 0 .85rem; }
.ra-shell .ra-field > label { display: block; margin-bottom: .3rem; font-size: .86rem; font-weight: 700; }
.ra-shell .ra-field--case { display: flex; align-items: center; gap: .6rem; min-height: var(--ra-tap); }
.ra-shell .ra-field--case input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; }
.ra-shell .ra-field--case > label { margin: 0; font-weight: 500; cursor: pointer; }
.ra-shell .ra-field-help { margin: .3rem 0 0; color: var(--ra-muted); font-size: .82rem; line-height: 1.45; }
.ra-shell .ra-field-error { margin: .3rem 0 0; color: #a4232b; font-size: .85rem; font-weight: 600; }
.ra-shell .ra-field--erreur input, .ra-shell .ra-field--erreur select { border-color: #a4232b; }

/* -------------------------------------------------------------- résultats */
.ra-shell .ra-list { display: grid; gap: .85rem; }
.ra-shell .ra-panel, .ra-shell .ra-card {
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
}
.ra-shell .ra-card {
  padding: 1.1rem;
  transition: border-color var(--ra-transition), box-shadow var(--ra-transition), transform var(--ra-transition);
}
.ra-shell .ra-card:hover { border-color: var(--ra-line-fort); box-shadow: var(--ra-ombre-haute); transform: translateY(-2px); }
.ra-shell .ra-card:focus-within { border-color: var(--ra-teal); }
.ra-shell .ra-card h3 { margin: .5rem 0; font-size: 1.05rem; font-weight: 800; line-height: 1.38; }
.ra-shell .ra-card h3 a { color: var(--ra-ink); text-decoration: none; }
.ra-shell .ra-card h3 a:hover, .ra-shell .ra-card h3 a:focus-visible { color: var(--ra-blue); text-decoration: underline; }
.ra-shell .ra-card p { margin: .35rem 0; }
.ra-shell .ra-work-card { border-left: 3px solid var(--ra-teal-pale); }
.ra-shell .ra-work-card:hover { border-left-color: var(--ra-teal); }

.ra-shell .ra-card-meta, .ra-shell .ra-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  color: var(--ra-muted);
  font-size: .8rem;
}
.ra-shell .ra-card-foot {
  justify-content: space-between;
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--ra-line);
}
.ra-shell .ra-card-foot a { display: inline-flex; align-items: center; min-height: 38px; font-weight: 600; }
.ra-shell .ra-byline { font-size: .95rem; line-height: 1.6; color: var(--ra-texte); }
.ra-shell .ra-work-abstract { margin: .5rem 0 .6rem; color: var(--ra-texte); font-size: .92rem; line-height: 1.6; }

.ra-shell .ra-badge, .ra-shell .ra-score {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.5;
}
.ra-shell .ra-badge-open { background: #ddf5e9; color: #08734e; }
.ra-shell .ra-badge-feed { background: #e6efff; color: #1d4ed8; }
.ra-shell .ra-badge-apc { background: #fdeee0; color: #9a5b16; }
.ra-shell .ra-badge-cross { background: #ece8fd; color: #5b32c8; }
.ra-shell .ra-score { background: var(--ra-teal-pale); color: var(--ra-teal-fonce); }
.ra-shell .ra-score-light { background: #f1f5f9; color: #475569; }
.ra-shell .ra-muted { color: var(--ra-muted); font-size: .9rem; }

.ra-shell .ra-geo-note {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: baseline;
  margin: .55rem 0 0;
  color: var(--ra-texte);
  font-size: .85rem;
}
.ra-shell .ra-geo-note i { color: var(--ra-teal); }
.ra-shell .ra-geo-evidence { color: var(--ra-muted); font-style: italic; }

/* Le détail du classement : replié par défaut, il n'encombre pas la liste
   mais reste consultable pour vérifier pourquoi un résultat est là. */
.ra-shell .ra-why { margin-top: .8rem; padding-top: .65rem; border-top: 1px solid var(--ra-line); }
.ra-shell .ra-why > summary {
  display: flex; align-items: center; gap: .35rem;
  min-height: 38px;
  color: var(--ra-blue);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.ra-shell .ra-why ul { margin: .6rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.ra-shell .ra-why li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem .75rem;
  padding: .45rem .6rem;
  border-radius: var(--ra-rayon-petit);
  background: var(--ra-fond);
  font-size: .85rem;
}
.ra-shell .ra-why-label { font-weight: 700; color: var(--ra-ink); }
.ra-shell .ra-why-points { color: var(--ra-teal); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ra-shell .ra-why li small { grid-column: 1 / -1; color: var(--ra-muted); line-height: 1.45; }
.ra-shell .ra-why-note { margin-top: .7rem; color: var(--ra-muted); font-size: .8rem; }

.ra-shell .ra-results-head {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: var(--ra-pale);
  color: var(--ra-ink);
}
.ra-shell .ra-results-head strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ra-shell .ra-results-page { display: block; margin-top: .15rem; color: var(--ra-muted); font-size: .82rem; }
.ra-shell .ra-merge-note { margin: -.4rem 0 1rem; color: var(--ra-muted); font-size: .85rem; }
.ra-shell .ra-pagination-state { white-space: nowrap; }
.ra-shell .ra-pagination-note { margin: .9rem 0 0; color: var(--ra-muted); font-size: .88rem; line-height: 1.55; }

.ra-shell .ra-alert, .ra-shell .ra-empty {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #f1c6b8;
  border-radius: var(--ra-rayon);
  background: #fff4ef;
  color: #8d351e;
}
.ra-shell .ra-empty {
  border: 1px dashed var(--ra-line-fort);
  background: var(--ra-fond);
  color: var(--ra-muted);
  text-align: center;
}
.ra-shell .ra-neutral { border-color: var(--ra-line); background: var(--ra-fond); color: var(--ra-texte); }

.ra-shell .ra-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem; padding: 1.3rem 0; }
.ra-shell .ra-pagination a, .ra-shell .ra-pagination span {
  display: inline-flex;
  align-items: center;
  min-height: var(--ra-tap);
  padding: .5rem 1rem;
  border: 1px solid var(--ra-line-fort);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}
.ra-shell .ra-pagination a:hover { border-color: var(--ra-teal); background: var(--ra-pale); }
.ra-shell .ra-pagination span { border-style: dashed; color: var(--ra-muted); font-weight: 600; }

/* --------------------------------------------------------------- détail */
.ra-shell .ra-detail, .ra-shell .ra-prose-page { max-width: 1000px; padding-block: 1.5rem 2rem; }
.ra-shell .ra-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
  margin-bottom: 1.1rem;
  color: var(--ra-muted);
  font-size: .85rem;
}
.ra-shell .ra-breadcrumb a { color: var(--ra-muted); font-weight: 600; text-decoration: none; }
.ra-shell .ra-breadcrumb a:hover { color: var(--ra-teal-fonce); text-decoration: underline; }
.ra-shell .ra-detail section { margin-top: 1.9rem; }
.ra-shell .ra-detail h2 {
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: .8rem;
}
.ra-shell .ra-detail h2::before {
  content: ""; flex: 0 0 auto;
  width: 4px; height: 1.1em;
  border-radius: 3px;
  background: var(--ra-teal);
}
.ra-shell .ra-prose p, .ra-shell .ra-prose-page p, .ra-shell .ra-prose-page li,
.ra-shell .ra-detail > section > p {
  max-width: 72ch;
  color: var(--ra-texte);
  line-height: 1.75;
}
.ra-shell .ra-prose-page h2 {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ra-line);
  font-size: 1.3rem;
  font-weight: 800;
}
.ra-shell .ra-prose-page h2:first-of-type { border-top: 0; padding-top: 0; }
.ra-shell .ra-prose-page .lead { font-size: 1.06rem; color: var(--ra-texte); }
.ra-shell .ra-prose-page li::marker, .ra-shell .ra-evidence-scale li::marker { color: var(--ra-teal); }
.ra-shell .ra-evidence-scale { display: grid; gap: .6rem; padding-left: 1.2rem; }
.ra-shell .ra-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.9rem; }
.ra-shell .ra-actions > a { flex: 1 1 auto; }

.ra-shell .ra-metrics { display: grid; gap: .75rem; margin: 1.3rem 0; }
.ra-shell .ra-metrics > div {
  position: relative;
  padding: 1rem 1.05rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
  overflow: hidden;
}
.ra-shell .ra-metrics > div::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--ra-teal);
}
.ra-shell .ra-metrics strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--ra-ink);
  font-variant-numeric: tabular-nums;
}
.ra-shell .ra-metrics span { display: block; margin-top: .4rem; color: var(--ra-muted); font-size: .85rem; line-height: 1.45; }

/* --------------------------------------------------------- tableaux de bord */
.ra-shell .ra-dashboard { padding-top: 1.5rem; }
.ra-shell .ra-two-cols, .ra-shell .ra-compare-grid { display: grid; gap: 1.1rem; margin-top: 1.1rem; }
.ra-shell .ra-panel { padding: 1.2rem; min-width: 0; max-width: 100%; }
.ra-shell .ra-panel > *, .ra-shell .ra-panel-heading, .ra-shell .ra-panel-heading > div { min-width: 0; max-width: 100%; }
.ra-shell .ra-panel-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.ra-shell .ra-panel h2 {
  display: flex; align-items: center; gap: .55rem;
}
.ra-shell .ra-panel h2::before {
  content: ""; flex: 0 0 auto;
  width: 4px; height: 1.05em;
  border-radius: 3px;
  background: var(--ra-teal);
}
.ra-shell .ra-panel-heading p { margin: .3rem 0 0; color: var(--ra-muted); font-size: .86rem; line-height: 1.55; }
.ra-shell .ra-inline-form { display: grid; gap: .55rem; max-width: 760px; margin-top: 1rem; }
.ra-shell .ra-big-number {
  margin-top: 1rem;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ra-ink);
  font-variant-numeric: tabular-nums;
}
.ra-shell .ra-compare-bar { height: 10px; margin: 1rem 0; }

.ra-shell .ra-scope-note, .ra-shell .ra-source-card, .ra-shell .ra-source-check, .ra-shell .ra-radar-panel {
  margin-top: 1.1rem;
  padding: 1.2rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
}
.ra-shell .ra-scope-note { border-left: 4px solid var(--ra-teal); background: linear-gradient(180deg, var(--ra-pale), #fff 70%); }
.ra-shell .ra-source-card h3 { margin: 0 0 .35rem; font-size: 1.12rem; font-weight: 800; }
.ra-shell .ra-scope-note > a { display: inline-flex; align-items: center; min-height: var(--ra-tap); margin-top: .5rem; font-weight: 700; }
.ra-shell .ra-radar-panel { margin-top: 2rem; border-left: 4px solid var(--ra-blue); }

/* La note de méthode : ce que la page ne dit PAS. Elle doit se voir. */
.ra-shell .ra-method-note, .ra-shell .ra-note {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #f1d49b;
  border-left: 4px solid #e09100;
  border-radius: var(--ra-rayon-petit);
  background: #fffaf0;
  color: #5a4209;
  font-size: .89rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ra-shell .ra-note { margin-top: .8rem; }

/* Listes de définitions : empilées sur téléphone, en deux colonnes ensuite. */
.ra-shell .ra-panel dl > div, .ra-shell .ra-source-card dl > div, .ra-shell .ra-source-check dl > div {
  display: grid;
  gap: .15rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--ra-line);
}
.ra-shell .ra-panel dl > div:last-child,
.ra-shell .ra-source-card dl > div:last-child,
.ra-shell .ra-source-check dl > div:last-child { border-bottom: 0; }
.ra-shell .ra-panel dt, .ra-shell .ra-source-card dt, .ra-shell .ra-source-check dt {
  color: var(--ra-muted); font-size: .76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}
.ra-shell .ra-panel dd, .ra-shell .ra-source-card dd, .ra-shell .ra-source-check dd {
  margin: 0; color: var(--ra-ink); font-weight: 700; overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- barres */
.ra-shell .ra-bars { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 1.1rem; }
.ra-shell .ra-bar-row { display: block; min-width: 0; }
.ra-shell .ra-bar-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .65rem;
  font-size: .86rem;
}
.ra-shell .ra-bar-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.ra-shell .ra-bar-count { flex: 0 0 auto; white-space: nowrap; font-weight: 700; color: var(--ra-ink); font-variant-numeric: tabular-nums; }
.ra-shell .ra-bar-track {
  display: block;
  width: 100%;
  height: 9px;
  margin-top: .4rem;
  border-radius: 99px;
  background: #e7efef;
  overflow: hidden;
}
.ra-shell .ra-bar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ra-teal), #38bdf8);
}
/* L'année en cours n'est pas terminée : le dire sur la barre elle-même évite
   qu'on lise une chute là où il n'y a qu'un exercice incomplet. */
.ra-shell .ra-bar-partielle {
  margin-left: .4rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, .16);
  color: #8a4b00;
  font-size: .7rem;
  font-weight: 700;
  vertical-align: middle;
}

/* ------------------------------------------------- indicateurs et listes */
.ra-shell .ra-indicator-grid { display: grid; gap: .75rem; margin-top: 1.1rem; }
.ra-shell .ra-indicator {
  padding: 1rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
}
.ra-shell .ra-indicator strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ra-ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ra-shell .ra-indicator span { display: block; margin-top: .3rem; color: var(--ra-teal); font-size: .78rem; font-weight: 800; }
.ra-shell .ra-indicator small { display: block; margin-top: .5rem; color: var(--ra-muted); font-size: .8rem; line-height: 1.45; }
.ra-shell .ra-indicator-empty { background: var(--ra-fond); }
.ra-shell .ra-indicator-empty strong { color: #9fb1b1; font-size: 1.05rem; }

/* Sur téléphone ces listes défilent avec la page. Le défilement interne n'est
   rétabli qu'à partir de la tablette, où il évite un panneau démesuré sans
   piéger le geste du lecteur. */
.ra-shell .ra-institution-list, .ra-shell .ra-journal-list { display: grid; gap: .6rem; margin-top: 1rem; }
.ra-shell .ra-institution-item, .ra-shell .ra-journal-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  padding: .85rem .95rem;
  border: 1px solid var(--ra-line);
  border-left: 3px solid var(--ra-teal-pale);
  border-radius: var(--ra-rayon-petit);
  background: #fff;
  transition: border-color var(--ra-transition), background var(--ra-transition);
}
.ra-shell .ra-institution-item:hover, .ra-shell .ra-journal-item:hover {
  border-left-color: var(--ra-teal);
  background: var(--ra-fond);
}
.ra-shell .ra-institution-item > div, .ra-shell .ra-journal-item > div { min-width: 0; }
.ra-shell .ra-institution-item strong, .ra-shell .ra-journal-item strong {
  display: block; color: var(--ra-ink); overflow-wrap: anywhere;
}
.ra-shell .ra-institution-item small, .ra-shell .ra-journal-item small {
  display: block;
  margin-top: .22rem;
  color: var(--ra-muted);
  font-size: .82rem;
  overflow-wrap: anywhere;
}
.ra-shell .ra-institution-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}
.ra-shell .ra-institution-acronym {
  display: inline-block;
  margin-left: .4rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: var(--ra-teal-pale);
  color: var(--ra-teal-fonce);
  font-size: .7rem;
  font-weight: 800;
}
.ra-shell .ra-journal-item .ra-badge { align-self: flex-start; font-size: .74rem; }
.ra-shell .ra-journals, .ra-shell .ra-indicators, .ra-shell .ra-coverage { margin-top: 1rem; }
.ra-shell .ra-feed-provenance { margin-top: 1.2rem; }
.ra-shell .ra-feed-provenance .ra-chip-list { margin-top: .8rem; }

/* L'ancrage institutionnel d'une publication : établissement, unité, lieu. */
.ra-shell .ra-affiliations { max-height: none; }
.ra-shell .ra-affiliations .ra-institution-item { align-items: center; }
.ra-shell .ra-badge-type {
  background: var(--ra-teal-pale);
  color: var(--ra-teal-fonce);
  white-space: nowrap;
}
.ra-shell .ra-affiliations small i { color: var(--ra-teal); margin-right: .25rem; }

/* Chercheurs observés, listes simples et pastilles */
.ra-shell .ra-researcher-list, .ra-shell .ra-plain-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem;
}
.ra-shell .ra-researcher {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-height: var(--ra-tap);
  justify-content: center;
  padding: .6rem .8rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon-petit);
  background: #fff;
}
.ra-shell .ra-researcher:hover { border-color: var(--ra-teal); background: var(--ra-fond); }
.ra-shell .ra-researcher > a { font-weight: 700; text-decoration: none; }
.ra-shell .ra-researcher > a:hover { text-decoration: underline; }
.ra-shell .ra-researcher-topics { color: var(--ra-muted); font-size: .82rem; }

.ra-shell .ra-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ra-shell .ra-chips > li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 34px;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--ra-teal-pale);
  color: var(--ra-teal-fonce);
  font-size: .86rem;
  font-weight: 600;
}

/* L'annuaire des chercheurs */
.ra-shell .ra-directory-scopes { margin: 1.2rem 0; }
.ra-shell .ra-chip-actif > a, .ra-shell .ra-chips > li.ra-chip-actif {
  background: var(--ra-teal);
  color: #fff !important;
  border-color: var(--ra-teal);
}
.ra-shell .ra-chip-actif > a { border-radius: 999px; }
.ra-shell .ra-directory-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 1.3rem 0 1rem;
  padding: .6rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: var(--ra-fond);
}
.ra-shell .ra-directory-alpha > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 .5rem;
  border-radius: 9px;
  color: var(--ra-texte);
  font-weight: 700;
  text-decoration: none;
}
.ra-shell .ra-directory-alpha > a:hover { background: var(--ra-teal-pale); color: var(--ra-teal-fonce); }
.ra-shell .ra-lettre-active { background: var(--ra-teal); color: #fff !important; }
.ra-shell .ra-directory-grid { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .8rem; }
.ra-shell .ra-directory-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
  transition: border-color var(--ra-transition), box-shadow var(--ra-transition), transform var(--ra-transition);
}
.ra-shell .ra-directory-card:hover { border-color: var(--ra-teal); box-shadow: var(--ra-ombre-haute); transform: translateY(-2px); }
.ra-shell .ra-directory-card h3 { margin: 0 0 .2rem; font-size: 1.02rem; line-height: 1.35; font-weight: 800; }
.ra-shell .ra-directory-card p { margin: .15rem 0; }
.ra-shell .ra-directory-meta { color: var(--ra-muted); font-size: .85rem; }

/* Veille de la rédaction : les parutions par thématique. */
.ra-shell .ra-themes { margin: 1.2rem 0 .4rem; }
.ra-shell .ra-themes > a[aria-current="page"] {
  background: var(--ra-teal); border-color: var(--ra-teal); color: #fff !important;
}
.ra-shell .ra-recent-list, .ra-shell .ra-watch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ra-shell .ra-recent-card {
  padding: 1.1rem;
  border: 1px solid var(--ra-line);
  border-left: 3px solid var(--ra-teal-pale);
  border-radius: var(--ra-rayon);
  background: #fff;
  box-shadow: var(--ra-ombre);
}
.ra-shell .ra-recent-card:hover { border-left-color: var(--ra-teal); }
.ra-shell .ra-recent-date {
  display: inline-flex; align-items: center;
  color: var(--ra-teal-fonce);
  font-weight: 800;
  font-size: .85rem;
}
.ra-shell .ra-recent-title { margin: .45rem 0; font-size: 1.06rem; line-height: 1.38; overflow-wrap: anywhere; }
.ra-shell .ra-recent-note { margin: .35rem 0; color: #7a4a00; font-size: .82rem; overflow-wrap: anywhere; }
.ra-shell .ra-recent-radar {
  margin-top: .9rem;
  padding: .75rem .95rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon-petit);
  background: var(--ra-fond);
}
.ra-shell .ra-recent-radar > summary {
  display: flex; align-items: center; gap: .4rem;
  min-height: var(--ra-tap);
  color: var(--ra-teal-fonce);
  font-weight: 700;
  cursor: pointer;
}
.ra-shell .ra-recent-radar textarea, .ra-shell .ra-recent-radar select { width: 100%; max-width: 100%; }
.ra-shell .ra-recent-radar label { display: block; margin-top: .5rem; font-size: .86rem; font-weight: 600; }
.ra-shell .ra-recent-upcoming { margin-top: 1.6rem; }
.ra-shell .ra-recent-upcoming li { margin-bottom: .45rem; overflow-wrap: anywhere; }
.ra-shell .ra-watch-summary {
  padding: 1rem 1.1rem;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-rayon);
  background: var(--ra-pale);
  color: var(--ra-ink);
}

/* ================================================================ 600 px + */
@media (min-width: 600px) {
  .ra-shell .ra-quick-fields { grid-template-columns: 1fr 1fr; }
  .ra-shell .ra-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-shell .ra-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-shell .ra-indicator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-shell .ra-inline-form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
  .ra-shell .ra-institution-item, .ra-shell .ra-journal-item { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .ra-shell .ra-institution-item > a, .ra-shell .ra-journal-item .ra-badge { flex: 0 0 auto; }
  .ra-shell .ra-results-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
  .ra-shell .ra-section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
  .ra-shell .ra-feature { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .ra-shell .ra-actions > a { flex: 0 0 auto; }
  .ra-shell .ra-filter button { width: auto; }
  .ra-shell .ra-researcher-list, .ra-shell .ra-plain-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-shell .ra-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-shell .ra-panel dl > div, .ra-shell .ra-source-card dl > div, .ra-shell .ra-source-check dl > div {
    grid-template-columns: minmax(140px, .4fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
  }
}

/* ================================================================ 900 px + */
@media (min-width: 900px) {
  .ra-shell .ra-nav-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
  .ra-shell .ra-nav-scroll { margin-inline: 0; padding-inline: 0; }
  .ra-shell .ra-nav-links { padding-bottom: 0; }
  .ra-shell .ra-two-cols, .ra-shell .ra-compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-shell .ra-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ra-shell .ra-indicator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ra-shell .ra-topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ra-shell .ra-institution-list, .ra-shell .ra-journal-list {
    max-height: 430px;
    padding-right: .25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* =============================================================== 1100 px + */
@media (min-width: 1100px) {
  .ra-shell .ra-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; }
  .ra-shell .ra-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); }
  /* Sur grand écran le panneau de filtres reste ouvert et suit le défilement :
     le repli n'a d'intérêt que là où la place manque. */
  .ra-shell .ra-filter-shell { position: sticky; top: 1rem; }
  .ra-shell .ra-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (hover: none) {
  .ra-shell .ra-card:hover, .ra-shell .ra-topic:hover, .ra-shell .ra-directory-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ra-shell *, .ra-shell *::before, .ra-shell *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .ra-shell .ra-card:hover, .ra-shell .ra-topic:hover, .ra-shell .ra-directory-card:hover { transform: none; }
}

@media print {
  .ra-shell .ra-nav, .ra-shell .ra-filter-shell, .ra-shell .ra-pagination,
  .ra-shell .ra-radar-panel, .ra-shell .ra-recent-radar, .ra-shell .ra-themes,
  .ra-shell .ra-search-panel { display: none !important; }
  .ra-shell .ra-why[open] > summary { list-style: none; }
  .ra-shell { background: #fff; }
  .ra-shell .ra-hero { background: #fff; color: var(--ra-ink); }
  .ra-shell .ra-hero::after { display: none; }
  .ra-shell .ra-hero h1, .ra-shell .ra-hero p { color: var(--ra-ink); }
  .ra-shell .ra-card, .ra-shell .ra-panel, .ra-shell .ra-topic, .ra-shell .ra-metrics > div { box-shadow: none; }
}

/* ======================================================================
   OCTOBRE 2026 : THÉMATIQUES (numérique, innovation, énergie) ET FINITIONS
   ====================================================================== */

/* En-tête : halos de couleur et grille légère, plus de profondeur. */
.ra-shell .ra-hero {
  background:
    radial-gradient(700px 360px at 8% 0%, rgba(56, 189, 248, .22), transparent 65%),
    radial-gradient(620px 320px at 100% 10%, rgba(242, 183, 5, .16), transparent 62%),
    radial-gradient(900px 380px at 100% 0%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(155deg, var(--ra-hero-1) 0%, var(--ra-hero-2) 58%, var(--ra-hero-3) 100%);
}
.ra-shell .ra-hero h1 { text-wrap: balance; }
.ra-shell .ra-section-head h2, .ra-shell .ra-page-head h1 { text-wrap: balance; }

/* Fil d'Ariane visible (le JSON-LD le décrit aussi aux moteurs). */
.ra-shell .ra-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .9rem; font-size: .82rem; }
.ra-shell .ra-ariane a { color: #bdeee2; text-decoration: none; }
.ra-shell .ra-ariane a:hover { color: #fff; text-decoration: underline; }
.ra-shell .ra-ariane span { color: rgba(255, 255, 255, .55); }
.ra-shell .ra-ariane span:last-child { color: rgba(255, 255, 255, .85); }

/* Boutons de l'en-tête */
.ra-shell .ra-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.ra-shell .ra-button-or { background: var(--ra-or) !important; color: #2a1d00 !important; border-color: transparent !important; }
.ra-shell .ra-button-or:hover { background: #ffd23f !important; color: #2a1d00 !important; }
.ra-shell .ra-button-verre { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .28) !important; }
.ra-shell .ra-button-verre:hover { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }

/* Pastille de famille */
.ra-shell .ra-famille-pastille { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; vertical-align: -.35em;
  color: #fff; background: linear-gradient(140deg, var(--fam, var(--ra-teal)), color-mix(in srgb, var(--fam, var(--ra-teal)) 55%, #021018));
  box-shadow: 0 8px 18px -10px var(--fam, var(--ra-teal)); font-size: 1.05rem; }

/* Catalogue des thèmes */
.ra-shell .ra-famille-ancres { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.ra-shell .ra-famille-ancres a { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--ra-tap); padding: .45rem .9rem; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); }
.ra-shell .ra-famille-ancres a span { padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(255, 255, 255, .16); }
.ra-shell .ra-famille-ancres a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ra-shell .ra-famille-section { scroll-margin-top: 5rem; }
.ra-shell .ra-famille-section .ra-section-head h2 { display: flex; align-items: center; gap: .6rem; }
.ra-shell .ra-theme-grid { display: grid; gap: .8rem; }
.ra-shell .ra-theme-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.15rem 1rem; border-radius: var(--ra-rayon);
  border: 1px solid var(--ra-line); background: #fff; box-shadow: var(--ra-ombre); text-decoration: none; overflow: hidden;
  transition: border-color var(--ra-transition), box-shadow var(--ra-transition), transform var(--ra-transition); }
.ra-shell .ra-theme-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--fam, var(--ra-teal)); opacity: .85; }
.ra-shell .ra-theme-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--fam, var(--ra-teal)) 45%, var(--ra-line)); box-shadow: var(--ra-ombre-haute); }
.ra-shell .ra-theme-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem;
  color: var(--fam, var(--ra-teal)); background: color-mix(in srgb, var(--fam, var(--ra-teal)) 11%, #fff); }
.ra-shell .ra-theme-card strong { margin-top: .45rem; color: var(--ra-ink); font-size: 1.02rem; line-height: 1.3; }
.ra-shell .ra-theme-card small { color: var(--ra-muted); font-size: .86rem; line-height: 1.5; }
.ra-shell .ra-theme-cta { margin-top: auto; padding-top: .55rem; color: var(--fam, var(--ra-teal)); font-size: .84rem; font-weight: 800; }
.ra-shell .ra-theme-card:hover .ra-theme-cta i { transform: translateX(3px); }
.ra-shell .ra-theme-cta i { display: inline-block; transition: transform var(--ra-transition); }

/* Page d'une thématique */
.ra-shell .ra-hero-theme { background:
    radial-gradient(620px 320px at 100% 0%, color-mix(in srgb, var(--fam) 42%, transparent), transparent 65%),
    radial-gradient(700px 360px at 0% 0%, rgba(56, 189, 248, .18), transparent 65%),
    linear-gradient(155deg, var(--ra-hero-1) 0%, var(--ra-hero-2) 60%, var(--ra-hero-3) 100%); }
.ra-shell .ra-hero-theme-grid { display: grid; gap: 1.6rem; align-items: end; }
.ra-shell .ra-hero-theme p { max-width: 60ch; }
.ra-shell .ra-theme-fiche { display: grid; gap: .1rem; margin: 0; padding: 1rem 1.1rem; border-radius: var(--ra-rayon);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.ra-shell .ra-theme-fiche > div { display: grid; padding: .5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ra-shell .ra-theme-fiche > div:first-child { border-top: 0; }
.ra-shell .ra-theme-fiche dt { color: rgba(255, 255, 255, .65); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ra-shell .ra-theme-fiche dd { margin: 0; color: #fff; font-weight: 600; font-size: .92rem; }
.ra-shell .ra-theme-layout { display: grid; gap: 1.6rem; padding-block: clamp(1.6rem, 4vw, 2.6rem); }
.ra-shell .ra-theme-aside { display: grid; gap: 1rem; align-content: start; }
.ra-shell .ra-theme-voisins { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.ra-shell .ra-theme-voisins a { display: flex; align-items: center; gap: .55rem; min-height: var(--ra-tap); padding: .35rem .55rem; border-radius: 10px;
  color: var(--ra-texte); text-decoration: none; font-weight: 600; font-size: .92rem; }
.ra-shell .ra-theme-voisins a i { color: var(--ra-teal); }
.ra-shell .ra-theme-voisins a:hover { background: var(--ra-pale); color: var(--ra-teal-fonce); }

/* Familles repliables (veille, annuaire) */
.ra-shell .ra-familles { display: grid; gap: .6rem; margin-block: 1.2rem .4rem; }
.ra-shell .ra-familles-titre { margin: 0 0 .2rem; color: var(--ra-muted); font-weight: 600; }
.ra-shell .ra-famille { border: 1px solid var(--ra-line); border-radius: var(--ra-rayon); background: #fff; box-shadow: var(--ra-ombre); overflow: hidden; }
.ra-shell .ra-famille[open] { border-color: color-mix(in srgb, var(--fam, var(--ra-teal)) 35%, var(--ra-line)); }
.ra-shell .ra-famille > summary { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico nom nb" "ico intro nb"; column-gap: .75rem;
  align-items: center; min-height: var(--ra-tap); padding: .7rem .9rem; cursor: pointer; list-style: none; }
.ra-shell .ra-famille > summary::-webkit-details-marker { display: none; }
.ra-shell .ra-famille-ico { grid-area: ico; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff;
  background: var(--fam, var(--ra-teal)); }
.ra-shell .ra-famille > summary strong { grid-area: nom; color: var(--ra-ink); }
.ra-shell .ra-famille > summary small { grid-area: intro; color: var(--ra-muted); font-size: .82rem; line-height: 1.35; }
.ra-shell .ra-famille-nb { grid-area: nb; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
  color: var(--fam, var(--ra-teal)); background: color-mix(in srgb, var(--fam, var(--ra-teal)) 10%, #fff); }
.ra-shell .ra-famille .ra-themes { padding: .2rem .9rem .9rem; }
.ra-shell .ra-famille .ra-themes a[aria-current="page"] { background: var(--fam, var(--ra-teal)); border-color: var(--fam, var(--ra-teal)); color: #fff; }
.ra-shell .ra-famille-chips { margin-bottom: .5rem; }
.ra-shell .ra-famille-chips > summary { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--ra-tap); cursor: pointer; font-weight: 800; color: var(--ra-ink); }

/* Accueil : trois familles */
.ra-shell .ra-familles-accueil { display: grid; gap: 1rem; }
.ra-shell .ra-famille-carte { display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem; border-radius: calc(var(--ra-rayon) + 2px); background: #fff;
  border: 1px solid var(--ra-line); box-shadow: var(--ra-ombre); position: relative; overflow: hidden; }
.ra-shell .ra-famille-carte::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fam) 20%, transparent), transparent 70%); pointer-events: none; }
.ra-shell .ra-famille-carte header { display: flex; gap: .8rem; align-items: flex-start; }
.ra-shell .ra-famille-carte h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.ra-shell .ra-famille-carte header p { margin: .2rem 0 0; color: var(--ra-muted); font-size: .88rem; }
.ra-shell .ra-famille-carte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ra-shell .ra-famille-carte li a { display: flex; align-items: center; gap: .55rem; min-height: 40px; padding: .3rem .5rem; border-radius: 10px;
  color: var(--ra-texte); text-decoration: none; font-weight: 600; font-size: .93rem; }
.ra-shell .ra-famille-carte li a i { color: var(--fam); width: 1.1rem; text-align: center; }
.ra-shell .ra-famille-carte li a:hover { background: color-mix(in srgb, var(--fam) 8%, #fff); color: var(--ra-ink); }
.ra-shell .ra-famille-tout { margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--ra-line); color: var(--fam) !important; font-weight: 800; text-decoration: none; }

@media (min-width: 600px) {
  .ra-shell .ra-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ra-shell .ra-theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ra-shell .ra-familles-accueil { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ra-shell .ra-hero-theme-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .ra-shell .ra-theme-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .ra-shell .ra-theme-aside { position: sticky; top: 1rem; }
}
@media (min-width: 1100px) {
  .ra-shell .ra-theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Téléphone d'abord : puces d'une famille en défilement horizontal. */
.ra-shell .ra-famille .ra-themes { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.ra-shell .ra-famille .ra-themes::-webkit-scrollbar { display: none; }
.ra-shell .ra-famille .ra-themes > * { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
.ra-shell .ra-famille > summary small { display: none; }
.ra-shell .ra-theme-fiche > div { grid-template-columns: 1fr; gap: .1rem; }
@media (min-width: 600px) {
  .ra-shell .ra-famille .ra-themes { flex-wrap: wrap; overflow-x: visible; }
  .ra-shell .ra-famille .ra-themes > * { white-space: normal; }
  .ra-shell .ra-famille > summary small { display: block; }
  .ra-shell .ra-theme-fiche > div { grid-template-columns: 8.5rem 1fr; gap: .6rem; }
  .ra-shell .ra-theme-fiche { backdrop-filter: blur(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .ra-shell .ra-theme-card, .ra-shell .ra-theme-cta i { transition: none; }
}

/* ======================================================================
   OCTOBRE 2026, FINITIONS : un langage visuel plus éditorial
   Titres en caractères de titrage, surfaces douces, dégradés discrets,
   reliefs au survol. Écrit téléphone d'abord, comme le reste du fichier.
   ====================================================================== */
.ra-shell {
  --ra-display: var(--font-display, "Playfair Display", Georgia, serif);
  --ra-grad: linear-gradient(120deg, #0f766e 0%, #0e7490 55%, #0369a1 100%);
  --ra-grad-or: linear-gradient(120deg, #f59e0b, #f2b705);
  --ra-rayon: 18px;
  background: linear-gradient(180deg, #fff 0, #f7fbfb 520px, #fff 1400px);
}
.ra-shell ::selection { background: rgba(15, 118, 110, .18); }
.ra-shell h1, .ra-shell h2 { font-family: var(--ra-display); font-weight: 700; }
.ra-shell .ra-card h3, .ra-shell .ra-directory-card h3 { font-family: var(--ra-display); font-weight: 700; letter-spacing: -.005em; }

/* Barre de navigation : marque en dégradé, onglet actif plein. */
.ra-shell .ra-nav { background: rgba(255, 255, 255, .9); border-bottom-color: rgba(16, 36, 45, .07);
  box-shadow: 0 10px 30px -28px rgba(16, 36, 45, .45); }
.ra-shell .ra-brand i { background: var(--ra-grad); box-shadow: 0 8px 18px -10px rgba(14, 116, 144, .9); }
.ra-shell .ra-nav-scroll { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.ra-shell .ra-nav-links a[aria-current="page"] { background: var(--ra-grad); color: #fff; box-shadow: 0 8px 18px -12px rgba(14, 116, 144, .9); }
.ra-shell .ra-nav-links a[aria-current="page"]:hover { color: #fff; }

/* En-têtes clairs des pages intérieures : halos et trame légère. */
.ra-shell .ra-page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 0;
  padding-block: clamp(2rem, 5vw, 3.4rem) clamp(1.4rem, 3.5vw, 2.2rem);
  background:
    radial-gradient(520px 260px at 6% 0%, rgba(20, 184, 166, .16), transparent 70%),
    radial-gradient(480px 240px at 96% 10%, rgba(56, 189, 248, .14), transparent 70%),
    radial-gradient(420px 220px at 70% 100%, rgba(242, 183, 5, .10), transparent 70%),
    linear-gradient(180deg, #f3faf9, #fff); }
.ra-shell .ra-page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(15, 118, 110, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 118, 110, .06) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 90% at 30% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 90% at 30% 0%, #000 20%, transparent 75%); }
.ra-shell .ra-page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, .35), rgba(3, 105, 161, .35), transparent); }
.ra-shell .ra-page-head h1 { font-size: clamp(1.85rem, 5.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; }
.ra-shell .ra-page-head p { font-size: 1.04rem; color: var(--ra-texte); }

/* Accueil : panneau de recherche en verre dépoli. */
.ra-shell .ra-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.ra-shell .ra-hero .ra-search-panel { border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 30px 70px -30px rgba(2, 20, 28, .75), 0 0 0 6px rgba(255, 255, 255, .06); }

/* Boutons */
.ra-shell .ra-button, .ra-shell .ra-search-line button, .ra-shell .ra-filter button { background: var(--ra-grad); border-color: transparent;
  box-shadow: 0 10px 22px -14px rgba(14, 116, 144, .95); }
.ra-shell .ra-button:hover, .ra-shell .ra-search-line button:hover, .ra-shell .ra-filter button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ra-shell .ra-button-light, .ra-shell .ra-button-clair { background: #fff; box-shadow: none; }

/* Titres de section : trait d'accent en dégradé */
.ra-shell .ra-section-head h2::after { background: var(--ra-grad); height: 3px; border-radius: 3px; }
.ra-shell .ra-panel h2::before { background: var(--ra-grad); }
.ra-shell .ra-eyebrow, .ra-shell .ra-page-head .ra-kicker { background: rgba(15, 118, 110, .09); border: 1px solid rgba(15, 118, 110, .14); }

/* Surfaces : panneaux, cartes, chiffres */
.ra-shell .ra-panel, .ra-shell .ra-card, .ra-shell .ra-directory-card, .ra-shell .ra-feature, .ra-shell .ra-metrics > div {
  border-color: rgba(16, 36, 45, .08); border-radius: var(--ra-rayon);
  box-shadow: 0 1px 2px rgba(16, 36, 45, .04), 0 12px 28px -24px rgba(16, 36, 45, .35); }
.ra-shell .ra-card { position: relative; transition: transform var(--ra-transition), box-shadow var(--ra-transition), border-color var(--ra-transition); }
.ra-shell .ra-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: var(--ra-grad); opacity: 0; transition: opacity var(--ra-transition); }
.ra-shell .ra-card:hover { transform: translateY(-2px); border-color: rgba(15, 118, 110, .28); box-shadow: var(--ra-ombre-haute); }
.ra-shell .ra-card:hover::before { opacity: 1; }
.ra-shell .ra-card h3 { font-size: 1.12rem; line-height: 1.35; }
.ra-shell .ra-card h3 a { color: var(--ra-ink); text-decoration: none; }
.ra-shell .ra-card h3 a:hover { color: var(--ra-teal-fonce); text-decoration: underline; text-decoration-thickness: 1px; }
.ra-shell .ra-card-meta > span:not(.ra-badge):not(.ra-score) { padding: .12rem .5rem; border-radius: 999px; background: var(--ra-fond); }
.ra-shell .ra-metrics > div { position: relative; overflow: hidden; background: #fff; }
.ra-shell .ra-metrics > div::before { background: var(--ra-grad); }
.ra-shell .ra-metrics strong { font-family: var(--ra-display); font-size: clamp(2rem, 5vw, 2.6rem);
  background: var(--ra-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barres de répartition plus franches */
.ra-shell .ra-bar-track { height: 10px; border-radius: 999px; background: #edf5f4; }
.ra-shell .ra-bar-track > span { border-radius: 999px; background: linear-gradient(90deg, #0f766e, #0ea5e9); }
.ra-shell .ra-bar-row:hover .ra-bar-track > span { filter: brightness(1.08) saturate(1.1); }

/* Annuaire : monogrammes */
.ra-shell .ra-directory-card { position: relative; padding-left: 4.2rem; }
.ra-shell .ra-avatar { position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--ra-display); font-weight: 700; font-size: .98rem; letter-spacing: .02em; color: #fff; background: var(--ra-grad);
  box-shadow: 0 8px 18px -10px rgba(14, 116, 144, .9); }
.ra-shell .ra-directory-card:nth-child(3n+2) .ra-avatar { background: linear-gradient(120deg, #7c3aed, #0369a1); }
.ra-shell .ra-directory-card:nth-child(3n+3) .ra-avatar { background: linear-gradient(120deg, #c2410c, #f59e0b); }
.ra-shell .ra-pays-chips > summary { min-height: var(--ra-tap); }

/* Pastilles et nuage de pays */
.ra-shell .ra-country-cloud a, .ra-shell .ra-chips > li { border-color: rgba(16, 36, 45, .1); background: #fff; transition: all var(--ra-transition); }
.ra-shell .ra-country-cloud a:hover, .ra-shell .ra-chips > li:hover { border-color: var(--ra-teal); color: var(--ra-teal-fonce); transform: translateY(-1px); }
.ra-shell .ra-chips > li.ra-chip-actif, .ra-shell .ra-chips > li.ra-chip-actif a { background: var(--ra-grad); border-color: transparent; color: #fff; }

/* Encadrés « à la une » de l'accueil */
.ra-shell .ra-feature { border-left-width: 1px; background:
    radial-gradient(400px 160px at 100% 0%, rgba(14, 165, 233, .07), transparent 70%), #fff; }
.ra-shell .ra-feature > div > i { background: var(--ra-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(14, 116, 144, .9); }
.ra-shell .ra-feature-editorial > div > i { background: linear-gradient(120deg, #0369a1, #4f46e5); color: #fff; }

/* Alertes et notes */
.ra-shell .ra-alert, .ra-shell .ra-method-note, .ra-shell .ra-note { border-radius: 14px; }

/* Provenance des données : carte au liseré dégradé */
.ra-shell .ra-attribution { position: relative; border: 1px solid transparent; border-radius: 20px;
  background: linear-gradient(#fbfefd, #fbfefd) padding-box, linear-gradient(120deg, rgba(15, 118, 110, .35), rgba(3, 105, 161, .25), rgba(242, 183, 5, .3)) border-box; }

@media (min-width: 900px) {
  .ra-shell .ra-nav-scroll { -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ra-shell .ra-card, .ra-shell .ra-card::before, .ra-shell .ra-country-cloud a, .ra-shell .ra-chips > li { transition: none; }
}

/* Accueil : chiffres de l'en-tête et bandeau des sources */
.ra-shell .ra-hero-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 1.6rem 0 0; max-width: 30rem; }
.ra-shell .ra-hero-chiffres > div { display: flex; flex-direction: column; padding: 0 .9rem; border-left: 1px solid rgba(255, 255, 255, .2); }
.ra-shell .ra-hero-chiffres > div:first-child { padding-left: 0; border-left: 0; }
.ra-shell .ra-hero-chiffres dd { order: -1; margin: 0; font-family: var(--ra-display); font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.ra-shell .ra-hero-chiffres dt { margin-top: .2rem; color: #bdeee2; font-size: .78rem; font-weight: 600; }
.ra-shell .ra-bandeau-sources { border-bottom: 1px solid rgba(16, 36, 45, .07); background: #fff; }
.ra-shell .ra-bandeau-sources .container { display: flex; align-items: center; gap: 1rem; padding-block: .9rem; overflow: hidden; }
.ra-shell .ra-bandeau-sources span { flex: 0 0 auto; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ra-muted); }
.ra-shell .ra-bandeau-sources ul { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ra-shell .ra-bandeau-sources ul::-webkit-scrollbar { display: none; }
.ra-shell .ra-bandeau-sources li { flex: 0 0 auto; color: #6b7f86; font-weight: 700; font-size: .92rem; white-space: nowrap; filter: grayscale(1); }
@media (min-width: 1100px) {
  .ra-shell .ra-bandeau-sources ul { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* Annuaire sur téléphone : les pastilles d'une famille ou des pays défilent en ligne. */
.ra-shell .ra-famille-chips .ra-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.ra-shell .ra-famille-chips .ra-chips::-webkit-scrollbar { display: none; }
.ra-shell .ra-famille-chips .ra-chips > li { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
@media (min-width: 600px) {
  .ra-shell .ra-famille-chips .ra-chips { flex-wrap: wrap; overflow-x: visible; }
  .ra-shell .ra-famille-chips .ra-chips > li { white-space: normal; }
}

/* ======================================================================
   OCTOBRE 2026 (bis) : chercheurs d'un pays, corrections et finitions
   ====================================================================== */

/* Navigation : la marque ne se coupe plus, les rubriques tiennent sur grand écran. */
.ra-shell .ra-brand { white-space: nowrap; flex: 0 0 auto; }
.ra-shell .ra-nav-scroll { min-width: 0; }

/* Chercheurs observés d'un pays : monogramme, grille, filtre, suite repliable. */
.ra-shell .ra-chercheurs-pays .ra-researcher { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: .7rem; align-items: center;
  padding: .65rem .8rem; border-color: rgba(16, 36, 45, .08); border-radius: 14px; transition: border-color var(--ra-transition), box-shadow var(--ra-transition), transform var(--ra-transition); }
.ra-shell .ra-chercheurs-pays .ra-researcher > :not(.ra-avatar) { grid-column: 2; }
.ra-shell .ra-chercheurs-pays .ra-researcher:hover { transform: translateY(-1px); box-shadow: var(--ra-ombre-haute); background: #fff; }
.ra-shell .ra-avatar-petit { position: static; grid-row: span 3; width: 34px; height: 34px; font-size: .85rem; }
.ra-shell .ra-chercheurs-pays .ra-researcher:nth-child(3n+2) .ra-avatar { background: linear-gradient(120deg, #7c3aed, #0369a1); }
.ra-shell .ra-chercheurs-pays .ra-researcher:nth-child(3n+3) .ra-avatar { background: linear-gradient(120deg, #c2410c, #f59e0b); }
.ra-shell .ra-chercheurs-pays .ra-researcher[hidden] { display: none; }
.ra-shell .ra-non-exhaustif { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; padding: .8rem 1rem; border-radius: 14px;
  background: linear-gradient(120deg, rgba(242, 183, 5, .10), rgba(242, 183, 5, .04)); border: 1px solid rgba(242, 183, 5, .35); color: var(--ra-texte); font-size: .9rem; line-height: 1.55; }
.ra-shell .ra-non-exhaustif i { color: #b45309; margin-top: .15rem; }
.ra-shell .ra-filtre-chercheurs { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: 0 .9rem; min-height: var(--ra-tap);
  border: 1px solid rgba(16, 36, 45, .12); border-radius: 999px; background: #fff; }
.ra-shell .ra-filtre-chercheurs:focus-within { border-color: var(--ra-teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.ra-shell .ra-filtre-chercheurs i { color: var(--ra-muted); }
.ra-shell .ra-filtre-chercheurs input { flex: 1; min-width: 0; min-height: 0; border: 0 !important; outline: 0; box-shadow: none !important;
  background: transparent !important; font-size: 1rem; padding: .55rem 0; }
.ra-shell .ra-filtre-chercheurs output { flex: 0 0 auto; font-size: .82rem; }
.ra-shell .ra-chercheurs-suite { margin-top: .9rem; }
.ra-shell .ra-chercheurs-suite > summary { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--ra-tap);
  margin-bottom: .9rem; padding: .55rem 1rem; border-radius: 999px; cursor: pointer; list-style: none; font-weight: 800; color: var(--ra-teal-fonce);
  background: var(--ra-teal-pale); border: 1px solid rgba(15, 118, 110, .2); }
.ra-shell .ra-chercheurs-suite > summary::-webkit-details-marker { display: none; }
.ra-shell .ra-chercheurs-suite > summary:hover { background: #d4efe9; }
.ra-shell .ra-chercheurs-suite > summary i { transition: transform var(--ra-transition); }
.ra-shell .ra-chercheurs-suite[open] > summary i { transform: rotate(180deg); }

/* Panneaux de chiffres : la valeur non déclarée reste lisible, sans dégradé. */
.ra-shell .ra-indicator-grid .ra-indisponible strong, .ra-shell .ra-indicator-missing strong { background: none; color: var(--ra-muted); }

@media (min-width: 1100px) {
  .ra-shell .ra-chercheurs-pays .ra-researcher-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ra-shell .ra-nav-links { gap: 0; }
  .ra-shell .ra-nav-links a { padding: 0 .55rem; font-size: .86rem; }
}
/* Téléphone : fiches de chercheurs compactes ; bouton secondaire dessiné. */
.ra-shell .ra-chercheurs-pays .ra-researcher-topics { display: none; }
.ra-shell .ra-chercheurs-pays .ra-researcher { padding: .5rem .7rem; }
.ra-shell .ra-panel-heading .ra-button-clair { border: 1px solid rgba(15, 118, 110, .35) !important; border-radius: 999px; color: var(--ra-teal-fonce) !important; background: #fff !important; }
.ra-shell .ra-panel-heading .ra-button-clair:hover { background: var(--ra-teal-pale) !important; }
@media (min-width: 600px) {
  .ra-shell .ra-chercheurs-pays .ra-researcher-topics { display: block; }
  .ra-shell .ra-chercheurs-pays .ra-researcher { padding: .65rem .8rem; }
}
