/* =========================================================================
   Ma Ferme à Domicile — système de design
   Palette et typographie relevées sur l'affiche de prospection lyonnaise.
   ========================================================================= */

:root {
	/* Couleurs */
	--mfd-cream:       #fbf8f1;
	--mfd-paper:       #ffffff;
	--mfd-sand:        #f3efe2;
	--mfd-sage:        #ced2ad;
	--mfd-sage-soft:   #e6ebd5;
	--mfd-sage-pale:   #f1f4e8;
	--mfd-leaf:        #6e8f4e;
	--mfd-leaf-dark:   #5b7a3e;
	--mfd-forest:      #3a5636;
	--mfd-forest-deep: #263a24;
	--mfd-orange:      #ff7d29;
	--mfd-orange-dark: #e2661a;
	--mfd-orange-pale: #fff0e4;
	--mfd-ink:         #232a20;
	--mfd-muted:       #64705d;
	--mfd-line:        #e4e0d0;

	/* Rythme */
	--mfd-container: 1280px;
	--mfd-gutter:    clamp(20px, 4vw, 56px);

	--mfd-r-sm:   12px;
	--mfd-r:      20px;
	--mfd-r-lg:   32px;
	--mfd-r-xl:   44px;
	--mfd-r-pill: 999px;

	--mfd-shadow-sm: 0 1px 2px rgba(38, 58, 36, .05), 0 4px 12px rgba(38, 58, 36, .05);
	--mfd-shadow:    0 2px 6px rgba(38, 58, 36, .05), 0 16px 40px rgba(38, 58, 36, .08);
	--mfd-shadow-lg: 0 4px 10px rgba(38, 58, 36, .06), 0 32px 72px rgba(38, 58, 36, .13);

	--mfd-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mfd-text:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

	--mfd-t: 220ms cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ Socle */

body.mfd {
	font-family: var(--mfd-text);
	font-size: 17px;
	line-height: 1.65;
	color: var(--mfd-ink);
	background: var(--mfd-cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.mfd h1, body.mfd h2, body.mfd h3, body.mfd h4 {
	font-family: var(--mfd-display);
	color: var(--mfd-forest);
	font-weight: 600;
	letter-spacing: -.022em;
	line-height: 1.12;
	text-wrap: balance;
}

body.mfd h2 { font-size: clamp(1.9rem, 2.9vw, 2.85rem); margin: 0 0 .5em; }
body.mfd h3 { font-size: clamp(1.1rem, 1.35vw, 1.3rem); }

body.mfd a { color: var(--mfd-leaf-dark); text-underline-offset: .18em; }
body.mfd a:hover { color: var(--mfd-orange-dark); }

body.mfd :focus-visible {
	outline: 3px solid var(--mfd-orange);
	outline-offset: 3px;
	border-radius: 4px;
}

body.mfd img, body.mfd video, body.mfd iframe { max-width: 100%; height: auto; }
body.mfd table { max-width: 100%; }

/* ------------------------------------------------- Bandeaux pleine largeur */

/* WordPress plafonne les enfants directs du contenu (`is-layout-constrained`).
   Nos bandeaux doivent s'en affranchir pour occuper toute la largeur. */
body.mfd .entry-content > .mfd-bleed { max-width: none; }

.mfd-bleed {
	width: calc(100vw - var(--mfd-sbw, 0px));
	max-width: none;
	margin-left:  calc(50% - (100vw - var(--mfd-sbw, 0px)) / 2);
	margin-right: calc(50% - (100vw - var(--mfd-sbw, 0px)) / 2);
	padding-inline: var(--mfd-gutter);
}

/* Le contenu, lui, reste dans une colonne lisible et centrée. */
.mfd-inner {
	max-width: var(--mfd-container);
	margin-inline: auto;
	width: 100%;
}

.mfd-section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.mfd-section--cream  { background: var(--mfd-cream); }
.mfd-section--sand   { background: var(--mfd-sand); }
.mfd-section--sage   { background: var(--mfd-sage-pale); }
.mfd-section--forest { background: var(--mfd-forest); color: #e7eee2; }

body.mfd .mfd-section--forest h2,
body.mfd .mfd-section--forest h3 { color: #fff; }

/* ------------------------------------------------------------- Typographie */

.mfd-kicker {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--mfd-display);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mfd-orange-dark);
	background: var(--mfd-orange-pale);
	padding: .5em 1.1em;
	border-radius: var(--mfd-r-pill);
	margin-bottom: 1.4rem;
}
.mfd-section--forest .mfd-kicker {
	color: #ffd9bd;
	background: rgba(255, 125, 41, .18);
}

.mfd-lead {
	font-size: clamp(1.06rem, 1.25vw, 1.24rem);
	line-height: 1.7;
	color: var(--mfd-muted);
	max-width: 62ch;
}
.mfd-section--forest .mfd-lead { color: #c8d6c2; }

.mfd-entete { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.mfd-entete--centre { margin-inline: auto; text-align: center; }
.mfd-entete--centre .mfd-lead { margin-inline: auto; }

/* ---------------------------------------------------------------- Boutons */

body.mfd .mfd-btn,
body.mfd a.button,
body.mfd button.button,
body.mfd input.button,
body.mfd a.wp-element-button,
body.mfd .wp-block-button__link,
body.mfd a.added_to_cart,
body.mfd .wc-block-components-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	font-family: var(--mfd-display);
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1;
	padding: 1em 1.9em;
	border: 0;
	border-radius: var(--mfd-r-pill);
	background: var(--mfd-orange);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--mfd-t), box-shadow var(--mfd-t), background-color var(--mfd-t);
	box-shadow: 0 6px 18px rgba(255, 125, 41, .30);
}
body.mfd .mfd-btn:hover,
body.mfd a.button:hover,
body.mfd button.button:hover,
body.mfd input.button:hover,
body.mfd a.wp-element-button:hover,
body.mfd .wp-block-button__link:hover,
body.mfd a.added_to_cart:hover,
body.mfd .wc-block-components-button:hover {
	background: var(--mfd-orange-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(255, 125, 41, .36);
}
body.mfd .mfd-btn:active { transform: translateY(0); }

body.mfd .mfd-btn--ghost {
	background: transparent;
	color: var(--mfd-forest);
	box-shadow: inset 0 0 0 2px rgba(58, 86, 54, .28);
}
body.mfd .mfd-btn--ghost:hover {
	background: var(--mfd-forest);
	color: #fff;
	box-shadow: none;
}
body.mfd .mfd-btn--clair {
	background: #fff;
	color: var(--mfd-forest);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
body.mfd .mfd-btn--clair:hover { background: #fff; color: var(--mfd-orange-dark); }

.mfd-btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Le dernier élément du menu devient un bouton.
   Blocksy étire ses liens sur toute la hauteur de l'en-tête : sans contrainte
   de hauteur, le rayon en pastille transforme le bouton en disque. */
body.mfd .menu-item.mfd-nav-cta {
	display: flex;
	align-items: center;
	margin-left: .6rem;
}
body.mfd .menu-item.mfd-nav-cta > a {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.15 !important;
	padding: .78em 1.5em !important;
	border-radius: var(--mfd-r-pill);
	background: var(--mfd-orange);
	color: #fff !important;
	box-shadow: 0 5px 14px rgba(255, 125, 41, .3);
	transition: background-color var(--mfd-t), transform var(--mfd-t);
}
body.mfd .menu-item.mfd-nav-cta > a::before,
body.mfd .menu-item.mfd-nav-cta > a::after { display: none !important; }
body.mfd .menu-item.mfd-nav-cta > a:hover {
	background: var(--mfd-orange-dark);
	transform: translateY(-1px);
}

/* ==================================================================== HÉROS */

.mfd-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(90rem 44rem at 82% -18%, var(--mfd-sage-soft) 0%, transparent 62%),
		linear-gradient(175deg, var(--mfd-sage-pale) 0%, var(--mfd-cream) 62%);
	padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
}

/* Grande tache organique derrière la photo. */
.mfd-hero::after {
	content: "";
	position: absolute;
	right: -14vw;
	top: -10vw;
	width: 58vw;
	height: 58vw;
	max-width: 900px;
	max-height: 900px;
	background: var(--mfd-sage);
	opacity: .34;
	border-radius: 48% 52% 42% 58% / 54% 44% 56% 46%;
	pointer-events: none;
}

.mfd-hero__grille {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: center;
}

.mfd-hero__titre {
	font-size: clamp(2.45rem, 4.3vw, 4.1rem);
	margin: 0 0 1.1rem;
	letter-spacing: -.03em;
}
.mfd-hero__titre em { font-style: normal; color: var(--mfd-orange); }

.mfd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .9rem;
	margin-top: 2.2rem;
}

/* Gages de confiance sous les boutons */
.mfd-gages {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.2rem;
	margin: 2.4rem 0 0;
	padding: 0;
	list-style: none;
}
.mfd-gages li {
	display: flex;
	align-items: center;
	gap: .6em;
	font-size: .95rem;
	font-weight: 500;
	color: var(--mfd-forest);
}
.mfd-gages svg { width: 20px; height: 20px; color: var(--mfd-leaf); flex: none; }

/* --- Colonne visuelle --- */

.mfd-hero__media { position: relative; }

.mfd-hero__cadre {
	position: relative;
	border-radius: var(--mfd-r-xl);
	overflow: hidden;
	box-shadow: var(--mfd-shadow-lg);
	transform: rotate(-1.4deg);
	background: var(--mfd-sage-soft);
}
.mfd-hero__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 4.6;
	object-fit: cover;
}

.mfd-pastille {
	position: absolute;
	left: -2.2rem;
	bottom: -1.8rem;
	width: 168px;
	height: 168px;
	border-radius: 50%;
	background: var(--mfd-orange);
	color: #fff;
	display: grid;
	place-content: center;
	text-align: center;
	font-family: var(--mfd-display);
	line-height: 1.2;
	box-shadow: 0 18px 40px rgba(255, 125, 41, .42);
	z-index: 2;
}
.mfd-pastille b { display: block; font-size: 1.8rem; font-weight: 700; }
.mfd-pastille span { display: block; font-size: .78rem; opacity: .95; margin: .2rem 0 .45rem; }
.mfd-pastille i { display: block; font-style: normal; font-size: 1.7rem; font-weight: 700; }

/* Petite carte flottante : le jour de retrait */
.mfd-flottant {
	position: absolute;
	right: -1.6rem;
	top: 2rem;
	display: flex;
	align-items: center;
	gap: .8rem;
	background: var(--mfd-paper);
	border-radius: var(--mfd-r);
	padding: .9rem 1.2rem;
	box-shadow: var(--mfd-shadow);
	z-index: 2;
}
.mfd-flottant svg { width: 30px; height: 30px; color: var(--mfd-leaf); flex: none; }
.mfd-flottant strong { display: block; font-family: var(--mfd-display); color: var(--mfd-forest); font-size: .98rem; }
.mfd-flottant span { display: block; font-size: .82rem; color: var(--mfd-muted); }

/* ======================================================= Bandeau de chiffres */

.mfd-chiffres {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, .14);
	border-radius: var(--mfd-r);
	overflow: hidden;
}
.mfd-chiffre {
	background: var(--mfd-forest);
	padding: 2.2rem 1.5rem;
	text-align: center;
}
.mfd-chiffre b {
	display: block;
	font-family: var(--mfd-display);
	font-size: clamp(2rem, 3.2vw, 2.9rem);
	font-weight: 700;
	color: #fff;
	line-height: 1;
}
/* Le libellé, et lui seul : le compteur vit dans le <b> et doit en garder
   la taille. Sans le sélecteur d'enfant direct, il héritait de .93rem. */
.mfd-chiffre > span {
	display: block;
	margin-top: .6rem;
	font-size: .93rem;
	color: #b9cbb2;
}
.mfd-chiffre b span {
	display: inline;
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

/* ============================================================ Les 4 étapes */

.mfd-etapes {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	counter-reset: mfd-etape;
	position: relative;
}
/* Fil pointillé qui relie les étapes */
.mfd-etapes::before {
	content: "";
	position: absolute;
	top: 34px;
	left: 12%;
	right: 12%;
	border-top: 2px dashed var(--mfd-sage);
	z-index: 0;
}

.mfd-etape { position: relative; z-index: 1; text-align: center; }

.mfd-etape__puce {
	width: 68px;
	height: 68px;
	margin: 0 auto 1.4rem;
	border-radius: 50%;
	background: var(--mfd-paper);
	border: 2px solid var(--mfd-sage);
	display: grid;
	place-content: center;
	color: var(--mfd-leaf);
	box-shadow: var(--mfd-shadow-sm);
	transition: transform var(--mfd-t), border-color var(--mfd-t), color var(--mfd-t);
}
.mfd-etape:hover .mfd-etape__puce {
	transform: translateY(-4px);
	border-color: var(--mfd-orange);
	color: var(--mfd-orange);
}
.mfd-etape__puce svg { width: 30px; height: 30px; }

.mfd-etape__num {
	counter-increment: mfd-etape;
	display: inline-block;
	font-family: var(--mfd-display);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--mfd-orange-dark);
	margin-bottom: .5rem;
}
.mfd-etape__num::before { content: "ÉTAPE " counter(mfd-etape); }

.mfd-etape h3 { margin: 0 0 .5rem; }
.mfd-etape p { margin: 0; color: var(--mfd-muted); font-size: .98rem; }

/* ========================================================= Cartes bénéfices */

.mfd-cartes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 2vw, 2rem);
}

