/* ==========================================================================
   Mini-site Pokémon Noir et Blanc (inc/unys-hub.php)
   Direction : le marketing de 2011, noir contre blanc. Typographie large et
   grasse (Archivo étendue), aplats tranchés, anneaux du C-Gear, gratte-ciel de
   Volucité, câbles du Pont Sagiciel, grande roue de Méanville, plan de métro.
   La version choisie bascule tout le mini-site (html[data-rg-v], posé avant
   le rendu) : Noire = thème sombre + flamme de Reshiram, Blanche = thème clair
   + foudre de Zekrom. Les couleurs passent toutes par les jetons --un-*.
   ========================================================================== */

@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

body.pf-unys {
  --un-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --un-fire: #FF6A3D;
  --un-volt: #2EC5FF;
  --un-noir: #08090C;
  --un-blanc: #F5F6F8;
  /* Noire (par défaut) : thème sombre */
  --un-bg: #0A0B0E;
  --un-bg-2: #101217;
  --un-surface: #15181E;
  --un-surface-2: #1C2028;
  --un-fg: #F3F5F8;
  --un-muted: #A3ACBA;
  --un-line: rgba(255, 255, 255, .12);
  --un-line-strong: rgba(255, 255, 255, .3);
  --un-accent: var(--un-fire);
  --un-accent-text: #FF8C66;
  --un-accent-ink: #0A0B0E;
  --un-accent-soft: rgba(255, 106, 61, .14);
  --un-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
  --un-p: #FF8FB8;
  --un-e: #5FD06B;
  --un-o: #FF9A3D;
  --un-h: #7FD3FF;
}
:root[data-rg-v="B"] body.pf-unys {
  /* Blanche : thème clair */
  --un-bg: #F4F5F7;
  --un-bg-2: #EBEDF1;
  --un-surface: #FFFFFF;
  --un-surface-2: #F7F8FA;
  --un-fg: #0E1014;
  --un-muted: #5A6372;
  --un-line: rgba(14, 16, 20, .12);
  --un-line-strong: rgba(14, 16, 20, .32);
  --un-accent: var(--un-volt);
  --un-accent-text: #0A6FA3;
  --un-accent-ink: #04141C;
  --un-accent-soft: rgba(46, 197, 255, .16);
  --un-shadow: 0 30px 70px -44px rgba(14, 16, 20, .45);
}

