/* Fivva front page — scoped under .mf-home, enqueued only on is_front_page(). */

/* Self-hosted from v18's own font files — no Google Fonts CDN request. */
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url(../fonts/dm-sans-1.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url(../fonts/dm-sans-2.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.mf-home {
	--mf-dark: #1A2120;
	--mf-lime: #CCFF00;
	--mf-sage: #E8F5E9;
	--mf-soft: #FDFBF7;
	--mf-blue: #9FCDDE;
	--mf-white: #fff;
	--mf-neutral: #F7F8F4;
	--mf-muted: #596472;
	--mf-border: #dfe4de;
	--mf-radius: 22px;
	--mf-shadow: 0 18px 50px #20273312;
	--mf-wine: #773451;
	--mf-wine-dark: #712B50;
	--mf-wine-light: #913D66;
	--mf-nav-btn: #050810;
	--mf-olive: #657900;
	--mf-lime-soft: #C1D362;
	--mf-panel: #2B3442;
	--mf-footer-bg: #F2F5EB;
	--mf-on-dark-muted: #c7ccd4;
	--mf-stat-label: #D6DBE1;
	--mf-bar-fill: #3D8B40;
	--mf-app-border: #BFCDB4;
	--mf-font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color-scheme: light;
	color: var(--mf-dark);
	font-family: var(--mf-font);
	line-height: 1.5;
}

.mf-home * {
	box-sizing: border-box;
	/* Listeo's own Customizer typography setting outputs a direct rule
	   (`body, h1, h2, ..., button, input { font-family: Outfit }`) in
	   wp_head — a direct declaration beats inheritance regardless of
	   specificity, so headings/buttons/inputs were silently rendering in
	   Outfit instead of DM Sans. This rule's specificity (one class) is
	   still enough to out-rank Listeo's bare-tag selectors and win. */
	font-family: inherit;
}

/* The blanket rule above also forced every FontAwesome icon on the
   homepage (favorite heart, star ratings, etc. — real Listeo markup, not
   just listing-card.css's own) to inherit DM Sans instead of keeping its
   own icon font, so the glyphs silently stopped rendering. A higher-
   specificity exception restores it; [class*="fa-"] covers both the
   older "fa fa-heart" and current "fa-solid fa-heart" conventions. */
.mf-home .fa,
.mf-home [class*="fa-"] {
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro", FontAwesome, sans-serif;
}

/* Header/nav/.mf-icon moved to assets/css/site-header-footer.css (site-wide). */

/* Hero */

.mf-home .mf-hero {
	background-color: var(--mf-white);
	background-image:
		radial-gradient(at 0% 5%, #C9EEE0 0px, transparent 32%),
		radial-gradient(at 78% 0%, #FFF3CB 0px, transparent 29%),
		radial-gradient(at 100% 18%, #FBE1EF 0px, transparent 35%),
		radial-gradient(at 0% 100%, #E0F2F8 0px, transparent 30%);
	text-align: center;
	padding-block: 32px 48px;
}

@media (min-width: 780px) {
	.mf-home .mf-hero {
		padding-block: 72px 96px;
	}
}

.mf-home .mf-location-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid var(--mf-lime-soft);
	border-radius: 30px;
	padding-block: 7px;
	padding-inline: 14px;
	font-size: 13px;
	color: var(--mf-dark);
	cursor: pointer;
	margin-block-end: 20px;
	transition: opacity .15s ease;
}

@media (hover: hover) {
	.mf-home .mf-location-chip:hover {
		opacity: .75;
	}
}

.mf-home .mf-location-chip:focus-visible {
	outline: 2px solid var(--mf-lime);
	outline-offset: 2px;
}

/* City picker: bottom sheet on mobile, centered card on desktop. [open] gate matters — see mf-render_city_picker. */
.mf-home dialog.mf-city-dialog[open] {
	margin: 0;
	inset: auto 0 0 0;
	width: 100%;
	max-width: 100%;
	max-height: 82vh;
	border: none;
	border-radius: 20px 20px 0 0;
	padding: 0;
	box-shadow: 0 -12px 34px rgba(26, 33, 32, .18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-size: 16px;
	color: var(--mf-dark);
}

.mf-home dialog.mf-city-dialog::backdrop {
	background: rgba(26, 33, 32, .55);
}

.mf-home dialog.mf-city-dialog::before {
	content: "";
	display: block;
	width: 36px;
	height: 4px;
	background: #DDD;
	border-radius: 2px;
	margin: 10px auto 0;
	flex-shrink: 0;
}

.mf-home .mf-city-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px 12px;
	flex-shrink: 0;
}

.mf-home .mf-city-dialog-head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--mf-dark);
}

.mf-home .mf-city-dialog-close {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #F2F2F2;
	color: var(--mf-dark);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.mf-home .mf-city-dialog-list {
	list-style: none;
	margin: 0;
	padding: 4px 12px calc(20px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mf-home .mf-city-dialog-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 12px;
	border-radius: 12px;
	color: var(--mf-dark);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
}

.mf-home .mf-city-dialog-list a svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--mf-muted);
}

.mf-home .mf-city-dialog-list a:hover,
.mf-home .mf-city-dialog-list a:focus-visible {
	background: #F5F5F5;
}

.mf-home .mf-city-dialog-list a.is-active {
	background: var(--mf-lime-soft);
}

.mf-home .mf-city-dialog-list a.is-active svg {
	color: var(--mf-dark);
}

@media (min-width: 780px) {
	.mf-home dialog.mf-city-dialog[open] {
		inset: 0;
		margin: auto;
		width: 100%;
		max-width: 400px;
		max-height: 70vh;
		border-radius: 20px;
		box-shadow: 0 20px 50px rgba(26, 33, 32, .25);
	}

	.mf-home dialog.mf-city-dialog::before {
		display: none;
	}

	.mf-home .mf-city-dialog-head {
		padding: 20px 22px 14px;
	}

	.mf-home .mf-city-dialog-list {
		padding: 4px 14px 22px;
	}
}

.mf-home .mf-hero h1 {
	font-size: clamp(42px, 5.1vw, 72px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.12;
	max-inline-size: 1100px;
	margin: 0 auto 8px;
}

/* Matches v18's mobile hero: 2 lines total ("Votre corps mérite" /
   "mieux qu'une promesse."), not 3 — the clamp()'s 42px floor above is
   too wide for the second span to fit on one line at phone widths. */
@media (max-width: 480px) {
	/* 2 lines max: "Sport · Bien-être · Santé —" never wraps (nowrap), "simplement." is line 2; sized to fit 360 px wide. */
	.mf-home .mf-hero h1 {
		font-size: clamp(21px, 6.3vw, 28px);
	}
	.mf-home .mf-slogan-dark {
		white-space: nowrap;
	}
	.mf-home .mf-hero {
		padding-block: 24px 40px;
	}
	.mf-home .mf-location-chip {
		margin-block-end: 14px;
	}
}

.mf-home .mf-slogan-line {
	display: block;
}

/* Matches v18's .hero h1 em: plain text, no background box. Uses
   --mf-olive rather than --mf-lime — lime text on this light gradient
   would have ~1:1 contrast (essentially invisible); olive is our
   existing high-contrast dark-green token, already used elsewhere this
   session for the same reason, and matches the dark-olive tone v18
   itself renders at. */
.mf-home .mf-hero h1 em {
	font-style: normal;
	color: var(--mf-olive);
}

/* Secondary subtitle under the headline: smaller, muted. */
.mf-home .mf-hero-sub {
	margin: 0 auto 18px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 500;
	color: var(--mf-muted);
}

@media (min-width: 780px) {
	.mf-home .mf-hero-sub {
		font-size: 19px;
		margin-block-end: 26px;
	}
}

.mf-home .mf-trust-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-block-start: 24px;
}

.mf-home .mf-trust-row span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--mf-muted);
}

.mf-home .mf-trust-row .mf-icon {
	color: var(--mf-olive);
}

/* .mf-icon base rule moved to assets/css/site-header-footer.css. */

/* Listeo's native search form — visual properties only, no field hiding. */

.mf-home .mf-search {
	margin-block-start: 32px;
	margin-inline: auto;
	max-inline-size: 860px;
	text-align: start;
}

/* Matches design/myfitness-homepage-v18.html's .search/.field rules
   padding 8px, gap 6px, shadow 0 12px 44px #0002 — but full-pill
   radius by request, not v18's literal 16px rectangle. */
.mf-home .mf-search #listeo_core-search-form {
	background: var(--mf-white);
	border: none;
	border-radius: 999px;
	box-shadow: 0 12px 44px rgba(0, 0, 0, .133);
	padding: 8px;
}

