/**
 * Warrior's Mindset — Design System
 * ---------------------------------
 * Direction artistique dérivée du poster de marque « LE SPARTIATE ».
 * Univers : noir profond, rouge sang, métal brossé. Typographie condensée,
 * capitales, contrastes durs. Aucun arrondi mou, aucun dégradé pastel.
 */

/* ==========================================================================
   1. Polices — hébergées localement (RGPD : pas de CDN Google Fonts)

   Servir Google Fonts depuis leur CDN transmet l'IP du visiteur aux États-Unis,
   ce qui a valu des condamnations sur le fondement du RGPD. Les fichiers sont donc
   dans assets/fonts/, découpés en deux sous-ensembles : `latin` (chargé quasiment
   toujours) et `latin-ext` (chargé seulement si la page contient un caractère
   étendu). Le navigateur choisit d'après unicode-range — inutile de télécharger
   31 Ko d'Anton étendu pour une page qui n'en a pas besoin.
   ========================================================================== */

/* --- Anton — titres --- */
@font-face {
	font-family: 'Anton';
	src: url('../fonts/anton.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Anton';
	src: url('../fonts/anton-ext.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Barlow 400 — corps de texte --- */
@font-face {
	font-family: 'Barlow';
	src: url('../fonts/barlow-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Barlow';
	src: url('../fonts/barlow-regular-ext.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Barlow 600 — accentuations dans le corps --- */
@font-face {
	font-family: 'Barlow';
	src: url('../fonts/barlow-semibold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Barlow';
	src: url('../fonts/barlow-semibold-ext.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Barlow Condensed 600 — labels, boutons, baselines --- */
@font-face {
	font-family: 'Barlow Condensed';
	src: url('../fonts/barlow-condensed-semibold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Barlow Condensed';
	src: url('../fonts/barlow-condensed-semibold-ext.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {

	/* --- Couleurs de fond --- */
	--wm-black:        #0A0A0C;  /* fond principal */
	--wm-surface:      #121216;  /* sections alternées */
	--wm-surface-2:    #1C1C22;  /* cartes, encarts */
	--wm-border:       #2A2A33;  /* filets, séparateurs */

	/* --- Rouge de marque --- */
	--wm-red:          #D91F26;  /* primaire — titres accentués, CTA */
	--wm-red-bright:   #FF2A32;  /* survol, lueurs */
	--wm-red-deep:     #7A0F14;  /* fonds, dégradés braise */
	--wm-red-ghost:    rgba(217, 31, 38, 0.12);

	/* --- Neutres --- */
	--wm-white:        #F5F5F7;  /* texte principal */
	--wm-steel:        #9AA0A8;  /* texte secondaire, métal */
	--wm-steel-dark:   #4A4F57;  /* texte tertiaire, désactivé */

	/* --- Sémantique --- */
	--wm-success:      #2E9E5B;
	--wm-warning:      #E8A33D;
	--wm-error:        var(--wm-red);

	/* --- Typographie --- */
	--wm-font-display: 'Anton', 'Arial Narrow', sans-serif;
	--wm-font-label:   'Barlow Condensed', 'Arial Narrow', sans-serif;
	--wm-font-body:    'Barlow', system-ui, -apple-system, sans-serif;

	/* Échelle fluide — cadrée pour rester lisible de 360px à 1920px */
	--wm-text-xs:   0.75rem;
	--wm-text-sm:   0.875rem;
	--wm-text-base: 1rem;
	--wm-text-lg:   1.125rem;
	--wm-h4: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
	--wm-h3: clamp(1.5rem,  1.2rem + 1.4vw, 2.5rem);
	--wm-h2: clamp(2rem,    1.5rem + 2.4vw, 3.75rem);
	--wm-h1: clamp(2.5rem,  1.6rem + 4.2vw, 6rem);

	/* --- Espacement (échelle 4px) --- */
	--wm-space-1: 0.25rem;
	--wm-space-2: 0.5rem;
	--wm-space-3: 1rem;
	--wm-space-4: 1.5rem;
	--wm-space-5: 2rem;
	--wm-space-6: 3rem;
	--wm-space-7: 4.5rem;
	--wm-space-8: 7rem;

	/* --- Divers --- */
	--wm-radius: 2px;             /* quasi nul : la marque est anguleuse */
	--wm-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
	--wm-glow: 0 0 24px rgba(217, 31, 38, 0.35);
	--wm-container: 1280px;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

/**
 * Le fond est porté par `html` autant que par `body`.
 *
 * Filet de sécurité : si une couche de composition échoue sur mobile — ce que
 * provoquent volontiers `backdrop-filter`, `will-change` ou une transformation
 * 3D — le navigateur laisse apparaître son fond par défaut, qui est blanc. Sur
 * un site sombre, cela se voit comme un flash. Peindre `html` en noir garantit
 * qu'il n'y a rien de blanc à révéler.
 */
html {
	background-color: var(--wm-black);
}

body {
	background-color: var(--wm-black);
	color: var(--wm-white);
	font-family: var(--wm-font-body);
	font-size: var(--wm-text-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.wm-display {
	font-family: var(--wm-font-display);
	font-weight: 400;          /* Anton n'a qu'une graisse */
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0.01em;
	color: var(--wm-white);
	text-wrap: balance;
}

h1 { font-size: var(--wm-h1); }
h2 { font-size: var(--wm-h2); }
h3 { font-size: var(--wm-h3); }
h4 { font-size: var(--wm-h4); }

a { color: var(--wm-white); text-decoration-color: var(--wm-red); }
a:hover { color: var(--wm-red-bright); }

::selection { background: var(--wm-red); color: #fff; }

/* Focus visible — accessibilité, à ne jamais retirer */
:focus-visible {
	outline: 2px solid var(--wm-red-bright);
	outline-offset: 3px;
}

/* ==========================================================================
   4. Dispositifs typographiques du poster
   ========================================================================== */

/**
 * Alternance blanc / rouge dans les titres.
 * <h1>Forge ton <span class="wm-accent">mental.</span></h1>
 */
.wm-accent { color: var(--wm-red); }

/**
 * Petit label capitales très espacé — « MENTALITÉ DE GUERRIER ».
 */
.wm-label {
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	font-size: var(--wm-text-sm);
	letter-spacing: 0.22em;
	color: var(--wm-steel);
	line-height: 1.2;
}

.wm-label--red { color: var(--wm-red); }

/**
 * Baseline soulignée d'un filet rouge — « DISCIPLINE. FOCUS. FORCE. VICTOIRE. »
 */
.wm-baseline {
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--wm-white);
	padding-bottom: var(--wm-space-3);
	position: relative;
}

.wm-baseline::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--wm-red) 20%,
		var(--wm-red-bright) 50%,
		var(--wm-red) 80%,
		transparent
	);
}

/* ==========================================================================
   5. Boutons
   ========================================================================== */

/**
 * Bouton autonome.
 *
 * `:not(.wp-block-button)` est indispensable : dans Gutenberg, une classe
 * personnalisée atterrit sur le conteneur `.wp-block-button`, pas sur le lien.
 * Sans cette exclusion, le conteneur reçoit fond, bordure et padding — et l'on
 * obtient un bouton dessiné à l'intérieur d'un autre. Le style des boutons de
 * blocs est défini plus bas, section 10.
 */
.wm-btn:not(.wp-block-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wm-space-2);
	font-family: var(--wm-font-label);
	font-weight: 600;
	font-size: var(--wm-text-base);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	padding: var(--wm-space-3) var(--wm-space-5);
	border: 1px solid transparent;
	border-radius: var(--wm-radius);
	cursor: pointer;
	transition: all var(--wm-transition);
	text-decoration: none;
}

.wm-btn--primary:not(.wp-block-button) {
	background: var(--wm-red);
	color: #fff;
}

.wm-btn--primary:not(.wp-block-button):hover {
	background: var(--wm-red-bright);
	color: #fff;
	box-shadow: var(--wm-glow);
}

.wm-btn--ghost:not(.wp-block-button) {
	background: transparent;
	color: var(--wm-white);
	border-color: var(--wm-steel-dark);
}

.wm-btn--ghost:not(.wp-block-button):hover {
	border-color: var(--wm-red);
	color: var(--wm-red-bright);
}

/* ==========================================================================
   6. Ambiance — braises et métal
   ========================================================================== */

/* Voile rouge en bas de section, rappelle l'horizon incandescent du poster */
.wm-ember {
	position: relative;
	isolation: isolate;
}

.wm-ember::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 80% 50% at 50% 100%,
			rgba(217, 31, 38, 0.22), transparent 70%),
		linear-gradient(180deg, var(--wm-black), var(--wm-surface));
	pointer-events: none;
}

/* Grain fin — casse l'aplat numérique des grandes zones noires */
.wm-grain::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.035;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   7. Bandeau d'annonce
   ========================================================================== */

/**
 * Ligne fine tout en haut de page. Elle porte l'information qui lève le premier
 * doute d'un acheteur — d'où ça vient, en combien de temps ça arrive — avant
 * même qu'il ait à la chercher.
 */
.wm-announce {
	background: var(--wm-red);
	color: #fff;
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: var(--wm-text-xs);
	text-align: center;
	padding: 0.7em var(--wm-space-4);
	position: relative;
	/* Sous l'en-tête (99) : le bandeau défile normalement, et l'en-tête collant
	   doit passer par-dessus lui. Avec un z-index supérieur, le bandeau restait
	   au premier plan et venait chevaucher l'en-tête au défilement. */
	z-index: 1;
}

.wm-announce__inner {
	max-width: var(--wm-container);
	margin: 0 auto;
}

/* ==========================================================================
   8. En-tête
   ========================================================================== */

/**
 * Le nom en toutes lettres est masqué : le logo porte seul l'identité. Masqué
 * visuellement mais conservé dans le balisage — il reste lu par les lecteurs
 * d'écran et exploité par les moteurs, ce qu'un `display: none` supprimerait.
 */
.site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* En-tête collant : le panier et le menu restent atteignables en cours de
   lecture, ce qui compte surtout sur une fiche produit longue. */
/**
 * En-tête collant, sur fond **opaque**.
 *
 * Le flou d'arrière-plan (`backdrop-filter`) était joli sur grand écran, mais
 * combiné à `position: sticky` il provoque des flashs blancs sur Safari iOS :
 * la couche de composition se recalcule au défilement et laisse par moments
 * apparaître le fond du navigateur. Un aplat opaque supprime le problème, et
 * sur un fond noir la différence visuelle est négligeable.
 */
.site-header {
	position: sticky;
	top: 0;
	z-index: 99;
	background-color: var(--wm-black);
	border-bottom: 1px solid var(--wm-border);
	transition: box-shadow var(--wm-transition);
}

.site-header.is-stuck {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Menu principal --- */

.main-header-menu .menu-link,
.ast-header-break-point .main-header-menu .menu-link {
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	position: relative;
}

/* Soulignement qui se déploie depuis la gauche */
.main-header-menu > .menu-item > .menu-link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.55em;
	height: 1px;
	background: var(--wm-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wm-transition);
}

.main-header-menu > .menu-item > .menu-link:hover::after,
.main-header-menu > .current-menu-item > .menu-link::after {
	transform: scaleX(1);
}

/**
 * Page courante.
 *
 * Astra colore l'élément actif avec son bleu par défaut, qui n'a rien à faire
 * ici. La liste couvre les différentes classes que WordPress pose selon le type
 * de page — élément de menu, page, ancêtre — et le sélecteur est assez
 * spécifique pour l'emporter sur le CSS généré par le thème.
 */
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link,
.main-header-menu .current_page_parent > .menu-link,
.ast-header-break-point .main-header-menu .current-menu-item > .menu-link,
.ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link {
	color: var(--wm-red);
}

.main-header-menu .current-menu-item > .menu-link:hover,
.ast-header-break-point .main-header-menu .current-menu-item > .menu-link:hover {
	color: var(--wm-red-bright);
}

/* --- Panier --- */

/**
 * Icône seule, avec un badge en pastille.
 *
 * Le bouton encadré alourdissait l'en-tête et entrait en concurrence avec les
 * liens du menu. L'icône nue avec compteur en pastille est la convention du
 * commerce en ligne : elle se lit d'un coup d'œil et ne pèse rien visuellement
 * tant que le panier est vide.
 */
.wm-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	color: var(--wm-white);
	border: 0;
	text-decoration: none;
	transition: color var(--wm-transition);
}

.wm-cart svg {
	width: 1.375rem;
	height: 1.375rem;
	display: block;
}

.wm-cart:hover {
	color: var(--wm-red-bright);
}

/**
 * Le badge n'apparaît qu'une fois le panier rempli : afficher « 0 » en
 * permanence, c'est signaler du vide.
 *
 * `border-radius: 50%` est une entorse assumée aux 2 px de la charte — un
 * compteur de panier est rond partout, un badge carré se lirait comme une
 * étiquette de promotion.
 */
.wm-cart__count {
	position: absolute;
	top: -0.15rem;
	right: -0.2rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.3em;
	display: none;
	place-items: center;
	background: var(--wm-red);
	color: #fff;
	border: 2px solid var(--wm-black);
	border-radius: 50%;
	font-family: var(--wm-font-label);
	font-weight: 600;
	font-size: 0.7rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.wm-cart.has-items .wm-cart__count {
	display: grid;
}

/* Discrète pulsation à l'ajout, pour que le compteur ne change pas en silence */
.wm-cart.has-items:hover .wm-cart__count {
	background: var(--wm-red-bright);
	box-shadow: var(--wm-glow);
}

.wm-cart:focus-visible {
	outline: 2px solid var(--wm-red-bright);
	outline-offset: 2px;
}

/**
 * Deux rendus du panier, un seul visible à la fois.
 *
 * Celui du menu sert au grand écran ; celui posé près du bouton hamburger prend
 * le relais sous le point de rupture d'Astra, où le menu se replie. Sans cette
 * bascule, le panier serait soit invisible sur mobile, soit affiché deux fois.
 */
.wm-cart-mobile {
	display: none;
	margin-right: var(--wm-space-3);
}

/* `align-self: center` : le conteneur du bouton hamburger est étiré sur toute
   la hauteur de l'en-tête ; sans cela le panier s'étire avec lui. */
.ast-header-break-point .wm-cart-mobile {
	display: inline-flex;
	align-items: center;
	align-self: center;
}

.ast-header-break-point .wm-cart-mobile .wm-cart {
	padding: 0.45em 0.75em;
}

.ast-header-break-point .wm-cart-item {
	display: none;
}

/* ==========================================================================
   9. Pied de page
   ========================================================================== */

/**
 * Fond du pied de page.
 *
 * Astra empile plusieurs conteneurs autour du copyright — `site-footer`,
 * `site-below-footer-wrap`, `ast-builder-grid-row-container` — et leur applique
 * un fond clair hérité de son habillage par défaut. Il faut donc les reprendre
 * tous : n'en oublier qu'un laisse une bande claire sous les colonnes, avec du
 * texte blanc devenu illisible.
 */
.site-footer,
.ast-small-footer,
.site-below-footer-wrap,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.site-footer .ast-builder-grid-row-container,
.site-footer .ast-builder-grid-row,
.site-footer .site-footer-section {
	background-color: var(--wm-surface);
	background-image: none;
}

.site-footer {
	border-top: 1px solid var(--wm-border);
	color: var(--wm-steel);
}

.wm-footer {
	max-width: var(--wm-container);
	margin: 0 auto;
	text-align: left;
	padding: var(--wm-space-6) 0 var(--wm-space-4);
}

.wm-footer__top {
	display: grid;
	grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--wm-space-6) var(--wm-space-5);
	padding-bottom: var(--wm-space-6);
}

/* --- Colonne de marque --- */

.wm-footer__mark {
	font-family: var(--wm-font-display);
	font-size: 2rem;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: var(--wm-space-3);
}

.wm-footer__mark span {
	color: var(--wm-red);
}

.wm-footer__baseline {
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: var(--wm-text-xs);
	color: var(--wm-red);
	margin-bottom: var(--wm-space-3);
}

.wm-footer__pitch {
	font-size: var(--wm-text-sm);
	color: var(--wm-steel);
	line-height: 1.6;
	max-width: 38ch;
}

/* --- Colonnes de liens --- */

.wm-footer__title {
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: var(--wm-text-xs);
	color: var(--wm-white);
	margin-bottom: var(--wm-space-3);
	padding-bottom: var(--wm-space-2);
	border-bottom: 1px solid var(--wm-border);
}

.wm-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wm-space-2);
}

.wm-footer__col a {
	font-size: var(--wm-text-sm);
	color: var(--wm-steel);
	text-decoration: none;
	transition: color var(--wm-transition);
}

.wm-footer__col a:hover {
	color: var(--wm-red-bright);
}

/* --- Bas de page --- */

.wm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wm-space-2) var(--wm-space-4);
	padding-top: var(--wm-space-4);
	border-top: 1px solid var(--wm-border);
}

.wm-footer__legal {
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--wm-text-xs);
	color: var(--wm-steel);
}

.wm-footer__legal strong {
	color: var(--wm-white);
}

.wm-footer__copy {
	font-size: var(--wm-text-xs);
	color: var(--wm-steel-dark);
}

/* ==========================================================================
   Mobile — menu et pied de page
   ========================================================================== */

/**
 * Menu hors-champ.
 *
 * Astra le rend dans un tiroir dont il ne colore que le conteneur extérieur :
 * les couches intérieures restent claires, et le menu apparaissait en blanc.
 * Il faut donc reprendre chaque niveau.
 */
/**
 * FOND DU MENU MOBILE — correctif définitif.
 *
 * Ce menu est repassé en blanc à trois reprises, chaque fois pour une raison
 * différente. Historique du diagnostic, pour ne pas recommencer :
 *
 * 1. Les conteneurs du tiroir n'étaient pas tous couverts → corrigé, insuffisant.
 * 2. La liste elle-même portait un fond `#F9F9F9` → corrigé, insuffisant.
 * 3. Le fond réel vient de `#ast-hf-mobile-menu`, un sélecteur d'**identifiant**
 *    généré par Astra. La règle n'apparaît ni en style en ligne, ni dans les
 *    feuilles interrogeables depuis le document — elle est injectée dans le CSS
 *    minifié par LiteSpeed. Régler `header-menu1-bg-obj-responsive` dans les
 *    options du thème n'a rien changé.
 *
 * `!important` est ici un choix assumé, pas une facilité : contre un sélecteur
 * d'identifiant dont on ne maîtrise ni la source ni la stabilité entre versions,
 * c'est le seul moyen fiable. La règle reste étroitement ciblée — uniquement le
 * fond, uniquement dans l'en-tête — pour ne rien casser d'autre.
 *
 * Si Astra change ses identifiants lors d'une mise à jour, c'est ici qu'il
 * faudra revenir.
 */
#ast-hf-mobile-menu,
#ast-hf-mobile-menu .menu-item,
#ast-hf-mobile-menu .menu-link,
#ast-hf-mobile-menu .sub-menu,
#ast-mobile-site-navigation,
.ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-drawer .ast-mobile-popup-content,
.ast-mobile-popup-drawer .ast-mobile-popup-header,
.ast-header-break-point .main-header-bar-navigation,
.ast-header-break-point .ast-mobile-header-wrap,
.ast-header-break-point .main-header-menu,
.ast-header-break-point .main-header-menu.ast-menu-shadow,
.ast-mobile-popup-drawer .main-header-menu {
	background-color: var(--wm-black) !important;
	box-shadow: none !important;
}

/* Survol et page courante : le fond doit rester distinct du reste, sinon on
   perd tout retour visuel au toucher. */
#ast-hf-mobile-menu .menu-link:hover,
#ast-hf-mobile-menu .current-menu-item > .menu-link {
	background-color: var(--wm-surface) !important;
}

/* Mise en page des liens, au même niveau de spécificité que le fond : la zone
   tactile doit atteindre 48 px, seuil en dessous duquel on rate sa cible au
   pouce. */
#ast-hf-mobile-menu .menu-link {
	padding: var(--wm-space-3) var(--wm-space-4);
	min-height: 3rem;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--wm-border);
}

