:root {
    --neon:     #9b4dff;
    --neon-dark:#7a3acc;
    --neon-deep:#2d0060;
    --neon-bg:  #f8f5ff;
    --neon-rgb: 155,77,255;
}

/* === profil.css === */

.row {
    display: flex;
    gap: 20px;
    margin: 0 0 20px 0;
    width: 100%;
}

.neon-card {
    border: 2px solid var(--neon);
    border-radius: 15px;
    box-shadow: 0 0 15px var(--neon), 0 0 30px rgba(var(--neon-rgb),0.3), inset 0 0 10px rgba(var(--neon-rgb),0.1);
    background: white;
    padding: 15px;
    transition: all 0.3s ease;
}

.neon-card:hover {
    box-shadow: 0 0 20px var(--neon), 0 0 40px rgba(var(--neon-rgb),0.5), inset 0 0 15px rgba(var(--neon-rgb),0.2);
}

.info-dresseur {
    flex: 2;
    min-height: 180px;
}

.info-clan {
    flex: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.info-table th {
    color: var(--neon);
    font-size: 14px;
    padding: 5px;
    border-bottom: 1px solid var(--neon);
}
.info-table td {
    padding: 8px 5px;
    text-align: center;
    font-size: 14px;
}
.info-table .label {
    color: #666;
    font-size: 12px;
}
.info-table .value {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

/* Pied du tableau Info Dresseur : bouton classement intégré au tableau */
.info-table .profil-table-footer-classement {
    padding: 12px 8px 10px;
    text-align: center;
    vertical-align: middle;
    border-top: 1px solid rgba(155, 77, 255, 0.28);
    background: rgba(248, 245, 255, 0.75);
}
.info-table .profil-arene-rang {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 2px solid rgba(var(--neon-rgb), 0.45);
    border-radius: 8px;
    background: #fafafa;
    color: var(--neon, #9b4dff);
    font-family: inherit;
}

.section-title {
    background: #000;
    color: white;
    padding: 10px 15px;
    margin: 0;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--neon);
    border-bottom: none;
    box-shadow: 0 0 10px var(--neon);
}

/* ===== Barre de tri ===== */
.tri-bar {
    background: #f8f9fa;
    padding: 10px 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 2px solid var(--neon);
    border-top: none;
    border-bottom: none;
    box-shadow: 0 0 10px rgba(var(--neon-rgb),0.3);
}
.tri-bar span {
    color: #495057;
    font-weight: 500;
    font-size: 13px;
}
.tri-btn {
    padding: 5px 12px;
    border: 2px solid var(--neon);
    background: transparent;
    color: var(--neon);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(var(--neon-rgb),0.3);
}
.tri-btn:hover {
    background: var(--neon);
    color: white;
    box-shadow: 0 0 15px var(--neon);
    transform: translateY(-2px);
}
.tri-btn.active {
    background: var(--neon);
    color: white;
    box-shadow: 0 0 15px var(--neon);
}

/* ===== Grille des Pokémon ===== */
.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid var(--neon);
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 0 15px var(--neon), 0 0 30px rgba(var(--neon-rgb),0.3);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.pokemon-card {
    text-align: center;
    padding: 8px 5px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Profil : carte = cadre + sprite + aura (shiny/baron) ; nom / badges / niveau uniquement dans le tooltip */
.pokemon-card-sprite-only {
    justify-content: center;
    min-height: 96px;
    padding: 10px 6px;
}
.pokemon-card-sprite-only .pokemon-sprite-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}
.pokemon-card-sprite-only .pokemon-sprite {
    margin-bottom: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
}
.pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--forme-alt {
    transform: scale(1.42);
    transform-origin: center bottom;
}
/* Zoom global forme-alt = moyenne ; certains fichiers ont beaucoup plus (ou moins) de transparence autour du perso. */
.pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--lumiere {
    transform: none;
    transform-origin: center bottom;
}
.pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--obscure {
    transform: scale(var(--pkm-sprite-scale, 1.5));
    transform-origin: center bottom;
}
.pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--404[data-sprite-scale] {
    transform: translateY(var(--pkm-sprite-offset-y, 0)) scale(var(--pkm-sprite-scale, 1));
    transform-origin: center bottom;
}
.pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--teracristal {
    transform: scale(var(--pkm-sprite-scale, 1));
    transform-origin: center bottom;
}

/* Profil : blocs équipe / stockage bord à bord dans l'écran vert (+ cartes plus larges) */
.profil-pokedex-screen > .profil-pdex-section-head,
.profil-pokedex-screen > .profil-pdex-tri-bar,
.profil-pokedex-screen > .profil-pdex-grid,
.profil-pokedex-screen > #equipe-container.pokemon-grid,
.profil-pokedex-screen > #stockage-container.pokemon-grid {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    max-width: calc(100% + 24px);
    box-sizing: border-box;
}

/* Profil : Son Équipe + Ses Pokémon — sprites 100×100 ; 6 colonnes */
#equipe-container.pokemon-grid,
#stockage-container.pokemon-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 4px;
    width: 100%;
    box-sizing: border-box;
}
#equipe-container .pokemon-card-sprite-only,
#stockage-container .pokemon-card-sprite-only,
#equipe-container .empty-slot,
#stockage-container .empty-slot {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
#equipe-container .pokemon-card-sprite-only,
#stockage-container .pokemon-card-sprite-only {
    min-height: 124px;
    padding: 8px 2px;
    overflow: visible;
}
#equipe-container .pokemon-card-sprite-only .pokemon-sprite-wrap,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite-wrap {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}
#equipe-container .pokemon-card-sprite-only .pokemon-sprite,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    flex-shrink: 0;
    transform: translateY(var(--pkm-sprite-offset-y, 0)) scale(var(--pkm-sprite-scale, 1));
    transform-origin: center bottom;
}
#equipe-container .pokemon-card-sprite-only .pokemon-sprite[data-sprite-scale],
#stockage-container .pokemon-card-sprite-only .pokemon-sprite[data-sprite-scale],
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--404[data-sprite-scale],
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--404[data-sprite-scale],
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--lumiere,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--lumiere,
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--obscure,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--obscure,
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--forme-alt,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--forme-alt,
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--teracristal,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--teracristal {
    transform: translateY(var(--pkm-sprite-offset-y, 0)) scale(var(--pkm-sprite-scale, 1));
    transform-origin: center bottom;
}
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--forme-alt,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--forme-alt {
    transform: translateY(var(--pkm-sprite-offset-y, 0)) scale(1.42);
}
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--forme-alt[data-sprite-scale],
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--forme-alt[data-sprite-scale] {
    transform: translateY(var(--pkm-sprite-offset-y, 0)) scale(var(--pkm-sprite-scale, 1));
}
#equipe-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--obscure,
#stockage-container .pokemon-card-sprite-only .pokemon-sprite.pokemon-sprite--obscure {
    transform: translateY(var(--pkm-sprite-offset-y, 0)) scale(var(--pkm-sprite-scale, 1.5));
}
#equipe-container .empty-slot,
#stockage-container .empty-slot {
    min-height: 128px;
}

