/* ==========================================================================
   FITFLEX Premium — main.css
   Jetons de design, base, typographie, mise en page, en-tête, navigation,
   boutons, pied de page. Mobile d'abord.
   ========================================================================== */

/* ---------- 1. Jetons ---------- */
:root {
	/* Palette FITFLEX (références de travail, modifiables dans le personnaliseur). */
	--ff-greige: #D8CBBB;     /* beige grège officiel (fitflex.tn) */
	--ff-taupe: #A08A72;
	--ff-cream: #FFF2E1;      /* crème officiel */
	--ff-beige: #F8EAD7;      /* beige clair officiel */
	--ff-charcoal: #1F1F1F;   /* noir principal officiel */
	--ff-black: #111111;
	--ff-white: #FFFFFF;
	--ff-gray: #777777;
	--ff-border: #EADCC9;
	--ff-brown: #372814;      /* brun officiel */
	--ff-whatsapp: #20BD3C;   /* vert WhatsApp du site */

	/* Dérivés accessibles (texte) : grège et taupe ne passent pas AA en texte sur fond clair. */
	--ff-taupe-ink: #4B3E2C;   /* brun officiel : 10,9:1 sur blanc, 9,9:1 sur crème */
	--ff-muted: #5E5E5E;       /* 5,7:1 sur crème */
	--ff-on-dark-muted: #CFC6B8; /* sur #111 : 11:1 */

	/* Palette FITFLEX ACADEMY. */
	--academy-primary: #1B1712;
	--academy-secondary: #372814;
	--academy-background: #FFF7EC;
	--academy-text: #111111;
	--academy-accent: #D8CBBB;

	/* Rôles. */
	--ff-bg: var(--ff-white);
	--ff-surface: var(--ff-cream);
	--ff-text: #363636;
	--ff-heading: var(--ff-black);
	--ff-accent: var(--ff-taupe);
	--ff-link: var(--ff-taupe-ink);
	--ff-focus: #4B3E2C;

	/* Typographie. */
	--ff-font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--ff-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ff-fs-display: clamp(2.75rem, 1.55rem + 5.2vw, 5.75rem);
	--ff-fs-h1: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);
	--ff-fs-h2: clamp(2.125rem, 1.55rem + 2.5vw, 3.625rem);
	--ff-fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
	--ff-fs-h4: 1.25rem;
	--ff-fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	--ff-fs-body: 1.0625rem;
	--ff-fs-sm: 0.9375rem;
	--ff-fs-xs: 0.8125rem;

	/* Espacements & mise en page. */
	--ff-gutter: clamp(16px, 4.5vw, 48px);
	--ff-max: 1240px;
	--ff-text-max: 760px;
	--ff-section: clamp(72px, 10vw, 136px);
	--ff-gap: clamp(24px, 3.5vw, 48px);
	--ff-header-h: 68px;

	/* Rayons (échelle : 6 / 8 / 24 / pilule). */
	--ff-r-card: 6px;
	--ff-r-img: 8px;
	--ff-r-soft: 24px;
	--ff-r-pill: 999px;

	/* Ombre réservée au bouton principal (halo grège). */
	--ff-shadow-cta: 0 10px 24px -10px rgba(75, 62, 44, .55), 0 1px 3px rgba(17, 17, 17, .08);

	--ff-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 1080px) {
	:root { --ff-header-h: 80px; }
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ff-header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--ff-bg);
	color: var(--ff-text);
	font-family: var(--ff-font-sans);
	font-size: var(--ff-fs-body);
	line-height: 1.65;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.ff-nav-open { overflow: hidden; }

:where(img, svg, video, iframe, picture) { max-width: 100%; }
:where(img, video) { height: auto; display: block; }

:where(a) {
	color: var(--ff-link);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}
:where(a:hover) { color: var(--ff-heading); }

:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ff-font-serif);
	font-weight: 500;
	color: var(--ff-heading);
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
:where(h1) { font-size: var(--ff-fs-h1); }
:where(h2) { font-size: var(--ff-fs-h2); }
:where(h3) { font-size: var(--ff-fs-h3); }
:where(h4) { font-size: var(--ff-fs-h4); }
:where(h1, h2, h3) em { font-style: italic; font-weight: 400; color: var(--ff-taupe-ink); }

:where(p, ul, ol, dl, blockquote, figure) { margin: 0 0 1.1em; }
:where(p) { text-wrap: pretty; }

::selection { background: var(--ff-beige); color: var(--ff-black); }

