/*
Page ville (SEO local) - James Renner
Reprend les tokens du site (Vidaloka / Karla / or #c5a56e) et l'architecture
de sections de la maquette Claude Design.
*/

:root {
	--ville-gold: var(--bs-tertiary-color);
	--ville-dark: #1f2325;
	--ville-dark-soft: #272c2e;
	--ville-dark-line: #3a4144;
	--ville-cream: #f7f4ef;
	--ville-line: #e6dfd1;
	--ville-line-strong: #dcd2be;
	--ville-ink: #1c1b19;
	--ville-body: #4a463f;
	/* #857c70 tombait a 4.1:1 sur blanc et 3.7:1 sur creme, sous le seuil AA
	   pour du petit texte. #6b6459 remonte a 5.9:1 / 5.3:1. */
	--ville-muted: #6b6459;
}

/* --- Hero ------------------------------------------------------------- */

header .banner.banner-ville {
	height: 580px;
	min-height: auto;
	background: #100d0a;
}

header .banner.banner-ville > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 50%;
}

/* specificite alignee sur "header .banner-wrapper" de template.css */
header .banner-wrapper.ville-hero {
	text-align: left;
	padding: 0 0 62px;
}

/* Le voile bas-vers-haut de la page d'accueil ecrasait completement cette
   photo, deja tres sombre : le bandeau ressortait noir. On le neutralise ici
   au profit d'un voile lateral. */
header .banner-wrapper.ville-hero:before {
	display: none;
}

/* Voile lateral : assez dense a gauche pour garantir la lisibilite du titre,
   quasi transparent a droite pour laisser respirer la photo.
   Valeurs volontairement plus douces que celles de la maquette, calibrees
   pour une image claire. */
header .banner.banner-ville:after {
	position: absolute;
	content: "";
	inset: 0;
	pointer-events: none;
	background: linear-gradient(100deg,
		rgba(16,13,10,0.78) 0%,
		rgba(16,13,10,0.55) 40%,
		rgba(16,13,10,0.12) 75%,
		rgba(16,13,10,0.30) 100%);
}

.ville-breadcrumb {
	font-size: 13px;
	color: #b6ada0;
	margin-bottom: 34px;
}

.ville-breadcrumb a {
	color: #b6ada0;
	text-decoration: none;
	transition: color 0.3s ease;
}

.ville-breadcrumb a:hover {
	color: var(--ville-gold);
}

.ville-breadcrumb .sep {
	margin: 0 8px;
}

.ville-breadcrumb .current {
	color: var(--ville-gold);
}

.ville-hero-title {
	max-width: 830px;
	font-family: var(--bs-titles-font-family);
	font-weight: 400;
	font-size: 50px;
	line-height: 1.18em;
	color: var(--light-color);
	text-shadow: 0 2px 18px rgba(0,0,0,0.5);
	margin: 0 0 26px;
}

.ville-hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 26px;
}

/* --- Ossature des sections -------------------------------------------- */

.ville-section {
	position: relative;
	padding: 88px 0;
	background: var(--light-color);
	color: var(--ville-body);
	z-index: 1;
}

.ville-section--cream {
	background: var(--ville-cream);
	border-top: 1px solid var(--ville-line);
	border-bottom: 1px solid var(--ville-line);
}

.ville-section--dark {
	background: var(--ville-dark);
	color: #c9c0b2;
}

.ville-section p {
	font-size: 16px;
	line-height: 1.85em;
	margin: 0 0 18px;
}

.ville-section p:last-child {
	margin-bottom: 0;
}

.ville-rule {
	display: block;
	width: 70px;
	height: 2px;
	background: var(--ville-gold);
	border: 0;
	margin: 0 0 30px;
	opacity: 1;
}

.ville-head {
	text-align: center;
	margin-bottom: 54px;
}

.ville-head .ville-rule {
	margin: 0 auto;
}

.ville-section h2 {
	font-family: var(--bs-titles-font-family);
	font-weight: 400;
	font-size: 38px;
	line-height: 1.22em;
	color: var(--ville-ink);
	margin: 0 0 20px;
}

