/* MetalStand – Front UX 1.0.0. Chaque bloc est limité à la classe de sa fonction sur <body> (ms-fux-<nom>). */

/* 2) Sélecteur de langue */
.ms-fux-lang .ms-lang.ms-fux-lang-ready .ms-lang__list,.ms-fux-lang nav.ms-fux-lang-ready>.ms-lang__list{display:none!important}
.ms-fux-lang .ms-fux-lang{position:relative;display:inline-block}
.ms-fux-lang .ms-fux-lang__btn{display:inline-flex;align-items:center;gap:.35em;background:transparent;border:1px solid var(--ms-bordure,#e7e7e7);border-radius:4px;padding:.3em .55em;font:inherit;font-size:.85rem;color:inherit;cursor:pointer;line-height:1.2}
.ms-fux-lang .ms-fux-flag{font-size:1.15em;line-height:1;font-family:"Twemoji Country Flags","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.ms-fux-lang .ms-fux-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor}
.ms-fux-lang .ms-fux-lang__menu{position:absolute;right:0;top:calc(100% + 4px);z-index:1000;min-width:10.5em;margin:0;padding:.3em 0;list-style:none;background:#fff;color:#232323;border:1px solid #d4d4d4;border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.ms-fux-lang .ms-fux-lang__menu[hidden]{display:none}
.ms-fux-lang .ms-fux-lang__menu a{display:flex;gap:.5em;align-items:center;padding:.45em .9em;color:inherit;text-decoration:none;font-size:.9rem;text-transform:none;letter-spacing:0;font-weight:500;white-space:nowrap}
.ms-fux-lang .ms-fux-lang__menu a:hover,.ms-fux-lang .ms-fux-lang__menu a:focus{background:#f2f2f2}
.ms-fux-lang .ms-fux-lang__menu a[aria-current]{font-weight:700}

/* 3) En-tête persistant */
.ms-fux-sticky header.site-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:999;background:#fff}
.ms-fux-sticky.ms-fux-scrolled header.site-header>.wp-block-group:first-child{display:none}
.ms-fux-sticky.ms-fux-scrolled header.site-header{box-shadow:0 2px 10px rgba(0,0,0,.08)}
@media (max-width:600px){.ms-fux-sticky .wp-block-navigation__responsive-container.is-menu-open{position:fixed}}

/* 4) 6) Cartes produits générées + onglets */
.ms-fux-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:0 0 1.5rem}
.ms-fux-tabs button{font:inherit;font-size:.85rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:.5em 1em;border:1px solid #232323;border-radius:4px;background:transparent;color:inherit;cursor:pointer}
.ms-fux-tabs button[aria-selected=true]{background:#232323;color:#fff}
.ms-fux-carte .ms3-carte__photo img{width:100%;aspect-ratio:1/1;object-fit:contain;height:auto;background:#fff}
.ms-fux-carte p{margin:.3em 0}
.ms-fux-cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ms-texte-secondaire,#5f646b)}
.ms-fux-nom a{color:inherit;text-decoration:none;font-weight:600}
.ms-fux-note{color:#b8860b;font-size:.85rem}.ms-fux-note span{color:#ccc}
.ms-fux-prix{font-weight:400}

/* 5) Galerie sur une seule ligne */
.ms-fux-gallery .ms3-galerie__grille.ms-fux-galerie{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-rows:1fr;gap:12px;overflow:hidden}
.ms-fux-gallery .ms-fux-galerie .ms3-galerie__photo{margin:0}
.ms-fux-gallery .ms-fux-galerie img{width:100%;height:100%;aspect-ratio:3/4;object-fit:cover}
@media (max-width:782px){.ms-fux-gallery .ms3-galerie__grille.ms-fux-galerie{grid-auto-columns:42%;overflow-x:auto;scroll-snap-type:x mandatory}.ms-fux-gallery .ms-fux-galerie .ms3-galerie__photo{scroll-snap-align:start}}

/* 7) Mode sombre */
.ms-fux-darkbtn{background:transparent;border:1px solid var(--ms-bordure,#e7e7e7);border-radius:4px;padding:.25em .5em;font-size:1rem;line-height:1.2;cursor:pointer;margin-left:.4rem}
.ms-fux-darkbtn--float{position:fixed;right:12px;bottom:12px;z-index:1001;background:#fff}
html[data-ms-theme=dark]{color-scheme:dark;
  --wp--preset--color--base:#15171a;--wp--preset--color--main:#e8e8e6;--wp--preset--color--tertiary:#1f2226;
  --wp--preset--color--secondary:#b0b5bb;--wp--preset--color--border-light:#2e3238;--wp--preset--color--border-dark:#41464d;
  --ms-texte-secondaire:#b0b5bb;--ms-bordure:#33373d}
html[data-ms-theme=dark] body.ms-fux-dark{background:#15171a!important;color:#e8e8e6!important}
html[data-ms-theme=dark] body.ms-fux-dark .site-header,html[data-ms-theme=dark] body.ms-fux-dark header.site-header{background:#1b1e22!important;box-shadow:0 1px 0 #2e3238}
html[data-ms-theme=dark] body.ms-fux-dark .site-header .wp-block-navigation__responsive-container{background:#1b1e22!important;color:#e8e8e6!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(h1,h2,h3,h4,.ms-logo a,.wp-block-navigation a,.ms3-titre,main a:not(.wp-element-button):not(.wp-block-button__link):not(.button)){color:#f0f0ee}
html[data-ms-theme=dark] body.ms-fux-dark :is(.has-base-background-color,.has-white-background-color,.has-tertiary-background-color,.ms3-bloc,.ms3-carte,.wc-block-components-sidebar,.wc-block-cart,.woocommerce-tabs){background-color:transparent}
html[data-ms-theme=dark] body.ms-fux-dark :is(.ms3-carte,.wc-block-components-panel,.wc-block-components-totals-wrapper){border-color:#33373d!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(input,select,textarea){background:#1f2226;color:#e8e8e6;border-color:#41464d}
html[data-ms-theme=dark] body.ms-fux-dark .ms-fux-tabs button{border-color:#e8e8e6}
html[data-ms-theme=dark] body.ms-fux-dark .ms-fux-tabs button[aria-selected=true]{background:#e8e8e6;color:#15171a}
html[data-ms-theme=dark] body.ms-fux-dark .ms-fux-lang__menu{background:#22262b;color:#e8e8e6;border-color:#41464d}
html[data-ms-theme=dark] body.ms-fux-dark .ms-fux-lang__menu a:hover{background:#2e3238}
html[data-ms-theme=dark] body.ms-fux-dark .wc-block-mini-cart__drawer .components-modal__content,html[data-ms-theme=dark] body.ms-fux-dark .wc-block-mini-cart__drawer{background:#1b1e22;color:#e8e8e6}
html[data-ms-theme=dark] body.ms-fux-dark img{filter:brightness(.92)}
/* Paiement : on ne touche pas aux iframes Stripe/PayPal, on leur laisse un fond clair lisible */
html[data-ms-theme=dark] body.ms-fux-dark :is(#payment,.wc-block-components-payment-methods,.wc-block-checkout__payment-method) iframe{background:#fff;border-radius:4px}
/* Mode sombre – lisibilité : bandeaux à fond acier clair gardent un texte foncé ; bouton contour visible ; textes secondaires plus clairs */
html[data-ms-theme=dark] body.ms-fux-dark .site-header .has-primary-background-color,html[data-ms-theme=dark] body.ms-fux-dark .site-header .has-primary-background-color *{color:#16181b!important}
html[data-ms-theme=dark] body.ms-fux-dark .is-style-outline>.wp-block-button__link,html[data-ms-theme=dark] body.ms-fux-dark .wp-block-button__link.is-style-outline{color:#f0f0ee!important;border-color:#f0f0ee!important;background:transparent!important}
html[data-ms-theme=dark] body.ms-fux-dark main p,html[data-ms-theme=dark] body.ms-fux-dark main li{color:#d6d7d5}
html[data-ms-theme=dark] body.ms-fux-dark .ms-fux-cat{color:#b0b5bb}

/* Étape 4 – sombre : bandeau de confiance, cartes, familles, image du haut, galerie produit sur fond sombre */
html[data-ms-theme=dark] body.ms-fux-dark .ms3-engagements,html[data-ms-theme=dark] body.ms-fux-dark .ms3-engagements :is(.ms3-eng__item,.ms3-eng__grille,.wp-block-group){background:#1b1e22!important;background-image:none!important}
html[data-ms-theme=dark] body.ms-fux-dark .ms3-engagements :is(h2,h3,p,a,span,.ms3-eng__titre,.ms3-eng__texte){color:#e8e8e6!important}
html[data-ms-theme=dark] body.ms-fux-dark .ms3-engagements :is(.ms3-icone,svg){color:#e8e8e6!important;stroke:currentColor}
html[data-ms-theme=dark] body.ms-fux-dark :is(.ms3-accueil,.ms3-accueil .wp-block-image,.ms3-accueil figure,.ms3-fam__item,.ms3-fam__item figure,.ms3-carte,.ms3-carte figure,.ms3-carte a,.ms3-galerie__grille figure,.wc-block-grid__product-image,.wc-block-components-product-image,.woocommerce-product-gallery,.woocommerce-product-gallery__image,.woocommerce-product-gallery__wrapper,.flex-control-thumbs li,.wp-block-woocommerce-product-image-gallery,.wc-block-product-gallery-large-image,.ms-fux-card,.ms-fux-card a){background-color:#1b1e22!important;background-image:none!important}
html[data-ms-theme=dark] body.ms-fux-dark img{background:transparent!important}
html[data-ms-theme=dark] body.ms-fux-dark.ms-fux-detoure-on img{filter:none}
/* Bouton soleil/lune : toujours visible en haut à droite, bureau et mobile */
.ms-fux-darkbtn{flex:0 0 auto;min-width:2.2em;min-height:2.2em;display:inline-flex;align-items:center;justify-content:center;position:relative;z-index:5}
html[data-ms-theme=dark] .ms-fux-darkbtn{border-color:#8a9097;background:#22262b;color:#f0f0ee}
@media (max-width:781px){.ms-fux-darkbtn{margin-left:.25rem;padding:.2em .4em}}
html[data-ms-theme=dark] body.ms-fux-dark :is(.ms3-mesure,.ms3-qui,.ms3-galerie,.ms3-familles,.ms3-produits){background-color:#15171b!important;background-image:none!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(.ms3-mesure,.ms3-qui) :is(h2,h3,p,li,span){color:#e8e8e6!important}

/* ===== Étape 5 ===== */
/* 9) filet de sécurité si un cache sert encore l'ancien message */
body.ms-fux-nopaylater .ppcp-messages{display:none!important}
/* 11) icônes de paiement */
.ms-payicons{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:.75em 0 0;color:#6b6f75;opacity:.85}
.ms-payicons svg{display:block;width:40px;height:27px}
html[data-ms-theme=dark] body.ms-fux-dark .ms-payicons{color:#c3c7cd}
/* 12) pied de page minimaliste */
body.ms-fux-footermini footer.site-footer>.wp-block-group{padding-top:var(--wp--preset--spacing--medium,1.5rem)!important;padding-bottom:var(--wp--preset--spacing--small,1rem)!important;border-top-width:2px!important}
body.ms-fux-footermini footer.site-footer{font-size:.8125rem;line-height:1.45;font-weight:300}
body.ms-fux-footermini footer.site-footer .wp-block-columns{gap:1.25rem 2rem;max-width:1080px;margin-left:auto;margin-right:auto}
body.ms-fux-footermini footer.site-footer .wp-block-column{flex-basis:auto!important;flex-grow:0;min-width:0;max-width:300px}
body.ms-fux-footermini footer.site-footer h2{font-size:1rem!important;font-weight:500;margin:0 0 .4em;letter-spacing:.01em}
body.ms-fux-footermini footer.site-footer p,body.ms-fux-footermini footer.site-footer li{font-size:.8125rem!important;line-height:1.45;font-weight:300;margin-top:0;margin-bottom:.25em}
body.ms-fux-footermini footer.site-footer .ms-eyebrow{font-size:.6875rem!important;font-weight:500;letter-spacing:.08em;margin-bottom:.4em}
body.ms-fux-footermini footer.site-footer ul{margin:0;padding:0}
body.ms-fux-footermini footer.site-footer a{font-weight:300}
body.ms-fux-footermini footer.site-footer .ms-newsletter input{font-size:.8125rem;padding:.35em .6em;min-height:0}
body.ms-fux-footermini footer.site-footer .wp-block-group>*+*{margin-block-start:.75rem}
@media (max-width:781px){body.ms-fux-footermini footer.site-footer .wp-block-column{max-width:none;flex-basis:100%!important}body.ms-fux-footermini footer.site-footer .wp-block-columns{gap:1rem}}

/* ===== Étape 5 : mode sombre fiche, panier, paiement, compte, boutique ===== */
html[data-ms-theme=dark] body.ms-fux-dark main :is(.has-tertiary-background-color,.has-base-background-color,.has-white-background-color,.has-secondary-background-color,.has-background):not(.has-primary-background-color){background-color:#1b1e22!important;background-image:none!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(.ms-plate,.ms-other-size,.ms-card,li.wc-block-product,table.variations,table.variations th,table.variations td,.woocommerce-tabs ul.tabs li,.woocommerce-tabs .panel,.wc-block-product-categories,.wc-block-product-categories-list,.wc-block-product-categories-list-item,.wc-block-mini-cart__footer,.wc-block-mini-cart__template-part,.wc-blocks-components-select__container,.wc-block-components-notice-banner,.ms-douane,.wc-block-cart-items,.wc-block-cart-items__row,.wc-block-components-sidebar,.wc-block-components-totals-wrapper,.wc-block-components-order-summary,.wc-block-checkout__sidebar,.wc-block-components-checkout-step,.wc-block-components-radio-control__option,.wc-block-components-radio-control-accordion-option,.wc-block-components-panel,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.woocommerce-form-login,.woocommerce-form-register,.woocommerce-info,.woocommerce-message,.woocommerce-error,.woocommerce table.shop_table,.cr-reviews-ajax-reviews,.cr-summaryBox-wrap,.wc-block-components-textarea){background-color:#1b1e22!important;background-image:none!important;border-color:#33373d!important;color:#e8e8e6!important}
html[data-ms-theme=dark] body.ms-fux-dark .woocommerce-tabs ul.tabs li.active{background-color:#2a2e34!important;border-bottom-color:#2a2e34!important}
html[data-ms-theme=dark] body.ms-fux-dark .woocommerce-tabs ul.tabs::before,html[data-ms-theme=dark] body.ms-fux-dark .woocommerce-tabs ul.tabs li::before,html[data-ms-theme=dark] body.ms-fux-dark .woocommerce-tabs ul.tabs li::after{border-color:#33373d!important;box-shadow:none!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(.ms-plate,.ms-other-size,.ms-card,li.wc-block-product,table.variations,.woocommerce-tabs,.wc-block-product-categories,.wc-block-mini-cart__footer,.wc-block-components-notice-banner,.ms-douane,.wc-block-cart,.wc-block-checkout,.woocommerce-MyAccount-content,.woocommerce-form-login,.wp-block-woocommerce-product-price,.wc-block-components-product-price,.wc-block-breadcrumbs,.woocommerce-breadcrumb,.wp-block-post-title,.product_title,.price,.wc-block-components-totals-item,.wc-block-components-product-name,.wc-block-components-product-metadata,.wc-block-components-checkout-step__description) :is(p,span,a:not(.button):not(.wp-element-button):not(.wp-block-button__link),label,th,td,li,h1,h2,h3,h4,small,bdi,strong,em,div){color:#e8e8e6!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(.woocommerce-breadcrumb,.wc-block-breadcrumbs,.wc-block-breadcrumbs a,.woocommerce-breadcrumb a){color:#c3c7cd!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(main .wp-block-post-title,main .product_title,main h1){color:#f0f0ee!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){background-color:#1f2226!important;color:#e8e8e6!important;border-color:#41464d!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(.wc-block-components-text-input label,.wc-blocks-components-select__label,.wc-block-components-combobox label){color:#b0b5bb!important}
html[data-ms-theme=dark] body.ms-fux-dark select option{background:#1f2226;color:#e8e8e6}
html[data-ms-theme=dark] body.ms-fux-dark .ms-logo__tld{color:#8a9097!important}
html[data-ms-theme=dark] body.ms-fux-dark footer.site-footer .ms-eyebrow{color:#9aa0a7!important}
html[data-ms-theme=dark] body.ms-fux-dark .wc-block-product-categories-list-item>a{background-color:#1b1e22!important;border-color:#41464d!important;color:#e8e8e6!important}
html[data-ms-theme=dark] body.ms-fux-dark .wc-block-product-categories-list-item>a:hover,html[data-ms-theme=dark] body.ms-fux-dark .wc-block-product-categories-list-item.is-current>a{background-color:#2a2e34!important}

/* === Étape 5b : secours express fiche + champs de formulaire en sombre === */
body.ms-fux-noexpressfiche.single-product .ppc-button-wrapper,
body.ms-fux-noexpressfiche.single-product #ppc-button-ppcp-gateway,
body.ms-fux-noexpressfiche.single-product .ppcp-button-apm,
body.ms-fux-noexpressfiche.single-product #wc-stripe-express-checkout-element,
body.ms-fux-noexpressfiche.single-product .wc-stripe-product-checkout-container,
body.ms-fux-noexpressfiche.single-product #wc-stripe-payment-request-wrapper,
body.ms-fux-noexpressfiche.single-product #wc-stripe-payment-request-button-separator{display:none!important}
[data-ms-theme="dark"] .ms-payicons{color:#c9ced4}
[data-ms-theme="dark"] .tnp-subscription input.tnp-email,[data-ms-theme="dark"] input.tnp-email,
[data-ms-theme="dark"] input[type="email"],[data-ms-theme="dark"] input[type="text"],[data-ms-theme="dark"] input[type="password"],
[data-ms-theme="dark"] input[type="tel"],[data-ms-theme="dark"] input[type="search"],[data-ms-theme="dark"] input[type="number"],
[data-ms-theme="dark"] input.qty,[data-ms-theme="dark"] select,[data-ms-theme="dark"] textarea,
[data-ms-theme="dark"] .wc-block-components-text-input input,[data-ms-theme="dark"] .wc-block-components-quantity-selector,
[data-ms-theme="dark"] .wc-block-components-quantity-selector input,[data-ms-theme="dark"] .wp-block-search__input,
[data-ms-theme="dark"] .wc-blocks-components-select__select,[data-ms-theme="dark"] .wc-block-components-combobox-control input{
background:#24282d!important;border:1px solid #3a3f46!important;color:#e8e8e6!important;-webkit-text-fill-color:#e8e8e6}
[data-ms-theme="dark"] input::placeholder,[data-ms-theme="dark"] textarea::placeholder{color:#9aa0a7!important;opacity:1;-webkit-text-fill-color:#9aa0a7}
[data-ms-theme="dark"] .wc-block-components-text-input label,[data-ms-theme="dark"] .wc-block-components-quantity-selector button{color:#c9ced4!important}
[data-ms-theme="dark"] input:focus,[data-ms-theme="dark"] select:focus,[data-ms-theme="dark"] textarea:focus{outline:2px solid #8a9097;outline-offset:1px}
[data-ms-theme="dark"] input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #24282d inset!important;-webkit-text-fill-color:#e8e8e6}

/* ===== 14) showcase (étape 6) ===== */
.ms-fux-showcase .ms-sc,.ms-fux-showcase .ms-sc-car{--sc-fg:#1d1d1f;--sc-mut:#6b6b70;--sc-card:#f5f5f7;--sc-line:#d2d2d7;--sc-acc:#1d1d1f;--sc-acc-fg:#fff}
html[data-ms-theme="dark"] .ms-fux-showcase .ms-sc,html[data-ms-theme="dark"] .ms-fux-showcase .ms-sc-car{--sc-fg:#ececf0;--sc-mut:#a1a1a8;--sc-card:#1e2226;--sc-line:#3a3f46;--sc-acc:#ececf0;--sc-acc-fg:#121416}
.ms-fux-showcase .ms-sc{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,2fr);gap:40px;max-width:1200px;margin:32px auto 48px;padding:0 20px;color:var(--sc-fg);align-items:start}
.ms-sc__media{display:grid;gap:16px}.ms-sc__fig{margin:0}.ms-sc__fig img{display:block;width:100%;height:auto;border-radius:10px}
.ms-sc__info{position:sticky;top:110px}
.ms-sc__by{margin:0;color:var(--sc-mut);text-transform:uppercase;font-size:.78rem;letter-spacing:.08em}
.ms-sc__name{margin:.15em 0 .5em;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.15;color:var(--sc-fg)}
.ms-sc__desc{margin:0 0 1em;line-height:1.55}
.ms-sc__links{list-style:none;margin:0 0 1em;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ms-sc__links a{display:inline-block;padding:6px 14px;border:1px solid var(--sc-line);border-radius:999px;color:var(--sc-fg);text-decoration:none;font-size:.9rem}
.ms-sc__links a:hover{border-color:var(--sc-fg)}
.ms-sc__h2{font-size:1.05rem;margin:1.6em 0 .6em;color:var(--sc-fg)}
.ms-sc__custom{color:var(--sc-mut);margin:0 0 .8em}
.ms-sc__prod{display:grid;grid-template-columns:76px 1fr;gap:10px 14px;align-items:center;background:var(--sc-card);border-radius:10px;padding:12px;margin:0 0 12px}
.ms-sc__pimg img{display:block;width:76px;height:76px;object-fit:contain;border-radius:6px;background:#fff}
.ms-sc__pname{display:block;color:var(--sc-fg);font-weight:600;text-decoration:none;margin-bottom:4px}
.ms-sc__price{color:var(--sc-mut);font-size:.95rem}
.ms-sc__btn{grid-column:1/-1;display:block;text-align:center;background:var(--sc-acc);color:var(--sc-acc-fg)!important;padding:11px 18px;border-radius:6px;text-decoration:none;font-weight:600}
.ms-sc__btn:hover{opacity:.88}
.ms-sc__back a{color:var(--sc-mut)}
.ms-fux-showcase .ms-sc-car{max-width:1200px;margin:40px auto;padding:0 20px;clear:both;color:var(--sc-fg)}
.ms-sc-car h2{font-size:1.3rem;margin:0 0 14px}
.ms-sc-car__track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px;scrollbar-width:thin}
.ms-sc-car__item{flex:0 0 190px;scroll-snap-align:start;color:var(--sc-fg);text-decoration:none}
.ms-sc-car__item img{display:block;width:190px;height:250px;object-fit:cover;border-radius:8px}
.ms-sc-car__item span{display:block;margin-top:6px;font-size:.88rem;line-height:1.3}
@media (max-width:820px){.ms-fux-showcase .ms-sc{grid-template-columns:1fr;gap:20px}.ms-sc__info{position:static}}

/* ===== 1.3.1 (03/11) : mise en page pleine largeur, paiement 2 colonnes, pied de page, express masqué, contraste sombre, index showcase ===== */
body.ms-fux-footermini{display:block!important}
body.ms-fux-footermini .wp-site-blocks{width:100%;max-width:none}
body.ms-fux-footermini{--wp--style--global--content-size:1200px;--wp--style--global--wide-size:1320px}
body.ms-fux-footermini main .is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width:min(1200px,100%)}
body.ms-fux-footermini main{padding-left:clamp(16px,3vw,32px);padding-right:clamp(16px,3vw,32px)}
body.ms-fux-footermini main :is(.wp-block-post-content,.entry-content)>p,body.ms-fux-footermini main :is(.wp-block-post-content,.entry-content)>ul,body.ms-fux-footermini main :is(.wp-block-post-content,.entry-content)>ol{max-width:min(1200px,100%)}
.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart{max-width:1320px!important;width:100%;margin-left:auto!important;margin-right:auto!important}
@media (min-width:900px){.wc-block-checkout.wc-block-components-sidebar-layout,.wc-block-cart.wc-block-components-sidebar-layout{display:flex!important;flex-wrap:nowrap}.wc-block-checkout .wc-block-components-main{width:62%!important;padding-right:4%}.wc-block-checkout .wc-block-components-sidebar{width:38%!important}}
body.ms-fux-footermini footer,body.ms-fux-footermini .wp-site-blocks>footer{width:100%;max-width:none;margin-left:0;margin-right:0}
body.ms-fux-footermini footer>.wp-block-group{max-width:1320px;margin-left:auto;margin-right:auto}
.ms-withdraw-footer{width:100%;text-align:center;padding:10px 16px!important;font-size:14px!important}
.ms-withdraw-footer.ms-wd-in{border-top:1px solid rgba(127,127,127,.25)}
.wc-block-components-express-payment,.wc-block-components-express-payment-continue-rule,.wp-block-woocommerce-cart-express-payment-block,.wp-block-woocommerce-checkout-express-payment-block,#ppc-button-googlepay-container,#ppc-button-applepay-container,#ppc-button-googlepay-container-minicart,#ppc-button-applepay-container-minicart,#wc-stripe-express-checkout-element,#wc-stripe-payment-request-wrapper{display:none!important}
html[data-ms-theme=dark] body.ms-fux-dark :is(a.added_to_cart,a.wc-forward,.wc-block-components-product-button__button+a,.wc-block-mini-cart__footer a,.woocommerce-message a,.wc-block-components-notice-banner a){color:#f0f0ee!important;border-color:#f0f0ee!important;background:transparent!important;text-decoration:underline}
html[data-ms-theme=dark] body.ms-fux-dark .ms-withdraw-footer a{color:#e8e8e6}
.ms-sc-idx{--sc-fg:#1d1d1f;--sc-mut:#6b6b70;--sc-card:#f5f5f7;max-width:1320px;margin:32px auto 56px;padding:0 20px;color:var(--sc-fg)}
html[data-ms-theme=dark] .ms-sc-idx{--sc-fg:#ececf0;--sc-mut:#a1a1a8;--sc-card:#1e2226}
.ms-sc-idx__h1{margin:0 0 8px}.ms-sc-idx__intro{color:var(--sc-mut);margin:0 0 28px}
.ms-sc-idx__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.ms-sc-idx__item a{display:flex;flex-direction:column;gap:6px;background:var(--sc-card);border-radius:10px;overflow:hidden;color:var(--sc-fg);text-decoration:none;height:100%}
.ms-sc-idx__item img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.ms-sc-idx__name{font-weight:600;padding:4px 12px 0}.ms-sc-idx__desc{font-size:14px;color:var(--sc-mut);padding:0 12px 12px}
.ms-sc-idx__item a:hover img{opacity:.9}

.ms-rel{--r-fg:#1d1d1f;--r-mut:#6b6b70;--r-card:#f5f5f7;--r-line:#d2d2d7;max-width:1320px;margin:0 auto 48px;color:var(--r-fg)}
html[data-ms-theme=dark] .ms-rel{--r-fg:#ececf0;--r-mut:#a1a1a8;--r-card:#1e2226;--r-line:#3a3f46}
.ms-rel__tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;justify-content:center}
.ms-rel__tabs button{font:inherit;padding:8px 16px;border:1px solid var(--r-fg);border-radius:999px;background:transparent;color:var(--r-fg);cursor:pointer}
.ms-rel__tabs button[aria-selected=true]{background:var(--r-fg);color:var(--r-card)}
.ms-rel__tabs button:focus-visible{outline:2px solid var(--r-mut);outline-offset:2px}
.ms-rel__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
@media (max-width:820px){.ms-rel__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ms-rel__item a{display:flex;flex-direction:column;gap:6px;background:var(--r-card);border-radius:10px;overflow:hidden;color:var(--r-fg);text-decoration:none;height:100%;padding-bottom:12px}
.ms-rel__item img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;display:block}
.ms-rel__name{font-weight:600;padding:0 12px}.ms-rel__price{color:var(--r-mut);padding:0 12px;font-size:15px}

/* 1.3.1 : newsletter masquee (pas encore de blog) ; ancien bandeau de renonciation remplace par le lien dans la liste legale */
.wp-block-column:has(> .ms-newsletter),.ms-newsletter,.tnp-subscription{display:none!important}
footer .wp-block-columns:has(.ms-newsletter){justify-content:space-between}
body:has(.ms-withdraw-li) .ms-withdraw-footer{display:none!important}
.ms-withdraw-li a{color:inherit}
html[data-ms-theme=dark] .ms-withdraw-li a{color:#e8e8e6}
/* 1.3.1 : fond du pied de page sur toute la largeur (clair et sombre) */
html[data-ms-theme=dark],html[data-ms-theme=dark] body{background:#15171a!important}
footer.site-footer,footer.wp-block-template-part{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
footer.site-footer>.wp-block-group.alignfull{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
html[data-ms-theme=dark] body.ms-fux-dark footer.site-footer,html[data-ms-theme=dark] body.ms-fux-dark footer.site-footer>.wp-block-group{background-color:#1b1e22!important}
html[data-ms-theme=dark] body.ms-fux-dark .wp-site-blocks{background:#15171a}
.ms-rel__item a{height:auto}.ms-rel__price,.ms-rel__price *{display:inline!important;margin:0!important;padding:0!important;font-size:inherit;color:var(--r-mut)!important;background:none!important}.ms-rel__price{display:block!important;padding:0 12px!important}
.ms-co-gate{max-width:1200px;margin:0 auto 24px;padding:20px 24px;border:1px solid #d2d2d7;border-radius:10px;background:#f5f5f7;color:#1d1d1f}
.ms-co-gate h2{margin:0 0 8px}.ms-co-gate p{margin:0}
html[data-ms-theme=dark] .ms-co-gate{background:#1b1e22;border-color:#33373d;color:#e8e8e6}
.woocommerce-account:not(.logged-in) .u-columns.col2-set{display:flex;gap:32px;flex-wrap:wrap}
.woocommerce-account:not(.logged-in) .u-columns.col2-set>.u-column1,.woocommerce-account:not(.logged-in) .u-columns.col2-set>.u-column2{flex:1 1 360px;float:none;width:auto}
/* 1.3.2 bandeau de titre (Mon compte, pages) et en-tête de boutique en mode sombre */
html[data-ms-theme=dark] body .ms-bandeau-titre,html[data-ms-theme=dark] body.woocommerce-shop main>.has-tertiary-background-color:first-child,html[data-ms-theme=dark] body.tax-product_cat main>.has-tertiary-background-color:first-child{background-color:#1b1e22!important;background-image:none!important;color:#e8e6e3}
html[data-ms-theme=dark] body .ms-bandeau-titre :is(h1,.wp-block-post-title),html[data-ms-theme=dark] body main>.has-tertiary-background-color:first-child :is(h1,.wp-block-query-title){color:#f2efe9!important}
/* 1.3.3 contraste bandeau titre en thème clair : texte foncé sur fond acier clair (commun.css) ; le mode sombre reste L224–225 */
html:not([data-ms-theme=dark]) body .ms-bandeau-titre,html:not([data-ms-theme=dark]) body .ms-bandeau-titre :is(h1,.wp-block-post-title),html:not([data-ms-theme=dark]) body.woocommerce-shop main>.has-tertiary-background-color:first-child :is(h1,.wp-block-query-title),html:not([data-ms-theme=dark]) body.tax-product_cat main>.has-tertiary-background-color:first-child :is(h1,.wp-block-query-title),html:not([data-ms-theme=dark]) body main>.has-tertiary-background-color:first-child :is(h1,.wp-block-query-title){color:#1a1a1a!important}
/* 1.3.2 famille Pièces détachées et accessoires */
.ms-fam-pieces{padding:0 var(--wp--preset--spacing--medium,24px) var(--wp--preset--spacing--x-large,56px)}
.ms-fam-pieces__in{max-width:1200px;margin:0 auto;border-top:1px solid var(--wp--preset--color--border-light,#ddd);padding-top:28px;text-align:center}
.ms-fam-pieces__titre{font-size:1.25rem;margin:0 0 6px}.ms-fam-pieces__titre a{color:inherit;text-decoration:none}
.ms-fam-pieces p{margin:0 0 14px;color:var(--wp--preset--color--secondary,#666);font-size:.95rem}
.ms-fam-pieces__imgs{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-bottom:12px}
.ms-fam-pieces__img img{width:120px;height:120px;object-fit:contain;display:block}
.ms-fam-pieces__lien a{font-weight:600}
html[data-ms-theme=dark] .ms-fam-pieces p{color:#b9b4ab}

/* 157, 21/11/2026 : cartes de l'accueil calées sur les catégories.
   La collection force le titre en taille « small » ; sans ça, le titre de l'accueil reste en « medium » (trop grand).
   Le bouton prend toute la largeur, comme sur la catégorie. Le tirage au sort reste dans le script.
   Retrait : supprimer ce bloc. */
.home .ms3-produits__grille .ms-fux-carte.ms-card{display:flex;flex-direction:column;block-size:100%;box-sizing:border-box}
.home .ms3-produits__grille .ms-fux-carte .wp-block-post-title,
.home .ms3-produits__grille .ms-fux-carte .wp-block-post-title.has-medium-font-size,
.home .ms3-produits__grille .ms-fux-carte .wp-block-post-title a{font-size:var(--wp--preset--font-size--small)!important;font-family:var(--wp--preset--font-family--display);font-weight:700!important;letter-spacing:.01em;line-height:1.25;text-transform:uppercase;text-decoration:none;color:inherit}
.home .ms3-produits__grille .ms-fux-carte .wp-block-post-title{min-block-size:3.8em;margin:.55rem 0 .25rem}
.home .ms3-produits__grille .ms-fux-carte .ms-fux-prix{margin-top:auto;font-weight:430;font-size:var(--wp--preset--font-size--small)}
.home .ms3-produits__grille .ms-fux-carte .wp-block-woocommerce-product-button{margin-top:.35rem;width:100%}
.home .ms3-produits__grille .ms-fux-carte .wp-block-button__link{display:flex;width:100%;box-sizing:border-box;justify-content:center;align-items:center;padding:.35rem .5rem;line-height:1.6;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:#fff}
