/* Section "footer" (sections/footer.php, prefix ft-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.ft-root {
	--ft-over: 6rem; /* how far the card reaches into the dark footer */
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.ft-inner {
	position: relative;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-gutter);
}
.ft-icon { /* 3D pictogram (.hec3 in sections.css) */
	width: 1.375rem;
	height: 1.375rem;
}

/* Call-to-action: "sand" band of the canvas (2026-11-26) with two mustard circles and a halo,
   and the light card that overlaps the footer below */
.ft-band {
	position: relative;
	z-index: 1;
	isolation: isolate;
	display: flow-root; /* keeps the card's negative margin inside: the band ends before the card does */
	padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	background: var(--c-sable-300);
}
.ft-clip { /* the band's decorations stay inside the band, while the card overflows it */
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}
.ft-ring {
	position: absolute;
	top: -11rem;
	right: -8.75rem;
	width: 32.5rem;
	aspect-ratio: 1;
	border: 1px solid var(--c-ambre-500);
	border-radius: 50%;
}
.ft-ring--small {
	top: -6.25rem;
	right: -3.75rem;
	width: 22.5rem;
}
.ft-root .ft-halo { bottom: -16rem; left: -13.75rem; width: 40rem; }
@media (prefers-reduced-motion: no-preference) {
	.ft-ring { animation: ft-float 12s ease-in-out infinite alternate; }
	.ft-ring--small { animation-duration: 9s; animation-direction: alternate-reverse; }
}
@keyframes ft-float {
	to { translate: -1.25rem 1rem; }
}
.ft-card {
	display: grid;
	gap: var(--space-5);
	margin-bottom: calc(var(--ft-over) * -1);
	padding: var(--space-5);
	border: 1px solid var(--c-lin-300);
	border-radius: var(--radius-lg);
	background: var(--c-ivoire-50);
	box-shadow: var(--shadow-lg);
}
.ft-root .ft-title { /* the canvas title style (same size as every h2, below the hero h1) */
	margin: 0 0 var(--space-6);
	color: var(--c-cacao-900);
	font-family: var(--f-serif);
	font-size: var(--fs-title);
	font-weight: var(--fw-title);
	font-variation-settings: "opsz" 144, "SOFT" 100;
	line-height: 1.05;
	letter-spacing: var(--ls-title);
	text-wrap: balance;
}
.ft-title-em {
	color: var(--c-brun-500);
	font-style: italic;
	font-weight: 400;
}
.ft-facts {
	display: grid;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--c-cacao-700);
}
.ft-fact {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}
.ft-chip { width: 2.25rem; height: 2.25rem; } /* 3D pictogram, no frame (.hec3 in sections.css) */
.ft-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-6);
}
.ft-root .ft-btn { /* the shared .hec-btn; full width on small phones */
	flex: 1 1 auto;
}
.ft-root .ft-map {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 16rem;
	border: 0;
	border-radius: var(--radius-md);
	filter: sepia(0.18) saturate(0.95); /* slightly warmer, to sit with the palette */
}

/* Footer: plain dark of the canvas, with the logo's crescent in mustard. Redesigned 2026-11-27
   (client: "améliore l'apparence et le contenu"): the logo redrawn for the dark background, a short
   presentation, the Google rating as a pill, four columns with mustard-ruled labels, and a bottom
   bar with the copyright and the credit to Rimas Digital. */
.ft-foot {
	--ft-wm: clamp(20rem, 36vw, 32rem);
	--ft-hair: color-mix(in srgb, var(--c-lin-300) 16%, transparent);
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: var(--space-8) var(--space-5);
	background: var(--c-dark);
	color: var(--c-on-dark-text);
	font-size: var(--fs-body-sm);
	line-height: 1.7;
}
.ft-root--cta .ft-foot {
	padding-top: calc(var(--ft-over) + var(--space-8));
}
.ft-foot::before {
	content: "";
	position: absolute;
	right: calc(var(--ft-wm) * -0.14);
	bottom: calc(var(--ft-wm) * -0.3);
	z-index: -1;
	width: var(--ft-wm);
	aspect-ratio: 732 / 788;
	background: var(--c-ambre-500);
	-webkit-mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	opacity: 0.14;
	transform: scaleX(-1);
	pointer-events: none;
}
.ft-cols { /* phones: brand and contact full width, the two link lists side by side */
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-7) var(--space-5);
}
.ft-brand,
.ft-contact {
	grid-column: 1 / -1;
}

