/*
Theme Name: MoonDimension
Theme URI: https://moondimension.be
Author: MoonDimension
Description: Thème de la boutique MoonDimension (impression 3D, idées cadeaux et personnalisation). Pensé pour WooCommerce et le module « MoonDimension – Boutique ».
Version: 1.5.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moondimension
WC requires at least: 9.0
WC tested up to: 11.3
*/

/* ---------------------------------------------------------------- Polices (hébergées sur le site) */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/unbounded-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/figtree-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/nunito-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/nunito-latin-400-italic.woff2") format("woff2"); }

/* ---------------------------------------------------------------- Couleurs et mesures */

:root {
	--md-nuit: #1f1a26;
	--md-abysse: #17131c;
	--md-accent: #b12a82;
	--md-accent-fonce: #8c2168;
	--md-rose: #e58ac6;
	--md-rose-pale: #f3e6ef;
	--md-encre: #1f1a26;
	--md-gris: #5d566a;
	--md-plateau: #f4f3f6;
	--md-blanc: #ffffff;
	--md-ligne: #e2dfe8;
	--md-champ: #cfc9d8;
	--md-clair: #f4f2f7;
	--md-clair2: #c3bdcf;
	--md-ligne-nuit: #342c3f;
	--md-photo: #e7e4ec;
	--md-erreur: #b3261e;
	--md-ok: #1e6b34;
	--md-fd: "Unbounded", Verdana, "Segoe UI", sans-serif;
	--md-ft: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--md-padx: clamp(16px, 4vw, 40px);
	--md-pady: clamp(44px, 6vw, 84px);
	--md-radius: 16px;
	--md-r: 1;
	--md-btn-radius: 999px;
	--md-fs: 16px;
}

/* ---------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--md-plateau);
	color: var(--md-encre);
	font-family: var(--md-ft);
	font-size: var(--md-fs);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--md-accent-fonce); text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--md-accent-fonce) 70%, #000); }
:focus-visible { outline: 3px solid var(--md-accent); outline-offset: 2px; }
.md-section--nuit :focus-visible, .md-header :focus-visible, .md-footer :focus-visible, .md-hero :focus-visible { outline-color: var(--md-rose); }
h1, h2, h3, h4 { line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
.md-icon { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.screen-reader-text, .md-visually-hidden {
	position: absolute !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--md-blanc); color: var(--md-encre); border-radius: calc(10px * var(--md-r)); }
.md-container { max-width: 1200px; margin: 0 auto; padding-left: var(--md-padx); padding-right: var(--md-padx); }
.md-muted { color: var(--md-gris); margin: 0; }
.md-section--nuit .md-muted, .md-hero .md-muted { color: var(--md-clair2); }
.md-break { overflow-wrap: anywhere; }

/* Titres */
.md-h1 { margin: 0; font-family: var(--md-fd); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.md-h2 { margin: 0; font-family: var(--md-fd); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }

/* Boutons */
.md-btn,
body.md .wp-block-button__link,
body.md a.button, body.md button.button, body.md input.button,
body.md a.button, body.md button.button, body.md .mdb-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 26px; border-radius: var(--md-btn-radius);
	font-family: var(--md-ft); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
	cursor: pointer; border: 1.5px solid var(--md-encre); background: transparent; color: var(--md-encre);
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.md-btn--accent,
body.md .wp-block-button__link,
body.md a.button.alt, body.md button.button.alt, body.md input.button.alt,
body.md #place_order, body.md .checkout-button, body.md .single_add_to_cart_button, body.md .mdb-button, body.md button.button.mdb-button {
	background: var(--md-accent); color: #fff; border-color: var(--md-accent);
}
.md-btn--accent:hover,
body.md .wp-block-button__link:hover,
body.md a.button.alt:hover, body.md button.button.alt:hover,
body.md #place_order:hover, body.md .checkout-button:hover, body.md .single_add_to_cart_button:hover, body.md .mdb-button:hover, body.md button.button.mdb-button:hover {
	background: var(--md-accent-fonce); border-color: var(--md-accent-fonce); color: #fff;
}
body.md a.button:hover, body.md button.button:hover, body.md a.button:hover, .md-btn--ghost:hover { background: var(--md-encre); color: #fff; }
body.md button.button:disabled, body.md button.button:disabled[disabled], body.md button.button.disabled { opacity: 0.45; cursor: not-allowed; background: transparent; color: var(--md-encre); padding: 0 26px; }
body.md .single_add_to_cart_button.disabled { background: var(--md-accent); color: #fff; opacity: 0.5; }
.md-btn--clair { background: var(--md-clair); color: var(--md-nuit); border-color: var(--md-clair); }
.md-btn--clair:hover { background: #fff; border-color: #fff; color: var(--md-nuit); }
.md-btn--ghost-nuit { color: var(--md-clair); border-color: #8d859c; }
.md-btn--ghost-nuit:hover { color: #fff; border-color: var(--md-clair); background: rgba(255, 255, 255, 0.06); }
.md-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.md-buttons--center { align-items: center; gap: 12px 20px; }
.md-textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--md-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.md-textlink--rose { color: var(--md-rose); }
.md-textlink--rose:hover { color: #fff; }

/* ---------------------------------------------------------------- En-tête */

.md-header { background: var(--md-nuit); color: var(--md-clair); position: relative; z-index: 50; }
.md-infobar { background: var(--md-abysse); border-bottom: 1px solid var(--md-ligne-nuit); color: var(--md-clair2); font-size: 13px; }
.md-infobar__inner { height: 38px; overflow: hidden; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; column-gap: 44px; }
.md-infobar__item { display: inline-flex; align-items: center; gap: 8px; height: 38px; white-space: nowrap; }
.md-header__main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.md-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--md-clair); text-decoration: none; }
.md-brand:hover { color: #fff; }
.md-brand__badge { flex: 0 0 auto; display: block; width: clamp(48px, 4.4vw, 60px); height: clamp(48px, 4.4vw, 60px); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px #5d5468; }
.md-brand__badge img { display: block; width: 116%; height: 116%; max-width: none; margin: -8% 0 0 -8%; object-fit: cover; }
.md-brand__name { display: flex; flex-direction: column; font-family: var(--md-fd); font-weight: 600; font-size: 13px; line-height: 1.25; letter-spacing: 0.16em; white-space: nowrap; }
.md-tools { display: flex; align-items: center; gap: 2px; }
.md-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--md-clair); text-decoration: none; }
.md-tool:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.md-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: calc(9px * var(--md-r)); background: var(--md-rose); color: var(--md-nuit); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.md-count[hidden] { display: none; }

.md-nav { border-top: 1px solid var(--md-ligne-nuit); }
.md-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 34px); }
.md-menu > li { position: relative; }
.md-menu a { display: inline-flex; align-items: center; height: 50px; border-bottom: 2px solid transparent; color: var(--md-clair2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.md-menu a:hover { color: #fff; }
.md-menu > .current-menu-item > a, .md-menu > .current-menu-ancestor > a, .md-menu > .current-menu-parent > a, .md-menu > .current_page_parent > a, .md-menu > .current-product-ancestor > a {
	color: var(--md-clair); font-weight: 600; border-bottom-color: var(--md-rose);
}
.md-menu .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: 0.7; }
.md-menu .sub-menu {
	position: absolute; left: -16px; top: 100%; z-index: 60; min-width: 230px; margin: 0; padding: 8px; list-style: none;
	background: var(--md-nuit); border: 1px solid var(--md-ligne-nuit); border-radius: 0 0 14px 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
	visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.md-menu li:hover > .sub-menu, .md-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.md-menu .sub-menu a { display: flex; height: auto; padding: 9px 12px; border: 0; border-radius: calc(8px * var(--md-r)); font-size: 15px; }
.md-menu .sub-menu a:hover, .md-menu .sub-menu .current-menu-item > a { background: rgba(255, 255, 255, 0.07); color: #fff; }
/* Volet de 3e niveau (ex. Boutique > Fêtes > Noël) */
.md-menu .sub-menu .menu-item-has-children > a::after { margin: 0 2px 0 auto; padding-left: 0; transform: rotate(-45deg); }
.md-menu .sub-menu li { position: relative; }
.md-menu .sub-menu .menu-item-has-children > a { gap: 16px; }
.md-menu .sub-menu li:hover > a, .md-menu .sub-menu li:focus-within > a { background: rgba(255, 255, 255, 0.07); color: #fff; }
.md-menu .sub-menu .sub-menu { left: calc(100% + 9px); top: -9px; border-radius: 14px; transform: translateX(-4px); }
.md-menu .sub-menu .sub-menu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
.md-menu .sub-menu li:hover > .sub-menu, .md-menu .sub-menu li:focus-within > .sub-menu { transform: none; }

/* Menu téléphone : bouton ☰ et panneau latéral */
.md-burger { display: none; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.md-drawer[hidden] { display: none; }
.md-drawer { position: fixed; inset: 0; z-index: 100000; }
.md-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 14, 0.55); opacity: 0; transition: opacity 0.2s; }
.md-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: var(--md-nuit); color: var(--md-clair); box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35); transform: translateX(100%); transition: transform 0.25s ease; }
.md-drawer.is-open .md-drawer__backdrop { opacity: 1; }
.md-drawer.is-open .md-drawer__panel { transform: none; }
.md-drawer__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 20px; background: var(--md-nuit); border-bottom: 1px solid var(--md-ligne-nuit); }
.md-drawer__title { font-family: var(--md-fd); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; }
.md-drawer__close { padding: 0; border: 0; background: none; cursor: pointer; }
.md-drawer__menu, .md-drawer__menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.md-drawer__menu > li { border-bottom: 1px solid var(--md-ligne-nuit); }
.md-drawer__menu li { position: relative; }
.md-drawer__menu a { display: flex; align-items: center; min-height: 54px; padding: 0 64px 0 20px; color: var(--md-clair); font-size: 17px; font-weight: 500; text-decoration: none; }
.md-drawer__menu .current-menu-item > a, .md-drawer__menu .current-menu-ancestor > a, .md-drawer__menu .current-product-ancestor > a { color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--md-rose); }
.md-drawer__menu .sub-menu { display: none; padding: 0 0 10px; background: var(--md-abysse); }
.md-drawer__menu .is-open > .sub-menu { display: block; }
.md-drawer__menu .sub-menu a { min-height: 46px; padding-left: 36px; font-size: 16px; color: var(--md-clair2); }
.md-drawer__menu .sub-menu .sub-menu { padding: 0 0 6px; background: rgba(0, 0, 0, 0.18); }
.md-drawer__menu .sub-menu .sub-menu a { min-height: 44px; padding-left: 52px; font-size: 15px; }
.md-drawer__menu .sub-menu .md-subtoggle { top: 1px; }
.md-subtoggle { position: absolute; top: 5px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--md-clair); cursor: pointer; }
.md-subtoggle svg { transition: transform 0.2s; }
.is-open > .md-subtoggle svg { transform: rotate(180deg); }
.md-drawer__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 16px 4px; }
.md-drawer__quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: calc(12px * var(--md-r)); background: rgba(255, 255, 255, 0.06); color: var(--md-clair); font-size: 13px; text-decoration: none; }
.md-drawer__contact { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 28px; margin-top: auto; }
.md-drawer__contact .md-btn { width: 100%; justify-content: center; }
.md-drawer__contact a:not(.md-btn) { display: inline-flex; align-items: center; gap: 10px; color: var(--md-clair2); text-decoration: none; overflow-wrap: anywhere; }
body.md-noscroll { overflow: hidden; }

