/* =========================================================
   CARSDKAR — STRUCTURE GLOBALE
   Header + Footer
   ========================================================= */

.cd-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;

	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(16, 35, 63, 0.07);

	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.admin-bar .cd-site-header {
	top: 32px;
}

.cd-site-header__inner {
	display: flex;
	align-items: center;
	min-height: 74px;
	gap: 32px;
}

.cd-site-brand {
	display: inline-flex;
	align-items: center;

	color: #10233f;

	font-size: 1.35rem;
	font-weight: 850;
	letter-spacing: -0.035em;

	text-decoration: none;
}

.cd-site-header__brand {
	flex-shrink: 0;
}

.cd-site-header__brand img {
	display: block;
	width: auto;
	max-height: 50px;
}

.cd-site-nav {
	margin-left: auto;
}

.cd-site-nav ul {
	display: flex;
	align-items: center;
	gap: 28px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.cd-site-nav a {
	position: relative;

	color: #344054;

	font-size: 0.9rem;
	font-weight: 700;

	text-decoration: none;

	transition: color 160ms ease;
}

.cd-site-nav a::after {
	position: absolute;
	right: 0;
	bottom: -9px;
	left: 0;

	height: 2px;

	background: #b99047;

	content: "";

	transform: scaleX(0);
	transform-origin: center;

	transition: transform 160ms ease;
}

.cd-site-nav a:hover {
	color: #10233f;
}

.cd-site-nav a:hover::after,
.cd-site-nav .current-menu-item > a::after {
	transform: scaleX(1);
}

.cd-site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cd-header-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 9px 18px;

	border-radius: 999px;

	background: #10233f;
	color: #ffffff;

	font-size: 0.86rem;
	font-weight: 750;

	text-decoration: none;

	transition:
		transform 160ms ease,
		background 160ms ease;
}

.cd-header-whatsapp:hover {
	background: #17375f;
	transform: translateY(-1px);
}

.cd-menu-toggle {
	display: none;

	width: 44px;
	height: 44px;

	align-items: center;
	justify-content: center;

	padding: 0;

	border: 1px solid #d0d5dd;
	border-radius: 10px;

	background: #ffffff;

	cursor: pointer;
}

.cd-menu-toggle__lines,
.cd-menu-toggle__lines::before,
.cd-menu-toggle__lines::after {
	display: block;

	width: 20px;
	height: 2px;

	background: #10233f;

	content: "";
}

.cd-menu-toggle__lines {
	position: relative;
}

.cd-menu-toggle__lines::before {
	position: absolute;
	top: -6px;
	left: 0;
}

.cd-menu-toggle__lines::after {
	position: absolute;
	top: 6px;
	left: 0;
}


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

@media (max-width: 900px) {

	.cd-menu-toggle {
		display: inline-flex;
	}

	.cd-site-header__actions {
		margin-left: auto;
	}

	.cd-header-whatsapp {
		display: none;
	}

	.cd-site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;

		display: none;

		margin: 0;
		padding: 18px 24px;

		background: #ffffff;

		border-top: 1px solid #eaecf0;
		box-shadow: 0 18px 35px rgba(16, 24, 40, 0.12);
	}

	.cd-site-nav.is-open {
		display: block;
	}

	.cd-site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.cd-site-nav li {
		border-bottom: 1px solid #eaecf0;
	}

	.cd-site-nav li:last-child {
		border-bottom: 0;
	}

	.cd-site-nav a {
		display: block;
		padding: 14px 0;
	}

	.cd-site-nav a::after {
		display: none;
	}
}

@media (max-width: 782px) {

	.admin-bar .cd-site-header {
		top: 46px;
	}
}

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

.cd-site-footer {
	padding: 64px 0 26px;

	background: #091a30;

	color: #ffffff;
}

.cd-site-footer__grid {
	display: grid;

	grid-template-columns:
		minmax(0, 1.45fr)
		minmax(180px, 0.7fr)
		minmax(240px, 0.95fr);

	gap: 64px;
}

.cd-site-footer__brand {
	display: inline-block;

	color: #ffffff;

	font-size: 1.45rem;
	font-weight: 850;

	letter-spacing: -0.035em;

	text-decoration: none;
}

