/* =========================================================
   COLLECTION.PHP — COMPATIBILITÉ DES STYLES HISTORIQUES
   Bloc auparavant intégré dans la page PHP.
========================================================= */

:root {
        --bg-color: #0a0a0a;
        --card-bg: #1a1a1a;
        --accent: #f5c542;
        --transfer-color: #e74c3c;
        --up-color: #3498db;
        --ready-color: #27ae60;
        --evolve-color: #f1c40f;
        --archive-bg: #111;
    }

    body { background-color: var(--bg-color); color: white; font-family: 'Poppins', sans-serif; margin: 0; padding: 20px; transition: background-color 0.3s; }
    .container { width: 100%; max-width: 1400px; margin: 0 auto; }

    .modal { 
        display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; 
        background-color: rgba(0,0,0,0.85); justify-content: center; align-items: center; 
    }
    .modal-content { 
        background-color: #1a1a1a; padding: 20px; border: 2px solid var(--up-color); border-radius: 12px; 
        width: 320px; text-align: center; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

    .xp-number-input { background: #000; border: 1px solid var(--up-color); color: white; width: 100px; text-align: center; font-size: 20px; margin-bottom: 10px; }
    #xpRange { width: 100%; margin: 15px 0; }
    
    .link-back {
        display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.05); color: var(--text-main);
        text-decoration: none; padding: 6px 15px; border-radius: 6px; border: 2px solid var(--accent);
        font-weight: 800; font-size: 10px; margin-top: 10px; text-transform: uppercase; transition: all 0.2s ease-in-out; cursor: pointer;
    }
    .link-back:hover { background: rgba(245, 197, 66, 0.85); color: #000; box-shadow: 0 0 8px rgba(245, 197, 66, 0.3); transform: translateY(-1px); }

    .btn-sort { background: #222; border: 1px solid #444; color: #ccc; padding: 5px 12px; border-radius: 6px; font-size: 10px; font-weight: 600; cursor: pointer; transition: 0.2s; }
    .btn-sort:hover { border-color: var(--accent); color: white; background: #333; }
    .btn-sort.active { background: var(--accent); color: #000; border-color: var(--accent); }

    @keyframes pulse-red {
        0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
        70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
        100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
    }
    .transfer-mode #toggleTransfer { animation: pulse-red 1.5s infinite; background: #c0392b !important; border: 2px solid white !important; }
    body.transfer-mode { background-color: #050505; }
    .transfer-mode .section-wrapper:not(#section-actifs) { opacity: 0.3; pointer-events: none; }
    .transfer-mode .pokemon-card.selected { border: 3px solid var(--transfer-color) !important; background: rgba(231, 76, 60, 0.2) !important; transform: scale(0.95); }
	.header { border: 2px solid var(--accent); border-radius: 16px; padding: 20px; margin-bottom: 30px; background: linear-gradient(180deg, #151515, #050505); display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
    .stats-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
flex-grow: 1;
margin: 0 30px;
}
.stat-item {
background: rgba(255,255,255,0.05);
padding: 10px 14px;
border-radius: 12px;
border: 1px solid #333;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
    .stat-label { font-size: 10px; color: var(--accent); font-weight: 800; text-transform: uppercase; display: block; }
    .stat-value {    font-size: 18px; font-weight: 900; color: white;}
    .achievements-row {display: grid; grid-template-columns: repeat(6, 35px);gap: 8px; margin-right: 20px; align-content: center;}
/* ===== BADGES ===== */

.badge
{
    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: #1a1a1a;
    border: 2px solid #444;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    cursor: help;

    filter: grayscale(1);
    opacity: 0.45;

    z-index: 1;
}


/* ===== BADGE DÉBLOQUÉ ===== */

.badge.unlocked
{
    filter: grayscale(0);
    opacity: 1;

    border: 2px solid var(--accent);

    background: linear-gradient(
        135deg,
        #333,
        #111
    );
}


/* ===== TOOLTIP ===== */

.badge .tooltip
{
    display: none;

    position: fixed;

    background: #000;
    color: #fff;

    padding: 10px;

    width: 200px;

    border-radius: 6px;
    border: 1px solid #555;

    font-size: 12px;
    text-align: center;

    z-index: 999999;
}


/* ===== APPARITION TOOLTIP ===== */

.badge:hover .tooltip
{
    display: block;
}

/* ===== PRIORITÉ AU HOVER ===== */

.badge:hover
{
    z-index: 999998;
}
    .section-header { background: #151515; padding: 15px 20px; border-radius: 12px; border-left: 5px solid var(--accent); margin: 20px 0 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
    .section-title { font-size: 18px; font-weight: 800; color: var(--accent); text-transform: uppercase; margin: 0; }
    .section-icon { transition: transform 0.3s; font-size: 20px; }
    .collapsible-content { max-height: 20000px; overflow: hidden; transition: max-height 0.5s ease-in-out, opacity 0.3s; }
    .is-closed .collapsible-content { max-height: 0; opacity: 0; }
    .is-closed .section-icon { transform: rotate(-90deg); }

    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; padding: 10px 0 40px; }
    .pokemon-card { background: var(--card-bg); border-radius: 12px; padding: 15px; text-align: center; position: relative; border: 1px solid #333; display: flex; flex-direction: column; min-height: 280px; transition: 0.2s; }
    .pokemon-card img { width: 90px; height: 90px; margin: 0 auto; }
    .pokemon-id { position: absolute; top: 8px; right: 8px; font-size: 10px; color: var(--accent); font-weight: bold; }
	.breed-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    background: rgba(0,0,0,0.75);
    border: 1px solid #333;

    z-index: 20;
    cursor: help;
}

.breed-badge.can-breed {
    color: #ffd86b;
    border-color: #f5c542;
    box-shadow: 0 0 10px rgba(245,197,66,0.75);
}

.breed-badge.used-breed {
    color: #555;
    border-color: #333;
    opacity: 0.45;
    filter: grayscale(1);
}

.breed-badge.too-low {
    color: #777;
    border-color: #333;
    opacity: 0.28;
    filter: grayscale(1);
}
    .pokemon-name { font-weight: 600; font-size: 13px; text-transform: uppercase; margin: 5px 0; }

    .not-owned { opacity: 0.5; }
    .not-owned img { filter: brightness(0); }
    .archived { background: var(--archive-bg); opacity: 0.8; filter: saturate(0.6); border: 1px dashed #444; }

    .history-info { background: rgba(0,0,0,0.6); padding: 12px 5px; border-radius: 10px; margin-top: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 85px; border: 1px solid rgba(255,255,255,0.05); }
    .history-info .status-line { font-size: 11px; font-weight: 800; text-transform: uppercase; }
    .history-info .date-line { font-size: 10px; opacity: 0.7; }

    .xp-bar-container { background: #000; height: 6px; border-radius: 3px; margin: 10px 0; overflow: hidden; border: 1px solid #333; }
    .xp-bar-fill { background: var(--ready-color); height: 100%; transition: width 0.3s; }

    .btn-card { width: 100%; border: 1px solid; padding: 6px; border-radius: 8px; font-size: 9px; font-weight: 800; cursor: pointer; text-transform: uppercase; margin-top: 5px; background: transparent; transition: 0.2s; }
    .btn-up { color: var(--up-color); border-color: var(--up-color); }
    .btn-transfer { color: var(--transfer-color); border-color: var(--transfer-color); }

    @media (max-width: 768px) {
        .header { flex-direction: column; gap: 15px; text-align: center; }
        .stats-container { margin: 10px 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
        .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    }
	
	/* Animation de pulsation dorée pour l'évolution */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(241, 196, 15, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); transform: scale(1); }
}

.btn-evolve-ready {
    animation: pulse-gold 2s infinite;
    background: rgba(241, 196, 15, 0.2) !important;
    border: 2px solid var(--evolve-color) !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
}


.btn-fav {
    color: #f1c40f;
    border-color: #f1c40f;
}

.btn-fav:hover {
    background: #f1c40f;
    color: #000;
}

.btn-fav-remove {
    color: #e67e22;
    border-color: #e67e22;
}

.btn-fav-remove:hover {
    background: #e67e22;
    color: #000;
}
/* Aura néon pour Pokémon favoris */
.pokemon-card.favorite-glow {
    border: 1px solid #f1c40f !important;
    box-shadow:
        0 0 5px rgba(241, 196, 15, 0.6),
        0 0 15px rgba(241, 196, 15, 0.4),
        0 0 25px rgba(241, 196, 15, 0.2);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.pokemon-card.favorite-glow:hover {
    box-shadow:
        0 0 8px rgba(241, 196, 15, 0.8),
        0 0 20px rgba(241, 196, 15, 0.6),
        0 0 35px rgba(241, 196, 15, 0.3);
}
/* Aura argentée pour Pokédex complet (♂ + ♀) */

.pokedex-complete {
    border: 1px solid #c0c0c0 !important;

    box-shadow:
        0 0 5px rgba(192,192,192,0.8),
        0 0 15px rgba(192,192,192,0.6),
        0 0 25px rgba(192,192,192,0.4);

    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.pokedex-complete:hover {
    box-shadow:
        0 0 8px rgba(220,220,220,0.9),
        0 0 20px rgba(220,220,220,0.7),
        0 0 35px rgba(220,220,220,0.5);
}

.header-stats
{
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin: 0 30px;
}

.stat-item
{
    background: #151515;

    border: 1px solid #333;

    border-radius: 10px;

    padding: 10px;

    text-align: center;
}
/* ===== SHINY POKEMON ===== */

@keyframes shiny-fire {

    0% {
        box-shadow:
            0 0 5px rgba(255,80,0,0.8),
            0 0 10px rgba(255,40,0,0.6),
            0 0 20px rgba(255,0,0,0.4);
    }

    50% {
        box-shadow:
            0 0 10px rgba(255,120,0,1),
            0 0 20px rgba(255,60,0,0.8),
            0 0 35px rgba(255,0,0,0.6);
    }

    100% {
        box-shadow:
            0 0 5px rgba(255,80,0,0.8),
            0 0 10px rgba(255,40,0,0.6),
            0 0 20px rgba(255,0,0,0.4);
    }

}

.pokemon-card.shiny-card {

    border: 1px solid #ff3c00 !important;

    animation: shiny-fire 2s infinite;

}
.pokedex-sprite[data-shiny="1"] {
    cursor: pointer;
}
/* ===== FLIP CARTE POKEDEX ===== */

.pokemon-card {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 90px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front img,
.card-back img {
    width: 90px;
    height: 90px;
}

.card-back {
    transform: rotateY(180deg);
}

/* ===== FLIP CARTE COMPLETE ===== */

.pokemon-card{
perspective:1000px;
}

.card-inner{
position:relative;
width:100%;
height:100%;
transition:transform 0.6s;
transform-style:preserve-3d;
}

.pokemon-card.flipped .card-inner{
transform:rotateY(180deg);
}

.card-front,
.card-back{
position:absolute;
width:100%;
height:100%;
backface-visibility:hidden;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
}

.card-back{
transform:rotateY(180deg);
}

.heal-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
gap:12px;
margin-top:15px;
}

.heal-item{
background:#1a1a1a;
border:1px solid #333;
border-radius:10px;
padding:10px;
text-align:center;
}

.heal-item img{
width:50px;
height:50px;
object-fit:contain;
margin-bottom:5px;
}

.heal-name{
font-size:11px;
font-weight:800;
text-transform:uppercase;
}

.heal-qte{
color:#2ecc71;
font-weight:800;
margin:4px 0;
}

.heal-item button{
background:#222;
border:1px solid #444;
border-radius:6px;
padding:5px 8px;
color:white;
font-size:11px;
cursor:pointer;
}

.heal-item button:hover{
border-color:#2ecc71;
color:#2ecc71;
}

.hp-bar{
height:8px;
background:#222;
border-radius:6px;
overflow:hidden;
margin-top:4px;
}

.hp-fill{
height:100%;
background:#2ecc71;
transition:width 0.4s ease;
}


.heal-effect{
animation:healFlash 0.5s;
}

@keyframes healFlash{
0%{box-shadow:0 0 0 rgba(46,204,113,0);}
50%{box-shadow:0 0 15px rgba(46,204,113,0.8);}
100%{box-shadow:0 0 0 rgba(46,204,113,0);}
}

.header-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-nav {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 9px;
    border: 2px solid #f0b400;
    background: #101010;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    transition: 0.18s ease;
    box-sizing: border-box;
    width: 100%;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.btn-nav:hover {
    transform: translateY(-1px);
}

.btn-nav.home {
    border-color: #f0b400;
    color: #ffffff;
}

.btn-nav.home:hover {
    background: #f0b400;
    color: #111;
}

.btn-nav.pokedex {
    border-color: #4fc3ff;
    color: #4fc3ff;
}

.btn-nav.pokedex:hover {
    background: #4fc3ff;
    color: #111;
}

.btn-nav.inv {
    border-color: #00e676;
    color: #00e676;
}

.btn-nav.inv:hover {
    background: #00e676;
    color: #111;
}

.btn-nav.shop {
    border-color: #ffd54f;
    color: #ffd54f;
}

.btn-nav.shop:hover {
    background: #ffd54f;
    color: #111;
}

.btn-nav.pension {
    border-color: #ffb74d;
    color: #ffb74d;
}

.btn-nav.pension:hover {
    background: #ffb74d;
    color: #111;
}

.btn-nav.transfer {
    border-color: #ff7043;
    color: #ff7043;
    background: #101010;
}

.btn-nav.transfer:hover {
    background: #101010;
    color: #ff7043;
}

.btn-nav.validate {
    border-color: #2ecc71;
    color: #2ecc71;
    background: #101010;
}

.btn-nav.validate:hover {
    background: #2ecc71;
    color: #111;
}
/* =========================================================
   PATCH AFFICHAGE MOBILE / TABLETTE / ZOOM PC
========================================================= */

body {
    overflow-x: hidden;
}

/* Quand une section est ouverte, on évite de couper le contenu */
.collapsible-content {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.is-closed .collapsible-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* ===== MODALE OBJETS RESPONSIVE + SCROLLABLE ===== */
#healModal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.82);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#healContent {
    background: #111;
    border: 2px solid #2ecc71;
    border-radius: 12px;
    width: min(400px, 100%);
    max-height: min(85vh, calc(100dvh - 40px));
    margin: auto;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* grille d'objets scrollable à l'intérieur de la modale */
#healContent .heal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
    flex: 1 1 auto;
}

/* scrollbar visible dans la modale */
#healContent .heal-grid::-webkit-scrollbar {
    width: 8px;
}

#healContent .heal-grid::-webkit-scrollbar-track {
    background: #0d0d0d;
    border-radius: 8px;
}

#healContent .heal-grid::-webkit-scrollbar-thumb {
    background: #2ecc71;
    border-radius: 8px;
}

/* items objets */
#healContent .heal-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

#healContent .heal-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

#healContent .heal-name {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    word-break: break-word;
}

#healContent .heal-qte {
    color: #2ecc71;
    font-weight: 800;
    margin: 4px 0;
}

#healContent .heal-item button {
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 5px 8px;
    color: white;
    font-size: 11px;
    cursor: pointer;
}

#healContent .heal-item button:hover {
    border-color: #2ecc71;
    color: #2ecc71;
}

/* sur mobile/tablette : on rend les sections plus robustes */
@media (max-width: 1024px) {
    #section-favoris .grid,
    #section-actifs .grid,
    #section-archives .grid,
    #section-pokedex .grid {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    }
}

/* téléphone */
@media (max-width: 768px) {
    #healModal {
        padding: 12px;
        align-items: flex-start;
    }

    #healContent {
        width: 100%;
        max-height: calc(100dvh - 24px);
        margin: 0 auto;
        padding: 16px;
    }

    #healContent .heal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #healContent .heal-item {
        padding: 8px;
    }

    #healContent .heal-item img {
        width: 44px;
        height: 44px;
    }

    #section-favoris .grid,
    #section-actifs .grid,
    #section-archives .grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.desc-btn {
    margin-top: 8px;
    width: 100%;
    border: 1px solid var(--accent);
    background: rgba(245, 197, 66, 0.08);
    color: var(--accent);
    border-radius: 8px;
    padding: 6px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

.desc-btn:hover {
    background: var(--accent);
    color: #000;
}

#descModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#descModalContent {
    width: min(520px, 100%);
    background: #111;
    border: 2px solid var(--accent);
    border-radius: 14px;
    padding: 22px;
    box-sizing: border-box;
    box-shadow: 0 0 25px rgba(0,0,0,0.45);
}

#descModalTitle {
    margin: 0 0 12px 0;
    color: var(--accent);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

#descModalText {
    color: #f1f1f1;
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
}

.desc-close-btn {
    margin-top: 18px;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 10px;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}
#section-pokedex .grid {
    gap: 20px;
    padding-top: 18px;
}

