/*
Theme Name: M-Solution
Template: hello-elementor
Description: Thème enfant de Medica Solution (M-Solution) : police, en-tête, pied de page, catalogue WooCommerce. Les pages sont construites avec Elementor.
Version: 0.1.2
Text Domain: msolution
*/

/* Jetons : mêmes valeurs que les variables globales Elementor (ms-*) et la maquette F. */
:root {
	--ms-ink: oklch(0.29 0.08 252);
	--ms-ink-deep: oklch(0.24 0.075 252);
	--ms-ink-1: oklch(0.34 0.075 250);
	--ms-ink-2: oklch(0.45 0.03 252);
	--ms-on-ink: oklch(0.97 0.008 252);
	--ms-on-ink-2: oklch(0.82 0.03 235);
	--ms-link: oklch(0.435 0.096 240);
	--ms-accent: oklch(0.59 0.108 221);
	--ms-accent-on-ink: #14abc0;
	--ms-surface: oklch(0.985 0.004 252);
	--ms-surface-2: oklch(0.962 0.01 235);
	--ms-tint: oklch(0.93 0.035 215);
	--ms-line: oklch(0.90 0.012 252);
	--ms-ok: oklch(0.52 0.12 160);
	--ms-white: #fff;
	--ms-wa: #25d366;           /* WhatsApp sur fond sombre */
	--ms-wa-ink: #1fa855;       /* WhatsApp sur fond clair (contraste) */
	--ms-tbd-bg: oklch(0.93 0.06 85);
	--ms-tbd-ink: oklch(0.40 0.08 70);
	--ms-ok-bg: oklch(0.95 0.04 160);
	--ms-err-bg: oklch(0.95 0.03 25);
	--ms-r-s: 6px;   /* boutons, champs */
	--ms-r-m: 10px;  /* options, vignettes, messages */
	--ms-r-l: 14px;  /* cartes, blocs */
	--ms-r-xl: 18px; /* photo principale, tuiles du héros */
	--ms-r-pill: 999px;
	--ms-shadow-1: 0 1px 2px oklch(0.29 0.08 252 / .06), 0 0 0 1px oklch(0.29 0.08 252 / .06);
	--ms-shadow-2: 0 18px 40px -22px oklch(0.29 0.08 252 / .28), 0 0 0 1px oklch(0.29 0.08 252 / .05);
	--ms-ease: cubic-bezier(.2, 0, 0, 1);
	--ms-gut: 16px;
	--ms-font: "gibson", ui-sans-serif, system-ui, sans-serif;
	--ms-w-body: 400;
}
@media (min-width: 768px) { :root { --ms-gut: 32px; } }

html { scroll-padding-top: 76px; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--ms-font);
	font-weight: var(--ms-w-body);
	color: var(--ms-ink);
	background: var(--ms-surface);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body :is(h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, .e-heading-base, .e-paragraph-base) { font-family: var(--ms-font); }
a { color: var(--ms-link); }
/* Anneau de focus de la marque, plus fort que ceux du thème parent et de WooCommerce (#11). */
body :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible,
body .ms-card:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 3px; border-radius: 4px; box-shadow: none; }
body :is(.ms-hero, .ms-footer, .ms-deliv-pay) :is(a, button, summary, [tabindex]):focus-visible { outline-color: var(--ms-accent-on-ink); }
body .ms-card:focus-visible { border-radius: var(--ms-r-l); }
.ms-num, .price, .amount { font-variant-numeric: tabular-nums; }
.ms-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--ms-gut); }
.ms-wrap > * { min-width: 0; }
.screen-reader-text:focus { z-index: 100; }

/* Information que M-Solution doit fournir */
.ms-tbd {
	display: inline-block; font-size: .8em; line-height: 1.3; padding: 1px 8px; border-radius: var(--ms-r-pill);
	background: var(--ms-tbd-bg); color: var(--ms-tbd-ink); font-weight: 600; white-space: nowrap;
}
.ms-on-dark .ms-tbd { background: oklch(0.45 0.07 80 / .5); color: oklch(0.95 0.05 85); }