@media (max-width: 900px) {
	.md-nav { display: none; }
	.md-burger { display: inline-flex; }
	/* L'en-tête reste visible en haut quand on fait défiler ; seul le bandeau d'infos s'en va. */
	.md-header { position: sticky; top: -39px; }
	.md-header__main { padding-top: 8px; padding-bottom: 8px; }
	.md-brand__badge { width: 44px; height: 44px; }
	.md-tool { width: 42px; height: 42px; }
}
@media (min-width: 601px) and (max-width: 782px) { body.admin-bar .md-header { top: 7px; } }
@media (min-width: 783px) and (max-width: 900px) { body.admin-bar .md-header { top: -7px; } }
@media (max-width: 380px) {
	.md-brand__name { font-size: 11px; }
	.md-tools { gap: 0; }
	.md-tool { width: 38px; height: 38px; }
}

/* Barre « Ajouter au panier » qui reste en bas sur téléphone */
.md-buybar { display: none; }
@media (max-width: 900px) {
	.md-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--md-blanc); border-top: 1px solid var(--md-ligne); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08); transform: translateY(110%); transition: transform 0.2s; }
	.md-buybar.is-visible { transform: none; }
	.md-buybar__info { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
	.md-buybar__name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--md-gris); }
	.md-buybar__price { font-weight: 700; font-size: 17px; }
	.md-buybar__price del { font-weight: 400; font-size: 13px; color: var(--md-gris); }
	.md-buybar .md-btn { flex: 0 0 auto; min-height: 46px; padding: 0 20px; }
	body.md-has-buybar .md-footer { padding-bottom: 110px; }
}

/* ---------------------------------------------------------------- Pied de page */

.md-footer { background: var(--md-abysse); color: var(--md-clair2); padding: 56px 0 40px; font-size: 15px; }
.md-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 32px clamp(20px, 3vw, 48px); }
.md-footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.md-footer__about p { margin: 4px 0 0; }
.md-footer__logo { display: block; width: 104px; height: 104px; border-radius: calc(14px * var(--md-r)); object-fit: cover; }
.md-footer__title { margin: 0 0 4px; font-family: var(--md-fd); font-weight: 600; font-size: 14px; color: var(--md-clair); }
.md-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.md-footer a { color: var(--md-clair2); text-decoration: none; }
.md-footer a:hover { color: #fff; text-decoration: underline; }
.md-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--md-ligne-nuit); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }

/* ---------------------------------------------------------------- Sections */

