/* =========================================================
   WRAPPER PRINCIPAL
========================================================= */

.voiture-single-wrapper {
	width: 100%;
	max-width: none;

	box-sizing: border-box;

	margin:
		0
		auto
		80px;

	padding:
		100px
		64px
		0;

	position: relative;

	z-index: 2;
}


/* =========================================================
   GALERIE
========================================================= */

.voiture-gallery-main {
	position: relative;

	width: 100%;
	max-width: none;

	margin-left: 0 !important;
	margin-right: 0 !important;

	padding: 0 !important;

	overflow: hidden;

	box-sizing: border-box;
}

.voiture-gallery-main {
	border-radius: 14px !important;
	overflow: hidden !important;
}

.voiture-gallery-main .voiture-gallery-img {
	border-radius: 14px !important;
}

.voiture-single-content {
	display: grid;

	grid-template-columns:
		minmax(0, 1.08fr)
		minmax(0, 1fr);

	gap: 64px;

	align-items: start;

	width: 100%;
	max-width: none;

	margin:
		48px
		0
		0;

	position: relative;

	z-index: 5;

	overflow: visible;

	box-sizing: border-box;
}

.voiture-gallery-img {
	position: absolute;

	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	object-fit: cover;

	opacity: 0;

	transition:
		opacity 0.4s ease;
}


.voiture-gallery-img.is-active {
	opacity: 1;
}


/* =========================================================
   NAVIGATION GALERIE
========================================================= */

.voiture-gallery-nav {
	position: absolute;

	top: 50%;

	transform:
		translateY(-50%);

	background:
		rgba(
			255,
			255,
			255,
			0.85
		);

	border: none;

	width: 44px;
	height: 44px;

	border-radius: 50%;

	font-size: 24px;

	cursor: pointer;

	color: #1f1f1f;

	z-index: 2;
}


.voiture-gallery-nav.prev {
	left: 32px;
}


.voiture-gallery-nav.next {
	right: 32px;
}


/* =========================================================
   CONTENU
========================================================= */

.voiture-single-content {
	display: grid;

	grid-template-columns:
		minmax(0, 1.08fr)
		minmax(0, 1fr);

	gap: 64px;

	align-items: start;

	width: 100%;
	max-width: 1760px;

	margin:
		48px
		auto
		0;

	position: relative;

	z-index: 5;

	overflow: visible;

	box-sizing: border-box;
}


/* =========================================================
   INFORMATIONS
========================================================= */

.voiture-single-info {
	min-width: 0;

	width: 100%;
}


.voiture-single-header {
	display: flex;

	justify-content: space-between;

	align-items: baseline;

	gap: 20px;

	margin:
		0
		0
		24px;
}


.voiture-single-title {
	margin: 0;

	font-size: 34px;

	font-weight: 500;

	color: #1f1f1f;
}


.voiture-single-year {
	font-size: 17px;

	color: #5f5a55;
}


/* =========================================================
   DÉTAILS
========================================================= */

.voiture-details {
	border-top:
		1px solid #e7ded2;
}


.voiture-detail-row {
	display: grid;

	grid-template-columns:
		180px
		minmax(0, 1fr);

	align-items: center;

	column-gap: 30px;

	padding:
		15px
		0;

	border-bottom:
		1px solid #e7ded2;
}


.voiture-detail-row span {
	display: inline-flex;

	align-items: center;

	gap: 7px;

	color: #5f5a55;

	text-transform: uppercase;

	font-size: 12px;

	letter-spacing: 0.6px;
}


.voiture-detail-row strong {
	color: #1f1f1f;

	font-size: 15px;

	font-weight: 600;
}


/* =========================================================
   CONTACT
========================================================= */

.voiture-contact {
	width: 100%;

	padding: 36px;

	background: #f7f5f2;

	border-radius: 12px;

	box-sizing: border-box;

	position: sticky;

	top: 110px;

	overflow: visible;

	z-index: 100;
}


