/*
 * MFD — Header & Footer styles
 *
 * Covers: top strip, cream header, primary nav, mobile drawer, values marquee,
 * footer columns, legal strip, search form, inline search bar, admin-bar offset.
 * Uses CSS custom properties from design-system.css (never edits that file).
 */

/* ============================================================
 * 1. ADMIN BAR OFFSET
 * ============================================================ */

/*
 * When the WP admin bar is visible the sticky header must not overlap it.
 * WordPress behaviour (source: wp-includes/css/admin-bar) :
 *   • ≥783px  : barre 32px, position: fixed  → offset sticky de 32px.
 *   • 601–782 : barre 46px, position: ABSOLUTE (elle défile avec la page) →
 *               le header sticky doit revenir à top:0, sinon un trou apparaît
 *               en scroll.
 *   • ≤600px  : barre 46px, position: fixed  → offset sticky de 46px.
 */
.admin-bar .mfd-header {
	top: 32px;
}

/* Bande 601–782px : la barre d'admin défile → pas d'offset sticky. */
@media screen and (min-width: 601px) and (max-width: 782px) {
	.admin-bar .mfd-header {
		top: 0;
	}
}

/* ≤600px : la barre d'admin (46px) redevient fixe → offset de 46px. */
@media screen and (max-width: 600px) {
	.admin-bar .mfd-header {
		top: 46px;
	}
}

/* ============================================================
 * 2. TOP STRIP
 * ============================================================ */

.mfd-top-strip {
	background: var(--mfd-tan);
	color: var(--mfd-white);
	padding: 10px var(--mfd-gutter);
}

.mfd-top-strip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-inline: auto;
}

/* Social icons row */
.mfd-top-strip__social {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.mfd-top-strip__social-link {
	display: flex;
	align-items: center;
	opacity: 0.9;
	transition: opacity var(--mfd-transition);
}

.mfd-top-strip__social-link:hover {
	opacity: 1;
}

.mfd-top-strip__social-icon {
	height: 20px; /* Barre des pictos sociaux réduite */
	width: auto;
	display: block;
}

/* Delivery message */
.mfd-top-strip__message {
	font-family: var(--mfd-font-serif);
	font-size: 13px;
	color: var(--mfd-white);
	text-align: center;
	flex: 1;
	white-space: nowrap;
}

.mfd-top-strip__message strong {
	font-weight: 700;
}

/* Lien « Contactez-nous » : couleur distincte du texte pour signaler le
   cliquable — encre sur bande tan, souligné. */
.mfd-top-strip__contact-link,
.mfd-top-strip__message a {
	color: var(--mfd-ink);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mfd-top-strip__contact-link:hover,
.mfd-top-strip__message a:hover {
	color: var(--mfd-ink);
	opacity: 0.75;
}

/* "Buy from USA" link — right-side strip item, consistent with contact-link */
.mfd-top-strip__usa {
	color: var(--mfd-white);
	font-family: var(--mfd-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	opacity: 0.9;
}

.mfd-top-strip__usa:hover {
	color: var(--mfd-white);
	opacity: 1;
	text-decoration: underline;
}

/* ============================================================
 * 3. LANGUAGE SELECTOR
 * ============================================================ */

.mfd-lang-selector {
	position: relative;
	flex-shrink: 0;
}

.mfd-lang-selector__btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 4px;
	color: var(--mfd-white);
	font-family: var(--mfd-font-body);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--mfd-transition);
}

.mfd-lang-selector__btn:hover {
	background: rgba(0, 0, 0, 0.15);
}

.mfd-lang-selector__flag {
	height: 20px;
	width: auto;
	display: block;
}

.mfd-lang-selector__code {
	letter-spacing: 0.05em;
}

.mfd-lang-selector__caret {
	transition: transform var(--mfd-transition);
}

/* Dropdown */
.mfd-lang-selector__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 160px;
	background: var(--mfd-white);
	box-shadow: var(--mfd-shadow-pop);
	z-index: var(--mfd-z-drawer);
	padding: 6px 0;
	list-style: none;
	margin: 0;
	/* Hidden by default — shown when btn aria-expanded="true" */
	display: none;
}