.md-section { padding: var(--md-pady) 0; }
.md-section--plateau { background: var(--md-plateau); }
.md-section--blanc { background: var(--md-blanc); }
.md-section--nuit { background: var(--md-nuit); color: var(--md-clair); }
.md-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 2.6vw, 36px); }
.md-split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4vw, 48px); }
.md-split__text { flex: 1 1 300px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.md-split__text--wide { flex: 1 1 420px; max-width: none; gap: 18px; }
.md-split__grid { flex: 3 1 520px; min-width: 0; }
.md-split__grid--wide { flex: 2 1 480px; }

/* Accueil : grand bandeau */
.md-hero { background: radial-gradient(900px 520px at 80% 45%, color-mix(in srgb, var(--md-accent) 30%, var(--md-nuit)) 0%, var(--md-nuit) 64%); color: var(--md-clair); overflow: hidden; padding: clamp(40px, 6vw, 88px) 0; }
.md-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.md-hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.md-hero__title { margin: 0; font-family: var(--md-fd); font-weight: 600; font-size: clamp(30px, 4vw, 54px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.md-hero__lead { margin: 0; max-width: 52ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--md-clair2); }
.md-hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.md-hero__stage { position: relative; width: min(100%, 500px); aspect-ratio: 1 / 1; }
.md-moon {
	position: absolute; left: 14%; top: 8%; width: 72%; height: 72%; border-radius: 50%;
	background: repeating-linear-gradient(180deg, rgba(31, 26, 38, 0.5) 0 1.5px, rgba(31, 26, 38, 0) 1.5px 8px), radial-gradient(circle at 38% 32%, #f3f1f8 0%, #cfc9dd 45%, #8f87a6 100%);
	box-shadow: 0 0 90px color-mix(in srgb, var(--md-accent) 38%, transparent);
}
.md-tile { position: absolute; display: block; aspect-ratio: 1 / 1; border-radius: calc(22px * var(--md-r)); overflow: hidden; border: 4px solid var(--md-clair); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); background: var(--md-photo); transition: transform 0.2s; }
.md-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md-tile--1 { left: 0; top: 44%; width: 44%; transform: rotate(-5deg); }
.md-tile--2 { left: 56%; top: 4%; width: 40%; transform: rotate(4deg); }
.md-tile--3 { left: 46%; top: 56%; width: 42%; transform: rotate(3deg); }
.md-tile:hover { transform: rotate(0) scale(1.03); }

/* Accueil : points forts */
.md-facts { background: var(--md-blanc); border-bottom: 1px solid var(--md-ligne); padding: 28px 0; }
.md-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px 32px; }
.md-fact { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.md-fact__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: calc(12px * var(--md-r)); background: var(--md-rose-pale); color: var(--md-accent); }
.md-fact > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.md-fact strong { font-size: 16px; line-height: 1.3; }
.md-fact strong + span { font-size: 14.5px; line-height: 1.45; color: var(--md-gris); }

/* Accueil : catégories */
.md-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(clamp(150px, 16vw, 230px), 100%), 1fr)); gap: clamp(14px, 2vw, 24px); }
.md-cat { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--md-encre); text-decoration: none; }
.md-cat__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--md-radius); overflow: hidden; background: var(--md-photo); }
.md-cat__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.md-cat:hover .md-cat__media img { transform: scale(1.04); }
.md-cat__name { font-weight: 600; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.3; }
.md-cat__n { margin-top: -8px; font-size: 14px; color: var(--md-gris); }
.md-cat:hover { color: var(--md-accent-fonce); }

/* Accueil : sur mesure */
.md-split--mesure { gap: clamp(32px, 4.5vw, 56px); }
.md-shots { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.md-shot { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.md-shot__media { display: block; aspect-ratio: 1 / 1; border-radius: calc(18px * var(--md-r)); overflow: hidden; background: var(--md-photo); }
.md-shot__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md-shot figcaption { font-size: 14px; color: var(--md-gris); }
.md-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.md-points li { display: flex; gap: 12px; align-items: flex-start; }
.md-points .md-icon { margin-top: 2px; color: var(--md-accent); }
.md-points strong { display: block; }
.md-points strong + span { display: block; font-size: 15px; color: var(--md-gris); }

/* Accueil : avis */
.md-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.md-quote { margin: 0; padding: 24px; border-radius: calc(18px * var(--md-r)); background: var(--md-blanc); display: flex; flex-direction: column; gap: 10px; }
.md-quote__mark { font-family: var(--md-fd); font-size: 30px; line-height: 0.9; color: var(--md-accent); }
.md-quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.md-about .md-prose { max-width: 820px; margin: 0 auto; }

/* ---------------------------------------------------------------- Cartes produits (partout) */

body.md ul.products, .md-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(clamp(150px, 15vw, 200px), 100%), 1fr));
	gap: clamp(20px, 2.4vw, 28px) clamp(14px, 2vw, 24px);
	margin: 0 !important; padding: 0 !important; list-style: none;
}
body.md .md-section ul.products { grid-template-columns: repeat(auto-fit, minmax(min(clamp(150px, 16vw, 230px), 100%), 1fr)); }
body.md .md-split__grid ul.products { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
body.md ul.products::before, body.md ul.products::after { display: none !important; content: none !important; }
body.md ul.products li.product {
	position: relative; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; clear: none !important; min-width: 0; list-style: none;
	display: flex; flex-direction: column;
}
body.md ul.products li.product > a, body.md ul.products li.product .woocommerce-loop-product__link { display: flex; flex-direction: column; gap: 12px; color: var(--md-encre); text-decoration: none; }
.md-card__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--md-radius); overflow: hidden; background: var(--md-photo); }
body.md ul.products li.product .md-card__media img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; box-shadow: none; transition: transform 0.25s; }
body.md ul.products li.product a:hover .md-card__media img { transform: scale(1.04); }
.md-badge { position: absolute; left: 10px; top: 10px; padding: 5px 11px; border-radius: var(--md-btn-radius); background: #fff; color: var(--md-nuit); font-size: 12px; font-weight: 700; line-height: 1.2; }
.md-badge--inline { position: static; display: inline-block; align-self: flex-start; background: var(--md-rose-pale); color: var(--md-accent-fonce); }
body.md ul.products li.product .md-card__title { margin: 0; padding: 0; font-family: var(--md-ft); font-weight: 600; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.3; color: inherit; }
body.md ul.products li.product .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: -8px 0 0; color: var(--md-encre); font-size: clamp(14px, 1.1vw, 15px); font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
body.md ul.products li.product .price del { order: 2; color: var(--md-gris); font-weight: 400; opacity: 1; }
body.md ul.products li.product .price ins { order: 1; text-decoration: none; font-weight: 600; }
.mdb-from, .mdb-quote { font-weight: 500; }
.md-fav {
	position: absolute; right: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--md-nuit); cursor: pointer;
	box-shadow: 0 2px 8px rgba(31, 26, 38, 0.12); transition: transform 0.15s, color 0.15s;
}
.md-fav:hover { transform: scale(1.08); color: var(--md-accent); }
.md-fav.is-on { color: var(--md-accent); }
.md-fav.is-on .md-icon { fill: currentColor; }
.md-fav--label { position: static; width: auto; height: 44px; padding: 0 16px 0 12px; border-radius: var(--md-btn-radius); background: transparent; box-shadow: none; border: 1.5px solid var(--md-champ); font-weight: 600; font-size: 15px; }
.md-fav--label:hover { transform: none; border-color: var(--md-accent); }

/* Cartes sur fond sombre */
body.md ul.products.is-dark li.product > a { color: var(--md-clair); }
body.md ul.products.is-dark li.product .price { color: var(--md-clair); }
body.md ul.products.is-dark li.product .price del { color: var(--md-clair2); }
body.md ul.products.is-dark .md-card__media { background: #2b2433; }

/* ---------------------------------------------------------------- Boutique */

.md-shop-head { padding: clamp(28px, 3.4vw, 44px) 0 0; }
.md-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--md-gris); margin: 0 0 10px; }
body.md .woocommerce-breadcrumb { color: var(--md-gris); font-size: 14px; margin: 0 0 10px; }
body.md .woocommerce-breadcrumb a { color: var(--md-gris); }
.md-shop-head .md-h1 { margin-bottom: 6px; }
.md-shop-head__text { color: var(--md-gris); max-width: 70ch; margin: 0 0 24px; }
.md-shop-head__text p { margin: 0 0 8px; }
.md-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.md-chips--sub { margin-top: 12px; gap: 8px; }
.md-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--md-btn-radius);
	border: 1.5px solid #d4cfdd; background: var(--md-blanc); color: var(--md-encre); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.md-chip:hover { border-color: var(--md-encre); color: var(--md-encre); }
