/* ==================================================================
   Pages villes (single-ville.php) — chargé uniquement sur ces pages
   Couleurs du thème : rouge #dc4e4b, orange #efb343, texte #444444
   ================================================================== */

.global_page_ville {
	--ville-rouge: #dc4e4b;
	--ville-rouge-fonce: #c23f3c;
	--ville-orange: #efb343;
	--ville-texte: #444444;
	--ville-titre: #1d1d1b;
	--ville-gris: #f6f5f3;
	--ville-bord: #e7e4df;
	--ville-rayon: 16px;
	--ville-ombre: 0 10px 30px rgba(29, 29, 27, .08);
}

.global_page_ville .ville_wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.global_page_ville .ville_section {
	padding: 80px 0;
}

.global_page_ville .ville_section--gris {
	background: var(--ville-gris);
}

.global_page_ville .ville_surtitre {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ville-rouge);
}

.global_page_ville .ville_section h2 {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.2;
	margin: 0 0 20px !important;
	color: var(--ville-titre);
}

.global_page_ville .ville_section p {
	line-height: 1.7;
}

/* Boutons */
.global_page_ville .ville_bouton {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--ville-rouge);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s, transform .2s;
}

.global_page_ville .ville_bouton:hover {
	background: var(--ville-rouge-fonce);
	transform: translateY(-1px);
}

.global_page_ville .ville_bouton--contour {
	background: transparent;
	box-shadow: inset 0 0 0 2px #fff;
}

.global_page_ville .ville_bouton--contour:hover {
	background: #fff;
	color: var(--ville-rouge) !important;
}

/* ---------- Fil d'Ariane, dans la bannière ---------- */
.global_page_ville .ville_ariane {
	margin-bottom: 18px;
}

.global_page_ville .ville_ariane nav {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	padding: 8px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	backdrop-filter: blur(6px);
	font-size: 14px;
	color: #fff;
}

.global_page_ville .ville_ariane a {
	color: #fff !important;
	text-decoration: none;
	opacity: .85;
}

.global_page_ville .ville_ariane a:hover {
	opacity: 1;
	text-decoration: underline;
}

.global_page_ville .ville_ariane__sep {
	color: var(--ville-orange);
	font-weight: 700;
}

.global_page_ville .ville_ariane [aria-current] {
	font-weight: 700;
}

/* ---------- Avis ---------- */
.global_page_ville .ville_avis {
	padding: 64px 0 72px;
}

.global_page_ville .ville_avis__entete {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	margin-bottom: 36px;
}

.global_page_ville .ville_avis__titres {
	flex: 1 1 520px;
}

.global_page_ville .ville_avis__titres h2 {
	margin-bottom: 12px !important;
}

.global_page_ville .ville_avis__intro {
	margin: 0;
	max-width: 640px;
}

.global_page_ville .ville_avis__notes {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.global_page_ville .ville_note {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 24px;
	background: #fff;
	border-radius: var(--ville-rayon);
	box-shadow: var(--ville-ombre);
}

.global_page_ville .ville_note__chiffre {
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	color: var(--ville-titre);
}

.global_page_ville .ville_note__chiffre span {
	font-size: 18px;
	font-weight: 600;
	color: #8a8782;
}

.global_page_ville .ville_note__etoiles {
	font-size: 20px;
	letter-spacing: 2px;
	line-height: 1;
	margin-bottom: 6px;
}

.global_page_ville .ville_etoile {
	position: relative;
	display: inline-block;
	color: #dcd8d2;
}

.global_page_ville .ville_etoile span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #fbbc05;
}

.global_page_ville .ville_note__texte {
	font-size: 14px;
	line-height: 1.4;
	max-width: 220px;
}

.global_page_ville .ville_avis .ar-reviews-wrap {
	position: relative;
}

.global_page_ville .ville_avis .sc-card {
	background: #fff;
	border-radius: var(--ville-rayon);
	box-shadow: var(--ville-ombre);
	border: 0;
}

/* ---------- Types de fenêtres ---------- */
.global_page_ville .ville_types__entete {
	max-width: 760px;
	margin-bottom: 40px;
}

