/* Le nouveau blog RNP (refonte du site public). Feuille chargée SEULEMENT par la coque du nouveau blog
   (<link precedence> dans src/components/rnp/Coque.tsx) : les pages d'aujourd'hui ne la chargent pas
   (chantier « site cohérent », 17/11 : CSS module fusionné par Next dans un fichier partagé par tout le site).
   Classes préfixées « rnp- » ; dans le code : s.nom (src/components/rnp/styles.ts). Après modification :
   mettre à jour RNP_CSS_VERSION (le test styles.test.ts donne la valeur). */

/*
 * La coque RNP (nouveau blog, maquettes validées par Vincent le 16/11).
 * Règles : Anton + Inter, jamais de serif ; deux teintes d'affiche (contenu = nuit,
 * série = crème) ; bleu réservé aux actions et aux offres ; orange au petit carré ;
 * aucune progression de lecture (le visiteur n'est pas connecté).
 */
.rnp-coque {
  --r-navy: #141a3c; --r-ink: #1a1f4d; --r-ink2: #4a5172; --r-ink3: #6b7090; --r-mute: #a0a5bb;
  --r-line: #e9eaf0; --r-blue: #3d6ef7; --r-blue-ink: #2c57cc; --r-cream: #f4eee4; --r-paper: #f6f6f3; --r-orange: #fe6e00;
  --r-side: 300px; --r-right: 256px; --r-gap: 56px;
  /* la mise en page (grand écran) : le panneau, une marge, la page, la colonne de droite, la même marge.
     La page et sa colonne forment un bloc centré dans la place libre : jamais de vide d'un seul côté.
     --r-cote : la place du panneau (0 quand il est réduit en filet) ; --r-large : la largeur maximale de la page
     (celle d'une colonne de lecture sur un article) ; --r-marge : la marge minimale de chaque côté. */
  --r-cote: var(--r-side); --r-marge: 40px; --r-large: 1240px;
  --r-col-droite: calc(var(--r-right) + var(--r-gap));
  --r-display: var(--font-display, 'Anton'), Impact, sans-serif;
  display: grid;
  grid-template-columns: var(--r-cote) minmax(var(--r-marge), 1fr) minmax(0, var(--r-large)) var(--r-col-droite) minmax(var(--r-marge), 1fr);
  gap: 0;
  padding: 0;
  background: var(--r-paper);
  color: var(--r-ink);
  font-family: var(--font-sans, Inter), system-ui, sans-serif;
  min-height: 100dvh;
}
.rnp-coque.rnp-sansDroite { --r-col-droite: 0px; }
/* l'article garde la grille de la rubrique (retour de Vincent, 18/11) : plus de colonne de lecture étroite et centrée */
.rnp-coque a { color: inherit; text-decoration: none; }
.rnp-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--r-ink3); }


