/* Fiches challenge : encart « Lancer ce challenge avec l'app Teamupp » (parts/challenge-app.php).
   Fond blanc pour se détacher des trois repères lavande au-dessus ; nuit et violet du site. */

.single-challenge-content .tu-fiche-app {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 2rem;
	margin: 0 0 3rem;
	padding: 2.5rem 2.5rem 2.5rem 3rem;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}

.single-challenge-content .tu-fiche-app__titre {
	margin: 0 0 1.25rem;
	font-family: "Funnel Display", serif;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.15;
	color: #200e4d;
}

.single-challenge-content .tu-fiche-app p {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.8;
	color: #5b4a80;
}

.single-challenge-content .tu-fiche-app__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.75rem;
	margin-top: 1.75rem;
}

.single-challenge-content .tu-fiche-app__lien {
	font-weight: 600;
	color: #200e4d;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.single-challenge-content .tu-fiche-app__lien:hover,
.single-challenge-content .tu-fiche-app__lien:focus-visible {
	color: #772de9;
}

.single-challenge-content .tu-fiche-app__visuel {
	margin: -2.5rem -2.5rem -2.5rem 0;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-challenge-content .tu-fiche-app__visuel img {
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
}

@media (max-width: 760px) {
	.single-challenge-content .tu-fiche-app {
		grid-template-columns: 1fr;
		gap: 0.5rem;
		padding: 2rem 1.5rem 0;
	}

	.single-challenge-content .tu-fiche-app__titre {
		font-size: 1.5rem;
	}

	.single-challenge-content .tu-fiche-app__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.single-challenge-content .tu-fiche-app__visuel {
		margin: 0 -1.5rem;
	}

	.single-challenge-content .tu-fiche-app__actions {
		justify-content: center;
	}

	.single-challenge-content .tu-fiche-app__visuel img {
		width: 100%;
		max-width: 360px;
		margin: 0;
	}
}

/* Fiches challenge, modèle du 02/12/2026 : programme en tableau, FAQ (groupe « tu-faq », données FAQPage), liens « À voir aussi ». */

.single-challenge-content h2.wp-block-heading[id] {
	scroll-margin-top: 8rem;
}

.single-challenge-content .tu-tableau {
	margin: 1.5rem auto 2rem;
	padding: 0;
	overflow-x: auto;
}

.single-challenge-content .tu-tableau table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

.single-challenge-content .tu-tableau thead {
	background: #200e4d;
}

.single-challenge-content .tu-tableau th,
.single-challenge-content .tu-tableau td {
	padding: 1rem 1.25rem;
	border: 0;
	text-align: left;
	vertical-align: top;
	line-height: 1.45;
}

.single-challenge-content .tu-tableau th::after,
.single-challenge-content .tu-tableau th::before {
	content: none;
}

.single-challenge-content .tu-tableau th {
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
}

.single-challenge-content .tu-tableau td {
	border-bottom: 1px solid #e5e4f0;
	color: #5b4a80;
	font-size: .9375rem;
}

.single-challenge-content .tu-tableau tr:last-child td {
	border-bottom: 0;
}

.single-challenge-content .tu-tableau td:first-child {
	color: #200e4d;
	font-weight: 700;
	white-space: nowrap;
}

.single-challenge-content p a,
.single-challenge-content .tu-liens a {
	color: #772de9;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(119, 45, 233, .35);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.single-challenge-content p a:hover,
.single-challenge-content .tu-liens a:hover {
	text-decoration-color: currentColor;
}

.single-challenge-content .tu-faq .wp-block-details {
	background: #fff;
}

.single-challenge-content .tu-faq .wp-block-details summary {
	color: #200e4d;
	font-weight: 700;
}

.single-challenge-content .tu-faq + * {
	margin-top: 3rem;
}

.single-challenge-content ul.tu-liens {
	margin: 1rem auto 3rem;
	padding-left: 1.25rem;
}

.single-challenge-content ul.tu-liens li {
	margin-bottom: .5rem;
}

@media (max-width: 760px) {
	.single-challenge-content .tu-tableau table {
		min-width: 560px;
	}

	.single-challenge-content .tu-tableau th,
	.single-challenge-content .tu-tableau td {
		padding: .875rem 1rem;
	}
}
