/*
 * MFD — Pages
 * Styles for all content page templates and reusable components.
 * Builds on design-system.css tokens/utilities; never duplicates them.
 *
 * Sections:
 *   1.  Keyframe animations
 *   2.  page.php — default page template
 *   3.  404 page
 *   4.  PageEyebrow component
 *   5.  CollectionIntro component
 *   6.  FAQ Accordion component
 *   7.  tpl-concept.php — Concept Artisanal
 *   8.  tpl-collections-hub.php — Collections Hub
 *   9.  tpl-idee-cadeau.php — Idée Cadeau
 *  10.  tpl-cartes-cadeau.php — Cartes Cadeau
 *  11.  tpl-personnaliser.php — Personnaliser (Coming Soon)
 *  12.  tpl-point-de-vente.php — Point de Vente
 *  13.  tpl-ambassadeur.php — Devenir Ambassadeur
 *  14.  tpl-contact.php — Contact
 *  15.  tpl-comment-ca-marche.php — Comment ça Marche
 *  16.  tpl-faq.php — FAQ
 *  17.  Shared form layouts
 *  18.  Responsive — 960px
 *  19.  Responsive — 640px
 */

/* ============================================================
 * 1. KEYFRAME ANIMATIONS
 * ============================================================ */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================================
 * 2. DEFAULT PAGE TEMPLATE (page.php)
 * ============================================================ */
.mfd-page-header {
	padding-block: clamp(40px, 6vw, 64px);
	text-align: center;
}

.mfd-page-content .mfd-container--narrow {
	padding-block: 0;
}

/* Generic editorial prose inside default page template */
.mfd-page-content p,
.mfd-page-content li {
	font-family: var(--mfd-font-serif);
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.75;
	margin-bottom: 1.2em;
}

.mfd-page-content h2 {
	/* H2 de contenu = Montserrat italic 800 + 2px tan underline */
	font-family: var(--mfd-font-body);
	font-weight: 800;
	font-style: italic;
	font-size: clamp(18px, 2.5vw, 26px);
	letter-spacing: -0.01em;
	text-transform: uppercase; /* Titres de section (contenu) en majuscules. */
	margin: 2em 0 0.6em;
	padding-bottom: 0.25em;
	border-bottom: 2px solid var(--mfd-tan);
}

.mfd-page-content h3 {
	/* H3 de contenu = Montserrat italic 700 */
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(15px, 1.8vw, 20px);
	letter-spacing: -0.01em;
	text-transform: none;
	margin: 1.6em 0 0.5em;
}

/* ============================================================
 * 3. 404 PAGE
 * ============================================================ */
.mfd-404 {
	min-height: 60vh;
	display: flex;
	align-items: center;
}

.mfd-404__inner {
	text-align: center;
	max-width: 560px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.mfd-404__number {
	font-family: var(--mfd-font-body);
	font-weight: 800;
	font-style: italic;
	font-size: clamp(80px, 18vw, 160px);
	line-height: 1;
}

.mfd-404__title {
	font-size: clamp(24px, 4vw, 40px);
	line-height: 1.15;
}

.mfd-404__body {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.7;
	color: var(--mfd-muted);
}

/* ============================================================
 * 4. PAGEEYEBROW COMPONENT
 * ============================================================ */
.mfd-page-eyebrow {
	text-align: center;
	padding-block: clamp(40px, 6vw, 64px);
}

.mfd-page-eyebrow__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 720px;
	margin-inline: auto;
}

.mfd-page-eyebrow .mfd-eyebrow {
	margin-bottom: 4px;
}

.mfd-page-eyebrow__sub {
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.7;
	color: var(--mfd-muted);
	max-width: 600px;
	text-align: center;
}

/* ============================================================
 * 5. COLLECTIONINTRO COMPONENT
 * ============================================================ */
.mfd-collection-intro {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 36px;
	align-items: center;
}

.mfd-collection-intro__image-wrap {
	position: relative;
	overflow: hidden;
}

.mfd-collection-intro__image {
	width: 100%;
	height: clamp(280px, 40vw, 420px);
	object-fit: cover;
}

.mfd-collection-intro__overlay {
	position: absolute;
	bottom: 20px;
	left: 20px;
	font-size: clamp(24px, 4vw, 42px);
	color: var(--mfd-white);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	margin: 0;
}

.mfd-collection-intro__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mfd-collection-intro__para {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.75;
}

/* ============================================================
 * 6. FAQ ACCORDION COMPONENT
 * ============================================================ */
.mfd-accordion {
	max-width: 800px;
}

.mfd-accordion__item {
	border-bottom: 1px solid var(--mfd-line);
}

.mfd-accordion__item:first-child {
	border-top: 1px solid var(--mfd-line);
}

.mfd-accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	text-align: left;
	cursor: pointer;
	background: none;
	border: none;
	transition: color var(--mfd-transition);
}

.mfd-accordion__trigger:hover .mfd-accordion__question {
	color: var(--mfd-tan);
}

.mfd-accordion__question {
	font-family: var(--mfd-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	transition: color var(--mfd-transition);
}

.mfd-accordion__icon {
	flex-shrink: 0;
	color: var(--mfd-tan);
	transition: transform 0.3s ease;
}

.mfd-accordion__item.is-open .mfd-accordion__icon {
	transform: rotate(45deg);
}

.mfd-accordion__panel {
	overflow: hidden;
}

.mfd-accordion__panel[hidden] {
	display: none;
}

.mfd-accordion__panel:not([hidden]) {
	animation: fadeUp 0.3s ease both;
}

.mfd-accordion__answer {
	padding-bottom: 20px;
}

.mfd-accordion__answer p {
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 1em;
}

.mfd-accordion__answer p:last-child {
	margin-bottom: 0;
}

/* ============================================================
 * 7. CONCEPT ARTISANAL (tpl-concept.php)
 * Échelle typographique contenue, images moins hautes, mesure ~65ch.
 * ============================================================ */

/* Ancres de section (liens du footer « À propos » : Concept artisanal, Made in
   France → Savoir-faire ; Engagements → Éthique ; Notre histoire ; et la bande
   newsletter, cible du retour de statut d'inscription). On décale la cible sous
   l'en-tête sticky pour que le titre de section reste visible.
   Hauteurs mesurées de l'en-tête : ≥961px ≈235 · 641–960 ≈154 · 480–640 ≈136 · ≤479 ≈94. */
#savoir-faire-artisanal,
#qualite-ethique-durable,
#notre-histoire,
#mfd-newsletter {
	scroll-margin-top: 245px;
}

@media (max-width: 960px) {
	#savoir-faire-artisanal,
	#qualite-ethique-durable,
	#notre-histoire,
	#mfd-newsletter {
		scroll-margin-top: 165px;
	}
}

@media (max-width: 640px) {
	#savoir-faire-artisanal,
	#qualite-ethique-durable,
	#notre-histoire,
	#mfd-newsletter {
		scroll-margin-top: 148px;
	}
}

@media (max-width: 479px) {
	#savoir-faire-artisanal,
	#qualite-ethique-durable,
	#notre-histoire,
	#mfd-newsletter {
		scroll-margin-top: 104px;
	}
}

/* Hero */
.mfd-concept-hero__inner {
	text-align: center;
	padding-block: clamp(24px, 4vw, 40px);
}

.mfd-concept-hero__inner .mfd-eyebrow {
	font-size: clamp(13px, 1.8vw, 18px);
	letter-spacing: 0.1em;
	margin-bottom: 16px;
}

.mfd-concept-hero__title {
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.05;
}

/* Notre histoire */
.mfd-concept-histoire__heading {
	font-size: clamp(24px, 3.2vw, 34px);
	margin-bottom: clamp(24px, 3.5vw, 40px);
}

.mfd-concept-histoire__grid {
	display: grid;
	grid-template-columns: 1fr 0.7fr;
	gap: clamp(28px, 4vw, 48px);
	align-items: start;
}

.mfd-concept-histoire__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
	/* Mesure de lecture confortable. */
	max-width: 65ch;
}

.mfd-concept-histoire__text p {
	font-size: clamp(14px, 1.1vw, 15.5px);
	line-height: 1.7;
}

.mfd-concept-histoire__photo {
	overflow: hidden;
}

.mfd-concept-histoire__grid .mfd-concept-histoire__photo img {
	width: 100%;
	height: clamp(260px, 32vw, 380px);
	object-fit: cover;
}

/* Savoir-faire */
.mfd-concept-savoirfaire__grid {
	display: grid;
	grid-template-columns: 0.7fr 1fr;
	gap: clamp(28px, 4vw, 48px);
	align-items: center;
}