/* Boutons du thème */
.ms-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px;
	border-radius: var(--ms-r-s); font: 600 16px/1 var(--ms-font); text-decoration: none; cursor: pointer; border: 0;
	transition: background-color .16s var(--ms-ease), transform .16s var(--ms-ease);
}
.ms-btn:active { transform: scale(.98); }
.ms-btn-s { background: oklch(1 0 0 / .6); color: var(--ms-ink); box-shadow: inset 0 0 0 1px oklch(0.29 0.08 252 / .2); }
.ms-btn-s:hover { background: var(--ms-surface); color: var(--ms-ink); }
.ms-btn svg { flex-shrink: 0; }

/* En-tête */
.ms-header {
	position: sticky; top: 0; z-index: 40;
	background: oklch(0.985 0.004 252 / .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid oklch(0.29 0.08 252 / .07);
}
.admin-bar .ms-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ms-header { top: 0; } }
.ms-hd { display: flex; align-items: center; gap: 28px; height: 68px; }
.ms-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ms-ink); font-weight: 600; font-size: 19px; white-space: nowrap; }
.ms-logo img { width: 42px; height: 30px; object-fit: contain; }
.ms-nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 24px; }
.ms-nav a { text-decoration: none; color: var(--ms-ink); font-size: 15px; padding: 8px 0; }
.ms-nav a:hover { color: var(--ms-link); }
.ms-hd-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ms-tel { display: none; font-size: 15px; text-decoration: none; color: var(--ms-ink); font-weight: 600; white-space: nowrap; }
.ms-tel:hover { color: var(--ms-link); }
#contact { scroll-margin-top: 96px; }
.ms-ib {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: var(--ms-r-s);
	border: 0; background: transparent; color: var(--ms-ink); cursor: pointer; text-decoration: none; position: relative; list-style: none;
}
.ms-ib:hover { background: var(--ms-surface-2); color: var(--ms-ink); }
.ms-ib::-webkit-details-marker { display: none; }
.ms-badge {
	position: absolute; top: 6px; right: 4px; background: var(--ms-ink); color: var(--ms-on-ink); font-size: 11px;
	min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; line-height: 1;
}
.ms-menu { position: relative; }
.ms-menu-panel {
	position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; background: var(--ms-surface);
	border-radius: var(--ms-r-l); box-shadow: var(--ms-shadow-2); padding: 8px;
}
.ms-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.ms-menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--ms-r-m); color: var(--ms-ink); text-decoration: none; font-size: 17px; }
.ms-menu-panel a:hover { background: var(--ms-surface-2); }
@media (min-width: 1024px) {
	.ms-nav ul { display: flex; }
	.ms-tel { display: inline; }
	.ms-m-only { display: none; }
}