.voiture-contact h2 {
	margin:
		0
		0
		10px;

	font-size: 27px;

	font-weight: 500;

	line-height: 1.25;
}


.voiture-contact-intro {
	margin:
		0
		0
		24px;

	font-size: 14px;

	line-height: 1.6;

	color: #6b6661;
}


/* =========================================================
   BOUTONS APPEL / WHATSAPP
========================================================= */

.voiture-contact-buttons {
	display: grid;

	grid-template-columns:
		1fr
		1fr;

	gap: 12px;

	margin-bottom: 24px;
}


.voiture-contact-btn {
	text-align: center;

	padding:
		14px
		16px;

	border-radius: 7px;

	text-decoration: none;

	font-size: 14px;

	font-weight: 600;
}


.voiture-contact-btn.phone {
	background: #1f1f1f;

	color: #ffffff;
}


.voiture-contact-btn.whatsapp {
	background: #25d366;

	color: #ffffff;
}


/* =========================================================
   FORMULAIRE
========================================================= */

.voiture-contact-form {
	display: flex;

	flex-direction: column;

	gap: 12px;

	width: 100%;

	margin: 0;

	position: relative;

	z-index: 110;

	overflow: visible;
}


.voiture-contact-form input,
.voiture-contact-form textarea {
	width: 100%;

	box-sizing: border-box;

	padding:
		13px
		14px;

	border:
		1px solid #d8c8b6;

	border-radius: 6px;

	background: #ffffff;

	font-family: inherit;

	font-size: 14px;

	outline: none;
}


.voiture-contact-form textarea {
	min-height: 110px;

	resize: vertical;
}


.voiture-contact-form button[type="submit"] {
	width: 100%;

	padding:
		14px
		28px;

	background: #c7a24b;

	color: #ffffff;

	border: none;

	border-radius: 6px;

	cursor: pointer;

	font-weight: 600;
}


/* =========================================================
   BOUTON CHAUFFEUR
========================================================= */

.voiture-chauffeur-toggle {
	width: 100%;

	min-height: 58px;

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 16px;

	box-sizing: border-box;

	padding:
		11px
		14px;

	border:
		1px solid #d8c8b6;

	border-radius: 6px;

	background: #ffffff;

	font-family: inherit;

	text-align: left;

	cursor: pointer;

	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		opacity 0.2s ease;
}


.voiture-chauffeur-toggle:hover:not(.is-disabled) {
	border-color: #9e8f80;
}


.voiture-chauffeur-copy {
	display: flex;

	flex-direction: column;

	gap: 3px;

	min-width: 0;
}


.voiture-chauffeur-title {
	font-size: 14px;

	font-weight: 500;

	color: #2a2522;
}


.voiture-chauffeur-subtitle {
	font-size: 11px;

	font-weight: 400;

	color: #8a837d;
}


/* =========================================================
   SWITCH CHAUFFEUR
========================================================= */

.voiture-chauffeur-switch {
	position: relative;

	flex:
		0
		0
		auto;

	width: 38px;

	height: 22px;

	border-radius: 999px;

	background: #d8d4cf;

	transition:
		background-color 0.2s ease;
}


.voiture-chauffeur-switch::after {
	content: '';

	position: absolute;

	top: 3px;

	left: 3px;

	width: 16px;

	height: 16px;

	border-radius: 50%;

	background: #ffffff;

	box-shadow:
		0
		1px
		3px
		rgba(
			0,
			0,
			0,
			0.18
		);

	transition:
		transform 0.2s ease;
}


/* =========================================================
   CHAUFFEUR ACTIF
========================================================= */

.voiture-chauffeur-toggle.is-active {
	border-color: #2a2522;

	background: #faf9f7;
}


.voiture-chauffeur-toggle.is-active
.voiture-chauffeur-switch {
	background: #2a2522;
}