.mfd-concept-savoirfaire__grid .mfd-concept-savoirfaire__photo img {
	width: 100%;
	height: clamp(260px, 32vw, 380px);
	object-fit: cover;
}

.mfd-concept-savoirfaire__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	/* Mesure de lecture confortable. */
	max-width: 65ch;
}

.mfd-concept-savoirfaire__hangtag-row {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.mfd-concept-hangtag {
	flex-shrink: 0;
}

.mfd-concept-savoirfaire__heading {
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.1;
}

.mfd-concept-savoirfaire__content p {
	font-size: clamp(14px, 1.1vw, 15.5px);
	line-height: 1.7;
}

/* Qualité / Innovation 3-col */
.mfd-concept-ethique__grid {
	display: grid;
	grid-template-columns: 1fr 0.6fr 1fr;
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
}

.mfd-concept-ethique__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mfd-concept-ethique__subheading {
	font-size: clamp(16px, 1.6vw, 20px);
	padding-bottom: 12px;
	border-bottom: 2px solid var(--mfd-tan);
}

.mfd-concept-ethique__col p {
	font-size: clamp(13px, 1.1vw, 15px);
	line-height: 1.7;
}

.mfd-concept-ethique__photo {
	overflow: hidden;
}

.mfd-concept-ethique__grid .mfd-concept-ethique__photo img {
	width: 100%;
	height: clamp(220px, 28vw, 320px);
	object-fit: cover;
}

/* Founder quote */
.mfd-concept-quote__inner {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.mfd-concept-quote__text {
	font-family: var(--mfd-font-serif);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(22px, 3.2vw, 34px);
	line-height: 1.35;
	border: none;
	margin: 0;
	padding: 0;
}

.mfd-concept-quote__attribution {
	letter-spacing: 0.18em;
	color: var(--mfd-tan);
}

.mfd-concept-quote__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ============================================================
 * 8. COLLECTIONS HUB (tpl-collections-hub.php)
 * ============================================================ */

/* Stacked title */
.mfd-hub-title__inner {
	text-align: center;
}

.mfd-hub-title__la {
	font-size: 20px;
	font-weight: 400;
	margin-bottom: 0;
}

.mfd-hub-title__collection {
	font-size: clamp(40px, 7vw, 72px);
	line-height: 1;
	margin: 0;
}

/* Category tiles row */
.mfd-hub-tiles__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.mfd-hub-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: clamp(280px, 35vw, 460px);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	text-decoration: none;
}

.mfd-hub-tile__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.4));
	transition: opacity 0.4s;
}

.mfd-hub-tile:hover .mfd-hub-tile__overlay {
	opacity: 0.85;
}

/* Zoom effect on hover for the background */
.mfd-hub-tile::before {
	content: '';
	position: absolute;
	inset: 0;
	background: inherit;
	background-size: cover;
	background-position: center;
	transition: transform 0.8s ease;
}

.mfd-hub-tile:hover::before {
	transform: scale(1.04);
}