.md-chip.is-active { background: var(--md-nuit); border-color: var(--md-nuit); color: #fff; }
.md-chip__n { font-weight: 500; opacity: 0.72; }
.md-chip--small { min-height: 38px; font-size: 14px; padding: 0 14px; }
.md-chip__chev { flex: none; margin-left: -2px; transition: transform 0.2s; }
.md-chip[aria-expanded="true"]:not(.is-active) { border-color: var(--md-encre); color: var(--md-encre); }
.md-chip[aria-expanded="true"] .md-chip__chev { transform: rotate(180deg); }
.md-chips--sub[hidden] { display: none; }
.md-shop-count { margin: 28px 0 18px; color: var(--md-gris); }
.md-wc { padding-bottom: var(--md-pady); }
body.md .woocommerce-pagination { margin-top: 40px; }
body.md nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0; margin: 0; }
body.md nav.woocommerce-pagination ul li { border: 0; float: none; }
body.md nav.woocommerce-pagination ul li a, body.md nav.woocommerce-pagination ul li span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--md-btn-radius); background: var(--md-blanc); color: var(--md-encre); font-weight: 600; }
body.md nav.woocommerce-pagination ul li span.current { background: var(--md-nuit); color: #fff; }
body.md nav.woocommerce-pagination ul li a:hover { background: var(--md-rose-pale); }
body.md .woocommerce-info.woocommerce-no-products-found { margin-top: 20px; }

/* ---------------------------------------------------------------- Fiche produit */

.md-product-crumbs { padding-top: clamp(20px, 2.6vw, 32px); }
.md-product-crumbs .woocommerce-breadcrumb { margin-bottom: clamp(16px, 2vw, 24px); }
body.md div.product { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 4.5vw, 56px); }
body.md div.product div.images, body.md div.product div.images { flex: 1 1 440px; min-width: 0; width: auto !important; float: none !important; margin: 0 !important; }
body.md div.product div.summary, body.md div.product div.summary { flex: 1 1 400px; min-width: 0; width: auto !important; float: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: 18px; }
body.md div.product div.summary > * { margin: 0; }
body.md div.product .woocommerce-product-gallery { position: relative; }
body.md div.product .woocommerce-product-gallery__wrapper { margin: 0; }
body.md div.product .woocommerce-product-gallery .flex-viewport, body.md div.product .woocommerce-product-gallery__image:only-child { border-radius: calc(20px * var(--md-r)); overflow: hidden; background: var(--md-photo); }
body.md div.product .woocommerce-product-gallery__image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
body.md div.product .flex-control-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
body.md div.product .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
body.md div.product .flex-control-thumbs img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(12px * var(--md-r)); border: 2px solid transparent; opacity: 1 !important; cursor: pointer; }
body.md div.product .flex-control-thumbs img.flex-active { border-color: var(--md-accent); }
body.md div.product .woocommerce-product-gallery__trigger { position: absolute; right: 14px; top: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); text-indent: -9999px; overflow: hidden; }
body.md div.product .woocommerce-product-gallery__trigger::before { content: ""; position: absolute; left: 12px; top: 11px; width: 12px; height: 12px; border: 2px solid var(--md-nuit); border-radius: 50%; }
body.md div.product .woocommerce-product-gallery__trigger::after { content: ""; position: absolute; left: 24px; top: 24px; width: 2px; height: 8px; background: var(--md-nuit); transform: rotate(-45deg); }
.md-product__head { display: flex; flex-direction: column; gap: 10px; }
.md-product__title { margin: 0; font-family: var(--md-fd); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.015em; }
body.md div.product p.price, body.md div.product span.price { color: var(--md-encre); font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
body.md div.product p.price del { color: var(--md-gris); font-size: 20px; font-weight: 400; opacity: 1; }
body.md div.product p.price ins { text-decoration: none; }
body.md div.product .woocommerce-product-details__short-description p { margin: 0; color: var(--md-gris); }
body.md div.product form.cart { display: flex; flex-direction: column; gap: 18px; margin: 0; }
body.md div.product form.cart::before, body.md div.product form.cart::after { display: none; }
body.md div.product form.cart .variations { margin: 0; border: 0; }
body.md div.product form.cart .variations, body.md div.product form.cart .variations tbody, body.md div.product form.cart .variations tr { display: block; }
body.md div.product form.cart .variations tr { margin-bottom: 14px; }
body.md div.product form.cart .variations th, body.md div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
body.md div.product form.cart .variations th label { font-weight: 600; }
.md-current { font-weight: 400; color: var(--md-gris); }
.md-current:not(:empty)::before { content: ": "; }
body.md div.product form.cart .variations td.value { position: relative; margin-top: 10px; }
body.md div.product form.cart .variations select { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--md-champ); border-radius: calc(12px * var(--md-r)); background: #fff; }
body.md div.product form.cart .reset_variations { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--md-gris); }
.md-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.md-pill, .mdb-choice__text {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--md-btn-radius);
	border: 1.5px solid var(--md-champ); background: #fff; color: var(--md-encre); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.md-pill:hover, .mdb-choice:hover .mdb-choice__text { border-color: var(--md-encre); }