/* Catalogue (shortcode [ms_catalogue]) */
.ms-needs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 24px; padding: 2px; }
.ms-need {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--ms-r-pill);
	border: 0; background: var(--ms-surface-2); color: var(--ms-ink); font: 500 15px/1.2 var(--ms-font); cursor: pointer;
	transition: background-color .16s var(--ms-ease);
}
.ms-need:hover { background: var(--ms-tint); color: var(--ms-ink); }
.ms-need[aria-pressed="true"] { background: var(--ms-ink); color: var(--ms-on-ink); }
.ms-need-desc { margin: 4px 0 20px; color: var(--ms-ink-2); max-width: 70ch; font-size: 16px; }
.ms-need-desc:empty { display: none; }
.ms-prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (min-width: 768px) { .ms-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ms-prods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
.ms-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ms-ink); }
.ms-card[hidden] { display: none; }
.ms-card:hover { color: var(--ms-ink); }
.ms-card .ms-im {
	position: relative; aspect-ratio: 1; border-radius: var(--ms-r-l); background: var(--ms-white); box-shadow: inset 0 0 0 1px var(--ms-line);
	display: grid; place-items: center; overflow: hidden; transition: box-shadow .16s var(--ms-ease);
}
.ms-card:hover .ms-im { box-shadow: inset 0 0 0 1px var(--ms-line), var(--ms-shadow-2); }
.ms-card .ms-im img { width: 80%; height: 80%; object-fit: contain; transition: transform .24s var(--ms-ease); }
.ms-card .ms-im img.ms-cov { width: 100%; height: 100%; object-fit: cover; }
.ms-card:hover .ms-im img { transform: translateY(-4px); }
.ms-card .ms-bd { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ms-card :is(h2, h3) { order: 1; font-size: 16px; font-weight: var(--ms-w-body); line-height: 1.3; margin: 0; color: var(--ms-ink); }
.ms-pr { order: 2; padding-top: 2px; font-size: 21px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; }
.ms-pr small { font-size: 13px; font-weight: var(--ms-w-body); color: var(--ms-ink-2); margin-left: 4px; letter-spacing: 0; }
.ms-pr-na { order: 2; padding-top: 2px; font-size: 15px; color: var(--ms-ink-2); }
.ms-pr-big .ms-pr { font-size: 34px; }
.ms-pr-big .ms-pr-na { font-size: 22px; font-weight: 600; color: var(--ms-ink); }
.ms-pr .ms-from { margin: 0 4px 0 0; }
.ms-bulk { order: 2; font-size: 13px; color: var(--ms-ok); font-weight: 600; }
.ms-bulk-line { flex-basis: 100%; font-size: 14px; color: var(--ms-ok); font-weight: 600; }
.ms-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ms-card .ms-ex { order: 3; display: block; font-size: 13px; line-height: 1.35; color: var(--ms-ink-2); }
.ms-packs { order: 4; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ms-packs span { font-size: 12px; padding: 4px 8px; border-radius: var(--ms-r-s); background: var(--ms-surface-2); }
.ms-more {
	margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-radius: var(--ms-r-l); background: var(--ms-surface-2);
}
.ms-more p { margin: 0; color: var(--ms-ink-2); }

/* Pied de page */
.ms-footer { background: var(--ms-ink-deep); color: var(--ms-on-ink-2); font-size: 15px; }
.ms-footer .ms-top { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 1024px) { .ms-footer .ms-top { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; } }
.ms-footer .ms-brand { display: flex; align-items: center; gap: 10px; color: var(--ms-on-ink); font-weight: 600; font-size: 19px; text-decoration: none; }
.ms-footer .ms-brand img { width: 44px; height: 34px; object-fit: contain; background: var(--ms-surface); border-radius: var(--ms-r-m); padding: 4px 5px; box-sizing: border-box; }
.ms-footer .ms-f-about { margin: 14px 0 0; max-width: 34ch; line-height: 1.55; }
.ms-footer .ms-f-h { margin: 0 0 12px; line-height: 1.4; color: var(--ms-on-ink); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.ms-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms-footer a { color: var(--ms-on-ink-2); text-decoration: none; }
.ms-footer a:hover { color: var(--ms-on-ink); }
.ms-wa-ic-dark { display: inline-flex; color: var(--ms-wa); }
/* Cibles tactiles de 44 px sur mobile et tablette (#15). */
@media (max-width: 1023px) {
	.ms-footer ul { gap: 0; }
	.ms-footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
}
.ms-footer .ms-f-tel { display: inline-block; color: var(--ms-on-ink); font-size: 22px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 6px; }
.ms-footer .ms-wa-l { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: var(--ms-r-pill); background: oklch(1 0 0 / .08); color: var(--ms-on-ink); }
.ms-footer .ms-f-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ms-footer .ms-f-pay span { font-size: 13px; padding: 5px 10px; border-radius: var(--ms-r-s); background: oklch(1 0 0 / .08); color: var(--ms-on-ink); }
.ms-footer .ms-bot {
	display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
	padding-top: 18px; padding-bottom: 96px; font-size: 13px;
	background: linear-gradient(oklch(1 0 0 / .12), oklch(1 0 0 / .12)) var(--ms-gut) 0 / calc(100% - 2 * var(--ms-gut)) 1px no-repeat;
}
@media (min-width: 1024px) { .ms-footer .ms-bot { padding-bottom: 24px; } }
.ms-footer .ms-bot nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Bouton WhatsApp flottant : questions seulement */
.ms-fab {
	position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; height: 52px;
	padding: 0 18px 0 14px; border-radius: 26px; background: var(--ms-surface); color: var(--ms-ink); font-weight: 600; font-size: 15px;
	text-decoration: none; box-shadow: 0 14px 30px -14px oklch(0.29 0.08 252 / .55), 0 0 0 1px oklch(0.29 0.08 252 / .08);
}
.ms-fab:hover { color: var(--ms-ink); }
.ms-fab svg { color: var(--ms-wa-ink); }
.woocommerce-checkout .ms-fab { display: none; }

/* ---------- Boutique : éléments communs ---------- */
.ms-btn-p { background: var(--ms-ink); color: var(--ms-on-ink); box-shadow: 0 10px 24px -14px oklch(0.29 0.08 252 / .7); }
.ms-btn-p:hover { background: var(--ms-link); color: var(--ms-on-ink); }
.ms-btn-wide { width: 100%; }
.woocommerce :is(a.button, button.button, input.button, #respond input#submit),
.woocommerce :is(a.button.alt, button.button.alt, input.button.alt) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
	border-radius: var(--ms-r-s); border: 0; background: var(--ms-ink); color: var(--ms-on-ink); font: 600 16px/1 var(--ms-font);
	text-decoration: none; transition: background-color .16s var(--ms-ease);
}
.woocommerce :is(a.button, button.button, input.button):hover,
.woocommerce :is(a.button.alt, button.button.alt, input.button.alt):hover { background: var(--ms-link); color: var(--ms-on-ink); }
.woocommerce :is(button.button, a.button).disabled,
.woocommerce :is(button.button, a.button):disabled { opacity: .5; background: var(--ms-ink); color: var(--ms-on-ink); }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0;
	padding: 14px 18px; border: 0; border-radius: var(--ms-r-m); background: var(--ms-surface-2); color: var(--ms-ink); font-size: 15px; list-style: none;
}
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }
.woocommerce .woocommerce-message { background: var(--ms-ok-bg); }
.woocommerce .woocommerce-error { background: var(--ms-err-bg); }
/* Plusieurs erreurs : une par ligne (#24). */
.woocommerce ul.woocommerce-error { display: block; }
.woocommerce ul.woocommerce-error li { margin: 4px 0; }
.woocommerce .woocommerce-message .button { order: 2; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.woocommerce .quantity .qty {
	width: 72px; height: 50px; border: 0; border-radius: var(--ms-r-s); background: var(--ms-white); box-shadow: inset 0 0 0 1px var(--ms-line);
	font: 500 17px var(--ms-font); color: var(--ms-ink); text-align: center;
}
.woocommerce :is(input.input-text, textarea, select), .woocommerce form .form-row :is(input.input-text, textarea) {
	min-height: 48px; padding: 10px 14px; border: 0; border-radius: var(--ms-r-s); background: var(--ms-white); box-shadow: var(--ms-shadow-1);
	font: 400 16px/1.4 var(--ms-font); color: var(--ms-ink); box-sizing: border-box;
}
.woocommerce form .form-row label { font-size: 15px; font-weight: 600; color: var(--ms-ink); margin-bottom: 6px; }
.woocommerce form .form-row .description { font-size: 13px; color: var(--ms-ink-2); margin-top: 4px; }
.woocommerce form .form-row .required { color: var(--ms-link); text-decoration: none; }
.woocommerce :is(input.input-text, textarea):focus { outline: 2px solid var(--ms-accent); outline-offset: 2px; }

/* ---------- Fiche produit ---------- */
.ms-pdp-page { padding-bottom: 72px; }
.ms-crumb { font-size: 14px; color: var(--ms-ink-2); padding: 18px 0 10px; }
.ms-crumb a { color: var(--ms-ink-2); text-decoration: none; }
.ms-crumb a:hover { color: var(--ms-link); }
.ms-pdp { display: grid; gap: 24px; padding-bottom: 56px; }
.ms-pdp > * { min-width: 0; }
@media (min-width: 1024px) {
	.ms-pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
	.ms-buy { position: sticky; top: 92px; }
}
.ms-gal { display: grid; gap: 10px; }
.ms-gal-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--ms-r-xl); overflow: hidden; background: var(--ms-white); box-shadow: inset 0 0 0 1px var(--ms-line); display: grid; place-items: center; }
@media (min-width: 1024px) { .ms-gal-main { aspect-ratio: 1; } }
.ms-gal-main img { width: 88%; height: 88%; object-fit: contain; }
.ms-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ms-thumbs button { background: var(--ms-white); border: 0; border-radius: var(--ms-r-m); aspect-ratio: 1; padding: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--ms-line); }
.ms-thumbs button[aria-current] { box-shadow: inset 0 0 0 2px var(--ms-ink); }
.ms-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ms-kick { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--ms-ink-2); }
.ms-pdp-title { font-size: 46px; font-weight: 600; line-height: 1.06; letter-spacing: -1.2px; margin: 10px 0; color: var(--ms-ink); }
@media (max-width: 767px) { .ms-pdp-title { font-size: 32px; letter-spacing: -.6px; } }
.ms-claim { color: var(--ms-ink-2); margin: 0 0 20px; max-width: 46ch; }
.ms-big-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 18px; }
.ms-big-price b { font-size: 40px; font-weight: 600; letter-spacing: -.8px; line-height: 1.1; }
.ms-big-price b.ms-na { font-size: 24px; letter-spacing: -.3px; }
.ms-big-price span { color: var(--ms-ink-2); font-size: 15px; }
.ms-big-price .ms-from { color: var(--ms-ink-2); font-size: 15px; }
.ms-cart-form form.cart { margin: 0 0 6px; }
.ms-cart-form form.cart:not(.variations_form), .ms-cart-form .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; }
.ms-cart-form .single_add_to_cart_button { flex: 1; }
.ms-cart-form form.variations_form.ms-enhanced table.variations { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ms-cart-form .reset_variations { display: none !important; }
.ms-cart-form .woocommerce-variation-price { display: none; }
.ms-cart-form .woocommerce-variation-description p { margin: 0 0 12px; font-size: 15px; color: var(--ms-ink-2); }
.ms-cart-form .woocommerce-variation-availability { display: none; }
.ms-opt-wrap { margin: 0 0 16px; }
.ms-opt-l { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--ms-ink-2); }
.ms-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-opt {
	min-height: 48px; padding: 10px 16px; border: 0; border-radius: var(--ms-r-m); background: var(--ms-surface); color: var(--ms-ink);
	font: 500 16px/1.2 var(--ms-font); box-shadow: inset 0 0 0 1px var(--ms-line); cursor: pointer;
	transition: box-shadow .16s var(--ms-ease), background-color .16s var(--ms-ease);
}
.ms-opt:hover { background: var(--ms-white); color: var(--ms-ink); }
.ms-cart-form button.ms-opt[aria-pressed="true"] { background: var(--ms-ink); color: var(--ms-on-ink); box-shadow: inset 0 0 0 2px var(--ms-ink); }
.ms-opt:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.ms-form-msg { margin: 8px 0 0; padding: 10px 14px; border-radius: var(--ms-r-m); background: var(--ms-err-bg); color: var(--ms-ink); font-size: 15px; }
.ms-alt { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.ms-alt a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ms-ink); text-decoration: none; }
.ms-alt a:hover { color: var(--ms-link); }
.ms-wa-ic { display: inline-flex; color: var(--ms-wa-ink); }
.ms-deliv { margin: 16px 0 0; border-radius: var(--ms-r-l); background: var(--ms-white); box-shadow: var(--ms-shadow-1); overflow: hidden; }
.ms-deliv p { margin: 0; }
.ms-deliv-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; font-size: 15px; font-weight: 600; }
.ms-deliv-h svg { color: var(--ms-link); }
.ms-deliv-t { padding: 0 16px 14px; font-size: 14px; color: var(--ms-ink-2); }
.ms-deliv-pay { padding: 12px 16px; background: var(--ms-ink); color: var(--ms-on-ink-2); font-size: 14px; }
.ms-deliv-pay b { color: var(--ms-on-ink); }
.ms-info { display: grid; gap: 12px; }
@media (min-width: 1024px) { .ms-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; } }
.ms-blk { background: var(--ms-surface-2); border-radius: var(--ms-r-l); padding: 22px; }
.ms-info > .ms-blk:only-child { grid-column: 1 / -1; max-width: 820px; }
.ms-blk h2 { font-size: 24px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 8px; color: var(--ms-ink); }
.ms-blk p, .ms-blk li { color: var(--ms-ink-2); font-size: 15px; }
.ms-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.ms-spec td { padding: 9px 0; border-top: 1px solid var(--ms-line); }
.ms-spec td:first-child { color: var(--ms-ink-2); }
.ms-spec td + td { text-align: right; }
.ms-qa details { border-top: 1px solid var(--ms-line); }
.ms-qa summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.ms-qa summary::-webkit-details-marker { display: none; }
.ms-qa summary::after { content: "+"; color: var(--ms-accent); font-size: 22px; line-height: 1; }
.ms-qa details[open] summary::after { content: "\2212"; }
.ms-qa details p { margin: 0 0 14px; }
.ms-related { padding: 56px 0 0; }
.ms-related h2 { font-size: 32px; font-weight: 600; letter-spacing: -.6px; margin: 0 0 24px; }
.ms-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 12px; align-items: center;
	padding: 10px var(--ms-gut); background: var(--ms-surface);
	box-shadow: 0 -1px 0 var(--ms-line), 0 -12px 24px -16px oklch(0.29 0.08 252 / .2);
}
.ms-sticky-p { font-weight: 600; font-size: 20px; line-height: 1.1; }
.ms-sticky-p small { display: block; font-weight: var(--ms-w-body); font-size: 12px; color: var(--ms-ink-2); }
.ms-sticky .ms-btn { flex: 1; }
@media (min-width: 1024px) { .ms-sticky { display: none; } }
@media (max-width: 1023px) {
	body.single-product .ms-fab { bottom: 84px; }
	body.single-product .ms-footer .ms-bot { padding-bottom: 150px; }
}

