.header { background: #1e293b; padding: 20px; border-radius: 10px; margin-bottom: 20px; border-left: 5px solid #3b82f6; }
        .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
        .card { background: #1e293b; border-radius: 15px; padding: 15px; border: 1px solid #334155; }
        .pkmn-name { text-align:center;font-size: 1.2rem; font-weight: bold; color: #60a5fa; margin-bottom: 5px; }
        .sub-info { font-size: 0.9rem; color: #94a3b8; margin-bottom: 10px; }
        .stats-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
        .stats-table td { padding: 3px 0; border-bottom: 1px solid #334155; }
        .stat-bar-bg { background: #334155; height: 8px; border-radius: 4px; width: 100px; display: inline-block; }
        .stat-bar-fill { background: #3b82f6; height: 100%; border-radius: 4px; }
        .moves { margin-top: 10px; background: #0f172a; padding: 10px; border-radius: 8px; }
        .move { font-size: 0.9rem; padding: 2px 0; }
        .tag-code { background: #3b82f6; padding: 5px 10px; border-radius: 5px; font-weight: bold; }
		.rental-code {
			background: #020617; /* Noir très profond */
			color: #ffffff;
			padding: 6px 16px;
			border-radius: 4px;
			font-family: 'Consolas', monospace;
			font-weight: 700;
			font-size: 1.1rem;
			border-left: 4px solid #3b82f6; /* Petite barre bleue discrète */
			letter-spacing: 2px;
			box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
		}
		
		/* Style des badges de type (icônes) */
		.type-icon {
			display: inline-block;
			width: 60px;
			text-align: center;
			font-size: 0.7rem;
			font-weight: bold;
			color: white;
			text-transform: uppercase;
			border-radius: 4px;
			padding: 2px 0;
			margin-right: 8px;
			text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
		}

		/* Couleurs officielles des types */
		.normal { background-color: #A8A77A; }
		.fire { background-color: #EE8130; }
		.water { background-color: #6390F0; }
		.electric { background-color: #F7D02C; color: black; }
		.grass { background-color: #7AC74C; }
		.ice { background-color: #96D9D6; color: black; }
		.fighting { background-color: #C22E28; }
		.poison { background-color: #A33EA1; }
		.ground { background-color: #E2BF65; }
		.flying { background-color: #A98FF3; }
		.psychic { background-color: #F95587; }
		.bug { background-color: #A6B91A; }
		.rock { background-color: #B6A136; }
		.ghost { background-color: #735797; }
		.dragon { background-color: #6F35FC; }
		.steel { background-color: #B7B7CE; color: black; }
		.fairy { background-color: #D685AD; }
		.dark { background-color: #705746; }		
		
		
		
/* --- STYLES POUR LA VISUALISATION --- */
.sprite-wrapper {
    position: relative;
    display: inline-block; 
}

.item-icon-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    border: 2px solid #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.item-icon-badge img {
    max-width: 24px;
    max-height: 24px;
}

/* ALIGNEMENT PARFAIT DES CHEVRONS */
.stat-name-cell {
    width: 55px; /* Pil poil la taille de "SpD" + chevron */
    padding-bottom: 6px;
    padding-right: 8px; /* Petit espace avant le chiffre de la stat globale */
}
.stat-name-flex {
    display: flex;
    justify-content: space-between; /* Pousse le texte à gauche, et le chevron tout à droite */
    align-items: center;
}

.chevron {
    font-size: 0.8rem;
	padding:0 5px;
}
.chevron-up { color: #f87171; }   /* Rouge */
.chevron-down { color: #60a5fa; } /* Bleu */

/* Barres de stats */
.stat-bar-bg {
    background-color: #334155;
    height: 14px; 
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}
.stat-bar-fill {
    height: 100%;
    background: repeating-linear-gradient(
        to right,
        #f59e0b, 
        #f59e0b 6px,
        transparent 6px,
        transparent 8px
    );
}

/* Styles pour le bloc Likes/Vues */
.team-engagement {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}
.views-badge {
    color: #94a3b8;
    font-size: 0.9rem;
    background: #1e293b;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #334155;
}
.btn-like {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-like:hover {
    background: #334155;
    border-color: #f43f5e;
    color: #fff;
}
.btn-like.liked {
    background: #f43f5e;
    border-color: #f43f5e;
    color: #fff;
}		
.btn-edit {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    display: inline-flex; /* Force l'affichage compact */
    align-items: center;
    gap: 5px;
    text-decoration: none;
    width: max-content; /* Empêche de prendre toute la largeur */
    flex-shrink: 0;
}
.btn-edit:hover {
    background: #334155;
    border-color: #f59e0b;
    color: #fff;
}