/*
 * Pages villes des ateliers (ex. /ateliers/massage-en-entreprise-paris/).
 * Chargé seulement si le contenu contient un groupe de classe « tu-ville » (app/Config/Assets.php).
 *
 * Dans l'éditeur : un groupe « tu-ville » qui contient des blocs natifs.
 *   tu-carte (image)   carte de la ville, seul élément illustré de la page
 *   tu-prix (paragraphe) le prix de départ
 *   tu-preuve (groupe)  un client de la ville : logo et texte
 *   La FAQ utilise le bloc « Détails » du thème.
 */

.tu-ville {
	--tu-nuit: #200e4d;
	--tu-trait: #e5e4f0;
	--tu-texte: #665f74;
	color: var(--tu-texte);
}

#single-workshop .workshop-header > .title {
	text-wrap: balance;
}

#single-workshop .workshop-header .note .stars {
	flex-shrink: 0;
}

#single-workshop .workshop-header .note .legend {
	margin: 0;
	text-wrap: balance;
	color: #665f74;
	font-weight: 400;
	line-height: 1.3;
}

#single-workshop .workshop-header .excerpt {
	max-width: 60ch;
	color: #200e4d;
	font-size: 1.125rem;
	line-height: 1.6;
}

@media (min-width: 1060px) {
	#single-workshop .workshop-header {
		gap: 1rem;
		padding-bottom: 2.5rem;
	}

	#single-workshop .workshop-header .breadcrumb {
		margin-bottom: 1rem;
	}
}

/* Le thème centre les blocs et les borne : ici ils suivent la colonne. */
.tu-ville :is(.wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-image, .wp-block-details, .wp-block-buttons) {
	max-width: none;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.tu-ville > h2.wp-block-heading {
	margin-top: 4.5rem;
	margin-bottom: 1.25rem;
	text-wrap: balance;
}

.tu-ville > h2.wp-block-heading:first-child {
	margin-top: 0;
}

.tu-ville p,
.tu-ville li {
	max-width: 68ch;
}

.tu-ville li + li {
	margin-top: .5rem;
}

.tu-ville li::marker {
	color: var(--tu-nuit);
	font-weight: 700;
}

.tu-ville strong {
	color: var(--tu-nuit);
}

/* Carte */
.tu-ville .tu-carte {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.tu-ville .tu-carte img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.tu-ville .tu-carte figcaption {
	margin: .5rem 0 0;
	color: var(--tu-texte);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: .75rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
}

/* Prix */
.tu-ville .tu-prix {
	margin-bottom: 1rem;
	color: var(--tu-nuit);
	font-family: "Funnel Display", serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
}

/* Client de la ville */
.tu-ville .tu-preuve {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 2rem;
	align-items: center;
	margin: 2rem 0 0;
	padding: 2rem 0;
	border: solid var(--tu-trait);
	border-width: 1px 0;
}

.tu-ville .tu-preuve > *,
.tu-ville .tu-preuve > .wp-block-group > * {
	margin-block: 0;
}

.tu-ville .tu-preuve > .wp-block-group > * + * {
	margin-top: .75rem;
}

.tu-ville .tu-preuve + p {
	margin-top: 1.5rem;
}

/* Les logos clients du site ont 20 px de vide à gauche dans leur fichier. */
.tu-ville .tu-preuve img {
	display: block;
	width: 150px;
	max-width: none;
	height: auto;
	margin: -28px 0 -28px -20px;
}

/* Liens et FAQ */
.tu-ville p a,
.tu-ville li a {
	color: #772de9;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.tu-ville p a:hover,
.tu-ville li a:hover {
	text-decoration-thickness: 2px;
}

.tu-ville .wp-block-details summary::after,
.tu-ville .wp-block-details summary:after {
	color: #772de9;
}

.tu-ville :is(a, summary):focus-visible {
	outline: 2px solid #772de9;
	outline-offset: 4px;
	border-radius: 4px;
}

@media (max-width: 679px) {
	.tu-ville > h2.wp-block-heading {
		margin-top: 3.25rem;
		font-size: 1.625rem;
		line-height: 1.2;
	}

	.tu-ville .tu-preuve {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}