.mfd-carte {
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-lg);
	padding: clamp(1.8rem, 2.4vw, 2.6rem);
	transition: transform var(--mfd-t), box-shadow var(--mfd-t), border-color var(--mfd-t);
}
.mfd-carte:hover {
	transform: translateY(-6px);
	box-shadow: var(--mfd-shadow);
	border-color: transparent;
}
.mfd-carte__icone {
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: var(--mfd-sage-pale);
	color: var(--mfd-leaf);
	display: grid;
	place-content: center;
	margin-bottom: 1.4rem;
}
.mfd-carte__icone svg { width: 28px; height: 28px; }
.mfd-carte h3 { margin: 0 0 .6rem; }
.mfd-carte p { margin: 0; color: var(--mfd-muted); font-size: .99rem; }

/* ==================================================== Le panier en vedette */

.mfd-vedette {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: center;
	background: var(--mfd-paper);
	border-radius: var(--mfd-r-xl);
	padding: clamp(1.5rem, 2.5vw, 2.5rem);
	box-shadow: var(--mfd-shadow);
}
.mfd-vedette__photo {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--mfd-r-lg);
}
.mfd-vedette h2 { margin-top: 0; }

.mfd-prix {
	display: flex;
	align-items: baseline;
	gap: .7rem;
	margin: 1.4rem 0 1.6rem;
}
.mfd-prix b {
	font-family: var(--mfd-display);
	font-size: clamp(2.2rem, 3.4vw, 3rem);
	font-weight: 700;
	color: var(--mfd-orange-dark);
	line-height: 1;
}
.mfd-prix span { color: var(--mfd-muted); font-size: .98rem; }

