/* ============================================================
   PF2026 — Pokédex Single (pokemon-detail.html)
   Port complet du <style> inline de la maquette Redesign-2.
   ============================================================ */

body.single-pokedex_entry { background: var(--cream); padding-bottom: 80px; }

/* ---- Type-derived gradient : injecté en data-style sur .hero / .tier-badge ---- */

/* ============================================================ MOBILE NAV TOP */
.m-nav {
    display: none;
    position: sticky; top: 0; z-index: 200;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    align-items: center; gap: 4px;
    padding: 10px 14px;
}
.m-back, .m-action {
    width: 38px; height: 38px; border-radius: var(--r-full);
    background: var(--cream); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--ink); flex-shrink: 0;
}
.m-nav-title {
    font-size: 13px; font-weight: 700; color: var(--ink); flex: 1;
    text-align: center;
}
.m-nav-title small { font-weight: 500; color: var(--ink-light); font-size: 11px; display: block; }
.m-action.fav.active { background: #FFE0E0; color: var(--red); }

/* ============================================================ HERO */
.dex-detail-hero {
    background: var(--poke-grad, linear-gradient(135deg, #E62829 0%, #FF8C00 60%, #FFB347 100%));
    position: relative; overflow: hidden;
    color: white;
}
.dex-detail-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.18) 0%, transparent 50%),
                url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='38' stroke='rgba(255,255,255,.05)' fill='none'/%3E%3Cline x1='2' y1='40' x2='78' y2='40' stroke='rgba(255,255,255,.05)'/%3E%3Ccircle cx='40' cy='40' r='12' stroke='rgba(255,255,255,.08)' fill='none'/%3E%3C/svg%3E");
}
.hero-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 24px var(--gutter) 36px;
    position: relative; z-index: 1;
}
.hero-breadcrumb {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: rgba(255, 255, 255, .7); font-weight: 500;
    margin-bottom: 20px; flex-wrap: wrap;
}
.hero-breadcrumb a { color: rgba(255, 255, 255, .85); }
.hero-breadcrumb a:hover { color: white; }

.hero-top {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px;
    align-items: center;
}
.hero-info-num {
    font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .7);
    letter-spacing: .12em; margin-bottom: 6px;
}
.hero-info h1 {
    font-size: 64px; font-weight: 700; letter-spacing: -.05em;
    line-height: .95; margin-bottom: 4px;
}
.hero-info-jp {
    font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .65);
    margin-bottom: 16px;
}
.hero-types { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-type {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--r-full); font-size: 13px; font-weight: 700;
}
.hero-quick {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    max-width: 480px;
}
.hero-quick-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
    border-radius: var(--r-sm);
}
.hero-quick-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .07em; color: rgba(255, 255, 255, .65); margin-bottom: 2px;
}
.hero-quick-val { font-size: 15px; font-weight: 700; }

.hero-art-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 320px;
}
.hero-art {
    width: 100%; max-width: 380px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25)) drop-shadow(0 0 40px rgba(255, 255, 255, .15));
    transition: transform .3s ease, filter .3s ease;
    z-index: 2;
}
.hero-art.shiny-mode { filter: drop-shadow(0 20px 40px rgba(255, 200, 0, .4)) drop-shadow(0 0 40px rgba(255, 200, 0, .3)); }
.hero-poke-toggle {
    position: absolute; bottom: 0; right: 0; display: flex; gap: 6px; z-index: 3;
}
.toggle-btn {
    padding: 8px 14px; font-size: 12px; font-weight: 700;
    background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-full);
    cursor: pointer; color: white; font-family: var(--font); transition: all .15s;
}
.toggle-btn.active { background: white; color: var(--ink); }
.toggle-btn .star { color: #FFD700; }

.hero-cry {
    position: absolute; bottom: 14px; left: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-full);
    font-size: 12px; font-weight: 700; cursor: pointer; color: white;
    font-family: var(--font); z-index: 3;
}