/* Focus clavier visible et cohérent (WCAG 2.4.7 / 2.4.11). */
:focus-visible {
	outline: 2px solid var(--ff-focus);
	outline-offset: 3px;
	border-radius: 4px;
}
.ff-main:focus { outline: none; }

/* Accessibilité. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
	background: var(--ff-white);
	padding: 12px 16px;
}

.ff-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--ff-black);
	color: var(--ff-white);
	border-radius: var(--ff-r-pill);
	font-weight: 500;
	text-decoration: none;
}
.ff-skip-link:focus { top: 12px; color: var(--ff-white); }

/* ---------- 3. Mise en page ---------- */
.ff-container {
	width: 100%;
	max-width: calc(var(--ff-max) + 2 * var(--ff-gutter));
	margin-inline: auto;
	padding-inline: var(--ff-gutter);
}
.ff-container--text { max-width: calc(var(--ff-text-max) + 2 * var(--ff-gutter)); }

.ff-section { padding-block: var(--ff-section); position: relative; }
.ff-section--tight-top { padding-top: clamp(32px, 4vw, 56px); }
.ff-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.ff-section--cream { background: var(--ff-cream); }
.ff-section--beige { background: var(--ff-beige); }
.ff-section:focus { outline: none; }

.ff-mb { margin-bottom: clamp(32px, 4vw, 56px); }
.ff-center { text-align: center; }

/* Composition texte + image. */
.ff-split {
	display: grid;
	gap: var(--ff-gap);
	align-items: center;
}
.ff-split--top { align-items: start; }
@media (min-width: 960px) {
	.ff-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); }
	.ff-split--media-start .ff-split__media { order: -1; }
	.ff-split--narrow-start { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- 4. Typographie éditoriale ---------- */
.ff-eyebrow {
	font-family: var(--ff-font-sans);
	font-size: var(--ff-fs-xs);
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ff-taupe-ink);
	margin: 0 0 18px;
}
.ff-eyebrow a { color: inherit; text-decoration: none; }

.ff-rule {
	display: block;
	width: 64px;
	height: 2px;
	background: var(--ff-accent);
	margin: 22px 0 26px;
}
.ff-rule--center { margin-inline: auto; }

.ff-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 720px; }
.ff-head--center { margin-inline: auto; text-align: center; }
.ff-head--center .ff-rule { margin-inline: auto; }
.ff-head__title { margin: 0; font-size: var(--ff-fs-h2); letter-spacing: -0.02em; }
.ff-head__text { color: var(--ff-muted); font-size: var(--ff-fs-lead); line-height: 1.6; }
.ff-head__text p:last-child { margin-bottom: 0; }
.ff-head-row { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(32px, 4vw, 56px); }
.ff-head-row .ff-head { margin-bottom: 0; }
.ff-head-row .ff-actions { margin: 0; }

.ff-subtitle { font-size: 1.5rem; margin: 40px 0 16px; }
.ff-subtitle--lg { font-size: var(--ff-fs-h3); margin-top: 0; }

.ff-prose { font-size: var(--ff-fs-body); }
.ff-prose > *:first-child { margin-top: 0; }
.ff-prose :where(h2) { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.625rem); margin: 1.6em 0 .55em; }
.ff-prose :where(h3) { font-size: clamp(1.375rem, 1.25rem + .5vw, 1.75rem); margin: 1.5em 0 .45em; }
.ff-prose :where(ul, ol) { padding-left: 1.25em; }
.ff-prose :where(li) { margin-bottom: .45em; }
.ff-prose :where(li)::marker { color: var(--ff-taupe); }
.ff-prose :where(blockquote) {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--ff-accent);
	font-family: var(--ff-font-serif);
	font-size: 1.5rem;
	line-height: 1.4;
	color: var(--ff-heading);
}
.ff-prose :where(img) { border-radius: var(--ff-r-img); }
.ff-prose :where(figcaption) { font-size: var(--ff-fs-xs); color: var(--ff-muted); margin-top: 8px; }
.ff-prose :where(hr) { border: 0; border-top: 1px solid var(--ff-border); margin: 2.5em 0; }
.ff-prose :where(table) { width: 100%; border-collapse: collapse; font-size: var(--ff-fs-sm); }
.ff-prose :where(th, td) { border-bottom: 1px solid var(--ff-border); padding: 10px 8px; text-align: left; }