.mfd-hub-tile__label {
	position: relative;
	z-index: 1;
	font-size: clamp(20px, 3.5vw, 40px);
	padding-bottom: 20px;
	color: var(--mfd-white);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Le widget Elementor du catalogue ne doit PAS conserver
   une hauteur fixe (stockée dans l'éditeur) — sinon, à 414px, la dernière rangée
   orpheline déborde de son cadre et chevauche la section newsletter suivante. */
.elementor-widget-mfd-hub-catalogue,
.elementor-widget-mfd-hub-catalogue > .elementor-widget-container {
	height: auto !important;
	min-height: 0 !important;
}

/* …et son CONTENEUR Elementor : il est en `flex-direction: column` AVEC
   `flex-wrap: wrap` (réglage d'éditeur). Sur mobile, le contenu plus haut force
   le conteneur à wrapper en 2 colonnes → le widget catalogue est écrasé (788px)
   et sa grille produits déborde, chevauchant la newsletter. On force `nowrap`
   (+ hauteur auto) pour empiler proprement. `:has()` cible le conteneur sans
   dépendre d'un ID Elementor (stable au réimport du blueprint). */
.mfd-page-content--elementor .e-con:has(.mfd-hub-catalogue) {
	flex-wrap: nowrap !important;
	height: auto !important;
	min-height: 0 !important;
}

/* Hub catalogue cards */
.mfd-hub-catalogue .mfd-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

.mfd-hub-card {
	display: flex;
	flex-direction: column;
	background: var(--mfd-white);
	padding: clamp(12px, 2vw, 20px);
	transition: transform 0.3s ease;
}

.mfd-hub-card:hover {
	transform: translateY(-4px);
}

.mfd-hub-card__link {
	display: block;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.mfd-hub-card__image-wrap {
	position: relative;
	background: var(--mfd-product-tile);
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin-bottom: 12px;
}

.mfd-hub-catalogue .mfd-hub-card__image-wrap img {
	/* Absolu : l'image ne dicte pas la hauteur (cf. .mfd-product-card__image-wrap). */
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.mfd-hub-card:hover .mfd-hub-card__image-wrap img {
	transform: scale(1.03);
}

.mfd-hub-card__body {
	padding: 8px 0;
}

.mfd-hub-card__name {
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 6px;
}

.mfd-hub-card__price {
	font-size: 14px;
	font-style: italic;
}

.mfd-hub-card__atc {
	margin-top: 12px;
	width: 100%;
}

/* ============================================================
 * 9. IDÉE CADEAU (tpl-idee-cadeau.php)
 * ============================================================ */

/* Hero */
/* Bandeau image éditable de la page Idée cadeau. */
.mfd-idee-banner {
	/* Pleine largeur (edge-to-edge), pas de conteneur ni de padding latéral. */
	width: 100%;
	margin: 0 0 8px;
}

/* Bandeau pleine largeur ≈ moitié de l'écran. On vise ~50vh
   mais de façon FIABLE : `svh` (small viewport height) évite le calcul erratique
   de `vh`, avec un repli borné en px. object-fit recadre l'image portrait.
   IMPORTANT : la sélectivité est relevée (.elementor &, et img.mfd-idee-banner__img)
   pour BATTRE la règle Elementor `.elementor img { height: auto }` qui sinon
   gagne et fait s'afficher l'image à sa hauteur naturelle. */
.mfd-idee-banner__img,
img.mfd-idee-banner__img,
.elementor .mfd-idee-banner__img {
	width: 100%;
	height: clamp(320px, 50svh, 560px);
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Repli pour navigateurs sans unité svh : ~moitié d'un écran standard. */
@supports not (height: 50svh) {
	.mfd-idee-banner__img,
	img.mfd-idee-banner__img,
	.elementor .mfd-idee-banner__img {
		height: clamp(320px, 48vw, 560px);
	}
}

/* Filtre « par budget » compact (moins imposant) — même fond que « par occasion ». */
.mfd-idee-filter {
	padding-top: 28px;
	padding-bottom: 18px;
}

/* Titres des deux filtres (budget + occasion) : même taille de police,
   pour une page « Idée cadeau » cohérente. */
.mfd-idee-filter .mfd-section-title,
/* Pas d'espace au-dessus de la section « occasions » (collée au bloc précédent). */
.mfd-idee-occasions.mfd-section {
	padding-top: 0;
}

.mfd-idee-occasions .mfd-section-title {
	font-size: clamp(18px, 2.4vw, 24px);
	margin-bottom: 14px;
}

.mfd-idee-hero__inner {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.mfd-idee-hero__sub {
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.7;
	color: var(--mfd-muted);
}

/* Budget filters (now <a> links that redirect to shop with price params) */
.mfd-budget-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	/* Marge uniforme à 38px, cohérente avec les filtres par occasion. */
	margin-top: 38px;
}

.mfd-budget-btn {
	font-family: var(--mfd-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 12px 22px;
	border: 1.5px solid var(--mfd-tan);
	background: transparent;
	color: var(--mfd-ink);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
	display: inline-block;
	text-decoration: none;
	line-height: 1;
}

.mfd-budget-btn:hover {
	background: var(--mfd-tan);
	color: var(--mfd-white);
}

/* ── Occasion tabs ── */
.mfd-occasion-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* Filtres occasion centrés. */
	gap: 10px;
	/* Marges haut/bas uniformes à 38px. */
	margin-top: 38px;
	margin-bottom: 38px;
}

.mfd-occasion-tab {
	font-family: var(--mfd-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 10px 20px;
	border: 1.5px solid var(--mfd-tan);
	background: transparent;
	color: var(--mfd-ink);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	line-height: 1.3;
}

.mfd-occasion-tab:hover {
	background: var(--mfd-tan);
	color: var(--mfd-white);
}

.mfd-occasion-tab.is-active,
.mfd-occasion-tab[aria-selected="true"] {
	background: var(--mfd-tan);
	color: var(--mfd-white);
	box-shadow: 0 2px 8px rgba(129, 90, 37, 0.4);
}

.mfd-occasion-tab__from {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.85;
}

/* ── Occasion panels ── */
.mfd-occasion-panels {
	position: relative;
}

.mfd-occasion-panel {
	display: none;
}

.mfd-occasion-panel.is-active {
	display: block;
}

.mfd-occasion-panel__cta {
	margin-top: 28px;
	text-align: center;
}

/* Fallback empty state (no categories) */
.mfd-occasions-empty {
	padding: 48px 32px;
	border: 1px solid var(--mfd-line);
	text-align: center;
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.mfd-occasions-empty__msg {
	font-size: 18px;
}

.mfd-occasions-empty__hint {
	font-size: 15px;
	color: var(--mfd-muted);
}

/* Carte promo 2-col */
.mfd-idee-carte__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 48px);
	align-items: center;
}

.mfd-idee-carte__image {
	/* Carte cadeau promo image framed with 1px solid tan */
	overflow: hidden;
	border: 1px solid var(--mfd-tan);
}

.mfd-idee-carte__grid .mfd-idee-carte__image img {
	width: 100%;
	height: clamp(260px, 35vw, 420px);
	object-fit: cover;
	display: block;
}

.mfd-idee-carte__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mfd-idee-carte__body {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.7;
}

/* ============================================================
 * 10. CARTES CADEAU (tpl-cartes-cadeau.php)
 * ============================================================ */
.mfd-carte-config__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 56px);
	max-width: 1000px;
	margin-inline: auto;
	align-items: start;
}

/* Gift card visual */
.mfd-carte-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: clamp(32px, 4vw, 48px);
	text-align: center;
}

.mfd-carte-visual__label {
	font-size: 11px;
}

.mfd-carte-visual__amount {
	font-family: var(--mfd-font-body);
	font-weight: 800;
	font-style: italic;
	font-size: clamp(40px, 6vw, 64px);
	line-height: 1;
	color: var(--mfd-tan);
	transition: all 0.25s ease;
}

.mfd-carte-visual__brand {
	font-size: 18px;
}

.mfd-carte-visual__validity {
	font-size: 11px;
}

/* Form */
.mfd-carte-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ============================================================
 * 11. PERSONNALISER — COMING SOON (tpl-personnaliser.php)
 * ============================================================ */
.mfd-perso-hero {
	min-height: 80vh;
}

.mfd-perso-hero__inner {
	max-width: 720px;
	margin-inline: auto;
	/* Respiration sous le bloc hero. */
	margin-bottom: clamp(48px, 6vw, 80px);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.mfd-perso-hero__coming {
	font-size: clamp(48px, 9vw, 96px);
	line-height: 1;
	color: var(--mfd-tan);
}

.mfd-perso-hero__subtitle {
	font-size: clamp(22px, 3vw, 36px);
	line-height: 1.2;
}

.mfd-perso-hero__body {
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.75;
	max-width: 580px;
}

/* 6-step indicator (disabled) */
.mfd-perso-steps {
	display: flex;
	align-items: center;
	gap: 0;
	opacity: 0.5;
	flex-wrap: wrap;
	justify-content: center;
	margin: 8px 0;
}

.mfd-perso-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.mfd-perso-step__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--mfd-ink);
	font-family: var(--mfd-font-body);
	font-size: 13px;
	font-weight: 700;
}

.mfd-perso-step__label {
	font-family: var(--mfd-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mfd-perso-step__connector {
	width: 32px;
	height: 2px;
	background: var(--mfd-line);
	margin-bottom: 16px;
}

/* Hourglass badge */
.mfd-perso-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 1.5px solid var(--mfd-tan);
	background: var(--mfd-white);
	border-radius: 999px;
}

.mfd-perso-badge__text {
	font-family: var(--mfd-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mfd-perso-hero__invite {
	font-size: clamp(14px, 1.2vw, 16px);
	color: var(--mfd-muted);
}

.mfd-perso-hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ============================================================
 * 12. POINT DE VENTE (tpl-point-de-vente.php)
 * ============================================================ */

/* Hero */
.mfd-pdv-hero__inner {
	text-align: center;
}

/* Category filter tabs */
.mfd-pdv-filters {
	padding-top: 0;
	padding-bottom: 0;
}

.mfd-pdv-filter-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 20px 0;
}

.mfd-pdv-filter-tab {
	padding: 8px 20px;
	border: 1.5px solid var(--mfd-ink);
	background: transparent;
	color: var(--mfd-ink);
	font-family: var(--mfd-font-body);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.mfd-pdv-filter-tab:hover {
	background: var(--mfd-ink);
	color: var(--mfd-white);
}

.mfd-pdv-filter-tab.is-active {
	background: var(--mfd-ink);
	color: var(--mfd-white);
}

/* Shop category badge */
.mfd-pdv-card__badge {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 2px;
	font-family: var(--mfd-font-body);
	align-self: flex-start;
	margin-top: 2px;
}

.mfd-pdv-card__badge--boutique {
	background: var(--mfd-tan);
	color: var(--mfd-white);
}

.mfd-pdv-card__badge--revendeur {
	background: var(--mfd-line);
	color: var(--mfd-ink);
}

/* Country label */
.mfd-pdv-card__country {
	font-size: 13px;
}

/* Search */
.mfd-pdv-search__form {
	display: flex;
	gap: 12px;
	max-width: 520px;
	margin-inline: auto;
	flex-wrap: wrap;
}

.mfd-pdv-search__input {
	flex: 1;
	border: 1.5px solid var(--mfd-ink);
	background: var(--mfd-white);
}

/* Store list + map */
/* Shared height token: map and list are always the same height. */
:root {
	--mfd-pdv-panel-height: 520px;
}

.mfd-pdv-locator__grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 24px;
	align-items: start;
}

.mfd-pdv-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	height: var(--mfd-pdv-panel-height);
	max-height: var(--mfd-pdv-panel-height);
	overflow-y: auto;
	/* On-brand thin scrollbar */
	scrollbar-width: thin;
	scrollbar-color: var(--mfd-tan) var(--mfd-cream-soft);
}

.mfd-pdv-list::-webkit-scrollbar {
	width: 5px;
}

.mfd-pdv-list::-webkit-scrollbar-track {
	background: var(--mfd-cream-soft);
}

.mfd-pdv-list::-webkit-scrollbar-thumb {
	background-color: var(--mfd-tan);
	border-radius: 3px;
}

.mfd-pdv-card {
	width: 100%;
	text-align: left;
	padding: 20px 18px;
	border: none;
	border-bottom: 1px solid var(--mfd-line);
	background: var(--mfd-white);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mfd-pdv-card:first-child {
	border-top: 1px solid var(--mfd-line);
}

.mfd-pdv-card.is-selected {
	border: 2px solid var(--mfd-tan);
	background: var(--mfd-cream-soft);
}

.mfd-pdv-card__name {
	font-size: 15px;
	font-weight: 700;
}

.mfd-pdv-card__address {
	font-size: 14px;
	color: var(--mfd-muted);
}

.mfd-pdv-card__status {
	font-size: 13px;
}

/* Map placeholder */
.mfd-pdv-map {
	position: relative;
	height: var(--mfd-pdv-panel-height);
	min-height: var(--mfd-pdv-panel-height);
	background: var(--mfd-cream-soft);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mfd-pdv-map__caption {
	font-size: 14px;
	padding: 12px 16px;
	position: relative;
	z-index: 1;
	text-align: center;
}

.mfd-pdv-map__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mfd-pdv-map__placeholder {
	width: 100%;
	height: var(--mfd-pdv-panel-height);
	background: linear-gradient(135deg, var(--mfd-cream-soft) 0%, var(--mfd-line) 100%);
}

/* ============================================================
 * 13. DEVENIR AMBASSADEUR (tpl-ambassadeur.php)
 * ============================================================ */

/* Split hero */
.mfd-ambass-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* Héro plus court, MAIS dimensionné sur le contenu (pas de
	   max-height qui débordait sur la section suivante). La hauteur vient de la
	   photo + du panneau ci-dessous (réduits). */
	min-height: 300px;
}

.mfd-ambass-hero__panel {
	background: var(--mfd-ink);
	color: var(--mfd-white);
	padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 56px); /* Panneau plus court. */
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}

.mfd-ambass-hero__panel .mfd-eyebrow {
	color: var(--mfd-tan);
}

.mfd-ambass-hero__panel .mfd-page-title {
	color: var(--mfd-white);
}

.mfd-ambass-hero__sub {
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
}

/* Rangée de boutons d'action dans le panneau du hero scindé (ex. Espace pro). */
.mfd-ambass-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 4px 0 0;
}

.mfd-ambass-hero__photo {
	position: relative;
	overflow: hidden;
	height: 100%; /* La photo remplit toute la hauteur du héro (pas de vide en bas). */
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mfd-cream); /* Mat crème derrière l'image entière (contain) ; les photos produit sur fond clair s'y fondent. */
}