/* Form pills (Mega, Gmax, Tera, Regional…) */
.hero-forms {
    display: flex; gap: 8px; margin-top: 24px;
    overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: thin;
}
.hero-forms::-webkit-scrollbar { height: 4px; }
.hero-forms::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 2px; }
.form-pill {
    flex-shrink: 0; padding: 8px 16px;
    background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: var(--r-full); font-size: 12px; font-weight: 700;
    cursor: pointer; color: rgba(255, 255, 255, .85); white-space: nowrap;
    transition: all .15s; font-family: var(--font);
}
.form-pill:hover { background: rgba(255, 255, 255, .2); }
.form-pill.active { background: white; color: var(--ink); border-color: white; }
.form-pill .icon { margin-right: 4px; }

/* ============================================================ SECTION NAV */
.sec-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 246, 242, .95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
@media (max-width: 768px) { .sec-nav { top: 58px; } }
.sec-nav-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; gap: 6px; overflow-x: auto;
    scrollbar-width: none;
}
.sec-nav-inner::-webkit-scrollbar { display: none; }
.sec-link {
    flex-shrink: 0;
    padding: 7px 14px; font-size: 12.5px; font-weight: 600;
    border-radius: var(--r-full); color: var(--ink-mid);
    cursor: pointer; transition: all .15s; white-space: nowrap;
    border: 1.5px solid transparent;
    background: transparent; font-family: var(--font);
    text-decoration: none;
}
.sec-link:hover { background: white; }
.sec-link.active { background: var(--ink); color: white; }

/* ============================================================ SECTIONS */
.dex-detail-sec {
    max-width: var(--max-w); margin: 0 auto;
    padding: 28px var(--gutter);
    scroll-margin-top: 130px;
}
.dex-sec-title {
    font-size: 22px; font-weight: 700; letter-spacing: -.03em;
    color: var(--ink); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.sec-title-icon {
    width: 28px; height: 28px; border-radius: var(--r-xs);
    background: var(--cream); display: flex; align-items: center;
    justify-content: center; font-size: 14px;
}
.dex-sec-sub { font-size: 13px; color: var(--ink-light); margin-top: -10px; margin-bottom: 16px; }

/* ============================================================ LAYOUT 2-COL */
@media (min-width: 1024px) {
    .layout-grid {
        max-width: var(--max-w); margin: 0 auto;
        padding: 0 var(--gutter);
        display: grid; grid-template-columns: 280px 1fr;
        gap: 28px; align-items: start;
    }
    .dex-detail-sec { padding-left: 0; padding-right: 0; max-width: none; }
    .desktop-side { position: sticky; top: 86px; padding-top: 28px; }
}
.desktop-side { display: none; }
@media (min-width: 1024px) { .desktop-side { display: block; } }

.side-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 20px; margin-bottom: 14px;
}
.side-card h4 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 12px;
}
.side-meta { display: flex; flex-direction: column; gap: 10px; }
.side-row { display: flex; justify-content: space-between; align-items: center; }
.side-label { font-size: 12px; color: var(--ink-light); font-weight: 500; }
.side-val { font-size: 13px; font-weight: 700; color: var(--ink); }