/* JS sets data-mfd-lang-dropdown as open */
.mfd-lang-selector[data-mfd-open] .mfd-lang-selector__dropdown {
	display: block;
}

.mfd-lang-selector[data-mfd-open] .mfd-lang-selector__btn {
	background: rgba(0, 0, 0, 0.2);
}

.mfd-lang-selector[data-mfd-open] .mfd-lang-selector__caret {
	transform: rotate(180deg);
}

.mfd-lang-selector__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	font-size: 13px;
	color: var(--mfd-ink);
	transition: background var(--mfd-transition);
	white-space: nowrap;
}

.mfd-lang-selector__option:hover,
.mfd-lang-selector__option.is-active {
	background: var(--mfd-cream-soft);
}

.mfd-lang-selector__option.is-active {
	font-weight: 600;
}

/* ============================================================
 * 4. HEADER (cream bar + sticky)
 * ============================================================ */

.mfd-header {
	background: var(--mfd-cream);
	position: sticky;
	top: 0;
	z-index: var(--mfd-z-header);
	box-shadow: var(--mfd-shadow-header);
	width: 100%;
}

/* Cream row */
.mfd-header__cream {
	position: relative;
}

.mfd-header__inner {
	/* Logo à gauche + nav inline à côté → flex (fin de la grille 3 colonnes). */
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 32px);
	padding: 0 var(--mfd-gutter); /* Plus de padding vertical sur l'inner. */
	margin-inline: auto;
}

/* Left zone */
.mfd-header__left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.mfd-hamburger {
	display: none; /* shown at ≤960px */
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--mfd-ink);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.mfd-hamburger:focus-visible {
	outline: 2px solid var(--mfd-tan);
	outline-offset: 2px;
}

/* Le logo empilé remplace wordmark central, picto Made in France et
   médaillon « Diamant naturel certifié ». */
.mfd-header__home-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.mfd-header__stacked-logo {
	height: 96px;
	width: auto;
	object-fit: contain;
	display: block;
}

/* Right zone */
.mfd-header__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	/* ≤960px la nav est masquée : l'auto-margin garde les actions collées à droite. */
	margin-left: auto;
	flex-shrink: 0;
}

.mfd-header__action {
	display: flex;
	align-items: center;
	position: relative;
	text-decoration: none;
	color: var(--mfd-ink);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: opacity var(--mfd-transition);
}

.mfd-header__action:hover {
	opacity: 0.7;
}

.mfd-header__action:focus-visible {
	outline: 2px solid var(--mfd-tan);
	outline-offset: 2px;
}

.mfd-header__action-icon {
	display: block;
}

.mfd-header__action--search .mfd-header__action-icon {
	width: 26px;
	height: 26px;
}

.mfd-header__action--account .mfd-header__action-icon {
	width: 24px;
	height: 26px;
}

.mfd-header__action--cart .mfd-header__action-icon {
	width: 26px;
	height: 26px;
}

/* Cart badge — hidden by default; shown only when cart count > 0 via .is-visible (H-02). */
.mfd-cart-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	min-height: 18px;
	padding: 0 4px;
	border-radius: 50%;
	background: var(--mfd-tan);
	color: var(--mfd-white);
	font-family: var(--mfd-font-body);
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	display: none;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.mfd-cart-badge.is-visible {
	display: flex;
}