/* Brand: logo for the dark background, presentation, Google rating */
.ft-brand {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: var(--space-5);
}
.ft-root .ft-logo {
	display: inline-block;
	border-radius: var(--radius-sm);
	line-height: 0;
}
.ft-root .ft-logo-img { /* assets/img/logo-footer.webp: the client's logo recoloured for --c-dark */
	display: block;
	width: auto;
	height: 3.5rem;
}
.ft-root .ft-about { /* the site's paragraph style on dark */
	max-width: 28em;
	margin: 0;
	color: var(--c-on-dark-text);
	font-size: var(--fs-body-sm);
	line-height: 1.7;
}
.ft-root .ft-rating { /* a pill: Google logo, score, stars, number of reviews */
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	min-height: 2.75rem;
	padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
	border: 1px solid var(--ft-hair);
	border-radius: var(--radius-pill);
	background: color-mix(in srgb, var(--c-ivoire-100) 5%, transparent);
	color: var(--c-ivoire-100);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.25s, background-color 0.25s;
}
.ft-root .ft-rating:hover {
	border-color: var(--c-ambre-500);
	background: color-mix(in srgb, var(--c-ambre-500) 10%, transparent);
}
.ft-root .ft-rating-logo {
	width: 1.25rem;
	height: 1.25rem;
}
.ft-stars {
	display: inline-flex;
	gap: 0.125rem;
}
.ft-star {
	width: 0.875rem;
	height: 0.875rem;
	fill: var(--c-ambre-500);
}
.ft-rating-count {
	color: var(--c-on-dark-muted);
	font-weight: 400;
}

/* Columns: label with a mustard rule, then the links */
.ft-root .ft-label {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: 0 0 var(--space-5);
	color: var(--c-on-dark-muted);
	font-family: var(--f-sans);
	font-size: var(--fs-index);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ft-root .ft-label::before {
	content: "";
	flex: 0 0 1.5rem;
	height: 1px;
	background: var(--c-ambre-500);
}
.ft-list {
	display: grid;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}
.ft-root .ft-link { /* ivory; on hover, mustard with a line drawn under it */
	padding-bottom: 0.125rem;
	border-radius: 0;
	background: linear-gradient(var(--c-ambre-500), var(--c-ambre-500)) 0 100% / 0 1px no-repeat;
	color: var(--c-ivoire-100);
	text-decoration: none;
	transition: color 0.2s, background-size 0.35s var(--ease-doux);
}
.ft-root .ft-link:hover {
	background-size: 100% 1px;
	color: var(--c-ambre-500);
}
.ft-row { /* contact: 3D pictogram, then the text */
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
}
.ft-row .ft-icon {
	margin-top: 0.1em;
}
.ft-small { /* small label over a contact line: "Mobile", "Fixe", days */
	display: block;
	color: var(--c-on-dark-muted);
	font-size: var(--fs-caption);
	line-height: 1.4;
}

/* Bottom bar: copyright, credit */
.ft-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-6);
	margin-top: var(--space-8);
	padding-top: var(--space-5);
	border-top: 1px solid var(--ft-hair);
	color: var(--c-on-dark-muted);
	font-size: var(--fs-caption);
}
.ft-bottom p {
	margin: 0;
}
.ft-root .ft-credit-link {
	border-radius: var(--radius-sm);
	color: var(--c-ivoire-100);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--c-ambre-500);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: color 0.2s;
}
.ft-root .ft-credit-link:hover {
	color: var(--c-ambre-500);
}
.ft-root .ft-link:focus-visible,
.ft-root .ft-rating:focus-visible,
.ft-root .ft-logo:focus-visible,
.ft-root .ft-credit-link:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
}

@media (min-width: 480px) {
	.ft-root .ft-btn { flex: 0 0 auto; }
}

@media (min-width: 768px) {
	.ft-card { padding: var(--space-6); }
	.ft-cols { grid-template-columns: 0.8fr 1fr 1.2fr; gap: var(--space-7) var(--space-6); }
	.ft-contact { grid-column: auto; }
}

@media (min-width: 1024px) {
	.ft-root { --ft-over: 8rem; }
	.ft-card {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-7);
		padding: var(--space-7);
	}
	.ft-foot { padding-bottom: var(--space-6); }
	.ft-cols {
		grid-template-columns: 1.45fr 0.75fr 1fr 1.2fr;
		gap: var(--space-8) var(--space-7);
	}
	.ft-brand { grid-column: auto; }
}
@media (max-width: 359px) { /* very small phones: one column */
	.ft-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.ft-root .ft-link,
	.ft-root .ft-rating,
	.ft-root .ft-credit-link {
		transition: none;
	}
}