/* ============================================================ DATA CARDS */
.data-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.data-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 16px;
}
.data-card-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 4px;
}
.data-card-val { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.data-card-sub { font-size: 11px; color: var(--ink-light); margin-top: 2px; }

/* ============================================================ STATS */
.stats-block {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 20px;
}
.dex-detail-sec .stat-row {
    display: grid; grid-template-columns: 90px 40px 1fr 40px;
    align-items: center; gap: 10px; margin-bottom: 10px;
}
.dex-detail-sec .stat-row:last-child { margin-bottom: 0; }
.stat-name { font-size: 12px; font-weight: 600; color: var(--ink-light); }
.stat-num { font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; }
.stat-bar-bg {
    height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden;
}
.stat-fill {
    height: 100%; width: 0; border-radius: 4px;
    transition: width .8s cubic-bezier(.16, 1, .3, 1);
}
.stat-max { font-size: 11px; color: var(--ink-faint); text-align: right; }
.stats-total {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
}
.stats-total-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.stats-total-val { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }

/* ============================================================ TYPE EFFICACY */
.efficacy-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
}
.eff-cell {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 8px 6px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center;
}
.eff-type-badge {
    padding: 4px 12px; border-radius: var(--r-full);
    font-size: 11px; font-weight: 700; color: white;
    white-space: nowrap;
}
.eff-type-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: white;
}
.eff-mult {
    font-size: 12px; font-weight: 700;
    padding: 2px 6px; border-radius: var(--r-full);
}
.eff-4x   { background: #5a0000; color: white; }
.eff-2x   { background: #ff4444; color: white; }
.eff-1x   { background: var(--border); color: var(--ink-mid); }
.eff-05x  { background: #2BAF6A; color: white; }
.eff-025x { background: #1B7045; color: white; }
.eff-0x   { background: var(--ink); color: white; }

.eff-section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--ink-faint); margin: 16px 0 10px;
}
.eff-section-title:first-child { margin-top: 0; }

/* ============================================================ ABILITIES */
.ability-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 16px; margin-bottom: 10px;
}
.ability-card:last-child { margin-bottom: 0; }
.ability-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px; gap: 10px;
}
.ability-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.ability-tag {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; padding: 3px 8px; border-radius: var(--r-full);
    white-space: nowrap; flex-shrink: 0;
}
.ability-tag.normal    { background: var(--cream); color: var(--ink-light); }
.ability-tag.hidden    { background: #EDE9FE; color: #6D28D9; }
.ability-tag.signature { background: var(--yellow-bg); color: #92400E; }
.ability-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.55; }

/* ============================================================ EVOLUTION CHAIN */
.evo-chain {
    display: flex; align-items: center; gap: 10px;
    overflow-x: auto; padding-bottom: 8px;
    scrollbar-width: thin;
}
.evo-step {
    flex-shrink: 0; background: var(--white);
    border: 1.5px solid var(--border); border-radius: var(--r-lg);
    padding: 12px; min-width: 130px; text-align: center;
    transition: all .2s; cursor: pointer; color: inherit; text-decoration: none;
    display: block;
}
.evo-step:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.evo-step.current {
    border-color: var(--poke-c1, var(--type-feu));
    background: linear-gradient(180deg, rgba(230, 40, 41, .06), transparent);
}
.evo-step img { width: 80px; height: 80px; margin: 0 auto 4px; object-fit: contain; display: block; }
.evo-num { font-size: 10px; font-weight: 700; color: var(--ink-faint); }
.evo-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.evo-types { display: flex; justify-content: center; gap: 3px; margin-top: 4px; }
.evo-arrow {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 0 4px;
}
.evo-method {
    font-size: 10px; font-weight: 700;
    color: var(--ink-light); white-space: nowrap;
    background: var(--cream); padding: 3px 8px; border-radius: var(--r-full);
}
.evo-arrow-line { font-size: 16px; color: var(--ink-faint); }

/* ============================================================ LEARNSET */
.learn-tabs {
    display: flex; gap: 4px; overflow-x: auto;
    margin-bottom: 14px; scrollbar-width: none;
}
.learn-tabs::-webkit-scrollbar { display: none; }
.learn-tab {
    flex-shrink: 0; padding: 7px 14px;
    font-family: var(--font); font-size: 12.5px; font-weight: 600;
    border-radius: var(--r-full); background: transparent;
    border: 1.5px solid var(--border); cursor: pointer;
    color: var(--ink-mid); transition: all .15s; white-space: nowrap;
}
.learn-tab.active { background: var(--ink); color: white; border-color: var(--ink); }

.move-table {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden;
}
.move-row {
    display: grid;
    grid-template-columns: 42px 1fr 80px 70px 50px 50px;
    gap: 10px; padding: 11px 14px; align-items: center;
    border-bottom: 1px solid var(--border-light);
    font-size: 12.5px;
}
.move-row:last-child { border-bottom: none; }
.move-row:not(.head):hover { background: var(--cream); }
.move-row.head {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--ink-faint); background: var(--cream);
}
.move-lvl { font-weight: 700; color: var(--ink); }
.move-name { font-weight: 600; color: var(--ink); }
.move-name small { display: block; color: var(--ink-light); font-weight: 400; font-size: 10.5px; }
.move-cat {
    display: inline-flex; padding: 2px 7px; font-size: 9.5px;
    font-weight: 700; border-radius: var(--r-full); text-transform: uppercase;
    letter-spacing: .05em;
}
.cat-phys { background: #F87171; color: white; }
.cat-spec { background: #60A5FA; color: white; }
.cat-stat { background: #FCD34D; color: var(--ink); }
.move-pow, .move-acc { color: var(--ink-mid); font-weight: 600; text-align: right; }
.learn-empty { padding: 24px; background: var(--cream); border-radius: var(--r-md); text-align: center; color: var(--ink-light); font-size: 13px; }

@media (max-width: 768px) {
    .move-row {
        grid-template-columns: 36px 1fr 60px 50px;
        font-size: 12px;
    }
    .move-col-pp, .move-col-acc { display: none; }
}

/* ============================================================ BREEDING */
.gender-bar {
    display: flex; height: 10px; border-radius: var(--r-full); overflow: hidden;
    background: var(--border-light); margin-top: 8px;
}
.gender-male { background: #3B82F6; }
.gender-female { background: #EC4899; }
.gender-legend {
    display: flex; justify-content: space-between; margin-top: 6px;
    font-size: 11px; color: var(--ink-light);
}

/* ============================================================ LOCATIONS */
.location-game-row {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); margin-bottom: 8px; overflow: hidden;
}
.location-game-head {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    cursor: pointer; transition: background .15s;
}
.location-game-head:hover { background: var(--cream); }
.location-game-icon {
    width: 32px; height: 32px; border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.location-game-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink); }
.location-game-name small { display: block; color: var(--ink-light); font-weight: 500; font-size: 11px; }
.location-game-status { font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.location-game-status.available { color: var(--green); }
.location-game-status.locked { color: var(--red); }
.location-game-body {
    padding: 0 14px 12px;
    display: none; flex-direction: column; gap: 6px;
    border-top: 1px solid var(--border-light);
}
.location-game-row.open .location-game-body { display: flex; padding-top: 10px; }
.location-game-row.open .location-game-arrow { transform: rotate(180deg); }
.location-game-arrow { font-size: 10px; color: var(--ink-faint); transition: transform .2s; }
.location-entry {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 8px; background: var(--cream); border-radius: var(--r-xs);
    font-size: 12px; flex-wrap: wrap;
}
.location-entry-place { font-weight: 600; color: var(--ink); flex: 1; min-width: 100px; }
.location-entry-method { color: var(--ink-light); font-size: 11px; }
.location-entry-sub { font-size: 10px; color: var(--ink-faint); font-style: italic; }
.location-entry-level { font-weight: 700; color: var(--ink); font-size: 11px; padding: 2px 7px; background: var(--white); border-radius: var(--r-full); }
.location-entry-rate { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.location-entry-cond { font-size: 10px; color: var(--ink-light); padding: 1px 6px; background: var(--white); border-radius: var(--r-xs); }
.badge-warn { font-size: 10px; padding: 2px 6px; background: #FFD8D8; color: #B81616; border-radius: var(--r-xs); font-weight: 700; }
.location-game-status.event { color: var(--blue); }
.loc-generation-block { margin-bottom: 18px; }
.loc-generation-title { font-size: 13px; font-weight: 700; color: var(--ink-light); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border-light); padding-bottom: 5px; }
.location-method-block { margin-bottom: 8px; padding: 8px; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--r-xs); }
.location-method-label { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 6px; display: flex; gap: 6px; }
.location-method-label small { color: var(--ink-faint); font-weight: 500; }
.dex-native-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; align-items: center; }
.dex-native-label { font-size: 12px; font-weight: 700; color: var(--ink-light); }

/* ============================================================ TRANSFER PATHS */
.transfer-paths { display: flex; flex-direction: column; gap: 10px; }
.transfer-path { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); flex-wrap: wrap; }
.transfer-from { font-size: 13px; min-width: 140px; }
.transfer-from strong { color: var(--ink); font-weight: 700; }
.transfer-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.transfer-step { display: flex; align-items: center; gap: 4px; }
.transfer-arrow { color: var(--ink-faint); font-weight: 700; }
.transfer-to { font-size: 12px; font-weight: 600; color: var(--ink); padding: 3px 8px; background: var(--cream); border-radius: var(--r-xs); }
.transfer-method { display: block; font-size: 10px; color: var(--ink-faint); margin-left: 4px; }

/* ============================================================ EVENTS */
.event-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; }
.event-card--active { border-color: var(--green); background: #F0FFF4; }
.event-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.event-card-head strong { font-size: 13.5px; color: var(--ink); flex: 1; }
.badge-active { font-size: 10px; padding: 2px 8px; background: var(--green); color: white; border-radius: var(--r-full); font-weight: 700; }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--ink-light); margin-bottom: 6px; }
.event-card-notes { font-size: 12px; color: var(--ink-mid); font-style: italic; line-height: 1.5; }
.events-past-list { display: flex; flex-direction: column; gap: 6px; }
.event-card--past { opacity: 0.85; }