/* ───────── panneau de verre ───────── */
.rnp-panneau {
  position: sticky; top: 0; align-self: start; height: 100dvh; display: flex; flex-direction: column;
  border-radius: 0 26px 26px 0; background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .9); border-left: 0;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(26, 31, 77, .05), 0 24px 48px -32px rgba(20, 26, 60, .28);
  overflow: hidden; z-index: 5;
}
.rnp-haut { padding: 18px 16px 12px; }
.rnp-marque { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.rnp-marque .rnp-l { display: flex; align-items: center; }
.rnp-logo { display: block; height: 30px; width: auto; }
.rnp-marque b { font-family: var(--r-display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: .01em; }
.rnp-carre { display: inline-block; width: 6px; height: 6px; background: var(--r-orange); margin-left: 2px; }
.rnp-marque small { font-size: 11.5px; font-weight: 600; color: var(--r-ink3); }
.rnp-langues { display: flex; gap: 2px; font-size: 12px; font-weight: 600; color: var(--r-mute); }
.rnp-langues a { padding: 5px 6px; border-radius: 8px; }
.rnp-langues a[aria-current] { color: var(--r-ink); }
.rnp-champ {
  margin-top: 16px; display: flex; width: 100%; align-items: center; gap: 10px; height: 44px; padding: 0 7px 0 13px;
  border: 0; border-radius: 14px; background: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 0 0 1px rgba(26, 31, 77, .07), 0 6px 16px -12px rgba(20, 26, 60, .35); font: 400 14px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3);
}
.rnp-champ span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnp-champ kbd { font: 600 11px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3); background: var(--r-paper); border-radius: 7px; padding: 4px 7px; }
.rnp-onglets { margin-top: 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: rgba(26, 31, 77, .05); }
.rnp-onglets button { height: 30px; border: 0; background: transparent; border-radius: 9px; font: 600 12.5px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3); cursor: pointer; }
.rnp-onglets button[aria-selected='true'] { background: #fff; color: var(--r-ink); box-shadow: 0 1px 2px rgba(20, 26, 60, .08), 0 4px 10px -6px rgba(20, 26, 60, .25); }
.rnp-volet { flex: 1; overflow: auto; padding: 4px 10px 14px; font-size: 14px; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 20px), transparent); }
.rnp-volet::-webkit-scrollbar { display: none; }
.rnp-r { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 10px; color: var(--r-ink2); line-height: 1.3; font: inherit; text-align: left; cursor: pointer; }
.rnp-r > a { flex: 1; min-width: 0; color: inherit; }
.rnp-bascule { flex: none; display: grid; place-items: center; width: 14px; height: 18px; margin: 0 -2px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.rnp-r:hover { background: rgba(255, 255, 255, .8); }
.rnp-r svg { flex: none; color: var(--r-mute); transition: transform .2s; }
.rnp-r .rnp-n { margin-left: auto; padding-left: 8px; font-size: 12px; color: var(--r-mute); font-variant-numeric: tabular-nums; }
.rnp-r.rnp-ouvert { color: var(--r-ink); font-weight: 600; }
.rnp-r.rnp-ouvert svg { transform: rotate(90deg); color: var(--r-ink); }
.rnp-r.rnp-ici { background: var(--r-ink); color: #fff; }
.rnp-r.rnp-ici svg, .rnp-r.rnp-ici .rnp-n { color: rgba(255, 255, 255, .6); }
/* Brain Club, l'émission : une entrée à côté des rubriques, séparée d'elles par un filet (demande de Vincent, 18/11) */
.rnp-r.rnp-emission { position: relative; margin-top: 13px; font-weight: 600; color: var(--r-ink); }
.rnp-r.rnp-emission::before { content: ''; position: absolute; left: 10px; right: 10px; top: -7px; border-top: 1px solid var(--r-line); }
.rnp-r.rnp-emission .rnp-bascule { color: var(--r-orange); }
.rnp-r.rnp-emission.rnp-ici { color: #fff; }
.rnp-r.rnp-emission.rnp-ici .rnp-bascule { color: var(--r-orange); }
.rnp-dedans { margin: 0 0 8px 16px; padding-left: 10px; border-left: 1px solid var(--r-line); }
.rnp-se { display: flex; align-items: center; padding: 6px 10px; border-radius: 9px; font-size: 13.5px; color: var(--r-ink2); }
.rnp-se:hover { background: rgba(255, 255, 255, .8); }
.rnp-se .rnp-n { margin-left: auto; padding-left: 8px; font-size: 11.5px; color: var(--r-mute); font-variant-numeric: tabular-nums; }
.rnp-se.rnp-ouvert { color: var(--r-ink); font-weight: 600; }
.rnp-etapes { position: relative; margin: 2px 0 6px; }
.rnp-etapes::before { content: ''; position: absolute; left: 17.5px; top: 14px; bottom: 14px; width: 1px; background: var(--r-line); }
.rnp-st { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 9px; font-size: 13px; color: var(--r-ink2); }
.rnp-st:hover { background: rgba(255, 255, 255, .8); }
.rnp-st i { flex: none; width: 7px; height: 7px; margin: 0 2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #c9ccd9; }
.rnp-st b { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--r-mute); font-variant-numeric: tabular-nums; }
.rnp-st[aria-current] { background: var(--r-ink); color: #fff; font-weight: 600; }
.rnp-st[aria-current] i { background: var(--r-orange); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.rnp-st[aria-current] b { color: rgba(255, 255, 255, .55); }
.rnp-lettres { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; padding: 4px 4px 10px; }
.rnp-lettres button { height: 26px; border: 0; background: none; display: grid; place-items: center; border-radius: 7px; font: 600 12px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink2); cursor: pointer; }
.rnp-lettres button:disabled { color: #cfd2de; cursor: default; }
.rnp-lettres button[aria-pressed='true'] { background: var(--r-ink); color: #fff; }
.rnp-lettreLien { height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--r-ink2); }
.rnp-lettreLien:hover { background: var(--r-ink); color: #fff; }
.rnp-azTete { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px 6px; }
.rnp-azTete b { font-family: var(--r-display); font-weight: 400; font-size: 26px; line-height: 1; }
.rnp-azTete span { font-size: 12px; color: var(--r-ink3); }
.rnp-azItem { display: block; padding: 7px 10px; border-radius: 9px; }
.rnp-azItem:hover, .rnp-azItem[aria-current] { background: #fff; }
.rnp-azItem b { display: block; font-size: 13.5px; font-weight: 600; color: var(--r-ink); }
.rnp-azItem small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--r-ink3); }
.rnp-titreAxe { margin: 14px 10px 6px; display: block; }
.rnp-vide { padding: 14px 10px; font-size: 13px; color: var(--r-ink3); line-height: 1.5; }
.rnp-bas { padding: 10px; border-top: 1px solid rgba(26, 31, 77, .06); display: flex; align-items: center; gap: 4px; }
/* Liens discrets vers le site (formations, être suivi), sous le bouton (Vincent, 18/11) */
.rnp-versSite { padding: 0 12px 10px; border-top: 1px solid rgba(26, 31, 77, .06); display: flex; flex-wrap: wrap; gap: 2px 16px; }
.rnp-versSite a { padding: 4px 0; font-size: 13px; color: var(--r-ink2); transition: color .15s; }
.rnp-versSite a:hover { color: var(--r-ink); text-decoration: underline; text-underline-offset: 3px; }
.rnp-bas + .rnp-versSite { border-top: 0; }
/* « Vos parcours gratuits » : le bouton orange du bas du panneau (retour de Vincent, 17/11) */
.rnp-moi {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: var(--r-orange); color: #fff !important; font-size: 13.5px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px -12px rgba(254, 110, 0, .9); transition: background .15s, transform .15s;
}
.rnp-moi b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnp-moi > svg { margin-left: auto; flex: none; color: #fff; }
.rnp-moi:hover { background: #e86300; transform: translateY(-1px); }
.rnp-moi .rnp-av { background: #fff; color: var(--r-orange); flex: none; }
.rnp-moi .rnp-av svg { margin-left: 2px; }
.rnp-languesBas { flex: none; margin-left: 6px; display: flex; gap: 2px; font-size: 12.5px; letter-spacing: .06em; color: var(--r-ink3); }
.rnp-languesBas a { padding: 4px 3px; }
.rnp-languesBas a[aria-current] { color: var(--r-ink); font-weight: 700; }
.rnp-site:hover { background: rgba(255, 255, 255, .8); }
.rnp-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--r-ink); color: #fff; }
.rnp-site { padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--r-ink3); }

/* ───────── colonne centrale ───────── */
.rnp-centre { grid-column: 3; grid-row: 1; padding: 36px 0 96px; min-width: 0; }
.rnp-fil { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--r-ink3); margin: 0 0 20px; padding: 0; list-style: none; }
.rnp-fil a { color: var(--r-ink2); }
.rnp-fil a:hover { color: var(--r-ink); }
.rnp-fil li + li::before { content: '/'; color: #c9ccd9; margin-right: 8px; }
/* le dernier élément (la page, sans lien) : une ligne, coupé s'il est long (le titre complet est le h1) */
.rnp-fil li:last-child:has(> [aria-current]) { min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--r-ink3); }
.rnp-bande {
  position: relative; border-radius: 24px; padding: 24px 28px; color: #fff; overflow: hidden; min-height: 216px;
  background: radial-gradient(70% 140% at 100% 0%, rgba(61, 110, 247, .5), transparent 55%), var(--r-navy);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.rnp-bande { container-type: inline-size; }
.rnp-bandeHaute { min-height: 260px; }
.rnp-bande.rnp-creme { background: var(--r-cream); color: var(--r-ink); }
/* le mot de la bande : 132 px au plus, plus petit si le mot est long (il ne déborde jamais) */
.rnp-bande .rnp-mot { position: relative; font-family: var(--r-display); font-size: min(132px, calc((100cqi - 190px) / (var(--n, 6) * .5 + .3))); line-height: .9; padding-top: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: clip; min-width: 0; }
.rnp-bande .rnp-meta { position: relative; align-self: flex-start; flex: none; text-align: right; font-size: 12.5px; color: rgba(238, 241, 251, .7); line-height: 1.6; }
.rnp-bande.rnp-creme .rnp-meta { color: var(--r-ink3); }
.rnp-bande .rnp-meta b { display: block; font-family: var(--r-display); font-weight: 400; font-size: 20px; letter-spacing: .06em; color: inherit; }
.rnp-bande:not(.rnp-creme) .rnp-meta b { color: #fff; }
.rnp-carreMot { display: inline-block; width: .15em; height: .15em; background: var(--r-orange); margin-left: .04em; }
.rnp-h1 { margin: 32px 0 0; font-family: var(--r-display); font-weight: 400; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.04; max-width: 20ch; color: var(--r-ink); }
.rnp-chapo { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--r-ink2); max-width: 60ch; }
.rnp-signature { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--r-ink3); }
.rnp-signature b { color: var(--r-ink); font-weight: 600; }
.rnp-sec { display: flex; align-items: baseline; gap: 12px; margin: 64px 0 18px; font-family: var(--r-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--r-ink); }
.rnp-sec small { font-family: var(--font-sans, Inter), sans-serif; font-size: 13px; font-weight: 500; color: var(--r-ink3); }
.rnp-sec a { margin-left: auto; font-family: var(--font-sans, Inter), sans-serif; font-size: 13.5px; font-weight: 600; color: var(--r-blue-ink); }
.rnp-sauts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.rnp-sauts a { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); font-size: 13px; font-weight: 600; color: var(--r-ink2); }

/* affiches */
.rnp-aff { position: relative; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px 16px; color: #fff; background: radial-gradient(80% 120% at 100% 0%, rgba(61, 110, 247, .55), transparent 60%), var(--r-navy); }
.rnp-aff.rnp-creme { background: var(--r-cream); color: var(--r-ink); }
/* le mot de l'affiche : `--max` au plus, plus petit si le mot est long (il ne déborde jamais) */
.rnp-aff { container-type: inline-size; }
.rnp-aff .rnp-w { font-family: var(--r-display); text-transform: uppercase; line-height: .98; white-space: nowrap; font-size: min(var(--max, 44px), calc(100cqi / (var(--n, 6) * .5 + .3))); }
.rnp-aff .rnp-tag { position: absolute; top: 12px; left: 14px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.rnp-aff .rnp-num { position: absolute; top: 10px; right: 14px; font-family: var(--r-display); font-size: 14px; letter-spacing: .06em; }

/* listes */
.rnp-lignes { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); overflow: hidden; }
.rnp-ligne { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--r-line); }
.rnp-ligne:first-child { border-top: 0; }
.rnp-ligne:hover { background: #fbfbfa; }
.rnp-ligne .rnp-aff { height: 64px; padding: 8px 9px; border-radius: 12px; }
.rnp-ligne .rnp-aff { --max: 13px; }
.rnp-ligne b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.rnp-ligne small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--r-ink3); }
.rnp-ligne .rnp-k { font-size: 12px; color: var(--r-mute); white-space: nowrap; }
.rnp-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.rnp-puces a { padding: 9px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); font-size: 14px; font-weight: 500; }
.rnp-puces a:hover { box-shadow: 0 0 0 1px var(--r-ink3); }

/* mise en avant */
.rnp-une { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.rnp-une .rnp-grande { min-height: 360px; padding: 24px 26px; }
.rnp-une .rnp-grande { --max: 80px; }
.rnp-uneTexte { display: flex; flex-direction: column; padding: 6px 0; }
.rnp-uneTexte b { margin-top: 10px; font-family: var(--r-display); font-weight: 400; font-size: 34px; line-height: 1.06; }
.rnp-uneTexte p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--r-ink2); }
.rnp-uneTexte ol { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--r-line); }
.rnp-uneTexte li a { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--r-line); font-size: 14.5px; font-weight: 500; }
.rnp-uneTexte li span { font-size: 12px; font-weight: 600; color: var(--r-mute); padding-top: 2px; font-variant-numeric: tabular-nums; }
.rnp-uneTexte .rnp-plus { padding: 9px 0; font-size: 14px; color: var(--r-ink3); }
.rnp-uneListe { display: flex; flex-direction: column; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); overflow: hidden; }
.rnp-uneListe a { flex: 1; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--r-line); }
.rnp-uneListe a:first-child { border-top: 0; }
.rnp-uneListe .rnp-aff { height: 92px; padding: 10px; }
.rnp-uneListe .rnp-aff { --max: 21px; }
.rnp-uneListe small { display: block; font-size: 12px; color: var(--r-ink3); }
.rnp-uneListe b { display: block; margin-top: 4px; font-size: 16px; line-height: 1.3; }
.rnp-bouton { margin-top: 22px; align-self: flex-start; height: 46px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--r-ink); color: #fff !important; font-size: 14.5px; font-weight: 600; }