#ast-hf-mobile-menu > .menu-item:last-child .menu-link {
	border-bottom: 0;
}

/* Le panier garde son traitement d'icône, sans la bordure des liens de menu */
#ast-hf-mobile-menu .wm-cart-item .wm-cart {
	border-bottom: 0;
	padding: var(--wm-space-3) var(--wm-space-4);
}

/**
 * Couleur des liens du menu mobile.
 *
 * Astra rend deux en-têtes distincts — `#ast-desktop-header` et
 * `#ast-mobile-header` — et cible le second avec un sélecteur d'identifiant.
 * Aucune règle de classe ne peut l'emporter : il faut reprendre le même niveau
 * de spécificité, sinon les liens restent au bleu-gris du thème.
 */
#ast-mobile-header .main-header-menu .menu-link,
#ast-desktop-header .main-header-menu .menu-link {
	color: var(--wm-white);
}

#ast-mobile-header .main-header-menu .current-menu-item > .menu-link,
#ast-mobile-header .main-header-menu .current_page_item > .menu-link,
#ast-desktop-header .main-header-menu .current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu .current_page_item > .menu-link {
	color: var(--wm-red);
}

#ast-mobile-header .main-header-menu .menu-link:hover,
#ast-desktop-header .main-header-menu .menu-link:hover {
	color: var(--wm-red-bright);
}

