.pageformation {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	animation: fade-up-formation 480ms ease-out;
}

.pageformation > h2 {
	font-family: "Archivo Black", "Sora", sans-serif;
	letter-spacing: 0.02em;
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	margin: 0;
	color: #173651;
}

.pageformation h1 {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	line-height: 1.25;
}

.descriptif {
	padding: 0.85rem 0.95rem;
	border-radius: 12px;
	border: 1px solid rgba(34, 56, 77, 0.14);
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(243, 250, 255, 0.95));
	box-shadow: 0 10px 24px rgba(17, 35, 52, 0.08);
}

.descriptif h4 {
	margin: 0.3rem 0;
	font-weight: 500;
	color: #274357;
}

.tabppa {
	max-width: 72%;
}

#graphbasique {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

#graphbasique section {
	box-shadow: 0 12px 25px rgba(18, 39, 58, 0.12);
	border: 1px solid rgba(27, 52, 74, 0.14);
	border-radius: 12px;
	margin: 8px;
	padding: 0.25rem 0.35rem;
	min-width: 45%;
	background: #ffffff;
}

#graphbasique tbody td {
	--color: #1f7a8c;
}

#sousgroupe1,
#sousgroupe2 {
	display: flex;
	gap: 15px;
}

#graphselec {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

#graphselec section {
	padding: 0.5rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(24, 45, 66, 0.12);
	box-shadow: 0 10px 20px rgba(23, 42, 59, 0.1);
}

#graphselec tbody {
	margin: 15px;
	border-radius: 10px;
	background: #eef3f6;
}

#graphselec tbody td {
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

#graphselec .tauxacces tbody td {
	--color: #f2b134;
}

#graphselec .moyennegen tbody td {
	--color: #1f7a8c;
}

.selectivite-annee tbody td {
	--color: #1f7a8c;
}

.mention-annee .legend {
	margin-top: 0.7rem;
	padding: 0.55rem 0.7rem;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 10px;
	border: 1px solid rgba(28, 52, 73, 0.12);
}

@keyframes fade-up-formation {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 900px) {
	.tabppa {
		max-width: 100%;
	}

	#sousgroupe1,
	#sousgroupe2,
	#graphselec {
		display: grid;
		grid-template-columns: 1fr;
	}
}