#section-pokedex .pokemon-card {
    min-height: 250px !important;
    padding: 16px 14px 18px;
    justify-content: flex-start;
}

#section-pokedex .pokemon-name {
    margin: 10px 0 8px;
    min-height: 32px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#section-pokedex .desc-btn {
    margin: 10px 0 12px;
    padding: 8px;
    font-size: 11px;
}

#section-pokedex .pokemon-card > div[style*="font-size:10px;margin-top:auto;"] {
    margin-top: 6px !important;
    line-height: 1.45;
}

#section-pokedex .pokemon-card > div[style*="font-size:10px;margin-top:auto;"] > div {
    margin-bottom: 4px;
}

#section-pokedex .pokemon-card > div[style*="font-size:10px;margin-top:auto;"] > div:last-child {
    margin-bottom: 0;
}

#section-pokedex .card-inner {
    height: 100px;
    margin-top: 4px;
    margin-bottom: 6px;
}

#section-pokedex .pokedex-meta {
    font-size: 10px;
    margin-top: auto;
    line-height: 1.45;
    padding-top: 2px;
}

#section-pokedex .pokedex-meta > div {
    margin-bottom: 4px;
}

#section-pokedex .pokedex-meta > div:last-child {
    margin-bottom: 0;
}
.cry-btn {
    margin: 0 0 12px;
    width: 100%;
    border: 1px solid #3da5ff;
    background: rgba(61, 165, 255, 0.08);
    color: #3da5ff;
    border-radius: 8px;
    padding: 6px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

.cry-btn:hover {
    background: #3da5ff;
    color: #000;
}

.pokedex-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 10px 0 12px;
}
.pokedex-search-bar {
    padding: 12px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: flex-start;
}

.pokedex-search-input {
    width: 320px;
    max-width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #111;
    color: white;
    font-size: 11px;
    outline: none;
}

.pokedex-region-wrapper {
    margin-top: 18px;
}

.pokedex-region-header {
    background: #111;
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    margin: 0 0 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pokedex-region-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0;
}

.pokedex-region-icon {
    transition: transform 0.3s;
    font-size: 18px;
}

.pokedex-region-content {
    max-height: 20000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.25s ease;
    opacity: 1;
}

.pokedex-region-wrapper.is-closed .pokedex-region-content {
    max-height: 0;
    opacity: 0;
}

.pokedex-region-wrapper.is-closed .pokedex-region-icon {
    transform: rotate(-90deg);
}

.pokedex-empty-region {
    padding: 14px 6px 8px;
    color: #777;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

#section-pokedex .grid {
    gap: 20px;
    padding-top: 12px;
}

#section-pokedex .pokemon-card {
    min-height: 265px !important;
    padding: 16px 14px 18px;
    justify-content: flex-start;
}

#section-pokedex .pokemon-name {
    margin: 10px 0 8px;
    min-height: 32px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#section-pokedex .pokedex-meta {
    font-size: 10px;
    margin-top: auto;
    line-height: 1.45;
    padding-top: 2px;
}

#section-pokedex .pokedex-meta > div {
    margin-bottom: 4px;
}

#section-pokedex .pokedex-meta > div:last-child {
    margin-bottom: 0;
}
.btn-nav.success {
    border-color: #b388ff;
    color: #b388ff;
}

.btn-nav.success:hover {
    background: #b388ff;
    color: #111;
}

.breed-badge.too-low {
    color: #888;
    border-color: #333;
    opacity: 0.45;
    filter: grayscale(1);
    font-size: 13px;
}
.pokemon-card.locked-box {
    opacity: 0.65;
    border-color: #9b7cff !important;
    box-shadow: 0 0 14px rgba(155, 124, 255, 0.35);
}

.box-lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(20, 12, 40, 0.95);
    border: 1px solid #9b7cff;
    color: #d8c8ff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 7px;
    border-radius: 999px;
    z-index: 30;
    text-transform: uppercase;
}

.pokemon-card.locked-box button,
.pokemon-card.locked-box .btn-card,
.pokemon-card.locked-box .transfer-checkbox {
    opacity: 0.35;
    pointer-events: none;
}

/* =========================================================
   BADGES V5 : TYPES ET ARCHÉTYPES
========================================================= */
.pokemon-traits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 6px 0 8px;
    min-height: 23px;
}

.trait-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    color: #fff;
    box-sizing: border-box;
    white-space: nowrap;
}