.md-pill[aria-checked="true"], .mdb-choice input:checked + .mdb-choice__text { background: var(--md-nuit); border-color: var(--md-nuit); color: #fff; }
.md-pill:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.mdb-choice input:focus-visible + .mdb-choice__text { outline: 3px solid var(--md-accent); outline-offset: 2px; }
.mdb-choice { position: relative; display: inline-flex; }
.mdb-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mdb-choice__extra { font-weight: 500; opacity: 0.8; }
.mdb-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
body.md .single_variation_wrap { display: flex; flex-direction: column; gap: 14px; }
body.md .woocommerce-variation-price .price { font-size: 20px !important; }
body.md .woocommerce-variation-availability p, body.md div.product .stock { margin: 0; font-weight: 600; }
body.md div.product .stock.in-stock { color: var(--md-ok); }
body.md div.product .stock.out-of-stock { color: var(--md-erreur); }
.mdb-fields { display: flex; flex-direction: column; gap: 16px; }
.mdb-field { display: flex; flex-direction: column; gap: 6px; }
.mdb-field[hidden] { display: none; }
.mdb-field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.mdb-label { font-weight: 600; padding: 0; }
.mdb-req { color: var(--md-accent); }
.mdb-opt { font-weight: 400; color: var(--md-gris); font-size: 14px; }
.mdb-help { margin: 0; font-size: 14px; color: var(--md-gris); }
.mdb-input, body.md form .form-row .input-text, body.md form .form-row select, body.md form .form-row .input-text.input-text {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--md-champ); border-radius: calc(12px * var(--md-r)); background: #fff; color: var(--md-encre); font-size: 16px; line-height: 1.4;
}
.mdb-input:focus, body.md form .form-row .input-text:focus { border-color: var(--md-accent); outline: 2px solid color-mix(in srgb, var(--md-accent) 25%, transparent); outline-offset: 0; }
textarea.mdb-input { min-height: 120px; resize: vertical; }
/* Bouton, quantité et total */
body.md div.product form.cart .woocommerce-variation-add-to-cart, body.md div.product form.cart:not(.variations_form) { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
body.md div.product form.cart:not(.variations_form) .mdb-fields { flex: 1 1 100%; }
body.md div.product form.cart .woocommerce-variation-add-to-cart { display: flex; }
/* Même hauteur que le sélecteur de quantité (44 px + bordures) pour un alignement net. */
body.md div.product form.cart .single_add_to_cart_button { flex: 0 0 auto; min-width: 140px; max-width: 220px; height: 47px; min-height: 47px; float: none; padding: 0 22px; font-size: 15px; }
.mdb-total { flex: 1 1 100%; margin: 0; color: var(--md-gris); font-variant-numeric: tabular-nums; }
.mdb-total strong { color: var(--md-encre); }
.md-qty, body.md .quantity { display: inline-flex !important; max-width: 150px; align-items: center; border: 1.5px solid var(--md-champ); border-radius: var(--md-btn-radius); background: #fff; float: none !important; margin: 0 !important; }
body.md .quantity .qty { width: 40px; max-width: 40px; min-height: 44px; padding: 0; border: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
body.md .quantity .qty::-webkit-outer-spin-button, body.md .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.md-qty__btn { width: 38px; height: 44px; border: 0; background: transparent; color: var(--md-encre); line-height: 0; cursor: pointer; border-radius: var(--md-btn-radius); display: flex; align-items: center; justify-content: center; padding: 0; }
.md-qty__btn svg { display: block; }
.md-qty__btn:hover { color: var(--md-accent); }
.md-product__fav { margin-top: -4px; }
.md-product__infos { list-style: none; margin: 0; padding: 18px 0 0 !important; border-top: 1px solid var(--md-ligne); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.md-product__infos li { display: flex; align-items: flex-start; gap: 10px; }
.md-product__infos .md-icon { margin-top: 1px; color: var(--md-accent); }
.md-product__desc { padding-top: 18px; border-top: 1px solid var(--md-ligne); }
.md-product__desc > *:first-child { margin-top: 0; }
.md-product__desc p { margin: 0 0 12px; }
.md-product__desc ul { margin: 0 0 12px; padding-left: 22px; }
.md-product__desc em { color: var(--md-gris); font-size: 14.5px; }
.md-related { margin-top: clamp(44px, 5vw, 72px); }
body.md.single-product .md-wc { padding-bottom: 0; }

/* ---------------------------------------------------------------- Pages */

.md-page__head { padding: clamp(28px, 3.4vw, 48px) 0 0; }
.md-page__body { padding-top: clamp(18px, 2.2vw, 28px); padding-bottom: var(--md-pady); }
.md-prose { font-size: 17px; line-height: 1.6; }
.md-prose > * { max-width: 760px; }
.md-prose > .woocommerce, .md-prose > .alignwide, .md-prose > .alignfull, .md-page--shop .md-prose > * { max-width: none; }
.md-prose > *:first-child { margin-top: 0; }
.md-prose h2 { font-family: var(--md-fd); font-weight: 600; font-size: clamp(20px, 2vw, 26px); margin: 1.8em 0 0.6em; }
.md-prose h3 { font-size: 19px; margin: 1.5em 0 0.5em; }
.md-prose ul, .md-prose ol { padding-left: 22px; }
.md-prose li { margin-bottom: 6px; }
.md-prose .wp-block-quote { margin: 0 0 16px; padding: 22px 24px 22px 56px; border: 0; border-radius: calc(18px * var(--md-r)); background: var(--md-blanc); position: relative; font-size: 17px; }
.md-prose .wp-block-quote::before { content: "“"; position: absolute; left: 20px; top: 16px; font-family: var(--md-fd); font-size: 32px; line-height: 1; color: var(--md-accent); }
.md-prose .wp-block-quote p { margin: 0; }
.md-prose .wp-block-image img { border-radius: calc(18px * var(--md-r)); }
.md-prose .wp-block-image figcaption { color: var(--md-gris); font-size: 15px; text-align: left; }
.md-prose .wp-block-buttons { margin: 24px 0; }
.md-prose .woocommerce ul.products { margin: 24px 0 32px !important; }
.md-page--shop .md-prose { font-size: 16px; line-height: 1.5; }

/* ---------------------------------------------------------------- Formulaires devis et contact */

.mdb-form-wrap { margin-top: 28px; padding: clamp(20px, 3vw, 32px); border-radius: calc(20px * var(--md-r)); background: var(--md-blanc); border: 1px solid var(--md-ligne); }
.mdb-form { display: flex; flex-direction: column; gap: 20px; font-size: 16px; }
.mdb-form-row { display: flex; flex-direction: column; gap: 6px; }
.mdb-form-row fieldset { margin: 0; padding: 0; border: 0; }
.mdb-form-row.has-error .mdb-input, .mdb-form-row.has-error .mdb-choice__text { border-color: var(--md-erreur); }
.mdb-error { margin: 0; color: var(--md-erreur); font-size: 14.5px; font-weight: 600; }
.mdb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mdb-form-legal { margin: 0; font-size: 14px; color: var(--md-gris); }
.mdb-form-actions { margin: 0; }
.mdb-form-done, .mdb-form-error { margin-bottom: 20px; padding: 16px 18px; border-radius: calc(14px * var(--md-r)); }
.mdb-form-done { background: #e6f4ea; color: var(--md-ok); }
.mdb-form-done p { margin: 0; }
.mdb-form-done__title { font-weight: 700; }
.mdb-form-error { background: #fbe9e7; color: var(--md-erreur); }
.mdb-form-error p { margin: 0; }
.mdb-input--file { padding: 10px; }

/* ---------------------------------------------------------------- Panier, commande, compte */

body.md .woocommerce-notices-wrapper:empty { display: none; }
body.md .woocommerce-message, body.md .woocommerce-info, body.md .woocommerce-error, body.md .woocommerce-noreviews, body.md p.no-comments {
	margin: 0 0 20px; padding: 14px 18px 14px 50px; border: 0; border-radius: calc(14px * var(--md-r)); background: var(--md-blanc); color: var(--md-encre); list-style: none; box-shadow: inset 0 0 0 1px var(--md-ligne);
}
body.md .woocommerce-message { background: var(--md-rose-pale); box-shadow: none; }
body.md .woocommerce-error { background: #fbe9e7; color: var(--md-erreur); box-shadow: none; }
body.md .woocommerce-message::before, body.md .woocommerce-info::before, body.md .woocommerce-error::before {
	content: "" !important; position: absolute; top: 20px; left: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--md-accent); font-family: inherit;
}
body.md .woocommerce-message::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-accent) 18%, transparent); }
body.md .woocommerce-error::before { background: var(--md-erreur); }
body.md .woocommerce-message, body.md .woocommerce-info, body.md .woocommerce-error { position: relative; }
body.md [tabindex="-1"]:focus { outline: none; }
body.md .woocommerce-message .button, body.md .woocommerce-info .button { float: right; min-height: 36px; padding: 0 16px; margin-left: 12px; font-size: 14px; }
body.md .woocommerce-message a:not(.button), body.md .woocommerce-info a:not(.button) { color: var(--md-accent-fonce); }

body.md.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 24px clamp(28px, 3.2vw, 40px); align-items: start; }
body.md.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, body.md.woocommerce-cart .woocommerce > .cart-empty, body.md.woocommerce-cart .woocommerce > .return-to-shop, body.md.woocommerce-cart .woocommerce > .wc-empty-cart-message { grid-column: 1 / -1; }
body.md table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; margin: 0; background: transparent; }
body.md table.shop_table th { font-weight: 600; padding: 12px 10px; }
body.md table.shop_table td { padding: 16px 10px; border-top: 1px solid var(--md-ligne); vertical-align: middle; }
body.md .woocommerce-cart-form table.shop_table thead { font-size: 14px; color: var(--md-gris); }
body.md .woocommerce-cart-form .product-thumbnail img { width: clamp(64px, 8vw, 96px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(14px * var(--md-r)); }
body.md .woocommerce-cart-form .product-name a { color: var(--md-encre); font-weight: 600; text-decoration: none; }
body.md .woocommerce-cart-form .product-name dl.variation { margin: 4px 0 0; font-size: 14px; color: var(--md-gris); }
body.md .woocommerce-cart-form .product-name dl.variation dt, body.md .woocommerce-cart-form .product-name dl.variation dd { display: inline; margin: 0; float: none; }
body.md .woocommerce-cart-form .product-name dl.variation dd p { display: inline; margin: 0; }
body.md .woocommerce-cart-form .product-name dl.variation dd::after { content: ""; display: block; }
body.md a.remove { width: 32px; height: 32px; line-height: 30px; font-size: 22px; color: var(--md-gris) !important; border: 1.5px solid var(--md-ligne); border-radius: 50%; }
body.md a.remove:hover { background: var(--md-erreur); border-color: var(--md-erreur); color: #fff !important; }
body.md .woocommerce-cart-form .actions { padding-top: 20px; }
body.md .woocommerce-cart-form .coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.md .woocommerce-cart-form .coupon .input-text { width: 180px !important; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--md-champ); border-radius: var(--md-btn-radius); }
body.md .woocommerce-cart-form .coupon .button, body.md .woocommerce-cart-form button[name="update_cart"] { min-height: 44px; font-size: 15px; padding: 0 18px; }
body.md .woocommerce-cart-form button[name="update_cart"] { float: right; }
body.md .cart-collaterals { width: auto; }
body.md .cart-collaterals .cart_totals { width: 100% !important; float: none !important; padding: 24px; border-radius: calc(20px * var(--md-r)); background: var(--md-blanc); border: 1px solid var(--md-ligne); }
body.md .cart_totals h2 { margin: 0 0 12px; font-family: var(--md-fd); font-weight: 600; font-size: 19px; }
body.md .cart_totals table.shop_table th, body.md .cart_totals table.shop_table td { padding: 12px 0; background: transparent; }
body.md .cart_totals table.shop_table td { text-align: right; }
body.md .cart_totals .order-total td, body.md .cart_totals .order-total th { font-size: 20px; }
body.md .cart_totals .order-total .amount { font-size: 24px; font-weight: 700; }
body.md .wc-proceed-to-checkout { padding: 16px 0 0; }
body.md .wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; min-height: 52px; margin: 0 !important; font-size: 17px !important; padding: 0 20px !important; }
.md-secure { margin: 10px 0 0; font-size: 14px; color: var(--md-gris); text-align: center; }
/* Livraison dans le panier et la commande */
body.md ul#shipping_method { margin: 0; padding: 0; list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
body.md ul#shipping_method li { position: relative; margin: 0; padding: 12px 14px 12px 42px; border: 1.5px solid #d4cfdd; border-radius: calc(14px * var(--md-r)); background: #fff; line-height: 1.4; text-indent: 0; }
body.md ul#shipping_method li:has(input:checked) { border-color: var(--md-accent); background: color-mix(in srgb, var(--md-accent) 5%, #fff); }
body.md ul#shipping_method li input { position: absolute; left: 14px; top: 15px; margin: 0; accent-color: var(--md-accent); width: 18px; height: 18px; }
body.md ul#shipping_method li label { display: inline; font-weight: 600; }
.mdb-rate-hint { display: block; font-size: 13.5px; color: var(--md-gris); font-weight: 400; }
body.md .woocommerce-shipping-totals td::before, body.md .woocommerce-shipping-totals th { vertical-align: top; }
body.md .cart_totals .woocommerce-shipping-totals td { text-align: left; }
body.md .woocommerce-shipping-destination, body.md .woocommerce-shipping-calculator { font-size: 14px; color: var(--md-gris); margin: 8px 0 0; }
.mdb-free td { padding: 4px 0 12px !important; border-top: 0 !important; }
.mdb-free__inner { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mdb-free__text { font-size: 14.5px; color: var(--md-gris); }
.mdb-free__bar { display: block; height: 8px; border-radius: 4px; background: var(--md-photo); overflow: hidden; }
.mdb-free__bar span { display: block; height: 100%; border-radius: 4px; background: var(--md-accent); }

/* Commande */
body.md form.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 0 clamp(28px, 3.2vw, 48px); align-items: start; }
body.md form.checkout > .woocommerce-NoticeGroup, body.md form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.md form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
body.md form.checkout #order_review_heading { grid-column: 2; margin: 0 0 12px; font-family: var(--md-fd); font-weight: 600; font-size: 19px; }
body.md form.checkout #order_review { grid-column: 2; padding: 24px; border-radius: calc(20px * var(--md-r)); background: var(--md-blanc); border: 1px solid var(--md-ligne); }
body.md .col2-set, body.md .woocommerce-page .col2-set { width: 100%; display: flex; flex-direction: column; gap: 24px; }
body.md .col2-set .col-1, body.md .col2-set .col-2 { width: 100%; float: none; }
body.md .col2-set::before, body.md .col2-set::after { display: none; }
body.md .woocommerce-checkout h3, body.md.woocommerce-account .woocommerce h2, body.md.woocommerce-account .woocommerce h3 { font-family: var(--md-fd); font-weight: 600; font-size: 19px; margin: 0 0 14px; }
body.md form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 0; }
body.md form .form-row label { font-weight: 600; line-height: 1.4; }
body.md form .form-row .optional { font-weight: 400; color: var(--md-gris); }
body.md form .form-row .required { color: var(--md-accent); text-decoration: none; }
body.md form .form-row-first, body.md form .form-row-last { width: calc(50% - 8px); }
body.md form .form-row-first { float: left; }
body.md form .form-row-last { float: right; }
body.md form .form-row-wide { clear: both; }
body.md form .form-row textarea { min-height: 110px; }
body.md form .form-row.woocommerce-invalid .input-text, body.md form .form-row.woocommerce-invalid select { border-color: var(--md-erreur); }
body.md .select2-container .select2-selection--single { height: 48px; border: 1.5px solid var(--md-champ); border-radius: calc(12px * var(--md-r)); }
body.md .select2-container .select2-selection--single .select2-selection__rendered { line-height: 45px; padding-left: 14px; }
body.md .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
body.md .woocommerce-checkout-review-order-table th, body.md .woocommerce-checkout-review-order-table td { padding: 10px 0 !important; }
body.md .woocommerce-checkout-review-order-table td:last-child { text-align: right; }
body.md .woocommerce-checkout-review-order-table .order-total .amount { font-size: 22px; font-weight: 700; }
body.md .woocommerce-checkout #payment, body.md #add_payment_method #payment { background: transparent; border-radius: 0; }
body.md .woocommerce-checkout #payment ul.payment_methods { padding: 16px 0; border-bottom: 1px solid var(--md-ligne); }
body.md .woocommerce-checkout #payment div.payment_box { background: var(--md-plateau); color: var(--md-encre); border-radius: calc(12px * var(--md-r)); }
body.md .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--md-plateau); }
body.md .woocommerce-checkout #payment div.form-row { padding: 16px 0 0; }
body.md .woocommerce-checkout #payment #place_order { float: none; width: 100%; min-height: 54px; font-size: 17px; }
body.md .woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--md-gris); }
body.md .woocommerce-form-coupon-toggle .woocommerce-info, body.md .woocommerce-form-login-toggle .woocommerce-info { font-size: 15px; }
.mdb-checkout-note { font-size: 15px; }
body.md #ship-to-different-address { float: none; margin: 8px 0 14px; font-family: var(--md-ft); font-size: 16px; }
body.md #ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
body.md .woocommerce-additional-fields > h3 { clear: both; margin-top: 8px; }
body.md form.checkout input[type="checkbox"], body.md form.checkout input[type="radio"] { accent-color: var(--md-accent); width: 18px; height: 18px; }