.mfd-liste {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	gap: .75rem;
}
.mfd-liste li {
	display: flex;
	align-items: flex-start;
	gap: .7em;
	color: var(--mfd-ink);
	font-size: 1rem;
}
.mfd-liste svg { width: 21px; height: 21px; color: var(--mfd-leaf); flex: none; margin-top: .18em; }

/* ============================================================= Témoignage */

.mfd-citation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.8rem);
	align-items: start;
	max-width: 58rem;
	margin-inline: auto;
}
.mfd-citation__marque {
	font-family: var(--mfd-display);
	font-size: 5rem;
	line-height: .8;
	color: var(--mfd-orange);
	opacity: .45;
}
.mfd-citation blockquote {
	margin: 0;
	font-family: var(--mfd-display);
	font-size: clamp(1.25rem, 2.1vw, 1.85rem);
	line-height: 1.45;
	color: var(--mfd-forest);
	font-weight: 500;
}
.mfd-citation figcaption {
	margin-top: 1.4rem;
	color: var(--mfd-muted);
	font-size: .95rem;
}
.mfd-citation figcaption strong { color: var(--mfd-forest); font-family: var(--mfd-display); }

/* ==================================================================== FAQ */

.mfd-faq { max-width: 52rem; margin-inline: auto; display: grid; gap: .9rem; }

.mfd-faq details {
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r);
	transition: border-color var(--mfd-t), box-shadow var(--mfd-t);
}
.mfd-faq details[open] { border-color: var(--mfd-sage); box-shadow: var(--mfd-shadow-sm); }

.mfd-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1.25rem 1.6rem;
	font-family: var(--mfd-display);
	font-weight: 600;
	font-size: 1.06rem;
	color: var(--mfd-forest);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.mfd-faq summary::-webkit-details-marker { display: none; }
.mfd-faq summary::after {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--mfd-leaf);
	border-bottom: 2px solid var(--mfd-leaf);
	transform: rotate(45deg) translateY(-2px);
	transition: transform var(--mfd-t);
	flex: none;
}
.mfd-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.mfd-faq p { margin: 0; padding: 0 1.6rem 1.5rem; color: var(--mfd-muted); }

/* ============================================================ Appel final */

.mfd-cta {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	background: var(--mfd-forest);
	color: #e7eee2;
	border-radius: var(--mfd-r-xl);
	padding: clamp(2.2rem, 4.5vw, 4rem);
}
.mfd-cta::after {
	content: "";
	position: absolute;
	right: -6rem;
	bottom: -8rem;
	width: 22rem;
	height: 22rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, .05);
	pointer-events: none;
}
body.mfd .mfd-cta h2 { color: #fff; margin: 0 0 .6rem; }
.mfd-cta p { margin: 0; color: #c2d3bc; max-width: 46ch; }
.mfd-cta__actions { position: relative; z-index: 1; display: grid; gap: .8rem; justify-items: stretch; }
.mfd-cta__actions small { color: #9fb598; font-size: .85rem; text-align: center; }

/* ========================================================== WooCommerce */

body.mfd ul.products li.product {
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-lg);
	padding: 1rem 1rem 1.5rem;
	transition: transform var(--mfd-t), box-shadow var(--mfd-t), border-color var(--mfd-t);
}
body.mfd ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--mfd-shadow);
	border-color: transparent;
}
body.mfd ul.products li.product img {
	border-radius: var(--mfd-r);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}
body.mfd ul.products li.product .woocommerce-loop-product__title,
body.mfd ul.products li.product h2 {
	font-family: var(--mfd-display);
	color: var(--mfd-forest);
	font-size: 1.08rem;
	margin: 1rem 0 .35rem;
}
body.mfd .price, body.mfd .price .amount {
	color: var(--mfd-orange-dark);
	font-family: var(--mfd-display);
	font-weight: 600;
}
body.mfd ul.products li.product .button { margin-top: 1rem; }

body.mfd div.product .product_title { font-size: clamp(2rem, 3.2vw, 2.9rem); }
body.mfd div.product .woocommerce-product-gallery img { border-radius: var(--mfd-r-lg); }

body.mfd .woocommerce-message,
body.mfd .woocommerce-info,
body.mfd .woocommerce-error {
	border-radius: var(--mfd-r);
	border-top-color: var(--mfd-leaf);
	background: var(--mfd-sage-pale);
	color: var(--mfd-forest-deep);
}
body.mfd .woocommerce-error { border-top-color: var(--mfd-orange); background: var(--mfd-orange-pale); }

body.mfd form .form-row input.input-text,
body.mfd form .form-row textarea,
body.mfd form .form-row select {
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-sm);
	padding: .85em 1.05em;
	background: var(--mfd-paper);
	font-family: var(--mfd-text);
	font-size: 1rem;
}

body.mfd .woocommerce-MyAccount-navigation ul {
	list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem;
}
body.mfd .woocommerce-MyAccount-navigation li a {
	display: block; padding: .75em 1.1em; border-radius: var(--mfd-r-sm);
	color: var(--mfd-forest); text-decoration: none; transition: background-color var(--mfd-t);
}
body.mfd .woocommerce-MyAccount-navigation li.is-active a { background: var(--mfd-leaf) !important; color: #fff !important; }
body.mfd .woocommerce-MyAccount-navigation li a:hover { background: var(--mfd-sage-pale); }

.mfd-aide-inscription {
	background: var(--mfd-sage-pale);
	border-radius: var(--mfd-r);
	padding: 1em 1.2em;
	font-size: .95rem;
	color: var(--mfd-forest-deep);
}

.mfd-encart-retrait {
	background: var(--mfd-paper);
	border-left: 4px solid var(--mfd-leaf);
	border-radius: var(--mfd-r);
	padding: 1.5rem 1.7rem;
	margin: 0 0 2rem;
	box-shadow: var(--mfd-shadow-sm);
}
.mfd-encart-retrait__etiquette {
	font-family: var(--mfd-display); font-size: .74rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--mfd-orange-dark);
}
.mfd-encart-retrait__nom {
	display: block; font-family: var(--mfd-display); font-size: 1.3rem;
	color: var(--mfd-forest); margin: .35rem 0 .45rem;
}
.mfd-encart-retrait p { margin: .2rem 0; color: var(--mfd-muted); }
.mfd-encart-retrait__quand { font-weight: 600; color: var(--mfd-forest) !important; }
.mfd-encart-retrait__note { font-style: italic; font-size: .93rem; }

/* ---------------------------------------------------- En-tête et pied */

body.mfd .site-title { display: none; }
body.mfd .default-logo, body.mfd .custom-logo { max-height: 74px; width: auto; }
/* Toute page qui s'ouvre sur un héros n'a pas besoin du bandeau de titre
   du thème : il ferait doublon. */