/* Liens en display : sur mobile le menu occupe l'écran, autant qu'il ait la
   voix de la marque plutôt que celle d'une liste de réglages. */
.ast-header-break-point .main-header-menu .menu-link,
.ast-mobile-popup-drawer .main-header-menu .menu-link {
	font-family: var(--wm-font-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 1.65rem;
	line-height: 1.2;
	padding: var(--wm-space-3) var(--wm-space-4);
	border-bottom: 1px solid var(--wm-border);
	color: var(--wm-white);
}

.ast-header-break-point .main-header-menu .menu-item:last-child .menu-link {
	border-bottom: 0;
}

.ast-header-break-point .main-header-menu .menu-link:hover,
.ast-header-break-point .main-header-menu .current-menu-item > .menu-link {
	color: var(--wm-red-bright);
	background-color: var(--wm-surface);
}

/* Le soulignement animé n'a pas de sens sur une liste verticale pleine largeur */
.ast-header-break-point .main-header-menu > .menu-item > .menu-link::after {
	display: none;
}

/* Bouton hamburger et fermeture */
.ast-header-break-point .menu-toggle,
.ast-mobile-popup-drawer .menu-toggle-close {
	color: var(--wm-white);
	background: transparent;
}

.ast-header-break-point .menu-toggle:hover,
.ast-mobile-popup-drawer .menu-toggle-close:hover {
	color: var(--wm-red-bright);
}

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

/**
 * Tablette.
 *
 * La grille `minmax(150px, 1fr)` produisait des colonnes de largeurs inégales
 * entre 560 et 920 px : la colonne de marque écrasait les trois autres, qui se
 * retrouvaient tassées à droite. On repasse sur une grille explicite, avec la
 * marque sur toute la largeur et les trois listes réparties également dessous.
 */
@media (max-width: 921px) {

	.wm-footer__top {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--wm-space-6) var(--wm-space-4);
		padding-bottom: var(--wm-space-5);
	}

	.wm-footer__brand {
		grid-column: 1 / -1;
		max-width: 46ch;
	}
}