/* Compte client */
body.md.woocommerce-account .woocommerce { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 32px; align-items: start; }
body.md.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* Le « clearfix » de WooCommerce prenait la première case de la grille et décalait tout. */
body.md.woocommerce-account .woocommerce::before, body.md.woocommerce-account .woocommerce::after,
body.md.woocommerce-cart .woocommerce::before, body.md.woocommerce-cart .woocommerce::after,
body.md.woocommerce-checkout .woocommerce::before, body.md.woocommerce-checkout .woocommerce::after { display: none; content: none; }
body.md.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; }
body.md.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; min-width: 0; }
body.md.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
/* Adresses */
body.md .woocommerce-Addresses { gap: 20px; margin-top: 16px; }
body.md .woocommerce-Address { padding: 20px; border-radius: calc(18px * var(--md-r)); background: var(--md-blanc); border: 1px solid var(--md-ligne); }
body.md .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; text-align: left; gap: 6px 14px; margin-bottom: 10px; }
body.md .woocommerce-Address-title h2, body.md .woocommerce-Address-title h3 { margin: 0 !important; }
body.md .woocommerce-Address-title::before, body.md .woocommerce-Address-title::after { display: none !important; content: none !important; }
body.md .woocommerce-Address-title a.edit { float: none !important; margin-left: auto; font-weight: 600; font-size: 14px; }
body.md .woocommerce-Address address { font-style: normal; line-height: 1.6; color: var(--md-gris); }
/* Changement de mot de passe et champs mot de passe */
body.md.woocommerce-account fieldset { margin: 22px 0 6px; padding: 18px 20px 6px; border: 1px solid var(--md-ligne); border-radius: calc(18px * var(--md-r)); background: var(--md-blanc); min-width: 0; }
body.md.woocommerce-account fieldset legend { padding: 0 8px; font-family: var(--md-fd); font-weight: 600; font-size: 16px; }
body.md .password-input { position: relative; display: block; }
body.md .password-input input { padding-right: 52px !important; }
body.md .show-password-input { position: absolute; top: 50%; right: 8px; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 50%; transform: translateY(-50%); background-color: var(--md-gris); cursor: pointer;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat; }
body.md .show-password-input:hover, body.md .show-password-input:focus-visible { background-color: var(--md-accent); }
body.md .show-password-input.display-password {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.8 8.4 2 12 2 12s3.6 7 10 7a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.8 8.4 2 12 2 12s3.6 7 10 7a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
body.md.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
body.md.woocommerce-account .woocommerce-MyAccount-navigation, body.md.woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
body.md .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; border-radius: calc(18px * var(--md-r)); background: var(--md-blanc); border: 1px solid var(--md-ligne); }
body.md .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: calc(10px * var(--md-r)); color: var(--md-encre); text-decoration: none; font-weight: 500; }
body.md .woocommerce-MyAccount-navigation .is-active a { background: var(--md-nuit); color: #fff; font-weight: 600; }
body.md .woocommerce-MyAccount-navigation a:hover { background: var(--md-plateau); }
body.md.woocommerce-account form.login, body.md.woocommerce-account form.register { max-width: 520px; padding: 24px; border-radius: calc(20px * var(--md-r)); background: var(--md-blanc); border: 1px solid var(--md-ligne); }
body.md.woocommerce-account .u-columns.col2-set { flex-direction: row; flex-wrap: wrap; }
body.md.woocommerce-account .u-columns.col2-set .u-column1, body.md.woocommerce-account .u-columns.col2-set .u-column2 { flex: 1 1 320px; width: auto; }

/* Commande reçue */
body.md .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 18px 20px !important; border-radius: calc(16px * var(--md-r)); background: var(--md-blanc); list-style: none; }
body.md .woocommerce-order-overview li { border: 0 !important; margin: 0 !important; padding: 0 !important; }