/* grilles accueil */
.rnp-rubriques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rnp-rubriques .rnp-aff { height: 150px; }
.rnp-rubriques .rnp-aff { --max: 44px; }
.rnp-rubriques b { display: block; margin-top: 12px; font-size: 16px; }
.rnp-rubriques small { display: block; margin-top: 3px; font-size: 13px; color: var(--r-ink3); }
.rnp-seriesGrille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rnp-serieCarte { display: flex; flex-direction: column; padding: 20px; border-radius: 20px; background: var(--r-cream); }
.rnp-serieCarte small { font-size: 12px; color: var(--r-ink3); }
.rnp-serieCarte > b { display: block; margin-top: 4px; font-size: 17px; line-height: 1.3; }
.rnp-premiers { display: flex; flex-direction: column; margin: 14px 0 16px; border-top: 1px solid rgba(26, 31, 77, .1); }
.rnp-premiers span { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(26, 31, 77, .1); font-size: 13.5px; color: var(--r-ink2); }
.rnp-premiers i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--r-ink3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.rnp-serieCarte em { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--r-blue-ink); }
.rnp-series2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rnp-series2 a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); }
.rnp-series2 .rnp-aff { height: 120px; }
.rnp-series2 .rnp-aff { --max: 20px; }
.rnp-series2 b { display: block; font-size: 17px; }
.rnp-series2 small { display: block; margin-top: 4px; font-size: 13px; color: var(--r-ink3); }

/* accueil */
.rnp-heros { padding: 40px 0 8px; }
.rnp-grandTitre { overflow-wrap: anywhere; margin: 16px 0 0; font-family: var(--r-display); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: .98; }
.rnp-grandChamp { margin-top: 32px; display: flex; width: 100%; max-width: 720px; align-items: center; gap: 14px; height: 64px; padding: 0 12px 0 22px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--r-line), 0 20px 40px -28px rgba(20, 26, 60, .45); font: 400 17px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3); cursor: pointer; text-align: left; }
.rnp-grandChamp span { flex: 1; }
.rnp-grandChamp kbd { font: 600 12px var(--font-sans, Inter), system-ui, sans-serif; background: var(--r-paper); border-radius: 8px; padding: 6px 9px; }

/* index A–Z */
.rnp-azEntete { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.rnp-azEntete .rnp-h1 { margin: 0; font-size: clamp(48px, 6vw, 84px); line-height: .95; }
.rnp-chiffres { display: flex; gap: 28px; padding-bottom: 6px; }
.rnp-chiffres span { font-size: 12.5px; color: var(--r-ink3); }
.rnp-chiffres b { display: block; font-family: var(--r-display); font-weight: 400; font-size: 34px; color: var(--r-ink); line-height: 1; }
.rnp-outils { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rnp-filtre { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); color: var(--r-ink3); }
.rnp-filtre input { flex: 1; border: 0; outline: 0; background: none; font: 400 14.5px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink); }
.rnp-seg2 { display: flex; padding: 3px; border-radius: 12px; background: rgba(26, 31, 77, .05); }
.rnp-seg2 button { padding: 9px 14px; border: 0; background: none; border-radius: 9px; font: 600 13px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3); cursor: pointer; }
.rnp-seg2 button[aria-pressed='true'] { background: #fff; color: var(--r-ink); box-shadow: 0 1px 3px rgba(20, 26, 60, .12); }
.rnp-choix { height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); font: 500 14px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink2); }
.rnp-abc { position: sticky; top: 0; z-index: 2; margin: 18px -8px 0; padding: 10px 8px; display: grid; grid-template-columns: repeat(27, 1fr); gap: 2px; background: linear-gradient(var(--r-paper) 80%, transparent); }
.rnp-abc a, .rnp-abc span { height: 38px; display: grid; place-items: center; border-radius: 10px; font-family: var(--r-display); font-size: 17px; color: var(--r-ink); }
.rnp-abc span { color: #d3d6e1; }
.rnp-abc a:hover { background: var(--r-ink); color: #fff; }
.rnp-L { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--r-line); scroll-margin-top: 64px; }
.rnp-L h2 { margin: 0; font-family: var(--r-display); font-weight: 400; font-size: 72px; line-height: .85; }
.rnp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; }
.rnp-cols a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; }
.rnp-cols a:hover { background: #fff; }
.rnp-cols b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rnp-cols small { grid-column: 1/-1; font-size: 12px; color: var(--r-ink3); }
.rnp-type { align-self: start; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(26, 31, 77, .06); color: var(--r-ink2); }
.rnp-type.rnp-def { background: rgba(61, 110, 247, .1); color: var(--r-blue-ink); }

/* article */
.rnp-notion { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); }
.rnp-notion div { padding: 16px 20px; border-left: 1px solid var(--r-line); }
.rnp-notion div:first-child { border-left: 0; }
.rnp-notion b { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--r-blue-ink); }
.rnp-corps { margin-top: 42px; }
.rnp-suite { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rnp-suite a { padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); }
.rnp-suite a.rnp-apres { background: var(--r-cream); box-shadow: none; text-align: right; grid-column: 2; }
.rnp-suite small { display: block; font-size: 12px; font-weight: 600; color: var(--r-ink3); }
.rnp-suite b { display: block; margin-top: 6px; font-size: 16px; line-height: 1.35; }

/* ───────── colonne droite ───────── */
/* collante sans être coupée : plus haute que l'écran, elle se tient par le bas (ColonneDroite.tsx calcule `top`) */
.rnp-droite { grid-column: 4; grid-row: 1; position: sticky; top: 0; align-self: start; padding-left: var(--r-gap); padding-top: 36px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 28px; font-size: 14px; }
.rnp-sommaire ol { margin: 12px 0 0; padding: 0; list-style: none; line-height: 1.4; }
.rnp-sommaire li a { display: block; padding: 7px 0 7px 14px; border-left: 1.5px solid var(--r-line); color: var(--r-ink3); }
.rnp-sommaire li a:hover { color: var(--r-ink); }
.rnp-carteFormer { border-radius: 20px; padding: 18px; color: #fff; background: radial-gradient(90% 60% at 100% 0%, rgba(61, 110, 247, .4), transparent 60%), var(--r-ink); }
.rnp-carteFormer .rnp-eyebrow { color: #fff; }
.rnp-carteFormer a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; line-height: 1.25; }
.rnp-carteFormer a:first-of-type { margin-top: 12px; }
.rnp-vign { flex: none; width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: flex-end; padding: 4px 5px; font-family: var(--r-display); font-weight: 400; font-size: 11px; line-height: 1; background: var(--r-blue); color: #fff; overflow: hidden; }
.rnp-vign.rnp-creme { background: var(--r-cream); color: var(--r-ink); }
.rnp-vign.rnp-orange { background: var(--r-orange); }
.rnp-carteFormer small { display: block; font-size: 11.5px; font-weight: 500; color: rgba(238, 241, 251, .62); }
.rnp-carteFormer .rnp-fl { margin-left: auto; opacity: .7; }
.rnp-puce { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rnp-puce a { padding: 6px 11px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); font-size: 12.5px; font-weight: 500; color: var(--r-ink2); }
.rnp-puce a span { color: var(--r-mute); margin-right: 4px; }
.rnp-voisines { margin-top: 10px; display: flex; flex-direction: column; }
.rnp-voisines a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--r-line); font-weight: 500; color: var(--r-ink2); }
.rnp-voisines span { color: var(--r-mute); font-size: 12px; }