@media (max-width: 782px) {

	/* Trois colonnes de liens ne tiennent plus : deux restent lisibles. */
	.wm-footer__top {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--wm-space-5) var(--wm-space-4);
	}
}

@media (max-width: 560px) {

	.wm-footer {
		text-align: center;
	}

	.wm-footer__top {
		grid-template-columns: 1fr;
		gap: var(--wm-space-6);
	}

	.wm-footer__pitch {
		margin-inline: auto;   /* le `max-width` le décalait à gauche */
	}

	/* Le filet du titre courait sur toute la largeur alors que le texte est
	   centré : on le resserre autour du libellé. */
	.wm-footer__title {
		display: inline-block;
		padding-inline: var(--wm-space-3);
	}

	.wm-footer__bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.wm-footer__legal {
		line-height: 1.7;
	}
}

/* ==========================================================================
   10. Éléments de page partagés

   Les compositions propres à l'accueil (hero, marquee, piliers, appel final)
   vivent dans home.css, chargé sur cette seule page. Ne restent ici que les
   briques réutilisables par les autres gabarits.
   ========================================================================== */

.wm-inner {
	max-width: var(--wm-container);
	margin: 0 auto;
	padding: 0 var(--wm-space-4);
}

.wm-section {
	padding: var(--wm-space-7) var(--wm-space-4);
}

