/*
 * Sweet Corner: footer, all pages (2026-11-21).
 * Moved out of css/sc-home.css: the cart page drops that file (inc/sc-cart.php, speed), which
 * left the footer contact list left-aligned and the social icons as plain text on /panier/.
 * This file loads on every page, so the footer looks the same everywhere.
 */

/* Footer (all pages): contact list (phone, email, address) in the logo column, text only */
#footer .sc-footer-contact .elementor-icon-list-item a {
	color: inherit;
	text-decoration: none;
}

#footer .sc-footer-contact .elementor-icon-list-item a:hover {
	color: #ac3c77;
}

/* Logo column: logo, contact list and social icons on one even rhythm */
#footer .elementor-element.sc-footer-contact > .elementor-widget-container {
	padding-bottom: 0 !important;
}

@media (max-width: 767px) {
	/* Mobile footer is centred: keep the contact list and social icons in line with it */
	#footer .elementor-element-138fcda8 .elementor-icon-list-items,
	#footer .elementor-element-138fcda8 .elementor-icon-list-item {
		justify-content: center;
		text-align: center;
	}
}

/*
 * Footer social icons: same round outlined style as the mobile menu row (css/sc-header.css).
 * Widget 729e7998 stays the source of the links (js/sc-header.js copies them into the menu),
 * so only its look changes here. Labels stay readable by screen readers.
 */
#footer .elementor-element-729e7998 .elementor-icon-list-items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
}

#footer .elementor-element-729e7998 .elementor-icon-list-item {
	margin: 0 !important;
	padding: 0 !important;
}

#footer .elementor-element-729e7998 .elementor-icon-list-item::after {
	display: none !important;
}

#footer .elementor-element-729e7998 .elementor-icon-list-item > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	color: #111;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}

#footer .elementor-element-729e7998 .elementor-icon-list-icon {
	margin: 0 !important;
	padding: 0 !important;
}

#footer .elementor-element-729e7998 .elementor-icon-list-icon i {
	display: block;
	width: 1em !important;
	text-align: center;
	font-size: 18px !important;
	line-height: 1;
	color: inherit !important;
}

#footer .elementor-element-729e7998 .elementor-icon-list-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#footer .elementor-element-729e7998 .elementor-icon-list-item > a:hover,
#footer .elementor-element-729e7998 .elementor-icon-list-item > a:focus-visible {
	border-color: #ac3c77;
	color: #ac3c77 !important;
}


/* Address wraps to two balanced lines */
#footer .sc-footer-contact .elementor-icon-list-text {
	max-width: 300px;
	line-height: 1.5;
}

@media (max-width: 767px) {
	#footer .sc-footer-contact .elementor-icon-list-text {
		text-align: center;
	}
}

/*
 * Product pages with the instant checkout's sticky buy bar (ma-instant-product-checkout, 2026-11-22).
 * The bar is fixed to the bottom of the screen, so at the end of the page it covered the last
 * footer row ("© 2026 Sweet Corner … Site développé par …"). While the bar shows, the plugin sets
 * body.ma-ipc-sticky-bar-active and --ma-ipc-sticky-bar-height (its measured height, safe area
 * included), so the footer gets exactly that much room underneath. The class only toggles while
 * the buy form is on screen, far above the footer, so nothing visible moves.
 */
body.ma-ipc-sticky-bar-active #footer {
	padding-bottom: var(--ma-ipc-sticky-bar-height, 96px);
}