/* Blocs Gutenberg courants. */
.ff-entry .alignwide { max-width: min(var(--ff-max), calc(100vw - 2 * var(--ff-gutter))); margin-inline: calc(50% - min(var(--ff-max), calc(100vw - 2 * var(--ff-gutter))) / 2); }
.ff-entry .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.ff-entry .aligncenter { margin-inline: auto; }
.ff-entry .wp-block-image img { border-radius: var(--ff-r-img); }
.ff-entry .wp-block-button__link { border-radius: var(--ff-r-pill); padding: 14px 28px; font-weight: 500; text-decoration: none; }

/* ---------- 5. Boutons ---------- */
.ff-btn,
.ffc-btn {
	--btn-bg: var(--ff-charcoal);
	--btn-fg: var(--ff-white);
	--btn-bd: var(--ff-charcoal);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 28px;
	border: 1px solid var(--btn-bd);
	border-radius: var(--ff-r-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--ff-font-sans);
	font-size: .9375rem;
	font-weight: 500;
	letter-spacing: .01em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s var(--ff-ease), color .25s var(--ff-ease), border-color .25s var(--ff-ease), transform .25s var(--ff-ease), box-shadow .25s var(--ff-ease);
	-webkit-tap-highlight-color: transparent;
}
.ff-btn .ff-icon,
.ffc-btn .ffc-icon { transition: transform .25s var(--ff-ease); }
.ff-btn:hover .ff-icon--arrow,
.ffc-btn:hover .ffc-icon--arrow { transform: translateX(3px); }
.ff-btn:hover, .ffc-btn:hover { color: var(--btn-fg); }
.ff-btn:focus-visible, .ffc-btn:focus-visible { outline-offset: 4px; border-radius: var(--ff-r-pill); }
.ff-btn[disabled], .ffc-btn[disabled] { opacity: .6; cursor: progress; }

.ff-btn--primary,
.ffc-btn--primary { box-shadow: var(--ff-shadow-cta); }
.ff-btn--primary:hover,
.ffc-btn--primary:hover { --btn-bg: var(--ff-black); --btn-bd: var(--ff-black); transform: translateY(-1px); }

.ff-btn--secondary,
.ffc-btn--secondary { --btn-bg: transparent; --btn-fg: var(--ff-black); --btn-bd: rgba(17, 17, 17, .22); }
.ff-btn--secondary:hover,
.ffc-btn--secondary:hover { --btn-bg: var(--ff-black); --btn-fg: var(--ff-white); --btn-bd: var(--ff-black); }

.ff-btn--light { --btn-bg: var(--ff-cream); --btn-fg: var(--ff-black); --btn-bd: var(--ff-cream); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .55); }
.ff-btn--light:hover { --btn-bg: var(--ff-white); --btn-bd: var(--ff-white); --btn-fg: var(--ff-black); transform: translateY(-1px); }

.ff-btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--ff-white); --btn-bd: rgba(255, 255, 255, .4); }
.ff-btn--ghost-light:hover { --btn-bg: var(--ff-white); --btn-fg: var(--ff-black); --btn-bd: var(--ff-white); }

.ff-btn--link {
	--btn-bg: transparent;
	--btn-bd: transparent;
	--btn-fg: var(--ff-black);
	min-height: 44px;
	padding: 10px 0;
	border-radius: 0;
	box-shadow: inset 0 -1px 0 var(--ff-accent);
}
.ff-btn--link:hover { --btn-fg: var(--ff-taupe-ink); }

.ff-btn--sm { min-height: 44px; padding: 10px 20px; font-size: .875rem; }
.ff-btn--block { display: flex; width: 100%; }

.ff-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 32px; }
.ff-actions--center { justify-content: center; }

.ff-icon, .ffc-icon { flex: none; }

/* ---------- 6. Bandeau d'annonce ---------- */
.ff-announcement { background: var(--ff-cream); border-bottom: 1px solid var(--ff-border); font-size: var(--ff-fs-xs); }
.ff-announcement p { margin: 0; padding-block: 10px; text-align: center; color: var(--ff-charcoal); }
.ff-announcement a { margin-left: 10px; color: var(--ff-black); font-weight: 500; }

/* ---------- 7. En-tête & navigation ---------- */
.ff-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ff-ease), background-color .3s var(--ff-ease);
	isolation: isolate;
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur .ff-header deviendrait
   le bloc conteneur du panneau mobile en position fixe et le tronquerait. */