/* Neutralizes Listeo's own bg/radius/shadow on this element (a second
   nested pill — source of the recurring "duplicate box" report). */
.mf-home .mf-search .main-search-input {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	max-block-size: none;
}

.mf-home .mf-search .main-search-input-item {
	display: flex;
	align-items: center;
	flex: 1 1 160px;
	min-inline-size: 140px;
	padding: 7px 15px;
}

/* Listeo's wrapper <div> around the input is a flex item here that
   defaults to content-sized — input's own 100% below was 100% of that
   shrunk div, not of this item. That's why it wasn't filling the bar. */
.mf-home .mf-search .main-search-input-item > div {
	flex: 1;
	min-inline-size: 0;
}

.mf-home .mf-search .main-search-input-item input[type="text"] {
	background: transparent;
	border: none;
	box-shadow: none;
	/* iOS Safari draws its own rounded/shadowed chrome on text inputs
	   regardless of border/box-shadow — only appearance:none removes it. */
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	color: var(--mf-dark);
	/* Listeo's style.css forces font-size:16px !important here — the
	   only way to win is our own !important (confirmed via
	   getPropertyPriority). */
	font-size: 15px !important;
	font-family: inherit;
	block-size: 27px;
	padding-block: 0;
	inline-size: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* v18's mobile overrides — tighter field padding frees width for text. */
@media (max-width: 800px) {
	.mf-home .mf-search .main-search-input-item {
		padding: 4px 12px;
	}

	.mf-home .mf-search .button {
		inline-size: 46px;
		block-size: 46px;
		/* .main-search-input uses align-items:stretch; a fixed-height flex
		   item under stretch aligns to the row's block-start rather than
		   centering, which read as extra space above the button and none
		   below it. align-self:center overrides that for this item only —
		   but Listeo's own .button rule also sets margin-top:10px (no
		   matching margin-bottom), which still throws off that centering
		   on top of the alignment fix, so it needs zeroing out too. */
		align-self: center;
		margin-block: 0;
	}
}

@media (max-width: 420px) {
	.mf-home .mf-search .main-search-input-item input[type="text"] {
		font-size: 13px !important;
		/* The canonical placeholder "Rechercher une activité, un pro…" must show whole at 360 px: trim the input's own side padding (the field itself keeps its size). */
		padding-inline: 10px 6px;
	}
}

.mf-home .mf-search .drilldown-menu .menu-toggle {
	color: var(--mf-dark);
	font-size: 15px;
}

/* "Rechercher" text stays in the DOM/a11y tree, just visually hidden for an icon-only button. */
.mf-home .mf-search .button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mf-lime);
	color: transparent;
	border: none;
	/* Circle by request, not v18's literal rounded-square. iOS Safari
	   draws its own native chrome on <button> too (same issue as the text
	   input) — appearance:none stops it fighting this radius on mobile. */
	-webkit-appearance: none;
	appearance: none;
	border-radius: 50%;
	inline-size: 48px;
	block-size: 48px;
	padding: 0;
	font-size: 0;
	flex-shrink: 0;
	overflow: hidden;
}