body.mfd.home .hero-section { display: none; }
body.mfd.home .ct-container-full, body.mfd.home .ct-container { padding-top: 0; }
body.mfd:has(.entry-content > .mfd-hero) .hero-section { display: none; }
body.mfd:has(.entry-content > .mfd-hero) .ct-container-full,
body.mfd:has(.entry-content > .mfd-hero) .ct-container { padding-top: 0; }
body.mfd .hero-section { background: var(--mfd-sage-pale) !important; }
body.mfd .hero-section.is-width-constrained { background: transparent !important; }
body.mfd .hero-section .page-title, body.mfd .hero-section h1 { color: var(--mfd-forest); }

body.mfd .ct-footer-copyright { display: none; }
body.mfd .ct-footer { background: var(--mfd-forest-deep); }
.mfd-mention {
	background: var(--mfd-forest-deep);
	color: #b9c8b2;
	text-align: center;
	padding: 1.8rem var(--mfd-gutter);
	font-size: .92rem;
}
.mfd-mention p { margin: 0; }
.mfd-mention a { color: #a8c08e; text-decoration: underline; }
.mfd-mention a:hover { color: var(--mfd-orange); }

/* =========================================================================
   Adaptation aux écrans
   ========================================================================= */

@media (max-width: 1100px) {
	.mfd-etapes { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
	.mfd-etapes::before { display: none; }
	.mfd-chiffres { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 999px) {
	.mfd-hero__grille { grid-template-columns: 1fr; gap: 3rem; }
	.mfd-hero__media { max-width: 520px; margin-inline: auto; width: 100%; }
	.mfd-hero::after { right: -30vw; top: -24vw; width: 86vw; height: 86vw; }
	.mfd-cartes { grid-template-columns: 1fr; }
	.mfd-vedette { grid-template-columns: 1fr; }
	.mfd-cta { grid-template-columns: 1fr; }
	.mfd-cta__actions { justify-items: start; }

	/* Blocksy retombe à une colonne : deux se lisent bien mieux sur mobile. */
	body.mfd ul.products { --shop-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
	body.mfd ul.products li.product { padding: .65rem .65rem 1.2rem; }
	body.mfd ul.products li.product .woocommerce-loop-product__title,
	body.mfd ul.products li.product h2 { font-size: 1rem; }
}

@media (max-width: 700px) {
	body.mfd { font-size: 16px; }
	.mfd-section { padding-block: 3.5rem; }
	.mfd-hero { padding-block: 2rem 3.5rem; }
	.mfd-hero__titre { font-size: clamp(2rem, 8.4vw, 2.8rem); }

	.mfd-hero__actions { gap: .7rem; }
	.mfd-hero__actions > a { flex: 1 1 100%; }

	.mfd-gages { gap: .9rem 1.6rem; margin-top: 1.9rem; }
	.mfd-flottant { right: -.5rem; top: 1rem; padding: .7rem .9rem; }
	.mfd-flottant svg { width: 24px; height: 24px; }
	.mfd-flottant strong { font-size: .9rem; }

	.mfd-pastille { width: 122px; height: 122px; left: -1rem; bottom: -1rem; }
	.mfd-pastille b { font-size: 1.3rem; }
	.mfd-pastille span { font-size: .66rem; }
	.mfd-pastille i { font-size: 1.25rem; }

	.mfd-etapes { grid-template-columns: 1fr; gap: 2rem; }
	.mfd-citation { grid-template-columns: 1fr; gap: .5rem; }
	.mfd-citation__marque { font-size: 3.2rem; }
	.mfd-cta { padding: 2rem 1.5rem; border-radius: var(--mfd-r-lg); }
	.mfd-cta__actions { justify-items: stretch; }
	.mfd-vedette { padding: 1rem; border-radius: var(--mfd-r-lg); }

	body.mfd a.button, body.mfd button.button, body.mfd input.button,
	body.mfd .mfd-btn { padding: .9em 1.4em; font-size: .97rem; }

	body.mfd .woocommerce-MyAccount-navigation ul { grid-auto-flow: row; }
}

@media (max-width: 420px) {
	.mfd-chiffres { grid-template-columns: 1fr; }
	.mfd-hero__cadre { transform: none; }
}

@media (max-width: 379px) {
	body.mfd ul.products { --shop-columns: repeat(1, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	body.mfd *, body.mfd *::before, body.mfd *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* =========================================================================
   Animations — discrètes, et neutralisées si l'utilisateur les refuse.
   Les éléments ne sont masqués que lorsque le script a pris la main
   (classe `mfd-js` sur <html>), jamais sans JavaScript.
   ========================================================================= */

.mfd-js [data-mfd-anim] {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity .7s cubic-bezier(.22, .61, .36, 1) var(--mfd-delai, 0ms),
		transform .7s cubic-bezier(.22, .61, .36, 1) var(--mfd-delai, 0ms);
	will-change: opacity, transform;
}
.mfd-js [data-mfd-anim].is-in { opacity: 1; transform: none; }

.mfd-js [data-mfd-anim="zoom"] { transform: translateY(22px) scale(.97); }
.mfd-js [data-mfd-anim="zoom"].is-in { transform: none; }

.mfd-js [data-mfd-anim="gauche"] { transform: translateX(-26px); }
.mfd-js [data-mfd-anim="gauche"].is-in { transform: none; }

.mfd-js [data-mfd-anim="droite"] { transform: translateX(26px); }
.mfd-js [data-mfd-anim="droite"].is-in { transform: none; }

/* Le héros s'anime à l'ouverture, sans attendre le défilement. */
@keyframes mfd-lever {
	from { opacity: 0; transform: translateY(26px); }
	to   { opacity: 1; transform: none; }
}
.mfd-js .mfd-hero__texte > * { animation: mfd-lever .8s cubic-bezier(.22,.61,.36,1) backwards; }
.mfd-js .mfd-hero__texte > :nth-child(1) { animation-delay: .05s; }
.mfd-js .mfd-hero__texte > :nth-child(2) { animation-delay: .14s; }
.mfd-js .mfd-hero__texte > :nth-child(3) { animation-delay: .23s; }
.mfd-js .mfd-hero__texte > :nth-child(4) { animation-delay: .32s; }
.mfd-js .mfd-hero__texte > :nth-child(5) { animation-delay: .41s; }

@keyframes mfd-cadre {
	from { opacity: 0; transform: rotate(-1.4deg) translateY(34px) scale(.96); }
	to   { opacity: 1; transform: rotate(-1.4deg); }
}
.mfd-js .mfd-hero__cadre { animation: mfd-cadre .9s cubic-bezier(.22,.61,.36,1) .18s backwards; }

@keyframes mfd-pastille {
	from { opacity: 0; transform: scale(.5) rotate(-18deg); }
	to   { opacity: 1; transform: none; }
}
.mfd-js .mfd-pastille { animation: mfd-pastille .7s cubic-bezier(.34,1.36,.64,1) .55s backwards; }
.mfd-js .mfd-flottant { animation: mfd-lever .7s cubic-bezier(.22,.61,.36,1) .7s backwards; }

/* Flottement perpétuel, très léger */
@keyframes mfd-flotte {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-9px); }
}
.mfd-js .mfd-flottant { animation: mfd-lever .7s cubic-bezier(.22,.61,.36,1) .7s backwards,
                                   mfd-flotte 5.5s ease-in-out 1.4s infinite; }
.mfd-js .mfd-pastille { animation: mfd-pastille .7s cubic-bezier(.34,1.36,.64,1) .55s backwards,
                                   mfd-flotte 6.5s ease-in-out 1.6s infinite; }

/* Le fil des étapes se trace */
@keyframes mfd-trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mfd-js .mfd-etapes.is-in::before {
	transform-origin: left;
	animation: mfd-trace 1.1s cubic-bezier(.22,.61,.36,1) .25s backwards;
}

/* Reflet au survol des boutons */
body.mfd .mfd-btn, body.mfd a.button, body.mfd button.button { position: relative; overflow: hidden; }
body.mfd .mfd-btn::after,
body.mfd a.button::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 -60%;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent);
	transform: skewX(-18deg);
	transition: left .55s ease;
	pointer-events: none;
}
body.mfd .mfd-btn:hover::after,
body.mfd a.button:hover::after { left: 120%; }

/* Le visuel produit respire au survol de la carte */
body.mfd ul.products li.product a img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
body.mfd ul.products li.product:hover a img { transform: scale(1.045); }

/* Soulignement animé du menu */
body.mfd .ct-header .menu-item:not(.mfd-nav-cta) > a { position: relative; }
body.mfd .ct-header .menu-item:not(.mfd-nav-cta) > a::before {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: .35em;
	height: 2px;
	background: var(--mfd-orange);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
body.mfd .ct-header .menu-item:not(.mfd-nav-cta) > a:hover::before { transform: scaleX(1); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
	.mfd-js [data-mfd-anim] { opacity: 1 !important; transform: none !important; }
	body.mfd *, body.mfd *::before, body.mfd *::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}
}

/* =========================================================================
   Page « Le service en entreprise »
   ========================================================================= */

/* Bloc image + texte, alterné */
.mfd-duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: center;
}
.mfd-duo + .mfd-duo { margin-top: clamp(3.5rem, 6vw, 6rem); }
.mfd-duo--inverse .mfd-duo__media { order: 2; }
.mfd-duo__media img { display: block; width: 100%; height: auto; }
.mfd-duo h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin: 0 0 .8rem; }

/* Jalons : le déroulé du service, en colonne */
.mfd-jalons { position: relative; display: grid; gap: 2.2rem; padding-left: 3.4rem; }
.mfd-jalons::before {
	content: "";
	position: absolute;
	left: 21px;
	top: .6rem;
	bottom: .6rem;
	width: 2px;
	background: repeating-linear-gradient(var(--mfd-sage) 0 7px, transparent 7px 15px);
}
.mfd-jalon { position: relative; }
.mfd-jalon::before {
	content: "";
	position: absolute;
	left: -3.4rem;
	top: .15rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mfd-paper);
	border: 2px solid var(--mfd-sage);
	box-shadow: 0 0 0 6px var(--mfd-cream);
}
.mfd-jalon__num {
	position: absolute;
	left: -3.4rem;
	top: .15rem;
	width: 44px;
	height: 44px;
	display: grid;
	place-content: center;
	font-family: var(--mfd-display);
	font-weight: 700;
	color: var(--mfd-leaf);
	z-index: 1;
}
.mfd-jalon h3 { margin: 0 0 .4rem; }
.mfd-jalon p { margin: 0; color: var(--mfd-muted); }
.mfd-jalon__quand {
	display: inline-block;
	margin-bottom: .5rem;
	font-family: var(--mfd-display);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--mfd-orange-dark);
}