@supports (backdrop-filter: blur(12px)) {
	.ff-header { background: transparent; }
	.ff-header::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: rgba(255, 255, 255, .78);
		backdrop-filter: saturate(1.4) blur(14px);
		-webkit-backdrop-filter: saturate(1.4) blur(14px);
	}
	.is-academy .ff-header::before { background: rgba(247, 244, 239, .82); }
}
.admin-bar .ff-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ff-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ff-header { top: 0; } }
.ff-header.is-scrolled { border-bottom-color: var(--ff-border); }

.ff-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--ff-header-h);
}
.ff-header__brand { flex: none; }
.ff-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.ff-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ff-black); }
.ff-logo__img { height: 48px; width: auto; }
@media (min-width: 1080px) { .ff-logo__img { height: 58px; } }
.ff-logo { gap: 10px; }
.ff-logo__sub { font-family: var(--ff-font-sans); font-size: .6875rem; font-weight: 500; letter-spacing: .32em; color: var(--ff-taupe-ink); align-self: flex-end; margin-bottom: 4px; }
.ff-footer .ff-logo__img { height: 72px; }
.ff-footer .ff-logo__sub { color: var(--ff-greige); }
.ff-wordmark {
	font-family: var(--ff-font-sans);
	font-weight: 500;
	font-size: 1.125rem;
	letter-spacing: .32em;
	margin-right: -.32em;
	color: inherit;
	line-height: 1;
	display: inline-flex;
	align-items: baseline;
	gap: .6em;
}
.ff-wordmark__sub {
	font-family: var(--ff-font-sans);
	font-weight: 400;
	font-size: .58em;
	letter-spacing: .34em;
	color: var(--ff-taupe-ink);
}

.ff-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ff-border);
	border-radius: 50%;
	background: var(--ff-white);
	color: var(--ff-black);
	cursor: pointer;
}
.ff-burger__open,
.ff-burger__close { display: inline-flex; }
.ff-burger .ff-burger__close,
.ff-burger[aria-expanded="true"] .ff-burger__open { display: none; }
.ff-burger[aria-expanded="true"] .ff-burger__close { display: inline-flex; }

.ff-menu, .ff-menu ul { list-style: none; margin: 0; padding: 0; }
.ff-menu a {
	color: var(--ff-charcoal);
	text-decoration: none;
	font-size: .9375rem;
	font-weight: 450;
}
.ff-menu a:hover,
.ff-menu .current-menu-item > a,
.ff-menu .current-menu-ancestor > a,
.ff-menu a[aria-current="page"] { color: var(--ff-black); }

.ff-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: 50%;
}
.ff-submenu-toggle .ff-icon { transition: transform .25s var(--ff-ease); }
.ff-submenu-toggle[aria-expanded="true"] .ff-icon { transform: rotate(180deg); }

/* Mobile : panneau plein écran. */
@media (max-width: 1079.98px) {
	.ff-header__cta { display: none; }
	.ff-nav {
		position: fixed;
		inset: var(--ff-header-h) 0 0 0;
		z-index: 99;
		display: flex;
		flex-direction: column;
		gap: 32px;
		padding: 24px var(--ff-gutter) calc(32px + env(safe-area-inset-bottom));
		background: var(--ff-cream);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .25s var(--ff-ease), transform .25s var(--ff-ease), visibility 0s linear .25s;
	}
	.admin-bar .ff-nav { top: calc(var(--ff-header-h) + 46px); }
	.ff-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .25s var(--ff-ease), transform .25s var(--ff-ease), visibility 0s;
	}
	/* Sans JavaScript, le menu reste affiché sous l'en-tête. */
	html:not(.ff-js) .ff-header { position: relative; top: 0; }
	html:not(.ff-js) .ff-header__inner { flex-wrap: wrap; }
	html:not(.ff-js) .ff-nav { position: static; order: 3; width: 100%; visibility: visible; opacity: 1; transform: none; padding: 0 0 24px; gap: 16px; background: transparent; overflow: visible; }
	html:not(.ff-js) .ff-menu > li > a { font-size: 1.375rem; padding: 10px 0; }
	html:not(.ff-js) .ff-burger { display: none; }

	.ff-menu > li { border-bottom: 1px solid var(--ff-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.ff-menu > li > a {
		display: block;
		flex: 1;
		padding: 16px 0;
		font-family: var(--ff-font-serif);
		font-size: 1.75rem;
		font-weight: 500;
		color: var(--ff-black);
	}
	.ff-menu .sub-menu { width: 100%; padding: 0 0 16px 4px; }
	.ff-js .ff-menu .sub-menu { display: none; }
	.ff-js .ff-menu .sub-menu.is-open { display: block; }
	.ff-menu .sub-menu a { display: block; padding: 10px 0; font-size: 1rem; color: var(--ff-charcoal); }
	.ff-submenu-toggle { width: 48px; height: 48px; }

	.ff-nav__mobile-extra { display: grid; gap: 20px; }
	.ff-nav__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
	.ff-nav__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--ff-black); text-decoration: none; min-height: 44px; }
}

