/* =========================
   FOOTER CUSTOM — Aqualio
   Objectif:
   - fond sombre / texte clair
   - desktop en 3 colonnes: social / liens page / paiement
   - les 3 colonnes utilisent 80% de la largeur du footer sur desktop
   - cartes/liens contrastés
   - copyright compact
   - slogan centré en style citation
   ========================= */

/* Variables locales */
.custom-footer{
	--tt5c-f-bg: var(--button-bg, var(--wp--preset--color--contrast, #0B1F2A));
	--tt5c-f-fg: var(--button-color, var(--wp--preset--color--base, #fff));

	--tt5c-f-border: rgba(255,255,255,.16);
	--tt5c-f-muted: rgba(255,255,255,.82);

	--tt5c-f-card-bg: rgba(255,255,255,.06);
	--tt5c-f-card-bg-hover: var(--tt5c-f-fg);
	--tt5c-f-card-fg-hover: var(--tt5c-f-bg);

	background: var(--tt5c-f-bg);
	color: var(--tt5c-f-fg);

	padding-top: var(--wp--preset--spacing--60, 48px);
	padding-bottom: var(--wp--preset--spacing--50, 40px);

	position: relative;
	isolation: isolate;
}

.custom-footer::before{
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tt5c-f-bg);
	z-index: -1;
}

.custom-footer a{
	color: inherit;
}

.custom-footer .footer-inner{
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--style--root--padding-left, 24px);
	padding-right: var(--wp--style--root--padding-right, 24px);
}

/*
Desktop:
On ne dépend plus de --wp--style--global--content-size, souvent trop étroit.
Les 3 colonnes occupent 80% de la largeur réelle du footer.
*/
@media (min-width: 901px){
	.custom-footer .footer-inner{
		width: 80%;
		max-width: 1440px;
		padding-left: 0;
		padding-right: 0;
	}
}

/* Ancienne ligne décorative: neutralisée si elle existe encore en cache */
.custom-footer .footer-topline{
	display: none !important;
}

/* Layout top: desktop = 3 colonnes */
.custom-footer .footer-top{
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: stretch;
}

@media (max-width: 900px){
	.custom-footer .footer-top{
		grid-template-columns: 1fr;
		align-items: start;
	}
}

/* Titres de colonnes */
.custom-footer .footer-section-title,
.custom-footer .trust-header{
	margin: 0 0 14px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--tt5c-f-border);

	display: flex;
	align-items: center;
	gap: 10px;

	font-family: inherit;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.35;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--tt5c-f-muted);
}