.type-badge {
    min-width: 52px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.type-normal    { background: #8f9098; }
.type-feu       { background: #e85b3f; }
.type-eau       { background: #3f83d8; }
.type-electrik  { background: #d9aa24; color: #111; text-shadow: none; }
.type-plante    { background: #4b9c50; }
.type-glace     { background: #55aeb9; }
.type-combat    { background: #b3413f; }
.type-poison    { background: #8f4b9f; }
.type-sol       { background: #b78145; }
.type-vol       { background: #7189c7; }
.type-psy       { background: #d64d78; }
.type-insecte   { background: #82952f; }
.type-roche     { background: #9a874b; }
.type-spectre   { background: #5f547e; }
.type-dragon    { background: #6655b8; }
.type-tenebres  { background: #514943; }
.type-acier     { background: #727f8c; }
.type-fee       { background: #cc78a8; }
.type-unknown   { background: #3f3f3f; color: #aaa; }

.archetype-badge {
    flex-basis: 100%;
    width: max-content;
    max-width: 100%;
    margin: 1px auto 0;
    border-width: 1px;
    background: rgba(0,0,0,0.32);
}

.archetype-bagarreur {
    color: #ff8a80;
    border-color: #e85b50;
    box-shadow: inset 0 0 10px rgba(232,91,80,0.18);
}

.archetype-protecteur {
    color: #7ec8ff;
    border-color: #3498db;
    box-shadow: inset 0 0 10px rgba(52,152,219,0.18);
}

.archetype-feinteur {
    color: #d7a6ff;
    border-color: #9b59b6;
    box-shadow: inset 0 0 10px rgba(155,89,182,0.18);
}

.archetype-legacy {
    color: #aaa;
    border-color: #555;
    background: rgba(255,255,255,0.035);
}

.archetype-missing {
    color: #ffb74d;
    border-color: #ff9800;
    background: rgba(255,152,0,0.08);
}

#section-pokedex .pokemon-card {
    min-height: 292px !important;
}

#section-pokedex .pokemon-traits {
    margin: 0 0 9px;
    min-height: 21px;
}

#section-pokedex .trait-badge {
    font-size: 8px;
    min-height: 19px;
    padding: 3px 7px;
}

.archived .pokemon-traits {
    opacity: 0.8;
}


/* =========================================================
   CHARTE MODERNE POKÉGROUIK
   Placée après les styles historiques pour les surcharger.
========================================================= */

/* =========================================================
   POKÉGROUIK — CHARTE WEB PRINCIPALE
   Palette alignée sur les overlays OBS.
   Ce fichier reste à la racine du projet.
========================================================= */

:root {
    color-scheme: dark;

    --grouik-blue: #14a8ff;
    --grouik-blue-soft: #68ddff;
    --grouik-blue-deep: #062b63;

    --grouik-yellow: #f5c542;
    --grouik-yellow-hot: #ffdf6e;

    --grouik-black: #05070c;
    --grouik-black-soft: #09101a;

    --grouik-panel: rgba(5, 7, 12, .95);
    --grouik-panel-soft: rgba(6, 24, 50, .92);
    --grouik-panel-raised: rgba(12, 22, 38, .96);

    --grouik-text: #ffffff;
    --grouik-muted: #afc5da;
    --grouik-muted-dark: #71879b;

    --grouik-success: #83d85c;
    --grouik-warning: #ff9c42;
    --grouik-danger: #ff5c6c;
    --grouik-purple: #bd91ff;

    --grouik-line: rgba(245, 197, 66, .42);
    --grouik-line-blue: rgba(20, 168, 255, .28);
    --grouik-line-soft: rgba(255, 255, 255, .10);

    --grouik-radius-sm: 10px;
    --grouik-radius-md: 14px;
    --grouik-radius-lg: 18px;
    --grouik-radius-xl: 24px;

    --grouik-shadow:
        0 18px 48px rgba(0, 0, 0, .50),
        0 0 22px rgba(20, 168, 255, .12),
        0 0 26px rgba(245, 197, 66, .07);

    --grouik-shadow-hover:
        0 22px 56px rgba(0, 0, 0, .56),
        0 0 28px rgba(20, 168, 255, .20),
        0 0 34px rgba(245, 197, 66, .11);

    --grouik-font-body:
        "Montserrat",
        "Segoe UI",
        Arial,
        sans-serif;

    --grouik-font-title:
        "Rajdhani",
        "Segoe UI",
        Arial,
        sans-serif;

    --site-width: 1240px;
}

/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--grouik-black);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 50% -12%,
            rgba(6, 43, 99, .88),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #07101d 0%,
            var(--grouik-black) 38%,
            #020305 100%
        );
    color: var(--grouik-text);
    font-family: var(--grouik-font-body);
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    background-image:
        linear-gradient(
            rgba(20, 168, 255, .044) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(245, 197, 66, .034) 1px,
            transparent 1px
        );
    background-size: 56px 56px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .88),
            transparent 86%
        );
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(
            circle at 108% 20%,
            rgba(20, 168, 255, .18),
            transparent 29%
        ),
        radial-gradient(
            circle at -9% 58%,
            rgba(245, 197, 66, .11),
            transparent 30%
        );
    pointer-events: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

::selection {
    background: rgba(245, 197, 66, .88);
    color: #07101a;
}

:focus-visible {
    outline: 3px solid rgba(20, 168, 255, .72);
    outline-offset: 3px;
}

/* =========================================================
   PARTICULES
========================================================= */

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: var(--grouik-blue);
    box-shadow:
        0 0 12px rgba(20, 168, 255, .78),
        0 0 20px rgba(245, 197, 66, .22);
    opacity: 0;
    animation: floatUp linear infinite;
}

.particle:nth-child(3n) {
    background: var(--grouik-yellow);
    box-shadow: 0 0 12px rgba(245, 197, 66, .72);
}

@keyframes floatUp {
    0% {
        transform: translate3d(0, 12vh, 0) scale(.45);
        opacity: 0;
    }

    14% {
        opacity: .62;
    }

    80% {
        opacity: .28;
    }

    100% {
        transform: translate3d(20px, -112vh, 0) scale(1.15);
        opacity: 0;
    }
}

/* =========================================================
   TICKER SUPÉRIEUR
========================================================= */

.poke-ticker {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 66px;
    overflow: hidden;
    border-bottom: 1px solid rgba(245, 197, 66, .38);
    background:
        radial-gradient(
            circle at 12% 50%,
            rgba(245, 197, 66, .13),
            transparent 24%
        ),
        radial-gradient(
            circle at 88% 50%,
            rgba(20, 168, 255, .16),
            transparent 26%
        ),
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .96),
            rgba(5, 7, 12, .97) 42%,
            rgba(5, 7, 12, .97) 62%,
            rgba(6, 43, 99, .96)
        );
    box-shadow:
        0 12px 26px rgba(0, 0, 0, .34),
        0 0 18px rgba(20, 168, 255, .10);
    backdrop-filter: blur(16px);
}

.poke-ticker::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--grouik-blue) 22%,
            var(--grouik-yellow) 44%,
            #ffffff 50%,
            var(--grouik-yellow) 56%,
            var(--grouik-blue) 78%,
            transparent
        );
    filter: drop-shadow(0 0 5px var(--grouik-blue));
}

.ticker-content {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: max-content;
    animation: scrollTicker 160s linear infinite;
    will-change: transform;
}

.ticker-content img {
    width: 50px;
    height: 50px;
    margin: 0 7px;
    object-fit: contain;
    image-rendering: pixelated;
    filter:
        saturate(.90)
        drop-shadow(0 5px 6px rgba(0, 0, 0, .38));
    opacity: .84;
}

@keyframes scrollTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   HERO
========================================================= */

.hero-welcome {
    width: min(930px, calc(100% - 32px));
    margin: 0 auto;
    padding: 118px 0 30px;
    text-align: center;
}

.hero-welcome::before {
    content: "L’AVENTURE POKÉMON INTERACTIVE SUR TWITCH";
    display: block;
    margin-bottom: 8px;
    color: var(--grouik-yellow-hot);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .17em;
    text-shadow: 0 0 9px rgba(245, 197, 66, .34);
}

.hero-welcome h1 {
    margin: 0;
    background:
        linear-gradient(
            180deg,
            #ffffff 5%,
            var(--grouik-yellow-hot) 44%,
            var(--grouik-blue) 100%
        );
    background-clip: text;
    color: transparent;
    font-family: var(--grouik-font-title);
    font-size: clamp(4rem, 9vw, 7.7rem);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: .84;
    text-transform: uppercase;
    filter:
        drop-shadow(0 0 16px rgba(20, 168, 255, .30))
        drop-shadow(0 0 22px rgba(245, 197, 66, .18));
}

.hero-owner {
    margin-top: 22px;
    color: var(--grouik-text);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-top: 11px;
    padding: 7px 13px;
    border: 1px solid var(--grouik-line-soft);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.status-badge .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-offline {
    background: rgba(255, 255, 255, .045);
    color: var(--grouik-muted);
}

.status-offline .dot {
    background: #607182;
    box-shadow: 0 0 9px rgba(96, 113, 130, .50);
}

.status-online {
    border-color: rgba(255, 92, 108, .52);
    background: rgba(255, 92, 108, .13);
    color: #ffabb4;
    box-shadow: 0 0 22px rgba(255, 92, 108, .14);
    animation: livePulse 1.8s ease-in-out infinite;
}

.status-online .dot {
    background: var(--grouik-danger);
    box-shadow: 0 0 13px rgba(255, 92, 108, .88);
}

@keyframes livePulse {
    50% {
        opacity: .68;
    }
}

/* =========================================================
   STRUCTURE ET NAVIGATION
========================================================= */

.main-wrapper {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    width: min(var(--site-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 72px;
}

.nav-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0 0 4px;
}

.btn-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    overflow: hidden;
    padding: 12px 13px;
    border: 1px solid var(--grouik-line-blue);
    border-radius: var(--grouik-radius-md);
    background:
        radial-gradient(
            circle at 95% 100%,
            rgba(20, 168, 255, .13),
            transparent 44%
        ),
        linear-gradient(
            145deg,
            rgba(6, 43, 99, .54),
            rgba(5, 7, 12, .90) 63%
        );
    color: var(--grouik-text);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, .018);
    font-size: .70rem;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.btn-nav::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--grouik-blue),
            var(--grouik-yellow),
            transparent
        );
    opacity: .72;
}

.btn-nav:hover {
    z-index: 2;
    transform: translateY(-4px);
    border-color: rgba(245, 197, 66, .60);
    background:
        radial-gradient(
            circle at 90% 100%,
            rgba(245, 197, 66, .14),
            transparent 46%
        ),
        linear-gradient(
            145deg,
            rgba(6, 43, 99, .74),
            rgba(5, 7, 12, .94) 66%
        );
    box-shadow: var(--grouik-shadow-hover);
}

.btn-nav svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: var(--grouik-blue-soft);
}

/* =========================================================
   PANNEAUX
========================================================= */

.glass-panel {
    position: relative;
    width: auto;
    max-width: none;
    margin: 0;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--grouik-line);
    border-radius: var(--grouik-radius-lg);
    background:
        radial-gradient(
            circle at 6% 8%,
            rgba(245, 197, 66, .10),
            transparent 30%
        ),
        radial-gradient(
            circle at 96% 94%,
            rgba(20, 168, 255, .15),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(6, 43, 99, .78) 0%,
            rgba(5, 7, 12, .96) 42%,
            rgba(5, 7, 12, .98) 70%,
            rgba(6, 31, 64, .87) 100%
        );
    box-shadow:
        var(--grouik-shadow),
        inset 0 0 18px rgba(255, 255, 255, .024);
    backdrop-filter: blur(10px);
}

.glass-panel::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            var(--grouik-blue) 20%,
            var(--grouik-yellow) 42%,
            #ffffff 50%,
            var(--grouik-yellow) 58%,
            var(--grouik-blue) 80%,
            transparent 100%
        );
    filter: drop-shadow(0 0 5px rgba(20, 168, 255, .72));
    opacity: .84;
}

.project-panel {
    grid-column: 1 / 6;
    grid-row: 2;
}

.news-panel {
    grid-column: 6 / -1;
    grid-row: 2;
}

.home-card {
    grid-column: 1 / 6;
    grid-row: 3;
}

.rules-panel {
    grid-column: 6 / -1;
    grid-row: 3 / span 2;
}

.hall-panel {
    grid-column: 1 / 6;
    grid-row: 4;
}

.twitch-section {
    grid-column: 1 / -1;
    grid-row: 5;
    width: auto;
    max-width: none;
    margin: 0;
}

.side-panel h3,
#hall-of-fame h3 {
    margin: 0 0 18px;
    padding: 0 58px 13px 0;
    border-bottom: 1px solid rgba(245, 197, 66, .20);
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1;
    text-transform: uppercase;
}

