/**
 * Footer custom Modèles Hama
 */

.mhama-site-footer,
#main-footer.mhama-site-footer {
	--mhama-footer-bg: #0f172a;
	--mhama-footer-bg-bottom: #0b1220;
	--mhama-footer-accent: #2e71d4;
	--mhama-footer-text: #e2e8f0;
	--mhama-footer-muted: #94a3b8;
	--mhama-footer-border: rgba(148, 163, 184, 0.22);
	background: var(--mhama-footer-bg) !important;
	background-color: var(--mhama-footer-bg) !important;
	color: var(--mhama-footer-text);
	margin-top: 0;
	padding: 0;
	border-top: 3px solid var(--mhama-footer-accent);
}

#main-footer.mhama-site-footer #footer-widgets,
#main-footer.mhama-site-footer #et-footer-nav,
#main-footer.mhama-site-footer #footer-bottom {
	display: none !important;
}

.mhama-site-footer a {
	color: #f8fafc;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mhama-site-footer a:hover,
.mhama-site-footer a:focus-visible {
	color: #93c5fd;
	text-decoration: underline;
}

.mhama-site-footer__inner {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding: 40px 30px 32px;
	box-sizing: border-box;
}

.mhama-site-footer__inner::before,
.mhama-site-footer__inner::after,
.mhama-site-footer__bottom-inner::before,
.mhama-site-footer__bottom-inner::after,
.mhama-site-footer .container::before,
.mhama-site-footer .container::after {
	display: none !important;
	content: none !important;
	background: none !important;
}

.mhama-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(180px, 1.3fr) repeat(2, minmax(120px, 0.9fr)) repeat(2, minmax(180px, 1.2fr));
	gap: 28px 24px;
	align-items: start;
}

.mhama-site-footer__heading {
	margin: 0 0 14px;
	padding: 0 0 8px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff !important;
	border-bottom: 2px solid var(--mhama-footer-accent) !important;
}

.mhama-site-footer__brand-link {
	display: inline-flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	text-decoration: none !important;
}

.mhama-site-footer__logo {
	display: block;
	width: auto;
	max-width: 160px;
	height: auto;
	max-height: 56px;
	object-fit: contain;
}

.mhama-site-footer__site-name {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.mhama-site-footer__tagline {
	margin: 12px 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--mhama-footer-muted);
}

.mhama-site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mhama-site-footer__list li + li {
	margin-top: 8px;
}

.mhama-site-footer__list a {
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--mhama-footer-text);
}

.mhama-site-footer__feed {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mhama-site-footer__feed-item + .mhama-site-footer__feed-item {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--mhama-footer-border);
}

.mhama-site-footer__feed-link {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	text-decoration: none !important;
}

.mhama-site-footer__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 6px;
	background: #1e293b;
	border: 1px solid var(--mhama-footer-border);
}

.mhama-site-footer__thumb-img,
.mhama-site-footer__thumb img {
	display: block !important;
	width: 48px !important;
	height: 48px !important;
	object-fit: cover;
	margin: 0 !important;
}

.mhama-site-footer__feed-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mhama-site-footer__feed-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	color: #f8fafc;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mhama-site-footer__feed-date,
.mhama-site-footer__feed-price {
	font-size: 0.75rem;
	line-height: 1.3;
	color: var(--mhama-footer-muted);
}

.mhama-site-footer__feed-price .woocommerce-Price-amount {
	color: #93c5fd !important;
	font-weight: 700;
}

.mhama-site-footer__empty {
	margin: 0;
	font-size: 0.875rem;
	color: var(--mhama-footer-muted);
}

.mhama-site-footer__bottom {
	background: var(--mhama-footer-bg-bottom);
	border-top: 1px solid var(--mhama-footer-border);
}

.mhama-site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding: 16px 30px;
	box-sizing: border-box;
}

.mhama-site-footer__copyright,
.mhama-site-footer__legal {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--mhama-footer-muted);
}

.mhama-site-footer__copyright a,
.mhama-site-footer__legal a {
	color: #cbd5e1;
}

/* Masque l'ancien footer widgets Divi si présent ailleurs */
#main-footer:not(.mhama-site-footer) #footer-widgets {
	display: none;
}

@media screen and (max-width: 1100px) {
	.mhama-site-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mhama-site-footer__col--brand {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 768px) {
	.mhama-site-footer__inner {
		padding: 28px 20px 20px;
	}

	.mhama-site-footer__bottom-inner {
		padding: 16px 20px;
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.mhama-site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px 16px;
	}

	.mhama-site-footer__col--brand,
	.mhama-site-footer__col--posts,
	.mhama-site-footer__col--products {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 480px) {
	.mhama-site-footer__grid {
		grid-template-columns: 1fr;
	}

	.mhama-site-footer__col--nav,
	.mhama-site-footer__col--shop {
		grid-column: auto;
	}
}

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