.custom-footer .footer-muted{
	margin: 0;
	color: var(--tt5c-f-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Navigation */
.custom-footer .footer-nav{
	display: grid;
	gap: 10px;
	align-content: start;

	border: 1px solid var(--tt5c-f-border);
	border-radius: 16px;
	padding: 16px 16px;

	background: rgba(255,255,255,.04);
	backdrop-filter: blur(6px);
}

.custom-footer .footer-link{
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;

	padding: 12px 12px;
	border-radius: 14px;

	text-decoration: none;
	font-weight: 750;
	color: var(--tt5c-f-fg);

	background: var(--tt5c-f-card-bg);
	border: 1px solid transparent;

	transition:
		background .15s ease,
		color .15s ease,
		transform .15s ease,
		border-color .15s ease,
		box-shadow .15s ease;
}

.custom-footer .footer-link:hover,
.custom-footer .footer-link:focus-visible{
	background: var(--tt5c-f-card-bg-hover);
	color: var(--tt5c-f-card-fg-hover);
	border-color: var(--tt5c-f-card-bg-hover);
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.custom-footer .footer-link:focus-visible{
	outline: 2px solid var(--tt5c-f-fg);
	outline-offset: 3px;
}

.custom-footer .f-ico{
	flex: 0 0 auto;
	opacity: .95;
	color: currentColor;
}

.custom-footer .footer-link .f-ico{
	transition: transform .15s ease;
}

.custom-footer .footer-link:hover .f-ico,
.custom-footer .footer-link:focus-visible .f-ico{
	transform: translateX(2px);
}

/* Profils sociaux */
.custom-footer .footer-socials{
	display: grid;
	gap: 10px;
	align-content: start;

	border: 1px solid var(--tt5c-f-border);
	border-radius: 16px;
	padding: 16px 16px;

	background: rgba(255,255,255,.04);
	backdrop-filter: blur(6px);
}

.custom-footer .footer-socials-list{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.custom-footer .footer-social-link{
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	border-radius: 999px;

	color: var(--tt5c-f-fg);
	background: var(--tt5c-f-card-bg);
	border: 1px solid var(--tt5c-f-border);
	text-decoration: none;
	line-height: 1;

	transition:
		background .15s ease,
		color .15s ease,
		transform .15s ease,
		border-color .15s ease,
		box-shadow .15s ease;
}

.custom-footer .footer-social-link:hover,
.custom-footer .footer-social-link:focus-visible{
	background: var(--tt5c-f-card-bg-hover);
	color: var(--tt5c-f-card-fg-hover);
	border-color: var(--tt5c-f-card-bg-hover);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.custom-footer .footer-social-link:focus-visible{
	outline: 2px solid var(--tt5c-f-fg);
	outline-offset: 3px;
}

.custom-footer .footer-social-icon{
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	fill: currentColor;
}

@media (max-width: 480px){
	.custom-footer .footer-socials{
		text-align: center;
	}

	.custom-footer .footer-socials-list{
		justify-content: center;
	}

	.custom-footer .footer-social-link{
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.custom-footer .footer-social-icon{
		width: 23px;
		height: 23px;
		flex-basis: 23px;
	}
}

/* Trust card / Paiement */
.custom-footer .footer-trust-card{
	border: 1px solid var(--tt5c-f-border);
	border-radius: 16px;
	padding: 16px 16px;

	background: rgba(255,255,255,.04);
	backdrop-filter: blur(6px);
}

.custom-footer .payment-grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: center;
}

.custom-footer .payment-grid img{
	display: block;
	width: 100%;
	max-width: 110px;
	height: auto;

	filter: invert(1) grayscale(1) contrast(1.1);
	opacity: .95;
}

@media (max-width: 900px){
	.custom-footer .payment-grid{
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 480px){
	.custom-footer .payment-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Accessibilité: texte masqué */
.custom-footer .sr-only{
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Bottom compact: pas de ligne décorative, copyright puis slogan */
.custom-footer .footer-bottom{
	margin-top: var(--wp--preset--spacing--60, 48px);
	padding-top: 0;
	border-top: 0;
	text-align: center;
}

.custom-footer .footer-copy{
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: .35em;

	margin: 0;

	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--tt5c-f-fg);
}

.custom-footer .footer-copy span,
.custom-footer .footer-copy a{
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

.custom-footer .footer-site-url{
	text-decoration: none;
	font-weight: 600;
}

.custom-footer .footer-site-url:hover,
.custom-footer .footer-site-url:focus-visible{
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .18em;
}

.custom-footer .footer-site-url:focus-visible{
	outline: 2px solid var(--tt5c-f-fg);
	outline-offset: 2px;
	border-radius: 4px;
}

.custom-footer .footer-quote{
	position: relative;
	display: inline-block;

	margin: 12px auto 0;
	padding: 0 34px;

	font-family: var(--font-heading, inherit);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 500;
	font-style: italic;
	line-height: 1.5;
	letter-spacing: .01em;
	text-align: center;
	color: var(--tt5c-f-muted);
}

.custom-footer .footer-quote::before,
.custom-footer .footer-quote::after{
	position: absolute;
	top: 50%;
	transform: translateY(-52%);

	font-family: Georgia, "Times New Roman", serif;
	font-size: 34px;
	font-style: normal;
	line-height: 1;
	color: rgba(255,255,255,.34);
}

.custom-footer .footer-quote::before{
	content: "“";
	left: 0;
}

.custom-footer .footer-quote::after{
	content: "”";
	right: 0;
}

.custom-footer .footer-quote span{
	display: inline;
}