.mf-home .mf-search .button::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	inline-size: 20px;
	block-size: 20px;
	/* Listeo's own button.button::before rule (theme style.css) sets
	   opacity:0 on this same pseudo-element for its hover-fade overlay
	   effect. Our selector has higher specificity so it wins on the
	   properties we set, but opacity isn't one we'd declared, so
	   Listeo's opacity:0 was silently winning by default. Declaring it
	   here resolves that without !important. Same reasoning for
	   background-color: Listeo's rule also sets it to white, which showed
	   through the icon's transparent fill as a white box. */
	opacity: 1;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2120' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.mf-home .mf-search .listeo-save-search-wrapper {
	margin-block-start: 10px;
	font-size: 13px;
	color: var(--mf-muted);
}

/* Category tiles: six canonical cards. Mobile = compact 2 x 3 grid (icon over label); desktop = pills with an inline icon. */

.mf-home .mf-category-rail {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-block-start: 28px;
}

@media (min-width: 780px) {
	.mf-home .mf-category-rail {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px;
	}
}

.mf-home .mf-category {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-block-size: 120px;
	background: var(--mf-white);
	border: 1px solid var(--mf-border);
	border-radius: 22px;
	padding-block: 14px;
	padding-inline: 10px;
	text-decoration: none;
	color: var(--mf-dark);
	text-align: center;
	transition: background-color .15s, color .15s, border-color .15s;
}