.voiture-chauffeur-toggle.is-active
.voiture-chauffeur-switch::after {
	transform:
		translateX(
			16px
		);
}


/* =========================================================
   CHAUFFEUR INDISPONIBLE
========================================================= */

.voiture-chauffeur-toggle.is-disabled,
.voiture-chauffeur-toggle:disabled {
	cursor: not-allowed;

	background: #eeeeec;

	border-color: #dedbd7;

	opacity: 0.58;
}


.voiture-chauffeur-toggle.is-disabled
.voiture-chauffeur-title {
	color: #8f8b87;
}


.voiture-chauffeur-toggle.is-disabled
.voiture-chauffeur-subtitle {
	color: #aaa6a2;
}


.voiture-chauffeur-toggle.is-disabled
.voiture-chauffeur-switch {
	background: #c9c7c4;
}


/* =========================================================
   DATE
========================================================= */

.voiture-date-picker {
	position: relative;

	width: 100%;

	z-index: 1000;

	overflow: visible;
}


.voiture-date-trigger {
	width: 100%;

	min-height: 46px;

	display: flex;

	align-items: center;

	gap: 10px;

	box-sizing: border-box;

	padding:
		13px
		14px;

	border:
		1px solid #d8c8b6;

	border-radius: 6px;

	background: #ffffff;

	color: #777777;

	font-family: inherit;

	font-size: 14px;

	text-align: left;

	cursor: pointer;
}


.voiture-date-trigger-icon {
	display: inline-flex;

	align-items: center;

	color: #5f5a55;
}


/* =========================================================
   CALENDRIER
========================================================= */

.voiture-calendar-popover {
	display: none;

	position: absolute;

	top:
		calc(
			100% + 10px
		);

	right: 0;

	width:
		min(
			720px,
			75vw
		);

	box-sizing: border-box;

	padding: 22px;

	background: #ffffff;

	border:
		1px solid #e8e2db;

	border-radius: 10px;

	box-shadow:
		0
		18px
		50px
		rgba(
			0,
			0,
			0,
			0.13
		);

	z-index:
		999999
		!important;
}


.voiture-calendar-popover.is-open {
	display: block;
}


.voiture-calendar-title {
	text-align: center;

	font-size: 14px;

	font-weight: 500;

	padding-bottom: 14px;

	margin-bottom: 14px;

	border-bottom:
		1px solid #e6e6e6;
}


.voiture-calendar-error {
	display: none;

	margin-bottom: 14px;

	padding:
		10px
		12px;

	border-radius: 8px;

	background: #fff1f1;

	color: #b42318;

	font-size: 12px;
}


.voiture-calendar-error.is-visible {
	display: block;
}


/* =========================================================
   NAVIGATION CALENDRIER
========================================================= */

.voiture-calendar-header {
	display: flex;

	justify-content: space-between;

	align-items: center;

	position: relative;

	z-index: 5;

	margin-bottom: -36px;

	pointer-events: none;
}


.voiture-calendar-header-spacer {
	flex: 1;
}


.voiture-calendar-nav {
	width: 36px;

	height: 36px;

	border: none;

	border-radius: 50%;

	background: #ffffff;

	display: flex;

	align-items: center;

	justify-content: center;

	font-size: 27px;

	color: #1f2033;

	cursor: pointer;

	pointer-events: auto;
}


.voiture-calendar-nav:disabled {
	opacity: 0.2;

	cursor: default;
}


/* =========================================================
   MOIS
========================================================= */

.voiture-calendar-months {
	display: grid;

	grid-template-columns:
		1fr
		1fr;

	gap: 32px;
}


.voiture-calendar-month-title {
	text-align: center;

	font-size: 15px;

	font-weight: 600;

	margin-bottom: 20px;
}


.voiture-calendar-weekdays,
.voiture-calendar-days {
	display: grid;

	grid-template-columns:
		repeat(
			7,
			1fr
		);

	text-align: center;
}