.wm-section h2 {
	margin-top: var(--wm-space-3);
}

/* Surtitre de section — plus discret que .wm-label, et toujours en rouge */
.wm-eyebrow {
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	font-size: var(--wm-text-sm);
	color: var(--wm-red);
	line-height: 1.2;
}

/* --- Boutons Gutenberg ---
 *
 * Les classes personnalisées atterrissent sur le conteneur `.wp-block-button`,
 * alors que le lien cliquable est l'enfant `.wp-block-button__link`. C'est lui
 * qu'il faut habiller, sinon le style peint une boîte invisible — et, cumulé à
 * la règle générique, dessine un bouton dans un autre.
 */

.wm-btn .wp-block-button__link {
	font-family: var(--wm-font-label);
	font-weight: 600;
	font-size: var(--wm-text-base);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	padding: var(--wm-space-3) var(--wm-space-5);
	border-radius: var(--wm-radius);
	border: 1px solid transparent;
	transition: all var(--wm-transition);
}

.wm-btn--primary .wp-block-button__link {
	background: var(--wm-red);
	color: #fff;
}

.wm-btn--primary .wp-block-button__link:hover {
	background: var(--wm-red-bright);
	color: #fff;
	box-shadow: var(--wm-glow);
}

.wm-btn--ghost .wp-block-button__link {
	background: transparent;
	color: var(--wm-white);
	border-color: var(--wm-steel-dark);
}