/* Tableau de répartition des rôles */
.mfd-roles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 2vw, 2rem);
}
.mfd-role {
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-lg);
	padding: clamp(1.75rem, 2.4vw, 2.5rem);
}
.mfd-role--nous { background: var(--mfd-forest); border-color: transparent; color: #dce7d7; }
body.mfd .mfd-role--nous h3 { color: #fff; }
.mfd-role h3 { margin: 0 0 1.2rem; }
.mfd-role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mfd-role li { display: flex; gap: .7em; align-items: flex-start; font-size: 1rem; }
.mfd-role svg { width: 21px; height: 21px; flex: none; margin-top: .2em; color: var(--mfd-leaf); }
.mfd-role--nous svg { color: #a7c79a; }

/* Bloc tarif */
.mfd-tarif {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: center;
	background: var(--mfd-paper);
	border: 2px solid var(--mfd-sage);
	border-radius: var(--mfd-r-xl);
	padding: clamp(1.75rem, 3vw, 2.75rem);
}
.mfd-tarif__montant {
	text-align: center;
	background: var(--mfd-orange-pale);
	border-radius: var(--mfd-r-lg);
	padding: 1.6rem 2.2rem;
}
.mfd-tarif__montant b {
	display: block;
	font-family: var(--mfd-display);
	font-size: clamp(2.6rem, 4vw, 3.6rem);
	font-weight: 700;
	color: var(--mfd-orange-dark);
	line-height: 1;
}
.mfd-tarif__montant span { display: block; margin-top: .4rem; font-size: .9rem; color: var(--mfd-muted); }

/* Légume décoratif posé en fond de section */
.mfd-deco {
	position: absolute;
	pointer-events: none;
	opacity: .45;
	z-index: 0;
}
.mfd-deco img { display: block; width: 100%; height: auto; }
.mfd-section > .mfd-inner { position: relative; z-index: 1; }

/* Pied de page enrichi */
.mfd-pied {
	background: var(--mfd-forest-deep);
	color: #b9c8b2;
	padding: clamp(3rem, 5vw, 4.5rem) var(--mfd-gutter) 0;
}
.mfd-pied__grille {
	max-width: var(--mfd-container);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	padding-bottom: 2.5rem;
}
.mfd-pied h4 {
	color: #fff;
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 1.1rem;
}
.mfd-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mfd-pied a { color: #b9c8b2; text-decoration: none; }
.mfd-pied a:hover { color: var(--mfd-orange); }
.mfd-pied__logo { max-width: 200px; margin-bottom: 1rem; }
.mfd-pied__resume { font-size: .94rem; line-height: 1.6; max-width: 34ch; }

@media (max-width: 999px) {
	.mfd-duo, .mfd-roles, .mfd-pied__grille { grid-template-columns: 1fr; }
	.mfd-duo--inverse .mfd-duo__media { order: 0; }
	.mfd-duo__media { max-width: 480px; margin-inline: auto; }
	.mfd-tarif { grid-template-columns: 1fr; text-align: center; }
	.mfd-deco { display: none; }
}
@media (max-width: 700px) {
	.mfd-jalons { padding-left: 2.8rem; }
	.mfd-jalon::before, .mfd-jalon__num { left: -2.8rem; width: 38px; height: 38px; }
	.mfd-jalons::before { left: 18px; }
}
.mfd-mention { border-top: 1px solid rgba(255,255,255,.08); }

/* -------------------------------------------------- Garde-fou « wpautop »

   WordPress enveloppe le contenu inline dans des paragraphes. Quand une
   image est le seul enfant inline d'une grille, il en résulte un <p> vide
   qui occupe une cellule et décale tout le reste. On les neutralise. */
body.mfd .entry-content p:empty { display: none; }

.mfd-vedette__media { display: block; }
.mfd-vedette__media img,
body.mfd .mfd-vedette__photo {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--mfd-r-lg);
}
.mfd-hero__media > img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--mfd-r-xl);
}
/* Le numéro d'étape se suffit à lui-même : pas de marge de paragraphe. */
.mfd-etape__num { margin: 0 0 .5rem; }

/* =========================================================================
   Avis clients
   ========================================================================= */

.mfd-avis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2vw, 2rem);
}

.mfd-avis__carte {
	position: relative;
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-lg);
	padding: clamp(1.8rem, 2.4vw, 2.4rem);
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	overflow: hidden;
	transition: transform var(--mfd-t), box-shadow var(--mfd-t), border-color var(--mfd-t);
}
.mfd-avis__carte:hover {
	transform: translateY(-7px);
	box-shadow: var(--mfd-shadow);
	border-color: transparent;
}

