/* ============================================================
   PF2026 — Mini-site Pokémon Écarlate et Violet (Paldea)
   Hub : template-parts/guides/hub-paldea.php · bandeau : template-parts/paldea-nav.php
   Composants des guides : shortcodes [pdl_*] (inc/paldea-hub.php).
   Identité : l'orange écarlate et le violet des deux versions, l'or de l'Académie
   et les facettes du Téracristal. La version choisie (html[data-pdl-version])
   recolore la page et masque les textes de l'autre version.
   ============================================================ */

:root {
  --pdl-ec: #E8461E; --pdl-ec-dark: #A42710; --pdl-ec-soft: #FFEDE5;
  --pdl-vi: #7A3FD0; --pdl-vi-dark: #4B2296; --pdl-vi-soft: #F1E9FF;
  --pdl-gold: #F6BF2E; --pdl-ink: #1C1838; --pdl-muted: #5F5B7A; --pdl-paper: #FBF9F5; --pdl-line: #E7E2EF;
  --pdl-tera: linear-gradient(120deg, #5BE3FF, #B98CFF 45%, #FF8FC7 70%, #FFE27A);
  --pdl-accent: var(--pdl-ec); --pdl-accent-dark: var(--pdl-ec-dark); --pdl-accent-soft: var(--pdl-ec-soft);
  --pdl-grad: linear-gradient(120deg, var(--pdl-ec) 0%, #C2336B 50%, var(--pdl-vi) 100%);
  --pdl-font: 'Rubik', var(--font);
}
html[data-pdl-version="ecarlate"] { --pdl-grad: linear-gradient(135deg, #FF7A2F, var(--pdl-ec) 45%, var(--pdl-ec-dark)); }
html[data-pdl-version="violet"] {
  --pdl-accent: var(--pdl-vi); --pdl-accent-dark: var(--pdl-vi-dark); --pdl-accent-soft: var(--pdl-vi-soft);
  --pdl-grad: linear-gradient(135deg, #B07CFF, var(--pdl-vi) 45%, var(--pdl-vi-dark));
}

/* ---------- Textes propres à une version ---------- */
html[data-pdl-version="ecarlate"] .pdl-v__vi, html[data-pdl-version="ecarlate"] .pdl-v__sep,
html[data-pdl-version="violet"] .pdl-v__ec, html[data-pdl-version="violet"] .pdl-v__sep { display: none !important; }
.pdl-v__ec, .pdl-v__vi { font-weight: inherit; }

/* ---------- Base hub ---------- */
.pdl { background: var(--pdl-paper); color: var(--pdl-ink); overflow-x: clip; }
.pdl h1, .pdl h2, .pdl h3, .pdl-ribbon b, .pdl-idcard__title, .pdl-trainer__name { font-family: var(--pdl-font); }
.pdl-crumbs { background: var(--pdl-ink); }
.pdl-crumbs .breadcrumb { margin: 0; padding: 10px 0; color: rgba(255, 255, 255, .7); font-size: 13px; background: none; }
.pdl-crumbs .breadcrumb a { color: rgba(255, 255, 255, .9); }
.pdl-crumbs .breadcrumb-current { color: #fff; }

.pdl-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-full);
  font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; border: 2px solid rgba(255, 255, 255, .55);
  transition: transform .15s ease, background .2s ease;
}
.pdl-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); color: #fff; }
.pdl-btn--primary { background: #fff; color: var(--pdl-accent-dark); border-color: #fff; }
.pdl-btn--primary:hover { background: var(--pdl-gold); border-color: var(--pdl-gold); color: var(--pdl-ink); }
.pdl-btn--light { background: #fff; color: var(--pdl-ink); border-color: #fff; }
.pdl-btn--ghost { border-color: rgba(255, 255, 255, .5); }

/* ---------- Héros ---------- */
.pdl-hero { position: relative; color: #fff; background: var(--pdl-grad); padding: 54px 0 84px; overflow: hidden; transition: background .4s ease; }
.pdl-hero::after { content: ""; position: absolute; inset: auto 0 -1px; height: 60px; background: var(--pdl-paper); clip-path: polygon(0 100%, 0 40%, 18% 85%, 38% 30%, 55% 80%, 74% 20%, 88% 70%, 100% 35%, 100% 100%); }
.pdl-hero__facets i { position: absolute; display: block; background: rgba(255, 255, 255, .09); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.pdl-hero__facets i:nth-child(1) { width: 260px; height: 260px; left: -60px; top: -40px; }
.pdl-hero__facets i:nth-child(2) { width: 120px; height: 120px; left: 38%; top: 18px; background: rgba(255, 255, 255, .07); }
.pdl-hero__facets i:nth-child(3) { width: 340px; height: 340px; right: -90px; bottom: -120px; }
.pdl-hero__facets i:nth-child(4) { width: 80px; height: 80px; left: 52%; bottom: 60px; background: rgba(255, 226, 122, .22); }
.pdl-hero__facets i:nth-child(5) { width: 160px; height: 160px; right: 30%; top: -50px; background: rgba(91, 227, 255, .14); }
.pdl-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.pdl-eyebrow { display: inline-block; padding: 6px 12px; border-radius: var(--r-full); background: rgba(0, 0, 0, .18); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.pdl-hero__title { margin: 16px 0 10px; line-height: .95; }
.pdl-hero__pre { display: block; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; opacity: .9; letter-spacing: .04em; }
.pdl-hero__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.02em; }
.pdl-hero__names b { transition: opacity .3s ease; text-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.pdl-hero__amp { font-size: .5em; opacity: .7; }
html[data-pdl-version="ecarlate"] .pdl-hero__names .is-vi, html[data-pdl-version="violet"] .pdl-hero__names .is-ec { opacity: .35; }
.pdl-hero__lead { max-width: 60ch; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .92); margin: 0 0 22px; }

.pdl-picker { display: flex; flex-wrap: wrap; gap: 12px; }
.pdl-picker__btn { display: grid; place-items: center; width: 190px; height: 92px; padding: 8px 14px; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.pdl-picker__btn img { max-width: 100%; max-height: 70px; width: auto; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); }
.pdl-picker__btn:hover { transform: translateY(-3px); }
.pdl-picker__btn[aria-pressed="true"] { background: #fff; border-color: var(--pdl-gold); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.pdl-picker__hint { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.pdl-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.pdl-chips li { padding: 6px 12px; border-radius: var(--r-full); background: rgba(0, 0, 0, .2); font-size: 13px; font-weight: 600; }
.pdl-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.pdl-hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.pdl-hero__halo { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 65%); }
.pdl-hero__legend { position: relative; width: min(100%, 440px); height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); animation: pdl-float 6s ease-in-out infinite; }
html:not([data-pdl-version]) .pdl-hero__legend { width: min(62%, 300px); }
html:not([data-pdl-version]) .pdl-hero__legend.pdl-v__ec { position: absolute; left: 0; top: 8%; }
html:not([data-pdl-version]) .pdl-hero__legend.pdl-v__vi { position: absolute; right: 0; bottom: 6%; animation-delay: -3s; }
.pdl-hero__tag { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: var(--r-full); background: rgba(0, 0, 0, .3); font-weight: 700; font-family: var(--pdl-font); white-space: nowrap; }
@keyframes pdl-float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .pdl-hero__legend { animation: none; } }

/* ---------- Sommaire ---------- */
.pdl-jump { position: sticky; top: 66px; z-index: 50; background: rgba(251, 249, 245, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pdl-line); }
.pdl-jump .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.pdl-jump .container::-webkit-scrollbar { display: none; }
.pdl-jump a { flex: 0 0 auto; padding: 7px 13px; border-radius: var(--r-full); font-size: 14px; font-weight: 600; color: var(--pdl-ink); text-decoration: none; background: #fff; border: 1px solid var(--pdl-line); }
.pdl-jump a:hover { border-color: var(--pdl-accent); color: var(--pdl-accent-dark); }

/* ---------- Sections ---------- */
.pdl-section { padding: 64px 0; scroll-margin-top: 110px; }
.pdl-section--tint { background: linear-gradient(180deg, #F4EFFA, #FBF4EE); }
.pdl-head { max-width: 760px; margin: 0 0 30px; }
.pdl-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pdl-accent-dark); }
.pdl-head h2 { margin: 8px 0 10px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pdl-head p { margin: 0; color: var(--pdl-muted); font-size: 16.5px; line-height: 1.6; }
.pdl-more { margin: 22px 0 0; font-weight: 700; }
.pdl-more a { color: var(--pdl-accent-dark); }
.pdl-note { margin: 16px 0 0; font-size: 14px; color: var(--pdl-muted); }
.pdl-credits { padding: 18px var(--gutter) 40px; font-size: 12px; color: var(--pdl-muted); }

/* ---------- Quêtes ---------- */
.pdl-quests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pdl-quest { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 22px 20px 20px 8px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--pdl-line); border-top: 6px solid var(--qc); box-shadow: var(--shadow-sm); overflow: hidden; }
.pdl-quest__char { align-self: end; width: 110px; height: 230px; object-fit: contain; object-position: bottom; }
.pdl-quest__with { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pdl-muted); }
.pdl-quest h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 800; }
.pdl-quest p { margin: 0 0 12px; font-size: 14.5px; color: var(--pdl-muted); line-height: 1.5; }
.pdl-quest__badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; }
.pdl-quest__badges li { position: relative; }
.pdl-quest__badges img { display: block; width: 40px; height: 40px; filter: grayscale(1) opacity(.45); transition: filter .2s ease, transform .2s ease; }
.pdl-quest__badges li.is-done img, .pdl-quest__badges a:hover img { filter: none; transform: scale(1.08); }
.pdl-quest__progress { font-size: 14px !important; margin-bottom: 8px !important; }
.pdl-quest__progress b { font-size: 20px; color: var(--pdl-ink); }
.pdl-quest__go { font-weight: 700; color: var(--pdl-accent-dark); text-decoration: none; }

/* ---------- Ordre conseillé ---------- */
.pdl-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; counter-reset: none; }
.pdl-route__step { display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--pdl-line); border-left: 5px solid var(--qc, var(--pdl-gold)); }
.pdl-route__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--qc, var(--pdl-gold)); color: #fff; font-weight: 800; font-size: 14px; }
.pdl-route__step img { width: 44px; height: 44px; object-fit: contain; }
.pdl-route__step a { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--pdl-ink); }
.pdl-route__step a small { font-size: 12px; color: var(--pdl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdl-route__step a b { font-size: 15.5px; font-family: var(--pdl-font); }
.pdl-route__step a:hover b { color: var(--pdl-accent-dark); }
.pdl-route__lv { font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--pdl-paper); white-space: nowrap; }
.pdl-route__step--final { --qc: var(--pdl-ink); background: linear-gradient(90deg, #fff, #F6F0FF); }
.pdl-route__step.is-done { background: #F1FBF4; border-color: #BFE8CB; }
.pdl-route__step.is-done .pdl-route__n { background: #16A34A; font-size: 0; }
.pdl-route__step.is-done .pdl-route__n::after { content: "✓"; font-size: 15px; }
.pdl-route .type-badge { font-size: 10px; padding: 3px 7px; }

/* ---------- Cartes personnages (Arènes, Team Star) ---------- */
.pdl-cards--people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pdl-person { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 12px 16px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--pdl-line); text-decoration: none; color: var(--pdl-ink); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pdl-person::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; background: linear-gradient(160deg, var(--tc), color-mix(in srgb, var(--tc) 35%, #fff)); opacity: .9; clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
.pdl-person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--tc); }
.pdl-person__n { position: absolute; top: 10px; left: 12px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; font-weight: 800; font-size: 14px; }
.pdl-person__badge { position: absolute; top: 8px; right: 10px; z-index: 1; width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.pdl-person__art { position: relative; z-index: 1; height: 210px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .18)); }
.pdl-person__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; text-align: center; }
.pdl-person__body b { font-family: var(--pdl-font); font-size: 20px; font-weight: 800; }
.pdl-person__body small { color: var(--pdl-muted); font-weight: 600; }
.pdl-person__meta { font-size: 12.5px; color: var(--pdl-muted); }
.pdl-person.is-done::after { content: "✓"; position: absolute; top: 44px; left: 12px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #16A34A; color: #fff; font-weight: 800; }
.pdl-cards--people:has(.pdl-person--star) { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.pdl-banner { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 14px 22px; border-radius: var(--r-lg); background: linear-gradient(110deg, var(--pdl-ink), #3B2A6B); color: #fff; text-decoration: none; overflow: hidden; }
.pdl-banner__chars { display: flex; flex: 0 0 auto; }
.pdl-banner__chars img { height: 96px; width: auto; margin-right: -22px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.pdl-banner__text { flex: 1; display: flex; flex-direction: column; padding-left: 26px; }
.pdl-banner__text small { opacity: .8; }
.pdl-banner__text b { font-family: var(--pdl-font); font-size: 19px; }
.pdl-banner__go { font-size: 26px; font-weight: 800; color: var(--pdl-gold); }
.pdl-banner:hover b { color: var(--pdl-gold); }

/* ---------- Dominants ---------- */
.pdl-section--legend { background: linear-gradient(180deg, #EEF7EF, #FBF9F5); }
.pdl-titans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pdl-titan { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--pdl-line); text-decoration: none; color: var(--pdl-ink); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.pdl-titan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pdl-titan__art { display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tc) 40%, #fff), color-mix(in srgb, var(--tc) 85%, #000)); }
.pdl-titan__art img { width: 86%; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); }
.pdl-titan__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.pdl-titan__body small { font-size: 12px; font-weight: 700; color: var(--pdl-muted); text-transform: uppercase; letter-spacing: .04em; }
.pdl-titan__body b { font-family: var(--pdl-font); font-size: 17px; }
.pdl-titan__meta { font-size: 13px; color: var(--pdl-muted); }
.pdl-titan__skill { align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: var(--r-full); background: #E8F7EC; color: #166534; font-weight: 700; font-size: 13px; }
.pdl-titan.is-done .pdl-titan__skill { background: #16A34A; color: #fff; }

/* ---------- Team Star ---------- */
.pdl-section--star { background: radial-gradient(circle at 15% 10%, #3A2A6E 0, transparent 40%), linear-gradient(160deg, #1B1636, #2C1D52); color: #fff; }
.pdl-section--star .pdl-head p { color: rgba(255, 255, 255, .78); }
.pdl-section--star .pdl-kicker { color: var(--pdl-gold); }
.pdl-section--star .pdl-person { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.pdl-section--star .pdl-person__body small, .pdl-section--star .pdl-person__meta { color: rgba(255, 255, 255, .7); }

/* ---------- Finale ---------- */
.pdl-finale { background: linear-gradient(180deg, #0F2F3A, #18445A 60%, #FBF9F5 60.1%); color: #fff; }
.pdl-finale__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 34px; align-items: center; }
.pdl-finale__text p { color: rgba(255, 255, 255, .85); line-height: 1.6; }
.pdl-finale .pdl-kicker { color: #7EE7F7; }
.pdl-finale h2 { margin: 8px 0 12px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.pdl-finale__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.pdl-finale__friends { display: flex; gap: 6px; }
.pdl-finale__friends figure { margin: 0; text-align: center; font-size: 12px; font-weight: 700; }
.pdl-finale__friends img { height: 130px; width: auto; }
.pdl-finale__shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 4px solid rgba(255, 255, 255, .2); }
.pdl-finale__shot img { display: block; width: 100%; height: auto; }
.pdl-after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.pdl-after a, .pdl-guide { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--pdl-line); color: var(--pdl-ink); text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color .2s ease, transform .2s ease; }
.pdl-after a b, .pdl-guide b { font-family: var(--pdl-font); font-size: 16px; }
.pdl-after a small, .pdl-guide small { color: var(--pdl-muted); font-size: 13.5px; line-height: 1.45; }
.pdl-after a:hover, .pdl-guide:hover { border-color: var(--pdl-accent); transform: translateY(-2px); }
.pdl-after a.is-done b::after, .pdl-guide.is-done b::after { content: " ✓"; color: #16A34A; }

/* ---------- DLC ---------- */
.pdl-dlc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pdl-dlc__card { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--pdl-line); box-shadow: var(--shadow-sm); }
.pdl-dlc__art { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 690; object-fit: cover; }
.pdl-dlc__body { padding: 18px 22px 20px; }
.pdl-dlc__logo { max-width: 280px; height: auto; }
.pdl-dlc__body p { color: var(--pdl-muted); margin: 10px 0; }
.pdl-dlc__body ul { margin: 0; padding-left: 18px; }
.pdl-dlc__body li { margin: 4px 0; }
.pdl-dlc__card--teal { border-top: 6px solid #2BAE9A; }
.pdl-dlc__card--indigo { border-top: 6px solid #3D4CC9; }
.pdl-legends { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.pdl-legends a { display: flex; flex-direction: column; align-items: center; width: 120px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--pdl-line); text-decoration: none; color: var(--pdl-ink); font-weight: 700; font-size: 14px; }
.pdl-legends img { width: 96px; height: 96px; object-fit: contain; }

/* ---------- Étagères de guides ---------- */
.pdl-shelf + .pdl-shelf { margin-top: 30px; }
.pdl-shelf__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 12px; font-size: 21px; font-weight: 800; }
.pdl-shelf__title small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--pdl-muted); }
.pdl-shelf__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* ---------- Starters et versions ---------- */
.pdl-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pdl-starter { padding: 18px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--pdl-line); border-bottom: 6px solid var(--tc); }
.pdl-starter__line { display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-height: 140px; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--tc) 25%, #fff), transparent 70%); }
.pdl-starter__line img { height: auto; }
.pdl-starter__line img:nth-child(1) { width: 26%; } .pdl-starter__line img:nth-child(2) { width: 32%; } .pdl-starter__line img:nth-child(3) { width: 42%; }
.pdl-starter h3 { margin: 10px 0 6px; font-size: 18px; font-weight: 800; }
.pdl-starter p { margin: 8px 0 0; font-size: 14.5px; color: var(--pdl-muted); line-height: 1.5; }
.pdl-versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.pdl-versions__col { padding: 18px 20px; border-radius: var(--r-lg); background: #fff; border: 3px solid var(--pdl-line); transition: opacity .3s ease, border-color .3s ease; }
.pdl-versions__col--ec { border-color: #FFC9B5; } .pdl-versions__col--vi { border-color: #D9C4FF; }
html[data-pdl-version="ecarlate"] .pdl-versions__col--ec, html[data-pdl-version="violet"] .pdl-versions__col--vi { box-shadow: 0 0 0 4px var(--pdl-accent-soft), var(--shadow-md); border-color: var(--pdl-accent); }
.pdl-versions__col h3 { margin: 0 0 6px; }
.pdl-versions__col h3 img { height: 64px; width: auto; }
.pdl-versions__facts { margin: 0 0 10px; padding-left: 18px; font-size: 14.5px; color: var(--pdl-muted); }
.pdl-versions__mons { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
.pdl-versions__mons img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: var(--pdl-paper); transition: transform .15s ease; }
.pdl-versions__mons a:hover img { transform: scale(1.12); }

/* ---------- Région ---------- */
.pdl-region__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.pdl-region__map { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.pdl-region__map img { display: block; width: 100%; height: auto; }
.pdl-region__text h2 { margin: 8px 0 12px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.pdl-region__text p { color: var(--pdl-muted); line-height: 1.65; }
.pdl-region__facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.pdl-region__facts li { padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--pdl-line); }
.pdl-region__facts b { font-family: var(--pdl-font); font-size: 22px; color: var(--pdl-accent-dark); margin-right: 6px; }

/* ---------- Actus ---------- */
.pdl-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pdl-news__item { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--pdl-line); text-decoration: none; color: var(--pdl-ink); }
.pdl-news__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pdl-news__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
.pdl-news__body time { font-size: 12.5px; color: var(--pdl-muted); }
.pdl-news__item:hover b { color: var(--pdl-accent-dark); }

/* ============================================================
   BANDEAU DES GUIDES
   ============================================================ */
.pdl-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 22px; padding: 10px 14px; border-radius: 18px; background: var(--pdl-grad); color: #fff; box-shadow: var(--shadow-sm); }
.pdl-ribbon a { color: #fff; }
.pdl-ribbon__home { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.pdl-ribbon__logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .2); }
.pdl-ribbon__logo img { width: 42px; height: 42px; object-fit: contain; grid-area: 1 / 1; }
html:not([data-pdl-version]) .pdl-ribbon__logo .pdl-v__vi { display: none; }
.pdl-ribbon__home span { display: flex; flex-direction: column; line-height: 1.1; }
.pdl-ribbon__home b { font-size: 17px; }
.pdl-ribbon__home small { font-size: 12px; opacity: .85; }
.pdl-ribbon__where { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.25; opacity: .95; }
.pdl-ribbon__where b { font-size: 14px; }
.pdl-ribbon__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pdl-ribbon__steps a { display: block; border-radius: 50%; }
.pdl-ribbon__steps img { display: block; width: 30px; height: 30px; filter: grayscale(1) brightness(1.3) opacity(.55); transition: filter .2s ease, transform .2s ease; }
.pdl-ribbon__steps a.is-done img, .pdl-ribbon__steps a:hover img { filter: none; }
.pdl-ribbon__steps a.is-current img { filter: none; transform: scale(1.18); }
.pdl-ribbon__steps a.is-current { box-shadow: 0 0 0 2px #fff; }
.pdl-ribbon__steps--dots a { width: 12px; height: 12px; background: rgba(255, 255, 255, .35); }
.pdl-ribbon__steps--dots a.is-done { background: #9BF5B5; }
.pdl-ribbon__steps--dots a.is-current { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.pdl-ribbon__done { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-full); background: rgba(0, 0, 0, .2); font-size: 13px; font-weight: 700; cursor: pointer; }
.pdl-ribbon__done input { width: 16px; height: 16px; accent-color: #16A34A; }
.pdl-ribbon__links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-weight: 700; font-size: 14px; }
.pdl-ribbon__ver { display: inline-flex; margin-left: auto; padding: 3px; border-radius: var(--r-full); background: rgba(0, 0, 0, .2); }
.pdl-ribbon__ver button { padding: 5px 11px; border: 0; border-radius: var(--r-full); background: none; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pdl-ribbon__ver button[aria-pressed="true"] { background: #fff; color: var(--pdl-accent-dark); }

/* ============================================================
   COMPOSANTS DES GUIDES (shortcodes)
   ============================================================ */
.is-paldea .guide-article__title, .is-paldea .article-body h2 { font-family: var(--pdl-font); }
.is-paldea .article-body h2 { position: relative; padding-left: 18px; }
.is-paldea .article-body h2::before { content: ""; position: absolute; left: 0; top: .2em; width: 8px; height: 1em; border-radius: 3px; background: var(--pdl-grad); transform: skewX(-12deg); }

/* Fiche d'identité (Arène, Dominant, repaire) */
.pdl-idcard { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; margin: 22px 0 26px; padding: 18px 20px 18px 12px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, #fff), #fff 60%); border: 2px solid color-mix(in srgb, var(--tc) 45%, #fff); overflow: hidden; }
.pdl-idcard__art { display: flex; align-items: flex-end; justify-content: center; }
.pdl-idcard__art .pdl-char-img { max-height: 250px; width: auto; max-width: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .2)); }
.pdl-idcard__art--mons { position: relative; align-items: center; }
.pdl-idcard__art--mons img { width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.pdl-idcard__art--mons img.is-second { position: absolute; width: 60%; right: -8px; bottom: -6px; }
html:not([data-pdl-version]) .pdl-idcard__art--mons img.pdl-v__vi { position: absolute; width: 60%; right: -8px; bottom: -6px; }
.pdl-idcard__kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pdl-muted); }
.pdl-idcard__title { margin: 2px 0 10px !important; padding: 0 !important; font-size: 28px !important; line-height: 1.1; }
.pdl-idcard__title::before { display: none !important; }
.pdl-idcard__title small { display: block; font-size: 14px; font-weight: 600; color: var(--pdl-muted); font-family: var(--font); margin-top: 2px; }
.pdl-idcard__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.pdl-idcard__facts div { padding: 6px 0; border-top: 1px dashed color-mix(in srgb, var(--tc) 35%, #ddd); }
.pdl-idcard__facts dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pdl-muted); }
.pdl-idcard__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.pdl-idcard__badge { position: absolute; top: 14px; right: 16px; width: 72px; height: 72px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.pdl-idcard__body { padding-right: 70px; }

/* Dresseur + équipe */
.pdl-trainer { margin: 22px 0 28px; border-radius: 22px; background: #fff; border: 2px solid var(--pdl-line); overflow: hidden; }
.pdl-trainer__head { position: relative; display: flex; align-items: flex-end; gap: 14px; padding: 14px 18px 0 10px; background: linear-gradient(120deg, color-mix(in srgb, var(--tc, var(--pdl-accent)) 22%, #fff), #fff 70%); border-bottom: 1px solid var(--pdl-line); }
.pdl-trainer__art { flex: 0 0 auto; width: 96px; display: flex; justify-content: center; }
.pdl-trainer__art .pdl-char-img { max-height: 150px; width: auto; max-width: 100%; }
.pdl-trainer__id { flex: 1; padding-bottom: 12px; min-width: 0; }
.pdl-trainer__role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pdl-muted); }
.pdl-trainer__name { margin: 0 0 6px !important; padding: 0 !important; font-size: 24px !important; }
.pdl-trainer__name::before { display: none !important; }
.pdl-trainer__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0 !important; padding: 0 !important; font-size: 13.5px; }
.pdl-trainer__facts li { margin: 0 !important; }
.pdl-trainer__note { margin: 6px 0 0 !important; font-size: 13.5px; color: var(--pdl-muted); }
.pdl-trainer__badge { position: absolute; top: 12px; right: 14px; width: 56px; height: 56px; }
.pdl-trainer > .pdl-team, .pdl-trainer > .pdl-weak, .pdl-trainer > .pdl-variants { margin-left: 14px; margin-right: 14px; }

.pdl-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.pdl-mon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px 12px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 18%, #fff), #fff 55%); border: 1px solid color-mix(in srgb, var(--c1) 35%, #e6e6ef); text-align: center; }
.pdl-mon--ace { border: 2px solid transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--ct) 22%, #fff), #fff 55%) padding-box, var(--pdl-tera) border-box; }
.pdl-mon__lv { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 8px; background: var(--pdl-ink); color: #fff; font-size: 12px; font-weight: 800; }
.pdl-mon__ace { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 8px; background: var(--ct); color: #fff; font-size: 11px; font-weight: 800; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.pdl-mon__art img { width: 110px; height: 110px; object-fit: contain; margin-top: 10px; }
.pdl-mon__name { margin: 0 !important; padding: 0 !important; font-size: 16px !important; font-family: var(--pdl-font); }
.pdl-mon__name::before { display: none !important; }
.pdl-mon__name a { color: var(--pdl-ink); text-decoration: none; }
.pdl-mon__name small { font-weight: 600; color: var(--pdl-muted); }
.pdl-mon__moves { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; list-style: none; margin: 6px 0 0 !important; padding: 0 !important; }
.pdl-mon__moves li { margin: 0 !important; padding: 2px 8px; border-radius: 8px; background: #F2F1F7; font-size: 12px; font-weight: 600; }
.pdl-mon__meta { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 0 !important; font-size: 12px; color: var(--pdl-muted); line-height: 1.35; }
.pdl-mon__meta b { color: var(--pdl-ink); font-weight: 700; margin-right: 3px; }
.pdl-types { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pdl-types .type-badge { font-size: 10.5px; padding: 3px 8px; }
.type-badge.stellaire { background: var(--pdl-tera); color: var(--pdl-ink); }
.type-badge.is-off { opacity: .85; text-decoration: line-through; text-decoration-thickness: 2px; }

.pdl-weak { margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--pdl-paper); border: 1px solid var(--pdl-line); }
.pdl-weak__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px !important; }
.pdl-weak__label { font-weight: 800; font-size: 14px; margin-right: 4px; }
.pdl-weak__type { display: inline-flex; align-items: center; gap: 4px; }
.pdl-weak__type small { font-weight: 700; font-size: 12px; color: var(--pdl-muted); }
.pdl-weak__note { margin: 4px 0 0 !important; font-size: 12px; color: var(--pdl-muted); }

/* Variantes selon le starter */
.pdl-variants { margin: 10px 0; }
.pdl-variants__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pdl-variants__tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: var(--r-full); border: 2px solid var(--pdl-line); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--pdl-ink); }
.pdl-variants__tabs button img { width: 32px; height: 32px; object-fit: contain; }
.pdl-variants__tabs button[aria-selected="true"] { border-color: var(--pdl-accent); background: var(--pdl-accent-soft); }

/* Sélection de Pokémon */
.pdl-mons { margin: 18px 0 22px; }
.pdl-mons__title { margin: 0 0 8px !important; font-weight: 800; font-family: var(--pdl-font); }
.pdl-mons ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; list-style: none; margin: 0 !important; padding: 0 !important; }
.pdl-mons li { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 !important; padding: 10px 8px 12px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 16%, #fff), #fff 60%); border: 1px solid color-mix(in srgb, var(--c1) 30%, #e6e6ef); text-align: center; }
.pdl-mons li a { display: flex; flex-direction: column; align-items: center; color: var(--pdl-ink); text-decoration: none; }
.pdl-mons li img { width: 88px; height: 88px; object-fit: contain; }
.pdl-mons li b { font-family: var(--pdl-font); font-size: 14.5px; }
.pdl-mons li small { font-size: 12px; color: var(--pdl-muted); line-height: 1.35; }
.pdl-mons--lg ul { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pdl-mons--lg li img { width: 120px; height: 120px; }

/* Évolutions */
.pdl-evo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 22px; padding: 14px; border-radius: 18px; background: var(--pdl-paper); border: 1px solid var(--pdl-line); }
.pdl-evo__mon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 14px; background: #fff; color: var(--pdl-ink); text-decoration: none; min-width: 120px; }
.pdl-evo__mon img { width: 104px; height: 104px; object-fit: contain; }
.pdl-evo__mon b { font-family: var(--pdl-font); }
.pdl-evo__arrow { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; color: var(--pdl-muted); }
.pdl-evo__arrow::after { content: "➜"; font-size: 24px; color: var(--pdl-accent); line-height: 1; }

/* Statistiques */
.pdl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.pdl-stats__card { margin: 0; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--pdl-line); border-top: 5px solid var(--c1); }
.pdl-stats__card > img { display: block; width: 84px; height: 84px; margin: 0 auto; object-fit: contain; }
.pdl-stats__card figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; font-weight: 800; font-family: var(--pdl-font); }
.pdl-stats__card figcaption a { color: var(--pdl-ink); text-decoration: none; }
.pdl-stats__card ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 4px; }
.pdl-stats__card li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 30px; align-items: center; gap: 6px; margin: 0 !important; font-size: 12.5px; }
.pdl-stats__card li i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--c1) var(--v), #ECEBF3 var(--v)); }
.pdl-stats__card li b { text-align: right; }
.pdl-stats__total { margin: 8px 0 0 !important; text-align: right; font-size: 13px; }

/* Captures */
.pdl-shot { margin: 18px 0 22px; }
.pdl-shot img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-md); }
.pdl-shot figcaption { margin-top: 8px; font-size: 13.5px; color: var(--pdl-muted); text-align: center; }
.pdl-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.pdl-gallery .pdl-shot { margin: 0; }

/* Encadrés */
.pdl-box { margin: 20px 0; padding: 14px 18px; border-radius: 16px; border: 1px solid; }
.pdl-box__title { margin: 0 0 6px !important; font-weight: 800; font-family: var(--pdl-font); }
.pdl-box__body > :last-child { margin-bottom: 0 !important; }
.pdl-box__body > :first-child { margin-top: 0 !important; }
.pdl-box--astuce { background: #FFF8E1; border-color: #F6D77A; }
.pdl-box--attention { background: #FFF0EC; border-color: #F5B3A1; }
.pdl-box--info { background: #EEF4FF; border-color: #B9CDF7; }
.pdl-box--retenir { background: #F0FAF3; border-color: #A7DDB7; }
.pdl-box--tera { background: linear-gradient(#fff, #fff) padding-box, var(--pdl-tera) border-box; border: 2px solid transparent; }
.pdl-box--spoiler { background: #F4F2FA; border-color: #D9D3EA; }
.pdl-box--spoiler summary { cursor: pointer; font-weight: 800; font-family: var(--pdl-font); }
.pdl-box--spoiler summary em { font-weight: 500; font-style: normal; color: var(--pdl-muted); font-size: 13px; }
.pdl-box--spoiler .pdl-box__body { margin-top: 10px; }

/* Étapes */
.pdl-steps ol { list-style: none; counter-reset: pdl; margin: 18px 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.pdl-steps li { position: relative; counter-increment: pdl; margin: 0 !important; padding: 12px 14px 12px 56px; border-radius: 14px; background: #fff; border: 1px solid var(--pdl-line); }
.pdl-steps li::before { content: counter(pdl); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--pdl-grad); color: #fff; font-weight: 800; }

/* Bulle de personnage */
.pdl-say { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: end; margin: 22px 0; }
.pdl-say__art { display: flex; justify-content: center; }
.pdl-say__art .pdl-char-img { max-height: 150px; width: auto; max-width: 100%; }
.pdl-say__bubble { position: relative; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: #fff; border: 2px solid var(--pdl-accent); box-shadow: var(--shadow-sm); }
.pdl-say__name { margin: 0 0 4px !important; font-weight: 800; font-family: var(--pdl-font); color: var(--pdl-accent-dark); }
.pdl-say__bubble > :last-child { margin-bottom: 0 !important; }

/* Sensibilités d'un type */
.pdl-weaktable { margin: 16px 0 22px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--pdl-line); }
.pdl-weaktable__def { margin: 0 0 8px !important; }
.pdl-weaktable dl { margin: 0; display: grid; gap: 6px; }
.pdl-weaktable__row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: center; }
.pdl-weaktable dt { font-weight: 800; font-size: 13px; }
.pdl-weaktable dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pdl-weaktable__row--4 dt, .pdl-weaktable__row--2 dt { color: #B42318; }
.pdl-weaktable__row--05 dt, .pdl-weaktable__row--025 dt { color: #1F7A3A; }
.pdl-weaktable__row--0 dt { color: var(--pdl-muted); }

/* Table des types */
.pdl-chart { margin: 18px 0 26px; }
.pdl-chart__help { font-size: 14px; color: var(--pdl-muted); }
.pdl-chart__scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--pdl-line); background: #fff; }
.pdl-chart table { border-collapse: collapse; margin: 0 !important; font-size: 12px; min-width: 640px; width: 100%; }
.pdl-chart th, .pdl-chart td { padding: 0 !important; border: 1px solid #F0EEF6 !important; text-align: center; }
.pdl-chart thead th { position: sticky; top: 0; }
.pdl-chart__corner { font-size: 9.5px; padding: 4px !important; background: #fff; white-space: nowrap; }
.pdl-chart__col span { display: block; padding: 6px 0; background: var(--c); color: #fff; font-weight: 800; font-size: 10.5px; }
.pdl-chart tbody th { background: var(--c); color: #fff; font-weight: 700; padding: 5px 8px !important; text-align: left; white-space: nowrap; font-size: 12px; }
.pdl-chart td { width: 32px; height: 28px; font-weight: 800; }
.pdl-chart td.x2 { background: #C8F2D2; color: #0E6B2B; }
.pdl-chart td.x05 { background: #FBD9D3; color: #9B1C1C; }
.pdl-chart td.x0 { background: #3A3550; color: #fff; }
.pdl-chart td.is-hl, .pdl-chart th.is-hl { outline: 2px solid var(--pdl-accent); outline-offset: -2px; }
.pdl-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 8px; font-size: 13px; }
.pdl-chart__legend span { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; font-weight: 800; }
.pdl-chart__legend .x2 { background: #C8F2D2; color: #0E6B2B; } .pdl-chart__legend .x05 { background: #FBD9D3; color: #9B1C1C; } .pdl-chart__legend .x0 { background: #3A3550; color: #fff; }

/* Ordre conseillé dans un guide */
.article-body .pdl-route { grid-template-columns: minmax(0, 1fr); margin: 18px 0 !important; padding: 0 !important; }
.article-body .pdl-route__step { margin: 0 !important; }

/* Quiz */
.pdl-quiz { margin: 30px 0 10px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, #1C1838, #3B2A6B); color: #fff; }
.pdl-quiz__title { margin: 0 0 10px !important; font-weight: 800; font-family: var(--pdl-font); font-size: 18px; color: var(--pdl-gold); }
.pdl-quiz__list { display: grid; gap: 8px; }
.pdl-q { border-radius: 12px; background: rgba(255, 255, 255, .08); padding: 10px 14px; }
.pdl-q summary { cursor: pointer; font-weight: 700; }
.pdl-q p { margin: 8px 0 0 !important; color: rgba(255, 255, 255, .88); }
.pdl-q[open] { background: rgba(255, 255, 255, .14); }

.pdl-link { font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pdl-cards--people, .pdl-cards--people:has(.pdl-person--star) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdl-titans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdl-shelf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdl-quests { grid-template-columns: minmax(0, 1fr); }
  .pdl-quest { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .pdl-hero { padding: 34px 0 70px; }
  .pdl-hero__inner, .pdl-finale__inner, .pdl-region__inner { grid-template-columns: minmax(0, 1fr); }
  .pdl-hero__visual { min-height: 280px; order: -1; }
  .pdl-hero__legend { width: min(70%, 300px); }
  .pdl-route { grid-template-columns: minmax(0, 1fr); }
  .pdl-dlc, .pdl-versions, .pdl-starters, .pdl-after, .pdl-news { grid-template-columns: minmax(0, 1fr); }
  .pdl-shelf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdl-finale { background: linear-gradient(180deg, #0F2F3A, #18445A 70%, #FBF9F5 70.1%); }
}
@media (max-width: 640px) {
  .pdl-section { padding: 46px 0; }
  .pdl-cards--people, .pdl-cards--people:has(.pdl-person--star) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pdl-titans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdl-person__art { height: 160px; }
  .pdl-quest { grid-template-columns: 80px minmax(0, 1fr); padding-right: 14px; }
  .pdl-quest__char { width: 80px; height: 180px; }
  .pdl-picker__btn { width: calc(50% - 6px); height: 76px; }
  .pdl-route__step { grid-template-columns: 30px 36px minmax(0, 1fr) auto; }
  .pdl-route__step .type-badge { display: none; }
  .pdl-route__step img { width: 36px; height: 36px; }
  .pdl-banner { flex-wrap: wrap; }
  .pdl-banner__chars img { height: 70px; }
  .pdl-banner__text { padding-left: 0; }
  .pdl-shelf__grid { grid-template-columns: minmax(0, 1fr); }
  .pdl-idcard { grid-template-columns: 90px minmax(0, 1fr); padding: 14px 12px 14px 6px; gap: 10px; }
  .pdl-idcard__art .pdl-char-img { max-height: 170px; }
  .pdl-idcard__facts { grid-template-columns: minmax(0, 1fr); }
  .pdl-idcard__badge { width: 48px; height: 48px; top: 10px; right: 10px; }
  .pdl-idcard__body { padding-right: 40px; }
  .pdl-idcard__title { font-size: 22px !important; }
  .pdl-trainer__art { width: 64px; }
  .pdl-trainer__art .pdl-char-img { max-height: 110px; }
  .pdl-trainer__badge { width: 40px; height: 40px; }
  .pdl-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pdl-mon__art img { width: 84px; height: 84px; }
  .pdl-mons ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdl-gallery { grid-template-columns: minmax(0, 1fr); }
  .pdl-say { grid-template-columns: 64px minmax(0, 1fr); }
  .pdl-ribbon__ver { margin-left: 0; }
}
