/**
 * Footer site — calque 2026, équilibre + marges BF.
 */

:root {
	--surface-dark: #1a1a1a;
	--transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	--footer-gap-x: clamp(1.5rem, 3.5vw, 3.5rem);
	--footer-gap-y: clamp(2rem, 4vw, 3rem);
	--footer-pad-x: clamp(1.25rem, 4vw, 2.25rem);
}

/* Masque l’ancien footer widgets (remplacé) */
body.bf-header-2026 #footer-top,
body.bf-header-2026 #footerBottom,
body.bf-header-2026 #footerLow {
	display: none !important;
}

.site-footer {
	background-color: var(--black-pure, #000);
	color: #888;
	padding: clamp(2.75rem, 7vw, 5.5rem) 0 0;
	border-top: 1px solid var(--surface-dark, #1a1a1a);
	font-family: var(--font-main, "Space Grotesk", system-ui, sans-serif);
	font-size: 0.9rem;
	margin-top: auto;
	flex-shrink: 0;
}

.site-footer .container {
	width: 100%;
	max-width: var(--container-width, 1440px);
	margin-left: auto;
	margin-right: auto;
	padding-left: max(var(--footer-pad-x), env(safe-area-inset-left, 0px));
	padding-right: max(var(--footer-pad-x), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}

.footer-grid {
	display: grid;
	/* Mobile : marque + newsletter pleine largeur ; Boutique | Expérience côte à côte. */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem 1.25rem;
	margin-bottom: clamp(1.75rem, 4vw, 3.75rem);
	align-items: start;
}

.footer-column.branding,
.footer-column.newsletter {
	grid-column: 1 / -1;
}

@media (min-width: 720px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--footer-gap-y) var(--footer-gap-x);
	}

	.footer-column.branding {
		grid-column: 1 / -1;
	}

	.footer-column.newsletter {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: minmax(15rem, 1.4fr) repeat(2, minmax(9rem, 0.85fr)) minmax(14rem, 1.15fr);
		gap: var(--footer-gap-y) var(--footer-gap-x);
	}

	.footer-column.branding,
	.footer-column.newsletter {
		grid-column: auto;
	}
}

.footer-column {
	min-width: 0;
}

.footer-title {
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	word-spacing: var(--headline-word-spacing, 0);
	color: var(--white-pure, #fff);
	font-size: 1.1rem;
	margin: 0 0 1.25rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
}

/* Colonne marque : logo → pitch+contact comme un seul bloc */
.footer-column.branding {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 20rem;
}

.footer-logo {
	margin: 0 0 0.85rem;
	line-height: 0;
	width: 100%;
	max-width: 11.5rem;
}

.footer-logo svg {
	width: 100%;
	max-width: 184px;
	height: auto;
	display: block;
	margin: 0 !important;
}

.footer-logo .logo-main {
	fill: var(--white-pure, #fff);
}

.footer-logo .logo-accent {
	fill: var(--onewheel-blue, #4cc0e8);
}

.footer-tagline {
	margin: 0;
	padding: 0;
	max-width: 17.5rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #8f8f8f;
}

/* Contact collé sous le pitch (même ton, pas une liste flottante) */
.footer-meta {
	list-style: none !important;
	margin: 0.55rem 0 0;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.footer-meta li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.footer-meta a {
	display: inline-block;
	color: #8f8f8f;
	font-size: 0.9rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-meta a:hover {
	color: var(--electric-lime, #e9ff00);
}

/* Titre newsletter + pictos IG/FB à droite (jaune accent, sans pastille) */
.footer-newsletter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.1rem;
	margin: 0 0 1.25rem;
	flex-wrap: wrap;
}

.footer-newsletter-head .footer-title {
	margin: 0;
}

.footer-socials {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 0;
	color: var(--electric-lime, #e9ff00);
	text-decoration: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
	color: var(--electric-lime, #e9ff00);
	opacity: 0.82;
	transform: translateY(-1px);
	outline: none;
}

.footer-socials svg {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
	fill: currentColor;
	flex-shrink: 0;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav li {
	margin: 0 0 0.7rem;
}

.footer-nav li:last-child {
	margin-bottom: 0;
}

.footer-nav a {
	color: #888;
	text-decoration: none;
	transition: var(--transition-smooth);
}

.footer-nav a:hover {
	color: var(--electric-lime, #e9ff00);
	padding-left: 4px;
}

.footer-column.newsletter > p {
	margin: 0;
	line-height: 1.55;
	max-width: 34ch;
}

.footer-newsletter-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	gap: 0.55rem;
	margin-top: 1.1rem;
	position: relative;
	max-width: 26rem;
	width: 100%;
}

.footer-newsletter-form .rideon-community__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
	pointer-events: none;
}

.footer-newsletter-form input[type="text"],
.footer-newsletter-form input[type="tel"],
.footer-newsletter-form input[type="email"] {
	background: var(--surface-dark, #1a1a1a);
	border: 1px solid var(--surface-dark, #1a1a1a);
	padding: 0;
	padding-inline: 1rem;
	border-radius: var(--pill-radius, 100px);
	color: var(--white-pure, #fff);
	width: 100%;
	min-width: 0;
	min-height: 44px;
	height: 44px;
	font-family: inherit;
	font-size: 0.95rem;
	outline: none;
	box-sizing: border-box;
}

.footer-newsletter-form input[type="email"] {
	grid-column: 1 / -1;
}

.footer-newsletter-form input[type="text"]::placeholder,
.footer-newsletter-form input[type="tel"]::placeholder,
.footer-newsletter-form input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-form input[type="text"]:focus,
.footer-newsletter-form input[type="tel"]:focus,
.footer-newsletter-form input[type="email"]:focus {
	border-color: rgba(233, 255, 0, 0.55);
	box-shadow: 0 0 0 3px rgba(233, 255, 0, 0.12);
}

.footer-newsletter-form .btn-pill-shop {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	height: 44px;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

.footer-newsletter-form .rideon-community__feedback {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.8rem;
}

.footer-newsletter-form .rideon-community__feedback.is-hidden {
	display: none;
}

.footer-bottom {
	border-top: 1px solid var(--surface-dark, #1a1a1a);
	padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.footer-bottom-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.85rem 1.5rem;
}

.footer-bottom .copyright {
	margin: 0;
	color: #555;
	font-size: 0.8rem;
}

.legal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.1rem;
}

.legal-nav a {
	margin-left: 0;
	color: #555;
	text-decoration: none;
	font-size: 0.8rem;
	transition: color 0.2s ease;
}

.legal-nav a:hover {
	color: var(--white-pure, #fff);
}

@media (max-width: 719px) {
	.footer-title {
		font-size: 1rem;
		margin-bottom: 0.9rem;
	}

	.footer-nav li {
		margin-bottom: 0.55rem;
	}

	.footer-newsletter-head {
		margin-bottom: 0.9rem;
	}

	.footer-column.newsletter > p {
		max-width: none;
		font-size: 0.88rem;
	}

	.footer-bottom-flex {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.legal-nav {
		gap: 0.45rem 0.95rem;
		max-width: 100%;
	}
}

/* PDP sticky buy : copyright + liens légaux au-dessus de la barre. */
@media (max-width: 1023px) {
	body.bf-product-2026:has(.pdp-sticky-buy) .site-footer,
	body.single-product:has(.pdp-sticky-buy) .site-footer {
		padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
	}

	body.bf-product-2026:has(.pdp-sticky-buy) .footer-bottom,
	body.single-product:has(.pdp-sticky-buy) .footer-bottom {
		padding-bottom: 1.25rem;
	}
}
