/* =========================================================================
   Luxoos — Pied de page
   Dépend des variables :root définies par header.css
   ========================================================================= */

:root {
	--lux-footer-bg:          #0d3a51;
	--lux-footer-bg-deep:     #0a2f42;
	--lux-footer-text:        rgba(255, 255, 255, 0.86);
	--lux-footer-rule:        rgba(255, 255, 255, 0.20);
	--lux-footer-ghost:       rgba(255, 255, 255, 0.13);
	--lux-footer-ghost-hover: rgba(255, 255, 255, 0.22);

	/* Intensité de la texture de fond — à ajuster selon l'image. */
	--lux-footer-image-opacity: 0.5;
}

/* ------------------------------------------------------- Fond & cadre */

.lux-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	font-family: var(--lux-font);
	color: var(--lux-footer-text);
	background: var(--lux-footer-bg);
}

/* Texture (image de matelas) en fondu doux sur le bleu. */
.lux-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: var(--lux-footer-image, none);
	background-size: cover;
	background-position: center;
	opacity: var(--lux-footer-image-opacity);
	mix-blend-mode: soft-light;
}

/* Voile pour garantir le contraste du texte. */
.lux-footer::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(13, 58, 81, 0.55), rgba(10, 47, 66, 0.92)),
		linear-gradient(180deg, rgba(13, 58, 81, 0.25), var(--lux-footer-bg-deep));
}

.lux-footer__inner {
	max-width: var(--lux-header-max);
	margin: 0 auto;
	padding: clamp(2.5rem, 5vw, 4rem) var(--lux-header-pad-x) clamp(1.5rem, 3vw, 2rem);
}

.lux-footer a {
	color: inherit;
	text-decoration: none;
	transition: color var(--lux-transition), opacity var(--lux-transition);
}

.lux-footer a:hover,
.lux-footer a:focus-visible {
	color: var(--lux-gold);
}

.lux-footer a:focus-visible,
.lux-footer button:focus-visible {
	outline: 2px solid var(--lux-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------------------------------------------------------- Grille */

.lux-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 23%) 1fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

/* --------------------------------------------- Colonne marque / contact */

.lux-logo--light,
.lux-footer .lux-logo {
	align-items: flex-start;
	color: var(--lux-white);
}

.lux-footer .lux-logo__moons,
.lux-footer .lux-logo__star,
.lux-footer .lux-logo__since {
	color: var(--lux-gold);
}

.lux-footer__logo .custom-logo {
	display: block;
	width: auto;
	max-height: 96px;
}

.lux-footer__contact {
	margin-top: clamp(2rem, 6vw, 4.5rem);
}

.lux-social {
	display: flex;
	gap: 1rem;
	margin: 0 0 1.4rem;
	padding: 0;
	list-style: none;
}

.lux-social a {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	color: var(--lux-white);
}

.lux-social svg {
	width: 21px;
	height: 21px;
}

.lux-footer__line {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	margin: 0 0 0.85rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.lux-footer__icon {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin-top: 0.05em;
	color: var(--lux-white);
}

.lux-footer__pro {
	margin-top: 1.4rem;
}

/* ------------------------------------------------ Moyens de paiement */

.lux-payments {
	margin-top: 1.8rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--lux-footer-rule);
}

.lux-payments__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lux-payments__item {
	display: grid;
	place-items: center;
	height: 28px;
	padding: 0 0.4rem;
	background: var(--lux-white);
	border-radius: 5px;
}

.lux-payments__item.is-wide {
	padding: 0 0.6rem;
}

.lux-payments__item img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 20px;
}

/* ------------------------------------ Ligne recherche + boutons (droite) */

.lux-footer__tools {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.lux-search--footer {
	flex: 1 1 auto;
	max-width: 620px;
}

.lux-search--footer .lux-search__field {
	height: 46px;
	padding-left: 1.25rem;
	font-size: 0.95rem;
	border-color: transparent;
	border-radius: 8px;
}

.lux-search--footer .lux-search__submit {
	right: 8px;
	color: var(--lux-navy);
}

.lux-search--footer .lux-search__submit svg {
	width: 20px;
	height: 20px;
}

.lux-footer .lux-btn {
	height: 46px;
}

.lux-btn--ghost {
	color: var(--lux-white);
	background: var(--lux-footer-ghost);
	border-color: rgba(255, 255, 255, 0.18);
}

.lux-btn--ghost:hover,
.lux-btn--ghost:focus-visible {
	color: var(--lux-white);
	background: var(--lux-footer-ghost-hover);
}

.lux-footer .lux-btn--gold:hover,
.lux-footer .lux-btn--gold:focus-visible {
	color: var(--lux-white);
}

.lux-footer .lux-cart-count.is-filled .lux-cart-count__badge {
	color: var(--lux-footer-bg-deep);
	background: var(--lux-white);
}

/* --------------------------------------------- Colonnes de liens */

.lux-footer__columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
}

.lux-fcol {
	padding: 0 clamp(1rem, 2vw, 1.9rem);
}

.lux-fcol:first-child {
	padding-left: 0;
}

.lux-fcol:last-child {
	padding-right: 0;
}

.lux-fcol + .lux-fcol {
	border-left: 1px solid var(--lux-footer-rule);
}

.lux-fcol__group + .lux-fcol__group {
	margin-top: 1.9rem;
	padding-top: 1.9rem;
	border-top: 1px solid var(--lux-footer-rule);
}

.lux-fcol__title {
	margin: 0 0 1.1rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--lux-white);
}

.lux-fcol__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lux-fcol__list li + li {
	margin-top: 0.85rem;
}

.lux-fcol__list a {
	font-size: 0.94rem;
	line-height: 1.4;
}

/* Rubriques sans sous-liens : titre + filet (colonne 4). */
.lux-fcol__group--solo {
	padding-bottom: 1.35rem;
	border-bottom: 1px solid var(--lux-footer-rule);
}

.lux-fcol__group--solo + .lux-fcol__group--solo {
	margin-top: 1.35rem;
	padding-top: 0;
	border-top: 0;
}

.lux-fcol__group--solo .lux-fcol__title {
	margin-bottom: 0;
}

/* ------------------------------------------------------ Barre du bas */

.lux-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem 1rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--lux-footer-rule);
	text-align: center;
}

.lux-footer__legal,
.lux-footer__agency {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.78);
}

.lux-footer__agency img {
	display: block;
	width: 16px;
	height: 16px;
}

/* -------------------------------------------------------- Responsive */

@media (max-width: 1200px) {
	.lux-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.25rem 0;
	}

	.lux-fcol:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.lux-fcol:nth-child(2),
	.lux-fcol:nth-child(4) {
		padding-right: 0;
	}
}

@media (max-width: 991px) {
	.lux-footer__grid {
		grid-template-columns: 1fr;
	}

	.lux-footer__contact {
		margin-top: 2rem;
	}

	.lux-footer__tools {
		flex-wrap: wrap;
	}

	.lux-search--footer {
		flex: 1 1 100%;
		max-width: none;
	}

	.lux-footer .lux-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

@media (max-width: 620px) {
	.lux-footer__columns {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.lux-fcol {
		padding: 0;
	}

	.lux-fcol + .lux-fcol {
		margin-top: 1.9rem;
		padding-top: 1.9rem;
		border-top: 1px solid var(--lux-footer-rule);
		border-left: 0;
	}

	.lux-footer .lux-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lux-footer *,
	.lux-footer *::before,
	.lux-footer *::after {
		transition-duration: 0.01ms !important;
	}
}