.wm-btn--ghost .wp-block-button__link:hover {
	border-color: var(--wm-red);
	color: var(--wm-red-bright);
	background: transparent;
}

/**
 * Tableaux de contenu — guide des tailles, bases légales, comparatifs.
 *
 * Placés ici et non dans shop.css : ces tableaux vivent sur des pages qui ne
 * sont pas des gabarits WooCommerce et ne chargent donc pas cette feuille.
 * `tabular-nums` aligne les colonnes de chiffres, indispensable dès qu'on
 * compare des mesures d'une ligne à l'autre.
 */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--wm-space-5);
	font-variant-numeric: tabular-nums;
	font-size: var(--wm-text-sm);
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--wm-border);
	padding: var(--wm-space-3);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--wm-surface);
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wm-steel);
}

/* Un tableau ne doit jamais faire déborder la page : il défile seul */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
	overflow-x: auto;
}

/* ==========================================================================
   11. WooCommerce — surcharges
   ========================================================================== */

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	font-family: var(--wm-font-label);
	font-weight: 600;
	font-size: var(--wm-h4);
	color: var(--wm-white);
	letter-spacing: 0.04em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wm-font-display);
	text-transform: uppercase;
	font-size: var(--wm-text-lg);
	line-height: 1.1;
}

.woocommerce span.onsale {
	background: var(--wm-red);
	color: #fff;
	border-radius: var(--wm-radius);
	font-family: var(--wm-font-label);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--wm-red);
	color: #fff;
	font-family: var(--wm-font-label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	border-radius: var(--wm-radius);
	transition: all var(--wm-transition);
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--wm-red-bright);
	color: #fff;
	box-shadow: var(--wm-glow);
}

/**
 * Mention de délai sous le bouton d'ajout au panier.
 *
 * `clear: both` est ce qui compte : le bouton d'ajout est en `float: left` dans
 * un conteneur en display block. Sans dégagement, la mention vient se loger à
 * droite du bouton au lieu de passer dessous. Le `flex-basis` couvre le cas des
 * gabarits où ce même conteneur est en flex (produits simples).
 */
.wm-shipping-note {
	clear: both;
	flex-basis: 100%;
	width: 100%;
	font-size: var(--wm-text-sm);
	color: var(--wm-steel);
	border-left: 2px solid var(--wm-red);
	padding-left: var(--wm-space-3);
	margin-top: var(--wm-space-4);
	padding-top: var(--wm-space-3);
}

/* ==========================================================================
   12. Accessibilité
   ========================================================================== */

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