/* Guillemet décoratif, qui se déploie à l'apparition */
.mfd-avis__marque {
	position: absolute;
	top: -.35em;
	right: .3em;
	font-family: var(--mfd-display);
	font-size: 8rem;
	line-height: 1;
	color: var(--mfd-sage);
	opacity: 0;
	transform: scale(.4) rotate(-22deg);
	transition: opacity .6s ease .25s, transform .7s cubic-bezier(.34, 1.4, .64, 1) .25s;
	pointer-events: none;
	user-select: none;
}
.mfd-avis__carte.is-in .mfd-avis__marque { opacity: .38; transform: none; }
.mfd-avis__carte:hover .mfd-avis__marque { color: var(--mfd-orange); opacity: .22; }

/* Étoiles : elles se posent une à une */
.mfd-etoiles { display: flex; gap: .25rem; position: relative; z-index: 1; }
.mfd-etoiles svg {
	width: 20px;
	height: 20px;
	color: var(--mfd-orange);
	opacity: 0;
	transform: scale(.3) rotate(-40deg);
	transition: opacity .35s ease, transform .5s cubic-bezier(.34, 1.5, .64, 1);
	transition-delay: calc(var(--e, 0) * 90ms + 200ms);
}
.mfd-avis__carte.is-in .mfd-etoiles svg { opacity: 1; transform: none; }

.mfd-avis blockquote {
	margin: 0;
	position: relative;
	z-index: 1;
	font-size: 1.04rem;
	line-height: 1.66;
	color: var(--mfd-ink);
	flex: 1;
}

.mfd-avis__auteur {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--mfd-line);
	position: relative;
	z-index: 1;
}
.mfd-avatar {
	width: 50px;
	height: 50px;
	flex: none;
	border-radius: 50%;
	background: var(--mfd-sage-soft);
	color: var(--mfd-forest);
	display: grid;
	place-content: center;
	font-family: var(--mfd-display);
	font-weight: 700;
	font-size: 1.02rem;
	letter-spacing: .02em;
	transition: background-color var(--mfd-t), color var(--mfd-t), transform var(--mfd-t);
}
.mfd-avis__carte:hover .mfd-avatar {
	background: var(--mfd-orange);
	color: #fff;
	transform: rotate(-6deg) scale(1.06);
}
.mfd-avis__auteur strong { display: block; font-family: var(--mfd-display); color: var(--mfd-forest); }
.mfd-avis__auteur span { display: block; font-size: .89rem; color: var(--mfd-muted); }

/* =========================================================================
   Bandeau défilant (légumes de saison)
   ========================================================================= */

.mfd-defile {
	overflow: hidden;
	padding-block: 1.3rem;
	background: var(--mfd-forest);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mfd-defile__piste {
	display: flex;
	width: max-content;
	gap: 2.6rem;
	align-items: center;
	animation: mfd-defile 42s linear infinite;
}
.mfd-defile:hover .mfd-defile__piste { animation-play-state: paused; }
.mfd-defile span {
	font-family: var(--mfd-display);
	font-size: clamp(.95rem, 1.4vw, 1.15rem);
	font-weight: 500;
	letter-spacing: .04em;
	color: #cfe0c7;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 2.6rem;
}
.mfd-defile span::after {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mfd-orange);
	opacity: .8;
}
@keyframes mfd-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   Page contact
   ========================================================================= */

.mfd-contacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
	gap: clamp(1.1rem, 1.8vw, 1.75rem);
}