.global_page_ville .ville_types__entete p:last-child {
	margin: 0;
}

.global_page_ville .ville_types__grille {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.global_page_ville .ville_type {
	position: relative;
	padding: 32px 26px 28px;
	background: #fff;
	border: 1px solid var(--ville-bord);
	border-radius: var(--ville-rayon);
	transition: box-shadow .25s, transform .25s, border-color .25s;
}

.global_page_ville .ville_type:hover {
	border-color: transparent;
	box-shadow: var(--ville-ombre);
	transform: translateY(-4px);
}

.global_page_ville .ville_type h3 {
	margin: 18px 0 10px !important;
	font-size: 20px;
	text-transform: none;
	color: var(--ville-titre);
}

.global_page_ville .ville_type p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

/* Pastille : évocation du matériau, pas une photo du produit */
.global_page_ville .ville_type__pastille {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px rgba(0, 0, 0, .08);
}

.global_page_ville .ville_type--pvc .ville_type__pastille {
	background: linear-gradient(145deg, #ffffff 0%, #eceae6 100%);
}

.global_page_ville .ville_type--alu .ville_type__pastille {
	background: linear-gradient(145deg, #d9dde1 0%, #8e979f 55%, #5d656c 100%);
}

.global_page_ville .ville_type--bois .ville_type__pastille {
	background:
		repeating-linear-gradient(100deg, rgba(0, 0, 0, .07) 0 3px, transparent 3px 11px),
		linear-gradient(145deg, #c98a4f 0%, #9a5f2e 100%);
}

.global_page_ville .ville_type--mixte .ville_type__pastille {
	background:
		linear-gradient(135deg, transparent 50%, #6f7880 50%),
		repeating-linear-gradient(100deg, rgba(0, 0, 0, .07) 0 3px, transparent 3px 11px),
		linear-gradient(145deg, #c98a4f 0%, #9a5f2e 100%);
}

/* ---------- Galerie ---------- */
.global_page_ville .ville_galerie {
	padding: 0 0 72px;
}

.global_page_ville .ville_galerie:empty,
.global_page_ville .ville_galerie .ville_wrap:empty {
	display: none;
}

/* ---------- Blocs texte + photo ---------- */
.global_page_ville .ville_duo {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 64px;
	align-items: center;
}

.global_page_ville .ville_duo--inverse .ville_duo__texte {
	order: 2;
}

.global_page_ville .ville_duo--inverse .ville_duo__image {
	order: 1;
}

.global_page_ville .ville_duo__texte {
	max-width: 640px;
}

.global_page_ville .ville_duo--inverse .ville_duo__texte {
	justify-self: end;
}

.global_page_ville .ville_duo__texte ul {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.global_page_ville .ville_duo__texte ul li {
	list-style: none !important;
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
	line-height: 1.6;
}

.global_page_ville .ville_duo__texte ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ville-orange);
	box-shadow: 0 0 0 4px rgba(239, 179, 67, .2);
}

.global_page_ville .ville_duo__image {
	position: relative;
	margin: 0;
}

.global_page_ville .ville_duo__image::before {
	content: "";
	position: absolute;
	inset: 24px -24px -24px 24px;
	border-radius: var(--ville-rayon);
	background: rgba(239, 179, 67, .25);
	z-index: 0;
}

.global_page_ville .ville_duo--inverse .ville_duo__image::before {
	inset: 24px 24px -24px -24px;
}

.global_page_ville .ville_duo__image img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ville-rayon);
	box-shadow: var(--ville-ombre);
}

.global_page_ville .ville_autres_prestations a {
	color: var(--ville-rouge);
	font-weight: 700;
}

/* ---------- Bandeau d'appel ---------- */
.global_page_ville .ville_bandeau {
	padding: 48px 0;
	background: linear-gradient(120deg, var(--ville-rouge) 0%, #e2653f 100%);
}

.global_page_ville .ville_bandeau__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
}

.global_page_ville .ville_bandeau p {
	margin: 0;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.global_page_ville .ville_bandeau__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.global_page_ville .ville_bandeau .ville_bouton:not(.ville_bouton--contour) {
	background: #fff;
	color: var(--ville-rouge) !important;
}

.global_page_ville .ville_bandeau .ville_bouton:not(.ville_bouton--contour):hover {
	background: var(--ville-titre);
	color: #fff !important;
}

/* ---------- Communes voisines + agence ---------- */
.global_page_ville .ville_proximite__grille {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.global_page_ville .ville_carte {
	background: #fff;
	border-radius: var(--ville-rayon);
	box-shadow: var(--ville-ombre);
	padding: 40px;
}

.global_page_ville .ville_communes__liste {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 28px;
	padding: 0;
	list-style: none;
}

.global_page_ville .ville_communes__liste li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.global_page_ville .ville_communes__liste li::before,
.global_page_ville .ville_communes__liste li::marker {
	content: none !important;
}

.global_page_ville .ville_communes__liste a {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--ville-bord);
	border-radius: 999px;
	background: var(--ville-gris);
	color: var(--ville-titre) !important;
	font-size: 16px;
	text-decoration: none !important;
	transition: background .2s, border-color .2s, color .2s;
}

.global_page_ville .ville_communes__liste a:hover {
	background: var(--ville-rouge);
	border-color: var(--ville-rouge);
	color: #fff !important;
}

.global_page_ville .ville_lien_fleche {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--ville-rouge) !important;
	text-decoration: none !important;
}

.global_page_ville .ville_lien_fleche::after {
	content: "→";
	transition: transform .2s;
}

.global_page_ville .ville_lien_fleche:hover::after {
	transform: translateX(4px);
}

.global_page_ville .ville_agence__adresse {
	margin: 0 0 20px;
}

.global_page_ville .ville_agence__carte {
	margin-top: 24px;
	overflow: hidden;
	border-radius: 12px;
	line-height: 0;
}

.global_page_ville .ville_agence__legal {
	margin: 16px 0 0;
	font-size: 13px;
	color: #8a8782;
}

.global_page_ville .ville_agence__legal a {
	color: inherit !important;
}

/* ---------- Tablette ---------- */
@media screen and (max-width: 1023px) {
	.global_page_ville .ville_section {
		padding: 56px 0;
	}

	.global_page_ville .ville_duo {
		gap: 48px;
	}

	.global_page_ville .ville_proximite__grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.global_page_ville .ville_types__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 767px) {
	.global_page_ville .ville_wrap {
		padding: 0 16px;
	}

	.global_page_ville .ville_section {
		padding: 44px 0;
	}

	.global_page_ville .ville_ariane {
		margin-bottom: 14px;
	}

	.global_page_ville .ville_ariane nav {
		font-size: 13px;
		border-radius: 12px;
	}

	/* Bannière : badge d'avis et téléphone centrés */
	.global_page_ville .global_avis_tel {
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}

	.global_page_ville .global_avis {
		width: 100% !important;
		margin-right: 0;
		display: flex;
		justify-content: center;
	}

	.global_page_ville .tel_top_ville {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.global_page_ville .tel_1 {
		margin: 0 auto;
	}

	/* Le texte passe avant la photo */
	.global_page_ville .ville_duo {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.global_page_ville .ville_duo .ville_duo__texte,
	.global_page_ville .ville_duo--inverse .ville_duo__texte {
		order: 1;
		justify-self: stretch;
		max-width: none;
	}

	.global_page_ville .ville_duo .ville_duo__image,
	.global_page_ville .ville_duo--inverse .ville_duo__image {
		order: 2;
	}

	.global_page_ville .ville_duo__image::before,
	.global_page_ville .ville_duo--inverse .ville_duo__image::before {
		inset: 14px -8px -14px 14px;
	}

	.global_page_ville .ville_note {
		width: 100%;
		box-sizing: border-box;
	}

	.global_page_ville .ville_carte {
		padding: 28px 22px;
	}

	.global_page_ville .ville_types__grille {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.global_page_ville .ville_bandeau__actions,
	.global_page_ville .ville_bandeau__actions .ville_bouton {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}
}