.ville-section h3 {
	font-family: var(--bs-titles-font-family);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.3em;
	color: var(--ville-ink);
	margin: 0 0 14px;
}

.ville-section--dark h2,
.ville-section--dark h3 {
	color: var(--light-color);
}

/* liens dans le corps de texte : or, comme dans la maquette
   (template.css les met en noir souligne par defaut) */
.ville-section p a:not(.ville-btn) {
	color: var(--ville-gold);
	text-decoration: none;
	border-bottom: 1px solid rgba(197, 165, 110, 0.45);
	transition: border-color 0.3s ease;
}

.ville-section p a:not(.ville-btn):hover {
	border-bottom-color: var(--ville-gold);
}

/* --- Chapeau ----------------------------------------------------------- */

.ville-lead {
	max-width: 1040px;
	margin: 0 auto;
	text-align: center;
}

.ville-lead p {
	font-size: 18px;
	line-height: 1.85em;
	margin-bottom: 22px;
}

/* --- Deux colonnes texte / image --------------------------------------- */

.ville-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
}

.ville-split--wide-left {
	grid-template-columns: 1.15fr 0.85fr;
	align-items: start;
}

.ville-split--wide-right {
	grid-template-columns: 0.9fr 1.1fr;
}

.ville-frame {
	border: 1px solid var(--ville-line-strong);
	background: var(--light-color);
	padding: 12px;
}

.ville-frame img {
	display: block;
	width: 100%;
	height: 400px;
	object-fit: cover;
}

.ville-frame--tall img {
	height: 520px;
	object-position: 50% 22%;
}

.ville-caption {
	margin: 14px 0 0 !important;
	font-size: 13px !important;
	line-height: 1.6em !important;
	color: var(--ville-muted);
	font-style: italic;
}

/* --- Cartes categories -------------------------------------------------- */

.ville-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.ville-card {
	border: 1px solid var(--ville-line);
	background: var(--light-color);
	display: flex;
	flex-direction: column;
}

.ville-card-media {
	height: 220px;
	overflow: hidden;
	background: #efe9de;
}

.ville-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ville-card-body {
	padding: 30px 30px 32px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ville-card-body p {
	font-size: 15px !important;
	line-height: 1.8em !important;
	flex: 1;
	margin-bottom: 24px !important;
}

.ville-card--cta {
	border-color: var(--ville-gold);
	background: var(--ville-dark);
	color: #b8af9f;
	padding: 40px 34px;
	justify-content: center;
}

.ville-card--cta h3 {
	color: var(--light-color);
}

.ville-card--cta p {
	font-size: 15px !important;
	line-height: 1.8em !important;
	color: #b8af9f;
	margin-bottom: 26px !important;
}

/* --- Boutons ------------------------------------------------------------ */

.ville-btn {
	align-self: flex-start;
	display: inline-block;
	border: 1px solid var(--ville-gold);
	background: transparent;
	color: var(--ville-ink);
	padding: 11px 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
}

.ville-btn:hover {
	background: var(--ville-gold);
	color: var(--light-color);
}

.ville-btn--solid {
	background: var(--ville-gold);
	color: var(--light-color);
	padding: 14px 24px;
}

.ville-btn--solid:hover {
	background: var(--light-color);
	color: var(--ville-ink);
	border-color: var(--light-color);
}

.ville-btn--lg {
	padding: 16px 30px;
	font-size: 13px;
}

/* CTA intercale dans un bloc de texte */
.ville-cta-inline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 22px;
	margin-top: 34px !important;
}

.ville-cta-note {
	font-size: 14px;
	color: var(--ville-muted);
}

.ville-section--dark .ville-cta-note {
	color: #8e8478;
}

/* --- Zones d'intervention ------------------------------------------------ */

.ville-address {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 18px;
	border-top: 1px solid var(--ville-dark-line);
	padding-top: 26px;
	margin-top: 34px;
}

.ville-address strong {
	font-family: var(--bs-titles-font-family);
	font-size: 21px;
	font-weight: 400;
	color: var(--ville-gold);
}

.ville-address span {
	font-size: 14px;
	color: #8e8478;
}