/* Inline search bar (shown/hidden by main.js) */
.mfd-header__search-bar {
	background: var(--mfd-cream);
	padding: 0;
	max-height: 0;
	overflow: hidden;
	/* Repliée, la barre porte aria-hidden : `visibility` retire aussi le
	   champ et le bouton de fermeture de l'ordre de tabulation, sinon des
	   éléments focusables vivraient dans un sous-arbre masqué.
	   Le masquage est différé de la durée du repli pour que l'animation
	   reste visible ; à l'ouverture il est levé sans délai ni transition,
	   sans quoi le champ ne serait pas encore focusable au moment où le JS
	   lui donne le focus. */
	visibility: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s linear 0.3s;
}

.mfd-header__search-bar[data-mfd-open] {
	max-height: 100px;
	padding: 12px 0 16px;
	visibility: visible;
	transition: max-height 0.3s ease, padding 0.3s ease, visibility 0s linear 0s;
}

/* Sans animation, le délai de masquage n'a plus de raison d'être : on coupe
   toute transition pour que la visibilité bascule immédiatement. */
@media (prefers-reduced-motion: reduce) {
	.mfd-header__search-bar,
	.mfd-header__search-bar[data-mfd-open] {
		transition-property: none;
	}
}

.mfd-header__search-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-inline: auto;
}

.mfd-header__search-close {
	flex-shrink: 0;
	color: var(--mfd-ink);
	cursor: pointer;
	background: none;
	border: 0;
	padding: 4px;
	transition: opacity var(--mfd-transition);
}

.mfd-header__search-close:hover {
	opacity: 0.6;
}

/* ============================================================
 * 5. PRIMARY NAVIGATION
 * ============================================================ */

/* La nav vit dans la rangée crème, à côté du logo — plus de barre séparée
   (fond/bordure supprimés), items alignés à gauche. */
.mfd-nav {
	flex: 1;
	min-width: 0;
}

.mfd-nav__list {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap; /* Garde-fou : repli propre plutôt que débordement aux largeurs serrées. */
	gap: clamp(10px, 1.2vw, 20px);
	padding: 0;
	margin: 0;
	list-style: none;
}

.mfd-nav__item {
	position: relative;
}

.mfd-nav__link,
.mfd-nav__list > li > a {
	display: block;
	font-family: var(--mfd-font-serif);
	font-size: 15px; /* Sommaire (menu) réduit un peu (17 → 15 px). */
	font-weight: 400;
	color: var(--mfd-ink);
	text-decoration: none;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: border-color var(--mfd-transition), color var(--mfd-transition);
	white-space: nowrap;
}

/* Entre 961px (fin du hamburger) et ~1314px, la nav 17px
   débordait (items rognés, +122px à 1024px). Paliers intermédiaires : la barre
   tient sur une ligne à toutes les largeurs sans toucher au rendu >=1340px. */
@media (max-width: 1340px) {
	.mfd-nav__link,
	.mfd-nav__list > li > a {
		font-size: 14px;
	}

	.mfd-nav__list {
		gap: clamp(14px, 1.8vw, 28px);
	}
}

@media (max-width: 1140px) {
	.mfd-nav__link,
	.mfd-nav__list > li > a {
		font-size: 13px;
	}

	.mfd-nav__list {
		gap: clamp(10px, 1.4vw, 18px);
	}
}

.mfd-nav__link:hover,
.mfd-nav__list > li > a:hover,
.mfd-nav__list > li.current-menu-item > a,
.mfd-nav__list > li.current_page_item > a,
.mfd-nav__link.is-active {
	border-bottom-color: var(--mfd-tan);
	color: var(--mfd-ink);
}

/* ============================================================
 * 6. MOBILE DRAWER
 * ============================================================ */