/* ───────── mobile ───────── */
.rnp-barreHaut { display: none; }
.rnp-dock { display: none; }
@media (max-width: 1366px) {
  .rnp-coque { --r-side: 252px; --r-right: 220px; --r-gap: 40px; --r-marge: 28px; }
  .rnp-r .rnp-n, .rnp-se .rnp-n { display: none; }
  .rnp-carteFormer small { display: none; }
}
@media (max-width: 1100px) {
  .rnp-coque { --r-col-droite: 0px; }
  .rnp-droite { display: none; }
}
@media (max-width: 860px) {
  .rnp-coque, .rnp-coque.rnp-sansDroite { display: block; padding: 0 16px; }
  .rnp-panneau { display: none; }
  .rnp-barreHaut {
    position: sticky; top: 8px; z-index: 20; margin: 8px -4px 0; height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 20px;
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 14px 30px -20px rgba(20, 26, 60, .4);
  }
  .rnp-barreHaut b { font-family: var(--r-display); font-weight: 400; font-size: 21px; }
  .rnp-barreHaut small { font-size: 11.5px; font-weight: 600; color: var(--r-ink2); }
  .rnp-barreHaut .rnp-btns { margin-left: auto; display: flex; gap: 6px; }
  .rnp-rond { width: 40px; height: 40px; border: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--r-ink); cursor: pointer; }
  .rnp-rond.rnp-fonce { background: var(--r-ink); color: #fff; }
  .rnp-centre { padding: 20px 0 140px; }
  .rnp-bande { min-height: 150px; padding: 16px 18px; border-radius: 22px; }
  .rnp-bande .rnp-mot { font-size: clamp(40px, 13vw, 72px); }
  .rnp-bande .rnp-meta { font-size: 0; }
  .rnp-bande .rnp-meta b { font-size: 17px; }
  .rnp-h1 { margin-top: 22px; font-size: 36px; }
  .rnp-chapo { font-size: 16.5px; }
  .rnp-une, .rnp-series2, .rnp-rubriques, .rnp-seriesGrille { grid-template-columns: 1fr 1fr; }
  .rnp-une { grid-template-columns: 1fr; }
  .rnp-une .rnp-grande { min-height: 200px; }
  .rnp-series2 { grid-template-columns: 1fr; }
  .rnp-seriesGrille { grid-template-columns: 1fr; }
  .rnp-ligne { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 11px 12px; }
  .rnp-ligne .rnp-aff { height: 52px; }
  .rnp-ligne .rnp-k { display: none; }
  .rnp-L { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .rnp-L h2 { font-size: 40px; }
  .rnp-cols { grid-template-columns: 1fr; }
  .rnp-abc { grid-template-columns: repeat(14, 1fr); }
  .rnp-abc a, .rnp-abc span { height: 30px; font-size: 14px; }
  .rnp-notion { grid-template-columns: 1fr; }
  .rnp-notion div { border-left: 0; border-top: 1px solid var(--r-line); }
  .rnp-notion div:first-child { border-top: 0; }
  .rnp-suite { grid-template-columns: 1fr; }
  .rnp-suite a.rnp-apres { grid-column: auto; }
  .rnp-dock {
    position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; display: block; border-radius: 26px; padding: 8px;
    background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
    border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 20px 40px -18px rgba(20, 26, 60, .5);
  }
}
/* le tiroir et la feuille (mobile) */
.rnp-voile { position: fixed; inset: 0; z-index: 60; background: rgba(20, 26, 60, .3); }
.rnp-tiroir { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 380px); z-index: 61; display: flex; flex-direction: column; border-radius: 0 30px 30px 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: 20px 0 50px -20px rgba(20, 26, 60, .45); }
.rnp-tiroir .rnp-fermer { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(26, 31, 77, .06); color: var(--r-ink2); cursor: pointer; }
.rnp-feuille { position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 72dvh; z-index: 61; display: flex; flex-direction: column; border-radius: 30px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 -20px 50px -20px rgba(20, 26, 60, .5); overflow: hidden; }
.rnp-poignee { width: 40px; height: 5px; border-radius: 5px; background: rgba(26, 31, 77, .18); margin: 10px auto 6px; }
.rnp-feuilleTete { display: flex; gap: 12px; align-items: center; padding: 4px 20px 14px; border-bottom: 1px solid rgba(26, 31, 77, .08); }
.rnp-feuilleTete small { display: block; font-size: 11.5px; color: var(--r-ink3); }
.rnp-feuilleTete b { display: block; font-size: 16px; }
.rnp-feuilleListe { overflow: auto; padding: 8px 12px 16px; }
.rnp-sr { display: flex; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 12px; font-size: 15px; color: var(--r-ink2); }
.rnp-sr b { font-size: 12px; color: var(--r-mute); font-variant-numeric: tabular-nums; }
.rnp-sr[aria-current] { background: var(--r-ink); color: #fff; font-weight: 600; }
.rnp-sr[aria-current] b { color: var(--r-orange); }
.rnp-dockLigne { display: flex; align-items: center; gap: 8px; }
.rnp-dockNav { width: 46px; height: 46px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--r-ink2); }
.rnp-dockNav.rnp-suivant { background: var(--r-ink); color: #fff; }
.rnp-dockNav[aria-disabled='true'] { opacity: .35; pointer-events: none; }
.rnp-dockOu { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 16px; background: rgba(26, 31, 77, .06); text-align: left; font: inherit; color: var(--r-ink); cursor: pointer; }
.rnp-dockOu small { display: block; font-size: 10.5px; color: var(--r-ink3); white-space: nowrap; }
.rnp-dockOu b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnp-dockOffre { margin-top: 8px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border-radius: 15px; background: var(--r-ink); color: #fff !important; font-size: 13px; font-weight: 600; }
.rnp-dockOffre:first-child { margin-top: 0; }
.rnp-dockOffre .rnp-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnp-dockOffre .rnp-btn { height: 34px; padding: 0 12px; border-radius: 11px; background: #fff; color: var(--r-ink); display: grid; place-items: center; font-size: 12.5px; }

/* ───────── recherche ───────── */
.rnp-rVoile { position: fixed; inset: 0; z-index: 80; background: rgba(20, 26, 60, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rnp-palette { position: fixed; z-index: 81; top: 64px; left: 50%; transform: translateX(-50%); width: min(980px, calc(100vw - 48px)); max-height: calc(100dvh - 128px); display: flex; flex-direction: column; border-radius: 26px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); box-shadow: inset 0 1px 0 #fff, 0 50px 100px -40px rgba(10, 14, 40, .6); overflow: hidden; color: var(--r-ink); font-family: var(--font-sans, Inter), system-ui, sans-serif; }
.rnp-q { display: flex; align-items: center; gap: 14px; padding: 20px 24px; color: var(--r-ink3); }
.rnp-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 20px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink); }
.rnp-q kbd, .rnp-pied kbd { font: 600 11px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3); background: rgba(26, 31, 77, .06); border-radius: 6px; padding: 3px 7px; }
.rnp-q .rnp-annuler { display: none; border: 0; background: none; font: 600 14px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-blue-ink); cursor: pointer; }
.rnp-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 20px 14px; border-bottom: 1px solid var(--r-line); }
.rnp-types button { padding: 7px 12px; border: 0; background: none; border-radius: 10px; font: 600 13px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3); cursor: pointer; }
.rnp-types button span { color: var(--r-mute); font-weight: 500; margin-left: 3px; }
.rnp-types button[aria-pressed='true'] { background: var(--r-ink); color: #fff; }
.rnp-types button[aria-pressed='true'] span { color: rgba(255, 255, 255, .6); }
.rnp-corpsRecherche { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.rnp-res { padding: 10px 12px 16px; border-right: 1px solid var(--r-line); overflow: auto; }
.rnp-res .rnp-eyebrow { margin: 14px 12px 6px; display: block; }
.rnp-it { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; }
.rnp-it .rnp-ty { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-ink3); }
.rnp-it .rnp-ty.rnp-def { color: var(--r-blue-ink); }
.rnp-it .rnp-ty.rnp-ser { color: #a24a00; }
.rnp-it b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.rnp-it small { display: block; margin-top: 2px; font-size: 12px; color: var(--r-ink3); }
.rnp-it[aria-selected='true'] { background: #fff; box-shadow: 0 0 0 1px var(--r-line), 0 8px 20px -14px rgba(20, 26, 60, .4); }
.rnp-apercu { padding: 22px 24px; display: flex; flex-direction: column; overflow: auto; }
.rnp-apercu .rnp-aff { height: 200px; padding: 18px; flex: none; }
.rnp-apercu .rnp-aff { --max: 72px; }
.rnp-apercu small { margin-top: 18px; font-size: 12px; color: var(--r-ink3); }
.rnp-apercu b { margin-top: 6px; font-family: var(--r-display); font-weight: 400; font-size: 28px; line-height: 1.08; }
.rnp-apercu p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--r-ink2); }
.rnp-apercu mark { background: rgba(254, 110, 0, .16); color: var(--r-ink); padding: 0 2px; border-radius: 3px; }
.rnp-apercu .rnp-bouton { margin-top: 24px; }
.rnp-aide { padding: 28px 24px; font-size: 14px; color: var(--r-ink3); }
.rnp-pied { display: flex; gap: 18px; align-items: center; padding: 12px 24px; border-top: 1px solid var(--r-line); font-size: 12px; color: var(--r-ink3); background: rgba(246, 246, 243, .7); }
@media (max-width: 860px) {
  .rnp-palette { inset: 0; top: 0; left: 0; transform: none; width: 100%; max-height: none; border-radius: 0; }
  .rnp-q { padding: 14px 16px; }
  .rnp-q input { font-size: 16px; }
  .rnp-q kbd { display: none; }
  .rnp-q .rnp-annuler { display: block; }
  .rnp-corpsRecherche { grid-template-columns: 1fr; }
  .rnp-apercu, .rnp-pied { display: none; }
  .rnp-res { border-right: 0; }
}

.rnp-nowrap { white-space: nowrap; }

/* ───────── conformité aux maquettes du 16/11 ───────── */
/* accueil : questions fréquentes sous le grand champ */
.rnp-sugg { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--r-ink3); }
.rnp-sugg > span { margin-right: 4px; }
.rnp-sugg button { padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(26, 31, 77, .05); color: var(--r-ink2); font: 500 13px var(--font-sans, Inter), system-ui, sans-serif; cursor: pointer; }
.rnp-sugg button:hover { background: rgba(26, 31, 77, .09); }
/* « voir plus » : lien bleu (rubriques, définitions) ou bouton pleine largeur (articles) */
.rnp-lienPlus { display: inline-block; margin-top: 20px; padding: 0; border: 0; background: none; font: 600 14px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-blue-ink); cursor: pointer; }
.rnp-sec .rnp-lienPlus { margin: 0 0 0 auto; font-size: 13.5px; }
.rnp-puces + .rnp-lienPlus { margin-top: 0; padding: 9px 6px; }
.rnp-boutonPlus { display: block; width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 14px; background: rgba(26, 31, 77, .04); text-align: center; font: 600 14px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink2); cursor: pointer; }
.rnp-boutonPlus:hover { background: rgba(26, 31, 77, .07); }
/* rubrique : filtres par étiquette au-dessus de « Tous les articles » */
.rnp-filtres { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.rnp-filtres button { padding: 7px 13px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); font: 600 13px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink2); cursor: pointer; }
.rnp-filtres button[aria-pressed='true'] { background: var(--r-ink); color: #fff; box-shadow: none; }
.rnp-filtres > span { margin-left: auto; font-size: 13px; color: var(--r-ink3); }
.rnp-filtres > span b { color: var(--r-ink); font-weight: 600; }
/* étiquette : « Croiser avec » */
.rnp-croiser { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--r-ink3); }
.rnp-croiser button { padding: 7px 13px; border: 1px dashed #c9ccd9; border-radius: 999px; background: none; font: 600 13px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink2); cursor: pointer; }
.rnp-croiser button[aria-pressed='true'] { border: 1px solid var(--r-ink); background: var(--r-ink); color: #fff; }
/* colonne : puces actives, petit index */
.rnp-puce a.rnp-on { background: var(--r-ink); color: #fff; box-shadow: none; }
.rnp-puce a.rnp-on span { color: rgba(255, 255, 255, .6); }
.rnp-miniLettres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding-top: 10px; }
.rnp-miniLettres a { height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--r-ink2); }
.rnp-miniLettres a:hover { background: var(--r-ink); color: #fff; }
/* article : « Dans la rubrique / Voir aussi » */
.rnp-notion { margin-top: 32px; }
.rnp-notion b a { color: var(--r-blue-ink); }
.rnp-notion:has(> div:only-child) { grid-template-columns: 1fr; }
/* le texte : intertitres en Anton, sur toute la mesure du texte */
.rnp-coque .rnp-prose h2 { max-width: none; font-family: var(--r-display); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: 0; color: var(--r-ink); margin: 50px 0 14px; scroll-margin-top: 24px; }
.rnp-coque .rnp-prose h2:first-child { margin-top: 0; }
.rnp-coque .rnp-prose p, .rnp-coque .rnp-prose li { font-size: 19px; line-height: 1.78; color: #2e3450; }
.rnp-series2 small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* la bande d'inscription, au dessin de la maquette (crème, accroche à gauche, champ à droite) */
.rnp-bandeRnp section { margin: 32px 0; }
.rnp-bandeRnp section > div { padding-top: 0; }
.rnp-bandeRnp section > div > div { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; border-radius: 20px; background: var(--r-cream); padding: 24px 26px; }
.rnp-bandeRnp section > div > div > div:first-child > p:first-child { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 10.5px var(--font-sans, Inter), system-ui, sans-serif; letter-spacing: .18em; color: #2b3f98; }
.rnp-bandeRnp section > div > div > div:first-child > p:first-child::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--r-orange); }
.rnp-bandeRnp section > div > div > div:first-child > p:nth-child(2) { font-size: 20px; line-height: 1.25; }
.rnp-bandeRnp label[for$='auth-email'] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rnp-bandeRnp input[type='email'] { height: 54px; border-radius: 999px; border-color: transparent; background: #fff; }
.rnp-bandeRnp button[type='submit'] { border-radius: 999px; }
/* recherche : pourquoi ce résultat, touche ↵ sur la ligne choisie */
.rnp-pourquoi { margin-top: 16px; font-size: 12.5px; color: var(--r-ink2); }
.rnp-pourquoi span { color: var(--r-ink3); margin-right: 8px; }
.rnp-it kbd { font: 600 11px var(--font-sans, Inter), system-ui, sans-serif; color: var(--r-ink3); background: rgba(26, 31, 77, .06); border-radius: 6px; padding: 3px 7px; }
.rnp-itAff { display: none !important; }
.rnp-apercu .rnp-aff .rnp-num { font-size: 16px; }
.rnp-une .rnp-uneTexte .rnp-plus { color: var(--r-ink3); font-weight: 500; padding: 9px 0; border-bottom: 1px solid var(--r-line); font-size: 14.5px; }

@media (max-width: 860px) {
  .rnp-sugg { margin-top: 12px; gap: 6px; }
  .rnp-sugg > span { display: none; }
  .rnp-sugg button { font-size: 12.5px; padding: 6px 11px; }
  .rnp-bandeHaute { min-height: 140px; }
  .rnp-bande .rnp-mot { font-size: min(84px, calc((100cqi - 40px) / (var(--n, 6) * .5 + .3))); }
  .rnp-filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 12px; padding: 0 16px; }
  .rnp-filtres button { flex: none; }
  .rnp-filtres > span { display: none; }
  .rnp-bandeRnp section > div > div { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .rnp-coque .rnp-prose h2 { font-size: 28px; }
  .rnp-notion { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 20px; background: none; box-shadow: none; border-radius: 0; }
  .rnp-notion div, .rnp-notion div:first-child { flex: none; max-width: 78%; padding: 10px 14px; border: 1px solid var(--r-line); border-radius: 14px; background: #fff; }
  .rnp-notion b { font-size: 13px; margin-top: 3px; }
  .rnp-dockOffre .rnp-t { min-width: 40%; }
  .rnp-dockOffre .rnp-btn { display: block; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 34px; }
  .rnp-coque .rnp-prose p, .rnp-coque .rnp-prose li { font-size: 17px; }
  /* recherche plein écran : la meilleure réponse en carte, avec son affiche */
  .rnp-itMeilleur { grid-template-columns: 76px minmax(0, 1fr); padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); }
  .rnp-itMeilleur .rnp-itAff { display: flex !important; height: 76px; padding: 8px; border-radius: 12px; --max: 16px; }
  .rnp-itMeilleur .rnp-ty, .rnp-itMeilleur kbd { display: none; }
  .rnp-it kbd { display: none; }
  /* index A–Z : en-tête réduit, rail de lettres à droite */
  .rnp-azEntete .rnp-chapo, .rnp-chiffres, .rnp-filtre { display: none; }
  .rnp-azEntete .rnp-h1 { font-size: 44px; }
  .rnp-outils { margin-top: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rnp-seg2 { flex: none; background: none; padding: 0; gap: 6px; }
  .rnp-seg2 button { padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); font-size: 12.5px; }
  .rnp-seg2 button[aria-pressed='true'] { background: var(--r-ink); color: #fff; box-shadow: none; }
  .rnp-choix { flex: none; height: 32px; border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 0 10px; max-width: 160px; }
  .rnp-abc { position: fixed; top: 90px; right: 6px; margin: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; width: 26px; border-radius: 13px; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px var(--r-line); }
  .rnp-abc a, .rnp-abc span { height: 15px; width: 20px; font-family: var(--font-sans, Inter), sans-serif; font-size: 10px; font-weight: 700; border-radius: 6px; }
  .rnp-L { padding-right: 28px; }
}
/* la lettre en cours de lecture dans la barre de l'index */
.rnp-abc a[aria-current] { background: var(--r-ink); color: #fff; }

/* ── anciennement global.css ── */
/* La coque RNP remplace l'en-tête du site (maquettes validées le 16/11) : le panneau
   porte la marque, la recherche, « Mon espace » et un lien vers le site LabO. */
main:has([data-coque-rnp]) > header { display: none; }
/* L'apparition de page du site laisse une transformation sur l'enveloppe : elle ferait de
   l'enveloppe le repère des éléments « fixed » (barre du bas, recherche, tiroir), qui
   défileraient avec la page. Sans effet dans la coque RNP. */
.animate-fade-up:has(> [data-coque-rnp]) { animation: none; transform: none; opacity: 1; }

/* ── maillage interne (17/11) ── */
/* Les éléments repliés restent dans le HTML (vrais liens, sans script) : `hidden` l'emporte sur les display des listes. */
[data-coque-rnp] [hidden] { display: none !important; }
/* L'encadré de l'article : rubrique et série, se former, voir aussi (trois cases sur grand écran). */
.rnp-notion:has(> div:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rnp-notion .rnp-notionSuite { display: block; margin-top: 12px; }
/* « Se former sur ce sujet » au centre d'une rubrique : seulement quand la colonne de droite est cachée. */
.rnp-seFormerCentre { display: none; }
.rnp-seFormerListe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rnp-seFormerListe a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--r-line); }
.rnp-seFormerListe small { display: block; font-size: 11.5px; font-weight: 500; color: var(--r-ink3); }
.rnp-seFormerListe b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--r-ink); }
@media (max-width: 1100px) {
  .rnp-seFormerCentre { display: block; }
}
@media (max-width: 860px) {
  .rnp-seFormerListe { grid-template-columns: 1fr; }
  /* l'encadré de l'article en une colonne sur téléphone : les cases s'empilent au lieu de filer
     hors de l'écran en bande à faire glisser (retour du 17/11) */
  .rnp-notion, .rnp-notion:has(> div:nth-child(3)) { display: grid; grid-template-columns: 1fr; gap: 8px; overflow: visible; }
  .rnp-notion div, .rnp-notion div:first-child { max-width: none; }
}

/* ───────── panneau réduit en bande, mode lecture (grand écran) ─────────
   Demandes de Vincent (17/11) : la barre de gauche se réduit en une bande étroite et repérable
   (marque, recherche, une pastille par rubrique, poignée). Retour du 18/11 : réduit par défaut sur toutes
   les pages (data-defaut="reduit"), ouvert SEULEMENT par la poignée (choix posé sur <html data-rnp-panneau>
   le temps de la visite, lecture.ts) ; plus d'ouverture au survol, les bulles des pastilles suffisent.
   Sur téléphone : rien ne change (barre du haut). */
.rnp-lateral { grid-column: 1; grid-row: 1; position: sticky; top: 0; align-self: start; height: 100dvh; z-index: 5; }
.rnp-rail { display: none; }
.rnp-poigneePanneau {
  position: absolute; z-index: 6; top: 22px; left: calc(100% - 15px); width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--r-ink3); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(26, 31, 77, .08), 0 6px 14px -8px rgba(20, 26, 60, .45);
  transition: color .15s, background .15s;
}
.rnp-poigneePanneau:hover { color: var(--r-ink); }
.rnp-poigneePanneau:focus-visible, .rnp-rail a:focus-visible, .rnp-rail button:focus-visible { outline: 2px solid var(--r-blue); outline-offset: 2px; }
@media (max-width: 860px) {
  .rnp-lateral { display: none; }
}
@media (min-width: 861px) {
  .rnp-coque { --r-rail: 60px; }
  /* réduit : choix « reduit » du visiteur, ou pas de choix et page réduite par défaut.
     La bande garde sa colonne (elle ne recouvre jamais le texte) ; la page et sa colonne de droite
     se recentrent et s'élargissent dans la place libérée. */
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) { --r-cote: var(--r-rail); --r-marge: 56px; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-lateral { z-index: 40; }

  /* la bande */
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-rail {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 72px;
    background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
    border-right: 1px solid rgba(26, 31, 77, .08); box-shadow: 14px 0 30px -28px rgba(20, 26, 60, .55);
  }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-railMarque { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-railMarque img { display: block; width: 34px; height: 34px; border-radius: 9px; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-railBouton {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px;
    background: #fff; color: var(--r-ink2); cursor: pointer; box-shadow: 0 0 0 1px rgba(26, 31, 77, .08), 0 6px 14px -12px rgba(20, 26, 60, .5);
    transition: color .15s, box-shadow .15s;
  }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-railBouton:hover { color: var(--r-ink); box-shadow: 0 0 0 1px rgba(26, 31, 77, .18), 0 6px 14px -10px rgba(20, 26, 60, .5); }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-railRubriques {
    flex: 1; min-height: 0; width: 100%; margin-top: 4px; padding: 10px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 0;
    border-top: 1px solid rgba(26, 31, 77, .08); border-bottom: 1px solid rgba(26, 31, 77, .08); overflow-y: auto; scrollbar-width: none;
  }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-railRubriques::-webkit-scrollbar { display: none; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 32px; border-radius: 9px; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille:hover { background: rgba(26, 31, 77, .05); }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille[aria-current] { background: none; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille i { display: block; width: 14px; height: 2px; border-radius: 2px; background: #8b90aa; transition: width .16s cubic-bezier(.2, .7, .2, 1), background .16s, height .16s; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille:hover i, :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille:focus-visible i { width: 22px; background: var(--r-ink); }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille[aria-current] i { width: 24px; height: 3px; background: var(--r-orange); }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastille[aria-current]::after { content: none; }
  /* Brain Club dans la bande : séparé des rubriques par un filet, un triangle orange (sombre quand c'est la page courante) */
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastilleEmission { margin-top: 13px; color: var(--r-orange); }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastilleEmission::before { content: ''; position: absolute; left: 12px; right: 12px; top: -7px; border-top: 1px solid var(--r-line); }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-pastilleEmission[aria-current] { background: var(--r-ink); color: #fff; }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-infobulle {
    position: absolute; left: calc(100% + 10px); z-index: 3; transform: translateY(-50%); pointer-events: none;
    max-width: min(260px, calc(100vw - var(--r-rail) - 24px)); width: max-content; padding: 7px 11px; border-radius: 10px;
    background: var(--r-ink); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3;
    box-shadow: 0 10px 24px -12px rgba(20, 26, 60, .6);
  }
  .rnp-infobulle small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: rgba(238, 241, 251, .66); }
  .rnp-infobulle::before { content: ''; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: var(--r-ink); transform: translateY(-50%) rotate(45deg); }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-poigneePanneau { top: auto; bottom: 16px; left: calc((var(--r-rail) - 40px) / 2); width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(26, 31, 77, .08), 0 6px 14px -12px rgba(20, 26, 60, .5); }

  /* le panneau complet, par-dessus la page, à droite de la bande */
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-panneau {
    position: absolute; left: var(--r-rail); top: 0; width: var(--r-side); height: 100dvh; z-index: 1;
    background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(26, 31, 77, .06), 24px 0 60px -28px rgba(20, 26, 60, .45);
    transform: translateX(-28px); opacity: 0; visibility: hidden;
    /* glisse de quelques pixels avec un fondu ; se referme après un court délai (pas de clignotement quand la souris sort un instant) */
    transition: transform .2s cubic-bezier(.2, .7, .2, 1) .22s, opacity .16s ease .22s, visibility 0s linear .42s;
  }
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) .rnp-lateral[data-ouvert] .rnp-panneau {
    transform: none; opacity: 1; visibility: visible; transition: transform .22s cubic-bezier(.2, .7, .2, 1) .06s, opacity .16s ease .06s, visibility 0s;
  }

  /* la page est un conteneur : ses grilles suivent la largeur réelle (panneau ouvert ou réduit, écran large ou non) */
  .rnp-centre { container: rnp-centre / inline-size; }
}
@media (max-width: 1366px) {
  :is(html[data-rnp-panneau="reduit"] .rnp-coque, html:not([data-rnp-panneau]) .rnp-coque[data-defaut="reduit"]) { --r-marge: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rnp-lateral .rnp-panneau, .rnp-pastille i, .rnp-railBouton { transition-duration: 0s !important; }
}

/* ───────── les grilles suivent la largeur de la page (place libérée par le panneau, grand écran) ───────── */
/* montré seulement quand la page est large (Depliable, `enPlus`) */
.rnp-siLarge { display: none; }
@container rnp-centre (max-width: 699px) {
  .rnp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container rnp-centre (min-width: 900px) {
  .rnp-rubriques { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* quatre colonnes : huit rubriques visibles au lieu de six, pour deux rangées pleines */
  .rnp-siLarge { display: block; }
  .rnp-une { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
}
@container rnp-centre (min-width: 1100px) {
  .rnp-series2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rnp-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ───────── l'article sans affiche : la série en une ligne au-dessus du titre (retour de Vincent, 17/11) ───────── */
.rnp-ligneSerie { margin: 28px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--r-ink3); }
.rnp-ligneSerie > span:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--r-ink2); }
.rnp-ligneSerie > span:first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; background: var(--r-orange); }
.rnp-ligneSerie > * + *::before { content: '·'; margin: 0 9px 0 7px; color: #b9bdcd; font-weight: 400; }
.rnp-ligneSerie a, .rnp-ligneSerie b { font-weight: 600; color: var(--r-ink); }
.rnp-ligneSerie a:hover { color: var(--r-blue-ink); }
.rnp-ligneSerie > span:last-child { white-space: nowrap; }
.rnp-ligneSerie + .rnp-h1 { margin-top: 12px; }
.rnp-fil + .rnp-h1 { margin-top: 28px; }
.rnp-ruban { display: none; }
@media (max-width: 860px) {
  .rnp-barreHaut + .rnp-fil { margin-top: 16px; }
  .rnp-fil + .rnp-h1 { margin-top: 18px; }
  /* l'article sur téléphone : le fil et la ligne de série laissent la place à un ruban d'une ligne
     (« Réflexes archaïques › Série 1/12 »), pour que le titre arrive dans le premier tiers de l'écran */
  .rnp-coque[data-lecture] .rnp-fil, .rnp-coque[data-lecture] .rnp-ligneSerie { display: none; }
  .rnp-ruban { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--r-ink3); white-space: nowrap; }
  .rnp-ruban > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--r-ink2); }
  .rnp-ruban > :first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; background: var(--r-orange); }
  .rnp-ruban > * + * { flex: none; }
  .rnp-ruban > * + *::before { content: '›'; margin-right: 8px; color: #b9bdcd; }
  .rnp-ruban + .rnp-ligneSerie + .rnp-h1, .rnp-ruban + .rnp-h1 { margin-top: 10px; }
}

/* ───────── la colonne de droite d'un article : sommaire et carte « Se former » toujours visibles ─────────
   Retour de Vincent (17/11) : le sommaire a une hauteur bornée et défile à l'intérieur ; si l'écran
   est trop bas pour les deux, c'est lui qui rétrécit, jamais la carte. */
@media (min-width: 1101px) {
  .rnp-droite:has(> .rnp-sommaire) { max-height: 100dvh; }
  .rnp-droite > .rnp-sommaire { flex: 0 1 auto; min-height: 0; max-height: 44dvh; display: flex; flex-direction: column; }
  .rnp-droite > .rnp-sommaire ol {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: rgba(26, 31, 77, .18) transparent;
  }
  .rnp-droite > .rnp-sommaire ol::-webkit-scrollbar { width: 5px; }
  .rnp-droite > .rnp-sommaire ol::-webkit-scrollbar-thumb { background: rgba(26, 31, 77, .18); border-radius: 5px; }
  .rnp-droite:has(> .rnp-sommaire) > :not(.rnp-sommaire) { flex: none; }
}

/* ───────── Brain Club (chantier 7) : page de l'émission et vidéo d'un épisode ───────── */
/* Lecteur léger : une image et un bouton ; le lecteur YouTube ne se charge qu'au clic (VideoLegere.tsx). */
.rnp-video { margin: 0; }
.rnp-videoCadre { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--r-navy); box-shadow: 0 0 0 1px var(--r-line); }
.rnp-videoCadre button { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.rnp-videoCadre button:focus-visible { outline: 3px solid var(--r-blue); outline-offset: -3px; }
.rnp-videoCadre img, .rnp-videoCadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.rnp-videoCadre button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 26, 60, .55), transparent 55%); }
.rnp-videoLire { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--r-blue); font-size: 24px; box-shadow: 0 12px 30px -12px rgba(20, 26, 60, .6); transition: transform .2s; }
.rnp-videoCadre button:hover .rnp-videoLire { transform: translate(-50%, -50%) scale(1.06); }
.rnp-videoNumero { position: absolute; z-index: 1; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--r-blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rnp-video figcaption { margin-top: 8px; font-size: 12px; color: var(--r-ink3); }
.rnp-bcVignette { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: #0f1430; }
.rnp-bcVignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rnp-bcVignette:hover img { transform: scale(1.03); }
.rnp-bcVignette::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 11, 28, .55), transparent 55%); }
.rnp-bcLire { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--r-blue); font-size: 18px; box-shadow: 0 12px 30px -12px rgba(20, 26, 60, .6); transition: transform .2s; }
.rnp-bcVignette.rnp-grande .rnp-bcLire { width: 80px; height: 80px; font-size: 28px; }
.rnp-bcVignette:hover .rnp-bcLire { transform: translate(-50%, -50%) scale(1.05); }
.rnp-bcNumero { position: absolute; z-index: 1; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--r-blue); color: #fff; font-family: var(--font-mono, ui-monospace), monospace; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rnp-bcMono { margin: 16px 0 0; font-family: var(--font-mono, ui-monospace), monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8fa9ff; }
.rnp-bcMono.rnp-sombre { color: var(--r-ink3); }
.rnp-bcBouton { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--r-blue); color: #fff !important; font-size: 15px; font-weight: 600; transition: background .2s; }
.rnp-bcBouton:hover { background: var(--r-blue-ink); }
.rnp-bcH2 { margin: 0; font-family: var(--r-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; color: var(--r-ink); max-width: 14ch; }
.rnp-bcResume { margin: 0; max-width: 62ch; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; color: var(--r-ink2); }
/* la tête sombre : titre, accroche, YouTube et la chaîne ; le dernier épisode à droite */
.rnp-bcTete { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px); padding: clamp(44px, 6vw, 88px) clamp(28px, 4vw, 64px); border-radius: 28px; background: #0f1430; color: #fff; }
.rnp-bcTete::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 80% 0%, rgba(59, 109, 247, .35), transparent 62%); }
.rnp-bcKicker { display: block; margin-bottom: 20px; font-family: var(--font-mono, ui-monospace), monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8fa9ff; }
.rnp-bcTete { container-type: inline-size; }
/* la taille du titre suit la largeur de la tête (panneau ouvert ou réduit) : « Brain Club » tient sur une ligne */
.rnp-bcTitre { margin: 0; font-family: var(--r-display); font-weight: 400; font-size: clamp(56px, 9.5cqi, 130px); line-height: .9; white-space: nowrap; color: #fff; }
.rnp-bcAccroche { margin: 28px 0 0; max-width: 34ch; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; color: #fff; }
.rnp-bcPourQui { margin: 12px 0 0; max-width: 56ch; font-size: 14.5px; line-height: 1.55; color: rgba(238, 241, 251, .7); }
.rnp-bcActions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.rnp-coque .rnp-bcLienClair { font-size: 15px; font-weight: 600; color: #fff; }
.rnp-coque .rnp-bcLienClair:hover { color: #8fa9ff; }
.rnp-bcDernierTitre { margin: 6px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: #fff; }
/* Dans cet épisode */
.rnp-bcDans { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); padding: clamp(64px, 8vw, 120px) 0; }
.rnp-bcDans .rnp-bcH2 { max-width: 12ch; }
.rnp-bcDans .rnp-bcMono { margin: 32px 0 12px; }
.rnp-bcChapitres { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.rnp-bcChapitres li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--r-line); font-size: 14px; line-height: 1.4; color: var(--r-ink); }
.rnp-bcChapitres span { flex: none; width: 42px; padding-top: 2px; font-family: var(--font-mono, ui-monospace), monospace; font-size: 11px; color: var(--r-blue); }
.rnp-bcDans .rnp-bcBouton { margin-top: 28px; }
/* L'émission : trois colonnes sur fond teinté */
.rnp-bcEmission { padding: clamp(56px, 7vw, 104px) clamp(28px, 4vw, 64px); border-radius: 28px; background: #eef0f6; }
.rnp-bcEmission .rnp-bcH2 { margin-bottom: clamp(36px, 5vh, 56px); }
.rnp-bcColonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.rnp-bcColonnes h3 { margin: 0; font-family: var(--r-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.02; color: var(--r-ink); }
.rnp-bcColonnes p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--r-ink2); }
/* Tous les épisodes */
.rnp-bcTous { padding: clamp(64px, 8vw, 120px) 0 0; }
.rnp-bcTous .rnp-bcH2 { margin-bottom: clamp(36px, 5vh, 56px); }
.rnp-bcGrille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.rnp-bcGrille .rnp-bcMono { margin-top: 16px; font-size: 10px; }
.rnp-coque .rnp-bcTitreEpisode { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--r-ink); }
.rnp-coque .rnp-bcTitreEpisode:hover { color: var(--r-blue); }
/* Fin : le cours gratuit */
.rnp-bcFin { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); text-align: center; }
.rnp-bcFin h2 { margin: 0 auto; max-width: 12ch; font-family: var(--r-display); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: .95; color: var(--r-ink); }
.rnp-bcFin p { margin: 24px auto 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--r-ink2); }
.rnp-bcFin .rnp-bcBouton { margin-top: 32px; }
.rnp-bcEpisode { margin: 28px 0 0; }
.rnp-bcEpisode > p { margin: 10px 0 0; font-size: 14px; color: var(--r-ink2); }
.rnp-bcEpisode > p a { font-weight: 600; color: var(--r-blue-ink); }
@media (max-width: 1100px) {
  .rnp-bcTete, .rnp-bcDans { grid-template-columns: 1fr; }
  .rnp-bcTitre { font-size: clamp(56px, 17cqi, 110px); }
  .rnp-bcColonnes { grid-template-columns: 1fr; }
  .rnp-bcGrille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .rnp-bcTete { margin: 0 -4px; padding: 40px 22px; border-radius: 22px; }
  .rnp-bcEmission { margin: 0 -4px; padding: 48px 22px; border-radius: 22px; }
  .rnp-bcVignette.rnp-grande .rnp-bcLire { width: 64px; height: 64px; font-size: 22px; }
  .rnp-videoLire { width: 56px; height: 56px; font-size: 19px; }
}
@media (max-width: 560px) {
  .rnp-bcChapitres, .rnp-bcGrille { grid-template-columns: 1fr; }
}