/* ============================================================ ENTRIES */
.entry-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 8px;
}
.entry-game {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--poke-c1, var(--type-feu)); margin-bottom: 6px;
}
.entry-text { font-size: 13.5px; color: var(--ink-mid); line-height: 1.6; font-style: italic; }
.entry-langs { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.entry-lang-pill {
    padding: 3px 9px; font-size: 10px; font-weight: 700;
    background: var(--cream); border-radius: var(--r-full);
    color: var(--ink-light); cursor: pointer; transition: all .15s;
    border: none; font-family: var(--font);
}
.entry-lang-pill.active { background: var(--ink); color: white; }
.entry-lang-pill[disabled] { opacity: .35; cursor: not-allowed; }

/* ============================================================ MULTILANG */
.multilang-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.lang-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 10px 12px;
}
.lang-code {
    font-size: 9.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--ink-faint);
}
.lang-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* ============================================================ TCG */
.tcg-grid-detail {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.tcg-card-detail {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden; cursor: pointer;
    transition: all .2s cubic-bezier(.16, 1, .3, 1); text-decoration: none; color: inherit;
}
.tcg-card-detail:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcg-card-detail-art {
    aspect-ratio: 2.5/3.5; background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.tcg-card-detail-art-inner {
    position: relative; width: 86%; height: 90%;
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    background: linear-gradient(135deg, #E62829 0%, #FF8C00 100%);
    display: flex; flex-direction: column;
    overflow: hidden; padding: 8px;
}
.tcg-card-detail-art-inner img { height: 100%; max-width: 100%; object-fit: contain; }
.tcg-card-meta { padding: 8px 10px; }
.tcg-card-detail-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.tcg-card-detail-set { font-size: 10.5px; color: var(--ink-light); margin-top: 1px; }
.tcg-card-detail-rarity {
    margin-top: 6px; display: flex; align-items: center; justify-content: space-between;
    font-size: 10px;
}
.rarity-tag {
    padding: 2px 7px; border-radius: var(--r-full); font-weight: 700;
    font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em;
}
.rarity-c   { background: var(--border); color: var(--ink-mid); }
.rarity-u   { background: #D1FAE5; color: #065F46; }
.rarity-r   { background: #FEF3C7; color: #92400E; }
.rarity-rr  { background: #EDE9FE; color: #6D28D9; }
.rarity-sar { background: linear-gradient(135deg, #FCD34D, #F472B6); color: white; }

/* TCG : onglets par forme (Méga / Galar / Alola / …) */
.tcg-pokedex-form-tabs {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 12px 0 16px;
}
.tcg-form-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: var(--cream);
    border: 1px solid var(--border); border-radius: var(--r-full);
    font-size: 12px; font-weight: 600; color: var(--ink-mid);
    cursor: pointer; transition: all .15s ease;
}
.tcg-form-tab:hover { background: var(--white); border-color: var(--ink-faint); }
.tcg-form-tab.is-active {
    background: var(--ink); color: var(--white);
    border-color: var(--ink);
}
.tcg-form-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; padding: 0 5px; height: 18px;
    background: rgba(0,0,0,.08); border-radius: var(--r-full);
    font-size: 10px; font-weight: 700;
}
.tcg-form-tab.is-active .tcg-form-tab-count {
    background: rgba(255,255,255,.18); color: white;
}
.tcg-form-panel[hidden] { display: none; }
.tcg-evo-chain h3.dex-sub-title {
    font-size: 18px; font-weight: 700; color: var(--ink);
    margin: 24px 0 12px;
}

/* ============================================================ COMPETITIVE */
.tier-banner {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-radius: var(--r-lg); padding: 20px; color: white;
    display: flex; align-items: center; gap: 20px;
}
.tier-badge {
    width: 64px; height: 64px; border-radius: var(--r-md);
    background: var(--poke-grad, linear-gradient(135deg, #E62829, #FF8C00));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; letter-spacing: -.04em;
    flex-shrink: 0;
}
.tier-info { flex: 1; }
.tier-info-tier { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.tier-info-name { font-size: 17px; font-weight: 700; margin-top: 2px; }
.tier-info-stat { font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.tier-usage-bar {
    width: 100%; height: 6px; background: rgba(255, 255, 255, .1); border-radius: 3px; margin-top: 8px;
}
.tier-usage-fill { height: 100%; background: var(--yellow); border-radius: 3px; }

.set-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 16px; margin-bottom: 10px;
}
.set-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.set-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.set-role {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; padding: 3px 8px; background: var(--blue-bg); color: var(--blue);
    border-radius: var(--r-full); flex-shrink: 0;
}
.set-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    font-size: 12px;
}
@media (max-width: 500px) { .set-grid { grid-template-columns: 1fr; } }
.set-item {
    display: flex; justify-content: space-between; padding: 6px 10px;
    background: var(--cream); border-radius: var(--r-xs);
}
.set-item-k { color: var(--ink-light); font-weight: 500; }
.set-item-v { color: var(--ink); font-weight: 700; }

/* ============================================================ TRIVIA */
.trivia-list { display: flex; flex-direction: column; gap: 10px; }
.trivia-item {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 14px 16px;
    display: flex; gap: 12px; align-items: flex-start;
}
.trivia-icon {
    width: 32px; height: 32px; border-radius: var(--r-xs);
    background: var(--cream); display: flex; align-items: center;
    justify-content: center; font-size: 14px; flex-shrink: 0;
}
.trivia-text { font-size: 13.5px; color: var(--ink-mid); line-height: 1.55; }
.trivia-text strong { color: var(--ink); font-weight: 700; }

/* ============================================================ MEDIA */
.media-grid {
    display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.media-tile {
    aspect-ratio: 1/1; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    padding: 12px; cursor: pointer; transition: all .2s; position: relative;
}
.media-tile:hover { transform: scale(1.05); border-color: var(--ink); }
.media-tile img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; }
.media-tile.smooth img { image-rendering: auto; }

/* ============================================================ MOBILE TABBAR */
.mobile-tabbar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
}
.tab-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 6px; min-width: 56px; text-decoration: none;
    color: var(--ink-faint); transition: color .15s;
}
.tab-item.active { color: var(--ink); }
.tab-icon { font-size: 20px; }
.tab-label { font-size: 9.5px; font-weight: 600; letter-spacing: .03em; }
.tab-fab {
    width: 48px; height: 48px; border-radius: var(--r-full);
    background: var(--poke-grad, linear-gradient(135deg, #E62829, #FF8C00));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 4px 14px rgba(230, 40, 41, .4);
    margin-top: -16px;
}

/* ============================================================ FOOTER CTA */
.dex-related {
    background: linear-gradient(135deg, #1a1040 0%, #2d1b69 100%);
    border-radius: var(--r-lg); padding: 24px; color: white;
    display: flex; align-items: center; gap: 18px;
    margin-top: 32px; flex-wrap: wrap;
}
.dex-related-text { flex: 1; min-width: 200px; }
.dex-related-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.dex-related-text p { font-size: 12.5px; color: rgba(255, 255, 255, .6); line-height: 1.5; }

/* ============================================================ RESPONSIVE */
@media (max-width: 768px) {
    .nav { display: none; }
    .m-nav { display: flex; }
    .mobile-tabbar { display: flex; }
    .hero-top { grid-template-columns: 1fr; gap: 12px; }
    .hero-info h1 { font-size: 42px; }
    .hero-art-wrap { min-height: 260px; }
    .hero-art { max-width: 280px; }
    .hero-quick { grid-template-columns: repeat(2, 1fr); }
    .dex-sec-title { font-size: 18px; }
}
@media (min-width: 769px) {
    .m-nav { display: none; }
    .mobile-tabbar { display: none; }
}