.mfd-ambass-hero .mfd-ambass-hero__photo img {
	position: absolute; /* remplit la cellule ; `contain` montre l'image ENTIÈRE, centrée, sans recadrage. */
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain; /* Afficher l'image en entier (plus de recadrage du sujet / bracelet). */
	object-position: center;
}

/* Bannières CATALOGUE (catégories produit + pages
   collections) au gabarit du hero Ambassadeur — texte + image, collées au
   menu, hauteur COMPACTE et UNIFORME quelle que soit la photo. */
.mfd-ambass-hero--catalog {
	/* La description (catégorie WooCommerce, éditable) ne doit JAMAIS être tronquée.
	   Hauteur PLANCHER pour l'uniformité visuelle, mais le bandeau grandit librement
	   si le texte dépasse — plus de hauteur fixe (qui coupait le texte ≥861px). */
	min-height: clamp(240px, 26vw, 340px);
	max-height: none;
	/* Photo élargie (≈60 %) → recadrage moins serré, on voit
	   plus de détail de l'image (« dézoom »). */
	grid-template-columns: 1fr 1.5fr;
}

.mfd-ambass-hero--catalog .mfd-ambass-hero__panel {
	padding: clamp(20px, 2.6vw, 36px) clamp(28px, 4vw, 56px);
	gap: 10px;
	overflow: hidden;
}

.mfd-ambass-hero--catalog .mfd-page-title {
	font-size: clamp(26px, 3.2vw, 40px);
}

.mfd-ambass-hero--catalog .mfd-ambass-hero__sub {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mfd-ambass-hero--catalog .mfd-ambass-hero__photo {
	height: 100%;
	max-height: none;
}

/* Bannière collection — l'IMAGE passe DERRIÈRE le
   panneau titre (gauche), et la DESCRIPTION éditable (description de la catégorie
   WooCommerce) occupe le panneau de DROITE. */
.mfd-ambass-hero--catalog {
	grid-template-columns: 1.4fr 1fr;
}

.mfd-ambass-hero__panel--photo {
	position: relative;
	background-size: contain; /* Image collection ENTIÈRE (plus de recadrage). */
	background-position: center;
	background-repeat: no-repeat; /* jamais l'image répétée en mosaïque */
	background-color: var(--mfd-ink); /* mat encre : bandes discrètes + titre superposé lisible (dégradé). */
	justify-content: flex-end; /* titre ancré en bas, sur l'image */
}

.mfd-ambass-hero__panel-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.1) 100%);
	pointer-events: none;
}