.mfd-drawer-scrim {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: calc(var(--mfd-z-drawer) - 1);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.mfd-drawer-scrim.is-open {
	opacity: 1;
	pointer-events: auto;
}

.mfd-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 85%;
	max-width: 360px;
	background: var(--mfd-cream);
	z-index: var(--mfd-z-drawer);
	padding: 28px;
	overflow-y: auto;
	transform: translateX(-100%);
	/* `visibility` retire le panneau fermé de l'ordre de tabulation et de
	   l'arbre d'accessibilité (le hors-écran seul le laisserait focusable
	   sur toutes les pages, desktop compris). Le masquage est différé de
	   la durée du glissement pour que la sortie reste visible ; à
	   l'ouverture il est levé sans délai ni transition, sans quoi le
	   contenu ne serait pas encore focusable. */
	visibility: hidden;
	transition: transform 0.3s ease, visibility 0s linear 0.3s;
	display: flex;
	flex-direction: column;
}

.mfd-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform 0.3s ease, visibility 0s linear 0s;
}

/* Sans animation, le délai de masquage n'a plus de raison d'être : on coupe
   toute transition pour que la visibilité bascule immédiatement. */
@media (prefers-reduced-motion: reduce) {
	.mfd-drawer,
	.mfd-drawer.is-open {
		transition-property: none;
	}
}

/* Drawer header */
.mfd-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mfd-drawer__logo {
	display: block;
}

.mfd-drawer__wordmark {
	height: 42px; /* Logo + tagline : hauteur relevée pour la lisibilité dans le drawer mobile. */
	width: auto;
	display: block;
}

.mfd-drawer__close {
	color: var(--mfd-ink);
	cursor: pointer;
	background: none;
	border: 0;
	padding: 4px;
	flex-shrink: 0;
	transition: opacity var(--mfd-transition);
}

.mfd-drawer__close:hover {
	opacity: 0.6;
}

.mfd-drawer__close:focus-visible {
	outline: 2px solid var(--mfd-tan);
	outline-offset: 2px;
}

/* Drawer nav list */
.mfd-drawer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.mfd-drawer__nav-item,
.mfd-drawer__nav > li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mfd-drawer__nav-link,
.mfd-drawer__nav > li > a {
	display: block;
	padding: 14px 0;
	font-family: var(--mfd-font-serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--mfd-ink);
	text-decoration: none;
	transition: color var(--mfd-transition);
}

.mfd-drawer__nav-link:hover,
.mfd-drawer__nav > li > a:hover,
.mfd-drawer__nav > li.current-menu-item > a {
	color: var(--mfd-tan);
}

/* ============================================================
 * 7. CHECKOUT MINIMAL HEADER
 * ============================================================ */

.mfd-header--checkout {
	padding: 16px var(--mfd-gutter);
}

.mfd-header-checkout__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-inline: auto;
}

.mfd-header-checkout__logo {
	display: block;
}

/* the_custom_logo() rend <a.custom-logo-link><img.custom-logo> DIRECTEMENT dans
   l'inner (sans le wrapper .mfd-header-checkout__logo, branche de repli) : cibler
   le header checkout entier, sinon un logo client 843×1492 s'affiche pleine page
   et intercepte les clics du checkout (bug constaté sur la base client). */
.mfd-header--checkout .custom-logo,
.mfd-header-checkout__logo .custom-logo,
.mfd-header-checkout__stacked-logo {
	height: 46px; /* Logo + tagline : hauteur relevée pour la lisibilité sur le header checkout. */
	width: auto;
	display: block;
}

.mfd-header-checkout__secure {
	font-family: var(--mfd-font-serif);
	font-size: 13px;
	color: var(--mfd-muted);
}

/* ============================================================
 * 8. SEARCH FORM
 * ============================================================ */

.mfd-search-form {
	display: flex;
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: 600px;
}

.mfd-search-form__field {
	flex: 1;
	border-right: 0;
	font-family: var(--mfd-font-body);
	font-size: 14px;
	color: var(--mfd-ink);
	background: var(--mfd-white);
	border: 1px solid var(--mfd-line);
	padding: 11px 14px;
}

.mfd-search-form__field:focus {
	outline: none;
	border-color: var(--mfd-tan);
}

