/* ============================================================================
   H12 IMPRESSIONS — DESIGN SYSTEM & COMPOSANTS
   Classes réutilisables reproduisant les prototypes hi-fi. Utilise les tokens
   de tokens.css. Look atelier/tampon : coins peu arrondis, textures print.
   ========================================================================== */

/* ---- Reset léger & base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--h12-white);
	font-family: var(--h12-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--h12-ink);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

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

/* Focus clavier accessible (rouge, décalé) — blanc sur héros sombres via .on-dark */
:where(button, a, select, input, textarea):focus-visible {
	outline: 2px solid var(--h12-red);
	outline-offset: 3px;
}
.on-dark :where(button, a, select, input, textarea):focus-visible { outline-color: #fff; }

/* ---- Conteneurs ---- */
/* Pleine largeur : les FONDS de section vont bord à bord ; seul le contenu
   interne (.h12-wrap / __inner / __grid) est centré à max-width. */
.h12-container { width: 100%; }
.h12-wrap { max-width: var(--h12-maxw-content); margin: 0 auto; padding: 0 var(--h12-pad-section-x); }
.h12-wrap--narrow { max-width: var(--h12-maxw-narrow); }

.h12-section { padding: var(--h12-pad-section-y) var(--h12-pad-section-x); }
.h12-section--dark { background: var(--h12-ink); color: #fff; }
.h12-section--gray { background: var(--h12-bg-gray); }

/* ---- Typographie utilitaire ---- */
.h12-display { font-family: var(--h12-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .9; margin: 0; }
.h12-h-hero { font-size: var(--h12-h-hero); line-height: .88; }
.h12-h-section { font-size: var(--h12-h-section); line-height: .92; }

.h12-eyebrow { /* label mono technique au-dessus des titres */
	font-family: var(--h12-font-mono);
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--h12-red);
	margin: 0 0 10px;
}
.h12-mono { font-family: var(--h12-font-mono); letter-spacing: .1em; text-transform: uppercase; }

.h12-lead { font-size: 17px; line-height: 1.6; color: var(--h12-text-2); }

/* ---- Boutons ---- */
.h12-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--h12-font-body); font-weight: 800; text-transform: uppercase;
	letter-spacing: .04em; border-radius: var(--h12-radius-sm); cursor: pointer;
	border: none; transition: background var(--h12-t-fast), color var(--h12-t-fast), transform var(--h12-t-fast);
	text-align: center;
}
.h12-btn--red { background: var(--h12-red); color: #fff; }
.h12-btn--red:hover { background: var(--h12-red-hover); }
.h12-btn--out { background: transparent; color: #fff; border: 2px solid #fff; }
.h12-btn--out:hover { background: #fff; color: var(--h12-ink); }
.h12-btn--outdark { background: transparent; color: var(--h12-ink); border: 2px solid var(--h12-ink); }
.h12-btn--outdark:hover { background: var(--h12-ink); color: #fff; }
.h12-btn--lg { font-size: 16px; padding: 18px 34px; }
.h12-btn--md { font-size: 14px; padding: 13px 22px; }
.h12-btn--sm { font-size: 12px; padding: 11px 18px; }
.h12-btn--block { display: flex; width: 100%; }
.h12-btn:disabled { opacity: .45; cursor: not-allowed; }
/* Bordure outline compense le padding pour aligner les hauteurs */
.h12-btn--out.h12-btn--lg, .h12-btn--outdark.h12-btn--lg { padding: 16px 30px; }

/* ---- Badges ---- */
.h12-badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--h12-font-mono); font-weight: 700; font-size: 11px;
	letter-spacing: .12em; text-transform: uppercase; padding: 7px 13px;
	border-radius: var(--h12-radius-sm);
}
.h12-badge--red { background: var(--h12-red); color: #fff; }
.h12-badge--ok { background: var(--h12-ok-bg); color: var(--h12-ok-text); }
.h12-badge--method-dtf { background: var(--h12-ink); color: #fff; }
.h12-badge--method-dtf::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--h12-red); }
.h12-badge--method-broderie { background: #fff; color: var(--h12-ink); border: 1px solid var(--h12-border); }
.h12-badge--method-broderie::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--h12-ink); }

/* ---- Cartes ---- */
.h12-card {
	border: var(--h12-bd); border-radius: var(--h12-radius-lg); overflow: hidden;
	background: #fff; transition: box-shadow var(--h12-t-card), transform var(--h12-t-card), border-color var(--h12-t-card);
}
.h12-card:hover { box-shadow: var(--h12-shadow-card); transform: translateY(-4px); }
.h12-card--service:hover { border-color: var(--h12-red); transform: none; box-shadow: none; }
.h12-card--partner:hover { box-shadow: var(--h12-shadow-partner); transform: translateY(-5px); }

/* Carte produit (accueil, boutique, archives WooCommerce) */
/* ---- Grilles de sections (utilitaires partages) ----
   Utilisees par l'accueil, la boutique ET les pages partenaires : elles doivent
   vivre ici, pas dans home.css qui ne charge que sur la page d'accueil. */
.h12-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h12-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
	.h12-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.h12-grid-3 { grid-template-columns: 1fr; }
}
/* Sur un téléphone, deux colonnes donnent des cartes d'environ 127 px : moins
   le padding de 14 px de .h12-pcard__media et les marges blanches des photos
   fournisseur, le vêtement finit à ~65 px de haut, illisible. La boutique
   principale passait déjà à une colonne sous 560 px (shop.css) ; .h12-grid-4
   ne le faisait pas, d'où des catalogues nets sur /shop/ mais minuscules sur
   l'accueil et les boutiques partenaires. Même seuil des deux côtés.
   Bonus : à une colonne, les pastilles « broderie » et « nouveau » cessent de
   se chevaucher. */