.mf-home .mf-category:hover {
	background: var(--mf-nav-btn);
	color: var(--mf-white);
}

.mf-home .mf-category-icon {
	display: grid;
	place-items: center;
	flex: none;
	inline-size: 46px;
	block-size: 46px;
	border-radius: 50%;
	background: #eef3e2;
	color: var(--mf-dark);
	transition: background-color .15s, color .15s;
}

.mf-home .mf-category-icon svg {
	inline-size: 28px;
	block-size: 28px;
}

.mf-home .mf-category:hover .mf-category-icon {
	background: rgba(255, 255, 255, .14);
	color: var(--mf-white);
}

.mf-home .mf-category-label strong {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.25;
	font-weight: 600;
}

@media (min-width: 780px) {
	.mf-home .mf-category {
		flex-direction: row;
		gap: 10px;
		min-block-size: 48px;
		border-radius: 999px;
		padding-block: 8px;
		padding-inline: 12px 18px;
		text-align: start;
	}

	.mf-home .mf-category-icon {
		inline-size: 32px;
		block-size: 32px;
	}

	.mf-home .mf-category-icon svg {
		inline-size: 20px;
		block-size: 20px;
	}

	.mf-home .mf-category-label strong {
		display: block;
		font-size: 14px;
	}
}
/* Section rhythm only — never targets listing-card/coupon internals. */

.mf-home .mf-section {
	padding-block: 48px;
}

@media (min-width: 780px) {
	.mf-home .mf-section {
		padding-block: 96px;
	}
}

/*
 * The FAQ section's own bottom padding would stack with the next
 * section's top padding here, doubling up on either side of the contact
 * card — the inside-page version of this same card (content-pages.css)
 * has no such stacking since it's followed directly by the footer, not
 * another full section, and reads noticeably tighter for it. Zeroing this
 * one section's bottom padding lets the card's own margin-block-start do
 * the same job the inside-page layout relies on, leaving only the next
 * section's top padding as the visible gap.
 */
.mf-home #faq {
	padding-bottom: 0;
}

.mf-home .mf-section.mf-dark {
	background: var(--mf-dark);
	color: var(--mf-white);
}

.mf-home .mf-section.mf-soft {
	background: var(--mf-soft);
}

.mf-home .mf-section.mf-sage-bg {
	background: var(--mf-sage);
}