.mfd-search-form__submit {
	border-left: 0;
	flex-shrink: 0;
	padding: 11px 18px;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ============================================================
 * 9. VALUES MARQUEE
 * ============================================================ */

@keyframes mfd-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-33.333%); }
}

.mfd-marquee {
	background: var(--mfd-tan);
	color: var(--mfd-white);
	padding: 18px 0;
	overflow: hidden;
	white-space: nowrap;
}

.mfd-marquee__track {
	display: inline-flex;
	align-items: center;
	/* Width = 3× content to allow -33.333% translate for seamless loop */
	animation: mfd-marquee-scroll 40s linear infinite;
}

.mfd-marquee__word {
	font-family: var(--mfd-font-body);
	font-size: 22px;
	font-weight: 700;
	padding: 0 18px;
	display: inline-block;
}

.mfd-marquee__sep {
	font-size: 22px;
	opacity: 0.85;
	display: inline-block;
	padding: 0 4px;
}

@media (prefers-reduced-motion: reduce) {
	.mfd-marquee__track {
		animation: none;
	}
}

/* ============================================================
 * 10. FOOTER
 * ============================================================ */

.mfd-footer {
	background: var(--mfd-ink);
	color: var(--mfd-white);
	padding-block: 48px 22px;
}

/* 5-column grid */
.mfd-footer__columns {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
	padding-bottom: 40px;
}

.mfd-footer__brand-link {
	display: inline-block;
	margin-bottom: 16px;
}

.mfd-footer__wordmark {
	height: 42px; /* Logo + tagline : hauteur relevée ; invert(1) le passe en blanc sur le footer sombre. */
	width: auto;
	display: block;
	filter: invert(1);
}

.mfd-footer__tagline {
	font-family: var(--mfd-font-serif);
	font-style: italic;
	font-size: 12px;
	line-height: 1.7;
	opacity: 0.72;
	color: var(--mfd-white);
	margin-top: 22px; /* Saut de ligne avant « Un diamant naturel… ». */
	margin-bottom: 24px;
}

/* Coordonnées discrètes entre le logo et la phrase. */
.mfd-footer__contact {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.mfd-footer__contact-item {
	font-family: var(--mfd-font-body);
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	gap: 9px;
}

/* Icône (mail / téléphone / adresse) devant chaque ligne de contact. */
.mfd-footer__contact-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: var(--mfd-tan);
}

.mfd-footer__contact-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* L'adresse peut courir sur deux lignes : icône alignée en haut. */
.mfd-footer__contact-item--address {
	align-items: flex-start;
}

.mfd-footer__contact-link {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color var(--mfd-transition);
}

.mfd-footer__contact-link:hover {
	color: var(--mfd-tan);
}

/* Newsletter */
.mfd-footer__newsletter-label {
	margin-bottom: 6px;
	color: var(--mfd-tan);
}

/* Titre + sous-titre éditables du bloc newsletter. */
.mfd-footer__newsletter-title {
	font-size: 18px;
	line-height: 1.2;
	color: var(--mfd-white);
	margin: 0 0 6px;
}

.mfd-footer__newsletter-sub {
	font-size: 12.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 12px;
}

.mfd-footer__newsletter-field {
	display: flex;
	border: 1px solid var(--mfd-tan);
}

/* Formulaire newsletter Elementor embarqué dans le footer (option
   newsletter_elementor_form_id) : champs harmonisés sur le design du
   footer MFD (fond transparent bordé or, texte blanc) — sinon ils
   héritent du style générique d'Elementor / du kit du site hérité
   (champ blanc sur footer noir). !important assumé : ces feuilles de
   plugin se chargent après le thème avec une spécificité variable. */
.mfd-footer__newsletter-elementor input[type="text"],
.mfd-footer__newsletter-elementor input[type="email"],
.mfd-footer__newsletter-elementor .elementor-field-textual {
	background: transparent !important;
	border: 1px solid var(--mfd-tan) !important;
	border-radius: 0 !important;
	color: var(--mfd-white) !important;
	font-family: var(--mfd-font-body) !important;
	font-size: 13px !important;
}

