/* ============================================================
   PF2026 — Composants communs des hubs rétro (Hoenn, Rouge Feu/Vert Feuille)
   Gabarits : template-parts/guides/hub-hoenn.php, hub-frlg.php · JS : retro-hub.js
   Couleurs par version : assets/css/hoenn.css, assets/css/frlg.css.
   ============================================================ */

.rh {
  --rh-accent: #C8102E; --rh-dark: #6E0718; --rh-soft: #FDEDEF; --rh-glow: #FF7A59;
  --rh-ink: #17182B; --rh-muted: #5D6075; --rh-paper: #F8F6F1; --rh-card: #fff; --rh-line: #E5E0D4;
  --rh-display: 'Lilita One', 'Baloo 2', system-ui, sans-serif;
  background: var(--rh-paper); color: var(--rh-ink); overflow-x: clip;
}
.rh .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rh img.px, .rh .rh-sprite { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- Fil d'Ariane ---------- */
.rh-crumbs { background: var(--rh-dark); transition: background .4s ease; }
.rh-crumbs .breadcrumb { margin: 0; padding: 10px 0; color: rgba(255, 255, 255, .7); font-size: 13px; background: none; }
.rh-crumbs .breadcrumb a { color: rgba(255, 255, 255, .92); }
.rh-crumbs .breadcrumb-current { color: #fff; }

/* ---------- Héros ---------- */
.rh-hero { position: relative; color: #fff; padding: 44px 0 92px; overflow: hidden; isolation: isolate; transition: background .5s ease; background: linear-gradient(160deg, var(--rh-accent), var(--rh-dark)); }
.rh-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; align-items: center; }
.rh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.rh-hero__title { margin: 16px 0 10px; font-family: var(--rh-display); font-weight: 400; line-height: .95; color: #fff; }
.rh-hero__pre { display: block; font-size: clamp(22px, 3vw, 30px); opacity: .9; letter-spacing: .02em; }
.rh-hero__versions { display: flex; flex-wrap: wrap; gap: .1em .28em; font-size: clamp(44px, 7vw, 84px); text-shadow: 0 4px 0 rgba(0, 0, 0, .18), 0 18px 40px rgba(0, 0, 0, .25); }
.rh-hero__versions b { font-weight: 400; opacity: .55; transition: opacity .3s, transform .3s; }
.rh-hero__versions b.is-on { opacity: 1; transform: translateY(-2px); }
.rh-hero__lead { max-width: 560px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .92); margin: 0 0 22px; }

.rh-carts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.rh-cart { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 10px 8px 9px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.rh-cart img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.rh-cart:hover { transform: translateY(-3px); }
.rh-cart[aria-pressed="true"] { background: #fff; color: var(--rh-dark); border-color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.rh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.rh-chips li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .2); }

/* Console Game Boy Advance */
.rh-gba { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1.82; border-radius: 46px / 60px; padding: 22px 104px; background: linear-gradient(180deg, var(--gba-1, #6B5BC4), var(--gba-2, #4A3B9C)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -8px 0 rgba(0, 0, 0, .25), 0 30px 60px -20px rgba(0, 0, 0, .65); transform: rotate(-3deg); }
.rh-gba__screen-frame { height: 100%; border-radius: 12px; background: #2A2B3A; padding: 12px 14px 22px; box-shadow: inset 0 0 0 3px #1B1C27; position: relative; }
.rh-gba__screen { position: relative; height: 100%; border-radius: 4px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--rh-glow), var(--rh-accent) 60%, var(--rh-dark)); }
.rh-gba__screen img { position: absolute; inset: 6% 10% 14%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); transition: opacity .3s; }
.rh-gba__logo { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font-family: var(--rh-display); font-size: 15px; letter-spacing: .06em; color: #FFE24A; text-shadow: 2px 2px 0 #2B48A8; z-index: 2; }
.rh-gba__ver { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .18em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); z-index: 2; }
.rh-gba__brand { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 900; letter-spacing: .2em; color: #8C8EA6; }
.rh-gba__pad { position: absolute; left: 34px; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.rh-gba__pad::before, .rh-gba__pad::after { content: ''; position: absolute; background: #24233A; border-radius: 4px; }
.rh-gba__pad::before { left: 16px; top: 0; width: 16px; height: 48px; }
.rh-gba__pad::after { left: 0; top: 16px; width: 48px; height: 16px; }
.rh-gba__ab { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; align-items: flex-end; }
.rh-gba__ab a, .rh-gba__ab span { width: 30px; height: 30px; border-radius: 50%; background: #24233A; color: #8E8FB5; font-size: 11px; font-weight: 900; display: grid; place-items: center; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .4); }
.rh-gba__ab a { transform: translateY(-14px); }
.rh-gba__led { position: absolute; left: 50%; bottom: 10px; width: 6px; height: 6px; border-radius: 50%; background: #5DFF7A; box-shadow: 0 0 8px #5DFF7A; }

/* Stats */
.rh-stats { position: relative; z-index: 3; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: -56px 0 0; padding: 0; }
.rh-stats li { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 40px -24px rgba(20, 20, 40, .55); border: 1px solid var(--rh-line); }
.rh-stats b { display: block; font-family: var(--rh-display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--rh-accent); transition: color .4s; }
.rh-stats span { font-size: 13px; font-weight: 700; color: var(--rh-muted); }

/* Sous-navigation */
.rh-nav { position: sticky; top: 0; z-index: 50; margin-top: 22px; background: rgba(248, 246, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rh-line); }
.rh-nav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.rh-nav a { flex: 0 0 auto; padding: 7px 14px; border-radius: 99px; font-weight: 800; font-size: 13.5px; color: var(--rh-ink); text-decoration: none; }
.rh-nav a:hover { background: var(--rh-soft); }
.rh-nav a.is-active { background: var(--rh-accent); color: #fff; }

/* ---------- Sections ---------- */
.rh-sec { padding: 64px 0; scroll-margin-top: 60px; }
.rh-sec:nth-of-type(even) { background: #fff; }
.rh-head { max-width: 760px; margin: 0 0 30px; }
.rh-head__kicker { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--rh-accent); margin-bottom: 6px; }
.rh-head h2 { margin: 0 0 10px; font-family: var(--rh-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; color: var(--rh-ink); }
.rh-head p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--rh-muted); }
.rh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 99px; background: var(--rh-accent); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px -12px var(--rh-accent); transition: transform .2s; }
.rh-btn:hover { transform: translateY(-2px); color: #fff; }
.rh-btn--ghost { background: #fff; color: var(--rh-ink); border: 2px solid var(--rh-line); box-shadow: none; }
.rh-btn--small { padding: 8px 14px; font-size: 13.5px; }
.rh-note { margin-top: 18px; font-size: 14px; color: var(--rh-muted); }

/* Écrans de jeu */
.rh-screen { display: block; border-radius: 10px; padding: 7px; background: #33354A; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.rh-screen img { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 3px; }

/* Cartes « en bref » */
.rh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rh-feature { background: var(--rh-card); border-radius: 20px; border: 1px solid var(--rh-line); padding: 16px; box-shadow: 0 16px 40px -30px rgba(20, 20, 40, .5); }
.rh-feature h3 { margin: 16px 4px 6px; font-size: 19px; }
.rh-feature p { margin: 0 4px 4px; font-size: 14.5px; line-height: 1.55; color: var(--rh-muted); }

/* Grande carte illustrée */
.rh-bigmap { position: relative; margin: 0 0 30px; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(10, 30, 80, .7); }
.rh-bigmap img { display: block; width: 100%; height: auto; }
.rh-bigmap figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 99px; background: rgba(12, 18, 40, .72); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.rh-bigmap__pins { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.rh-bigmap__pins li { position: absolute; transform: translate(-50%, -50%); }
.rh-bigmap__pins a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--t, var(--rh-accent)); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); text-decoration: none; transition: transform .2s; }
.rh-bigmap__pins a:hover { transform: scale(1.18); }
.rh-bigmap__pins img { width: 22px; height: 22px; image-rendering: pixelated; }
.rh-bigmap__pins span { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: rgba(12, 18, 40, .78); color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
.rh-bigmap__pins a:hover + span, .rh-bigmap__pins a:focus + span { opacity: 1; }

/* ---------- Solution ---------- */
.rh-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 26px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--rh-line); }
.rh-progress__bar { flex: 1 1 220px; height: 12px; border-radius: 99px; background: #ECE8DE; overflow: hidden; }
.rh-progress__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--rh-glow), var(--rh-accent)); transition: width .4s; }
.rh-progress [data-rh-label] { font-weight: 800; font-size: 14px; }
.rh-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.rh-act { background: #fff; border-radius: 22px; border: 1px solid var(--rh-line); overflow: hidden; }
.rh-act__head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: linear-gradient(120deg, var(--rh-soft), #fff); }
.rh-act__icon { font-size: 30px; line-height: 1; }
.rh-act__label { font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--rh-accent); }
.rh-act__head h3 { margin: 2px 0 4px; font-size: 21px; }
.rh-act__head p { margin: 0; font-size: 14px; color: var(--rh-muted); line-height: 1.5; }
.rh-steps { list-style: none; margin: 0; padding: 8px 12px 12px; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rh-step { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 14px; transition: background .2s; }
.rh-step:hover { background: var(--rh-paper); }
.rh-step > a { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--rh-ink); font-weight: 700; font-size: 14.5px; padding: 6px; }
.rh-step__n { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--rh-ink); color: #fff; font-family: var(--rh-display); font-size: 16px; }
.rh-step__title { min-width: 0; }
.rh-step__badge img { width: 26px; height: 26px; image-rendering: pixelated; vertical-align: middle; }
.rh-step.is-done .rh-step__n { background: #1F9D55; }
.rh-step.is-done .rh-step__title { color: var(--rh-muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.rh-step__check input { width: 20px; height: 20px; accent-color: #1F9D55; cursor: pointer; }

/* ---------- Champions ---------- */
.rh-gyms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rh-gym a { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--rh-ink); background: #fff; border: 1px solid var(--rh-line); transition: transform .25s, box-shadow .25s; }
.rh-gym a:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px var(--t); }
.rh-gym__art { position: relative; height: 210px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--t) 35%, #fff), var(--t)); overflow: hidden; }
.rh-gym__art::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .18)); }
.rh-gym__char { position: absolute; left: 50%; bottom: -6px; height: 200px; width: auto; transform: translateX(-50%); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .3)); z-index: 1; }
.rh-gym__num { position: absolute; top: 10px; left: 12px; z-index: 2; font-family: var(--rh-display); font-size: 26px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.rh-gym__badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 46px; height: 46px; image-rendering: pixelated; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.rh-gym__ace { position: absolute; bottom: 4px; right: 4px; z-index: 2; width: 64px; height: 64px; image-rendering: pixelated; }
.rh-gym__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.rh-gym__body b { font-size: 18px; }
.rh-gym__city { font-size: 13px; color: var(--rh-muted); font-weight: 700; }
.rh-gym__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rh-tag { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--t, var(--rh-accent)); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.rh-tag--soft { background: var(--rh-paper); color: var(--rh-ink); text-shadow: none; border: 1px solid var(--rh-line); }

.rh-elite { margin-top: 36px; }
.rh-elite h3 { font-family: var(--rh-display); font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.rh-elite ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rh-elite li a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 0 12px; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--rh-ink); background: #fff; border: 1px solid var(--rh-line); }
.rh-elite li span.rh-elite__art { display: block; width: 100%; height: 170px; background: linear-gradient(160deg, color-mix(in srgb, var(--t) 30%, #fff), var(--t)); position: relative; overflow: hidden; margin-bottom: 8px; }
.rh-elite li span.rh-elite__art img { position: absolute; left: 50%; bottom: -4px; height: 165px; transform: translateX(-50%); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.rh-elite li b { font-size: 16px; }
.rh-elite li em { font-style: normal; font-size: 12.5px; color: var(--rh-muted); font-weight: 700; }
.rh-elite li.is-champion a { border: 2px solid #E5B416; box-shadow: 0 16px 34px -22px #B88A00; }
.rh-elite li.is-champion em::before { content: '👑 '; }

/* Personnages */
.rh-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rh-person { display: flex; gap: 12px; align-items: flex-end; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--rh-line); }
.rh-person img { flex: 0 0 auto; height: 150px; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2)); }
.rh-person b { display: block; font-size: 17px; }
.rh-person em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--rh-accent); text-transform: uppercase; letter-spacing: .06em; }
.rh-person p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--rh-muted); }

/* Légendaires */
.rh-legends { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.rh-legend a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--rh-ink); border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--rh-line); transition: transform .25s; }
.rh-legend a:hover { transform: translateY(-4px); }
.rh-legend__art { height: 190px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff 0, color-mix(in srgb, var(--t) 35%, #fff) 45%, var(--t) 100%); }
.rh-legend__art img { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.rh-legend__body { padding: 12px 16px 16px; }
.rh-legend__body b { font-size: 18px; }
.rh-legend__body small { display: block; font-size: 12px; font-weight: 800; color: var(--rh-accent); margin: 2px 0 6px; }
.rh-legend__body p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--rh-muted); }

/* ---------- Pokédex ---------- */
.rh-dex-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; }
.rh-dex-count { font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 99px; background: var(--rh-soft); }
.rh-dex-count b { font-family: var(--rh-display); font-weight: 400; font-size: 20px; color: var(--rh-accent); }
.rh-dex-search input { padding: 9px 14px; border-radius: 99px; border: 2px solid var(--rh-line); font-size: 14px; min-width: 220px; }
.rh-dex-toggle { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.rh-dex-reset { border: 0; background: none; color: var(--rh-muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.rh-dex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rh-mon { border-radius: 16px; background: #fff; border: 1px solid var(--rh-line); padding: 6px 6px 8px; text-align: center; transition: border-color .2s, background .2s; }
.rh-mon__sprite { display: block; width: 64px; height: 64px; margin: 0 auto; border: 0; padding: 0; cursor: pointer; background-image: var(--sheet); background-repeat: no-repeat; background-position: calc(var(--x) * -64px) calc(var(--y) * -64px); image-rendering: pixelated; filter: grayscale(1) opacity(.55); transition: filter .2s, transform .2s; }
.rh-mon__sprite:hover { transform: scale(1.12); }
.rh-mon.is-caught { border-color: color-mix(in srgb, var(--rh-accent) 45%, #fff); background: var(--rh-soft); }
.rh-mon.is-caught .rh-mon__sprite { filter: none; }
.rh-mon a { display: block; font-size: 12px; font-weight: 700; color: var(--rh-ink); text-decoration: none; line-height: 1.25; }
.rh-mon a span { display: block; font-size: 10.5px; color: var(--rh-muted); font-weight: 800; }
.rh-mon[data-rh-tags*="excl-"] { position: relative; }

/* ---------- Versions ---------- */
.rh-versions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rh-versions--2 { grid-template-columns: repeat(2, 1fr); }
.rh-version { border-radius: 24px; background: #fff; border: 2px solid var(--rh-line); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.rh-version.is-current { border-color: var(--ver); box-shadow: 0 20px 44px -28px var(--ver); }
.rh-version header { display: flex; gap: 14px; padding: 18px; background: linear-gradient(140deg, var(--ver), var(--ver-dark)); color: #fff; }
.rh-version__box { width: 92px; height: auto; border-radius: 10px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6); align-self: flex-start; }
.rh-version h3 { margin: 0 0 4px; font-family: var(--rh-display); font-weight: 400; font-size: 26px; color: #fff; }
.rh-version header p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; opacity: .92; }
.rh-version dl { margin: 0; display: grid; gap: 2px; font-size: 12.5px; }
.rh-version dl div { display: flex; gap: 6px; }
.rh-version dt { font-weight: 900; opacity: .75; }
.rh-version dd { margin: 0; font-weight: 700; }
.rh-version__facts { margin: 0; padding: 14px 18px 4px 36px; font-size: 14px; line-height: 1.55; }
.rh-version__sub { margin: 8px 18px 6px; font-size: 13px; font-weight: 800; color: var(--rh-muted); }
.rh-version__mons { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0 14px 16px; }
.rh-version__mons img { width: 56px; height: 56px; image-rendering: pixelated; }

/* ---------- Cartes de liens ---------- */
.rh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rh-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--rh-line); text-decoration: none; color: var(--rh-ink); transition: transform .2s, border-color .2s; }
.rh-card:hover { transform: translateY(-2px); border-color: var(--rh-accent); }
.rh-card__icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--rh-soft); overflow: hidden; }
.rh-card__icon img { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; }
.rh-card b { display: block; font-size: 15px; line-height: 1.3; }
.rh-card small { display: block; font-size: 12.5px; color: var(--rh-muted); margin-top: 2px; line-height: 1.4; }
.rh-group { margin-top: 30px; }
.rh-group h3 { font-family: var(--rh-display); font-weight: 400; font-size: 24px; margin: 0 0 12px; }

.rh-heritage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rh-heir { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--rh-line); text-decoration: none; color: var(--rh-ink); transition: transform .2s; }
.rh-heir:hover { transform: translateY(-3px); }
.rh-heir img { width: 84px; height: 84px; object-fit: contain; flex: 0 0 84px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2)); }
.rh-heir b { display: block; font-size: 16px; }
.rh-heir em { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: var(--rh-accent); margin: 2px 0 4px; }
.rh-heir span { font-size: 13.5px; line-height: 1.45; color: var(--rh-muted); }

.rh-news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rh-news a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rh-line); text-decoration: none; color: var(--rh-ink); }
.rh-news time { font-size: 12px; font-weight: 800; color: var(--rh-accent); }
.rh-news b { font-size: 15px; line-height: 1.35; }

/* ---------- Bandeau des étapes ---------- */
.rh-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; padding: 10px 14px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--rh-accent, #C8102E), var(--rh-dark, #6E0718)); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .6); }
.rh-ribbon__home { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.rh-ribbon__home img { width: 44px; height: 44px; image-rendering: pixelated; }
.rh-ribbon__home b { display: block; font-family: var(--rh-display, inherit); font-weight: 400; font-size: 18px; line-height: 1; }
.rh-ribbon__home small { font-size: 11.5px; opacity: .85; }
.rh-ribbon__where { font-size: 13px; display: flex; flex-direction: column; }
.rh-ribbon__where b { font-size: 13.5px; }
.rh-ribbon__badges { display: flex; gap: 2px; }
.rh-ribbon__badges img { width: 24px; height: 24px; image-rendering: pixelated; filter: grayscale(1) opacity(.4); }
.rh-ribbon__badges img.is-got { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.rh-ribbon .rg-vswitch { background: rgba(0, 0, 0, .2); }
.rh-ribbon .rg-vswitch__btn { color: #fff; }
.rh-ribbon__done { margin-left: auto; font-size: 13px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.rh-ribbon__done input { width: 18px; height: 18px; accent-color: #1F9D55; }
.rh-ribbon__links { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-ribbon__links a { color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .rh-gyms { grid-template-columns: repeat(2, 1fr); }
  .rh-elite ol { grid-template-columns: repeat(3, 1fr); }
  .rh-people { grid-template-columns: repeat(2, 1fr); }
  .rh-versions, .rh-heritage { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .rh-hero__inner { grid-template-columns: 1fr; }
  .rh-gba { width: min(100%, 400px); padding: 18px 88px; }
  .rh-stats { grid-template-columns: repeat(2, 1fr); }
  .rh-features { grid-template-columns: 1fr; }
  .rh-news { grid-template-columns: 1fr; }
  .rh-bigmap__pins span { display: none; }
}
@media (max-width: 560px) {
  .rh-gyms, .rh-people { grid-template-columns: 1fr; }
  .rh-elite ol { grid-template-columns: repeat(2, 1fr); }
  .rh-gba { padding: 14px 64px; border-radius: 34px / 46px; }
  .rh-gba__pad { left: 14px; transform: translateY(-50%) scale(.75); }
  .rh-gba__ab { right: 10px; transform: translateY(-50%) scale(.8); }
  .rh-bigmap__pins a { width: 26px; height: 26px; border-width: 2px; }
  .rh-bigmap__pins img { width: 16px; height: 16px; }
  .rh-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rh *, .rh *::before, .rh *::after { transition: none !important; animation: none !important; }
}