/* Bandeau « boutique bientôt disponible » et mode démo */
body.md .woocommerce-store-notice, body.md p.demo_store { background: var(--md-accent); }

/* Favoris */
.md-favoris { min-height: 120px; }
.md-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; border-radius: calc(20px * var(--md-r)); background: var(--md-blanc); }
.md-empty p { margin: 0; }

/* 404 */
.md-404__inner { max-width: 640px; margin: 0 auto; padding-top: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.md-moon--small { position: relative; left: auto; top: auto; width: 140px; height: 140px; }

/* ---------------------------------------------------------------- Petits écrans */

@media (max-width: 860px) {
	body.md.woocommerce-cart .woocommerce, body.md form.checkout, body.md.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
	body.md.woocommerce-account .woocommerce-MyAccount-navigation, body.md.woocommerce-account .woocommerce-MyAccount-content { grid-column: 1; }
	body.md form.checkout #customer_details, body.md form.checkout #order_review_heading, body.md form.checkout #order_review { grid-column: 1; grid-row: auto; }
	body.md form.checkout #order_review_heading { margin-top: 24px; }
}
@media (max-width: 768px) {
	/* Panier : chaque article devient une carte */
	body.md .woocommerce-cart-form table.shop_table thead { display: none; }
	body.md .woocommerce-cart-form table.shop_table, body.md .woocommerce-cart-form table.shop_table tbody { display: block; }
	body.md .woocommerce-cart-form table.shop_table tr.cart_item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--md-ligne); }
	body.md .woocommerce-cart-form table.shop_table tr.cart_item td { display: block; padding: 0; border: 0; text-align: left !important; }
	body.md .woocommerce-cart-form table.shop_table tr.cart_item td::before { display: none; }
	body.md .woocommerce-cart-form td.product-thumbnail { grid-row: 1 / span 3; display: block !important; }
	body.md .woocommerce-cart-form td.product-thumbnail img { width: 80px; }
	body.md .woocommerce-cart-form td.product-name { grid-column: 2; }
	body.md .woocommerce-cart-form td.product-remove { grid-column: 3; grid-row: 1; }
	body.md .woocommerce-cart-form td.product-price { display: none !important; }
	body.md .woocommerce-cart-form td.product-quantity { grid-column: 2; }
	body.md .woocommerce-cart-form td.product-subtotal { grid-column: 3; grid-row: 3; align-self: center; font-weight: 600; }
	body.md .woocommerce-cart-form tr:last-child td.actions { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
	body.md .woocommerce-cart-form button[name="update_cart"] { float: none; width: 100%; }
	body.md .woocommerce-cart-form .coupon .input-text { flex: 1 1 auto; }
	body.md form .form-row-first, body.md form .form-row-last { width: 100%; float: none; }
	.md-shots { flex-basis: 100%; }
}
@media (max-width: 600px) {
	.md-infobar { font-size: 12.5px; }
	body.md ul.products, .md-grid, body.md .md-section ul.products, body.md .md-split__grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--md-padx)); margin-right: calc(-1 * var(--md-padx)); padding: 0 var(--md-padx) 4px; scrollbar-width: none; }
	.md-chips::-webkit-scrollbar { display: none; }
	.md-fav:not(.md-fav--label) { width: 36px; height: 36px; right: 6px; top: 6px; }
	body.md .woocommerce-message .button, body.md .woocommerce-info .button { float: none; display: flex; margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Totaux du panier et récapitulatif de commande : lignes souples, la livraison prend toute la largeur. */
body.md .cart_totals table.shop_table, body.md .woocommerce-checkout-review-order-table,
body.md .cart_totals table.shop_table tbody, body.md .woocommerce-checkout-review-order-table thead,
body.md .woocommerce-checkout-review-order-table tbody, body.md .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
body.md .cart_totals table.shop_table tr, body.md .woocommerce-checkout-review-order-table tr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; border-top: 1px solid var(--md-ligne); }
body.md .cart_totals table.shop_table tr:first-child, body.md .woocommerce-checkout-review-order-table thead tr { border-top: 0; }
body.md .cart_totals table.shop_table th, body.md .cart_totals table.shop_table td,
body.md .woocommerce-checkout-review-order-table th, body.md .woocommerce-checkout-review-order-table td { display: block; border: 0 !important; padding: 12px 0 !important; }
body.md .woocommerce-checkout-review-order-table td.product-name { flex: 1 1 60%; }
body.md .woocommerce-checkout-review-order-table .product-name dl.variation { margin: 4px 0 0; font-size: 14px; color: var(--md-gris); }
body.md .woocommerce-checkout-review-order-table .product-name dl.variation dt, body.md .woocommerce-checkout-review-order-table .product-name dl.variation dd, body.md .woocommerce-checkout-review-order-table .product-name dl.variation p { display: inline; margin: 0; float: none; }
body.md tr.woocommerce-shipping-totals th, body.md tr.woocommerce-shipping-totals td { flex: 1 1 100%; width: 100%; text-align: left !important; }
body.md tr.woocommerce-shipping-totals th { padding-bottom: 0 !important; }
body.md .cart_totals tr.mdb-free { border-top: 0; }
body.md .cart_totals tr.mdb-free td { flex: 1 1 100%; padding-top: 0 !important; }
body.md .woocommerce-shipping-totals .woocommerce-shipping-destination, body.md .woocommerce-shipping-calculator { text-align: left; }