@media (max-width: 560px) {
	.h12-grid-4 { grid-template-columns: 1fr; }
}

.h12-pcard { display: block; color: inherit; }
.h12-pcard__media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; }
.h12-pcard__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .45s var(--h12-ease); }
.h12-pcard__media:empty, .h12-pcard__media:has(> .h12-mono) { background: var(--h12-placeholder-tex); }

/* ---- Survol : marques de repérage rouges (traits de coupe d'atelier) ---- */
.h12-pcard__media::after {
	content: ""; position: absolute; inset: 8px; z-index: 3; pointer-events: none;
	--mk-l: 18px;  /* longueur du trait */
	--mk-t: 2px;   /* épaisseur */
	--mk-c: var(--h12-red);
	background:
		linear-gradient(var(--mk-c), var(--mk-c)) 0 0 / var(--mk-l) var(--mk-t) no-repeat,
		linear-gradient(var(--mk-c), var(--mk-c)) 0 0 / var(--mk-t) var(--mk-l) no-repeat,
		linear-gradient(var(--mk-c), var(--mk-c)) 100% 0 / var(--mk-l) var(--mk-t) no-repeat,
		linear-gradient(var(--mk-c), var(--mk-c)) 100% 0 / var(--mk-t) var(--mk-l) no-repeat,
		linear-gradient(var(--mk-c), var(--mk-c)) 0 100% / var(--mk-l) var(--mk-t) no-repeat,
		linear-gradient(var(--mk-c), var(--mk-c)) 0 100% / var(--mk-t) var(--mk-l) no-repeat,
		linear-gradient(var(--mk-c), var(--mk-c)) 100% 100% / var(--mk-l) var(--mk-t) no-repeat,
		linear-gradient(var(--mk-c), var(--mk-c)) 100% 100% / var(--mk-t) var(--mk-l) no-repeat;
	opacity: 0;
	transition: opacity .22s var(--h12-ease), inset .4s var(--h12-ease);
}
.h12-pcard:hover .h12-pcard__media::after { opacity: 1; inset: 13px; }
.h12-pcard:hover .h12-pcard__media img { transform: scale(1.045); }
.h12-pcard__name { transition: color var(--h12-t-fast); }
.h12-pcard:hover .h12-pcard__name { color: var(--h12-red); }