/* ---------- Panier et commande (pages classiques) ---------- */
.ms-shop-page { padding-top: 32px; padding-bottom: 96px; }
.ms-shop-page h1.ms-page-title { font-size: 44px; font-weight: 600; letter-spacing: -.9px; line-height: 1.08; margin: 0 0 24px; }
@media (max-width: 767px) { .ms-shop-page h1.ms-page-title { font-size: 30px; } }
.woocommerce table.shop_table { border: 0; border-radius: var(--ms-r-l); background: var(--ms-white); box-shadow: var(--ms-shadow-1); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table :is(th, td) { border-width: 1px 0 0 0; border-style: solid; border-color: var(--ms-line); padding: 14px 16px; background: transparent; }
.woocommerce table.shop_table tbody > tr:nth-child(odd) > :is(td, th), .woocommerce table.shop_table tfoot :is(td, th) { background: transparent; }
.woocommerce table.shop_table tfoot tr.order-total :is(th, td) { font-size: 18px; color: var(--ms-ink); }
body.woocommerce-checkout #billing_country_field { display: none !important; }
.woocommerce table.shop_table thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ms-ink-2); background: var(--ms-surface-2); }
.woocommerce table.shop_table img { width: 64px; border-radius: var(--ms-r-m); background: var(--ms-white); }
.woocommerce table.shop_table .product-name a { color: var(--ms-ink); font-weight: 600; text-decoration: none; }
.woocommerce table.cart td.actions .coupon { display: none; }
.woocommerce a.remove { color: var(--ms-ink-2) !important; font-weight: 400; }
.woocommerce a.remove:hover { background: var(--ms-surface-2); color: var(--ms-ink) !important; }
.woocommerce .cart-collaterals .cart_totals { width: 100%; max-width: 480px; float: right; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; margin: 24px 0 12px; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; font-size: 17px; }
.woocommerce-checkout .col2-set :is(.col-1, .col-2) { width: 100%; float: none; }
.woocommerce-checkout .woocommerce-additional-fields h3 { display: none; }
.woocommerce-checkout textarea#order_comments { min-height: 96px; }
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 56px; align-items: start; }
	/* Rangées explicites : la zone d'erreurs que WooCommerce ajoute en tête ne repousse pas le récapitulatif (#25). */
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; }
	.woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
	.woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 2; }
	.woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 3; }
}
.woocommerce-checkout #payment { background: var(--ms-surface-2); border-radius: var(--ms-r-l); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--ms-line); padding: 16px; }
.woocommerce-checkout #payment div.payment_box { background: var(--ms-white); color: var(--ms-ink-2); border-radius: var(--ms-r-m); font-size: 15px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--ms-white); }
.woocommerce-checkout #payment #place_order { width: 100%; font-size: 17px; min-height: 56px; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: 13px; color: var(--ms-ink-2); }
.woocommerce ul#shipping_method li label { font-weight: 500; }
.woocommerce-order { padding: 24px 0 72px; }
.woocommerce-order .woocommerce-thankyou-order-received { font-size: 22px; font-weight: 600; }
.wc-empty-cart-message + .return-to-shop, .cart-empty { margin-top: 12px; }