.mfd-ambass-hero__panel-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mfd-ambass-hero__desc {
	background: var(--mfd-cream);
	color: var(--mfd-ink);
	padding: clamp(20px, 2.6vw, 36px) clamp(28px, 4vw, 56px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.75;
}

.mfd-ambass-hero__desc p {
	margin: 0 0 0.8em;
}

.mfd-ambass-hero__desc p:last-child {
	margin-bottom: 0;
}

@media (max-width: 860px) {
	.mfd-ambass-hero--catalog {
		height: auto;
		grid-template-columns: 1fr;
	}

	.mfd-ambass-hero--catalog .mfd-ambass-hero__photo {
		height: 340px; /* Héros catégorie plus HAUTS sur mobile → image (contain) bien visible. */
		max-height: none;
	}

	.mfd-ambass-hero--catalog .mfd-ambass-hero__panel--photo {
		min-height: 340px; /* Collections : la bannière (image de fond) garde une vraie hauteur sur mobile (sinon réduite au seul titre). */
	}
}

/* « Ce que nous offrons » trop collé au hero — on aère le
   haut de la section pour la séparer nettement de la section précédente. */
.mfd-ambass-benefits {
	padding-top: 0;
}

/* Benefits */
.mfd-ambass-benefit {
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mfd-ambass-benefit__title {
	font-family: var(--mfd-font-body);
	font-size: clamp(16px, 1.8vw, 22px);
	font-weight: 800;
	font-style: italic;
}

.mfd-ambass-benefit__body {
	font-size: clamp(13px, 1.1vw, 15px);
	line-height: 1.7;
}

/* Candidature form */
.mfd-ambass-form__wrap {
	max-width: 640px;
	margin-inline: auto;
}

.mfd-ambass-form__submit {
	text-align: center;
}

/* Section « Votre demande » — pas de barre dorée sous le titre
   (fuite .mfd-page-content h2) et un peu moins d'espace (padding) autour. */
.mfd-ambass-form .mfd-section-title {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 10px;
}

.mfd-ambass-form {
	/* Padding TOP réduit de moitié (~48 → ~24px), bas conservé. */
	padding-top: clamp(16px, 2vw, 24px);
	padding-bottom: clamp(32px, 4vw, 48px);
}

.mfd-ambass-success {
	padding: 32px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.mfd-ambass-success[hidden] {
	display: none;
}

.mfd-ambass-success__title {
	font-family: var(--mfd-font-body);
	font-size: 20px;
	font-weight: 800;
	font-style: italic;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mfd-ambass-success__body {
	font-size: 15px;
	line-height: 1.7;
}

/* ============================================================
 * 14. CONTACT (tpl-contact.php)
 * ============================================================ */

/* Hero */
.mfd-contact-hero__inner {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.mfd-contact-hero__sub {
	font-size: clamp(14px, 1.3vw, 16px);
	line-height: 1.7;
	color: var(--mfd-muted);
}

/* 2-col layout */
.mfd-contact-main__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: clamp(32px, 5vw, 56px);
	align-items: start;
}

/* Success state */
.mfd-contact-success {
	padding: 32px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.mfd-contact-success[hidden] {
	display: none;
}

.mfd-contact-success__title {
	font-family: var(--mfd-font-body);
	font-size: 20px;
	font-weight: 800;
	font-style: italic;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mfd-contact-success__body {
	font-size: 15px;
	line-height: 1.7;
}

/* Info card */
.mfd-contact-info {
	padding: clamp(24px, 3vw, 36px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mfd-contact-info__title {
	font-size: clamp(16px, 1.8vw, 22px);
}

.mfd-contact-info__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mfd-contact-info__body p {
	font-size: 15px;
	line-height: 1.7;
}

.mfd-contact-info__body a {
	color: var(--mfd-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ============================================================
 * 15. COMMENT ÇA MARCHE (tpl-comment-ca-marche.php)
 * ============================================================ */

/* Hero */
.mfd-ccm-hero__title {
	font-size: clamp(36px, 7vw, 82px);
	line-height: 1;
	text-align: center;
	padding-block: clamp(32px, 5vw, 56px);
}

/* Intro 2-col */
.mfd-ccm-intro__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 56px);
	align-items: center;
}

.mfd-ccm-intro__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mfd-ccm-intro__text p {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.75;
}

/* Video placeholder */
.mfd-ccm-video {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mfd-ccm-video__player {
	position: relative;
	background: var(--mfd-ink);
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.mfd-ccm-video__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.8;
}

.mfd-ccm-video__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: var(--mfd-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease, background 0.2s ease;
}

.mfd-ccm-video__play:hover {
	background: var(--mfd-white);
	transform: scale(1.06);
}

.mfd-ccm-video__caption {
	font-size: 13px;
	text-align: center;
}

/* Vidéo « Mode d'emploi » : l'embed (oEmbed ou vidéo native) remplit le
 * lecteur 16/10 sans déformation ni letterbox rognée (demande bus H7). */
.mfd-howto-video__embed iframe,
.mfd-howto-video__embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* La vidéo fichier garde l'image entière dans le cadre sombre. */
.mfd-howto-video__embed .mfd-howto-video__media {
	object-fit: contain;
}

/* Iframe injectée par main.js sur la page « Comment ça marche ». */
.mfd-ccm-video__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* FAQ heading */
.mfd-ccm-faq__heading {
	font-size: clamp(22px, 3.5vw, 44px);
	margin-bottom: clamp(24px, 3vw, 40px);
}

/* Center accordion in ccm section */
.mfd-ccm-faq .mfd-accordion {
	margin-inline: auto;
}

/* ============================================================
 * 16. FAQ PAGE (tpl-faq.php)
 * ============================================================ */
.mfd-faq-section {
	padding-top: 0;
}

.mfd-faq-section .mfd-accordion {
	margin-inline: auto;
}

/* Closing contact block (faq-contact.php) — intro + phone / email / address. */
.mfd-faq-contact {
	max-width: 720px;
	margin: clamp(32px, 4vw, 48px) auto 0;
	text-align: center;
}

.mfd-faq-contact__intro {
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.7;
	margin-bottom: 18px;
	color: var(--mfd-muted);
}

.mfd-faq-contact__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px clamp(20px, 3vw, 40px);
}

.mfd-faq-contact__item {
	font-size: 15px;
	line-height: 1.6;
}

.mfd-faq-contact__item strong {
	font-weight: 600;
	margin-right: 6px;
}

.mfd-faq-contact__item a {
	color: var(--mfd-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ============================================================
 * 17. SHARED FORM LAYOUTS
 * ============================================================ */
.mfd-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.mfd-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mfd-field-group--full {
	grid-column: 1 / -1;
}

/* ============================================================
 * 18. RESPONSIVE — 960px
 * ============================================================ */
@media (max-width: 960px) {

	/* Collections Hub */
	.mfd-hub-tiles__row {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Concept — 3-col ethics → 1 col */
	.mfd-concept-ethique__grid {
		grid-template-columns: 1fr;
	}

	.mfd-concept-ethique__photo {
		display: none; /* hide center photo on tablet to keep reading flow */
	}

	/* Concept — 2-col grids */
	.mfd-concept-histoire__grid,
	.mfd-concept-savoirfaire__grid {
		grid-template-columns: 1fr;
	}

	.mfd-concept-histoire__photo,
	.mfd-concept-savoirfaire__photo {
		order: -1;
	}

	/* Contact 2-col */
	.mfd-contact-main__grid {
		grid-template-columns: 1fr;
	}

	/* Comment ça marche 2-col */
	.mfd-ccm-intro__grid {
		grid-template-columns: 1fr;
	}

	/* Ambassadeur split hero */
	.mfd-ambass-hero {
		grid-template-columns: 1fr;
		min-height: auto;
		max-height: none;
	}

	.mfd-ambass-hero__photo {
		height: 340px; /* Héros plus HAUT sur mobile → image (contain) bien visible. */
		max-height: none;
	}

	/* Idée cadeau */
	.mfd-idee-carte__grid {
		grid-template-columns: 1fr;
	}

	/* Cartes cadeau */
	.mfd-carte-config__grid {
		grid-template-columns: 1fr;
	}

	/* Point de vente — stack, no forced equal height on mobile */
	.mfd-pdv-locator__grid {
		grid-template-columns: 1fr;
	}

	.mfd-pdv-list {
		height: auto;
		max-height: 360px;
	}

	.mfd-pdv-map {
		height: 300px;
		min-height: 300px;
	}

	.mfd-pdv-map__placeholder {
		height: 300px;
	}

	/* Collection intro */
	.mfd-collection-intro {
		grid-template-columns: 1fr;
	}

	/* Collections hub */
	.mfd-hub-catalogue .mfd-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================================
 * 19. RESPONSIVE — 640px
 * ============================================================ */
@media (max-width: 640px) {

	/* Collections Hub tiles */
	.mfd-hub-tiles__row {
		grid-template-columns: 1fr;
	}

	.mfd-hub-catalogue .mfd-grid-4 {
		grid-template-columns: 1fr 1fr;
	}

	/* Occasion tabs → wrap naturally at 640px */
	.mfd-occasion-tabs {
		gap: 8px;
	}

	/* Forms → single col */
	.mfd-form-grid {
		grid-template-columns: 1fr;
	}

	/* Personaliser steps → wrap naturally */
	.mfd-perso-steps {
		gap: 8px;
	}

	/* PDV search stacks */
	.mfd-pdv-search__form {
		flex-direction: column;
	}

	.mfd-pdv-search__input {
		width: 100%;
	}

	/* Concept quote actions stack */
	.mfd-concept-quote__actions {
		flex-direction: column;
		align-items: center;
	}

	.mfd-perso-hero__actions {
		flex-direction: column;
		align-items: center;
	}

	/* Hangtag row stacks */
	.mfd-concept-savoirfaire__hangtag-row {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Budget filter buttons */
	.mfd-budget-filters {
		gap: 8px;
	}

	/* Ambassadeur benefits → 1 col */
	.mfd-ambass-benefits__grid {
		grid-template-columns: 1fr;
	}

	/* Collection intro */
	.mfd-collection-intro {
		grid-template-columns: 1fr;
	}
}

/* Ensure the submit wrapper div does not collapse */
.mfd-contact-form-wrap .mfd-field-group--full:last-child,
.mfd-ambass-form .mfd-ambass-form__submit {
	display: flex;
	justify-content: flex-start;
}

/* ============================================================
 * 20b. WPFORMS — MFD INTEGRATION
 *
 * Les pages /pro, /devenir-revendeur et /ambassadeur embarquent un
 * formulaire WPForms via [wpforms id="…"]. WPForms injecte ses propres
 * wrappers .wpforms-* ; ces règles les alignent sur le design MFD (champs
 * crème, bouton tan/or, Montserrat) — rendu identique au formulaire natif.
 * Portée : .mfd-ambass-form pour ne pas affecter d'autres formulaires.
 * ============================================================ */

/* Conteneur : retire les marges/largeurs par défaut de WPForms */
.mfd-ambass-form .wpforms-container,
.mfd-ambass-form .wpforms-container-full {
	margin: 0;
	padding: 0;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* En-tête du formulaire (titre/description WPForms) masqué : la page fournit
   déjà son propre <h2> de section. */
.mfd-ambass-form .wpforms-head-container,
.mfd-ambass-form .wpforms-title,
.mfd-ambass-form .wpforms-description {
	display: none;
}

/* Disposition en grille 2 colonnes comme le formulaire natif MFD */
.mfd-ambass-form .wpforms-form .wpforms-field-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

/* Chaque champ = bloc colonne ; remise à zéro des paddings WPForms */
.mfd-ambass-form .wpforms-field {
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Champs pleine largeur : textarea, secteur (select) et bouton */
.mfd-ambass-form .wpforms-field-textarea,
.mfd-ambass-form .wpforms-field-select {
	grid-column: 1 / -1;
}

/* Labels — eyebrow MFD */
.mfd-ambass-form .wpforms-field-label {
	font-family: var(--mfd-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mfd-ink);
	margin: 0;
}

.mfd-ambass-form .wpforms-required-label {
	color: var(--mfd-tan);
}

/* Sous-labels (prénom/nom du champ Name) côte à côte */
.mfd-ambass-form .wpforms-field-row {
	display: flex;
	gap: 12px;
}

.mfd-ambass-form .wpforms-field-row .wpforms-field-row-block {
	flex: 1;
}

.mfd-ambass-form .wpforms-field-sublabel {
	font-family: var(--mfd-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--mfd-muted);
	margin-top: 4px;
}

/* Contrôles (input/textarea/select) — identiques aux .mfd-input/.mfd-field MFD */
.mfd-ambass-form .wpforms-field input[type="text"],
.mfd-ambass-form .wpforms-field input[type="email"],
.mfd-ambass-form .wpforms-field input[type="tel"],
.mfd-ambass-form .wpforms-field input[type="url"],
.mfd-ambass-form .wpforms-field input[type="number"],
.mfd-ambass-form .wpforms-field textarea,
.mfd-ambass-form .wpforms-field select {
	width: 100%;
	padding: 12px 14px;
	font-family: var(--mfd-font-body);
	font-size: 14px;
	color: var(--mfd-ink);
	background: var(--mfd-white);
	border: 1px solid var(--mfd-line);
	border-radius: 0;
	box-shadow: none;
}

.mfd-ambass-form .wpforms-field textarea {
	min-height: 130px;
	resize: vertical;
}

.mfd-ambass-form .wpforms-field input:focus,
.mfd-ambass-form .wpforms-field textarea:focus,
.mfd-ambass-form .wpforms-field select:focus {
	outline: none;
	border-color: var(--mfd-tan);
	box-shadow: none;
}

.mfd-ambass-form .wpforms-field input::placeholder,
.mfd-ambass-form .wpforms-field textarea::placeholder {
	font-style: italic;
	color: var(--mfd-muted);
}

/* Bouton d'envoi — mfd-btn--primary (tan/or, Montserrat majuscules) */
.mfd-ambass-form .wpforms-submit-container {
	grid-column: 1 / -1;
	margin-top: 4px;
}

.mfd-ambass-form .wpforms-submit,
.mfd-ambass-form button.wpforms-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	padding: 14px 28px;
	border: 1.5px solid transparent;
	border-radius: 0;
	background: var(--mfd-tan);
	color: var(--mfd-white);
	cursor: pointer;
	transition: background var(--mfd-transition), color var(--mfd-transition);
}

.mfd-ambass-form .wpforms-submit:hover,
.mfd-ambass-form button.wpforms-submit:hover {
	background: var(--mfd-tan-dark);
	color: var(--mfd-white);
}

/* Messages d'erreur de validation */
.mfd-ambass-form .wpforms-error,
.mfd-ambass-form label.wpforms-error {
	font-family: var(--mfd-font-body);
	font-size: 12px;
	font-weight: 600;
	color: #c0392b;
	letter-spacing: 0.02em;
	margin-top: 4px;
}

.mfd-ambass-form .wpforms-field input.wpforms-error,
.mfd-ambass-form .wpforms-field textarea.wpforms-error,
.mfd-ambass-form .wpforms-field select.wpforms-error {
	border-color: #c0392b;
}

/* Bandeau de confirmation (succès) */
.mfd-ambass-form .wpforms-confirmation-container-full {
	margin: 0;
	padding: 14px 20px;
	font-family: var(--mfd-font-body);
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-left: 3px solid var(--mfd-tan);
	background: var(--mfd-cream-soft);
	color: var(--mfd-ink);
	border-radius: 0;
}

/* Responsive : une seule colonne sous 640px */
@media (max-width: 640px) {

	.mfd-ambass-form .wpforms-form .wpforms-field-container {
		grid-template-columns: 1fr;
	}

	.mfd-ambass-form .wpforms-field-row {
		flex-direction: column;
		gap: 6px;
	}
}

/* ============================================================
 * Recharges page (tpl-recharges.php)
 * ============================================================ */

.mfd-collection-eyebrow {
	font-size: clamp(14px, 2vw, 18px);
	color: var(--mfd-muted);
	text-align: center;
	padding-block: clamp(16px, 2vw, 24px);
}

/* ── Bannière intro Recharges : photo (gauche) + panneau texte (droite),
 *    pleine largeur, hauteur alignée sur les héros (.mfd-ambass-hero). ── */
.mfd-recharges-banner {
	display: grid;
	grid-template-columns: 0.82fr 1.18fr; /* Panneau texte agrandi → photo plus étroite, bracelet mieux cadré. */
	min-height: clamp(240px, 26vw, 340px); /* Même hauteur que la bannière catalogue (page bracelet). */
	align-items: stretch;
}

.mfd-recharges-banner__photo {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mfd-cream); /* Mat crème derrière l'image entière (contain). */
}

.mfd-recharges-banner__photo img {
	position: absolute; /* remplit la cellule ; `contain` montre l'image ENTIÈRE, centrée. */
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain; /* Afficher la photo recharges en entier (plus de recadrage). */
	object-position: center;
	display: block;
}

.mfd-recharges-banner__label {
	position: absolute;
	bottom: 24px;
	left: 24px;
	font-family: var(--mfd-font-body);
	font-size: clamp(28px, 5vw, 52px);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--mfd-white);
	text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.mfd-recharges-banner__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(20px, 2.6vw, 40px) clamp(28px, 4vw, 56px);
	background: var(--mfd-cream);
}

.mfd-recharges-banner__panel p {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.75;
	margin: 0;
}

.mfd-recharges-banner__panel .mfd-btn {
	align-self: flex-start;
	margin-top: 8px;
}

/* Pas de barre dorée (fuite .mfd-page-content h2) sous les
 * titres de section de la page Recharges. */
.mfd-recharges .mfd-section-title {
	border-bottom: none;
	padding-bottom: 0;
}

@media (max-width: 768px) {
	.mfd-recharges-banner {
		grid-template-columns: 1fr;
	}
	.mfd-recharges-banner__photo {
		height: 340px; /* Héros recharges plus HAUT sur mobile → image (contain) bien visible. */
		min-height: 0;
	}
}

/* ============================================================
 * 18b. EDITORIAL INFO PAGES — shared components
 *      Used by: tpl-livraison-retours, tpl-guide-tailles, tpl-garantie
 * ============================================================ */

/* Narrow prose block */
.mfd-info-prose {
	max-width: 840px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mfd-info-prose h2 {
	font-family: var(--mfd-font-body);
	font-weight: 800;
	font-style: italic;
	font-size: clamp(18px, 2.5vw, 26px);
	letter-spacing: -0.01em;
	text-transform: uppercase; /* Titres de section (prose) en majuscules. */
	margin: 2em 0 0.6em;
	padding-bottom: 0.25em;
	border-bottom: 2px solid var(--mfd-tan);
}

.mfd-info-prose h2:first-child {
	margin-top: 0;
}

.mfd-info-prose h3 {
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(15px, 1.8vw, 20px);
	letter-spacing: -0.01em;
	margin: 1.6em 0 0.5em;
}

.mfd-info-prose p.mfd-serif,
.mfd-info-prose p {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.8;
	font-family: var(--mfd-font-serif);
	margin-top: 12px;
}

.mfd-info-prose p:first-of-type {
	margin-top: 0;
}

/* Prose list — also applies to plain <ul> typed inside .mfd-info-prose. */
.mfd-info-list,
.mfd-info-prose ul {
	font-family: var(--mfd-font-serif);
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.8;
	padding-left: 22px;
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Pull quote */
.mfd-info-quote {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.mfd-info-quote__text {
	font-family: var(--mfd-font-serif);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(22px, 3.5vw, 36px);
	line-height: 1.4;
	border: none;
	margin: 0;
	padding: 0;
}

.mfd-info-quote__attr {
	letter-spacing: 0.18em;
	color: var(--mfd-tan);
	font-size: 11px;
}

/* CTA block — centered call to action */
.mfd-info-cta {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.mfd-info-cta__heading {
	font-size: clamp(24px, 4vw, 40px);
}

.mfd-info-cta__intro {
	font-size: clamp(14px, 1.3vw, 17px);
	line-height: 1.7;
	max-width: 580px;
}

.mfd-info-cta__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ============================================================
 * 18c. NOTRE HISTOIRE — timeline milestones
 * ============================================================ */
.mfd-milestones {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 840px;
	margin-inline: auto;
}

.mfd-milestone {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: clamp(20px, 3vw, 40px);
	padding: clamp(24px, 3vw, 36px) 0;
	border-bottom: 1px solid var(--mfd-line);
	align-items: start;
}

.mfd-milestone:first-child {
	border-top: 1px solid var(--mfd-line);
}

.mfd-milestone__year {
	font-family: var(--mfd-font-body);
	font-weight: 800;
	font-style: italic;
	font-size: clamp(20px, 2.5vw, 28px);
	color: var(--mfd-tan);
	padding-top: 4px;
}

.mfd-milestone__title {
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-size: clamp(14px, 1.4vw, 17px);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.mfd-milestone__body p.mfd-serif {
	font-size: clamp(14px, 1.2vw, 15px);
	line-height: 1.75;
	color: var(--mfd-muted);
	margin-top: 0;
}

/* ============================================================
 * 18d. NOS ENGAGEMENTS / LIVRAISON / GARANTIE — pillar grid
 * ============================================================ */
.mfd-engage-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(28px, 4vw, 48px);
}

.mfd-engage-pillar {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mfd-engage-pillar__icon {
	color: var(--mfd-tan);
	flex-shrink: 0;
}

.mfd-engage-pillar__title {
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-size: clamp(14px, 1.3vw, 16px);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mfd-engage-pillar p.mfd-serif {
	font-size: clamp(13px, 1.1vw, 15px);
	line-height: 1.75;
	color: var(--mfd-muted);
}

/* ============================================================
 * 18e. MADE IN FRANCE — atelier 2-col
 * ============================================================ */
.mfd-mif-atelier__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.mfd-mif-atelier__visual {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.mfd-mif-hangtag {
	flex-shrink: 0;
}

.mfd-mif-atelier__heading {
	font-size: clamp(24px, 3.5vw, 44px);
	line-height: 1.05;
}

.mfd-mif-atelier__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mfd-mif-atelier__subheading {
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(16px, 1.8vw, 22px);
	padding-bottom: 10px;
	border-bottom: 2px solid var(--mfd-tan);
}

.mfd-mif-atelier__content p.mfd-serif {
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.75;
}

/* ============================================================
 * 18f. GUIDE DES TAILLES — sizing cards
 * ============================================================ */
.mfd-guide-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 48px);
}

.mfd-guide-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(24px, 3vw, 36px);
	background: var(--mfd-white);
	border: 1px solid var(--mfd-line);
}

.mfd-guide-card__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mfd-guide-card__title {
	font-size: clamp(18px, 2vw, 26px);
}

.mfd-guide-table {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--mfd-line);
}

.mfd-guide-table__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 12px 16px;
	border-bottom: 1px solid var(--mfd-line);
	font-size: 14px;
	font-family: var(--mfd-font-serif);
	line-height: 1.5;
}

.mfd-guide-table__row:last-child {
	border-bottom: none;
}

.mfd-guide-table__row--head {
	background: var(--mfd-cream);
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ============================================================
 * 18g. RESPONSIVE — 960px
 * ============================================================ */
@media (max-width: 960px) {
	.mfd-engage-pillars {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.mfd-mif-atelier__grid {
		grid-template-columns: 1fr;
	}

	.mfd-guide-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.mfd-milestone {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.mfd-milestone__year {
		font-size: 18px;
	}

	.mfd-guide-table__row {
		grid-template-columns: 1.4fr 1fr;
		padding: 10px 12px;
		font-size: 13px;
	}
}

/* ── Full-bleed section utility
	Use .mfd-section--full-bleed on sections whose child image must span 100vw.
	The .mfd-container inside is still applied for text, but images escape it.
	Also: concept artisanal image sections must not be constrained to mfd-container. */
.mfd-section--full-bleed {
	overflow: hidden;
}

.mfd-section--full-bleed > .mfd-container,
.mfd-section--full-bleed > .mfd-container--wide {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.mfd-section--full-bleed img {
	width: 100%;
	display: block;
	object-fit: cover;
}

/* ============================================================
 * PAGE « MODE D'EMPLOI » (tpl-how-to.php)
 * Hero crème + intro + étapes illustrées (GIF) + FAQ.
 * ============================================================ */
.mfd-howto-hero {
	text-align: center;
}

.mfd-howto-hero__title {
	margin: 8px 0 0;
}

.mfd-howto-intro {
	text-align: center;
}

.mfd-howto-intro .mfd-serif {
	margin: 0 0 16px;
	font-size: clamp(15px, 1.7vw, 17px);
	line-height: 1.7;
}

/* Vidéo en haut de page, à droite du texte (2 colonnes). */
.mfd-howto-intro--has-video {
	text-align: left;
}

.mfd-howto-intro--has-video .mfd-howto-intro__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

.mfd-howto-intro--has-video .mfd-howto-intro__video {
	min-width: 0;
}

/* En 2 colonnes les piliers (« Le sujet » / « Le lien ») restent à gauche. */
.mfd-howto-intro--has-video .mfd-howto-parts {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

@media (max-width: 860px) {
	/* Mobile / tablette étroite : la vidéo passe sous le texte. */
	.mfd-howto-intro--has-video .mfd-howto-intro__inner {
		grid-template-columns: 1fr;
	}

	.mfd-howto-intro--has-video {
		text-align: center;
	}

	.mfd-howto-intro--has-video .mfd-howto-parts {
		margin-inline: auto;
		max-width: 720px;
	}
}

.mfd-howto-parts {
	list-style: none;
	margin: clamp(28px, 4vw, 44px) auto 0;
	padding: 0;
	max-width: 720px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(16px, 2.4vw, 28px);
}

.mfd-howto-part {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: clamp(22px, 3vw, 32px) clamp(16px, 2vw, 24px);
	background: var(--mfd-cream);
	border: 1px solid var(--mfd-border);
	border-radius: 8px;
}

.mfd-howto-part__icon {
	display: inline-flex;
	color: var(--mfd-tan);
}

.mfd-howto-part__icon svg {
	width: 40px;
	height: 40px;
}

.mfd-howto-part__label {
	margin: 0;
	font-family: var(--mfd-font-body);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mfd-ink);
}

.mfd-howto-part__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--mfd-muted);
}

@media (max-width: 540px) {
	.mfd-howto-parts {
		grid-template-columns: 1fr;
		max-width: 360px;
	}
}

/* Étapes illustrées */
.mfd-howto-steps__title {
	text-align: center;
	margin: 0 0 clamp(28px, 4vw, 44px);
	font-size: clamp(20px, 2.6vw, 28px);
}

.mfd-howto-steps__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	/* 3 éléments par ligne — constant sur desktop/tablette.
	   Pas de max-width : les 3 GIF occupent toute la largeur du conteneur. */
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(22px, 3vw, 40px);
}

.mfd-howto-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mfd-howto-step__media {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
}

.mfd-howto-step__gif {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mfd-howto-step__number {
	margin: 18px 0 8px;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1;
}

.mfd-howto-step__text {
	margin: 0 auto;
	max-width: 38ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mfd-ink);
}

@media (max-width: 900px) {
	.mfd-howto-steps__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.mfd-howto-steps__grid {
		grid-template-columns: 1fr;
		max-width: 340px;
		margin: 0 auto;
	}
}

/* ============================================================
 * EN-TÊTES DE PAGE UNIFORMISÉS
 * Toutes les pages de contenu avec un en-tête crème ont la même
 * hauteur (240px), contenu centré verticalement. Exclusions :
 *   - Accueil (mfd-hero-carousel — carrousel, classe différente).
 *   - Devenir ambassadeur (mfd-ambass-hero — hero split noir).
 * ============================================================ */
.mfd-page-hero.mfd-section--cream,
.mfd-page-eyebrow.mfd-section--cream,
.mfd-concept-hero.mfd-section--cream,
.mfd-ccm-hero.mfd-section--cream,
.mfd-contact-hero.mfd-section--cream,
.mfd-howto-hero.mfd-section--cream,
.mfd-hub-title.mfd-section--cream,
.mfd-pdv-hero.mfd-section--cream,
.mfd-perso-hero.mfd-section--cream,
.mfd-idee-hero.mfd-section--cream {
	min-height: 160px;
	display: flex;
	align-items: center;
	padding-top: 0;
	padding-bottom: 0;
}

/* Le conteneur interne occupe toute la largeur (le flex parent gère le centrage vertical). */
.mfd-page-hero.mfd-section--cream > .mfd-container,
.mfd-page-eyebrow.mfd-section--cream > .mfd-container,
.mfd-concept-hero.mfd-section--cream > .mfd-container,
.mfd-ccm-hero.mfd-section--cream > .mfd-container,
.mfd-contact-hero.mfd-section--cream > .mfd-container,
.mfd-howto-hero.mfd-section--cream > .mfd-container,
.mfd-hub-title.mfd-section--cream > .mfd-container,
.mfd-pdv-hero.mfd-section--cream > .mfd-container,
.mfd-perso-hero.mfd-section--cream > .mfd-container,
.mfd-idee-hero.mfd-section--cream > .mfd-container {
	width: 100%;
}

/* Les titres « display » (Concept, Comment ça marche) sont bornés pour tenir
   dans l'en-tête uniforme de 240px sans le faire déborder. */
.mfd-concept-hero.mfd-section--cream .mfd-concept-hero__title,
.mfd-ccm-hero.mfd-section--cream .mfd-ccm-hero__title {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.05;
}

/* P1 (client) : Concept artisanal — titre d'en-tête réduit, sans toucher
   à la page « Comment ça marche » qui garde la taille ci-dessus. */
.mfd-concept-hero.mfd-section--cream .mfd-concept-hero__title {
	font-size: clamp(28px, 4vw, 40px);
}

.mfd-concept-hero.mfd-section--cream .mfd-concept-hero__inner,
.mfd-ccm-hero.mfd-section--cream .mfd-ccm-hero__inner {
	padding-block: 0;
}

/* En-têtes de page (CGV, mentions légales, cookies, etc.) en
   PLEINE LARGEUR, comme les autres pages — uniformisation. Certains sont posés
   dans un conteneur Elementor « boxed » (max 1140px) → le bandeau crème ne
   touchait pas les bords. On force un fond pleine largeur (breakout 100vw) ; le
   contenu reste centré via .mfd-container/__inner. Limité aux pages Elementor
   (où `.mfd-page-content--elementor` a `overflow-x: clip` → pas de scroll
   horizontal). No-op quand l'en-tête est déjà dans un conteneur pleine largeur. */
.mfd-page-content--elementor .mfd-page-hero.mfd-section--cream,
.mfd-page-content--elementor .mfd-page-eyebrow.mfd-section--cream,
.mfd-page-content--elementor .mfd-concept-hero.mfd-section--cream,
.mfd-page-content--elementor .mfd-ccm-hero.mfd-section--cream,
.mfd-page-content--elementor .mfd-contact-hero.mfd-section--cream,
.mfd-page-content--elementor .mfd-howto-hero.mfd-section--cream,
.mfd-page-content--elementor .mfd-hub-title.mfd-section--cream,
.mfd-page-content--elementor .mfd-pdv-hero.mfd-section--cream,
.mfd-page-content--elementor .mfd-perso-hero.mfd-section--cream,
.mfd-page-content--elementor .mfd-idee-hero.mfd-section--cream {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* …et l'en-tête doit être COLLÉ au menu (pas de barre blanche au-dessus) comme
   les autres pages : le conteneur Elementor « boxed » a un padding-top (≈10px)
   au-dessus du bandeau, qui est le 1er bloc de la page. On l'annule quand le
   conteneur renferme un en-tête de page crème. */
.mfd-page-content--elementor .e-con:has(.mfd-page-hero.mfd-section--cream),
.mfd-page-content--elementor .e-con:has(.mfd-page-eyebrow.mfd-section--cream),
.mfd-page-content--elementor .e-con-inner:has(.mfd-page-hero.mfd-section--cream),
.mfd-page-content--elementor .e-con-inner:has(.mfd-page-eyebrow.mfd-section--cream) {
	padding-top: 0 !important;
}

/* ============================================================
 * EN-TÊTES DE PAGE UNIFORMES.
 * Toutes les pages partagent le MÊME en-tête (police, couleur, position, taille).
 * Approche « intelligente » selon la présence d'une image :
 *   - SANS image (ci-dessous) : eyebrow doré + grand titre Montserrat italique
 *     MAJUSCULES, centrés, sur fond crème (concept, engagements, how-to, hub
 *     collections, points de vente, idée cadeau, contact…).
 *   - AVEC image : le titre s'affiche SUR la photo (mfd-ambass-hero--catalog,
 *     bannières collection/catégorie) — voir plus haut.
 * ============================================================ */

/* TITRE d'en-tête unifié (variante sans image). */
.mfd-page-hero.mfd-section--cream .mfd-page-title,
.mfd-page-eyebrow.mfd-section--cream .mfd-page-title,
.mfd-concept-hero.mfd-section--cream .mfd-concept-hero__title,
.mfd-ccm-hero.mfd-section--cream .mfd-ccm-hero__title,
.mfd-contact-hero.mfd-section--cream .mfd-page-title,
.mfd-contact-hero.mfd-section--cream .mfd-contact-hero__title,
.mfd-howto-hero.mfd-section--cream .mfd-howto-hero__title,
.mfd-hub-title.mfd-section--cream .mfd-hub-title__collection,
.mfd-pdv-hero.mfd-section--cream .mfd-page-title,
.mfd-perso-hero.mfd-section--cream .mfd-page-title,
.mfd-idee-hero.mfd-section--cream .mfd-page-title {
	font-family: var(--mfd-font-body); /* Montserrat */
	font-style: italic;
	font-weight: 800;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-align: center;
	color: var(--mfd-ink);
	margin: 0;
}

/* EYEBROW d'en-tête unifié (doré, majuscules, espacé, centré) — y compris le
   « La collection » du hub (mfd-hub-title__la) qui était en serif italique. */
.mfd-page-hero.mfd-section--cream .mfd-eyebrow,
.mfd-page-eyebrow.mfd-section--cream .mfd-eyebrow,
.mfd-concept-hero.mfd-section--cream .mfd-eyebrow,
.mfd-ccm-hero.mfd-section--cream .mfd-eyebrow,
.mfd-contact-hero.mfd-section--cream .mfd-eyebrow,
.mfd-howto-hero.mfd-section--cream .mfd-eyebrow,
.mfd-hub-title.mfd-section--cream .mfd-hub-title__la,
.mfd-pdv-hero.mfd-section--cream .mfd-eyebrow,
.mfd-perso-hero.mfd-section--cream .mfd-eyebrow,
.mfd-idee-hero.mfd-section--cream .mfd-eyebrow {
	font-family: var(--mfd-font-body); /* Montserrat */
	font-style: normal;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: center;
	color: var(--mfd-tan);
	margin: 0 0 10px;
}

/* -------------------------------------------------------------------------
 * Bannière de statut de formulaire (compte professionnel / revendeur)
 * Lue depuis le paramètre d'URL posé par la redirection serveur.
 * --------------------------------------------------------------------- */
.mfd-form-status {
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	text-align: center;
}

.mfd-form-status p {
	margin: 0;
}

.mfd-form-status p + p {
	margin-top: 0.5rem;
}

.mfd-form-status--ok {
	border-color: var(--mfd-tan-dark);
}

.mfd-form-status--ok .mfd-italic {
	color: var(--mfd-tan-dark);
}

.mfd-form-status--err {
	border-color: #b3261e;
	color: #b3261e;
}

/* ── SEARCH RESULTS ───────────────────────────────────────────
 * search.php: products are rendered in the standard MFD product
 * grid (ul.products .mfd-grid-4 — styled by design-system.css +
 * woocommerce.css). These rules cover the page chrome, the
 * non-product results list, and the empty state.
 * ---------------------------------------------------------------- */
.mfd-search-head {
	text-align: center;
}

.mfd-search-head .mfd-page-title {
	margin: 0 0 0.5rem;
}

.mfd-search-results__heading {
	margin: 0 0 1.5rem;
}

.mfd-search-results + .mfd-search-results {
	padding-top: 0;
}

/* Non-product results — pages, articles, etc. */
.mfd-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.mfd-search-list__item {
	margin: 0;
	padding: 0;
	border-bottom: var(--mfd-border);
	padding-bottom: 1.25rem;
}

.mfd-search-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.mfd-search-list__link {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
}

.mfd-search-list__thumb {
	flex: 0 0 96px;
}

.mfd-search-list__thumb img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: var(--mfd-frame);
}

.mfd-search-list__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mfd-search-list__type {
	color: var(--mfd-tan-dark);
}

.mfd-search-list__title {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	color: var(--mfd-ink);
	line-height: 1.2;
	transition: color 0.2s ease;
}

.mfd-search-list__link:hover .mfd-search-list__title {
	color: var(--mfd-tan-dark);
}

.mfd-search-list__excerpt {
	color: var(--mfd-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Empty state */
.mfd-search-empty {
	text-align: center;
	max-width: 32rem;
	margin: 0 auto;
}

.mfd-search-empty p {
	font-size: 1.2rem;
	margin: 0 0 1.5rem;
	color: var(--mfd-muted);
}

@media (max-width: 600px) {
	.mfd-search-list__thumb {
		flex-basis: 72px;
	}

	.mfd-search-list__thumb img {
		width: 72px;
		height: 72px;
	}
}

/* ============================================================
 * Formulaire Elementor (widget Form d'Elementor Pro) — habillage MFD.
 * Les pages contact / devenir-revendeur / pro utilisent leur VRAI formulaire
 * de soumission Elementor ; on l'aligne au design MFD (champs crème, bouton tan,
 * Montserrat) sans toucher au plugin.
 * ============================================================ */
.elementor-widget-form .elementor-field-group > label,
.elementor-widget-form .elementor-field-subgroup label {
	font-family: var(--mfd-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mfd-ink);
}
.elementor-widget-form .elementor-field-textual,
.elementor-widget-form input[type="text"],
.elementor-widget-form input[type="email"],
.elementor-widget-form input[type="tel"],
.elementor-widget-form input[type="url"],
.elementor-widget-form input[type="number"],
.elementor-widget-form select,
.elementor-widget-form textarea {
	font-family: var(--mfd-font-body);
	font-size: 14px;
	color: var(--mfd-ink);
	background: var(--mfd-white, #fff);
	border: 1px solid var(--mfd-line);
	border-radius: 2px;
	padding: 12px 14px;
}
.elementor-widget-form .elementor-field-textual:focus,
.elementor-widget-form textarea:focus,
.elementor-widget-form select:focus {
	border-color: var(--mfd-tan);
	outline: none;
	box-shadow: 0 0 0 2px rgba( 129, 90, 37, 0.25 );
}
.elementor-widget-form .elementor-button,
.elementor-widget-form button[type="submit"] {
	font-family: var(--mfd-font-body);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 12px;
	background-color: var(--mfd-tan);
	color: var(--mfd-white);
	border: none;
	border-radius: 2px;
	padding: 14px 28px;
	transition: background-color .15s ease;
}
.elementor-widget-form .elementor-button:hover,
.elementor-widget-form button[type="submit"]:hover {
	background-color: var(--mfd-tan-dark, #6B4B1F);
	color: var(--mfd-white, #fff);
}