.mf-home .mf-section.mf-women-space {
	background-image:
		radial-gradient(at 100% 65%, #F4BFD7 0%, #FBE1EC 32%, transparent 67%),
		linear-gradient(115deg, #FFFFFF 15%, #FFFAFD 55%, #FCE7F0 100%);
}

.mf-home .mf-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: 24px;
}

.mf-home .mf-section-head h2 {
	margin: 0;
	font-size: clamp(30px, 3.2vw, 43px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.mf-home .mf-text-btn {
	color: inherit;
	text-decoration: none;
}

/*
 * "Voir tout" header pill (MyFitness_Spec_Voir_Tout.docx §1) — its own
 * class, NOT a restyle of the shared .mf-text-btn: that class is also
 * used by the header's Connexion/Mon compte/Déconnexion links
 * (site-chrome.php), which briefly and unintentionally turned into pills
 * too the first time this was scoped to .mf-text-btn directly.
 */
.mf-home .mf-voir-tout-link {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding: 8px 18px;
	border: 1px solid #dfe4de;
	border-radius: 999px;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s;
}

.mf-home .mf-voir-tout-link:hover {
	border-color: var(--mf-olive, #657900);
}

/* Mobile/tablet already gets its own "see all" entry point (the lime
   card at the end of the carousel, below) — the header pill is desktop
   (1200px+) only, so there's exactly one "see all" affordance per width. */
@media (max-width: 1199px) {
	.mf-home .mf-voir-tout-link {
		display: none;
	}
}

/*
 * "Voir tout" mobile/tablet carousel (MyFitness_Spec_Voir_Tout.docx §2-3)
 * — overrides Listeo's own listings grid (display:grid, auto-fill columns)
 * with a horizontal snap-scroll row below 1200px, only on sections that
 * opted in via the 'mf-voir-tout-grid' class
 * (mf_render_listing_ids()'s $style_data['class'], front-page.php). At
 * 1200px+ this is left alone: Listeo's native grid keeps the plain 3-card
 * row, and the "see all" card below is hidden — desktop's own "see all"
 * is just the header pill above (§1), by choice, not this card.
 */
@media (max-width: 1199px) {
	.mf-home #listeo-listings-container.mf-voir-tout-grid {
		display: flex;
		align-items: stretch;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.mf-home #listeo-listings-container.mf-voir-tout-grid::-webkit-scrollbar {
		display: none;
	}

	.mf-home #listeo-listings-container.mf-voir-tout-grid > .listing-card-container-nl,
	.mf-home #listeo-listings-container.mf-voir-tout-grid > .mf-see-all-card {
		flex: 0 0 80%;
		scroll-snap-align: start;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.mf-home #listeo-listings-container.mf-voir-tout-grid > .listing-card-container-nl,
	.mf-home #listeo-listings-container.mf-voir-tout-grid > .mf-see-all-card {
		flex: 0 0 44%;
	}
}

.mf-home .mf-see-all-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
	min-block-size: 220px;
	padding: 24px;
	border-radius: 16px;
	background: #D5EB45;
	color: #1A2120;
	text-decoration: none;
}

/* Must come after the base .mf-see-all-card rule above (same specificity
   — equal, so source order decides) to actually win at 1200px+. */
@media (min-width: 1200px) {
	.mf-home .mf-see-all-card {
		display: none;
	}
}

.mf-home .mf-see-all-card {
	container-type: inline-size;
}

.mf-home .mf-see-all-photos {
	display: flex;
	max-inline-size: 100%;
	overflow: hidden; /* never wider than the card, whatever the avatar count */
}

@container (max-width: 210px) {
	.mf-home .mf-see-all-photos img:nth-child(n+5) {
		display: none;
	}
}

.mf-home .mf-see-all-photos img,
.mf-home .mf-see-all-icon {
	inline-size: 44px;
	block-size: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #D5EB45;
	margin-inline-start: -14px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mf-home .mf-see-all-photos img:first-child,
.mf-home .mf-see-all-photos .mf-see-all-icon:first-child {
	margin-inline-start: 0;
}

.mf-home .mf-see-all-icon svg {
	inline-size: 22px;
	block-size: 22px;
}

.mf-home .mf-see-all-count {
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
}

.mf-home .mf-see-all-text {
	font-size: 15px;
	font-weight: 600;
}

/* How it works */

.mf-home .mf-how-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px 80px;
	margin-block-end: 32px;
}

.mf-home .mf-how-header h2 {
	color: var(--mf-white);
	font-size: clamp(30px, 3.2vw, 43px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.12;
	margin: 0;
}

.mf-home .mf-eyebrow {
	color: var(--mf-lime);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	max-inline-size: 310px;
	margin: 0;
}

.mf-home .mf-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.mf-home .mf-steps article {
	border-block-start: 1px solid rgba(255, 255, 255, .16);
	padding-block-start: 24px;
}

.mf-home .mf-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .02);
	border: 1px solid rgba(255, 255, 255, .1);
	color: var(--mf-lime);
	font-size: 20px;
	font-weight: 700;
	margin-block-end: 12px;
}

.mf-home .mf-steps h3 {
	color: var(--mf-white);
	margin: 0 0 8px;
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.575px;
}

.mf-home .mf-steps p {
	margin: 0;
	color: var(--mf-on-dark-muted);
}

/* v18's mobile layout: number circle and title share a row, description
   wraps full-width below — not stacked number-then-title-then-text. */
@media (max-width: 780px) {
	.mf-home .mf-steps article {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 14px;
	}

	.mf-home .mf-step-num {
		margin-block-end: 0;
	}

	.mf-home .mf-steps h3 {
		flex: 1;
		margin: 0;
	}

	.mf-home .mf-steps p {
		flex-basis: 100%;
		margin-block-start: 10px;
	}
}

/* Espace Femmes */

.mf-home .mf-women {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.4fr);
	gap: 32px;
	align-items: start;
}

