.perso-container {
	display: grid;
	flex: 1;
	grid-template-columns: 1fr;
	gap: var(--spacing-large);
	justify-items: center;
}

.character {
	width: 100%;
	background: var(--page-color-1);
	border-radius: var(--spacing-small);
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: var(--spacing-small);
	box-sizing: border-box;
	justify-items: center;
	align-items: center;
	column-gap: var(--spacing-large);
	user-select: none;
	cursor: pointer;
	padding: var(--spacing-giant);
}

.character-count {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	justify-items: center;
	width: 100%;
}

.character-name {
	font-size: 18px;
}

.character-count> :nth-child(1) {
	background: var(--inactive-color);
	padding: var(--spacing-large);
	border-radius: 100px;
	width: 20px;
	height: 20px;
	font-size: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-family: system-ui;
}

/* Bas clair */
.character-body {
	background: var(--page-color-1);
	display: grid;
	width: 100%;
	justify-content: stretch;
	align-items: center;
}

.character-body h3 {
	margin: 0;
	font-size: 20px;
	color: #111827;
}

.character-body p {
	margin-top: 8px;
	font-size: 14px;
	color: #6b7280;
}

.character-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--spacing-medium);
	align-items: center;
	justify-items: center;
	background: var(--inactive-color);
	text-align: center;
	white-space: nowrap;
	padding: var(--spacing-medium);
	border-radius: var(--spacing-small);
}

.character-info-value {
	font-size: var(--spacing-medium);
}

.character-info-name {
	font-size: 10px;
}

.character-online {
	position: absolute;
	left: var(--spacing-small);
	top: var(--spacing-small);
	background-color: #29a729;
	color: #fff;
	padding: 2px;
	border-radius: var(--button-radius);
	font-weight: bold;
	font-size: 12px;
	padding: 2px 4px;
}

/* _________________________________ Zone expandable ________________________________ */
.character-expand {
	max-height: 0;
	transition: max-height 0.35s ease, padding 0.35s ease;
	background: var(--inactive-color);
	padding: 0 20px;
	margin-top: var(--spacing-small);

	box-sizing: border-box;
	width: 100%;
	border-radius: var(--spacing-small);
	overflow: hidden;
}

/* Ouvert */
.character.active .character-expand {
	max-height: 500px;
}

/* Tableau */
.character-table {
	width: 100%;
	border-collapse: collapse;
	font-family: system-ui;
}

.character-table th {
	text-align: left;
	color: #6b7280;
	font-weight: 500;
	padding: 8px 0;
}

.character-table td {
	text-align: right;
	font-weight: 600;
}

.expandable {
	position: relative;
}

/* visible uniquement quand FERMÉ */
.expandable:not(.active)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 8%;
	pointer-events: none;
}

/* chevron */
.expandable:not(.active)::before {
	content: "";
	position: absolute;
	bottom: 10px;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--texte-color);
	border-bottom: 2px solid var(--texte-color);
	transform: translateX(-50%) rotate(45deg);
	animation: chevronSlide 1.2s cubic-bezier(.4, 0, .2, 1) infinite;
	pointer-events: none;
}



/* stop quand ouvert */
.expandable.active::before,
.expandable.active::after {
	display: none;
}

@keyframes chevronSlide {
	0% {
		transform: translate(-50%, 0) rotate(45deg);
		opacity: 0.4;
	}

	60% {
		transform: translate(-50%, 6px) rotate(45deg);
		opacity: 1;
	}

	100% {
		transform: translate(-50%, 0) rotate(45deg);
		opacity: 0.4;
	}
}


/* --------------------------------_ MENU ----------------------


/* bouton des 3 points */
.character-menu-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 20px;
	cursor: pointer;
	color: var(--texte-color);
	user-select: none;
}

.character-menu-btn:hover {
	color: var(--link-color)
}

/* menu contextuel */
.character-menu {
	position: absolute;
	top: 35px;
	/* juste en dessous du bouton */
	right: 10px;
	display: none;
	/* caché par défaut */
	flex-direction: column;
	min-width: 150px;
	z-index: 1;
}