.side-panel h3::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 12px;
    background:
        linear-gradient(
            90deg,
            var(--grouik-blue),
            var(--grouik-yellow)
        );
    box-shadow: 0 0 10px rgba(20, 168, 255, .35);
}

.side-panel > p,
.side-panel > li,
.side-panel li p {
    color: #dbe7f2;
    font-size: .86rem;
}

.project-panel > li,
.news-panel > li {
    display: block;
    margin: 0 0 10px;
    padding: 12px 13px 12px 40px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    list-style: none;
}

.project-panel > li {
    position: relative;
}

.project-panel > li::before {
    content: "✓";
    position: absolute;
    top: 15px;
    left: 14px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: rgba(131, 216, 92, .15);
    color: var(--grouik-success);
    font-size: .66rem;
    font-weight: 900;
}

.project-panel > li p,
.news-panel > li p {
    margin: 0;
}

.highlight {
    color: var(--grouik-yellow-hot);
    font-weight: 900;
}

.cyber-blink {
    color: var(--grouik-yellow-hot) !important;
    text-decoration: none;
    animation: pulseHighlight 1.7s ease-in-out infinite;
}

.cyber-blink a {
    color: inherit;
    text-decoration: none;
}

@keyframes pulseHighlight {
    50% {
        opacity: .52;
        text-shadow: 0 0 18px rgba(245, 197, 66, .55);
    }
}

/* =========================================================
   NEWS
========================================================= */

.news-panel > li {
    position: relative;
    padding-left: 45px;
    border-left: 4px solid var(--grouik-blue);
    background:
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .42),
            rgba(5, 7, 12, .42) 76%,
            rgba(245, 197, 66, .025)
        );
}

.news-panel > li::before {
    content: "•";
    position: absolute;
    top: 13px;
    left: 17px;
    color: var(--grouik-blue-soft);
    font-size: 1.2rem;
}

.news-panel > li:first-of-type {
    border-color: rgba(245, 197, 66, .36);
    border-left-color: var(--grouik-yellow);
    background:
        linear-gradient(
            90deg,
            rgba(245, 197, 66, .10),
            rgba(5, 7, 12, .48)
        );
}

.news-panel > li:first-of-type::before {
    content: "🛠️";
    top: 11px;
    left: 13px;
    font-size: 1rem;
}

/* =========================================================
   ACCÈS AU POKÉDEX
========================================================= */

.home-card {
    text-align: center;
}

.main-logo {
    width: min(92%, 360px);
    height: auto;
    margin: 0 auto 15px;
    filter:
        drop-shadow(0 12px 14px rgba(0, 0, 0, .48))
        drop-shadow(0 0 15px rgba(20, 168, 255, .22))
        drop-shadow(0 0 16px rgba(245, 197, 66, .12));
}

.home-card > p {
    color: var(--grouik-muted) !important;
    font-size: .86rem;
}

.pseudo-input {
    width: 100%;
    min-height: 49px;
    margin-bottom: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(20, 168, 255, .24);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(6, 24, 50, .62),
            rgba(5, 7, 12, .72)
        );
    color: var(--grouik-text);
    box-shadow:
        inset 0 0 14px rgba(0, 0, 0, .24),
        0 0 0 rgba(20, 168, 255, 0);
    outline: none;
    text-align: center;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.pseudo-input::placeholder {
    color: var(--grouik-muted-dark);
}

.pseudo-input:focus {
    border-color: rgba(20, 168, 255, .78);
    box-shadow:
        0 0 0 4px rgba(20, 168, 255, .10),
        0 0 18px rgba(20, 168, 255, .09);
}

.enter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--grouik-blue),
            #5bbfff 56%,
            var(--grouik-yellow-hot)
        );
    color: #07101a;
    cursor: pointer;
    font-size: .77rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow:
        0 10px 20px rgba(20, 168, 255, .16),
        0 0 18px rgba(245, 197, 66, .08);
    transition:
        transform .2s ease,
        filter .2s ease,
        box-shadow .2s ease;
}

.enter-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow:
        0 14px 26px rgba(20, 168, 255, .22),
        0 0 24px rgba(245, 197, 66, .12);
}

.socials {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 17px;
}

.socials a {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border: 1px solid rgba(20, 168, 255, .18);
    border-radius: 12px;
    background: rgba(20, 168, 255, .07);
    color: var(--grouik-muted);
    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.socials a:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 197, 66, .52);
    background: rgba(245, 197, 66, .10);
    color: var(--grouik-yellow-hot);
}

.socials svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* =========================================================
   RÈGLES
========================================================= */

.rules-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-list li {
    position: relative;
    margin: 0;
    padding: 11px 12px 11px 39px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 12px;
    background:
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .28),
            rgba(255, 255, 255, .018)
        );
    color: #d6e2ed;
    font-size: .79rem;
}

.rules-list li::before {
    content: "›";
    position: absolute;
    top: 11px;
    left: 13px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 6px;
    background: rgba(20, 168, 255, .10);
    color: var(--grouik-blue-soft);
    font-weight: 900;
}

.rules-list .highlight {
    color: var(--grouik-yellow-hot);
}

.rules-list li:nth-last-child(-n+5) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-right: 13px;
}

.rules-list li:nth-last-child(-n+5) .highlight {
    color: var(--grouik-blue-soft);
}

/* =========================================================
   HALL OF FAME
========================================================= */

#hall-of-fame h3 a {
    color: var(--grouik-blue-soft);
    font-size: .68em;
    text-decoration: none;
    transition: color .2s ease;
}

#hall-of-fame h3 a:hover {
    color: var(--grouik-yellow-hot);
}

#hall-of-fame > p {
    display: flex;
    align-items: center;
    min-height: 49px;
    margin: 0 0 9px;
    padding: 10px 12px;
    border: 1px solid rgba(20, 168, 255, .13);
    border-radius: 11px;
    background:
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .38),
            rgba(5, 7, 12, .28)
        );
    color: #e7f0f7;
    font-size: .80rem;
    font-weight: 700;
}

/* =========================================================
   TWITCH
========================================================= */

.twitch-embed-container {
    position: relative;
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    border: 1px solid rgba(20, 168, 255, .22);
    border-radius: 16px;
    background: #000;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, .34),
        0 0 18px rgba(20, 168, 255, .08);
}

.twitch-embed-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   COMPOSANTS RÉUTILISABLES POUR LES PROCHAINES PAGES
========================================================= */

.pg-panel,
.pg-card {
    border: 1px solid var(--grouik-line);
    border-radius: var(--grouik-radius-lg);
    background:
        radial-gradient(
            circle at 96% 94%,
            rgba(20, 168, 255, .12),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(6, 43, 99, .72),
            rgba(5, 7, 12, .96) 45%,
            rgba(5, 7, 12, .98)
        );
    box-shadow: var(--grouik-shadow);
}

.pg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(20, 168, 255, .28);
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            rgba(20, 168, 255, .92),
            rgba(6, 43, 99, .92)
        );
    color: #ffffff;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.pg-button-warning {
    border-color: rgba(245, 197, 66, .52);
    background:
        linear-gradient(
            135deg,
            var(--grouik-yellow),
            var(--grouik-yellow-hot)
        );
    color: #07101a;
}

.pg-button-danger {
    border-color: rgba(255, 92, 108, .52);
    background:
        linear-gradient(
            135deg,
            rgba(255, 92, 108, .94),
            rgba(128, 23, 41, .94)
        );
}

.pg-field,
.pg-select,
.pg-textarea {
    width: 100%;
    border: 1px solid rgba(20, 168, 255, .24);
    border-radius: 11px;
    background: rgba(5, 7, 12, .72);
    color: var(--grouik-text);
}

.pg-field,
.pg-select {
    min-height: 44px;
    padding: 10px 12px;
}

.pg-textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.pg-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid rgba(20, 168, 255, .24);
    border-radius: 999px;
    background: rgba(20, 168, 255, .08);
    color: #eaf6ff;
    font-size: .68rem;
    font-weight: 850;
}

.pg-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--grouik-line-soft);
    border-radius: 13px;
}

.pg-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(5, 7, 12, .50);
}

.pg-table th,
.pg-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    text-align: left;
}

.pg-table th {
    color: var(--grouik-yellow-hot);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pg-table td {
    color: #dfeaf3;
    font-size: .80rem;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 0;
    padding: 0;
    border-top: 1px solid rgba(245, 197, 66, .24);
    background:
        linear-gradient(
            180deg,
            rgba(5, 7, 12, .64),
            rgba(2, 3, 5, .98)
        );
    color: var(--grouik-muted);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--site-width), calc(100% - 40px));
    min-height: 104px;
    margin: 0 auto;
    padding: 22px 0;
}

.footer-content p {
    margin: 0;
    font-size: .75rem;
}

.footer-links {
    margin: 0;
}

.footer-links a {
    color: var(--grouik-blue-soft);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--grouik-yellow-hot);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
    .nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-panel,
    .news-panel,
    .home-card,
    .rules-panel,
    .hall-panel {
        grid-column: span 6;
        grid-row: auto;
    }

    .twitch-section {
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .poke-ticker {
        height: 58px;
    }

    .ticker-content img {
        width: 43px;
        height: 43px;
    }

    .hero-welcome {
        padding-top: 98px;
    }

    .hero-welcome h1 {
        font-size: clamp(3.3rem, 18vw, 5.3rem);
    }

    .main-wrapper {
        width: min(100% - 24px, var(--site-width));
        gap: 13px;
    }

    .nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .btn-nav {
        min-height: 66px;
        padding: 10px;
    }

    .project-panel,
    .news-panel,
    .home-card,
    .rules-panel,
    .hall-panel,
    .twitch-section {
        grid-column: 1 / -1;
    }

    .glass-panel {
        padding: 18px;
        border-radius: 15px;
    }

    .side-panel h3,
    #hall-of-fame h3 {
        font-size: 1.65rem;
    }

    .footer-content {
        width: min(100% - 24px, var(--site-width));
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 470px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }

    .hero-welcome::before {
        font-size: .61rem;
        letter-spacing: .11em;
    }

    .rules-list li:nth-last-child(-n+5) {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   SOUS-PAGES PUBLIQUES — STRUCTURE COMMUNE
========================================================= */

.pg-subpage {
    min-height: 100vh;
}

.pg-site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom: 1px solid rgba(245, 197, 66, .30);
    background:
        radial-gradient(
            circle at 8% 50%,
            rgba(245, 197, 66, .12),
            transparent 24%
        ),
        radial-gradient(
            circle at 92% 50%,
            rgba(20, 168, 255, .14),
            transparent 26%
        ),
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .96),
            rgba(5, 7, 12, .98) 34%,
            rgba(5, 7, 12, .98) 68%,
            rgba(6, 43, 99, .96)
        );
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .30),
        0 0 18px rgba(20, 168, 255, .08);
    backdrop-filter: blur(16px);
}