@media (prefers-reduced-motion: reduce) {
	.h12-pcard__media::after { transition: opacity .22s ease; }
	.h12-pcard:hover .h12-pcard__media::after { inset: 8px; }
	.h12-pcard:hover .h12-pcard__media img { transform: none; }
}
.h12-pcard__badge { position: absolute; top: 12px; left: 12px; }
.h12-pcard__new { position: absolute; top: 12px; right: 12px; font-family: var(--h12-font-mono); font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--h12-ink); color: #fff; padding: 5px 10px; border-radius: var(--h12-radius-sm); }
.h12-pcard__sale { position: absolute; top: 12px; right: 12px; font-family: var(--h12-font-mono); font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--h12-red); color: #fff; padding: 5px 10px; border-radius: var(--h12-radius-sm); }
.h12-pcard__sale ~ .h12-pcard__new { top: 44px; }
.h12-pcard__body { padding: 15px 16px; }
.h12-pcard__cat { font-family: var(--h12-font-mono); font-size: 10px; color: var(--h12-text-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.h12-pcard__name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.h12-pcard__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.h12-pcard__price .from { font-family: var(--h12-font-mono); font-size: 10px; color: var(--h12-text-2); text-transform: uppercase; }
.h12-pcard__price .amt { font-family: var(--h12-font-display); font-size: 24px; }
.h12-pcard__price .amt.is-sale { color: var(--h12-red); }
.h12-pcard__price .was { font-size: 13px; color: var(--h12-text-3); text-decoration: line-through; white-space: nowrap; }

/* ---- Placeholder produit (à remplacer par vraies photos) ---- */
.h12-ph {
	background: var(--h12-placeholder-tex);
	display: flex; align-items: center; justify-content: center;
	color: var(--h12-text-3); font-family: var(--h12-font-mono);
	font-size: 12px; letter-spacing: .08em; text-align: center; padding: 20px;
}
.h12-ph--square { aspect-ratio: 1 / 1; }
.h12-ph--16-10 { aspect-ratio: 16 / 10; }

/* ---- Textures signature ---- */
.h12-tex-halftone { position: absolute; inset: 0; background-image: var(--h12-halftone-red); background-size: 12px 12px; opacity: .45; pointer-events: none; }
.h12-tex-grain { position: absolute; inset: 0; background-image: var(--h12-grain); background-size: 10px 10px; opacity: .04; pointer-events: none; }
.h12-tex-hatch { background-image: var(--h12-hatch-workshop); }

/* ============================================================================
   NAV & BANDEAU ANNONCE (header.php)
   ========================================================================== */
.h12-announce {
	background: var(--h12-red); color: #fff; text-align: center; padding: 9px;
	font-family: var(--h12-font-mono); font-size: 12px; letter-spacing: .1em;
	text-transform: uppercase; background-image: var(--h12-hatch-workshop);
}
.h12-flag-quebec {
	display: inline-block;
	vertical-align: middle;
	width: 18px;
	height: 12px;
	border-radius: 1px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.3);
	margin: 0 6px 0 4px;
}
.h12-assur__row .h12-flag-quebec {
	width: 24px;
	height: 16px;
	margin: 0;
}
.h12-assur-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	stroke: currentColor;
	flex-shrink: 0;
}
.h12-assur-logos {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
}
.h12-assur-payment-logo {
	height: 14px;
	width: auto;
	fill: #fff;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.h12-assur-payment-logo:hover {
	opacity: 1;
	transform: scale(1.15);
}
.h12-nav {
	position: sticky; top: 0; z-index: 50;
	background: var(--h12-ink); color: #fff;
}
.h12-nav__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 14px 40px; max-width: var(--h12-maxw); margin: 0 auto; flex-wrap: wrap;
}
.h12-nav__logo { height: 46px; width: auto; filter: invert(1); }

/* Logo animé : glitch « décalage d'encre » dès le chargement puis toutes les 5 s,
   + effet presse au survol */
@keyframes h12-logo-glitch {
	0% { transform: none; filter: invert(1); opacity: 1; }
	2% { transform: translate(-4px, 1px) skewX(-10deg); filter: invert(1) drop-shadow(5px 0 0 var(--h12-red)); }
	4% { transform: translate(4px, -1px) skewX(8deg); filter: invert(1) drop-shadow(-5px 0 0 var(--h12-red)); opacity: .8; }
	6% { transform: translateX(-3px); filter: invert(1) drop-shadow(4px 0 0 var(--h12-red)); opacity: 1; }
	8%, 100% { transform: none; filter: invert(1); }
}
.h12-nav__logo { animation: h12-logo-glitch 5s infinite; }
.h12-nav__brand { display: inline-flex; }
.h12-nav__brand:hover .h12-nav__logo {
	animation: none;
	transform: translateY(1px) scale(.96);
	filter: invert(1) drop-shadow(3px 0 0 var(--h12-red));
	transition: transform var(--h12-t-fast), filter var(--h12-t-fast);
}
@media (prefers-reduced-motion: reduce) {
	.h12-nav__logo { animation: none; }
}
.h12-nav__menu { display: flex; gap: 28px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; list-style: none; margin: 0; padding: 0; }
.h12-nav__menu a { cursor: pointer; transition: color var(--h12-t-fast); }
.h12-nav__menu a:hover, .h12-nav__menu .current-menu-item > a { color: var(--h12-red); }
.h12-nav__tools { display: flex; gap: 16px; align-items: center; }
.h12-nav__icon { font-family: var(--h12-font-mono); font-size: 19px; cursor: pointer; position: relative; color: #fff; }
.h12-nav__cart-count {
	position: absolute; top: -6px; right: -9px; background: var(--h12-red);
	font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-family: var(--h12-font-body);
}
.h12-burger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* ============================================================================
   SEARCH DROPDOWN (header)
   ========================================================================== */
.h12-search-wrap { position: relative; }
.h12-search-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: var(--h12-radius-sm);
	transition: background var(--h12-t-fast), color var(--h12-t-fast);
	border: none; background: transparent;
}
.h12-search-toggle[aria-expanded="true"] { background: var(--h12-red); }