.voiture-calendar-weekdays {
	margin-bottom: 8px;

	font-size: 12px;

	color: #666666;
}


.voiture-calendar-days {
	row-gap: 5px;
}


/* =========================================================
   JOUR
========================================================= */

.voiture-calendar-day {
	height: 38px;

	display: flex;

	align-items: center;

	justify-content: center;

	position: relative;

	border: none;

	padding: 0;

	background: transparent;

	font-family: inherit;

	font-size: 13px;

	color: #1f2033;

	cursor: pointer;
}


.voiture-calendar-day.empty {
	cursor: default;
}


.voiture-calendar-day.unavailable {
	color: #cf3e3e;

	cursor: not-allowed;

	opacity: 0.72;
}


.voiture-calendar-day.unavailable::after {
	content: '';

	position: absolute;

	top: 50%;

	left: 25%;

	right: 25%;

	height: 1.5px;

	background: #cf3e3e;

	transform:
		rotate(
			-13deg
		);
}


.voiture-calendar-day.selected-start,
.voiture-calendar-day.selected-end {
	background: #2a2522;

	color: #ffffff;

	border-radius: 50%;
}


.voiture-calendar-day.in-range {
	background: #f4f0ea;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.voiture-lightbox {
	display: none;

	position: fixed;

	inset: 0;

	background:
		rgba(
			0,
			0,
			0,
			0.9
		);

	z-index: 9999999;

	align-items: center;

	justify-content: center;
}


.voiture-lightbox.is-open {
	display: flex;
}


.voiture-lightbox-img {
	max-width: 88%;

	max-height: 88%;

	object-fit: contain;
}


.voiture-lightbox-close {
	position: absolute;

	top: 24px;

	right: 30px;

	background: none;

	border: none;

	color: #ffffff;

	font-size: 40px;

	cursor: pointer;
}


.voiture-lightbox-nav {
	position: absolute;

	top: 50%;

	transform:
		translateY(-50%);

	width: 50px;

	height: 50px;

	border: none;

	border-radius: 50%;

	color: #ffffff;

	background:
		rgba(
			255,
			255,
			255,
			0.15
		);

	font-size: 28px;

	cursor: pointer;
}


.voiture-lightbox-nav.prev {
	left: 24px;
}


.voiture-lightbox-nav.next {
	right: 24px;
}


/* =========================================================
   FOOTER / DIVI
========================================================= */

#main-content,
.et-l--post,
.et_builder_inner_content,
.et_pb_section,
.et_pb_row,
.et_pb_column {
	overflow: visible;
}


footer,
#main-footer,
.et-l--footer {
	position: relative;

	z-index: 1;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 1600px) {

	.voiture-single-wrapper {
		padding-left: 80px;

		padding-right: 80px;
	}


	.voiture-single-content {
		gap: 80px;
	}

}


@media (max-width: 1200px) {

	.voiture-single-wrapper {
		padding-left: 40px;

		padding-right: 40px;
	}


	.voiture-single-content {
		gap: 45px;
	}


	.voiture-detail-row {
		grid-template-columns:
			150px
			minmax(0, 1fr);
	}

}


@media (max-width: 820px) {

	.voiture-single-wrapper {
		padding-left: 30px;

		padding-right: 30px;
	}


	.voiture-single-content {
		grid-template-columns: 1fr;

		gap: 40px;
	}


	.voiture-contact {
		position: static;
	}


	.voiture-calendar-popover {
		right: auto;

		left: 0;

		width: 100%;
	}


	.voiture-calendar-months {
		grid-template-columns: 1fr;
	}


	.voiture-calendar-month:nth-child(2) {
		display: none;
	}

}


@media (max-width: 600px) {

	.voiture-single-title {
		font-size: 28px;
		line-height: 1.08;
	}

	.voiture-single-wrapper {
		padding:
			80px
			20px
			0;
	}

	.voiture-single-content {
		margin-top: 28px;
	}


	.voiture-contact-buttons {
		grid-template-columns: 1fr;
	}


	.voiture-detail-row {
		grid-template-columns:
			125px
			minmax(0, 1fr);
	}

}

