/* Tools Adapter — Test d'auto-évaluation. */
.ta-check {
	--ta-check-gap: 12px;
	--ta-check-accent: #8E1616;
	display: flex;
	flex-direction: column;
	gap: calc(var(--ta-check-gap) * 2);
	box-sizing: border-box;
}
.ta-check *,
.ta-check *::before,
.ta-check *::after { box-sizing: border-box; }

.ta-check__list {
	display: flex;
	flex-direction: column;
	gap: var(--ta-check-gap);
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.ta-check__legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.ta-check__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid #E6E3DE;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease;
}
.ta-check__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.ta-check__box {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1.5px solid #D6D2CC;
	border-radius: 6px;
	background: #fff;
	color: #fff;
	transition: background-color .2s ease, border-color .2s ease;
}
.ta-check__box svg { width: 14px; height: 14px; opacity: 0; transition: opacity .2s ease; }
.ta-check__item.is-checked .ta-check__box { background: var(--ta-check-accent); border-color: var(--ta-check-accent); }
.ta-check__item.is-checked .ta-check__box svg { opacity: 1; }
.ta-check__input:focus-visible + .ta-check__box { outline: 2px solid var(--ta-check-accent); outline-offset: 3px; }
.ta-check__text { flex: 1 1 auto; line-height: 1.45; }

.ta-check__result {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
}
.ta-check__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.ta-check__title { margin: 0; line-height: 1.05; }
.ta-check__percent { flex: 0 0 auto; line-height: 1; font-variant-numeric: tabular-nums; }
.ta-check__bar {
	position: relative;
	height: 6px;
	border-radius: 6px;
	overflow: hidden;
}
.ta-check__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.ta-check__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.ta-check__message { margin: 0; line-height: 1.55; flex: 1 1 auto; }
.ta-check__button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}

@media (max-width: 767px) {
	.ta-check__foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.ta-check__item, .ta-check__box, .ta-check__box svg, .ta-check__fill { transition: none; }
}
