/* ============================================================
   PF2026 — Kit des solutions rétro (inc/retro-kit.php)
   Rouge/Bleu/Jaune (Game Boy), Rouge Feu/Vert Feuille et Rubis/Saphir/Émeraude (GBA).
   Couleur d'accent = version choisie (html[data-rg-v], assets/js/retro-guide.js).
   ============================================================ */

:root[data-rg-fam] {
  --rg-accent: #E3350D; --rg-dark: #9E1B0A; --rg-soft: #FFF1EC;
  --rg-ink: #1D1E26; --rg-muted: #636577; --rg-line: #E6E1D6; --rg-paper: #FBF9F4; --rg-card: #fff;
  --rg-radius: 16px; --rg-shadow: 0 1px 0 rgba(20, 20, 40, .04), 0 10px 28px -18px rgba(20, 20, 40, .35);
}
:root[data-rg-fam="gb"][data-rg-v="B"]  { --rg-accent: #2A5CAA; --rg-dark: #173A75; --rg-soft: #EAF0FB; }
:root[data-rg-fam="gb"][data-rg-v="J"]  { --rg-accent: #E0A400; --rg-dark: #8A6400; --rg-soft: #FFF7D6; }
:root[data-rg-fam="frlg"]               { --rg-accent: #E2531A; --rg-dark: #9C3209; --rg-soft: #FFF0E8; }
:root[data-rg-fam="frlg"][data-rg-v="VF"] { --rg-accent: #3E9E3A; --rg-dark: #22631F; --rg-soft: #ECF8EA; }
:root[data-rg-fam="hoenn"]              { --rg-accent: #C8102E; --rg-dark: #7E0A1D; --rg-soft: #FDEDEF; }
:root[data-rg-fam="hoenn"][data-rg-v="S"] { --rg-accent: #1E5BC6; --rg-dark: #12387D; --rg-soft: #EAF1FD; }
:root[data-rg-fam="hoenn"][data-rg-v="E"] { --rg-accent: #0E9F6E; --rg-dark: #0A6447; --rg-soft: #E7F8F1; }

.rg-sprite { image-rendering: pixelated; image-rendering: crisp-edges; }
.rg-missing { color: #B00020; font-weight: 700; }

/* ---------- Mise en page générale des étapes ---------- */
.rg-lead { font-size: 1.12em; line-height: 1.65; color: var(--rg-ink); }
.guide-article__body h2 { scroll-margin-top: 90px; }
.guide-article__body .rg-h2 {
  display: flex; align-items: center; gap: 12px; margin: 42px 0 16px; padding-bottom: 10px;
  border-bottom: 3px solid var(--rg-accent); font-size: 1.45em;
}
.guide-article__body .rg-h2 i { font-style: normal; font-size: .9em; }

/* ---------- En bref ---------- */
.rg-brief {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 18px 0 26px;
  padding: 16px; border-radius: var(--rg-radius); background: linear-gradient(135deg, var(--rg-soft), #fff);
  border: 1px solid var(--rg-line);
}
.rg-brief div { background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--rg-line); }
.rg-brief dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--rg-accent); margin: 0 0 3px; }
.rg-brief dd { margin: 0; font-weight: 600; font-size: 14.5px; line-height: 1.4; }

/* ---------- Encadrés ---------- */
.rg-box { margin: 20px 0; padding: 14px 18px 14px 16px; border-radius: 14px; border: 1px solid var(--rg-line); background: #fff; border-left: 6px solid var(--b, #3A7BD5); }
.rg-box p:last-child { margin-bottom: 0; }
.rg-box__title { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--b, #3A7BD5); margin-bottom: 6px; }
.rg-box__title i { font-style: normal; font-size: 18px; }
.rg-box--tip    { --b: #E0A400; background: #FFFBEB; }
.rg-box--warn   { --b: #D9480F; background: #FFF4EC; }
.rg-box--info   { --b: #2F6FDE; background: #F1F6FF; }
.rg-box--secret { --b: #7A3FC8; background: #F7F1FF; }
.rg-box--get    { --b: #0E9F6E; background: #EEFBF5; }

/* Passage propre à une version */
.rg-vnote { position: relative; margin: 18px 0; padding: 16px 18px 12px; border-radius: 14px; border: 2px dashed var(--v); background: color-mix(in srgb, var(--v) 6%, #fff); }
.rg-vnote__tag { position: absolute; top: -11px; left: 14px; padding: 2px 10px; border-radius: 99px; background: var(--v); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; }
.rg-vnote p:last-child { margin-bottom: 0; }
:root[data-rg-v] .rg-vnote[data-rg-only] { opacity: .55; }
:root[data-rg-v="R"] .rg-vnote[data-rg-only~="R"], :root[data-rg-v="B"] .rg-vnote[data-rg-only~="B"], :root[data-rg-v="J"] .rg-vnote[data-rg-only~="J"],
:root[data-rg-v="S"] .rg-vnote[data-rg-only~="S"], :root[data-rg-v="E"] .rg-vnote[data-rg-only~="E"],
:root[data-rg-v="RF"] .rg-vnote[data-rg-only~="RF"], :root[data-rg-v="VF"] .rg-vnote[data-rg-only~="VF"] { opacity: 1; box-shadow: 0 8px 24px -16px var(--v); }

/* Étapes numérotées */
.rg-steps { list-style: none; counter-reset: rgs; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.rg-steps li { counter-increment: rgs; position: relative; padding: 11px 14px 11px 52px; border-radius: 12px; background: #fff; border: 1px solid var(--rg-line); line-height: 1.5; }
.rg-steps li::before {
  content: counter(rgs); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rg-accent); color: #fff; font-weight: 800; font-size: 13px;
}

.rg-go { font-weight: 700; color: var(--rg-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pastilles Pokémon ---------- */
.rg-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--rg-ink); font-weight: 700; min-width: 0; }
.rg-chip .rg-sprite { width: 56px; height: 56px; flex: 0 0 56px; margin: -6px -2px -6px -8px; }
a.rg-chip:hover .rg-chip__name { color: var(--rg-accent); text-decoration: underline; }
.rg-lvl { display: inline-block; font-size: 12px; font-weight: 800; color: var(--rg-muted); background: #F1EFE9; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.rg-type { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--t); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); margin-right: 4px; }
.rg-excl { margin-left: 6px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--v); border-radius: 99px; padding: 2px 7px; white-space: nowrap; }

/* ---------- Bloc lieu ---------- */
.rg-place { margin: 26px 0; border-radius: var(--rg-radius); background: var(--rg-card); border: 1px solid var(--rg-line); box-shadow: var(--rg-shadow); overflow: hidden; }
.rg-place__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: linear-gradient(120deg, var(--rg-accent), var(--rg-dark)); color: #fff; }
.rg-place__head h3 { margin: 0; font-size: 1.15em; color: #fff; }
.rg-place__pin { font-size: 20px; }
.rg-place__block { border-top: 1px solid var(--rg-line); }
.rg-place__block > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-weight: 800; font-size: 15px; }
.rg-place__block > summary::-webkit-details-marker { display: none; }
.rg-place__block > summary::after { content: '▾'; margin-left: auto; transition: transform .2s; color: var(--rg-muted); }
.rg-place__block[open] > summary::after { transform: rotate(180deg); }
.rg-place__block > summary i { font-style: normal; }
.rg-place__block > .rg-panel, .rg-place__block > .rg-tabs, .rg-place__block > .rg-items { padding: 0 18px 18px; }
.rg-zone { margin: 14px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--rg-muted); }

/* Plan d'époque */
.rg-place__block > .rg-plan { margin: 0 18px 18px; }
.rg-plan .rg-shot__zoom { display: grid; place-items: center; max-height: 460px; overflow: hidden; border-radius: 12px; background: #1B1D2A; padding: 10px; }
.rg-plan img { display: block; max-width: 100%; max-height: 440px; width: auto; height: auto; image-rendering: pixelated; }
.rg-plan--tall .rg-shot__zoom { max-height: 520px; }
.rg-plan--tall img { max-height: 500px; }
.rg-plan figcaption { margin-top: 6px; font-size: 12px; color: var(--rg-muted); text-align: center; }

/* Onglets */
.rg-tabs__bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.rg-tabs__btn { border: 2px solid var(--rg-line); background: #fff; color: var(--rg-ink); font-weight: 800; font-size: 13px; border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.rg-tabs__btn[aria-selected="true"] { background: var(--rg-ink); border-color: var(--rg-ink); color: #fff; }
.rg-tabs[data-rg-sub] .rg-tabs__btn { font-size: 12px; padding: 5px 11px; }
.rg-tabs[data-rg-sub] .rg-tabs__btn[aria-selected="true"] { background: var(--boss, var(--rg-accent)); border-color: var(--boss, var(--rg-accent)); }

/* Pokémon sauvages */
.rg-methods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.rg-method { border: 1px solid var(--rg-line); border-radius: 14px; background: var(--rg-paper); padding: 10px 12px; }
.rg-method__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--rg-dark); }
.rg-method__title i { font-style: normal; font-size: 16px; }
.rg-wild { list-style: none; margin: 0; padding: 0; }
.rg-wild li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mon lvl" "rate rate"; align-items: center; gap: 2px 10px; padding: 6px 4px; border-top: 1px dashed var(--rg-line); }
.rg-wild li:first-child { border-top: 0; }
.rg-wild .rg-chip { grid-area: mon; }
.rg-wild .rg-lvl { grid-area: lvl; }
.rg-rates { grid-area: rate; display: flex; flex-wrap: wrap; gap: 4px 10px; padding-left: 50px; }
.rg-rate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rg-muted); }
.rg-rate b { font-size: 10.5px; color: var(--v); text-transform: uppercase; letter-spacing: .03em; }
.rg-rate i { display: inline-block; width: 64px; height: 7px; border-radius: 99px; background: #E8E4DA; position: relative; overflow: hidden; }
.rg-rate i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--v); border-radius: 99px; }
.rg-rate span { font-weight: 800; color: var(--rg-ink); min-width: 34px; }
.rg-rate.is-none { opacity: .45; }
.rg-rate.is-text i { display: none; }
:root[data-rg-v] .rg-rate[data-rg-col] { opacity: .55; }
:root[data-rg-v="R"] .rg-rate[data-rg-col="R"], :root[data-rg-v="B"] .rg-rate[data-rg-col="B"], :root[data-rg-v="J"] .rg-rate[data-rg-col="J"],
:root[data-rg-v="S"] .rg-rate[data-rg-col="S"], :root[data-rg-v="E"] .rg-rate[data-rg-col="E"],
:root[data-rg-v="RF"] .rg-rate[data-rg-col="RF"], :root[data-rg-v="VF"] .rg-rate[data-rg-col="VF"] { opacity: 1; }
.rg-rates:has(.rg-rate:only-child) .rg-rate { opacity: 1; }

/* Dresseurs */
.rg-count { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--rg-muted); }
.rg-trainers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rg-trainer { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 12px; border-radius: 12px; background: var(--rg-paper); border: 1px solid var(--rg-line); }
.rg-trainer__who { font-size: 14px; line-height: 1.3; }
.rg-trainer__who span { color: var(--rg-muted); font-weight: 600; }
.rg-trainer__money { font-size: 12px; font-weight: 800; color: #0E8A55; align-self: start; white-space: nowrap; }
.rg-trainer__team { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.rg-mini { position: relative; display: inline-block; width: 52px; height: 52px; }
.rg-mini img { width: 52px; height: 52px; }
.rg-mini small { position: absolute; right: -2px; bottom: 0; background: var(--rg-ink); color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 0 4px; line-height: 15px; }
.rg-flag { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: #6A4BC4; border-radius: 99px; padding: 1px 6px; vertical-align: 1px; }

/* Objets */
.rg-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rg-items li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: var(--rg-paper); border: 1px solid var(--rg-line); }
.rg-items i { font-style: normal; font-size: 18px; line-height: 1.2; }
.rg-items b { display: block; font-size: 14px; }
.rg-items span { display: block; font-size: 13px; line-height: 1.45; color: var(--rg-muted); }
.rg-only { display: inline-block !important; margin-left: 6px; font-size: 10px !important; font-weight: 800; color: #fff !important; background: var(--rg-accent); border-radius: 99px; padding: 1px 7px; }

/* ---------- Combats importants ---------- */
.rg-boss { margin: 30px 0; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--rg-line); box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--boss) 70%, #000); }
.rg-boss__head {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 18px; padding: 18px 22px 16px;
  color: #fff; min-height: 150px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .22), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--boss), color-mix(in srgb, var(--boss) 55%, #111));
}
.rg-boss__art { height: 170px; width: auto; max-width: 160px; object-fit: contain; margin: -10px 0 -16px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.rg-boss__art--sprite { height: 128px; image-rendering: pixelated; margin: 0; }
.rg-boss__id { padding-bottom: 4px; }
.rg-boss__role { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .25); border-radius: 99px; padding: 3px 10px; }
.rg-boss__name { margin: 6px 0 4px; font-size: 1.7em; line-height: 1.05; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.rg-boss__place { display: block; font-size: 13px; opacity: .9; margin-bottom: 6px; }
.rg-boss__type .rg-type { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.rg-boss__badge { margin: 0; text-align: center; align-self: center; }
.rg-boss__badge img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.rg-boss__badge figcaption { font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.rg-boss__sprite { height: 96px; image-rendering: pixelated; align-self: center; }
.rg-boss__body { padding: 16px 18px 6px; }
.rg-boss__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.rg-boss__meta span { font-size: 13px; font-weight: 700; background: var(--rg-paper); border: 1px solid var(--rg-line); border-radius: 99px; padding: 4px 12px; }
.rg-boss__tips { margin: 0 18px 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--boss) 8%, #fff); border: 1px solid color-mix(in srgb, var(--boss) 25%, #fff); }
.rg-boss__tips > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: color-mix(in srgb, var(--boss) 80%, #000); margin-bottom: 4px; }
.rg-boss__tips p:last-child { margin-bottom: 0; }

.rg-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rg-team__mon { border-radius: 14px; border: 1px solid var(--rg-line); background: var(--rg-paper); padding: 10px 12px; }
.rg-team__head { display: flex; gap: 8px; align-items: center; }
.rg-sprite--lg { width: 80px; height: 80px; flex: 0 0 80px; margin: -8px -4px -8px -10px; }
.rg-team__head b { display: block; font-size: 15px; }
.rg-team__head b a { color: var(--rg-ink); text-decoration: none; }
.rg-team__head b a:hover { color: var(--rg-accent); }
.rg-team__lvl { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--rg-ink); border-radius: 6px; padding: 1px 6px; margin: 3px 6px 4px 0; }
.rg-team__types { display: block; }
.rg-team__moves { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rg-team__moves li { font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--rg-line); border-radius: 8px; padding: 3px 7px; }
.rg-team__extra { margin: 8px 0 0; font-size: 12px; color: var(--rg-muted); display: flex; flex-direction: column; gap: 2px; }

/* ---------- Captures d'écran ---------- */
.rg-shot { margin: 20px auto; max-width: 520px; }
.rg-shot__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rg-shot img { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 4px; }
.rg-shot--gba .rg-shot__zoom {
  padding: 14px 16px; border-radius: 22px; background: linear-gradient(145deg, #5B4FA8, #3B3180);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 12px 26px -16px #2B225F;
}
:root[data-rg-fam="frlg"] .rg-shot--gba .rg-shot__zoom { background: linear-gradient(145deg, #5D6273, #3A3E4C); }
.rg-shot--gba img { box-shadow: 0 0 0 3px #1B1840; }
.rg-shot--gb .rg-shot__zoom {
  padding: 16px 18px 20px; border-radius: 12px 12px 34px 12px; background: #C9C6BD;
  box-shadow: inset 0 0 0 2px #B5B2A8, 0 12px 26px -16px #555;
}
.rg-shot--gb img { box-shadow: 0 0 0 10px #6B6E7E; border-radius: 2px; }
.rg-shot figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--rg-muted); line-height: 1.45; }
.rg-shots { display: grid; gap: 14px; margin: 20px 0; align-items: start; }
.rg-shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rg-shots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rg-shots .rg-shot { margin: 0; max-width: none; }
.rg-shots .rg-shot--gba .rg-shot__zoom { padding: 8px 9px; border-radius: 14px; }
.rg-shots .rg-shot--gb .rg-shot__zoom { padding: 9px 10px 12px; border-radius: 8px 8px 20px 8px; }
.rg-shots .rg-shot--gb img { box-shadow: 0 0 0 5px #6B6E7E; }
.rg-shots figcaption { font-size: 12px; margin-top: 6px; }
@media (max-width: 640px) {
  .rg-shots--3, .rg-shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Plans */
.rg-map { margin: 22px 0; }
.rg-map .rg-shot__zoom { border-radius: 16px; overflow: hidden; border: 1px solid var(--rg-line); background: #fff; }
.rg-map img { display: block; width: 100%; height: auto; }
.rg-map--pixel img { image-rendering: pixelated; }
.rg-map figcaption { margin-top: 8px; font-size: 13px; color: var(--rg-muted); text-align: center; }

/* Zoom plein écran */
.rg-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: rgba(10, 12, 24, .88); cursor: zoom-out; }
.rg-lightbox img { max-width: min(96vw, 1200px); max-height: 90vh; width: auto; height: auto; image-rendering: pixelated; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.rg-lightbox img.is-photo { image-rendering: auto; }

/* Présentation de Pokémon */
.rg-mons { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rg-mons li { border-radius: 16px; background: #fff; border: 1px solid var(--rg-line); padding: 12px; text-align: center; box-shadow: var(--rg-shadow); }
.rg-mons a { color: var(--rg-ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rg-mons .rg-art { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }
.rg-mons .rg-sprite--lg { margin: 0; width: 96px; height: 96px; flex-basis: auto; }
.rg-mons b { font-size: 16px; }
.rg-mons p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--rg-muted); text-align: left; }

/* ---------- Pages héritées (astuces, Zone de Combat…) ---------- */
.pf-retro-legacy .guide-article__body table { width: 100% !important; max-width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.pf-retro-legacy .guide-article__body td, .pf-retro-legacy .guide-article__body th { border: 1px solid var(--rg-line); padding: 6px 8px; width: auto !important; height: auto !important; }
.pf-retro-legacy .guide-article__body tr:nth-child(even) td { background: var(--rg-paper); }
.pf-retro-legacy .guide-article__body img[src*="legacy-games"] { image-rendering: pixelated; max-width: 100%; height: auto; }
.pf-retro-legacy .guide-article__body img[src*="legacy-games"][width="80"], .pf-retro-legacy .guide-article__body img[src*="/pkmns/"] { width: 72px; }

@media (max-width: 560px) {
  .rg-boss__head { grid-template-columns: auto 1fr; }
  .rg-boss__badge, .rg-boss__sprite { display: none; }
  .rg-boss__art { height: 130px; max-width: 110px; }
  .rg-boss__name { font-size: 1.35em; }
  .rg-rates { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rg-place__block > summary::after { transition: none; } }

/* ---------- Sélecteur de version (bandeaux des mini-sites) ---------- */
.rg-vswitch { display: inline-flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(0, 0, 0, .06); }
.rg-vswitch__btn { border: 0; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 800; cursor: pointer; background: transparent; color: inherit; opacity: .75; }
.rg-vswitch__btn[aria-pressed="true"] { opacity: 1; color: #fff; background: var(--vc, var(--rg-accent)); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .4); }
.rg-vswitch__btn--rouge { --vc: #E3350D; } .rg-vswitch__btn--bleu { --vc: #2A5CAA; } .rg-vswitch__btn--jaune { --vc: #D69C00; }
.rg-vswitch__btn--rouge-feu { --vc: #E2531A; } .rg-vswitch__btn--vert-feuille { --vc: #3E9E3A; }
.rg-vswitch__btn--rubis { --vc: #C8102E; } .rg-vswitch__btn--saphir { --vc: #1E5BC6; } .rg-vswitch__btn--emeraude { --vc: #0E9F6E; }

/* ---------- Cartes illustrées (bâtiments, lieux, activités) ---------- */
.rg-cards { display: grid; gap: 14px; margin: 20px 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rg-card { display: flex; flex-direction: column; border-radius: var(--rg-radius); background: var(--rg-card); border: 1px solid var(--rg-line); box-shadow: var(--rg-shadow); overflow: hidden; }
.rg-card__img { position: relative; margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, var(--rg-soft), #EEF1F4); overflow: hidden; }
.rg-card__img > img:first-child { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.rg-card__sprite { position: absolute; right: 6px; bottom: 0; width: 72px; height: 72px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.rg-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rg-card__body h3 { margin: 0; font-size: 17px; }
.rg-card__body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--rg-muted); }
.rg-card__tag { align-self: flex-start; padding: 2px 9px; border-radius: 99px; background: var(--rg-soft); color: var(--rg-dark); font-size: 11.5px; font-weight: 800; }
.rg-card__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--rg-accent); text-decoration: none; }
.rg-card__more:hover { text-decoration: underline; }

/* ---------- Rangée de sprites (baies, rubans) ---------- */
.rg-pix { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 0; }
.rg-pix li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 10px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--rg-line); }
.rg-pix img { width: 48px; height: 48px; object-fit: contain; }
.rg-pix span { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.25; }

/* ---------- Tableau simple ---------- */
.guide-article__body .rg-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0 22px; border: 1px solid var(--rg-line); border-radius: 14px; overflow: hidden; font-size: 14.5px; background: #fff; }
.rg-table th { background: var(--rg-accent); color: #fff; text-align: left; padding: 10px 14px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.rg-table td { padding: 10px 14px; border-top: 1px solid var(--rg-line); }
.rg-table tbody tr:nth-child(even) td { background: var(--rg-paper); }
.rg-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* Les règles génériques des guides (.guide-article__body img { height: auto }) écrasent les tailles des combats :
   on les réaffirme avec une spécificité supérieure. */
.guide-article__body .rg-boss .rg-boss__art { height: 170px; width: auto; max-width: 160px; }
.guide-article__body .rg-boss .rg-boss__art--sprite { height: 128px; }
.guide-article__body .rg-boss .rg-boss__sprite { height: 96px; width: auto; }
@media (max-width: 560px) {
  .guide-article__body .rg-boss .rg-boss__art { height: 130px; max-width: 110px; }
}