/* =========================================================
   HEADER DIVI TOUJOURS CLIQUABLE
========================================================= */

header,
#main-header,
.et-l--header,
.et-l--header .et_builder_inner_content,
.et-l--header .et_pb_section,
.et-l--header .et_pb_row {
	position: relative !important;
	z-index: 9999999 !important;
	pointer-events: auto !important;
}


/* Les liens et boutons du header restent interactifs */

.et-l--header a,
.et-l--header button,
#main-header a,
#main-header button,
header a,
header button {
	position: relative;
	z-index: 10000000 !important;

	pointer-events: auto !important;
}

/* =========================================================
   ESTIMATION DE LOCATION
========================================================= */

.voiture-location-estimation {
	display: none;

	width: 100%;

	box-sizing: border-box;

	margin-top: -2px;

	padding:
		13px
		14px;

	border:
		1px solid #e1d8ce;

	border-radius: 6px;

	background: #faf9f7;
}


.voiture-location-estimation.is-visible {
	display: block;
}


/* =========================================================
   LIGNES
========================================================= */

.voiture-location-estimation-line {
	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 20px;

	font-size: 13px;

	line-height: 1.4;

	color: #6b6661;
}


.voiture-location-estimation-line + .voiture-location-estimation-line {
	margin-top: 8px;

	padding-top: 8px;

	border-top:
		1px solid #e7e1da;
}


.voiture-location-estimation-line strong {
	color: #1f1f1f;

	font-size: 14px;

	font-weight: 600;

	white-space: nowrap;
}


/* =========================================================
   PRIX
========================================================= */

.voiture-location-estimation-price strong {
	font-size: 16px;

	color: #1f1f1f;
}


/* =========================================================
   HOVER BOUTON TÉLÉPHONE
========================================================= */

.voiture-contact-btn.phone {
	background: #1f1f1f;
	color: #ffffff;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.voiture-contact-btn.phone:hover {
	background: #34312f;

	transform: translateY(-1px);

	box-shadow:
		0 4px 12px
		rgba(0, 0, 0, 0.12);
}


/* =========================================================
   HOVER WHATSAPP
========================================================= */

.voiture-contact-btn.whatsapp {
	background: #25d366;
	color: #ffffff;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.voiture-contact-btn.whatsapp:hover {
	background: #1fbd59;

	transform: translateY(-1px);

	box-shadow:
		0 4px 12px
		rgba(0, 0, 0, 0.10);
}


/* =========================================================
   HOVER ENVOYER
========================================================= */

.voiture-contact-form button[type="submit"] {
	width: 100%;

	padding:
		14px
		28px;

	background: #c7a24b;

	color: #ffffff;

	border: none;

	border-radius: 6px;

	cursor: pointer;

	font-family: inherit;

	font-size: 14px;
	font-weight: 600;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.voiture-contact-form button[type="submit"]:hover {
	background: #b58f3d;

	transform: translateY(-1px);

	box-shadow:
		0 4px 12px
		rgba(0, 0, 0, 0.10);
}
/* =========================================================
   LIEU DE LIVRAISON
========================================================= */

.voiture-delivery-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}


/* =========================================================
   CHAMP ADRESSE
========================================================= */

#voiture-delivery-address {
	width: 100%;
	box-sizing: border-box;

	padding: 13px 14px;

	border: 1px solid #d8c8b6;
	border-radius: 6px;

	background: #ffffff;

	font-family: inherit;
	font-size: 14px;
	color: #1f1f1f;

	outline: none;

	transition: border-color 0.2s ease;
}

#voiture-delivery-address:focus {
	border-color: #9e8f80;
}


/* =========================================================
   BOUTONS LIVRAISON
========================================================= */