.pg-site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--grouik-blue) 24%,
            var(--grouik-yellow) 44%,
            #ffffff 50%,
            var(--grouik-yellow) 56%,
            var(--grouik-blue) 76%,
            transparent
        );
    filter: drop-shadow(0 0 5px rgba(20, 168, 255, .72));
}

.pg-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--site-width), calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
}

.pg-site-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--grouik-text);
    text-decoration: none;
}

.pg-site-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(245, 197, 66, .45);
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 197, 66, .18),
            rgba(20, 168, 255, .14)
        );
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, .04),
        0 0 16px rgba(20, 168, 255, .09);
}

.pg-site-brand > span:last-child {
    display: grid;
    gap: 1px;
}

.pg-site-brand strong {
    font-family: var(--grouik-font-title);
    font-size: 1.24rem;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
}

.pg-site-brand small {
    color: var(--grouik-muted);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.pg-site-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.pg-site-menu a {
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--grouik-muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .035em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.pg-site-menu a:hover {
    border-color: rgba(20, 168, 255, .24);
    background: rgba(20, 168, 255, .08);
    color: var(--grouik-blue-soft);
}

.pg-subpage-shell {
    width: min(var(--site-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 72px;
}

.pg-subpage-narrow {
    width: min(960px, calc(100% - 40px));
}

.pg-page-hero {
    position: relative;
    max-width: 850px;
    margin: 0 auto 34px;
    text-align: center;
}

.pg-page-hero h1 {
    margin: 5px 0 0;
    background:
        linear-gradient(
            180deg,
            #ffffff 4%,
            var(--grouik-yellow-hot) 46%,
            var(--grouik-blue) 100%
        );
    background-clip: text;
    color: transparent;
    font-family: var(--grouik-font-title);
    font-size: clamp(3.2rem, 8vw, 6.1rem);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: .88;
    text-transform: uppercase;
    filter:
        drop-shadow(0 0 14px rgba(20, 168, 255, .24))
        drop-shadow(0 0 18px rgba(245, 197, 66, .15));
}

.pg-page-hero p {
    max-width: 680px;
    margin: 17px auto 0;
    color: var(--grouik-muted);
    font-size: .94rem;
}

.pg-page-back {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(20, 168, 255, .25);
    border-radius: 999px;
    background: rgba(20, 168, 255, .07);
    color: var(--grouik-blue-soft);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.pg-page-back:hover {
    transform: translateX(-3px);
    border-color: rgba(245, 197, 66, .52);
    color: var(--grouik-yellow-hot);
}

/* =========================================================
   HALL OF FAME
========================================================= */

.hof-ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hof-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--grouik-line);
    border-radius: var(--grouik-radius-lg);
    background:
        radial-gradient(
            circle at 5% 8%,
            rgba(245, 197, 66, .10),
            transparent 30%
        ),
        radial-gradient(
            circle at 96% 94%,
            rgba(20, 168, 255, .14),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(6, 43, 99, .76),
            rgba(5, 7, 12, .96) 44%,
            rgba(5, 7, 12, .98)
        );
    box-shadow: var(--grouik-shadow);
}

.hof-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--grouik-blue),
            var(--grouik-yellow),
            #ffffff,
            var(--grouik-blue),
            transparent
        );
    opacity: .82;
}

.hof-card h2 {
    margin: 0 0 15px;
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: 1.55rem;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.hof-card table {
    width: 100%;
    border-collapse: collapse;
}

.hof-card th,
.hof-card td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    text-align: left;
}

.hof-card th {
    color: var(--grouik-muted);
    font-size: .62rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hof-card td {
    color: #e8f1f8;
    font-size: .77rem;
}

.hof-card tbody tr {
    transition:
        background .18s ease,
        transform .18s ease;
}

.hof-card tbody tr:hover {
    background: rgba(20, 168, 255, .06);
}

.hof-card td:first-child {
    width: 46px;
    color: var(--grouik-blue-soft);
    font-weight: 900;
}

.hof-card tbody tr:nth-child(1) td:first-child {
    color: var(--grouik-yellow-hot);
}

.hof-card tbody tr:nth-child(2) td:first-child {
    color: #d8e4ef;
}

.hof-card tbody tr:nth-child(3) td:first-child {
    color: #d49b67;
}

/* =========================================================
   PATCHNOTES
========================================================= */

.patch-timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.patch-timeline::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 29px;
    width: 2px;
    background:
        linear-gradient(
            180deg,
            var(--grouik-yellow),
            var(--grouik-blue),
            transparent
        );
    opacity: .34;
}

.patch-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    margin: 0;
}

.patch-index {
    position: relative;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(245, 197, 66, .46);
    border-radius: 17px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 197, 66, .16),
            rgba(20, 168, 255, .13)
        ),
        var(--grouik-black);
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(20, 168, 255, .09);
}

.patch-card > :not(.patch-index) {
    grid-column: 2;
}

.patch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(245, 197, 66, .22);
}

.patch-version {
    margin: 2px 0 0;
    color: var(--grouik-text);
    font-family: var(--grouik-font-title);
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

.patch-date {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(20, 168, 255, .22);
    border-radius: 999px;
    background: rgba(20, 168, 255, .07);
    color: var(--grouik-blue-soft);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.patch-content ul {
    display: grid;
    gap: 9px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.patch-content li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
}

.patch-content p {
    margin: 0;
    color: #dbe7f0;
    font-size: .82rem;
}

.patch-bullet {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: rgba(245, 197, 66, .08);
    font-size: .78rem;
}

/* =========================================================
   FAVORIS
========================================================= */

.favorite-trainers {
    display: grid;
    gap: 20px;
}

.favorite-trainer-section {
    padding: 22px;
}

.favorite-trainer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.favorite-trainer-header h2 {
    margin: 2px 0 0;
    color: var(--grouik-text);
    font-family: var(--grouik-font-title);
    font-size: 1.8rem;
    line-height: 1;
    text-transform: uppercase;
}

.favorite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 13px;
}

.favorite-card {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(20, 168, 255, .22);
    border-radius: 15px;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(20, 168, 255, .15),
            transparent 46%
        ),
        linear-gradient(
            180deg,
            rgba(10, 26, 50, .88),
            rgba(5, 7, 12, .95)
        );
    box-shadow:
        inset 0 0 16px rgba(255, 255, 255, .018),
        0 12px 22px rgba(0, 0, 0, .26);
    text-align: center;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.favorite-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--grouik-blue),
            var(--grouik-yellow),
            transparent
        );
}

.favorite-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 197, 66, .48);
    box-shadow: var(--grouik-shadow-hover);
}

.favorite-card.is-shiny {
    border-color: rgba(245, 197, 66, .52);
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(245, 197, 66, .18),
            transparent 48%
        ),
        linear-gradient(
            180deg,
            rgba(38, 29, 8, .84),
            rgba(5, 7, 12, .95)
        );
}

.favorite-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.favorite-number {
    color: var(--grouik-muted);
    font-size: .64rem;
    font-weight: 900;
}

.favorite-shiny {
    padding: 3px 7px;
    border: 1px solid rgba(245, 197, 66, .35);
    border-radius: 999px;
    background: rgba(245, 197, 66, .08);
    color: var(--grouik-yellow-hot);
    font-size: .56rem;
    font-weight: 900;
    text-transform: uppercase;
}

.favorite-sprite-frame {
    display: grid;
    width: 112px;
    height: 112px;
    margin: 6px auto 3px;
    place-items: center;
}

.favorite-sprite-frame img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    image-rendering: pixelated;
    filter:
        drop-shadow(0 10px 8px rgba(0, 0, 0, .50))
        drop-shadow(0 0 8px rgba(20, 168, 255, .13));
}

.favorite-name {
    margin: 3px 0 0;
    color: var(--grouik-text);
    font-size: .85rem;
    font-weight: 900;
}

.favorite-name span {
    color: var(--grouik-blue-soft);
}

.favorite-stats {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.favorite-stats span,
.favorite-tier {
    padding: 4px 7px;
    border: 1px solid rgba(20, 168, 255, .16);
    border-radius: 999px;
    background: rgba(20, 168, 255, .06);
    color: #dbeaf5;
    font-size: .58rem;
    font-weight: 800;
}

.favorite-tier {
    display: inline-flex;
    margin-top: 7px;
    color: var(--grouik-muted);
    text-transform: uppercase;
}

/* =========================================================
   PIERRES D’ÉVOLUTION
========================================================= */

.stones-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    margin-bottom: 18px;
}

.stones-intro h2 {
    margin: 3px 0 0;
    color: var(--grouik-text);
    font-family: var(--grouik-font-title);
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

.stones-intro p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--grouik-muted);
    font-size: .86rem;
}

.stones-summary {
    display: flex;
    gap: 10px;
}

.stones-summary article {
    display: grid;
    min-width: 105px;
    min-height: 86px;
    align-content: center;
    padding: 10px;
    border: 1px solid rgba(20, 168, 255, .18);
    border-radius: 13px;
    background: rgba(20, 168, 255, .06);
    text-align: center;
}

.stones-summary strong {
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: 1.85rem;
    line-height: 1;
}

.stones-summary span {
    margin-top: 4px;
    color: var(--grouik-muted);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stone-anchor-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 0 34px;
    flex-wrap: wrap;
}

.stone-anchor-nav a {
    padding: 8px 12px;
    border: 1px solid rgba(20, 168, 255, .22);
    border-radius: 999px;
    background: rgba(20, 168, 255, .07);
    color: var(--grouik-blue-soft);
    font-size: .65rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.stone-group {
    scroll-margin-top: 96px;
}

.stone-group + .stone-group {
    margin-top: 44px;
}

.stone-group-heading {
    max-width: 820px;
    margin-bottom: 16px;
}

.stone-group-heading h2 {
    margin: 3px 0 0;
    color: var(--grouik-text);
    font-family: var(--grouik-font-title);
    font-size: 2.15rem;
    line-height: 1;
    text-transform: uppercase;
}

.stone-group-heading p {
    margin: 10px 0 0;
    color: var(--grouik-muted);
    font-size: .84rem;
}

.stone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.stone-card {
    --stone-color: var(--grouik-blue);
}

.stone-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 100% 0%,
            color-mix(in srgb, var(--stone-color) 18%, transparent),
            transparent 40%
        );
    pointer-events: none;
}

.stone-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 16px;
}

.stone-icon {
    display: grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid color-mix(
        in srgb,
        var(--stone-color) 58%,
        transparent
    );
    border-radius: 14px;
    background: color-mix(
        in srgb,
        var(--stone-color) 12%,
        transparent
    );
    box-shadow: 0 0 18px color-mix(
        in srgb,
        var(--stone-color) 17%,
        transparent
    );
    font-size: 1.45rem;
}

.stone-header h3 {
    margin: 2px 0 0;
    color: var(--grouik-text);
    font-family: var(--grouik-font-title);
    font-size: 1.6rem;
    line-height: 1;
    text-transform: uppercase;
}

.stone-header p {
    margin: 7px 0 0;
    color: var(--grouik-muted);
    font-size: .76rem;
}

.evolution-list {
    position: relative;
    display: grid;
    gap: 9px;
}

.evo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
}

.pkmn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pkmn.to {
    justify-content: flex-end;
    text-align: right;
}