.mfd-footer__newsletter-elementor input[type="text"]::placeholder,
.mfd-footer__newsletter-elementor input[type="email"]::placeholder,
.mfd-footer__newsletter-elementor .elementor-field-textual::placeholder {
	color: rgba(255, 255, 255, 0.45) !important;
	font-style: italic !important;
}

.mfd-footer__newsletter-input {
	flex: 1;
	background: transparent;
	border: 0;
	padding: 10px 12px;
	font-family: var(--mfd-font-body);
	font-size: 13px;
	color: var(--mfd-white);
	min-width: 0;
}

.mfd-footer__newsletter-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
	font-style: italic;
}

.mfd-footer__newsletter-input:focus {
	outline: none;
}

/* Le champ n'a pas de bordure propre (elle vit sur le conteneur) : sans
   relais, le focus clavier n'aurait aucun indicateur visible. L'anneau est
   donc porté par le conteneur bordé, au style global du thème. */
.mfd-footer__newsletter-field:focus-within {
	outline: 2px solid var(--mfd-tan);
	outline-offset: 2px;
}

/* Le bouton d'envoi porte déjà son propre anneau : pas de double cadre. */
.mfd-footer__newsletter-field:has(.mfd-footer__newsletter-btn:focus-visible) {
	outline: none;
}

.mfd-footer__newsletter-btn {
	flex-shrink: 0;
	padding: 10px 16px;
	font-size: 10px;
	letter-spacing: 0.12em;
}

/* Link columns */
.mfd-footer__col-title {
	color: var(--mfd-tan);
	margin-bottom: 14px;
	letter-spacing: 0.14em;
	font-size: 11px;
}

.mfd-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mfd-footer__link {
	font-family: var(--mfd-font-body);
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	line-height: 1.5;
	transition: color var(--mfd-transition);
}

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

/* wp_nav_menu rendered links in footer columns */
.mfd-footer__col .mfd-footer__links a {
	font-family: var(--mfd-font-body);
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	line-height: 1.5;
	transition: color var(--mfd-transition);
}

.mfd-footer__col .mfd-footer__links a:hover {
	color: var(--mfd-tan);
}

/* Legal strip */
.mfd-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.mfd-footer__copyright {
	font-family: var(--mfd-font-body);
	font-size: 10px;
	font-weight: 400;
	opacity: 0.5;
	color: var(--mfd-white);
}

.mfd-footer__legal-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mfd-footer__legal-link {
	font-family: var(--mfd-font-body);
	font-size: 10px;
	font-weight: 400;
	opacity: 0.5;
	color: var(--mfd-white);
	text-decoration: none;
	transition: opacity var(--mfd-transition);
}

.mfd-footer__legal-link:hover {
	opacity: 0.8;
}

/* wp_nav_menu rendered links in legal strip */
.mfd-footer__legal .mfd-footer__legal-links a {
	font-family: var(--mfd-font-body);
	font-size: 10px;
	opacity: 0.5;
	color: var(--mfd-white);
	text-decoration: none;
	transition: opacity var(--mfd-transition);
}

.mfd-footer__legal .mfd-footer__legal-links a:hover {
	opacity: 0.8;
}

/* ============================================================
 * 11. RESPONSIVE — TABLET (≤960px)
 * ============================================================ */