.voiture-delivery-options {
	display: flex;
	align-items: center;
	gap: 7px;
	width: 100%;
	flex-wrap: wrap;
}


/* =========================================================
   UNE OPTION
========================================================= */

.voiture-delivery-option {
	position: relative;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 6px 11px;

	border: 1px solid #ded7cf;
	border-radius: 999px;

	background: #ffffff;

	font-family: inherit;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;

	color: #706a64;

	cursor: pointer;
	white-space: nowrap;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}


/* cacher radio natif */

.voiture-delivery-option input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}


/* =========================================================
   CONTENU DU BOUTON
========================================================= */

.voiture-delivery-option-inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.voiture-delivery-option-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
}

.voiture-delivery-option-icon img {
	display: block;
	width: 12px;
	height: 12px;
	object-fit: contain;
}


/* Option active : on passe l’icône en blanc */
.voiture-delivery-option.is-active .voiture-delivery-option-icon img {
	filter: brightness(0) invert(1);
}


/* hover */

.voiture-delivery-option:hover {
	background: #f7f5f2;
	border-color: #cfc5bb;
	color: #2a2522;
}


/* état actif */

.voiture-delivery-option.is-active {
	background: #2a2522;
	border-color: #2a2522;
	color: #ffffff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
	.voiture-delivery-options {
		gap: 5px;
	}

	.voiture-delivery-option {
		padding: 7px 9px;
		font-size: 10px;
	}

	.voiture-delivery-option-inner {
		gap: 5px;
	}

	.voiture-delivery-option-icon img {
		width: 11px;
		height: 11px;
	}
}

/* =========================================================
   ALIGNEMENT FINAL GALERIE / CONTENU
   La galerie prend exactement la même largeur extérieure
   que les deux blocs situés dessous.
========================================================= */

body .voiture-single-wrapper > .voiture-gallery-main,
body .voiture-single-wrapper > .voiture-single-content {
	width: 100% !important;
	max-width: 1760px !important;

	margin-left: auto !important;
	margin-right: auto !important;

	box-sizing: border-box !important;
}


/* Annule tout ancien breakout plein écran de la galerie */

body .voiture-single-wrapper > .voiture-gallery-main {
	position: relative !important;

	left: auto !important;
	right: auto !important;

	transform: none !important;

	padding-left: 0 !important;
	padding-right: 0 !important;

	overflow: hidden !important;
}


/* Le contenu reste centré avec son espacement vertical */

body .voiture-single-wrapper > .voiture-single-content {
	margin-top: 48px !important;
	padding-top: 40px !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

	body .voiture-single-wrapper > .voiture-single-content {
		margin-top: 28px !important;
	}

}


/* =========================================================
   FOND BLANC UNIFORME - PARTIE HAUTE FICHE VÉHICULE
========================================================= */

body.single-voiture {
	background: #ffffff !important;
}

body.single-voiture #page-container,
body.single-voiture #et-main-area,
body.single-voiture #main-content,
body.single-voiture .voiture-single-wrapper,voiture-related-all
body.single-voiture .voiture-top-layout {
	background: #ffffff !important;
}

/* Les sous-blocs restent transparents pour laisser voir
   le blanc uniforme du fond général */
body.single-voiture .voiture-gallery-layout,
body.single-voiture .voiture-single-info {
	background: transparent !important;
}


.voiture-related-footer {
	display: flex;
	justify-content: flex-end;

	width: 100%;

	margin-top: 8px;

	padding-left: 0;
	padding-right: 0;

	box-sizing: border-box;
}

@media (max-width: 600px) {
	.voiture-related-header {
    	margin-bottom: 8px !important;
  	}

	.voiture-related-footer {
    	justify-content: flex-start;
		margin-top: 16px;
  	}
}

.voiture-related-all:hover {
	background: #1f1f1f !important;
	color: #ffffff !important;
	border-color: #1f1f1f !important;
}