/* LCH Site Footer — Tomette-inspired olive footer */

body:has(.lch-site-footer) .elementor-location-footer,
body:has(.lch-site-footer) footer.elementor-location-footer,
html.lch-footer-active .elementor-location-footer,
html.lch-footer-active footer.elementor-location-footer,
html.lch-footer-active #footer,
html.lch-footer-active #footer_wrapper,
html.lch-footer-active .footer_bar,
html.lch-footer-active .footer_bar_wrapper,
html.lch-footer-active #copyright,
html.lch-footer-active .footer_before_widget,
html.lch-footer-active .ppb_wrapper + .footer_bar {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Coupe le blanc sous le footer (fond thème / wrappers) */
html.lch-footer-active,
html.lch-footer-active body,
body:has(.lch-site-footer) {
	background: #6a6d52 !important;
}

body:has(.lch-site-footer) .sidebar_content.full_width,
body:has(.lch-site-footer) .inner_wrapper,
body:has(.lch-site-footer) .inner,
html.lch-footer-active .sidebar_content.full_width,
html.lch-footer-active .inner_wrapper,
html.lch-footer-active .inner,
html.lch-footer-active #wrapper,
html.lch-footer-active #page_content_wrapper,
html.lch-footer-active #page_content_wrapper .inner,
html.lch-footer-active .elementor-location-single,
html.lch-footer-active .elementor {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.lch-site-footer {
	--lch-footer-bg: #6a6d52;
	--lch-footer-ink: #f7f2ea;
	--lch-footer-muted: rgba(247, 242, 234, 0.78);
	--lch-footer-accent: #C39D7A;
	--lch-footer-accent-ink: #2a2118;

	position: relative;
	z-index: 2;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	margin: 0 0 0 -50vw;
	margin-right: -50vw;
	background: var(--lch-footer-bg);
	color: var(--lch-footer-ink);
	font-family: "Outfit", system-ui, sans-serif;
	padding: clamp(3.5rem, 7vw, 5.25rem) clamp(1.5rem, 5vw, 4rem) 2rem;
	box-sizing: border-box;
}

.lch-site-footer a {
	color: var(--lch-footer-ink);
	text-decoration: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.lch-site-footer a:hover,
.lch-site-footer a:focus-visible {
	opacity: 0.85;
	color: #fff;
}

.lch-site-footer__top {
	display: grid;
	grid-template-columns: minmax(12rem, 1.35fr) repeat(3, minmax(0, 1fr)) minmax(8rem, 0.9fr);
	gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3rem);
	max-width: 86rem;
	margin: 0 auto 3rem;
	align-items: start;
}

.lch-site-footer__logo-link {
	display: inline-block;
	max-width: 7rem;
	line-height: 0;
}

.lch-site-footer__logo {
	display: block !important;
	width: 7rem !important;
	max-width: 7rem !important;
	height: auto !important;
	max-height: 7.25rem !important;
	object-fit: contain !important;
	object-position: left center;
	margin: 0 0 0.65rem !important;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.lch-site-footer__name {
	display: none;
}

.lch-site-footer__address {
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
	line-height: 1.55;
	font-weight: 300;
	color: var(--lch-footer-muted);
}

.lch-site-footer__email {
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.lch-site-footer__heading,
.wpcursor-component.lch-site-footer .lch-site-footer__heading {
	margin: 0 0 1rem !important;
	font-family: "Outfit", system-ui, sans-serif !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em;
	text-transform: none !important;
	color: #fff !important;
	line-height: 1.3 !important;
}

.lch-site-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.lch-site-footer__col ul a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.45;
	color: var(--lch-footer-muted);
}

/* Chevron uniquement sur les liens texte des colonnes */
.lch-site-footer__col ul a::before {
	content: "";
	flex: 0 0 auto;
	width: 0.35rem;
	height: 0.35rem;
	border-right: 1px solid rgba(247, 242, 234, 0.55);
	border-top: 1px solid rgba(247, 242, 234, 0.55);
	transform: rotate(45deg);
	opacity: 0.7;
	transition: opacity 0.2s ease, transform 0.25s ease, border-color 0.2s ease;
}

.lch-site-footer__col ul a:hover::before,
.lch-site-footer__col ul a:focus-visible::before {
	opacity: 1;
	border-color: #fff;
	transform: rotate(45deg) translate(1px, -1px);
}

.lch-site-footer__col--social a::before,
.lch-site-footer__social-link::before,
.lch-site-footer__badge::before {
	content: none !important;
	display: none !important;
}

.lch-site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
}

.lch-site-footer__social-link {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(247, 242, 234, 0.35);
	border-radius: 999px;
	color: #fff;
}

.lch-site-footer__social-link:hover,
.lch-site-footer__social-link:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	opacity: 1;
}

.lch-site-footer__badge {
	display: inline-block;
	width: 5.5rem;
	height: 5.5rem;
}

.lch-site-footer__badge-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.lch-site-footer__bottom {
	max-width: 86rem;
	margin: 0 auto;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(247, 242, 234, 0.18);
	text-align: center;
}

.lch-site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem 0.65rem;
	margin-bottom: 0.75rem;
}

.lch-site-footer__legal a {
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lch-footer-muted);
}

.lch-site-footer__sep {
	opacity: 0.45;
}

.lch-site-footer__copy {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 300;
	color: var(--lch-footer-muted);
}

.lch-site-footer__cta {
	position: fixed;
	right: clamp(1rem, 3vw, 2.5rem);
	bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
	z-index: 2147483000;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.95rem 1.45rem;
	background: var(--lch-footer-accent);
	color: #fff !important;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 500;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
	transition: transform 0.25s ease, color 0.25s ease;
}

.lch-site-footer__cta:hover,
.lch-site-footer__cta:focus-visible {
	transform: translateY(-2px);
	color: #000 !important;
	opacity: 1;
}

/* Évite double CTA si le hero corner est déjà présent */
body:has(.lch-hero-header__btn--corner) .lch-site-footer__cta {
	display: none;
}

/* Back to top */
.lch-back-top {
	position: fixed;
	left: clamp(1rem, 3vw, 2.5rem);
	bottom: clamp(1.25rem, 3vw, 2.25rem);
	z-index: 46;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--lch-footer-accent, #C39D7A);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.92);
	transition:
		opacity 0.35s ease,
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.35s ease,
		background 0.25s ease,
		color 0.25s ease;
}

.lch-back-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.lch-back-top__ring {
	position: absolute;
	inset: -3px;
	border-radius: inherit;
	border: 1px solid rgba(255, 255, 255, 0.35);
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.3s ease, transform 0.35s ease;
	pointer-events: none;
}

.lch-back-top__icon {
	position: relative;
	z-index: 1;
	display: block;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lch-back-top:hover,
.lch-back-top:focus-visible {
	background: #fff;
	color: #2a2118;
	outline: none;
}

.lch-back-top:hover .lch-back-top__ring,
.lch-back-top:focus-visible .lch-back-top__ring {
	opacity: 1;
	transform: scale(1);
}

.lch-back-top:hover .lch-back-top__icon,
.lch-back-top:focus-visible .lch-back-top__icon {
	transform: translateY(-3px);
}

.lch-back-top:active .lch-back-top__icon {
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.lch-back-top,
	.lch-back-top__icon,
	.lch-back-top__ring {
		transition: none;
	}
}

@media (max-width: 1100px) {
	.lch-site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lch-site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.lch-site-footer__top {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.lch-site-footer__brand {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lch-site-footer__cta,
	.lch-site-footer a {
		transition: none;
	}
}