.pkmn img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter:
        drop-shadow(0 7px 6px rgba(0, 0, 0, .38))
        drop-shadow(
            0 0 7px
            color-mix(in srgb, var(--stone-color) 20%, transparent)
        );
}

.pkmn-name {
    display: block;
    overflow: hidden;
    color: var(--grouik-text);
    font-size: .70rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkmn-id {
    display: block;
    margin-top: 2px;
    color: var(--grouik-muted-dark);
    font-size: .58rem;
    font-weight: 800;
}

.arrow {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: var(--stone-color);
    font-weight: 900;
    text-shadow: 0 0 9px color-mix(
        in srgb,
        var(--stone-color) 42%,
        transparent
    );
}

.arrow-note {
    max-width: 120px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #dce6ee;
    font-size: .50rem;
    text-align: center;
}

.fire { --stone-color: #ff7043; }
.water { --stone-color: #4fc3f7; }
.thunder { --stone-color: #ffd54f; }
.leaf { --stone-color: #66bb6a; }
.moon { --stone-color: #b39ddb; }
.sun { --stone-color: #ffca28; }
.night { --stone-color: #7e57c2; }
.metal { --stone-color: #b0bec5; }
.royal { --stone-color: #f6c453; }
.trade { --stone-color: #26c6da; }
.debugant { --stone-color: #ef5350; }

/* =========================================================
   MENTIONS LÉGALES
========================================================= */

.legal-document {
    padding: 30px;
}

.legal-intro {
    padding: 18px 20px;
    border: 1px solid rgba(20, 168, 255, .20);
    border-left: 4px solid var(--grouik-blue);
    border-radius: 12px;
    background:
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .42),
            rgba(5, 7, 12, .30)
        );
    color: var(--grouik-muted);
    font-size: .86rem;
}

.legal-intro strong {
    color: var(--grouik-text);
}

.legal-section {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.legal-number {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(245, 197, 66, .42);
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 197, 66, .14),
            rgba(20, 168, 255, .10)
        );
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: 1.25rem;
    font-weight: 700;
}

.legal-section h2 {
    margin: 3px 0 0;
    color: var(--grouik-text);
    font-family: var(--grouik-font-title);
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

.legal-list {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.legal-list li {
    position: relative;
    padding: 11px 12px 11px 38px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
    color: #dce7ef;
    font-size: .80rem;
}

.legal-list li::before {
    content: "▹";
    position: absolute;
    top: 10px;
    left: 14px;
    color: var(--grouik-blue-soft);
    font-weight: 900;
}

.legal-list strong {
    color: var(--grouik-yellow-hot);
}

.legal-update {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 22px;
    color: var(--grouik-muted);
    font-size: .68rem;
    font-weight: 700;
}

/* =========================================================
   RESPONSIVE DES SOUS-PAGES
========================================================= */

@media (max-width: 900px) {
    .pg-site-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 0;
    }

    .pg-site-menu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .pg-site-menu a {
        flex: 0 0 auto;
    }

    .hof-ranking-grid,
    .stone-grid {
        grid-template-columns: 1fr;
    }

    .stones-intro {
        grid-template-columns: 1fr;
    }

    .stones-summary {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .pg-site-header-inner,
    .pg-subpage-shell,
    .pg-subpage-narrow {
        width: min(100% - 24px, var(--site-width));
    }

    .pg-subpage-shell {
        padding-top: 42px;
    }

    .pg-page-hero h1 {
        font-size: clamp(3rem, 17vw, 4.7rem);
    }

    .pg-site-brand small {
        display: none;
    }

    .pg-panel,
    .hof-card {
        padding: 17px;
    }

    .patch-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }

    .patch-index {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: .98rem;
    }

    .patch-timeline::before {
        left: 21px;
    }

    .patch-header {
        flex-direction: column;
    }

    .favorite-trainer-header {
        flex-direction: column;
    }

    .favorite-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .favorite-card {
        padding: 10px 7px;
    }

    .favorite-sprite-frame {
        width: 90px;
        height: 90px;
    }

    .favorite-sprite-frame img {
        width: 86px;
        height: 86px;
    }

    .stones-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .evo-row {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .pkmn,
    .pkmn.to {
        justify-content: center;
        text-align: center;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .arrow-note {
        transform: rotate(-90deg);
    }

    .legal-document {
        padding: 18px;
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .legal-number {
        width: 46px;
        height: 46px;
    }

    .legal-update {
        flex-wrap: wrap;
    }
}

@media (max-width: 410px) {
    .favorite-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   COLLECTION.PHP — INTERFACE DE CARTES V1
========================================================= */

.pg-collection-page {
    min-height: 100vh;
    margin: 0 !important;
    padding: 26px 20px 64px !important;
    overflow-x: hidden;
    background: transparent !important;
    color: var(--grouik-text);
    font-family: var(--grouik-font-body) !important;
}

.pg-collection-page .container {
    width: min(1540px, 100%) !important;
    max-width: none !important;
    margin: 0 auto;
}

/* ---------- EN-TÊTE DU DRESSEUR ---------- */

.pg-collection-page .header {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(190px, 230px);
    align-items: stretch !important;
    gap: 18px;
    overflow: hidden;
    margin-bottom: 28px !important;
    padding: 22px !important;
    border: 1px solid var(--grouik-line) !important;
    border-radius: var(--grouik-radius-xl) !important;
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(245, 197, 66, .13),
            transparent 31%
        ),
        radial-gradient(
            circle at 92% 92%,
            rgba(20, 168, 255, .18),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(6, 43, 99, .84),
            rgba(5, 7, 12, .97) 42%,
            rgba(5, 7, 12, .98) 72%,
            rgba(6, 31, 64, .90)
        ) !important;
    box-shadow:
        var(--grouik-shadow),
        inset 0 0 24px rgba(255, 255, 255, .022);
}

.pg-collection-page .header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--grouik-blue) 18%,
            var(--grouik-yellow) 42%,
            #ffffff 50%,
            var(--grouik-yellow) 58%,
            var(--grouik-blue) 82%,
            transparent
        );
    filter: drop-shadow(0 0 5px rgba(20, 168, 255, .72));
    opacity: .88;
}

.collection-profile {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(245, 197, 66, .26);
    border-radius: 17px;
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(245, 197, 66, .12),
            transparent 42%
        ),
        rgba(5, 7, 12, .50);
    box-shadow: inset 0 0 18px rgba(20, 168, 255, .05);
}

.collection-profile-kicker {
    color: var(--grouik-yellow-hot);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.collection-profile h1 {
    overflow: hidden;
    margin: 4px 0 12px;
    color: var(--grouik-text);
    font-family: var(--grouik-font-title);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: .92;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.collection-xp {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.collection-xp span {
    color: var(--grouik-muted);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.collection-xp strong {
    color: var(--grouik-blue-soft);
    font-size: 1.05rem;
    white-space: nowrap;
}

.pg-collection-page .stats-container {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(105px, 1fr)) !important;
    gap: 10px !important;
    min-width: 0;
    margin: 0 !important;
}

.pg-collection-page .stat-item {
    position: relative;
    overflow: hidden;
    min-height: 82px;
    padding: 12px 10px !important;
    border: 1px solid rgba(20, 168, 255, .18) !important;
    border-radius: 13px !important;
    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(20, 168, 255, .12),
            transparent 48%
        ),
        rgba(5, 7, 12, .52) !important;
    box-shadow: inset 0 0 14px rgba(255, 255, 255, .018);
}

.pg-collection-page .stat-item::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--grouik-blue),
            var(--grouik-yellow),
            transparent
        );
    opacity: .46;
}

.pg-collection-page .stat-label {
    color: var(--grouik-muted) !important;
    font-size: .58rem !important;
    letter-spacing: .06em;
}

.pg-collection-page .stat-value {
    margin-top: 3px;
    color: var(--grouik-text) !important;
    font-family: var(--grouik-font-title);
    font-size: 1.33rem !important;
    line-height: 1;
}

.pg-collection-page .header-actions {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.pg-collection-page .header-actions .btn-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 9px !important;
    border-width: 1px !important;
    border-radius: 10px !important;
    background: rgba(5, 7, 12, .64) !important;
    font-size: .62rem !important;
    letter-spacing: .035em;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, .018);
}

.pg-collection-page .header-actions .btn-nav:hover {
    transform: translateY(-2px);
    background: rgba(20, 168, 255, .10) !important;
}

.pg-collection-page .header-actions .transfer,
.pg-collection-page .header-actions .validate {
    grid-column: 1 / -1;
}

/* ---------- SECTIONS / SLIDERS ---------- */

.pg-collection-page .section-wrapper {
    position: relative;
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid rgba(20, 168, 255, .14);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(6, 24, 50, .35),
            rgba(5, 7, 12, .42)
        );
    box-shadow:
        0 14px 32px rgba(0, 0, 0, .28),
        inset 0 0 18px rgba(20, 168, 255, .025);
}

.pg-collection-page .section-header {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    margin: 0 !important;
    padding: 15px 18px 15px 23px !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(20, 168, 255, .14),
            transparent 38%
        ),
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .64),
            rgba(5, 7, 12, .88) 52%,
            rgba(5, 7, 12, .94)
        ) !important;
    cursor: pointer;
    transition:
        background .22s ease,
        box-shadow .22s ease;
}

.pg-collection-page .section-header::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background:
        linear-gradient(
            180deg,
            var(--grouik-yellow),
            var(--grouik-blue)
        );
    box-shadow: 0 0 12px rgba(20, 168, 255, .38);
}

.pg-collection-page .section-header:hover {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(245, 197, 66, .11),
            transparent 38%
        ),
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .78),
            rgba(5, 7, 12, .90) 52%,
            rgba(5, 7, 12, .95)
        ) !important;
    box-shadow: inset 0 0 20px rgba(20, 168, 255, .035);
}

.section-heading-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.section-kicker {
    color: var(--grouik-yellow-hot);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pg-collection-page .section-title {
    margin: 0 !important;
    color: var(--grouik-text) !important;
    font-family: var(--grouik-font-title);
    font-size: clamp(1.45rem, 3vw, 1.92rem) !important;
    line-height: 1;
    text-transform: uppercase;
}

.section-count {
    color: var(--grouik-muted);
    font-size: .65rem;
    font-weight: 700;
}

.pg-collection-page .section-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(20, 168, 255, .25);
    border-radius: 12px;
    background: rgba(20, 168, 255, .08);
    color: var(--grouik-blue-soft);
    font-size: 1rem !important;
    transition:
        transform .32s ease,
        background .2s ease,
        color .2s ease;
}

.pg-collection-page .is-closed .section-icon {
    transform: rotate(-90deg);
    background: rgba(245, 197, 66, .07);
    color: var(--grouik-yellow-hot);
}

.pg-collection-page .collapsible-content {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transition:
        opacity .28s ease,
        max-height .46s ease;
}

.pg-collection-page .is-closed .collapsible-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* ---------- BARRES DE FILTRES ---------- */

.collection-toolbar {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    border-bottom: 1px solid rgba(20, 168, 255, .15);
    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(20, 168, 255, .08),
            transparent 35%
        ),
        rgba(5, 7, 12, .56);
}

.collection-toolbar-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .65fr) minmax(185px, .8fr) minmax(120px, .45fr);
    align-items: end;
    gap: 11px;
}

