/* MetalStand.art : style commun à toutes les pages, sur le modèle de l'accueil v3 (harmonisation du 16/10/2026).
   Chargé partout (functions.php, msv2_enqueue), juste après style.css. accueil.css n'ajoute ensuite que les blocs propres à l'accueil.
   Palette claire : theme.json. Ici : en-tête, boutons, bandeaux, titres, largeurs, espacements, cartes, bas de page.
   Aucune règle sur les moyens de paiement. */

:root{--ms-brossage:repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 1px,rgba(0,0,0,0) 1px 4px);--ms-texte-secondaire:#5f646b;--ms-bordure:#e7e7e7}
body{background:#fff;color:#232323}

/* En-tête : bande fine argentée, puis bande blanche (comme l'accueil) */
.site-header{background:#fff;box-shadow:0 1px 0 #ececec}
.site-header .has-primary-background-color{background:var(--ms-brossage),var(--wp--preset--gradient--acier-argent)!important;color:#16181B!important}
.ms-logo__tld{color:#5A6068}
.ms-lang__item.is-current a{background:var(--wp--preset--gradient--acier-anthracite);color:#fff}

/* Boutons : anthracite brossé, coins légèrement arrondis ; bouton « contour » noir sur fond clair */
.wp-element-button,.wp-block-button__link,.wc-block-components-button:not(.is-link),.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:4px}
.wp-element-button:not(.is-style-outline *),.wp-block-button:not(.is-style-outline)>.wp-block-button__link,
.wc-block-components-button:not(.is-link):not(.outlined),.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.ms-newsletter input[type=submit],.ms-newsletter .tnp-submit{
	background:var(--ms-brossage),var(--wp--preset--gradient--acier-anthracite);color:#fff;border:1px solid #2E3338}
.wp-element-button:not(.is-style-outline *):hover,.wp-block-button:not(.is-style-outline)>.wp-block-button__link:hover,
.wc-block-components-button:not(.is-link):not(.outlined):hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--wp--preset--gradient--acier-anthracite);filter:brightness(.88);color:#fff}
.is-style-outline .wp-block-button__link{color:#232323;border-color:#232323;background:transparent}
.ms-gallery .ms-button{color:#232323;border-color:#232323;border-radius:4px}

/* Bandeau de titre en haut des pages : gris clair brossé, comme le bandeau « engagements » de l'accueil */
.ms-bandeau-titre,
main>.alignfull.has-tertiary-background-color:first-child{background:var(--ms-brossage),var(--wp--preset--gradient--acier-clair)!important;border-bottom:1px solid #e2e5e9;padding:48px 24px 40px!important}
.ms-bandeau-titre>*,main>.alignfull.has-tertiary-background-color:first-child>*{max-width:1140px}

/* Titres des autres pages : mêmes tailles que l'accueil (sur l'accueil, accueil.css s'en charge) */
body:not(.home) main h1,body:not(.home) main .wp-block-post-title,body:not(.home) main .wp-block-query-title{font-size:clamp(1.9rem,3.6vw,2.9rem)!important;line-height:1.12!important;letter-spacing:.01em}
body:not(.home) main h2{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.2;letter-spacing:.02em}
body:not(.home) main h3{font-size:clamp(1.15rem,1.8vw,1.35rem);line-height:1.25}
.ms-page__contenu p,.ms-page__contenu li{color:#3a3d42}

/* Espacements : mêmes blocs que l'accueil (64 points en haut et en bas, 24 sur les côtés) */
.ms-page__contenu{padding:64px 24px!important}
.ms-page__contenu>.wp-block-post-content>*+*{margin-block-start:1.1em}
.ms-page__contenu>.wp-block-post-content>h2{margin-block-start:2em}

/* Cartes produits et zones claires : blanches, fine bordure, coins arrondis (cartes de l'accueil) */
.ms-card{background:#fff;border:1px solid var(--ms-bordure);border-radius:6px}
.wc-block-product-template>li,.wc-block-grid__product,ul.products li.product{background:#fff;border:1px solid var(--ms-bordure);border-radius:6px;overflow:hidden}
.ms-chips a{border:1px solid #d4d4d4;border-radius:4px;color:#232323;background:#fff}
.ms-chips a:hover{border-color:#3A3F45;color:#3A3F45}
.ms-specs li,.ms-ruler li{border-color:#3A3F45}
.ms-other-size{border:1px solid #d4d4d4;border-radius:6px;background:#f6f6f6}
.ms-creations .wp-block-post,.ms-reviews__figure{background:#fff;border:1px solid var(--ms-bordure);border-radius:6px}
.ms-gallery__img{border-radius:6px}

/* Formulaires et tableaux : fonds clairs, bordures fines */
body:not(.home) main :is(input[type=text],input[type=email],input[type=tel],input[type=number],textarea,select){background:#fff;color:#232323;border:1px solid #d4d4d4;border-radius:4px}
main table{background:#fff}
main th,main td{border-color:#e7e7e7}
.wp-block-details{border-bottom:1px solid #e2e5e9}

/* Lettre de l'atelier : bouton anthracite (le style de l'extension est plus précis, d'où « body ») */
body .ms-newsletter input[type=submit],body .ms-newsletter .tnp-submit{background:var(--wp--preset--gradient--acier-anthracite);color:#fff}

/* Bas de page : gris clair brossé, comme l'accueil */
.site-footer{background:var(--ms-brossage),var(--wp--preset--gradient--acier-clair);border-top:1px solid #d4d8dc}

/* Téléphone : mêmes marges que l'accueil */
@media (max-width:781px){
 .ms-page__contenu{padding:44px 16px!important}
 .ms-bandeau-titre,main>.alignfull.has-tertiary-background-color:first-child{padding:32px 16px 28px!important}
}

/* Mini-panier (tiroir « Votre panier » du bloc Mini-Cart de WooCommerce), 16/10/2026.
   Le tiroir est tenu en haut ET en bas de la fenêtre (top + bottom), au lieu d'une hauteur « 100 % de l'écran » décalée par la barre : il prend toute la hauteur visible, sous la barre d'administration quand elle est fixe (32 px sur ordinateur, 46 px de 601 à 782 px).
   En dessous de 601 px, WordPress fait défiler la barre d'administration avec la page : le tiroir passe alors par-dessus et prend tout l'écran.
   Seule la liste des articles défile ; le titre et le pied (sous-total, boutons, logos de paiement s'il y en a) restent visibles.
   Le tiroir passe au-dessus de tout, et le bandeau de langue (#ms-lang-banner-bar, extension MetalStand core) est masqué tant qu'il est ouvert. */
.wc-block-components-drawer__screen-overlay{z-index:100000}
body:has(.wc-block-components-drawer__screen-overlay:not(.wc-block-components-drawer__screen-overlay--is-hidden)) #ms-lang-banner-bar{display:none!important}
.wc-block-mini-cart__drawer.wc-block-components-drawer{--ms-barre:0px;top:var(--ms-barre);bottom:0;height:auto;max-height:none;overflow:hidden}
.admin-bar .wc-block-mini-cart__drawer.wc-block-components-drawer{--ms-barre:var(--wp-admin--admin-bar--height,32px)}
@media (max-width:600px){.admin-bar .wc-block-mini-cart__drawer.wc-block-components-drawer{--ms-barre:0px}}
.wc-block-mini-cart__drawer .wc-block-components-drawer__content,
.admin-bar .wc-block-mini-cart__drawer .wc-block-components-drawer__content{height:100%;margin-top:0;display:flex;flex-direction:column;overflow:hidden}
.wc-block-mini-cart__drawer .wc-block-mini-cart__template-part,
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents{flex:1 1 auto;height:auto;min-height:0;display:flex;flex-direction:column}
.wc-block-mini-cart__drawer .wp-block-woocommerce-filled-mini-cart-contents-block{flex:1 1 auto;height:auto;min-height:0;display:flex;flex-direction:column}
.wc-block-mini-cart__drawer .wc-block-mini-cart__items{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer{flex:0 0 auto;background:#fff;padding-bottom:max(16px,env(safe-area-inset-bottom))}
@media (max-height:520px){.wc-block-mini-cart__drawer .wc-block-mini-cart__footer{padding-top:12px}.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal{margin-bottom:8px}}
/* Correctif 16/10/2026 : panier vide. WooCommerce masque le contenu « panier rempli » (ou « panier vide ») par l'attribut hidden ; les règles ci-dessus ne doivent pas le réafficher. */
.wc-block-mini-cart__drawer .wp-block-woocommerce-filled-mini-cart-contents-block[hidden],
.wc-block-mini-cart__drawer .wp-block-woocommerce-empty-mini-cart-contents-block[hidden]{display:none!important}