.mfd-contact {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .55rem;
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-lg);
	padding: clamp(1.6rem, 2.2vw, 2.1rem);
	text-decoration: none;
	color: inherit;
	transition: transform var(--mfd-t), box-shadow var(--mfd-t), border-color var(--mfd-t);
}
.mfd-contact:hover {
	transform: translateY(-6px);
	box-shadow: var(--mfd-shadow);
	border-color: transparent;
	color: inherit;
}
.mfd-contact__icone {
	width: 56px;
	height: 56px;
	border-radius: 17px;
	background: var(--mfd-sage-pale);
	color: var(--mfd-leaf);
	display: grid;
	place-content: center;
	margin-bottom: .7rem;
	transition: background-color var(--mfd-t), color var(--mfd-t), transform var(--mfd-t);
}
.mfd-contact:hover .mfd-contact__icone {
	background: var(--mfd-orange);
	color: #fff;
	transform: rotate(-8deg) scale(1.08);
}
.mfd-contact--instagram:hover .mfd-contact__icone {
	background: linear-gradient(135deg, #f09433, #dc2743 55%, #bc1888);
}
.mfd-contact--facebook:hover .mfd-contact__icone { background: #1877f2; }
.mfd-contact__icone svg { width: 26px; height: 26px; }
.mfd-contact strong { font-family: var(--mfd-display); font-size: 1.1rem; color: var(--mfd-forest); }
/* La valeur porte le lien, mais c'est toute la carte qui est cliquable :
   un <a> ne peut pas contenir de blocs sans que WordPress ne le découpe. */
.mfd-contact__lien {
	font-family: var(--mfd-display);
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--mfd-orange-dark);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.mfd-contact__lien::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.mfd-contact:hover .mfd-contact__lien { text-decoration: underline; }
.mfd-contact span { font-size: .93rem; color: var(--mfd-muted); }

/* Bloc support en bas de page */
.mfd-support {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
	background: var(--mfd-forest);
	color: #d3e0cd;
	border-radius: var(--mfd-r-xl);
	padding: clamp(2rem, 4vw, 3.4rem);
}
.mfd-support::after {
	content: "";
	position: absolute;
	right: -7rem;
	top: -7rem;
	width: 20rem;
	height: 20rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, .05);
	pointer-events: none;
}
body.mfd .mfd-support h2 { color: #fff; margin: 0 0 .6rem; }
.mfd-support p { margin: 0; color: #bcd0b5; max-width: 48ch; }
.mfd-support__horaires {
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0;
	display: grid;
	gap: .55rem;
	font-size: .96rem;
}
.mfd-support__horaires li { display: flex; align-items: center; gap: .65em; }
.mfd-support__horaires svg { width: 19px; height: 19px; color: #a7c79a; flex: none; }

.mfd-tel {
	position: relative;
	z-index: 1;
	text-align: center;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--mfd-r-lg);
	padding: 1.8rem 2.2rem;
	text-decoration: none;
	display: block;
	transition: background-color var(--mfd-t), transform var(--mfd-t);
}
.mfd-tel:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.mfd-tel small {
	display: block;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #a7c79a;
	margin-bottom: .5rem;
}
.mfd-tel b {
	display: block;
	font-family: var(--mfd-display);
	font-size: clamp(1.6rem, 2.6vw, 2.15rem);
	font-weight: 700;
	color: #fff;
	letter-spacing: .01em;
	white-space: nowrap;
}

/* Réseaux sociaux */
.mfd-reseaux { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.mfd-reseau {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: .75em 1.3em;
	border-radius: var(--mfd-r-pill);
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	color: var(--mfd-forest);
	font-family: var(--mfd-display);
	font-weight: 600;
	font-size: .97rem;
	text-decoration: none;
	transition: transform var(--mfd-t), box-shadow var(--mfd-t), background-color var(--mfd-t), color var(--mfd-t);
}
.mfd-reseau svg { width: 20px; height: 20px; }
.mfd-reseau:hover { transform: translateY(-3px); box-shadow: var(--mfd-shadow-sm); color: #fff; }
.mfd-reseau--instagram:hover { background: linear-gradient(135deg, #f09433, #dc2743 55%, #bc1888); border-color: transparent; }
.mfd-reseau--facebook:hover  { background: #1877f2; border-color: transparent; }

@media (max-width: 999px) {
	.mfd-avis { grid-template-columns: 1fr; }
	.mfd-support { grid-template-columns: 1fr; }
	.mfd-tel { justify-self: stretch; }
}
@media (max-width: 700px) {
	.mfd-avis__marque { font-size: 5.5rem; }
	.mfd-support { padding: 1.9rem 1.4rem; border-radius: var(--mfd-r-lg); }
}

/* WordPress regroupe les éléments inline d'une carte dans un même <p> :
   on rend la pile explicite, que le paragraphe soit là ou non. */
.mfd-contact p { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.mfd-contact strong,
.mfd-contact .mfd-contact__lien,
.mfd-contact > span,
.mfd-contact p > span { display: block; }
.mfd-contact strong { line-height: 1.3; }

/* Blocksy décore les citations d'une barre latérale bleue : nos cartes
   d'avis ont leur propre mise en forme. */
body.mfd .mfd-avis blockquote {
	border: 0;
	padding: 0;
	margin: 0;
	font-style: normal;
	quotes: none;
}
body.mfd .mfd-avis blockquote::before,
body.mfd .mfd-avis blockquote::after { content: none; }

/* =========================================================================
   Boutique — refonte des cartes produit
   Le thème empile figure / titre / prix / catégorie / bouton à la verticale.
   On réorganise en grille nommée, sans toucher au gabarit PHP.
   ========================================================================= */

/* --- Barre de rayons --- */

.mfd-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 0 0 2.2rem;
	padding-bottom: 1.8rem;
	border-bottom: 1px solid var(--mfd-line);
}
.mfd-filtre {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .6em 1.1em;
	border-radius: var(--mfd-r-pill);
	border: 1px solid var(--mfd-line);
	background: var(--mfd-paper);
	color: var(--mfd-forest);
	font-family: var(--mfd-display);
	font-weight: 500;
	font-size: .95rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--mfd-t), border-color var(--mfd-t), color var(--mfd-t), transform var(--mfd-t);
}
.mfd-filtre span {
	font-size: .78rem;
	font-weight: 600;
	color: var(--mfd-muted);
	background: var(--mfd-sage-pale);
	padding: .15em .55em;
	border-radius: var(--mfd-r-pill);
	transition: background-color var(--mfd-t), color var(--mfd-t);
}
.mfd-filtre:hover {
	border-color: var(--mfd-leaf);
	color: var(--mfd-forest);
	transform: translateY(-2px);
}
.mfd-filtre.is-actif {
	background: var(--mfd-forest);
	border-color: var(--mfd-forest);
	color: #fff;
}
.mfd-filtre.is-actif span { background: rgba(255, 255, 255, .18); color: #fff; }

/* --- Barre d'outils (décompte + tri) --- */

body.mfd .woocommerce-result-count {
	font-size: .92rem;
	color: var(--mfd-muted);
	margin: 0;
}
body.mfd .woocommerce-ordering select,
body.mfd select.orderby {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-pill);
	background: var(--mfd-paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a5636' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .95em center;
	background-size: 15px;
	padding: .65em 2.6em .65em 1.2em;
	font-family: var(--mfd-display);
	font-size: .93rem;
	color: var(--mfd-forest);
	cursor: pointer;
	transition: border-color var(--mfd-t);
}
body.mfd .woocommerce-ordering select:hover { border-color: var(--mfd-leaf); }

/* --- La carte --- */

body.mfd ul.products { gap: clamp(1rem, 1.6vw, 1.6rem); }

body.mfd ul.products li.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"media  media"
		"rayon  rayon"
		"titre  titre"
		"prix   action";
	align-content: start;
	row-gap: 0;
	column-gap: .8rem;
	background: var(--mfd-paper);
	border: 1px solid var(--mfd-line);
	border-radius: var(--mfd-r-lg);
	padding: .8rem .8rem 1.1rem;
	overflow: hidden;
	transition: transform var(--mfd-t), box-shadow var(--mfd-t), border-color var(--mfd-t);
}
body.mfd ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--mfd-shadow);
	border-color: transparent;
}

body.mfd ul.products li.product > figure {
	grid-area: media;
	margin: 0 0 1.1rem;
	border-radius: var(--mfd-r);
	overflow: hidden;
	background: var(--mfd-sage-pale);
}
body.mfd ul.products li.product > figure img,
body.mfd ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}
body.mfd ul.products li.product:hover img { transform: scale(1.06); }

/* Le rayon devient une surtitre discrète, au-dessus du nom */
body.mfd ul.products li.product > .entry-meta {
	grid-area: rayon;
	list-style: none;
	margin: 0 0 .35rem;
	padding: 0 .3rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--mfd-leaf);
}
body.mfd ul.products li.product > .entry-meta li { display: inline; }
body.mfd ul.products li.product > .entry-meta a { color: inherit; text-decoration: none; }
body.mfd ul.products li.product > .entry-meta a:hover { color: var(--mfd-orange-dark); }

body.mfd ul.products li.product > .woocommerce-loop-product__title,
body.mfd ul.products li.product > h2 {
	grid-area: titre;
	margin: 0 0 .9rem;
	padding: 0 .3rem;
	font-family: var(--mfd-display);
	font-size: 1.06rem;
	line-height: 1.3;
	color: var(--mfd-forest);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.75em;
}
body.mfd ul.products li.product > h2 a { color: inherit; text-decoration: none; }

body.mfd ul.products li.product > .price {
	grid-area: prix;
	align-self: center;
	padding-left: .3rem;
	font-family: var(--mfd-display);
	font-size: 1.32rem;
	font-weight: 700;
	color: var(--mfd-orange-dark);
	margin: 0;
}
body.mfd ul.products li.product > .price del { font-size: .8em; opacity: .55; margin-right: .3em; }

body.mfd ul.products li.product > .ct-woo-card-actions {
	grid-area: action;
	align-self: center;
	justify-self: end;
	margin: 0;
}
body.mfd ul.products li.product .button,
body.mfd ul.products li.product a.added_to_cart {
	padding: .72em 1.25em;
	font-size: .92rem;
	margin: 0;
	box-shadow: none;
}
body.mfd ul.products li.product:hover .button { box-shadow: 0 8px 18px rgba(255, 125, 41, .3); }

/* Étiquettes « Promo » / « Épuisé » posées sur le visuel */
body.mfd ul.products li.product .onsale,
body.mfd ul.products li.product .ct-label {
	position: absolute;
	top: 1.3rem;
	left: 1.3rem;
	z-index: 2;
	margin: 0;
	border-radius: var(--mfd-r-pill);
	padding: .35em .9em;
	font-family: var(--mfd-display);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .04em;
	background: var(--mfd-orange);
	color: #fff;
}
body.mfd ul.products li.product { position: relative; }

/* --- Pagination --- */

body.mfd .ct-pagination a,
body.mfd .ct-pagination span,
body.mfd .woocommerce-pagination a,
body.mfd .woocommerce-pagination span {
	border-radius: var(--mfd-r-pill) !important;
	min-width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mfd-display);
	font-weight: 600;
	border: 1px solid var(--mfd-line);
	background: var(--mfd-paper);
	color: var(--mfd-forest);
	text-decoration: none;
	transition: background-color var(--mfd-t), color var(--mfd-t), border-color var(--mfd-t);
}
body.mfd .ct-pagination a:hover,
body.mfd .woocommerce-pagination a:hover { border-color: var(--mfd-leaf); }
body.mfd .ct-pagination .current,
body.mfd .woocommerce-pagination .current {
	background: var(--mfd-forest) !important;
	border-color: var(--mfd-forest);
	color: #fff !important;
}

@media (max-width: 999px) {
	body.mfd ul.products li.product {
		grid-template-areas:
			"media  media"
			"rayon  rayon"
			"titre  titre"
			"prix   prix"
			"action action";
	}
	body.mfd ul.products li.product > .price { margin-bottom: .75rem; }
	body.mfd ul.products li.product > .ct-woo-card-actions { justify-self: stretch; }
	body.mfd ul.products li.product .button { width: 100%; }
	body.mfd ul.products li.product > h2 { font-size: 1rem; min-height: 0; }
	.mfd-filtres { gap: .45rem; margin-bottom: 1.6rem; padding-bottom: 1.3rem; }
	.mfd-filtre { font-size: .88rem; padding: .5em .9em; }
}

.mfd-chapeau {
	max-width: 56ch;
	margin: 0 0 2.4rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--mfd-muted);
}

/* Blocksy pose « aspect-ratio: 4/3 » en style en ligne sur les vignettes.
   Nos photos produit sont carrées : un cadrage 1/1 évite de rogner. */
body.mfd ul.products li.product img { aspect-ratio: 1 / 1 !important; }

/* -------------------------------------------- Bandeau de titre des archives

   Il s'étalait sur toute la largeur de l'écran (1905 px) alors que le contenu
   reste dans la colonne du thème (1290 px), et occupait 250 px de haut pour
   une seule ligne de titre. On le cale sur le conteneur et on le resserre,
   en reprenant les variables du thème pour rester aligné en toutes largeurs. */

body.mfd .hero-section {
	width: var(--theme-container-width, 100%);
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin-inline: auto;
	margin-top: clamp(1.25rem, 2.4vw, 2rem);
	border-radius: var(--mfd-r-lg);
	overflow: hidden;
}
body.mfd .hero-section .entry-header {
	max-width: none;
	width: 100%;
	min-height: 0;
	padding: clamp(1.9rem, 2.8vw, 2.6rem) clamp(1.5rem, 2.4vw, 2.4rem);
	align-items: flex-start;
	text-align: left;
}
body.mfd .hero-section .page-title,
body.mfd .hero-section h1 {
	margin: 0;
	text-align: left;
	font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

/* La variante sans fond garde le même gabarit, sans la carte. */
body.mfd .hero-section.is-width-constrained {
	border-radius: 0;
	margin-top: 0;
}

@media (max-width: 700px) {
	body.mfd .hero-section { border-radius: var(--mfd-r); }
	body.mfd .hero-section .entry-header { padding: 1.6rem 1.3rem; }
}

/* ------------------------------------------- En-tête maison de la boutique

   On masque le bandeau du thème sur les archives produit : le nôtre vit dans
   le flux du contenu, donc parfaitement aligné sur les filtres et les cartes. */
body.mfd.woocommerce-shop .hero-section,
body.mfd.post-type-archive-product .hero-section,
body.mfd.tax-product_cat .hero-section { display: none; }

body.mfd.woocommerce-shop .ct-container-full,
body.mfd.post-type-archive-product .ct-container-full,
body.mfd.tax-product_cat .ct-container-full { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.mfd-entete-boutique {
	background: var(--mfd-sage-pale);
	border-radius: var(--mfd-r-lg);
	padding: clamp(1.9rem, 3vw, 2.8rem) clamp(1.6rem, 2.6vw, 2.6rem);
	margin: 0 0 clamp(2rem, 3.4vw, 3rem);
}
.mfd-entete-boutique .mfd-kicker { margin-bottom: 1rem; }
.mfd-entete-boutique h1 {
	margin: 0 0 .7rem;
	font-family: var(--mfd-display);
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	color: var(--mfd-forest);
	letter-spacing: -.02em;
}
.mfd-entete-boutique p {
	margin: 0;
	max-width: 62ch;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--mfd-muted);
}

@media (max-width: 700px) {
	.mfd-entete-boutique { padding: 1.6rem 1.3rem; border-radius: var(--mfd-r); }
}

/* =========================================================================
   Responsive — révision complète
   ========================================================================= */

/* 1. Un élément de grille avec marges automatiques ne s'étire plus : il se
   dimensionne sur son contenu. L'image en width:100% s'effondrait alors à
   zéro et disparaissait sous 1000 px. */
@media (max-width: 999px) {
	.mfd-duo__media { width: 100%; }
}

/* 2. Palier tablette : une seule colonne pour des cartes de 900 px de large,
   c'est du gâchis. Deux colonnes entre 700 et 1000 px. */
@media (min-width: 701px) and (max-width: 999px) {
	.mfd-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mfd-avis   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mfd-avis__carte:last-child { grid-column: 1 / -1; }
	.mfd-roles  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 3. Hiérarchie typographique sur petit écran : le h2 restait à 30,4 px,
   soit presque la taille du titre de page. */
@media (max-width: 700px) {
	body.mfd h2 { font-size: clamp(1.45rem, 6.4vw, 1.95rem); }
	body.mfd h3 { font-size: 1.06rem; }
	.mfd-entete-boutique h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
	.mfd-entete { margin-bottom: 2rem; }
	.mfd-lead { font-size: 1rem; }
	.mfd-kicker { font-size: .74rem; margin-bottom: 1rem; }
}

/* 4. Onze rayons qui s'empilent sur quatre lignes mangent l'écran :
   on les fait défiler horizontalement, d'un geste du pouce. */
@media (max-width: 700px) {
	.mfd-filtres {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
		margin-inline: calc(var(--mfd-gutter) * -1);
		padding-inline: var(--mfd-gutter);
		padding-bottom: 1.1rem;
		-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
		mask-image: linear-gradient(90deg, #000 88%, transparent);
	}
	.mfd-filtres::-webkit-scrollbar { display: none; }
	.mfd-filtre { scroll-snap-align: start; }
}

/* 5. Cibles tactiles : rien en dessous de 44 px de haut. */
@media (pointer: coarse) {
	body.mfd a.button,
	body.mfd button.button,
	body.mfd input.button,
	body.mfd .mfd-btn,
	body.mfd .mfd-filtre,
	body.mfd .woocommerce-ordering select,
	body.mfd .mfd-faq summary { min-height: 44px; }
	body.mfd .mfd-contact__lien { padding-block: .25em; }
}

/* 6. Les grands visuels réservent leur place avant chargement, pour éviter
   que la page ne saute quand l'image arrive. */
.mfd-duo__media img,
.mfd-hero__media > img { aspect-ratio: attr(width) / attr(height, 1); }
.mfd-duo__media img { aspect-ratio: 1 / 1; }
.mfd-hero__media > img { aspect-ratio: 9 / 10; }

/* Boutique sur tablette : trois colonnes plutôt que deux cartes de 355 px. */
@media (min-width: 701px) and (max-width: 999px) {
	body.mfd ul.products { --shop-columns: repeat(3, minmax(0, 1fr)); }
}