@media (max-width: 960px) {

	/* Top strip */
	.mfd-top-strip__message {
		display: none;
	}

	.mfd-top-strip__social-icon {
		height: 18px;
	}

	.mfd-top-strip__social {
		gap: 8px;
	}

	/* Header */
	.mfd-hamburger {
		display: flex;
	}

	/* Sur mobile/tablette le logo empilé est
	   CENTRÉ dans la rangée crème (hamburger à gauche, actions à droite). On passe
	   la rangée en position relative et on centre le logo en absolu → indépendant
	   de la largeur des clusters gauche/droite. */
	.mfd-header__inner {
		position: relative;
	}

	.mfd-header__home-link {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		z-index: 1;
	}

	.mfd-header__stacked-logo {
		height: 72px; /* Logo empilé (tablette) — rangée crème compacte. */
	}

	/* Le logo est en absolu → il ne dicte plus la hauteur de la rangée : on la
	   garantit pour qu'il ne déborde pas + petit padding vertical d'aération. */
	.mfd-header__inner {
		min-height: 80px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	/* Hide desktop nav */
	.mfd-nav {
		display: none;
	}

	/* Footer grid → 2 columns */
	.mfd-footer__columns {
		grid-template-columns: 1fr 1fr;
	}
}

/* ============================================================
 * 12. RESPONSIVE — PHONE (≤640px)
 * ============================================================ */

@media (max-width: 640px) {

	/* Hide language selector and "Buy from USA" on narrow phones */
	.mfd-lang-selector,
	.mfd-top-strip__usa {
		display: none;
	}

	/* Header inner adjustments — pas de padding vertical. */
	.mfd-header__inner {
		padding-top: 0;
		padding-bottom: 0;
	}

	/* Footer grid → 2 colonnes sur mobile (sections liens
	   « À propos / Boutique / … » côte à côte). La colonne marque passe en
	   pleine largeur au-dessus. */
	.mfd-footer__columns {
		grid-template-columns: 1fr 1fr;
	}

	.mfd-footer__col--brand {
		grid-column: 1 / -1;
	}

	/* Legal strip stacks */
	.mfd-footer__legal {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ============================================================
 * 13. RESPONSIVE — SMALL PHONE (≤479px) — prevent header collision
 * Le logo empilé est compacté pour laisser la place au hamburger
 * et aux 3 icônes d'action.
 * ============================================================ */

@media (max-width: 479px) {

	.mfd-header__stacked-logo {
		height: 56px;
	}

	/* Allow the home link to shrink so it never overflows */
	.mfd-header__home-link {
		min-width: 0;
		overflow: hidden;
	}

	/* Right action cluster: let icons wrap gracefully if still tight */
	.mfd-header__right {
		gap: 14px;
		flex-shrink: 0;
	}
}

/* ============================================================
 * B5 — BANDE DE RÉASSURANCE : espacement renforcé
 * Override des valeurs design-system.css pour plus d'aération.
 * ============================================================ */
.mfd-reassurance {
	padding: clamp(32px, 4vw, 52px) 0;
}

/* La bande de réassurance occupe quasi toute la largeur de l'écran avec
   une petite marge gauche/droite (au lieu de la largeur conteneur). */
.mfd-reassurance > .mfd-container {
	max-width: 100%;
	padding-inline: clamp(24px, 3vw, 32px);
}

.mfd-reassurance__grid {
	gap: clamp(20px, 2.8vw, 36px);
}

.mfd-reassurance__card {
	gap: 12px;
	padding: 0 8px;
}

@media (max-width: 1100px) {
	.mfd-reassurance__grid {
		row-gap: clamp(28px, 4vw, 44px);
	}
}

/* Logo officiel 640px : contraindre partout où le wordmark est rendu (le checkout
   et le tiroir mobile affichaient l image à sa taille naturelle → pleine page). */
.mfd-header-checkout__stacked-logo { height: 56px; width: auto; }
.mfd-drawer__wordmark { height: 48px; width: auto; }

/* Lien « Espace professionnel » du pied de page — réservé aux utilisateurs pro
   connectés (footer-columns.php). Discret, même typo que les liens du footer,
   teinté tan pour le distinguer comme accès réservé. */
.mfd-footer__pro-link {
	color: var(--mfd-tan);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.mfd-footer__pro-link:hover {
	color: #fff;
}