.mf-home .mf-eyebrow-women {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--mf-wine-light);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.mf-home .mf-women-badge {
	inline-size: 40px;
	block-size: 40px;
	flex-shrink: 0;
}

.mf-home .mf-women-copy h2 {
	margin: 0 0 16px;
	font-size: clamp(30px, 3.2vw, 43px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.mf-home .mf-women-trust {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-block-end: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mf-wine-dark);
}

.mf-home .mf-women-trust span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.mf-home .mf-women-trust .mf-icon {
	inline-size: 18px;
	block-size: 18px;
	color: var(--mf-wine-dark);
}

.mf-home .mf-women-copy .mf-btn {
	background: var(--mf-wine);
	color: var(--mf-white);
}

.mf-home .mf-women-count {
	font-size: 15px;
	font-weight: 650;
	color: var(--mf-wine-dark);
	margin: 0 0 16px;
}

.mf-home .mf-women-pro-line {
	font-size: 13px;
	color: var(--mf-muted);
	margin: 24px 0 0;
}

.mf-home .mf-women-pro-line a {
	color: var(--mf-wine-dark);
	font-weight: 650;
	text-decoration: underline;
}

/* §4's shortcut chips — one scrolling line on mobile, never wrapped. */
.mf-home .mf-femmes-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.mf-home .mf-femmes-chip {
	flex-shrink: 0;
	padding: 8px 16px;
	border: 1px solid var(--mf-wine-light);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mf-wine-dark);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s;
}

.mf-home .mf-femmes-chip:hover {
	background: var(--mf-wine-light);
	color: #fff;
}

.mf-home .mf-women-listings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

/*
 * mf_render_listing_ids() renders Listeo's own #listeo-listings-container
 * INSIDE .mf-women-listings — that inner container has its own competing
 * grid rule (style.css: repeat(auto-fill, minmax(300px, 1fr))), which is
 * what actually lays out the cards; .mf-women-listings's own grid above
 * only ever had one child (that container) so it was never really doing
 * the column math. At this column's real width, a 300px minimum only
 * ever fits one card per row, stacking both instead of the two side by
 * side the space can actually fit — force exactly two.
 */
.mf-home .mf-women-listings #listeo-listings-container.new-grid-layout-nl {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
	.mf-home .mf-women {
		grid-template-columns: 1fr;
	}
}

/* Bien-être split */

.mf-home .mf-wellness-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
}

/* Pro CTA */

.mf-home .mf-professional {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
	gap: 32px;
	align-items: start;
}

.mf-home .mf-eyebrow-pro {
	color: var(--mf-lime);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.mf-home .mf-professional h2 {
	color: var(--mf-white);
	font-size: clamp(30px, 3.2vw, 43px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.12;
	margin: 0 0 20px;
}

.mf-home .mf-professional h2 em {
	font-style: normal;
	color: var(--mf-lime);
}

.mf-home .mf-pro-perks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mf-home .mf-pro-perks li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.mf-home .mf-pro-perks .mf-icon {
	inline-size: 24px;
	block-size: 24px;
	flex-shrink: 0;
	color: var(--mf-lime);
	margin-block-start: 2px;
}

.mf-home .mf-pro-perks strong {
	display: block;
	margin-block-end: 4px;
}

.mf-home .mf-pro-perks span {
	color: var(--mf-on-dark-muted);
	font-size: 14px;
}

.mf-home .mf-pro-panel {
	background: var(--mf-panel);
	color: var(--mf-white);
	border-radius: var(--mf-radius);
	padding: 24px;
}

.mf-home .mf-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.mf-home .mf-stats strong {
	font-size: 26px;
	font-weight: 700;
	color: var(--mf-lime);
	display: block;
}

.mf-home .mf-stats span {
	font-size: 12px;
	color: var(--mf-stat-label);
}

/* Light card nested in the dark panel — needs its own dark text colors. */
.mf-home .mf-availability {
	background: var(--mf-sage);
	color: var(--mf-dark);
	border-radius: 14px;
	padding: 22px;
	margin-block: 20px;
}

.mf-home .mf-availability h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--mf-dark);
	margin: 0 0 12px;
}

.mf-home .mf-demand-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mf-home .mf-demand-list li {
	font-size: 13px;
	line-height: 1.4;
}

.mf-home .mf-demand-list strong {
	color: var(--mf-dark);
	margin-inline-end: 6px;
}

