/**
 * DES-010 v2 — header et footer calqués sur Lou Cantou.
 * Le logo SVG garde ses dimensions propres. Chargé après les feuilles de pages.
 */

body:not(.home):not(:has(.lq-gite)):not(:has(.lq-region)) {
	padding-top: 7.2rem;
}

.lq-header:has(.lq-header__links) {
	padding: 26px 0;
	background: #fff;
	border-bottom: 0;
	box-shadow: none;
	color: #171310;
	transition: padding 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.lq-header:has(.lq-header__links).is-scrolled {
	padding: 26px 0;
}

body.home .lq-header:not(.is-scrolled),
body:has(.lq-gite) .lq-header:not(.is-scrolled),
body:has(.lq-region) .lq-header:not(.is-scrolled) {
	background: transparent;
	box-shadow: none;
	border-bottom: 0;
	color: #fff;
}

body:not(.home):not(:has(.lq-gite)):not(:has(.lq-region)) .lq-header,
.lq-header.is-scrolled {
	background: #fff;
	color: #171310;
	border-bottom: 0;
	box-shadow: none;
}

.lq-header__inner:has(.lq-header__links) {
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 22px;
	width: min(100%, 1200px);
	max-width: 1200px;
	min-height: 0;
	margin-right: auto;
	margin-left: auto;
	padding-right: 5%;
	padding-left: 5%;
}

.lq-header.is-scrolled .lq-header__inner:has(.lq-header__links),
body:not(.home):not(:has(.lq-gite)):not(:has(.lq-region)) .lq-header__inner:has(.lq-header__links) {
	min-height: 0;
}

.lq-header__brand {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
}

.lq-header__links {
	display: flex;
	align-items: center;
	gap: 39px;
	margin: 0;
}

.lq-header__links > .wp-block-navigation,
.lq-header__links > .wp-block-buttons,
.lq-header__links > .lq-btn {
	margin: 0 !important;
}

.lq-header .lq-nav .wp-block-navigation__container,
.lq-header .lq-nav .wp-block-navigation-item {
	gap: 39px;
}

.lq-header .lq-nav .wp-block-navigation-item__content {
	color: #171310;
	font-family: var(--lq-font-eyebrow);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.7;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.lq-header .lq-nav .wp-block-navigation-item__content:hover,
.lq-header .lq-nav .current-menu-item > .wp-block-navigation-item__content {
	color: #8b2628;
}

body.home .lq-header:not(.is-scrolled) .lq-nav .wp-block-navigation-item__content,
body:has(.lq-gite) .lq-header:not(.is-scrolled) .lq-nav .wp-block-navigation-item__content,
body:has(.lq-region) .lq-header:not(.is-scrolled) .lq-nav .wp-block-navigation-item__content {
	color: #fff;
}

body.home .lq-header:not(.is-scrolled) .lq-nav .wp-block-navigation-item__content:hover,
body:has(.lq-gite) .lq-header:not(.is-scrolled) .lq-nav .wp-block-navigation-item__content:hover,
body:has(.lq-region) .lq-header:not(.is-scrolled) .lq-nav .wp-block-navigation-item__content:hover {
	color: #f7f1e9;
}

.lq-header .lq-btn--header .wp-block-button__link {
	padding: 0.5rem 1.25rem;
	border: 1px solid #8b2628 !important;
	border-radius: 4px;
	background: transparent !important;
	color: #8b2628 !important;
	font-family: var(--lq-font-eyebrow);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.7;
	text-transform: uppercase;
}

.lq-header .lq-btn--header .wp-block-button__link:hover {
	background: #8b2628 !important;
	color: #fff !important;
	transform: none;
}

body.home .lq-header:not(.is-scrolled) .lq-btn--header .wp-block-button__link,
body:has(.lq-gite) .lq-header:not(.is-scrolled) .lq-btn--header .wp-block-button__link,
body:has(.lq-region) .lq-header:not(.is-scrolled) .lq-btn--header .wp-block-button__link {
	color: #fff !important;
	border-color: #fff !important;
}

body.home .lq-header:not(.is-scrolled) .lq-btn--header .wp-block-button__link:hover,
body:has(.lq-gite) .lq-header:not(.is-scrolled) .lq-btn--header .wp-block-button__link:hover,
body:has(.lq-region) .lq-header:not(.is-scrolled) .lq-btn--header .wp-block-button__link:hover {
	background: #fff !important;
	color: #171310 !important;
}

.lq-header a:focus-visible,
.lq-burger:focus-visible,
.lq-footer a:focus-visible {
	outline: 2px solid #8b2628;
	outline-offset: 3px;
}

.lq-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.lq-burger__bar {
	display: block;
	width: 25px;
	height: 2px;
	background: #242424;
	transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.lq-header__brand .lq-header__socials,
.lq-header__socials,
.lq-footer__socials {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lq-socials .wp-social-link {
	list-style: none;
}

.lq-socials .wp-social-link::marker,
.lq-socials .wp-social-link::before {
	content: none;
}

.lq-header .lq-socials svg,
.lq-footer .lq-socials svg {
	display: block;
	fill: currentColor;
	color: #fff;
}

.lq-header__brand .wp-block-social-links {
	margin: 0;
}

.lq-header .lq-logo img,
.lq-footer .lq-logo img {
	width: 156px !important;
	height: 48px !important;
	max-width: none;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: left center;
}

.lq-header__brand .lq-socials,
.lq-footer__contact .lq-socials {
	gap: 12px;
}

.lq-header .lq-socials .wp-social-link,
.lq-footer .lq-socials .wp-social-link {
	width: 27px !important;
	height: 27px !important;
	border-radius: 50%;
	background: #8b2628 !important;
}

.lq-header .lq-socials .wp-block-social-link-anchor,
.lq-footer .lq-socials .wp-block-social-link-anchor {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	padding: 0;
}

.lq-header .lq-socials svg,
.lq-footer .lq-socials svg {
	width: 15px;
	height: 15px;
}

.lq-header .lq-socials .wp-social-link:hover,
.lq-footer .lq-socials .wp-social-link:hover {
	background: #6f1d20 !important;
}

@media (max-width: 1100px) {
	.lq-header__brand {
		gap: 22px;
	}

	.lq-header__links,
	.lq-header .lq-nav .wp-block-navigation__container,
	.lq-header .lq-nav .wp-block-navigation-item {
		gap: 22px;
	}

	.lq-footer__bar {
		flex-wrap: wrap;
	}

	.lq-footer__legal {
		gap: 14px;
	}
}

@media (max-width: 768px) {
	.lq-burger {
		display: flex;
		z-index: 120;
	}

	body.home .lq-header:not(.is-scrolled) .lq-burger__bar,
	body:has(.lq-gite) .lq-header:not(.is-scrolled) .lq-burger__bar,
	body:has(.lq-region) .lq-header:not(.is-scrolled) .lq-burger__bar {
		background: #fff;
	}

	.lq-burger.is-open .lq-burger__bar {
		background: #242424;
	}

	.lq-burger.is-open .lq-burger__bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.lq-burger.is-open .lq-burger__bar:nth-child(2) {
		opacity: 0;
	}

	.lq-burger.is-open .lq-burger__bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.lq-header__links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 110;
		box-sizing: border-box;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 23px;
		width: auto;
		height: auto;
		max-height: none;
		padding: 38px 24px 45px;
		overflow: visible;
		background: #fff;
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
	}

	.lq-header__links.is-open {
		display: flex;
	}

	.lq-header .lq-nav .wp-block-navigation__container {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	.lq-header .lq-nav .wp-block-navigation-item__content {
		color: #111 !important;
		font-size: 17px;
		font-weight: 600;
	}

	.lq-header__links.is-open .lq-header__booking,
	.lq-header__links.is-open .lq-btn--header {
		width: auto;
		margin: 0;
		padding: 0;
		background: transparent !important;
		border: 0;
	}

	.lq-header__links.is-open .lq-btn--header .wp-block-button__link,
	body.home .lq-header:not(.is-scrolled) .lq-header__links.is-open .lq-btn--header .wp-block-button__link,
	body:has(.lq-gite) .lq-header:not(.is-scrolled) .lq-header__links.is-open .lq-btn--header .wp-block-button__link,
	body:has(.lq-region) .lq-header:not(.is-scrolled) .lq-header__links.is-open .lq-btn--header .wp-block-button__link {
		width: auto;
		padding: 12px 34px;
		border: 1px solid #8b2628 !important;
		border-color: #8b2628 !important;
		background: #8b2628 !important;
		color: #fff !important;
		text-align: center;
	}
}

.lq-footer:has(.lq-footer__main) {
	padding: 32px 0 0;
	background: #fff;
	color: #171310;
	border-top: 1px solid rgba(43, 46, 42, 0.08);
	font-family: var(--lq-font-sans, Poppins, Arial, sans-serif);
	font-size: 0.9rem;
	font-weight: 400;
}

.lq-footer__inner:has(.lq-footer__main) {
	box-sizing: border-box;
	display: block;
	width: min(100%, 1200px);
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 5%;
	padding-left: 5%;
}

.lq-footer__inner :is(p, .wp-block-navigation, .wp-block-social-links, .wp-block-buttons) {
	margin-top: 0;
	margin-bottom: 0;
}

.lq-footer__main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 48px;
	margin-bottom: 38px;
	padding-bottom: 20px;
}

.lq-footer__brand {
	flex: 1 1 37%;
}

.lq-footer__links {
	flex: 0 0 15%;
	min-width: 0;
}

.lq-footer__contact {
	flex: 0 1 auto;
	min-width: 224px;
}

.lq-footer__tagline,
.lq-footer__label,
.lq-footer__contact-link,
.lq-footer__copy,
.lq-footer__legal-item {
	margin: 0;
}

.lq-footer__inner .lq-footer__tagline {
	max-width: none;
	margin-top: 13px;
	color: #89908b;
	font-family: var(--lq-font-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	white-space: normal;
}

.lq-footer__inner .lq-footer__tagline + .lq-footer__tagline {
	margin-top: 0;
}

.lq-footer__inner .lq-footer__label {
	display: block;
	margin-bottom: 20px;
	color: #242424;
	font-family: var(--lq-font-eyebrow);
	font-size: 11.2px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lq-footer__inner .lq-footer__author {
	margin: 0 0 9px;
	color: #30322f;
	font-family: var(--lq-font-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

.lq-footer__nav,
.lq-footer__nav .wp-block-navigation__container {
	justify-content: flex-start;
	align-items: flex-start;
	padding: 0;
}

.lq-footer__nav .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lq-footer:has(.lq-footer__main) .lq-footer__nav .wp-block-navigation-item__content {
	color: #858b86;
	font-family: var(--lq-font-sans);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.6;
	text-align: left;
	text-transform: none;
	transition: color 0.3s ease, transform 0.3s ease;
}

.lq-footer:has(.lq-footer__main) .lq-footer__nav .wp-block-navigation-item__content:hover {
	color: #8b2628;
	transform: translateX(3px);
}

.lq-footer__contact-link a {
	display: inline-block;
	width: fit-content;
	margin-bottom: 7px;
	padding-bottom: 1px;
	border-bottom: 1px solid #d9dbd8;
	color: #858b86;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.65;
	text-decoration: none;
	white-space: nowrap;
}

.lq-footer__contact-link a:hover {
	color: #8b2628;
	border-color: #8b2628;
}

.lq-footer__inner .lq-footer__contact .lq-footer__socials {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	width: fit-content;
	margin-top: 14px;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: 0 !important;
}

.lq-footer__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 22px 0;
	border-top: 1px solid rgba(43, 46, 42, 0.07);
}

.lq-footer__legal {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 21px;
	margin: 0 !important;
	line-height: 1.5;
}

.lq-footer__copy,
.lq-footer__legal-item {
	display: flex;
	align-items: center;
	line-height: 1.5;
}

.lq-footer__copy,
.lq-footer__legal a {
	color: #9ca19d;
	font-size: 11.2px;
	font-weight: 400;
	letter-spacing: 0.025em;
	line-height: 1.5;
	opacity: 1;
	text-decoration: none;
}

.lq-footer__legal a {
	color: #989d98;
	letter-spacing: 0.01em;
}

.lq-footer__legal a:hover {
	color: #8b2628;
	opacity: 1;
}

@media (max-width: 768px) {
	.lq-footer__main {
		flex-direction: column;
		align-items: center;
		gap: 32px;
		margin-bottom: 44px;
		text-align: center;
	}

	.lq-footer__brand,
	.lq-footer__links,
	.lq-footer__contact {
		flex: 1 1 100%;
		width: 100%;
	}

	.lq-footer__tagline,
	.lq-footer__author,
	.lq-footer__contact-link a {
		margin-left: auto;
		margin-right: auto;
	}

	.lq-footer .lq-logo,
	.lq-footer .wp-block-site-logo {
		width: fit-content;
		margin-right: auto;
		margin-left: auto;
	}

	.lq-footer .lq-logo img {
		display: block;
		margin-right: auto;
		margin-left: auto;
	}

	.lq-footer__inner .lq-footer__tagline {
		line-height: 1.7;
	}

	.lq-header .lq-logo img {
		width: 128px !important;
		height: 40px !important;
	}

	.lq-header__brand {
		gap: 18px;
	}

	.lq-header__brand .lq-socials,
	.lq-footer__contact .lq-socials {
		gap: 9px;
	}

	.lq-header .lq-socials .wp-social-link,
	.lq-footer .lq-socials .wp-social-link,
	.lq-header .lq-socials .wp-block-social-link-anchor,
	.lq-footer .lq-socials .wp-block-social-link-anchor {
		width: 26px !important;
		height: 26px !important;
	}

	.lq-footer__nav,
	.lq-footer__nav .wp-block-navigation__container,
	.lq-footer__contact,
	.lq-footer__socials {
		align-items: center;
		justify-content: center;
	}

	.lq-footer__inner .lq-footer__label {
		margin-bottom: 13px;
	}

	.lq-footer__inner .lq-footer__contact .lq-footer__socials {
		justify-content: center;
		margin-top: 17px;
		margin-right: auto;
		margin-left: auto !important;
	}

	.lq-footer__nav .wp-block-navigation__container {
		align-items: center;
	}

	.lq-footer__nav .wp-block-navigation-item__content:hover {
		transform: none;
	}

	.lq-footer__socials {
		justify-content: center;
	}

	.lq-footer__bar {
		flex-direction: column-reverse;
		gap: 26px;
		padding: 26px 0;
		text-align: center;
	}

	.lq-footer__legal {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}
}

@media (max-width: 380px) {
	.lq-header__inner:has(.lq-header__links) {
		min-height: 40px;
	}

	.lq-header__brand {
		gap: 14px;
	}

	.lq-header .lq-logo img {
		width: 118px !important;
		height: 37px !important;
	}

	.lq-header__brand .lq-socials {
		gap: 8px;
	}

	.lq-header .lq-socials .wp-social-link,
	.lq-header .lq-socials .wp-block-social-link-anchor {
		width: 25px !important;
		height: 25px !important;
	}
}