/* Ordinateur : navigation horizontale. */
@media (min-width: 1080px) {
	.ff-burger, .ff-nav__mobile-extra { display: none; }
	.ff-nav { flex: 1; display: flex; justify-content: center; }
	.ff-menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
	.ff-menu > li { position: relative; display: flex; align-items: center; }
	.ff-menu > li > a {
		position: relative;
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 4px 0;
	}
	.ff-menu > li > a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 6px;
		height: 1px;
		background: var(--ff-taupe);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .3s var(--ff-ease);
	}
	.ff-menu > li > a:hover::after,
	.ff-menu > .current-menu-item > a::after,
	.ff-menu > .current-menu-ancestor > a::after,
	.ff-menu > li > a[aria-current="page"]::after { transform: scaleX(1); }
	.ff-submenu-toggle { margin-left: 2px; width: 28px; height: 28px; }

	.ff-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: -20px;
		min-width: 240px;
		padding: 10px;
		background: var(--ff-white);
		border: 1px solid var(--ff-border);
		border-radius: var(--ff-r-img);
		box-shadow: 0 18px 40px -24px rgba(17, 17, 17, .35);
		visibility: hidden;
		opacity: 0;
		transform: translateY(6px);
		transition: opacity .2s var(--ff-ease), transform .2s var(--ff-ease), visibility 0s linear .2s;
	}
	.ff-menu li:hover > .sub-menu,
	.ff-menu li:focus-within > .sub-menu,
	.ff-menu .sub-menu.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .2s var(--ff-ease), transform .2s var(--ff-ease), visibility 0s;
	}
	.ff-menu .sub-menu a { display: block; padding: 10px 14px; border-radius: var(--ff-r-card); font-size: .9375rem; }
	.ff-menu .sub-menu a:hover { background: var(--ff-cream); }
}

/* ---------- 8. Pied de page ---------- */
.ff-footer {
	background: var(--ff-black);
	color: var(--ff-on-dark-muted);
	padding-top: clamp(64px, 8vw, 112px);
	font-size: var(--ff-fs-sm);
}
.ff-footer a { color: var(--ff-white); text-decoration: none; }
.ff-footer a:hover { color: var(--ff-greige); }
.ff-footer .ff-btn, .ff-footer .ff-btn:hover { color: var(--btn-fg); }
.ff-footer :focus-visible { outline-color: var(--ff-greige); }
.ff-footer__top {
	display: grid;
	gap: 48px;
	padding-bottom: 56px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 720px) { .ff-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ff-footer__top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.ff-footer__logos { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-bottom: 24px; }
.ff-footer .ff-logo { color: var(--ff-white); }
.ff-footer .ff-wordmark__sub { color: var(--ff-greige); }
.ff-footer__text { max-width: 380px; line-height: 1.7; margin-bottom: 28px; }
.ff-footer__title {
	font-family: var(--ff-font-sans);
	font-size: var(--ff-fs-xs);
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ff-greige);
	margin: 0 0 20px;
}
.ff-footer__menu, .ff-footer__list, .ff-footer__social, .ff-footer__legal { list-style: none; margin: 0; padding: 0; }
.ff-footer__menu li, .ff-footer__list li { margin-bottom: 4px; }
.ff-footer__menu a, .ff-footer__list a { display: inline-block; padding: 6px 0; }
.ff-footer__address { font-style: normal; line-height: 1.7; margin-bottom: 12px; }
.ff-footer__hours { margin: 0 0 20px; }
.ff-footer__hours div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ff-footer__hours dd { margin: 0; color: var(--ff-white); }
.ff-footer__muted { color: var(--ff-on-dark-muted); }
.ff-footer__social { display: flex; gap: 8px; margin-top: 20px; }
.ff-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
}
.ff-footer__social a:hover { border-color: var(--ff-greige); }
.ff-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	align-items: center;
	justify-content: space-between;
	padding-block: 28px calc(28px + env(safe-area-inset-bottom));
	font-size: var(--ff-fs-xs);
}
.ff-footer__bottom p { margin: 0; }
.ff-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ff-footer__top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