.mf-home .mf-demand-list span {
	color: var(--mf-dark);
	opacity: .75;
}

.mf-home .mf-btn-full {
	inline-size: 100%;
	margin-block-start: 4px;
}

.mf-home .mf-pro-trial-link {
	display: block;
	inline-size: fit-content;
	margin-inline: auto;
	margin-block-end: 18px;
	padding-block: 8px;
	padding-inline: 16px;
	border: 1px solid rgba(204, 255, 0, .4);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mf-lime);
	text-decoration: none;
}

.mf-home .mf-pro-trial-link:hover {
	background: rgba(204, 255, 0, .08);
}

.mf-home .mf-pro-gift {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--mf-white);
}

.mf-home .mf-pro-gift .mf-icon {
	inline-size: 19px;
	block-size: 19px;
	flex-shrink: 0;
}

/* FAQ */

.mf-home .mf-faq-layout {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.6fr);
	gap: 32px;
}

.mf-home .mf-faq-layout h2 {
	font-size: clamp(30px, 3.2vw, 43px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.12;
	margin: 0;
}

.mf-home .mf-faq-list details {
	border-block-end: 1px solid var(--mf-border);
	padding-block-end: 20px;
}

.mf-home .mf-faq-list summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	padding-block: 16px;
	list-style: none;
}

.mf-home .mf-faq-list summary::-webkit-details-marker {
	display: none;
}

.mf-home .mf-faq-list summary::after {
	content: "+";
	font-size: 23px;
	line-height: 1;
	flex-shrink: 0;
	color: var(--mf-dark);
}

.mf-home .mf-faq-list details[open] summary::after {
	content: "–";
}

.mf-home .mf-faq-list p {
	margin: 15px 0 0;
	font-size: 14px;
	color: var(--mf-muted);
}

@media (max-width: 780px) {
	.mf-home .mf-faq-layout,
	.mf-home .mf-professional {
		grid-template-columns: 1fr;
	}
}

/*
 * Contact CTA card (mf_render_contact_cta_card(), content-pages.php) —
 * same component as the info/legal pages, but front-page.php doesn't load
 * content-pages.css (that's scoped to is_page_template(mf-content-page)),
 * so its styling is repeated here rather than pulling in that whole
 * stylesheet's unrelated article/TOC rules for one shared block.
 */
.mf-home .mf-cp-contact-card {
	max-width: 860px;
	margin-inline: auto;
	margin-block-start: 36px;
	background: var(--mf-ink, #1A2120);
	color: #fff;
	border-radius: 16px;
	padding: 28px;
	text-align: center;
}

.mf-home .mf-cp-contact-card h2 {
	font-size: 23px;
	margin: 0 0 8px;
	color: #fff;
}

.mf-home .mf-cp-contact-card p {
	color: #d2d9d6;
	font-size: 14px;
	margin: 0 0 16px;
}

.mf-home .mf-cp-contact-card a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 48px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--mf-lime, #CCFF00);
	color: var(--mf-ink, #1A2120);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 780px) {
	.mf-home .mf-cp-contact-card {
		/* Sits directly in a full-bleed <section> here (no .mf-wrap
		   ancestor giving it the usual 16px side padding), unlike the
		   inside-page version (.mf-cp-article already has that padding) —
		   without its own inset the card runs edge to edge and its
		   border-radius has no page background left to show against. */
		margin-inline: 16px;
		padding: 24px;
		margin-block-start: 28px;
	}
}

/* City directory */

.mf-home .mf-city-directory h2 {
	font-size: clamp(30px, 3.2vw, 43px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.12;
	margin: 0 0 20px;
}

.mf-home .mf-city-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mf-home .mf-city-pills a {
	display: inline-block;
	border: 1px solid var(--mf-border);
	border-radius: 999px;
	padding-block: 8px;
	padding-inline: 16px;
	font-size: 13px;
	color: var(--mf-dark);
	text-decoration: none;
	background: var(--mf-white);
	transition: background-color .15s, color .15s;
}

.mf-home .mf-city-pills a:hover {
	background: var(--mf-nav-btn);
	color: var(--mf-white);
}

/* Footer */

/* Footer + locale pill moved to assets/css/site-header-footer.css.
   Mobile tabbar moved to assets/css/mobile-tabbar.css. Both now render
   site-wide via wp_body_open/wp_footer, not just on this front page. */