/* Kit rétro : couleurs d'accent par version (tableaux, onglets, encadrés) */
:root[data-rg-fam="unys"] { --rg-accent: #1E2128; --rg-dark: #000000; --rg-soft: #EEF0F3; }
:root[data-rg-fam="unys"][data-rg-v="B"] { --rg-accent: #5B6878; --rg-dark: #2F3844; --rg-soft: #EEF1F5; }

/* Contenus propres à une version : Watson ou Iris, colonnes de tableaux */
:root[data-rg-v="N"] .pf-unys [data-un-only="B"], :root[data-rg-v="B"] .pf-unys [data-un-only="N"] { display: none !important; }

.un { --container: 1240px; background: var(--un-bg); color: var(--un-fg); transition: background-color .6s ease, color .6s ease; }
.un h1, .un h2, .un h3, .un-banner__title, .un-title { font-family: var(--un-display); font-stretch: 125%; letter-spacing: -.01em; }
.un a { color: inherit; }

/* ---------- Boutons ---------- */
.un-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 4px; font-family: var(--un-display); font-stretch: 112%; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none !important; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.un-btn:hover { transform: translateY(-2px); }
.un-btn--solid { background: var(--un-accent); color: var(--un-accent-ink) !important; box-shadow: 0 14px 34px -14px var(--un-accent); }
.un-btn--line { color: var(--un-fg) !important; border: 2px solid var(--un-fg); background: transparent; }
.un-btn--line:hover { background: var(--un-fg); color: var(--un-bg) !important; }
.un-center { text-align: center; margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Sélecteur de version (héros et bannières) : deux pastilles, une noire et une blanche */
.un-switch { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 132px; padding: 9px 18px 10px; border-radius: 4px; cursor: pointer; font-family: var(--un-display); font-stretch: 118%; font-weight: 900; font-size: 18px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; transition: box-shadow .25s, transform .2s; }
.un-switch small { font-size: 10px; font-weight: 700; letter-spacing: .22em; opacity: .7; }
.un-switch--noire { background: var(--un-noir); color: #fff; border: 2px solid #fff; }
.un-switch--blanche { background: var(--un-blanc); color: var(--un-noir); border: 2px solid var(--un-noir); }
.un-switch:hover { transform: translateY(-2px); }
.un-switch--noire[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--un-fire), 0 12px 30px -10px var(--un-fire); }
.un-switch--blanche[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--un-volt), 0 12px 30px -10px var(--un-volt); }

/* ==========================================================================
   HÉROS : NOIRE | BLANCHE
   ========================================================================== */
.un-hero { --split: 50%; position: relative; min-height: 820px; overflow: hidden; isolation: isolate; background: var(--un-noir); transition: --split .9s cubic-bezier(.7, 0, .2, 1); }
:root[data-rg-v="N"] .un-hero { --split: 57%; }
:root[data-rg-v="B"] .un-hero { --split: 43%; }
.un-hero__half { position: absolute; inset: 0; overflow: hidden; }
.un-hero__half--noire { background: radial-gradient(900px 600px at 18% 40%, #1A1D24, transparent 70%), var(--un-noir); }
.un-hero__half--blanche { background: radial-gradient(900px 600px at 82% 40%, #FFFFFF, transparent 70%), var(--un-blanc);
  clip-path: polygon(calc(var(--split) + 7%) 0, 100% 0, 100% 100%, calc(var(--split) - 7%) 100%); }
.un-hero__glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(70px); opacity: .55; }
.un-hero__glow--fire { left: -120px; top: 40px; background: radial-gradient(circle, rgba(255, 106, 61, .75), rgba(255, 106, 61, 0) 65%); animation: un-pulse 6s ease-in-out infinite; }
.un-hero__glow--volt { right: -120px; top: 40px; background: radial-gradient(circle, rgba(46, 197, 255, .7), rgba(46, 197, 255, 0) 65%); animation: un-pulse 6s ease-in-out infinite 3s; }
@keyframes un-pulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .7; transform: scale(1.06); } }
.un-hero__dragon { position: absolute; top: 70px; width: min(44vw, 640px); height: auto; pointer-events: none; transition: opacity .8s, transform .8s, filter .8s; will-change: transform; }
.un-hero__dragon--reshiram { left: -2%; filter: drop-shadow(0 0 40px rgba(255, 106, 61, .45)); }
.un-hero__dragon--zekrom { right: -2%; filter: drop-shadow(0 0 40px rgba(46, 197, 255, .4)); }
:root[data-rg-v="N"] .un-hero__dragon--zekrom, :root[data-rg-v="B"] .un-hero__dragon--reshiram { opacity: .55; filter: grayscale(.6); }
.un-hero__ink { position: absolute; inset: 0; mix-blend-mode: difference; color: #fff; pointer-events: none; }
.un-hero__rings { position: absolute; left: 50%; top: 46%; width: 760px; height: 760px; margin: -380px 0 0 -380px; opacity: .3; }
.un-ring circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.un-ring { transform-origin: 300px 300px; }
.un-ring--2 { animation: un-spin 60s linear infinite; }
.un-ring--3 { animation: un-spin 90s linear infinite reverse; }
.un-ring--4 { animation: un-spin 40s linear infinite; }
.un-ring--4 circle { stroke-width: 5; }
@keyframes un-spin { to { transform: rotate(360deg); } }
.un-hero__sky { position: absolute; left: 0; right: 0; bottom: 86px; width: 100%; height: 260px; }
.un-sky__city { fill: currentColor; }
.un-sky__cables { fill: none; stroke: currentColor; stroke-width: 1.6; }
.un-sky__wheel circle, .un-sky__wheel line { fill: none; stroke: currentColor; stroke-width: 2; }
.un-sky__wheel circle[r="5"] { fill: currentColor; }
.un-sky__spin { animation: un-spin 50s linear infinite; }
.un-hero__seam { position: absolute; inset: 0; background: linear-gradient(180deg, var(--un-volt), #fff 50%, var(--un-fire)); clip-path: polygon(calc(var(--split) + 7% - 3px) 0, calc(var(--split) + 7% + 1px) 0, calc(var(--split) - 7% + 1px) 100%, calc(var(--split) - 7% - 3px) 100%); filter: drop-shadow(0 0 10px rgba(255, 255, 255, .5)); }

.un-hero__inner { position: relative; min-height: 734px; display: flex; align-items: center; justify-content: center; padding-top: 70px; padding-bottom: 60px; }
.un-hero__content { max-width: 780px; text-align: center; }
.un-hero__jp, .un-hero__kicker, .un-title, .un-hero__words, .un-hero__lead { mix-blend-mode: difference; color: #fff; }
.un-hero__jp { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: 15px; letter-spacing: .4em; margin: 0; opacity: .8; }
.un-hero__kicker { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; }
.un-hero__kicker span { font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; padding: 6px 12px; border: 1px solid currentColor; }
.un-title { margin: 0; line-height: .86; font-weight: 900; text-transform: uppercase; }
.un-title__pk { display: block; font-size: clamp(16px, 2vw, 22px); font-weight: 700; letter-spacing: .6em; margin-bottom: 12px; text-indent: .6em; }
.un-title__row { display: flex; align-items: baseline; justify-content: center; gap: .18em; font-size: clamp(56px, 10.5vw, 150px); }
.un-title__amp { font-weight: 300; font-stretch: 62%; font-size: .6em; }
.un-hero__words { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 18px; font-family: var(--un-display); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; }
.un-hero__words i { width: 70px; height: 2px; background: currentColor; }
.un-hero__lead { font-size: 17px; line-height: 1.65; margin: 0 auto 26px; max-width: 58ch; font-weight: 500; }
.un-hero__switch { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; }
.un-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.un-hero .un-btn--line { mix-blend-mode: difference; color: #fff !important; border-color: #fff; }
.un-hero .un-btn--line:hover { background: #fff; color: #000 !important; }
.un-hero__stats { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; list-style: none; margin: 0 auto; padding: 0 16px; background: var(--un-bg); border-top: 1px solid var(--un-line); transition: background-color .6s; }
.un-hero__stats li { display: flex; align-items: baseline; justify-content: center; gap: 10px; border-left: 1px solid var(--un-line); }
.un-hero__stats li:first-child { border-left: 0; }
.un-hero__stats b { font-family: var(--un-display); font-stretch: 125%; font-weight: 900; font-size: 30px; color: var(--un-fg); line-height: 1; }
.un-hero__stats span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--un-muted); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.un-sec { position: relative; padding: 90px 0; background: var(--un-bg); transition: background-color .6s; }
.un-sec:nth-of-type(odd) { background: var(--un-bg-2); }
.un-head { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.un-head--left { text-align: left; margin: 0 0 22px; }
.un-head__kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--un-accent-text); }
.un-head h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.04; margin: 12px 0 14px; color: var(--un-fg); text-wrap: balance; font-weight: 900; text-transform: uppercase; }
.un-head p { color: var(--un-muted); font-size: 16.5px; line-height: 1.65; margin: 0; }
.un-narrow { max-width: 860px; }

/* Versions : une carte noire, une carte blanche, quel que soit le thème */
.un-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; list-style: none; margin: 0; padding: 0; }
.un-version { position: relative; overflow: hidden; min-height: 460px; padding: 30px; border-radius: 6px; display: flex; align-items: flex-end; isolation: isolate; transition: box-shadow .3s, transform .3s; }
.un-version--noire { background: var(--un-noir); color: #F3F5F8; border: 1px solid rgba(255, 255, 255, .14); }
.un-version--blanche { background: var(--un-blanc); color: #0E1014; border: 1px solid rgba(14, 16, 20, .14); }
.un-version__word { position: absolute; top: 18px; left: 22px; z-index: -1; font-family: var(--un-display); font-stretch: 125%; font-weight: 900; font-size: clamp(60px, 9vw, 128px); line-height: .8; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .22; }
.un-version__dragon { position: absolute; right: -40px; top: -10px; width: 62%; max-width: 380px; height: auto; z-index: -1; opacity: .95; }
.un-version--noire .un-version__dragon { filter: drop-shadow(0 0 30px rgba(255, 106, 61, .4)); }
.un-version--blanche .un-version__dragon { filter: drop-shadow(0 0 30px rgba(46, 197, 255, .35)); }
.un-version__body { position: relative; max-width: 440px; }
.un-version__box { width: 92px; height: auto; border-radius: 4px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); margin-bottom: 12px; }
.un-version__jp { margin: 0; font-size: 12px; letter-spacing: .3em; opacity: .7; }
.un-version h3 { margin: 2px 0 8px; font-size: 30px; font-weight: 900; text-transform: uppercase; }
.un-version p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; opacity: .85; }
.un-version ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.un-version ul li::before { content: "▸ "; }
.un-version--noire ul li::before { color: var(--un-fire); }
.un-version--blanche ul li::before { color: #0A6FA3; }
.un-version__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.un-version__pick { border: 2px solid currentColor; background: transparent; color: inherit; padding: 10px 16px; border-radius: 4px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.un-version__pick .un-version__on, .un-version__pick[aria-pressed="true"] .un-version__off { display: none; }
.un-version__pick[aria-pressed="true"] .un-version__on { display: inline; }
.un-version--noire .un-version__pick[aria-pressed="true"] { background: var(--un-fire); border-color: var(--un-fire); color: #0A0B0E; }
.un-version--blanche .un-version__pick[aria-pressed="true"] { background: var(--un-volt); border-color: var(--un-volt); color: #04141C; }
.un-version__excl { font-size: 13.5px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-rg-v="N"] .un-version--noire { box-shadow: 0 0 0 3px var(--un-fire), var(--un-shadow); }
:root[data-rg-v="B"] .un-version--blanche { box-shadow: 0 0 0 3px var(--un-volt), var(--un-shadow); }

/* Unys en ce moment */
.un-now { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.un-now > *, .un-ny > *, .un-legend > *, .un-duo__side > * { min-width: 0; }
.un-novs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--un-line); border: 1px solid var(--un-line); }
.un-novs li { background: var(--un-bg); padding: 18px; display: grid; gap: 4px; transition: background-color .6s; }
.un-sec:nth-of-type(odd) .un-novs li { background: var(--un-bg-2); }
.un-novs i { font-style: normal; font-family: var(--un-display); font-stretch: 125%; font-weight: 900; font-size: 26px; color: var(--un-accent-text); line-height: 1; }
.un-novs b { font-size: 16px; color: var(--un-fg); }
.un-novs span { font-size: 14px; line-height: 1.5; color: var(--un-muted); }

/* Saisons d'Unys : cadran façon C-Gear (thème sombre fixe, comme l'écran du C-Gear) */
.un-seasons { position: relative; overflow: hidden; border-radius: 8px; color: #EAF2FA; background: radial-gradient(500px 300px at 30% 20%, rgba(46, 197, 255, .14), transparent 70%), linear-gradient(160deg, #0E1A26, #071019); border: 1px solid rgba(127, 211, 255, .25); box-shadow: var(--un-shadow); display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 24px; }
.un-seasons__dial { position: relative; width: 220px; height: 220px; }
.un-dial { width: 100%; height: 100%; }
.un-dial__orbit { fill: none; stroke: rgba(127, 211, 255, .3); stroke-width: 1; stroke-dasharray: 2 5; }
.un-dial__seg { opacity: .35; transition: opacity .4s; }
.un-dial__seg--p { fill: var(--un-p); } .un-dial__seg--e { fill: var(--un-e); } .un-dial__seg--o { fill: var(--un-o); } .un-dial__seg--h { fill: var(--un-h); }
.un-dial__seg.is-now { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7)); }
.un-dial__m { font-size: 10px; font-weight: 800; fill: #071019; text-anchor: middle; pointer-events: none; }
.un-dial__hand { transform-origin: 110px 110px; transition: transform 1s cubic-bezier(.6, 0, .2, 1); }
.un-dial__hand line { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.un-dial__hand circle { fill: #fff; }
.un-seasons__center { position: absolute; inset: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(7, 16, 25, .85); border: 1px solid rgba(127, 211, 255, .35); }
.un-seasons__center span { font-size: 28px; line-height: 1; }
.un-seasons__center b { font-family: var(--un-display); font-stretch: 115%; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.un-seasons__center small { font-size: 11px; opacity: .75; }
.un-seasons__kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--un-h); }
.un-seasons__now { margin: 0 0 12px; font-family: var(--un-display); font-stretch: 120%; font-size: 26px; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.un-seasons__now span { display: block; font-family: inherit; font-stretch: 100%; font-size: 13px; font-weight: 600; text-transform: none; color: #A8C4D8; margin-top: 4px; }
.un-seasons__notes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.un-seasons__notes li { padding-left: 16px; position: relative; }
.un-seasons__notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--un-h); }
.un-seasons__mons p { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #A8C4D8; }
.un-seasons__mons ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.un-seasons__mons li { display: flex; align-items: center; gap: 4px; padding: 2px 10px 2px 2px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; font-weight: 700; }
.un-seasons__mons img { width: 40px; height: 40px; image-rendering: pixelated; margin: -4px 0 !important; }
.un-seasons__mons small { font-weight: 500; opacity: .7; }
.un-seasons__note { margin: 0; font-size: 12px; line-height: 1.5; color: #8FA9BC; }
.un-seasons[data-un-season="p"] .un-seasons__notes li::before { background: var(--un-p); }
.un-seasons[data-un-season="e"] .un-seasons__notes li::before { background: var(--un-e); }
.un-seasons[data-un-season="o"] .un-seasons__notes li::before { background: var(--un-o); }

/* Solution : plan du métro */
.un-metro { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.un-line { border-radius: 8px; padding: 22px 22px 14px; background: var(--un-surface); border: 1px solid var(--un-line); transition: background-color .6s; }
.un-line__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.un-line__badge { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--line); color: #0A0B0E; font-family: var(--un-display); font-stretch: 125%; font-weight: 900; font-size: 20px; box-shadow: 0 0 0 4px var(--un-surface), 0 0 0 6px var(--line); }
.un-line__label { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--un-muted); }
.un-line h3 { margin: 2px 0 2px; font-size: 21px; font-weight: 900; text-transform: uppercase; color: var(--un-fg); }
.un-line p { margin: 0; font-size: 14px; color: var(--un-muted); }
.un-stations { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; }
.un-stations::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px; border-radius: 3px; background: var(--line); }
.un-station { position: relative; padding: 0 6px 10px; }
.un-station > a { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none !important; color: var(--un-fg) !important; padding-top: 0; }
.un-station__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--un-surface); border: 5px solid var(--line); box-sizing: border-box; transition: background .2s, transform .2s; z-index: 1; }
.un-station > a:hover .un-station__dot { transform: scale(1.18); }
.un-station.is-done .un-station__dot { background: var(--line); }
.un-station__img { width: 100%; max-width: 132px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--un-surface-2); border: 1px solid var(--un-line); display: grid; place-items: center; }
.un-station__img img { width: 88%; height: 88%; object-fit: contain; }
.un-station__img.is-map img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.un-station__num { font-family: var(--un-display); font-stretch: 125%; font-weight: 900; font-size: 13px; color: var(--un-muted); letter-spacing: .06em; }
.un-station b { font-size: 14px; line-height: 1.25; }
.un-station.is-soon > a { opacity: .45; pointer-events: none; }
.un-station__check { position: absolute; top: 34px; right: 10px; z-index: 2; }
.un-station__check input { width: 18px; height: 18px; accent-color: var(--line); cursor: pointer; }
.un-station.is-done b::after { content: " ✓"; color: var(--line); }

/* Badges */
.un-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.un-badges li a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 18px 12px 16px; text-align: center; border-radius: 8px; background: var(--un-surface); border: 1px solid var(--un-line); color: var(--un-fg) !important; text-decoration: none !important; overflow: hidden; transition: transform .25s, box-shadow .25s, background-color .6s; }
.un-badges li a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--t); }
.un-badges li a:hover { transform: translateY(-4px); box-shadow: var(--un-shadow); }
.un-badges__rank { position: absolute; top: 10px; left: 12px; font-family: var(--un-display); font-stretch: 125%; font-weight: 900; font-size: 26px; color: var(--un-line-strong); line-height: 1; }
.un-badges__badge { position: absolute; top: 12px; right: 12px; }
.un-badges__badge img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.un-badges__who { width: 112px; height: 112px; object-fit: contain; margin: 6px 0 4px; }
.un-badges__who--sprite { image-rendering: pixelated; }
.un-badges b { font-size: 16px; font-weight: 900; text-transform: uppercase; font-family: var(--un-display); font-stretch: 112%; }
.un-badges span { font-size: 13px; color: var(--un-muted); }
.un-badges .un-badges__label { font-weight: 800; color: var(--un-fg); }
.un-badges__type { display: flex; gap: 4px; justify-content: center; margin-top: 4px; flex-wrap: wrap; }
.un-badges__note { margin: 14px 0 0; font-size: 13.5px; color: var(--un-muted); text-align: center; }
.un-elite { margin-top: 40px; }
.un-elite h3 { text-align: center; font-size: 22px; font-weight: 900; text-transform: uppercase; margin: 0 0 16px; color: var(--un-fg); }
.un-elite ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.un-elite a { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 8px; text-align: center; background: var(--un-surface); border: 1px solid var(--un-line); border-bottom: 4px solid var(--t, var(--un-accent)); color: var(--un-fg) !important; text-decoration: none !important; }
.un-elite .is-champion a { background: var(--un-fg); color: var(--un-bg) !important; border-color: var(--un-fg); border-bottom-color: var(--un-accent); }
.un-elite .is-champion span { color: var(--un-bg); opacity: .75; }
.un-elite__who { width: 96px; height: 96px; object-fit: contain; }
.un-elite__who--sprite { image-rendering: pixelated; }
.un-elite b { font-family: var(--un-display); font-stretch: 112%; font-weight: 900; text-transform: uppercase; }
.un-elite span { font-size: 12.5px; color: var(--un-muted); }
.un-elite__star { color: var(--un-accent) !important; font-size: 18px; opacity: 1 !important; }

/* Légendes : le duo Vérité / Idéal (toujours noir | blanc) */
.un-duo { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; box-shadow: var(--un-shadow); margin-bottom: 22px; }
.un-duo__side { position: relative; display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 10px; padding: 26px; min-height: 340px; }
.un-duo__side--reshiram { background: var(--un-noir); color: #F3F5F8; }
.un-duo__side--zekrom { background: var(--un-blanc); color: #0E1014; grid-template-columns: 1fr 46%; }
.un-duo__side--zekrom img { order: 2; }
.un-duo__side img { width: 100%; height: auto; }
.un-duo__side--reshiram img { filter: drop-shadow(0 0 30px rgba(255, 106, 61, .45)); }
.un-duo__side--zekrom img { filter: drop-shadow(0 0 30px rgba(46, 197, 255, .4)); }
.un-duo__kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.un-duo__side--reshiram .un-duo__kicker { color: var(--un-fire); }
.un-duo__side--zekrom .un-duo__kicker { color: #0A6FA3; }
.un-duo h3 { margin: 4px 0 8px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; text-transform: uppercase; }
.un-duo p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; opacity: .85; }
.un-vdl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.un-vdl div { padding: 7px 10px; border-radius: 4px; border: 1px solid currentColor; opacity: .55; transition: opacity .3s; }
.un-vdl dt { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.un-vdl dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
:root[data-rg-v="N"] [data-un-vcell="N"], :root[data-rg-v="B"] [data-un-vcell="B"] { opacity: 1; }
.un-legends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.un-legend { display: grid; grid-template-rows: auto 1fr; border-radius: 8px; overflow: hidden; background: var(--un-surface); border: 1px solid var(--un-line); color: var(--un-fg); transition: background-color .6s; }
.un-legend.is-major { grid-column: span 2; grid-template-rows: none; grid-template-columns: 44% 1fr; }
.un-legend__art { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 14px; background: radial-gradient(circle at 50% 55%, var(--un-accent-soft), transparent 70%); }
.un-legend__body { padding: 14px 16px 16px; }
.un-legend__kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--un-accent-text); }
.un-legend h3 { margin: 2px 0 2px; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.un-legend__where { margin: 0 0 10px; font-size: 13.5px; color: var(--un-muted); }

/* Mosaïque */
.un-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.un-mosaic a { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: var(--un-surface); border: 1px solid var(--un-line); transition: transform .15s, background-color .6s, border-color .2s; }
.un-mosaic a:hover { transform: scale(1.12); border-color: var(--un-accent); z-index: 1; position: relative; }
.un-mosaic img { width: 64px; height: 64px; image-rendering: pixelated; object-fit: contain; }
.un-mosaic--small { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.un-mosaic--small img { width: 56px; height: 56px; }

/* Guides */
.un-guides__title { margin: 34px 0 14px; font-size: 14px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--un-accent-text); }
.un-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.un-guides a { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; padding: 12px; border-radius: 8px; background: var(--un-surface); border: 1px solid var(--un-line); color: var(--un-fg) !important; text-decoration: none !important; height: 100%; transition: transform .2s, border-color .2s, background-color .6s; }
.un-guides a:hover { transform: translateY(-3px); border-color: var(--un-accent); }
.un-guides__img { grid-row: span 2; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--un-surface-2); display: grid; place-items: center; }
.un-guides__img img { width: 92%; height: 92%; object-fit: contain; }
.un-guides__img.is-map img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.un-guides b { font-size: 15px; line-height: 1.25; }
.un-guides a > span:last-child { font-size: 13px; line-height: 1.4; color: var(--un-muted); }

/* Premium */
.un-premium { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.un-premium__card { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 92px; min-height: 104px; border-radius: 8px; background: var(--un-surface); border: 1px solid var(--un-line); color: var(--un-fg) !important; text-decoration: none !important; overflow: hidden; transition: transform .2s, border-color .2s, background-color .6s; }
.un-premium__card:hover { transform: translateY(-3px); border-color: #D9B44A; }
.un-premium__card img { position: absolute; left: 10px; top: 50%; width: 70px; height: 70px; margin-top: -35px !important; object-fit: contain; }
.un-premium__star { font-size: 10.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #C89B22; }
.un-premium__card b { font-size: 15px; line-height: 1.25; }
.un-premium__card > span:last-child { font-size: 13px; line-height: 1.4; color: var(--un-muted); }

/* New York */
.un-ny { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.un-ny h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; text-transform: uppercase; margin: 10px 0 14px; color: var(--un-fg); line-height: 1; }
.un-ny p { color: var(--un-muted); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.un-ny__map { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--un-line); background: var(--un-surface); }
.un-ny__map img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.un-ny__map figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--un-muted); }

/* Cartes */
.un-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.un-card { display: grid; grid-template-rows: auto 1fr; border-radius: 8px; overflow: hidden; background: var(--un-surface); border: 1px solid var(--un-line); color: var(--un-fg); }
.un-card.is-premium { border-color: #D9B44A; }
.un-card__img { margin: 0; height: 160px; display: grid; place-items: center; background: var(--un-surface-2); overflow: hidden; }
.un-card__img img { max-height: 140px; width: auto; max-width: 90%; object-fit: contain; }
.un-card__img.is-map img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; image-rendering: pixelated; }
.un-card__body { padding: 16px; display: flex; flex-direction: column; }
.un-card__tag { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--un-accent-text); }
.un-card h3 { margin: 4px 0 8px; font-size: 18px; font-weight: 900; text-transform: uppercase; }
.un-card p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--un-muted); }
.un-card__more { margin-top: auto; font-weight: 800; font-size: 14px; color: var(--un-accent-text) !important; text-decoration: none !important; }

/* FAQ */
.un-faq { display: grid; gap: 8px; }
.un-faq__q { border-radius: 6px; background: var(--un-surface); border: 1px solid var(--un-line); color: var(--un-fg); }
.un-faq__q summary { cursor: pointer; padding: 15px 18px; font-weight: 800; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.un-faq__q summary::-webkit-details-marker { display: none; }
.un-faq__q summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--un-accent-text); }
.un-faq__q[open] summary::after { content: "−"; }
.un-faq__q p { margin: 0; padding: 0 18px 16px; color: var(--un-muted); line-height: 1.65; }

/* ==========================================================================
   BANNIÈRE DES PAGES
   ========================================================================== */
.un-banner { position: relative; overflow: hidden; border-radius: 10px; min-height: 270px; display: flex; align-items: stretch; margin-bottom: 14px; isolation: isolate; background: var(--un-bg); color: var(--un-fg); border: 1px solid var(--un-line); transition: background-color .6s, color .6s; }
.un-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--line, var(--un-accent)); z-index: 2; }
.un-banner__rings { position: absolute; right: -60px; top: 50%; width: 420px; height: 420px; margin-top: -210px; z-index: -1; opacity: .18; color: var(--un-fg); }
.un-banner__rings circle { fill: none; stroke: currentColor; stroke-width: 2; }
.un-banner__map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: .38; z-index: -1; mask-image: linear-gradient(90deg, transparent 10%, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 60%); }
.un-banner__inner { position: relative; z-index: 1; padding: 26px 30px 40px; max-width: 760px; }
.un-banner__brand { display: inline-flex; margin-bottom: 14px; text-decoration: none !important; font-family: var(--un-display); font-stretch: 125%; font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border: 1.5px solid var(--un-fg); border-radius: 3px; overflow: hidden; }
.un-banner__n, .un-banner__b { padding: 4px 10px; }
.un-banner__n { background: var(--un-noir); color: #fff; }
.un-banner__b { background: var(--un-blanc); color: var(--un-noir); }
.un-banner__kicker { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--un-accent-text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.un-banner__premium { color: #2B2208; background: linear-gradient(135deg, #FFF3C4, #D9B44A); padding: 3px 9px; border-radius: 3px; letter-spacing: .1em; }
.un-banner__title { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; color: var(--un-fg); text-wrap: balance; font-weight: 900; text-transform: uppercase; }
.un-banner__hook { margin: 0 0 16px; font-size: 16px; color: var(--un-muted); max-width: 58ch; }
.un-banner__vers { display: flex; flex-wrap: wrap; gap: 8px; }
.un-banner__vers .un-switch { min-width: 0; padding: 6px 14px 7px; font-size: 14px; }
.un-banner__art { position: absolute; right: 22px; bottom: 16px; height: 92%; max-height: 270px; width: auto; max-width: 42%; object-fit: contain; z-index: 0; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .45)); }
.un-banner--box .un-banner__art { height: 74%; transform: rotate(-4deg); border-radius: 6px; bottom: 36px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.un-banner.is-premium { box-shadow: 0 0 0 2px #D9B44A, 0 24px 60px -30px rgba(217, 180, 74, .6); }

/* Ligne de métro des étapes */
.un-progress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--un-bg); border: 1px solid var(--un-line); transition: background-color .6s; }
.un-progress ol { display: flex; flex-wrap: wrap; row-gap: 8px; list-style: none; margin: 0; padding: 0; flex: 1; }
.un-progress li { position: relative; display: flex; align-items: center; }
.un-progress li + li::before { content: ""; width: 8px; height: 4px; background: var(--line); }
.un-progress li.is-act { margin-left: 10px; }
.un-progress li.is-act::before { display: none; }
.un-progress li a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 11px; font-weight: 900; text-decoration: none !important; color: var(--un-fg) !important; background: var(--un-bg); border: 3px solid var(--line); box-sizing: border-box; }
.un-progress li a.is-done { background: var(--line); color: #0A0B0E !important; }
.un-progress li.is-current a { width: 32px; height: 32px; background: var(--un-fg); color: var(--un-bg) !important; border-color: var(--line); box-shadow: 0 0 0 3px var(--un-bg), 0 0 0 5px var(--line); }
.un-progress__done { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--un-fg); cursor: pointer; }
.un-progress__done input { accent-color: var(--un-accent); width: 18px; height: 18px; }
.un-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.un-quick a { font-size: 13px; font-weight: 800; padding: 7px 13px; border-radius: 3px; border: 1px solid var(--un-line-strong); background: transparent; color: var(--un-fg) !important; text-decoration: none !important; letter-spacing: .02em; }
.pf-unys:not(.pf-unys-hub) .un-quick a { color: #0E1014 !important; border-color: rgba(14, 16, 20, .25); }
.pf-unys:not(.pf-unys-hub) .un-quick a.is-on { background: #0E1014; color: #fff !important; border-color: #0E1014; }
.pf-unys:not(.pf-unys-hub) .un-quick a[href*="#premium"] { border-color: #D9B44A; color: #7A5A0A !important; }

/* ==========================================================================
   CORPS DES PAGES (palette claire fixe pour la lecture, accent de la version)
   ========================================================================== */
.pf-unys .article-body, .pf-unys .guide-article__body {
  --un-bg: #F4F5F7; --un-bg-2: #EBEDF1; --un-surface: #FFFFFF; --un-surface-2: #F3F4F7;
  --un-fg: #0E1014; --un-muted: #5A6372; --un-line: rgba(14, 16, 20, .12); --un-line-strong: rgba(14, 16, 20, .3);
  --un-shadow: 0 24px 50px -36px rgba(14, 16, 20, .45);
}
:root[data-rg-v="N"] .pf-unys .article-body, :root[data-rg-v="N"] .pf-unys .guide-article__body { --un-accent-text: #C2410C; }
.pf-unys .article-body h2, .pf-unys .guide-article__body h2 { font-family: var(--un-display); font-stretch: 118%; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; }
.pf-unys .article-body h2::before, .pf-unys .guide-article__body h2::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: .05em; background: linear-gradient(90deg, #0E1014 50%, #fff 50%); border: 2px solid #0E1014; border-radius: 50%; }
.un-lead { font-size: 18px; line-height: 1.7; color: var(--un-muted); padding-left: 16px; border-left: 4px solid var(--un-accent); }

/* Pokédex */
.un-dex { margin: 18px 0; }
.un-dex__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; position: sticky; top: 70px; z-index: 5; background: rgba(244, 245, 247, .95); backdrop-filter: blur(6px); padding: 10px; border-radius: 8px; border: 1px solid var(--un-line); }
.un-dex__bar input, .un-dex__bar select { height: 40px; border-radius: 6px; border: 1px solid var(--un-line-strong); padding: 0 12px; font-size: 14px; background: #fff; color: #0E1014; max-width: 100%; }
.un-dex__search { flex: 1 1 220px; }
.un-dex__search input { width: 100%; }
.un-dex__count { font-size: 13px; font-weight: 800; color: var(--un-accent-text); margin-left: auto; }
.un-dex__wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--un-line); background: #fff; }
.un-dex__table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; margin: 0 !important; }
.un-dex__table th { position: sticky; top: 0; background: #0E1014; color: #fff; text-align: left; padding: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 0 !important; }
.un-dex__table td { padding: 8px 10px; border: 0 !important; border-bottom: 1px solid var(--un-line) !important; vertical-align: top; }
.un-dex__table tr[hidden] { display: none; }
.un-dex__num b { display: block; font-family: var(--un-display); font-stretch: 118%; font-size: 16px; font-weight: 900; }
.un-dex__num small { color: var(--un-muted); }
.un-dex__mon a { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #0E1014 !important; text-decoration: none !important; }
.un-dex__mon img { width: 64px; height: 64px; image-rendering: pixelated; margin: 0 !important; }
.un-dex__types { display: flex; gap: 4px; margin: 2px 0 4px 70px; }
.un-dex__table td[data-un-col] { width: 34%; }
:root[data-rg-v="N"] .un-dex__table td[data-un-col="N"], :root[data-rg-v="B"] .un-dex__table td[data-un-col="B"] { background: var(--un-accent-soft); }
:root[data-rg-v="N"] .un-dex__table th[data-un-col="N"] { background: var(--un-fire); color: #0A0B0E; }
:root[data-rg-v="B"] .un-dex__table th[data-un-col="B"] { background: var(--un-volt); color: #04141C; }
.un-dex__none { font-size: 12.5px; color: var(--un-muted); font-style: italic; }
.un-dex__note { font-size: 13px; color: var(--un-muted); margin-top: 10px; }
.un-tag { display: inline-block; margin: 2px 4px 0 70px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 3px; }
.un-tag + .un-tag { margin-left: 0; }
.un-tag--n { background: #0E1014; color: #fff; }
.un-tag--b { background: #fff; color: #0E1014; box-shadow: inset 0 0 0 1.5px #0E1014; }
.un-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.un-where li { font-size: 12.5px; line-height: 1.35; }
.un-where b { color: #0E1014; }
.un-where span { color: var(--un-muted); }
.un-where__more { color: var(--un-accent-text); font-weight: 700; }
.un-wherebox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.un-wherebox section { border-radius: 8px; padding: 12px 14px; }
.un-wherebox h4 { margin: 0 0 8px; font-family: var(--un-display); font-stretch: 118%; font-weight: 900; text-transform: uppercase; font-size: 15px; }
.un-wherebox__noire { background: #0E1014; color: #F3F5F8; }
.un-wherebox__noire b, .un-wherebox__noire h4 { color: #fff; }
.un-wherebox__noire span, .un-wherebox__noire .un-dex__none { color: #A3ACBA; }
.un-wherebox__blanche { background: #fff; color: #0E1014; border: 1.5px solid #0E1014; }

/* Exclusivités */
.un-excl { display: grid; gap: 16px; margin: 18px 0; }
.un-excl section { border-radius: 8px; padding: 16px; }
.un-excl__noire { background: #0E1014; color: #F3F5F8; }
.un-excl__noire .rg-mons b { color: #F3F5F8 !important; }
.un-excl__blanche { background: #fff; color: #0E1014; border: 1.5px solid #0E1014; }
.un-excl h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px !important; font-size: 19px; font-family: var(--un-display); font-stretch: 118%; font-weight: 900; text-transform: uppercase; color: inherit !important; }
.un-excl h3 img { width: 44px; height: 44px; border-radius: 4px; margin: 0 !important; object-fit: cover; }
.un-excl h3 em { font-size: 13px; font-weight: 600; text-transform: none; opacity: .7; }
.un-excl h3 small { font-size: 13px; padding: 2px 9px; border-radius: 3px; background: var(--un-fire); color: #0A0B0E; }
.un-excl__blanche h3 small { background: var(--un-volt); color: #04141C; }

/* Tableaux et CT */
.un-tablewrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--un-line); background: #fff; margin: 16px 0; }
.un-ct, .un-special { margin: 0 !important; width: 100%; }
.un-ct__disc { display: inline-block; font-weight: 900; font-size: 12px; padding: 4px 9px; border-radius: 3px; color: #fff; background: #0E1014; white-space: nowrap; letter-spacing: .04em; }
.un-ct__disc--cs { background: #fff; color: #0E1014; box-shadow: inset 0 0 0 2px #0E1014; }

/* Calculateurs (écran sombre fixe) */
.un-calc { border-radius: 8px; padding: 18px; background: linear-gradient(160deg, #0E1A26, #071019); color: #fff; margin: 18px 0; border: 1px solid rgba(127, 211, 255, .25); }
.un-calc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.un-calc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--un-h); }
.un-calc input, .un-calc select { height: 42px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; font-weight: 800; padding: 0 10px; }
.un-calc select option { color: #0E1014; }
.un-calc__check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.un-calc__check input { height: 18px; width: 18px; }
.un-calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.un-calc__out div { padding: 10px; border-radius: 6px; background: rgba(0, 0, 0, .3); }
.un-calc__out dt { font-size: 11.5px; color: #A8C4D8; }
.un-calc__out dd { margin: 4px 0 0; font-family: var(--un-display); font-stretch: 118%; font-weight: 900; font-size: 20px; color: #fff; }

/* Table des types */
.un-typechart { border-collapse: collapse; font-size: 12px; min-width: 780px; width: 100%; margin: 0 !important; background: #fff; }
.un-typechart th, .un-typechart td { border: 1px solid var(--un-line) !important; padding: 4px 3px; text-align: center; }
.un-typechart thead th .rg-type { writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 2px; font-size: 10.5px; }
.un-typechart__corner { font-size: 10.5px; color: var(--un-muted); min-width: 90px; }
.un-typechart tbody th { text-align: left; white-space: nowrap; background: #F4F5F7; }
.un-typechart td { width: 38px; height: 30px; font-weight: 800; }
.un-tc--2 { background: #DCF2D5; color: #1E6B12; }
.un-tc--h { background: #F8DCD6; color: #9A2B17; }
.un-tc--0 { background: #2B2B3A; color: #fff; }

/* Check-list du 100 % */
.un-check { background: #fff; border: 1px solid var(--un-line); border-radius: 8px; margin: 0 0 8px; }
.un-check summary { cursor: pointer; padding: 11px 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.un-check summary small { font-size: 12px; color: #fff; background: #0E1014; border-radius: 3px; padding: 2px 9px; }
.un-check.is-complete summary { color: #1E6B12; }
.un-check.is-complete summary::after { content: "✓"; color: #2E8B57; margin-left: auto; }
.un-check ul { list-style: none; margin: 0; padding: 0 14px 12px; }
.un-check li { padding: 4px 0; font-size: 14px; line-height: 1.45; border-top: 1px dashed var(--un-line); }
.un-check label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.un-check input { margin-top: 3px; accent-color: #0E1014; }

/* ==========================================================================
   KIT RÉTRO : 5e GÉNÉRATION (saisons, versions, cadre DS)
   ========================================================================== */
:root[data-rg-fam="unys"] .rg-sprite { width: 64px; height: 64px; }
:root[data-rg-fam="unys"] .rg-sprite--lg { width: 80px; height: 80px; }
.rg-times { display: flex; gap: 4px; justify-content: flex-end; margin: -4px 0 6px; font-size: 11px; font-weight: 700; color: var(--ink-light, #6B6B8A); }
.rg-times span { width: 54px; text-align: center; }
.rg-method--g2 .rg-wild li { grid-template-columns: minmax(0, 1fr) auto auto; }
.rg-vrates { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 6px; }
.rg-vrates + .rg-vrates { margin-left: 4px; }
.rg-vrates > b { font-size: 10.5px; font-weight: 800; color: var(--v); min-width: 46px; text-align: right; }
.rg-vrates.is-absent { opacity: .45; }
.rg-rate--t { width: 54px; }
.rg-prec { display: block; font-size: 11px; font-weight: 600; color: var(--ink-light, #6B6B8A); }
:root[data-rg-fam="unys"][data-rg-v] .rg-vrates[data-rg-col] { opacity: .5; }
:root[data-rg-fam="unys"][data-rg-v="N"] .rg-vrates[data-rg-col="N"], :root[data-rg-fam="unys"][data-rg-v="B"] .rg-vrates[data-rg-col="B"] { opacity: 1; background: color-mix(in srgb, var(--v) 12%, transparent); }
:root[data-rg-fam="unys"][data-rg-v] .rg-vnote[data-rg-only] { opacity: .55; }
:root[data-rg-fam="unys"][data-rg-v="N"] .rg-vnote[data-rg-only~="N"], :root[data-rg-fam="unys"][data-rg-v="B"] .rg-vnote[data-rg-only~="B"] { opacity: 1; box-shadow: 0 8px 24px -16px var(--v); }
.rg-shot--ds { padding: 12px; border-radius: 10px; background: linear-gradient(160deg, #2A2D33, #121418); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 10px 26px -14px rgba(0, 0, 0, .6); }
.rg-shot--ds img { image-rendering: pixelated; border-radius: 3px; background: #000; }
.rg-shot--ds figcaption { color: #DCE3F6 !important; }

/* Corps d'article : neutralise les styles génériques sur les composants du mini-site */
.pf-unys .article-body [class*="un-"] img, .pf-unys .guide-article__body [class*="un-"] img { margin: 0; border-radius: 0; box-shadow: none; }
.pf-unys .article-body .un-where, .pf-unys .article-body .un-premium, .pf-unys .article-body .un-guides, .pf-unys .article-body .un-badges, .pf-unys .article-body .un-mosaic, .pf-unys .article-body .un-seasons__notes, .pf-unys .article-body .un-seasons__mons ul { margin-left: 0; padding-left: 0; }
.pf-unys .article-body .un-where li, .pf-unys .article-body .un-badges li, .pf-unys .article-body .un-mosaic li, .pf-unys .article-body .un-seasons li { list-style: none; }
.pf-unys .article-body .un-card a, .pf-unys .article-body .un-premium a, .pf-unys .article-body .un-badges a { text-decoration: none; }
.pf-unys .article-body .un-premium { background: #0E1014; padding: 14px; border-radius: 10px; --un-surface: #181B21; --un-fg: #F3F5F8; --un-muted: #A3ACBA; --un-line: rgba(255, 255, 255, .12); }
.pf-unys .article-body .un-badges__who { width: 84px; height: 84px; }
.pf-unys .article-body .un-badges__badge img { width: 36px; height: 36px; }
.pf-unys .article-body .un-card__img img { max-height: 140px; width: auto; }
.pf-unys .article-body .un-card__img.is-map img { width: 100%; height: 100%; max-height: none; }
.pf-unys .article-body .rg-sprite { image-rendering: pixelated; }
.pf-unys .article-body .un-calc input, .pf-unys .article-body .un-calc select { color: #fff; }
.pf-unys .article-body .un-check ul { padding-left: 14px; }
.pf-unys .article-body .un-mosaic { padding-left: 4px; }
.pf-unys .article-body .un-seasons, .pf-unys .article-body .un-seasons p { color: #EAF2FA; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .un-legends { grid-template-columns: repeat(2, 1fr); }
  .un-elite ul { grid-template-columns: repeat(3, 1fr); }
  .un-hero__jp { display: none; }
}
@media (max-width: 900px) {
  .un-versions, .un-now, .un-ny, .un-duo { grid-template-columns: 1fr; }
  .un-badges { grid-template-columns: repeat(2, 1fr); }
  .un-calc__grid, .un-calc__out { grid-template-columns: 1fr 1fr; }
  .un-wherebox { grid-template-columns: 1fr; }
  .un-banner__art { opacity: .3; max-width: 55%; }
  .un-hero__stats { grid-template-columns: repeat(3, 1fr); }
  .un-hero__stats li:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .un-hero { min-height: 760px; }
  .un-hero__inner { min-height: 676px; align-items: flex-end; padding-top: 220px; padding-bottom: 260px; }
  .un-hero__dragon { top: 40px; width: 64vw; }
  .un-hero__dragon--reshiram { left: -14vw; }
  .un-hero__dragon--zekrom { right: -14vw; }
  .un-hero__rings { width: 520px; height: 520px; margin: -260px 0 0 -260px; top: 32%; }
  .un-hero__sky { height: 170px; }
  .un-hero__words { letter-spacing: .3em; }
  .un-hero__words i { width: 40px; }
  .un-hero__lead { font-size: 15.5px; }
  .un-switch { min-width: 0; font-size: 15px; }
  .un-hero__stats b { font-size: 22px; }
  .un-hero__stats li { flex-direction: column; align-items: center; gap: 2px; }
  .un-hero__stats span { font-size: 10px; text-align: center; }
  .un-sec { padding: 64px 0; }
  .un-version { min-height: 0; padding: 22px; }
  .un-version__dragon { width: 70%; right: -50px; opacity: .45; }
  .un-novs { grid-template-columns: 1fr; }
  .un-seasons { grid-template-columns: 1fr; justify-items: center; }
  .un-seasons__body { justify-self: stretch; }
  .un-stations { grid-template-columns: 1fr; }
  .un-stations::before { left: 12px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .un-station { padding: 0 0 10px; }
  .un-station > a { grid-template-columns: 30px 72px 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; align-items: center; column-gap: 10px; }
  .un-station__dot { grid-row: span 2; margin-left: 2px; }
  .un-station__img { grid-row: span 2; max-width: 72px; }
  .un-station__num { align-self: end; }
  .un-station b { align-self: start; }
  .un-station__check { top: 50%; right: 4px; margin-top: -9px; }
  .un-badges { grid-template-columns: 1fr 1fr; gap: 10px; }
  .un-badges__who { width: 84px; height: 84px; }
  .un-elite ul { grid-template-columns: repeat(2, 1fr); }
  .un-legends { grid-template-columns: 1fr; }
  .un-legend.is-major { grid-column: auto; grid-template-columns: 1fr; }
  .un-duo__side, .un-duo__side--zekrom { grid-template-columns: 1fr; min-height: 0; }
  .un-duo__side img { max-width: 240px; justify-self: center; }
  .un-duo__side--zekrom img { order: 0; }
  .un-banner__inner { padding: 22px 18px 36px; }
  .un-calc__grid, .un-calc__out { grid-template-columns: 1fr; }
  .un-tag { margin-left: 0; }
  .un-dex__types { margin-left: 0; }
  .rg-times span, .rg-rate--t { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .un-hero, .un-hero__dragon, .un-dial__hand { transition: none !important; }
  .un-ring, .un-sky__spin, .un-hero__glow { animation: none !important; }
}