@media (max-width: 900px) {
    #equipe-container.pokemon-grid,
    #stockage-container.pokemon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.profil-fav-star {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #f1c40f;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.35);
    pointer-events: none;
}
.pokemon-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon);
    box-shadow: 0 0 15px var(--neon);
    z-index: 10;
}

/* ===== Tooltip personnalisé ===== */
.custom-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid var(--neon);
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    box-shadow: 0 0 20px var(--neon), 0 0 40px rgba(var(--neon-rgb),0.3);
    z-index: 1000;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: left;
    line-height: 1.8;
    pointer-events: none;
    min-width: 200px;
    display: none;
}
.pokemon-card:hover .custom-tooltip {
    display: block;
}
.tooltip-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 3px 0;
}
/* Toutes les icônes (shiny, baron, leg, méga, gigamax) sur une seule ligne */
.custom-tooltip .tooltip-badges-inline {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin: 4px 0 6px;
}
.custom-tooltip .tooltip-badges-inline .tooltip-icon {
    flex-shrink: 0;
}

/* Tailles d'icônes */
.custom-tooltip .tooltip-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: contain !important;
}
.custom-tooltip .tooltip-icon[src*="male.png"],
.custom-tooltip .tooltip-icon[src*="female.png"] {
    width: 8px !important;
    height: 14px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    min-height: 14px !important;
    max-height: 14px !important;
}
.badges-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 20px;
    max-width: 100%;
    margin: 4px 0 2px;
    box-sizing: border-box;
    overflow: hidden;
}
.badges-container img {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: contain !important;
    flex-shrink: 0;
}
.badges-container img.badge-gigamax {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
}
.custom-tooltip .tooltip-icon.badge-gigamax-tt {
    width: 22px !important;
    height: 22px !important;
}
.pokemon-card .gender-icon {
    width: 8px !important;
    height: 14px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    object-fit: contain !important;
}
.pokemon-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 3px;
}
.pokemon-card .nom {
    margin: 0 0 6px 0;
}
/* Surnom (ou espèce) seul ; nom complet dans title + tooltip — police réduite si long */
.profil-nom-bloc {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.profil-nom-ligne-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
}
.profil-nom-l0 {
    min-width: 0;
    flex: 1 1 auto;
    font-size: clamp(8px, 2.6vw, 11px);
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.profil-nom-ligne-top .gender-icon {
    flex-shrink: 0;
}
.pokemon-card .niveau {
    font-size: 10px;
    color: #666;
}

.empty-slot {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ccc;
    color: #999;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    width: 100%;
    box-sizing: border-box;
}

.clan-link {
    color: var(--neon);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
    padding: 5px 15px;
    border: 2px solid var(--neon);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.clan-link:hover {
    background: var(--neon);
    color: white;
    box-shadow: 0 0 15px var(--neon);
}

/* =============================================================================
   PAGE PROFIL — thème Pokédex (coque rouge, écran LCD, voyants)
   Structure conservée : tri, 6 colonnes, Son Équipe + Ses Pokémon
   ============================================================================= */
.profil-pokedex-page {
    --pdex-red: #c62828;
    --pdex-red-dark: #8e0000;
    --pdex-red-light: #ef5350;
    --pdex-bezel: #1a1a1a;
    --pdex-screen: #c8d8a8;
    --pdex-screen-dark: #9eb87a;
    --pdex-screen-inner: #e8f0d8;
    --pdex-ink: #1b2e1b;
    --pdex-slot: #f4f9ec;
    --pdex-slot-border: #6b8f4e;
    padding: 28px 14px 44px;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(239, 83, 80, 0.35), transparent 52%),
        linear-gradient(180deg, var(--pdex-red-light) 0%, var(--pdex-red) 38%, var(--pdex-red-dark) 100%);
}

.profil-pokedex-device {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px 20px;
    overflow: visible;
    border-radius: 28px 28px 22px 22px;
    background:
        linear-gradient(145deg, var(--pdex-red-light) 0%, var(--pdex-red) 35%, var(--pdex-red-dark) 100%);
    box-shadow:
        0 12px 0 var(--pdex-red-dark),
        0 22px 48px rgba(0, 0, 0, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #5d0000;
    position: relative;
}

.profil-pokedex-device::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 42%;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(180deg, #4a4a4a, #222);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.profil-pokedex-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px 14px;
    flex-wrap: wrap;
}

.profil-pokedex-lights {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profil-pdex-light--main {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #8ecfff 0%, #3d7ab8 38%, #1a4a7a 70%, #0d2848 100%);
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 -6px 14px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(100, 180, 255, 0.55),
        0 0 4px rgba(255, 255, 255, 0.4);
}

.profil-pdex-light--sm {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}

.profil-pdex-light--red {
    background: radial-gradient(circle at 35% 30%, #ff8a80, #d32f2f 55%, #7f0000);
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.5);
}

.profil-pdex-light--yellow {
    background: radial-gradient(circle at 35% 30%, #fff59d, #fbc02d 55%, #8d6e00);
    box-shadow: 0 0 8px rgba(255, 220, 80, 0.45);
}

.profil-pdex-light--green {
    background: radial-gradient(circle at 35% 30%, #a5d6a7, #43a047 55%, #1b5e20);
    box-shadow: 0 0 8px rgba(100, 220, 120, 0.45);
}

.profil-pokedex-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-family: 'Courier New', Consolas, monospace;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.08em;
}

.profil-pokedex-brand-mark {
    font-size: 10px;
    opacity: 0.75;
}

.profil-pokedex-brand-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.profil-pokedex-brand-id {
    font-size: 10px;
    opacity: 0.8;
}

.profil-pokedex-screen {
    margin: 0 6px 4px;
    padding: 14px 12px 16px;
    border-radius: 14px;
    background: var(--pdex-screen);
    border: 4px solid var(--pdex-bezel);
    box-shadow:
        inset 0 0 0 2px var(--pdex-screen-dark),
        inset 0 4px 24px rgba(0, 0, 0, 0.12),
        inset 0 -2px 0 rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: visible;
}

/* scanlines légères écran Game Boy / Pokédex */
.profil-pokedex-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    border-radius: 10px;
    z-index: 0;
}

.profil-pokedex-screen > * {
    position: relative;
    z-index: 1;
}

.profil-pokedex-page .profil-pokedex-row {
    margin-bottom: 18px;
}

.profil-pokedex-page .neon-card {
    border: 3px solid var(--pdex-slot-border);
    border-radius: 12px;
    background: var(--pdex-screen-inner);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.06),
        0 2px 0 rgba(255, 255, 255, 0.5);
}

.profil-pokedex-page .neon-card:hover {
    border-color: var(--pdex-red);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.06),
        0 0 0 2px rgba(198, 40, 40, 0.25);
}

.profil-pokedex-page .neon-card h2 {
    color: var(--pdex-ink) !important;
    font-family: 'Courier New', Consolas, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 15px !important;
}

.profil-pokedex-page .info-table th {
    color: var(--pdex-red-dark);
    border-bottom-color: var(--pdex-slot-border);
    font-family: 'Courier New', Consolas, monospace;
    text-transform: uppercase;
    font-size: 11px;
}

.profil-pokedex-page .info-table td {
    color: var(--pdex-ink);
}

.profil-pokedex-page .info-table .label {
    color: #4a6b3a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.profil-pokedex-page .info-table .value {
    color: var(--pdex-ink);
    font-weight: 800;
}

.profil-pokedex-page .profil-table-footer-classement {
    background: rgba(158, 184, 122, 0.35);
    border-top-color: var(--pdex-slot-border);
}

.profil-pokedex-page .profil-arene-rang {
    border-color: var(--pdex-red);
    color: var(--pdex-red-dark);
    background: var(--pdex-slot);
    font-family: 'Courier New', Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profil-pokedex-page #clan-btn-afficher-membres {
    border-color: var(--pdex-slot-border) !important;
    color: var(--pdex-red-dark) !important;
    background: var(--pdex-slot) !important;
}

.profil-pokedex-page .section-title,
.profil-pokedex-page .profil-pdex-section-head {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #f5f5dc;
    border: 3px solid var(--pdex-bezel);
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
    text-shadow: 0 1px 0 #000;
    font-family: 'Courier New', Consolas, monospace;
    letter-spacing: 0.12em;
    padding: 12px 14px;
    margin-top: 8px;
}

.profil-pokedex-page .profil-pdex-section-icon {
    color: var(--pdex-red-light);
    margin-right: 6px;
}

.profil-pokedex-page .tri-bar,
.profil-pokedex-page .profil-pdex-tri-bar {
    background: var(--pdex-screen-inner);
    border: 3px solid var(--pdex-bezel);
    border-top: none;
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.profil-pokedex-page .profil-pdex-tri-label,
.profil-pokedex-page .tri-bar span {
    color: var(--pdex-ink);
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.profil-pokedex-page .tri-btn {
    border: 2px solid var(--pdex-red-dark);
    color: var(--pdex-red-dark);
    background: var(--pdex-slot);
    border-radius: 6px;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 0 var(--pdex-slot-border);
}

.profil-pokedex-page .tri-btn:hover,
.profil-pokedex-page .tri-btn.active {
    background: var(--pdex-red);
    border-color: #5d0000;
    color: #fff;
    box-shadow: 0 0 10px rgba(198, 40, 40, 0.45);
    transform: translateY(-1px);
}

.profil-pokedex-page .pokemon-grid,
.profil-pokedex-page .profil-pdex-grid {
    background: var(--pdex-screen-inner);
    border: 3px solid var(--pdex-bezel);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0 3px 16px rgba(0, 0, 0, 0.08);
    overflow: visible;
    position: relative;
}

.profil-pokedex-page .pokemon-card {
    background: var(--pdex-slot);
    border: 2px solid var(--pdex-slot-border);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px 0 rgba(107, 143, 78, 0.35);
}

.profil-pokedex-page .pokemon-card:hover {
    border-color: var(--pdex-red);
    box-shadow:
        0 0 0 2px rgba(198, 40, 40, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    z-index: 200;
}

.profil-pokedex-page .pokemon-card:hover .custom-tooltip {
    display: block !important;
    visibility: visible;
    opacity: 1;
    z-index: 500;
    pointer-events: none;
}

/* Tooltip : ne pas couper sur les bords gauche / droit de la grille */
.profil-pokedex-page #equipe-container .pokemon-card:nth-child(6n + 1):hover .custom-tooltip,
.profil-pokedex-page #stockage-container .pokemon-card:nth-child(6n + 1):hover .custom-tooltip {
    left: 0;
    transform: none;
}

.profil-pokedex-page #equipe-container .pokemon-card:nth-child(6n):hover .custom-tooltip,
.profil-pokedex-page #stockage-container .pokemon-card:nth-child(6n):hover .custom-tooltip {
    left: auto;
    right: 0;
    transform: none;
}

.profil-pokedex-page .empty-slot {
    background: rgba(200, 216, 168, 0.5);
    border: 2px dashed var(--pdex-slot-border);
    color: #5a7048;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profil-pokedex-page .custom-tooltip {
    background: var(--pdex-screen-inner);
    border: 3px solid var(--pdex-red);
    color: var(--pdex-ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-family: 'Courier New', Consolas, monospace;
}

.profil-pokedex-page .profil-fav-star {
    background: var(--pdex-red);
    border: 2px solid #fff;
    color: #ffeb3b;
    box-shadow: 0 0 8px rgba(198, 40, 40, 0.5);
}

.profil-pokedex-page #clan-nom {
    color: var(--pdex-ink) !important;
}

.profil-pokedex-page #clan-lien {
    color: var(--pdex-red-dark) !important;
}

@media (max-width: 900px) {
    .profil-pokedex-page {
        padding: 16px 8px 28px;
    }
    .profil-pokedex-device {
        padding: 10px 8px 14px;
        border-radius: 20px;
    }
    .profil-pokedex-brand-text {
        font-size: 14px;
    }
}