/* Boutique et familles */
.ms-shop-page .ms-crumb { padding-top: 0; }
.ms-lead-p { color: var(--ms-ink-2); max-width: 620px; margin: -12px 0 24px; }
.ms-back { margin: 28px 0 0; }
.ms-back a { font-weight: 600; color: var(--ms-link); }

/* ---------- Mouvement ---------- */
/* En-tête : ombre au défilement */
.ms-header { transition: box-shadow .24s var(--ms-ease), background-color .24s var(--ms-ease); }
.ms-header.is-scrolled { box-shadow: 0 8px 24px -18px oklch(0.29 0.08 252 / .45); }
/* Navigation : soulignement animé, état actif */
.ms-nav a { position: relative; transition: color .16s var(--ms-ease); }
.ms-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--ms-accent); transform: scaleX(0); transform-origin: left; transition: transform .24s var(--ms-ease);
}
.ms-nav a:hover::after { transform: scaleX(1); }
.ms-nav a[aria-current] { color: var(--ms-link); font-weight: 600; }
.ms-nav a[aria-current]::after { transform: scaleX(1); }
.ms-menu-panel a[aria-current] { background: var(--ms-surface-2); font-weight: 600; }
.ms-tel { position: relative; }

@keyframes ms-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ms-rise { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	/* Héros : une séquence au chargement (titre, texte, boutons, vitrine, promesses) */
	.ms-hero h1 { animation: ms-up .7s var(--ms-ease) backwards; }
	.ms-hero h1 + p { animation: ms-up .7s var(--ms-ease) .08s backwards; }
	.ms-hero :is(.ms-btn-light, .ms-btn-ghost) { animation: ms-up .7s var(--ms-ease) .16s backwards; }
	.ms-hero .ms-tile { animation: ms-rise .8s var(--ms-ease) backwards; }
	.ms-hero .ms-tile:nth-child(1) { animation-delay: .22s; }
	.ms-hero .ms-tile:nth-child(2) { animation-delay: .30s; }
	.ms-hero .ms-tile:nth-child(3) { animation-delay: .38s; }
	.ms-hero .ms-tile:nth-child(4) { animation-delay: .46s; }
	.ms-hero .ms-tile img { transition: transform .4s var(--ms-ease); }
	.ms-hero .ms-tile:hover img { transform: scale(1.04); }
	.ms-hero .ms-prom { animation: ms-up .7s var(--ms-ease) backwards; }
	.ms-hero .ms-prom:nth-child(1) { animation-delay: .55s; }
	.ms-hero .ms-prom:nth-child(2) { animation-delay: .62s; }
	.ms-hero .ms-prom:nth-child(3) { animation-delay: .69s; }
	/* Fiche produit : arrivée de la photo et du bloc d'achat */
	.ms-pdp .ms-gal { animation: ms-rise .8s var(--ms-ease) backwards; }
	.ms-pdp .ms-buy > * { animation: ms-up .6s var(--ms-ease) backwards; }
	.ms-pdp .ms-buy > :nth-child(2) { animation-delay: .06s; }
	.ms-pdp .ms-buy > :nth-child(3) { animation-delay: .12s; }
	.ms-pdp .ms-buy > :nth-child(n+4) { animation-delay: .18s; }
	/* Apparitions au défilement (classe posée par ms-site.js, seulement sous l'écran) */
	.ms-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ms-ease), transform .6s var(--ms-ease); transition-delay: var(--ms-d, 0ms); }
	.ms-rv.is-in { opacity: 1; transform: none; }
	/* Boutons : léger relief au survol */
	:is(.ms-btn-p, .ms-btn-s, .ms-btn-light, .ms-btn-ghost, .ms-btn) { transition: background-color .16s var(--ms-ease), transform .16s var(--ms-ease), box-shadow .16s var(--ms-ease); }
	:is(.ms-btn-p, .ms-btn-light, .ms-btn):hover { transform: translateY(-1px); }
}