.cd-site-footer__about p {
	max-width: 390px;

	margin: 18px 0 0;

	color:
		rgba(
			255,
			255,
			255,
			0.62
		);

	font-size: 0.88rem;
	line-height: 1.7;
}

.cd-site-footer h2 {
	margin: 0 0 18px;

	color: #ffffff;

	font-size: 0.76rem;
	font-weight: 800;

	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cd-site-footer__links {
	display: grid;

	gap: 11px;

	margin: 0;
	padding: 0;

	list-style: none;

	color:
		rgba(
			255,
			255,
			255,
			0.65
		);

	font-size: 0.86rem;
}

.cd-site-footer__links a {
	color:
		rgba(
			255,
			255,
			255,
			0.76
		);

	text-decoration: none;

	transition: color 160ms ease;
}

.cd-site-footer__links a:hover {
	color: #d5b776;
}

.cd-site-footer__bottom {
	display: flex;

	align-items: center;
	justify-content: space-between;

	gap: 20px;

	margin-top: 54px;
	padding-top: 22px;

	border-top:
		1px solid
		rgba(
			255,
			255,
			255,
			0.1
		);

	color:
		rgba(
			255,
			255,
			255,
			0.42
		);

	font-size: 0.76rem;
}

.cd-site-footer__legal {
	display: flex;

	gap: 22px;
}

.cd-site-footer__legal a {
	color:
		rgba(
			255,
			255,
			255,
			0.5
		);

	text-decoration: none;
}


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

@media (max-width: 900px) {

	.cd-site-footer__grid {
		grid-template-columns:
			1fr 1fr;

		gap: 42px;
	}

	.cd-site-footer__about {
		grid-column:
			1 / -1;
	}
}


@media (max-width: 600px) {

	.cd-site-footer {
		padding-top: 50px;
	}

	.cd-site-footer__grid {
		grid-template-columns: 1fr;

		gap: 36px;
	}

	.cd-site-footer__about {
		grid-column: auto;
	}

	.cd-site-footer__bottom {
		align-items: flex-start;

		flex-direction: column;
	}
}

.cd-site-footer__socials {
	display: flex;

	flex-wrap: wrap;

	gap: 9px;

	margin-top: 22px;
}

.cd-site-footer__socials a {
	display: inline-flex;

	width: 36px;
	height: 36px;

	align-items: center;
	justify-content: center;

	border:
		1px solid
		rgba(
			255,
			255,
			255,
			0.18
		);

	border-radius: 50%;

	color: #ffffff;

	font-size: 0.68rem;
	font-weight: 800;

	text-decoration: none;

	transition:
		border-color 160ms ease,
		background 160ms ease,
		color 160ms ease;
}

.cd-site-footer__socials a:hover {
	border-color: #b99047;

	background:
		rgba(
			185,
			144,
			71,
			0.12
		);

	color: #d5b776;
}

/* =========================================================
   LOGO DU FOOTER
   ========================================================= */

.cd-site-footer__logo {
	display: inline-flex;
	align-items: center;

	text-decoration: none;
}

.cd-site-footer__logo-image {
	display: block;

	width: auto;
	max-width: 220px;
	max-height: 58px;

	object-fit: contain;
}


/* =========================================================
   RÉSEAUX SOCIAUX
   ========================================================= */

.cd-site-footer__socials {
	display: flex;
	flex-wrap: wrap;

	gap: 9px;

	margin-top: 22px;
}

.cd-site-footer__socials a {
	display: inline-flex;

	width: 38px;
	height: 38px;

	align-items: center;
	justify-content: center;

	border:
		1px solid
		rgba(
			255,
			255,
			255,
			0.18
		);

	border-radius: 50%;

	color: #ffffff;

	text-decoration: none;

	transition:
		border-color 160ms ease,
		background 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.cd-site-footer__socials svg {
	width: 18px;
	height: 18px;
}

.cd-site-footer__socials a:hover {
	border-color: #b99047;

	background:
		rgba(
			185,
			144,
			71,
			0.12
		);

	color: #d5b776;

	transform: translateY(-2px);
}

/* =========================================================
   NAVIGATION PAR ANCRES
   ========================================================= */

html {
	scroll-behavior: smooth;
}

#vehicules,
#comment-ca-marche,
#a-propos,
#contact {
	scroll-margin-top: 95px;
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}