@keyframes h12searchIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.h12-search-drop {
	position: absolute; top: calc(100% + 12px); right: 0;
	width: 380px; max-width: 90vw;
	background: #fff; border: 1.5px solid var(--h12-ink); border-radius: var(--h12-radius-lg);
	box-shadow: 0 24px 56px rgba(0,0,0,.22); z-index: 100; overflow: hidden;
	animation: h12searchIn .22s var(--h12-ease);
}
.h12-search-drop[hidden] { display: none; }
.h12-search-bar {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 16px; border-bottom: var(--h12-bd);
	background: var(--h12-ink); color: #fff;
}
.h12-search-bar__icon { font-family: var(--h12-font-mono); font-size: 16px; opacity: .7; }
.h12-search-input {
	flex: 1; min-width: 0; background: transparent; border: none; outline: none;
	color: #fff; font-family: var(--h12-font-body); font-weight: 600; font-size: 14px;
}
.h12-search-input::placeholder { color: rgba(255,255,255,.5); }
.h12-search-close {
	background: none; border: none; color: #fff; opacity: .6; cursor: pointer;
	font-family: var(--h12-font-mono); font-size: 12px; transition: opacity var(--h12-t-fast);
}
.h12-search-close:hover { opacity: 1; }

.h12-search-body { max-height: 380px; overflow-y: auto; background: #fff; }

.h12-search-suggestions { padding: 12px 16px; }
.h12-search-label {
	font-family: var(--h12-font-mono); font-size: 10px; color: var(--h12-text-2);
	letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.h12-search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.h12-search-tag {
	font-family: var(--h12-font-body); font-weight: 600; font-size: 12px;
	padding: 8px 14px; border-radius: var(--h12-radius-sm); cursor: pointer;
	transition: background var(--h12-t-fast), color var(--h12-t-fast), border-color var(--h12-t-fast);
	background: var(--h12-bg-gray); color: var(--h12-ink); border: 1px solid var(--h12-border);
}
.h12-search-tag:hover { background: var(--h12-ink); color: #fff; border-color: var(--h12-ink); }
.h12-search-foot {
	padding: 10px 0 0; margin-top: 10px; border-top: 1px solid #F0F0F0;
	font-family: var(--h12-font-mono); font-size: 10px; color: var(--h12-text-3); letter-spacing: .04em;
}

.h12-search-results { padding: 0; }
.h12-search-results[hidden] { display: none; }
.h12-search-result {
	display: flex; align-items: center; gap: 12px; padding: 12px 16px;
	cursor: pointer; transition: background var(--h12-t-fast);
	border-bottom: 1px solid #F0F0F0; text-decoration: none; color: inherit;
}
.h12-search-result:hover { background: var(--h12-bg-gray); }
.h12-search-result__thumb {
	width: 42px; height: 42px; border-radius: var(--h12-radius); flex: none;
	background: var(--h12-bg-gray); display: flex; align-items: center; justify-content: center;
	font-family: var(--h12-font-mono); font-size: 12px; color: var(--h12-text-2); overflow: hidden;
}
.h12-search-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.h12-search-result__body { flex: 1; min-width: 0; }
.h12-search-result__name { font-weight: 700; font-size: 13px; line-height: 1.2; }
.h12-search-result__type {
	font-family: var(--h12-font-mono); font-size: 10px; color: var(--h12-text-2);
	letter-spacing: .04em; text-transform: uppercase; margin-top: 3px;
}
.h12-search-result__price { font-family: var(--h12-font-display); font-size: 18px; color: var(--h12-ink); }
.h12-search-result__arrow { font-family: var(--h12-font-mono); font-size: 14px; color: #C4C4C4; transition: color var(--h12-t-fast); }
.h12-search-result:hover .h12-search-result__arrow { color: var(--h12-red); }

.h12-search-empty { padding: 36px 20px; text-align: center; }
.h12-search-empty[hidden] { display: none; }
.h12-search-empty__title { font-family: var(--h12-font-display); font-size: 22px; text-transform: uppercase; color: var(--h12-ink); }
.h12-search-empty p { font-size: 13px; color: var(--h12-text-2); margin: 8px 0 0; }

/* Sous le nav sticky (z-index 50) : le dropdown vit DANS le contexte d'empilement
   du nav, donc un overlay au-dessus de 50 bloquerait le survol et les clics des
   résultats. À 49, l'overlay couvre la page mais laisse le panneau interactif. */
.h12-search-overlay { position: fixed; inset: 0; z-index: 49; background: transparent; }
.h12-search-overlay[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.h12-search-drop { animation: none; }
}

@media (max-width: 760px) {
	.h12-search-wrap { position: static; }
	.h12-search-drop { width: 320px; right: 12px; }
}

/* ============================================================================
   FOOTER (footer.php)
   ========================================================================== */
.h12-footer { background: var(--h12-footer); color: #fff; padding: 64px 40px 32px; }
.h12-footer__grid { max-width: var(--h12-maxw-content); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
/* Sans le bloc « Suivez-nous » (aucun réseau renseigné), la 4e colonne
   resterait vide et le pied de page pencherait à gauche. */
.h12-footer__grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.h12-footer__logo { height: 42px; width: auto; filter: invert(1); margin-bottom: 18px; }
.h12-footer__nap { font-style: normal; font-size: 14px; color: #B8B8B8; line-height: 1.7; margin-top: 14px; }
.h12-footer__nap a { color: #d8d8d8; }
.h12-footer h4 { font-family: var(--h12-font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--h12-text-3); margin: 0 0 16px; }
/* Deuxieme titre dans une meme colonne (bloc « Nos guides » sous « Aide ») :
   sans cet air, le titre colle a la derniere puce de la liste au-dessus. */
.h12-footer__col > ul + h4 { margin-top: 28px; }
.h12-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.h12-footer a { font-size: 14px; color: #d8d8d8; transition: color var(--h12-t-fast); }
.h12-footer a:hover { color: var(--h12-red); }
.h12-footer__legal { max-width: var(--h12-maxw-content); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid #262626; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.h12-footer__legal a { font-family: var(--h12-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--h12-text-3); }
.h12-footer__legal a:hover { color: var(--h12-red); }
.h12-footer__bottom { max-width: var(--h12-maxw-content); margin: 18px auto 0; padding-top: 22px; border-top: 1px solid #262626; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--h12-font-mono); font-size: 11px; letter-spacing: .08em; color: var(--h12-text-3); text-transform: uppercase; }
.h12-footer__payments { display: flex; align-items: center; gap: 12px; }
.h12-footer__payments-label { font-family: var(--h12-font-mono); font-size: 11px; letter-spacing: .08em; color: var(--h12-text-3); text-transform: uppercase; }
.h12-footer__payment-icons { display: flex; align-items: center; gap: 8px; }
.h12-footer__payment-icon-wrapper { display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.03); border: 1px solid #262626; border-radius: var(--h12-radius-sm); padding: 5px 12px; height: 28px; transition: background var(--h12-t-fast), border-color var(--h12-t-fast), transform var(--h12-t-fast); cursor: default; }
.h12-footer__payment-icon-wrapper:hover { transform: translateY(-2px); }
.h12-payment-icon { height: 14px; width: auto; fill: var(--h12-text-3); transition: fill var(--h12-t-fast); }
.h12-footer__payment-icon-wrapper[title="Stripe"]:hover { background: rgba(99, 91, 255, 0.1); border-color: #635BFF; }
.h12-footer__payment-icon-wrapper[title="Stripe"]:hover .h12-payment-icon { fill: #635BFF; }
.h12-footer__payment-icon-wrapper[title="PayPal"]:hover { background: rgba(0, 121, 193, 0.1); border-color: #0079C1; }
.h12-footer__payment-icon-wrapper[title="PayPal"]:hover .h12-payment-icon { fill: #0079C1; }
.h12-footer__payment-icon-wrapper[title="Square"]:hover { background: rgba(255, 255, 255, 0.08); border-color: #ffffff; }
.h12-footer__payment-icon-wrapper[title="Square"]:hover .h12-payment-icon { fill: #ffffff; }

/* ============================================================================
   CONTENU LONG (pages légales / contenu — page.php)
   ========================================================================== */
.h12-page__content { max-width: 820px; }
.h12-page__content h2 { font-family: var(--h12-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 26px; line-height: 1; margin: 38px 0 12px; color: var(--h12-ink); }
.h12-page__content h3 { font-weight: 800; font-size: 18px; margin: 24px 0 8px; color: var(--h12-ink); }
.h12-page__content p { font-size: 16px; line-height: 1.7; color: var(--h12-text-2); margin: 0 0 16px; }
.h12-page__content ul, .h12-page__content ol { margin: 0 0 18px; padding-left: 22px; color: var(--h12-text-2); }
.h12-page__content li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.h12-page__content strong { color: var(--h12-ink); font-weight: 700; }
.h12-page__content a { color: var(--h12-red); text-decoration: underline; }
.h12-page__content .h12-prose-lead { font-size: 18px; line-height: 1.65; color: var(--h12-ink); }
.h12-page__content .h12-prose-note { font-size: 13px; color: var(--h12-text-3); border-top: var(--h12-bd); padding-top: 16px; margin-top: 30px; }
.h12-page__content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.h12-page__content th { text-align: left; background: var(--h12-bg-gray); font-family: var(--h12-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--h12-text-2); padding: 10px 14px; border: 1px solid var(--h12-border); }
.h12-page__content td { padding: 10px 14px; border: 1px solid var(--h12-border); font-size: 15px; line-height: 1.55; color: var(--h12-text-2); }
.h12-post-meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--h12-text-3); margin: 0 0 10px; }

/* ============================================================================
   ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--h12-t-reveal) var(--h12-ease), transform var(--h12-t-reveal) var(--h12-ease); }
.reveal.reveal-in { opacity: 1; transform: none; }
.hero-slide { transition: opacity .8s ease; }
.hero-dot { transition: background .3s ease, width .3s ease; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.hero-slide { transition: none !important; }
	* { scroll-behavior: auto !important; }
}

/* ============================================================================
   RESPONSIVE — mobile-first des points de rupture clés
   ========================================================================== */
@media (max-width: 900px) {
	.h12-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
	.h12-nav__inner { padding: 12px 20px; }
	.h12-nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--h12-ink); padding: 8px 20px 20px; }
	.h12-nav__menu.is-open { display: flex; }
	.h12-nav__menu li { padding: 12px 0; border-bottom: 1px solid #262626; }
	.h12-burger { display: block; order: 3; }
	.h12-section { padding: 48px 20px; }
	.h12-wrap { padding: 0 20px; }
	.h12-footer__grid { grid-template-columns: 1fr; }
	.h12-footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
	.h12-footer__payments { flex-direction: column; gap: 10px; }
}

/* ============================================================================
   MINI-PANIER (drawer) — aperçu du panier au clic sur l'icône du header
   ========================================================================== */
.h12-drawer { position: fixed; inset: 0; z-index: 1000; }
.h12-drawer[hidden] { display: none; }
/* Barre d'admin WP : elle recouvre le haut du drawer pour les connectés. */
.admin-bar .h12-drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .h12-drawer { top: 46px; } }
.h12-drawer__overlay {
	position: absolute; inset: 0; background: rgba(20, 20, 20, .5); opacity: 0;
	transition: opacity .28s var(--h12-ease); cursor: pointer;
}
.h12-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
	background: #fff; display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .28s var(--h12-ease);
	box-shadow: var(--h12-shadow-dark);
}
.h12-drawer.is-open .h12-drawer__overlay { opacity: 1; }
.h12-drawer.is-open .h12-drawer__panel { transform: translateX(0); }
.h12-drawer-lock, .h12-drawer-lock body { overflow: hidden; }

.h12-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 22px; border-bottom: var(--h12-bd); flex: none;
}
.h12-drawer__title {
	font-family: var(--h12-font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .01em;
}
.h12-drawer__close {
	width: 36px; height: 36px; border: 1.5px solid var(--h12-border); background: #fff;
	border-radius: var(--h12-radius-sm); font-size: 14px; line-height: 1; cursor: pointer;
	transition: border-color var(--h12-t-fast);
}
.h12-drawer__close:hover { border-color: var(--h12-ink); }
/* ⚠ Le JS « cart fragments » de Woo REMPLACE le div du mini-panier par un div
   qui n'a que la classe .widget_shopping_cart_content : c'est elle qu'on style
   (h12-drawer__body disparaît après le premier rafraîchissement AJAX). */
.h12-drawer .widget_shopping_cart_content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 18px 22px; display: flex; flex-direction: column; }
/* Tout le contenu du mini-panier reste borné à la largeur du panneau. */
.h12-drawer .widget_shopping_cart_content, .h12-drawer .widget_shopping_cart_content * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* Widget mini-panier Woo dans le drawer */
.h12-drawer ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; flex: 1 0 auto; width: 100%; }
.h12-drawer li.woocommerce-mini-cart-item {
	position: relative; width: 100%; min-height: 64px;
	padding: 14px 30px 14px 78px; border-bottom: var(--h12-bd);
}
.h12-drawer li.woocommerce-mini-cart-item:first-child { padding-top: 0; }
.h12-drawer li.woocommerce-mini-cart-item:first-child img { top: 0; }
.h12-drawer li.woocommerce-mini-cart-item img {
	position: absolute; left: 0; top: 14px; width: 64px; height: 64px; object-fit: cover; border: var(--h12-bd);
	border-radius: var(--h12-radius); background: var(--h12-bg-gray); margin: 0;
}
/* Lien produit (image + nom) : le nom en gras, l'image sortie du flux ci-dessus. */
.h12-drawer li.woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
	display: block; color: inherit; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3;
}
.h12-drawer li.woocommerce-mini-cart-item > a:not(.remove_from_cart_button):hover { color: var(--h12-red); }
.h12-drawer li.woocommerce-mini-cart-item a.remove_from_cart_button {
	position: absolute; top: 12px; right: 0; width: 24px; height: 24px; display: flex; align-items: center;
	justify-content: center; color: var(--h12-red); text-decoration: none; font-size: 18px; font-weight: 700;
	line-height: 1; border-radius: var(--h12-radius-sm);
}
.h12-drawer li.woocommerce-mini-cart-item a.remove_from_cart_button:hover { background: #FFF6F6; }
.h12-drawer li.woocommerce-mini-cart-item dl.variation {
	margin: 5px 0 0; font-family: var(--h12-font-mono); font-size: 10px; color: var(--h12-text-3);
	line-height: 1.55; display: flex; flex-wrap: wrap; gap: 0 8px;
}
.h12-drawer li.woocommerce-mini-cart-item dl.variation dt { font-weight: 700; margin: 0 3px 0 0; }
.h12-drawer li.woocommerce-mini-cart-item dl.variation dd { margin: 0; }
.h12-drawer li.woocommerce-mini-cart-item dl.variation dd p { margin: 0; display: inline; }
.h12-drawer li.woocommerce-mini-cart-item .quantity {
	display: block; font-family: var(--h12-font-mono); font-size: 12px; color: var(--h12-text-2); margin-top: 6px;
}
.h12-drawer p.woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%;
	margin: 16px 0 0; padding-top: 14px; border-top: var(--h12-bd);
	font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
}
.h12-drawer p.woocommerce-mini-cart__total .amount {
	font-family: var(--h12-font-display); font-weight: 400; font-size: 28px; color: var(--h12-red); letter-spacing: 0;
}
.h12-drawer p.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 16px 0 0; }
.h12-drawer .h12-minicart__checkout,
.h12-drawer .h12-minicart__view {
	display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px 20px;
	font-family: var(--h12-font-body); font-weight: 800; font-size: 14px; text-transform: uppercase;
	letter-spacing: .04em; border-radius: var(--h12-radius-sm); text-decoration: none; transition: all var(--h12-t-fast);
}
.h12-drawer .h12-minicart__checkout { background: var(--h12-red); color: #fff; order: 1; }
.h12-drawer .h12-minicart__checkout:hover { background: var(--h12-red-hover); }
.h12-drawer .h12-minicart__view { background: #fff; color: var(--h12-ink); border: 2px solid var(--h12-ink); order: 2; }
.h12-drawer .h12-minicart__view:hover { background: var(--h12-ink); color: #fff; }
/* Extras du drawer : quantité, prix unitaire, lien Modifier */
.h12-minicart__meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.h12-minicart-qty {
	display: inline-flex; align-items: center; flex: none;
	border: 1.5px solid var(--h12-border); border-radius: var(--h12-radius-sm); overflow: hidden; background: #fff;
}
.h12-minicart-qty__btn {
	width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--h12-ink);
	transition: background var(--h12-t-fast);
}
.h12-minicart-qty__btn:hover { background: var(--h12-bg-gray); }
.h12-minicart-qty__num { min-width: 26px; text-align: center; font-family: var(--h12-font-mono); font-size: 12px; font-weight: 700; }
.h12-minicart-qty.is-busy { opacity: .45; pointer-events: none; }
.h12-minicart__unit { font-family: var(--h12-font-mono); font-size: 11px; color: var(--h12-text-2); white-space: nowrap; }
.h12-minicart__edit {
	margin-left: auto; font-family: var(--h12-font-mono); font-size: 10px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--h12-ink);
	text-decoration: underline; text-underline-offset: 3px;
}
.h12-minicart__edit:hover { color: var(--h12-red); }

/* Note de commande */
.h12-minicart__note { margin-top: 14px; }
.h12-minicart__note label {
	display: block; font-family: var(--h12-font-mono); font-size: 10px; letter-spacing: .1em;
	text-transform: uppercase; color: var(--h12-text-2); margin-bottom: 6px;
}
.h12-minicart__note textarea {
	width: 100%; min-height: 56px; resize: vertical; padding: 10px 12px;
	border: 1.5px solid var(--h12-border); border-radius: var(--h12-radius-sm);
	font-family: var(--h12-font-body); font-size: 13px; line-height: 1.5; color: var(--h12-ink);
}
.h12-minicart__note textarea:focus { outline: none; border-color: var(--h12-ink); }

/* Acceptation des conditions */
.h12-minicart__terms {
	display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer;
	font-size: 12px; line-height: 1.55; color: var(--h12-text-2);
}
.h12-minicart__terms input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--h12-red); cursor: pointer; }
.h12-minicart__terms a { color: var(--h12-ink); text-decoration: underline; text-underline-offset: 2px; }
.h12-minicart__terms a:hover { color: var(--h12-red); }
@keyframes h12nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.h12-minicart__terms.is-nudge { animation: h12nudge .28s var(--h12-ease) 2; }
.h12-minicart__terms.is-nudge, .h12-minicart__terms.is-nudge a { color: var(--h12-red); }
.h12-drawer .h12-minicart__checkout.is-disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .h12-minicart__terms.is-nudge { animation: none; } }

.h12-drawer p.woocommerce-mini-cart__empty-message {
	flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
	font-family: var(--h12-font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
	color: var(--h12-text-2); margin: 0;
}
@media (prefers-reduced-motion: reduce) {
	.h12-drawer__overlay, .h12-drawer__panel { transition: none; }
}

/* ---- Sélecteur de langue FR/EN (header sombre) ---- */
.h12-lang { display: inline-flex; align-items: center; gap: 2px; font-family: var(--h12-font-mono); font-size: 12px; letter-spacing: .04em; }
.h12-lang__opt { color: var(--h12-hero-sub); text-decoration: none; padding: 4px 6px; border-radius: var(--h12-radius-sm); line-height: 1; transition: color var(--h12-t-fast) var(--h12-ease); }
.h12-lang__opt:hover { color: #fff; }
.h12-lang__opt.is-active { color: #fff; font-weight: 700; }
.h12-lang__sep { color: rgba(255, 255, 255, .28); }
@media (max-width: 640px) { .h12-lang { font-size: 11px; } .h12-lang__opt { padding: 4px 4px; } }
/* Filet de sécurité : masque le sélecteur flottant de TranslatePress (on a le nôtre dans le header). */
.trp-floating-switcher, .trp-language-switcher.trp-floating-switcher { display: none !important; }

/* ---- Bande de logos partenaires (template-parts/logo-band.php) ----
   Stylée ici (theme.css, chargée partout) et pas dans partners.css, parce que
   le template-part est réutilisable (page partenaires, accueil, etc.).
   Flex centré plutôt que grille : une bande à 1 seul logo reste belle, elle ne
   s'étire pas sur toute la largeur. Les tuiles blanches encadrées gèrent aussi
   bien un PNG transparent qu'un logo en bloc de couleur pleine. */
.h12-logos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

.h12-logos__item { flex: 0 1 220px; }

.h12-logos__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	padding: 22px;
	background: var(--h12-white);
	border: var(--h12-bd);
	border-radius: var(--h12-radius);
	transition: border-color var(--h12-t-fast) var(--h12-ease),
				transform var(--h12-t-fast) var(--h12-ease),
				box-shadow var(--h12-t-fast) var(--h12-ease);
}

/* object-fit + double contrainte : un logo large et un logo carré tombent tous
   les deux à la bonne échelle, sans jamais déborder de la tuile. */
.h12-logos__tile img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

a.h12-logos__tile:hover,
a.h12-logos__tile:focus-visible {
	border-color: var(--h12-red);
	transform: translateY(-3px);
	box-shadow: var(--h12-shadow-card);
}

@media (max-width: 640px) {
	.h12-logos { gap: 12px; }
	.h12-logos__item { flex: 0 1 140px; }
	.h12-logos__tile { height: 92px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	a.h12-logos__tile:hover,
	a.h12-logos__tile:focus-visible { transform: none; }
}