/* Galerie photo */
.md-prose > .wp-block-gallery { max-width: none; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px !important; margin: 28px 0; }
.md-prose .wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; display: flex; flex-direction: column !important; gap: 10px; }
.md-prose .wp-block-gallery .wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(18px * var(--md-r)); flex: none !important; }
.md-prose .wp-block-gallery .wp-block-image figcaption { position: static !important; padding: 0 !important; margin: 0 !important; max-height: none !important; overflow: visible !important; background: none !important; color: var(--md-gris) !important; font-size: 15px !important; text-align: left !important; text-shadow: none !important; }

/* ---------------------------------------------------------------- Témoignages */
.mdb-stars { display: inline-flex; gap: 2px; font-size: 18px; line-height: 1; letter-spacing: 0; }
.mdb-star { color: var(--md-ligne); }
.mdb-star.is-on { color: #e7a614; }
.mdb-avis blockquote { flex: 1 1 auto; }
.mdb-avis__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-weight: 600; font-size: 15px; }
.mdb-avis__ok { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--md-btn-radius); background: #e6f4ea; color: var(--md-ok); font-size: 12px; font-weight: 600; }
.mdb-avis-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 17px; }
.mdb-avis-summary .mdb-stars { font-size: 22px; }
.mdb-avis-legal { margin-top: 18px; color: var(--md-gris); font-size: 14px; }
.mdb-avis-empty { color: var(--md-gris); }
.mdb-avis-order { padding: 12px 16px; border-radius: calc(12px * var(--md-r)); background: var(--md-rose-pale); font-weight: 600; }
.md-avis-cta { margin: 24px 0 0; text-align: center; }
.mdb-avis-form { max-width: 680px; }
.mdb-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-top: 4px; }
.mdb-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mdb-rating label { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; font-size: 34px; line-height: 1; color: var(--md-ligne); cursor: pointer; transition: color 0.1s, transform 0.1s; }
.mdb-rating label:hover, .mdb-rating label:hover ~ label, .mdb-rating input:checked ~ label { color: #e7a614; }
.mdb-rating label:active { transform: scale(0.92); }
.mdb-rating input:focus-visible + label { outline: 3px solid var(--md-accent); outline-offset: 2px; border-radius: 8px; }
.mdb-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.mdb-check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--md-accent); }
.mdb-avis-top { margin: 0 0 20px; }

/* --- Nuancier de couleur (variantes Coloris) --- */
.md-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c3c4c7; cursor: pointer; padding: 0; margin: 2px; display: inline-block; vertical-align: middle; transition: transform .12s, box-shadow .12s; }
.md-swatch:hover { transform: scale(1.12); box-shadow: 0 0 0 2px #b12a82; }
.md-swatch.is-active { box-shadow: 0 0 0 3px #b12a82; transform: scale(1.08); }
.md-swatch:disabled { opacity: .35; cursor: not-allowed; }
.md-swatch[title]:hover::after { content: attr(title); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #1f1a26; color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 10; }
.md-pills:has(.md-swatch) { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* Masque le texte du coloris sélectionné (le rond suffit) */
.md-pills .md-current { display: none; }

/* --- Nuancier de couleur (champs de personnalisation) --- */
.mdb-color-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.mdb-color-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d0cdd6, 0 2px 4px rgba(0,0,0,.08); cursor: pointer; padding: 0; transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.mdb-color-swatch:hover { transform: scale(1.18); box-shadow: 0 0 0 2px #b12a82, 0 4px 8px rgba(0,0,0,.15); }
.mdb-color-swatch.is-active { box-shadow: 0 0 0 3px #b12a82, 0 4px 10px rgba(177,42,130,.3); transform: scale(1.12); }
.mdb-color-swatch.is-active::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); pointer-events: none; font-family: 'Segoe UI Symbol', 'Arial Unicode MS', sans-serif; }
.mdb-color-swatch[title]:hover::before { content: attr(title); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #1f1a26; color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.mdb-field-color { margin-bottom: 8px; padding: 6px 8px; border: 1px solid #e8e6e1; border-radius: 6px; background: #faf9fb; }
.mdb-field-color .mdb-label { display: block; font-weight: 600; margin-bottom: 6px; color: #1f1a26; }
.mdb-field-color .mdb-help { font-size: 13px; color: #52514e; margin-bottom: 8px; }
.mdb-field-color { margin-bottom: 16px; }
.mdb-field-color .mdb-label { display: block; font-weight: 600; margin-bottom: 4px; }

/* Couleur choisie, affichée à côté du titre du champ */
.mdb-picked { font-weight: 500; color: var(--md-gris); }
.mdb-picked:not(:empty)::before { content: " · "; }

/* Pas de mot seul sur la dernière ligne d'un paragraphe */
p, li, figcaption, blockquote, .md-muted, .mdb-help { text-wrap: pretty; }