.pokedex-filter-toolbar .collection-toolbar-main {
    grid-template-columns: minmax(260px, 1fr) minmax(170px, .42fr) minmax(120px, .32fr);
}

.collection-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.collection-filter-field > span,
.collection-sort-label,
.collection-filter-result span {
    color: var(--grouik-muted);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.collection-filter-field input,
.collection-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(20, 168, 255, .22);
    border-radius: 10px;
    background:
        linear-gradient(
            180deg,
            rgba(6, 24, 50, .68),
            rgba(5, 7, 12, .82)
        );
    color: var(--grouik-text);
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.collection-filter-field input::placeholder {
    color: var(--grouik-muted-dark);
}

.collection-filter-field input:focus,
.collection-filter-field select:focus {
    border-color: rgba(20, 168, 255, .76);
    box-shadow:
        0 0 0 3px rgba(20, 168, 255, .09),
        0 0 16px rgba(20, 168, 255, .08);
}

.collection-filter-field select option {
    background: #08101a;
    color: var(--grouik-text);
}

.collection-filter-result {
    display: grid;
    align-content: center;
    min-height: 42px;
    padding: 7px 11px;
    border: 1px solid rgba(245, 197, 66, .25);
    border-radius: 10px;
    background: rgba(245, 197, 66, .055);
    text-align: center;
}

.collection-filter-result strong {
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: 1.45rem;
    line-height: 1;
}

.collection-sort-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.collection-sort-label {
    margin-right: 3px;
    color: var(--grouik-yellow-hot);
}

.pg-collection-page .btn-sort {
    min-height: 32px;
    padding: 6px 10px !important;
    border: 1px solid rgba(20, 168, 255, .18) !important;
    border-radius: 9px !important;
    background: rgba(20, 168, 255, .055) !important;
    color: var(--grouik-muted) !important;
    font-size: .59rem !important;
    font-weight: 900 !important;
    letter-spacing: .025em;
}

.pg-collection-page .btn-sort:hover {
    border-color: rgba(245, 197, 66, .46) !important;
    background: rgba(245, 197, 66, .075) !important;
    color: var(--grouik-yellow-hot) !important;
}

.pg-collection-page .btn-sort.active {
    border-color: rgba(20, 168, 255, .72) !important;
    background:
        linear-gradient(
            135deg,
            rgba(20, 168, 255, .28),
            rgba(6, 43, 99, .48)
        ) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(20, 168, 255, .11);
}

.pg-collection-page .btn-filter-reset {
    margin-left: auto;
    border-color: rgba(255, 92, 108, .25) !important;
    color: #ff9ca6 !important;
}

/* ---------- GRILLES ---------- */

.pg-collection-page .grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)) !important;
    gap: 18px !important;
    padding: 20px 18px 26px !important;
}

#section-favoris .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

#section-pokedex .grid {
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)) !important;
    gap: 16px !important;
    padding: 16px 4px 22px !important;
}

#section-archives .grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)) !important;
}

.pg-collection-page .pokemon-card[hidden] {
    display: none !important;
}

/* ---------- EFFET CARTE DE COLLECTION ---------- */

.pg-collection-page .pokemon-card {
    --card-accent: var(--grouik-blue);
    --card-accent-soft: rgba(20, 168, 255, .16);

    position: relative;
    isolation: isolate;
    display: flex !important;
    flex-direction: column;
    min-height: 405px !important;
    overflow: hidden;
    padding: 16px !important;
    border: 1px solid color-mix(
        in srgb,
        var(--card-accent) 40%,
        rgba(255, 255, 255, .08)
    ) !important;
    border-radius: 19px !important;
    background:
        radial-gradient(
            circle at 50% 20%,
            var(--card-accent-soft),
            transparent 37%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(245, 197, 66, .07),
            transparent 42%
        ),
        linear-gradient(
            165deg,
            rgba(13, 31, 55, .96),
            rgba(5, 7, 12, .98) 54%,
            rgba(7, 18, 34, .98)
        ) !important;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, .38),
        0 0 0 rgba(20, 168, 255, 0),
        inset 0 4px 0 color-mix(
            in srgb,
            var(--card-accent) 76%,
            #ffffff 8%
        ),
        inset 0 0 20px rgba(255, 255, 255, .018);
    perspective: 1100px;
    transform: translateZ(0);
    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        filter .24s ease;
}

.pg-collection-page .pokemon-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .035),
            transparent 30%,
            transparent 70%,
            rgba(20, 168, 255, .025)
        );
    pointer-events: none;
}

.pg-collection-page .pokemon-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -70%;
    left: -105%;
    width: 70%;
    height: 230%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .055),
            transparent
        );
    transform: rotate(20deg);
    pointer-events: none;
    transition: left .55s ease;
}

.pg-collection-page .pokemon-card:hover {
    z-index: 4;
    transform:
        translateY(-7px)
        rotateX(1.2deg)
        rotateY(-1deg);
    border-color: color-mix(
        in srgb,
        var(--card-accent) 72%,
        #ffffff 12%
    ) !important;
    box-shadow:
        0 24px 42px rgba(0, 0, 0, .52),
        0 0 26px color-mix(
            in srgb,
            var(--card-accent) 22%,
            transparent
        ),
        inset 0 4px 0 color-mix(
            in srgb,
            var(--card-accent) 86%,
            #ffffff 8%
        );
}

.pg-collection-page .pokemon-card:hover::after {
    left: 145%;
}

.pg-collection-page .pokemon-card > * {
    position: relative;
    z-index: 2;
}

.pg-collection-page .pokemon-card[data-archetype="bagarreur"] {
    --card-accent: #ff6c62;
    --card-accent-soft: rgba(255, 108, 98, .17);
}

.pg-collection-page .pokemon-card[data-archetype="protecteur"] {
    --card-accent: #45b5ff;
    --card-accent-soft: rgba(69, 181, 255, .17);
}

.pg-collection-page .pokemon-card[data-archetype="feinteur"] {
    --card-accent: #bd7dff;
    --card-accent-soft: rgba(189, 125, 255, .17);
}

.pg-collection-page .pokemon-card[data-archetype="none"] {
    --card-accent: #71879b;
    --card-accent-soft: rgba(113, 135, 155, .11);
}

.pg-collection-page .pokemon-card.favorite-glow {
    --card-accent: var(--grouik-yellow);
    --card-accent-soft: rgba(245, 197, 66, .17);
    border-color: rgba(245, 197, 66, .56) !important;
}

.pg-collection-page .pokemon-card.shiny-card,
.pg-collection-page .pokemon-card[data-shiny="1"] {
    border-color: rgba(255, 223, 110, .66) !important;
    animation: none !important;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, .42),
        0 0 18px rgba(245, 197, 66, .15),
        inset 0 4px 0 rgba(255, 223, 110, .86);
}

.pg-collection-page .pokemon-card.shiny-card::before,
.pg-collection-page .pokemon-card[data-shiny="1"]::before {
    background:
        linear-gradient(
            120deg,
            rgba(255, 107, 107, .045),
            rgba(255, 223, 110, .07),
            rgba(104, 221, 255, .055),
            rgba(189, 145, 255, .045)
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .035),
            transparent 36%
        );
    background-size: 180% 180%;
    animation: pgHoloCard 6s ease-in-out infinite;
}

@keyframes pgHoloCard {
    50% {
        background-position: 100% 100%;
    }
}

.pg-collection-page .pokemon-card.locked-box {
    opacity: .74 !important;
    filter: saturate(.76);
    border-color: rgba(155, 124, 255, .62) !important;
}

.pg-collection-page .pokemon-card.archived {
    min-height: 315px !important;
    opacity: .78 !important;
    filter: saturate(.65);
    border-style: dashed !important;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(113, 135, 155, .10),
            transparent 38%
        ),
        linear-gradient(
            165deg,
            rgba(19, 24, 31, .96),
            rgba(5, 7, 12, .98)
        ) !important;
}

.pg-collection-page #section-favoris .pokemon-card {
    min-height: 330px !important;
}

.pg-collection-page #section-pokedex .pokemon-card {
    min-height: 335px !important;
    padding: 14px !important;
}

/* ---------- SOMMET ET IMAGE DE CARTE ---------- */

.pg-collection-page .pokemon-id {
    top: 10px !important;
    right: 11px !important;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid color-mix(
        in srgb,
        var(--card-accent) 32%,
        transparent
    );
    border-radius: 999px;
    background: rgba(5, 7, 12, .72);
    color: color-mix(
        in srgb,
        var(--card-accent) 82%,
        #ffffff 18%
    ) !important;
    font-size: .58rem !important;
    font-weight: 900;
    letter-spacing: .05em;
}

.pg-collection-page .breed-badge {
    top: 10px !important;
    left: 11px !important;
    width: 29px !important;
    height: 29px !important;
    border-radius: 9px !important;
    background: rgba(5, 7, 12, .80) !important;
}

.pg-collection-page .box-lock-badge {
    top: 47px !important;
    right: 11px !important;
}

#section-favoris .pokemon-card > img,
#section-actifs .pokemon-card > img,
#section-archives .pokemon-card > img {
    width: 124px !important;
    height: 124px !important;
    margin: 24px auto 4px !important;
    padding: 9px;
    object-fit: contain;
    image-rendering: pixelated;
    border: 1px solid color-mix(
        in srgb,
        var(--card-accent) 24%,
        rgba(255, 255, 255, .04)
    );
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--card-accent) 16%,
                transparent
            ),
            rgba(5, 7, 12, .18) 62%,
            transparent 63%
        );
    filter:
        drop-shadow(0 12px 9px rgba(0, 0, 0, .48))
        drop-shadow(
            0 0 10px
            color-mix(
                in srgb,
                var(--card-accent) 18%,
                transparent
            )
        );
}

.pg-collection-page .pokemon-name {
    min-height: 33px;
    margin: 6px 0 2px !important;
    color: var(--grouik-text);
    font-size: .82rem !important;
    font-weight: 900 !important;
    letter-spacing: .035em;
    line-height: 1.16;
    text-transform: uppercase;
}

.pg-collection-page .pokemon-traits {
    min-height: 47px;
    margin: 5px 0 8px !important;
}

.pg-collection-page .trait-badge {
    min-height: 22px !important;
    padding: 4px 8px !important;
    border-color: rgba(255, 255, 255, .13);
    font-size: .51rem !important;
}

.pg-collection-page .archetype-badge {
    max-width: 100%;
    margin-top: 2px;
    background: rgba(5, 7, 12, .56);
}

/* ---------- INFORMATIONS ET BARRES ---------- */

.pg-collection-page .hp-text {
    margin: 5px 0 4px !important;
    color: #e9f9e6;
    font-size: .68rem !important;
}

.pg-collection-page .hp-bar,
.pg-collection-page .xp-bar-container {
    height: 9px !important;
    overflow: hidden;
    margin: 5px 0 9px !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, .58) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .44);
}

.pg-collection-page .hp-fill {
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #48d16d,
            #83d85c,
            #c4f78d
        ) !important;
    box-shadow: 0 0 9px rgba(131, 216, 92, .32);
}

.pg-collection-page .xp-bar-fill {
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--grouik-blue-deep),
            var(--grouik-blue),
            var(--grouik-blue-soft)
        ) !important;
    box-shadow: 0 0 8px rgba(20, 168, 255, .30);
}