/* ───────── retouches du 18/11 (retours de Vincent) ───────── */
/* L'article prend la grille de la rubrique (même marge à gauche contre la bande, colonne de droite au bord,
   page au centre sur toute la largeur restante) ; le texte courant garde une ligne lisible, aligné à gauche. */
.rnp-coque[data-lecture] .rnp-h1 { max-width: none; }
.rnp-coque[data-lecture] .rnp-prose > :is(p, ul, ol, blockquote) { max-width: 38em; }
/* Les liens du texte (articles, texte de la rubrique) : soulignés, couleur de lien, sans gras forcé.
   Les liens à classe (encadrés, boutons posés dans le texte) gardent leur dessin, sauf ceux du Markdown
   (classe « text-primary hover:underline », renderer.ts), qui sont des liens de texte. */
.rnp-coque .rnp-prose a:is(:not([class]), [class="text-primary hover:underline"]) {
  color: var(--r-blue-ink); font-weight: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(44, 87, 204, .45);
  transition: text-decoration-color .15s;
}
.rnp-coque .rnp-prose a:is(:not([class]), [class="text-primary hover:underline"]):hover { text-decoration-color: currentColor; }
@media (min-width: 861px) {
  /* Sur grand écran, l'article commence au titre : ni fil d'Ariane, ni ligne de série, ni encadré à trois cases
     (les liens restent dans le HTML : le ruban et l'encadré servent sur téléphone ; le BreadcrumbList est inchangé). */
  .rnp-coque[data-lecture] :is(.rnp-fil, .rnp-ligneSerie, .rnp-notion) { display: none; }
  .rnp-coque[data-lecture] :is(.rnp-fil, .rnp-ruban, .rnp-ligneSerie) + .rnp-h1 { margin-top: 4px; }
}
/* « Dans cette rubrique » : un sommaire court (six entrées au plus) ne se rétrécit jamais ; la colonne,
   plus haute que l'écran, défile alors avec la page (ColonneDroite.tsx). Avant : la carte « Se former »
   prenait la hauteur et le sommaire de la rubrique n'en montrait qu'une ligne (« À la une »). */
@media (min-width: 1101px) {
  .rnp-droite:has(> .rnp-sommaire):not(:has(> .rnp-sommaire li:nth-child(7))) { max-height: none; }
  .rnp-droite > .rnp-sommaire:not(:has(li:nth-child(7))) { flex: none; max-height: none; }
}