.ville-zones {
	border: 1px solid var(--ville-dark-line);
	padding: 34px 32px;
	background: var(--ville-dark-soft);
}

.ville-zones-title {
	font-family: var(--bs-titles-font-family);
	font-size: 21px;
	color: var(--light-color);
	margin: 0 0 16px !important;
}

.ville-zones-list {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	font-size: 16px;
	line-height: 2em;
	color: #c9c0b2;
}

.ville-zones-list li {
	display: inline;
	white-space: nowrap;
}

.ville-zones-list li::after {
	content: "\2022";
	color: var(--ville-gold);
	margin: 0 10px;
}

.ville-zones-list li:last-child::after {
	content: "";
	margin: 0;
}

.ville-zones img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	object-position: 50% 55%;
	margin-top: 30px;
}

/* --- Etapes -------------------------------------------------------------- */

.ville-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.ville-step {
	background: var(--light-color);
	border: 1px solid var(--ville-line);
	padding: 40px 34px;
}

.ville-step-num {
	font-family: var(--bs-titles-font-family);
	font-size: 15px;
	letter-spacing: 0.14em;
	color: var(--ville-gold);
	margin: 0 0 20px !important;
}

.ville-step p:last-child {
	font-size: 15px !important;
	line-height: 1.85em !important;
}

/* --- Citation ------------------------------------------------------------ */

.ville-quote {
	padding-left: 22px;
	border-left: 2px solid var(--ville-gold);
	font-family: var(--bs-titles-font-family);
	font-size: 22px !important;
	line-height: 1.6em !important;
	color: var(--ville-ink);
	margin-top: 30px !important;
}

/* --- Bloc estimation ------------------------------------------------------ */

.ville-estimation-highlight {
	display: inline-block;
	border-top: 1px solid #4a4f52;
	border-bottom: 1px solid #4a4f52;
	padding: 16px 0 !important;
	font-family: var(--bs-titles-font-family);
	font-size: 26px !important;
	line-height: 1.3em !important;
	color: var(--ville-gold);
	margin: 14px 0 32px !important;
}

.ville-contact-line a {
	color: var(--light-color);
	text-decoration: none;
}

.ville-contact-line a:hover {
	color: var(--ville-gold);
}

.ville-form {
	background: var(--light-color);
	color: var(--ville-body);
	padding: 32px;
}

/* la carte est blanche a l'interieur d'une section sombre :
   il faut annuler les couleurs claires heritees de .ville-section--dark */
.ville-section--dark .ville-form h3 {
	color: var(--ville-ink);
	margin-bottom: 20px;
}

/* champs courts apparies sur une ligne, pour raccourcir le formulaire */
.ville-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.ville-form-field {
	min-width: 0;
}