/* Pages d'information */
.ms-legal { max-width: 760px; }
.ms-legal h2 { font-size: 24px; font-weight: 600; letter-spacing: -.3px; margin: 32px 0 8px; color: var(--ms-ink); }
.ms-legal p, .ms-legal li { color: var(--ms-ink-2); }
.ms-legal p { margin: 0 0 12px; }
.ms-legal a { color: var(--ms-link); }
.ms-legal-note { padding: 12px 16px; border-radius: var(--ms-r-m); background: var(--ms-surface-2); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Zones sûres de l'écran et navigation tactile. */
@media (max-width: 1023px) {
	.ms-fab {
		right: max(12px, env(safe-area-inset-right));
		bottom: calc(12px + env(safe-area-inset-bottom));
	}
	body.single-product .ms-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
	.ms-sticky {
		padding-inline: max(var(--ms-gut), env(safe-area-inset-left)) max(var(--ms-gut), env(safe-area-inset-right));
		padding-bottom: calc(10px + env(safe-area-inset-bottom));
	}
	.ms-sticky .ms-btn { min-width: 0; line-height: 1.18; white-space: normal; }
	.ms-sticky .ms-sticky-p { flex: none; white-space: nowrap; }
	.woocommerce .cart-collaterals .cart_totals { max-width: none; float: none; }
}

@media (max-width: 767px) {
	/* Les trois pages Elementor ont leur propre en-tête. */
	body #ms-design .top-row, body .ms-page .frame.top {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: auto;
		gap: 0 6px;
		padding-block: 4px 0;
	}
	body #ms-design .top nav, body .ms-page .frame.top nav {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-column: 1 / -1;
		order: 3;
		gap: 0;
		border-top: 1px solid var(--line);
	}
	body #ms-design .top nav a, body .ms-page .frame.top nav a { justify-content: center; }
	body #ms-design .top .brand, body .ms-page .top .brand { font-size: 18px; gap: 7px; }
	body #ms-design .hero-wrap { min-height: auto; padding-block: 26px 24px; }
	body #ms-design .hero-main, body #ms-design .compare-grid { grid-template-columns: minmax(0, 1fr); }
	body #ms-design .hero h1 { font-size: clamp(34px, 10vw, 54px); letter-spacing: -.065em; overflow-wrap: anywhere; }
	body #ms-design .actions { margin-block-start: 16px; gap: 4px 14px; }
	body #ms-design .stage { min-height: clamp(184px, 56vw, 315px); }
	body #ms-design .stage img { width: 72%; height: 91%; }
	body #ms-design figcaption a { flex: 0 0 44px; }
	body #ms-design .catalog { padding-block: 40px; }
	body #ms-design .card-link { min-height: 44px; }
	body #ms-design .choice a { min-width: 0; padding: 12px; overflow-wrap: anywhere; }
	body #ms-design footer .wrap, body .ms-page .page-footer .frame { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

	body .ms-page .hero { padding-block: 32px; }
	body .ms-page .hero h1 { font-size: clamp(36px, 10vw, 56px); }
	body .ms-page .contact-grid { grid-template-columns: minmax(0, 1fr); }
	.ms-needs { flex-wrap: wrap; overflow: visible; gap: 6px; }
	.ms-need { max-width: 100%; padding-inline: 12px; text-align: start; }
	.ms-card .ms-bd, .ms-card .ms-pr, .ms-card h3 { min-width: 0; overflow-wrap: anywhere; }
	.ms-hd { height: 58px; gap: 6px; }
	.ms-logo { gap: 6px; font-size: 18px; }
	.ms-logo img { width: 36px; }
	.ms-hd-r { flex: none; gap: 1px; }
	.ms-pdp-title { font-size: clamp(26px, 8vw, 34px); overflow-wrap: anywhere; }
	.ms-pdp { gap: 18px; padding-bottom: 36px; }
	.ms-cart-form select { max-width: 100%; }
	.ms-cart-form .quantity { flex: 0 0 auto; }
	.ms-cart-form .quantity .qty { width: 58px; }
	.ms-cart-form .single_add_to_cart_button { min-width: 0; padding-inline: 12px; line-height: 1.2; white-space: normal; }
	.woocommerce :is(form .form-row-first, form .form-row-last) { width: 100%; float: none; }
	.woocommerce :is(.woocommerce-checkout-review-order-table, .shop_table_responsive) td { overflow-wrap: anywhere; }
	.woocommerce .woocommerce-checkout-review-order-table :is(th, td) { padding-inline: 10px; }
	.woocommerce-checkout #payment #place_order { line-height: 1.22; white-space: normal; }
	body .ms-fab { justify-content: center; width: 48px; height: 48px; padding: 0; font-size: 0; }
}

@media (max-width: 359px) {
	.ms-logo { font-size: 16px; }
	.ms-logo img { width: 32px; }
	.ms-sticky .ms-sticky-p { font-size: 16px; }
	.ms-sticky .ms-btn { padding-inline: 10px; }
	#ms-design .choice { grid-template-columns: minmax(0, 1fr); }
}