.pg-collection-page .history-info {
    min-height: 75px !important;
    margin-top: 9px !important;
    padding: 9px 7px !important;
    border: 1px solid rgba(255, 255, 255, .065) !important;
    border-radius: 11px !important;
    background:
        linear-gradient(
            180deg,
            rgba(6, 24, 50, .42),
            rgba(5, 7, 12, .66)
        ) !important;
}

.pg-collection-page .history-info .status-line {
    font-size: .61rem !important;
}

.pg-collection-page .history-info .date-line {
    font-size: .56rem !important;
}

/* ---------- ACTIONS DE CARTE ---------- */

.action-area {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
}

.action-area > div {
    grid-column: 1 / -1;
}

.pg-collection-page .btn-card,
.pg-collection-page .desc-btn,
.pg-collection-page .cry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    margin: 0 !important;
    padding: 7px 8px !important;
    border-width: 1px !important;
    border-radius: 9px !important;
    background: rgba(5, 7, 12, .60) !important;
    font-size: .55rem !important;
    font-weight: 900 !important;
    line-height: 1.15;
    letter-spacing: .025em;
    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.pg-collection-page .btn-card:hover,
.pg-collection-page .desc-btn:hover,
.pg-collection-page .cry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .24);
}

.pg-collection-page .btn-evolve-ready {
    grid-column: 1 / -1;
    animation: pgEvolvePulse 2.1s ease-in-out infinite !important;
    background: rgba(245, 197, 66, .11) !important;
}

@keyframes pgEvolvePulse {
    50% {
        border-color: rgba(255, 223, 110, .94);
        box-shadow:
            0 0 18px rgba(245, 197, 66, .17),
            inset 0 0 12px rgba(245, 197, 66, .07);
    }
}

/* ---------- POKÉDEX ---------- */

.pg-collection-page .pokedex-region-wrapper {
    margin: 16px 18px 0;
    overflow: hidden;
    border: 1px solid rgba(20, 168, 255, .11);
    border-radius: 14px;
    background: rgba(5, 7, 12, .40);
}

.pg-collection-page .pokedex-region-header {
    min-height: 58px;
    margin: 0 !important;
    padding: 12px 15px !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(
            90deg,
            rgba(6, 43, 99, .55),
            rgba(5, 7, 12, .82)
        ) !important;
}

.pg-collection-page .pokedex-region-title {
    color: var(--grouik-yellow-hot) !important;
    font-family: var(--grouik-font-title);
    font-size: 1.15rem !important;
    letter-spacing: .06em;
}

.pg-collection-page .pokedex-region-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(20, 168, 255, .20);
    border-radius: 9px;
    background: rgba(20, 168, 255, .07);
    color: var(--grouik-blue-soft);
}

.pg-collection-page #section-pokedex .card-inner {
    width: 126px !important;
    height: 126px !important;
    margin: 22px auto 4px !important;
    border: 1px solid color-mix(
        in srgb,
        var(--card-accent) 22%,
        transparent
    );
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--card-accent) 14%,
                transparent
            ),
            rgba(5, 7, 12, .20) 62%,
            transparent 63%
        );
}

.pg-collection-page #section-pokedex .card-front img,
.pg-collection-page #section-pokedex .card-back img {
    width: 112px !important;
    height: 112px !important;
    object-fit: contain;
    image-rendering: pixelated;
    filter:
        drop-shadow(0 11px 8px rgba(0, 0, 0, .46))
        drop-shadow(0 0 8px rgba(20, 168, 255, .12));
}

.pg-collection-page .pokedex-card.not-owned {
    opacity: .48 !important;
    filter: saturate(.25);
}

.pg-collection-page .pokedex-card.not-owned img {
    filter:
        brightness(0)
        drop-shadow(0 10px 7px rgba(0, 0, 0, .45)) !important;
}

.pg-collection-page .pokedex-card.pokedex-complete {
    --card-accent: #d7e4f2;
    --card-accent-soft: rgba(215, 228, 242, .13);
}

.pg-collection-page .pokedex-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 7px !important;
    margin: 8px 0 10px !important;
}

.pg-collection-page .pokedex-meta {
    width: 100%;
    margin-top: auto !important;
    padding: 9px 8px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: .57rem !important;
}

/* ---------- TRANSFERT ---------- */

.pg-collection-page.transfer-mode {
    background: transparent !important;
}

.pg-collection-page.transfer-mode .section-wrapper:not(#section-actifs) {
    opacity: .28;
    filter: grayscale(.55);
}

.pg-collection-page.transfer-mode .pokemon-card.selected {
    transform: translateY(-4px) scale(.97);
    border-color: rgba(255, 92, 108, .90) !important;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 92, 108, .18),
            transparent 40%
        ),
        linear-gradient(
            165deg,
            rgba(61, 12, 23, .96),
            rgba(5, 7, 12, .98)
        ) !important;
    box-shadow:
        0 0 0 3px rgba(255, 92, 108, .18),
        0 18px 32px rgba(0, 0, 0, .44),
        0 0 22px rgba(255, 92, 108, .16);
}

/* ---------- MODALES ET SLIDER XP ---------- */

.pg-collection-page .modal,
.pg-collection-page #descModal,
.pg-collection-page #healModal {
    backdrop-filter: blur(9px);
}

.pg-collection-page .modal-content,
.pg-collection-page #descModalContent,
.pg-collection-page #healContent {
    border-width: 1px !important;
    border-radius: 18px !important;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(20, 168, 255, .13),
            transparent 42%
        ),
        linear-gradient(
            155deg,
            rgba(6, 43, 99, .92),
            rgba(5, 7, 12, .98) 52%
        ) !important;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .64),
        0 0 28px rgba(20, 168, 255, .10) !important;
}

.xp-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--grouik-muted);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pg-collection-page .xp-number-input {
    width: 100% !important;
    min-height: 46px;
    margin: 0 0 14px !important;
    padding: 8px 10px;
    border: 1px solid rgba(20, 168, 255, .46) !important;
    border-radius: 10px;
    background: rgba(5, 7, 12, .72) !important;
    color: var(--grouik-text);
    font-size: 1.1rem !important;
}

.xp-slider-shell {
    margin: 6px 0 13px;
    padding: 12px;
    border: 1px solid rgba(20, 168, 255, .15);
    border-radius: 12px;
    background: rgba(5, 7, 12, .46);
}

.pg-collection-page #xpRange {
    width: 100%;
    height: 8px;
    margin: 6px 0 0 !important;
    appearance: none;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--grouik-blue-deep),
            var(--grouik-blue),
            var(--grouik-yellow)
        );
    outline: none;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .46);
}

.pg-collection-page #xpRange::-webkit-slider-thumb {
    width: 23px;
    height: 23px;
    appearance: none;
    border: 3px solid #07101a;
    border-radius: 50%;
    background: var(--grouik-yellow-hot);
    cursor: grab;
    box-shadow:
        0 0 0 2px rgba(245, 197, 66, .42),
        0 0 14px rgba(245, 197, 66, .34);
}

.pg-collection-page #xpRange::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #07101a;
    border-radius: 50%;
    background: var(--grouik-yellow-hot);
    cursor: grab;
    box-shadow:
        0 0 0 2px rgba(245, 197, 66, .42),
        0 0 14px rgba(245, 197, 66, .34);
}

.xp-slider-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--grouik-muted-dark);
    font-size: .58rem;
    font-weight: 800;
}

.xp-remaining {
    margin-bottom: 18px;
    color: var(--grouik-muted);
    font-size: .75rem;
}

.xp-remaining b {
    color: var(--grouik-yellow-hot);
}

/* ---------- PIED DE PAGE ---------- */

.collection-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 0;
    padding: 20px;
    border-top: 1px solid rgba(245, 197, 66, .18);
    color: var(--grouik-muted);
}

.collection-footer span {
    color: var(--grouik-yellow-hot);
    font-family: var(--grouik-font-title);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
}

.collection-footer small {
    font-size: .68rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1220px) {
    .pg-collection-page .header {
        grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    }

    .pg-collection-page .header-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .pg-collection-page .header-actions .transfer,
    .pg-collection-page .header-actions .validate {
        grid-column: auto;
    }

    .collection-toolbar-main {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, .55fr));
    }

    .collection-filter-result {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .pg-collection-page {
        padding: 14px 12px 48px !important;
    }

    .pg-collection-page .header {
        grid-template-columns: 1fr;
        padding: 15px !important;
    }

    .pg-collection-page .stats-container {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .pg-collection-page .header-actions {
        grid-column: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pg-collection-page .header-actions .transfer,
    .pg-collection-page .header-actions .validate {
        grid-column: span 1;
    }

    .collection-toolbar-main,
    .pokedex-filter-toolbar .collection-toolbar-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-search-field {
        grid-column: 1 / -1;
    }

    .collection-filter-result {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .pg-collection-page .grid,
    #section-favoris .grid,
    #section-archives .grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    }

    #section-pokedex .grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    .pg-collection-page .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .pg-collection-page .header-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-collection-page .header-actions .transfer,
    .pg-collection-page .header-actions .validate {
        grid-column: 1 / -1;
    }

    .collection-toolbar {
        padding: 13px;
    }

    .collection-toolbar-main,
    .pokedex-filter-toolbar .collection-toolbar-main {
        grid-template-columns: 1fr;
    }

    .collection-search-field,
    .collection-filter-result {
        grid-column: auto;
    }

    .collection-sort-row {
        align-items: stretch;
    }

    .collection-sort-label {
        flex-basis: 100%;
    }

    .pg-collection-page .btn-sort {
        flex: 1 1 calc(33.333% - 7px);
    }

    .pg-collection-page .btn-filter-reset {
        margin-left: 0;
        flex-basis: 100%;
    }

    .pg-collection-page .grid,
    #section-favoris .grid,
    #section-archives .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 13px 10px 18px !important;
    }

    #section-pokedex .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .pg-collection-page .pokemon-card {
        min-height: 390px !important;
        padding: 12px 9px !important;
        border-radius: 15px !important;
    }

    .pg-collection-page #section-favoris .pokemon-card {
        min-height: 315px !important;
    }

    .pg-collection-page #section-pokedex .pokemon-card {
        min-height: 326px !important;
    }

    #section-favoris .pokemon-card > img,
    #section-actifs .pokemon-card > img,
    #section-archives .pokemon-card > img {
        width: 96px !important;
        height: 96px !important;
    }

    .pg-collection-page #section-pokedex .card-inner {
        width: 104px !important;
        height: 104px !important;
    }

    .pg-collection-page #section-pokedex .card-front img,
    .pg-collection-page #section-pokedex .card-back img {
        width: 92px !important;
        height: 92px !important;
    }

    .action-area {
        grid-template-columns: 1fr;
    }

    .pg-collection-page .btn-evolve-ready {
        grid-column: auto;
    }

    .collection-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .pg-collection-page .grid,
    #section-favoris .grid,
    #section-archives .grid,
    #section-pokedex .grid {
        grid-template-columns: 1fr !important;
    }

    .pg-collection-page .pokemon-card,
    .pg-collection-page #section-favoris .pokemon-card,
    .pg-collection-page #section-pokedex .pokemon-card {
        min-height: 0 !important;
    }
}