.ville-form .custom-contact-form-wrapper {
	background: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.ville-form label {
	font-size: 12px;
	color: #6b6459;
	margin-bottom: 5px;
	display: block;
}

.ville-form input[type="text"],
.ville-form select,
.ville-form textarea {
	border: 1px solid var(--ville-line-strong);
	background: #fbf9f5;
	border-radius: 0;
	padding: 9px 12px;
	font-size: 14px;
	color: var(--ville-body);
	margin-bottom: 12px;
}

.ville-form textarea {
	min-height: 84px;
	resize: vertical;
}

.ville-form input[type="file"] {
	border: 1px dashed var(--ville-line-strong);
	background: #fbf9f5;
	padding: 10px;
	font-size: 13px;
	margin-bottom: 12px;
}

/* le style de la case vit dans forms.css, partage par les 4 formulaires */
.ville-form .consent-wrap {
	margin: 2px 0 16px;
}

.ville-form .consent-wrap label {
	font-size: 14px;
}

.ville-form fieldset {
	padding: 0;
	border: 0;
}

.ville-form .checkbox-wrap {
	gap: 16px;
	margin: 0;
}

.ville-form button[type="button"] {
	background: var(--ville-gold);
	border: 1px solid var(--ville-gold);
	color: var(--light-color);
	padding: 13px 26px;
	font-family: var(--bs-body-font-family);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ville-form button[type="button"]:hover {
	background: var(--ville-dark);
	border-color: var(--ville-dark);
}

/* Envoi en cours : plus spécifique que la règle :hover ci-dessus, sans quoi
   le bouton désactivé reprenait sa couleur au survol. */
.ville-form button[type="button"][disabled] {
	background: var(--ville-gold);
	border-color: var(--ville-gold);
	opacity: 0.55;
	cursor: progress;
}

.ville-form button[type="reset"] {
	background: none;
	border: 0;
	color: var(--ville-muted);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

/* --- FAQ ------------------------------------------------------------------ */

.ville-faq {
	max-width: 940px;
	margin: 0 auto;
}

.ville-faq details {
	border: 1px solid var(--ville-line);
	background: var(--light-color);
	margin-bottom: 12px;
}

.ville-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 26px;
	cursor: pointer;
	list-style: none;
	font-family: var(--bs-titles-font-family);
	font-size: 21px;
	line-height: 1.4em;
	color: var(--ville-ink);
}

.ville-faq summary::-webkit-details-marker {
	display: none;
}

.ville-faq summary::after {
	content: "+";
	font-family: var(--bs-titles-font-family);
	font-size: 24px;
	line-height: 1;
	color: var(--ville-gold);
	flex-shrink: 0;
}

.ville-faq details[open] summary::after {
	content: "\2212";
}

.ville-faq details p {
	padding: 0 26px 24px;
	font-size: 15px !important;
	line-height: 1.85em !important;
	margin: 0 !important;
}

/* --- Responsive ------------------------------------------------------------ */

@media only screen and (max-width: 1199px) {
	.ville-split,
	.ville-split--wide-left,
	.ville-split--wide-right {
		gap: 48px;
	}
	.ville-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (max-width: 991px) {
	/* Le bloc titre etait ancre en bas d'un hero de hauteur fixe. Sur petit
	   ecran l'en-tete (logo + bouton d'appel) devient beaucoup plus haut :
	   il ne restait plus assez de place et le contenu remontait dessous.
	   On laisse donc le hero grandir avec son contenu. */
	header .banner.banner-ville {
		height: auto !important;
		min-height: 460px;
	}
	header .banner-wrapper.ville-hero {
		position: relative !important;
		bottom: auto !important;
		/* --hauteur-entete est mesuree par ville.js ; 170px sert de repli */
		padding: calc(var(--hauteur-entete, 170px) + 28px) 0 46px;
	}
	.ville-hero-title {
		font-size: 38px;
	}
	.ville-section {
		padding: 62px 0;
	}
	.ville-section h2 {
		font-size: 32px;
	}
	.ville-split,
	.ville-split--wide-left,
	.ville-split--wide-right {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.ville-steps {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.ville-frame img,
	.ville-frame--tall img {
		height: 340px;
	}
}

@media only screen and (max-width: 767px) {
	header .banner.banner-ville {
		min-height: 420px;
	}
	header .banner-wrapper.ville-hero {
		padding: calc(var(--hauteur-entete, 150px) + 24px) 0 40px;
	}
	.ville-hero-title {
		font-size: 30px;
	}
	.ville-breadcrumb {
		margin-bottom: 22px;
	}
	.ville-section {
		padding: 48px 0;
	}
	.ville-section h2 {
		font-size: 27px;
	}
	.ville-lead p {
		font-size: 16px;
	}
	.ville-cards {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.ville-form {
		padding: 24px 20px;
	}
	.ville-form-row {
		grid-template-columns: 1fr;
	}
	.ville-faq summary {
		font-size: 18px;
		padding: 18px 20px;
	}
	.ville-faq details p {
		padding: 0 20px 20px;
	}
	.ville-estimation-highlight {
		font-size: 21px !important;
	}
}

@media only screen and (max-width: 480px) {
	/* header .head-top .inner-wrapper passe en display:block : le logo (313x106),
	   le menu et le bouton d'appel s'empilent, soit environ 250px de haut.
	   Le degagement doit suivre, sinon le titre repasse sous l'en-tete. */
	header .banner-wrapper.ville-hero {
		padding: calc(var(--hauteur-entete, 280px) + 20px) 0 36px;
	}
	.ville-hero-title {
		font-size: 27px;
	}
}
