/*
Theme Name:   HOUNDJROXI
Description:  Thème « Le colis du pays » pour HOUNDJROXI du 221 (WooCommerce), pensé d'abord pour le téléphone.
Version:      0.3.2
Requires PHP: 8.1
Text Domain:  houndjroxi
*/

/* ==========================================================================
   Police pochoir (Big Shoulders Stencil, SIL OFL 1.1, hébergée localement)
   ========================================================================== */

@font-face {
	font-family: "Big Shoulders Stencil";
	src: url("assets/fonts/big-shoulders-stencil-latin.woff2") format("woff2");
	font-weight: 600 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Jetons : encre de tampon, papier carbone, formulaire
   ========================================================================== */

:root {
	--hx-violet: #4a2c8f;          /* encre de tampon : couleur dominante */
	--hx-violet-fonce: #351f69;
	--hx-violet-pale: #ece6f7;
	--hx-violet-texte: #e6ddf7;    /* texte secondaire sur fond violet */
	--hx-jaune: #f7d54a;           /* double carbone jaune */
	--hx-jaune-fonce: #e9c22a;
	--hx-papier: #ffffff;          /* blanc du formulaire */
	--hx-encre: #15131a;           /* encre noire */
	--hx-encre-douce: #4a4656;
	--hx-rouge: #c8211a;           /* le seul rouge : urgence et irréversible */
	--hx-rouge-sur-jaune: #9e1610; /* même rouge, foncé pour rester lisible sur le jaune (5,8:1) */

	--hx-pochoir: "Big Shoulders Stencil", "Arial Narrow", sans-serif;
	--hx-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

	--hx-marge: clamp(16px, 4vw, 40px);
	--hx-largeur: 1180px;
	--hx-sortie: cubic-bezier(0.16, 1, 0.3, 1);

	/* Gamme typographique (voir DESIGN.md) */
	--hx-t-etiquette: 0.75rem;
	--hx-t-petit: 0.875rem;
	--hx-t-corps: 1rem;
	--hx-t-sous-titre: 1.25rem;
	--hx-t-titre: 1.5rem;
	--hx-t-chiffre: 1.9rem;
	--hx-t-stat: 2.6rem;
	--hx-t-section: clamp(1.7rem, 6vw, 2.6rem);
	--hx-t-grand-titre: clamp(2.1rem, 7vw, 3.6rem);
	--hx-t-slogan: clamp(2.6rem, 11.5vw, 6rem);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scrollbar-color: var(--hx-violet) var(--hx-violet-pale);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--hx-papier);
	color: var(--hx-encre);
	font-family: var(--hx-texte);
	font-size: var(--hx-t-corps);
	line-height: 1.55;
	caret-color: var(--hx-violet);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--hx-jaune);
	color: var(--hx-encre);
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--hx-violet);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--hx-violet-fonce);
}

:focus-visible {
	outline: 3px solid var(--hx-jaune);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--hx-violet);
	border-radius: 3px;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

.hx-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.hx-evitement {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 10;
	padding: 10px 14px;
	background: var(--hx-jaune);
	color: var(--hx-encre);
	font-weight: 700;
}

.hx-evitement:focus {
	top: 8px;
}

/* ==========================================================================
   Logo-tampon
   ========================================================================== */

.hx-tampon {
	display: block;
	color: var(--hx-violet);
	overflow: visible;
}

.hx-tampon text {
	font-family: var(--hx-pochoir);
	font-weight: 800;
}

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

.hx-entete {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px var(--hx-marge);
	background: var(--hx-violet);
	color: var(--hx-papier);
	border-bottom: 1px solid var(--hx-violet-fonce);
}

.hx-marque {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--hx-papier);
	text-decoration: none;
}

.hx-marque:hover {
	color: var(--hx-papier);
}

.hx-marque__tampon {
	width: 40px;
	height: 40px;
	color: var(--hx-papier);
	--hx-tampon-papier: var(--hx-violet);
}

.hx-marque__nom {
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-titre);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
}

.hx-marque__221 {
	padding: 4px 7px 3px;
	background: var(--hx-jaune);
	color: var(--hx-encre);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-petit);
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1;
	white-space: nowrap;
}

.hx-colis {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px;
	background: var(--hx-jaune);
	color: var(--hx-encre);
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 160ms var(--hx-sortie);
}

.hx-colis:hover {
	background: var(--hx-jaune-fonce);
	color: var(--hx-encre);
}

.hx-colis__icone {
	width: 22px;
	height: 22px;
}

.hx-colis__nb {
	min-width: 1.6em;
	padding: 1px 6px;
	background: var(--hx-encre);
	color: var(--hx-jaune);
	border-radius: 999px;
	font-size: var(--hx-t-petit);
	font-variant-numeric: tabular-nums;
	text-align: center;
}

@media (max-width: 420px) {
	.hx-marque__nom {
		font-size: var(--hx-t-sous-titre);
	}

	.hx-colis span:not(.hx-colis__nb) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

/* ==========================================================================
   Contenu des pages intérieures (boutique, panier, compte)
   ========================================================================== */

.hx-contenu {
	max-width: var(--hx-largeur);
	margin: 0 auto;
	padding: 28px var(--hx-marge) 64px;
}

.home .hx-contenu {
	max-width: none;
	padding: 0;
}

body:not(.home) .hx-contenu h1,
.woocommerce-products-header__title {
	margin: 0 0 20px;
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-grand-titre);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.hx-bouton,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 22px;
	border: 0;
	border-radius: 4px;
	background: var(--hx-violet);
	color: var(--hx-papier);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-sous-titre);
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 14px -6px rgba(21, 19, 26, 0.45);
	transition: transform 160ms var(--hx-sortie), background-color 160ms var(--hx-sortie), box-shadow 160ms var(--hx-sortie);
}

.hx-bouton:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: var(--hx-violet-fonce);
	color: var(--hx-papier);
	transform: translateY(-1px);
}

.hx-bouton:active,
.woocommerce a.button:active,
.woocommerce button.button:active {
	transform: translateY(1px) scale(0.98);
	box-shadow: 0 2px 6px -3px rgba(21, 19, 26, 0.5);
}

.hx-bouton--jaune {
	background: var(--hx-jaune);
	color: var(--hx-encre);
}

.hx-bouton--jaune:hover {
	background: var(--hx-jaune-fonce);
	color: var(--hx-encre);
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce a.button.disabled {
	background: var(--hx-violet-pale);
	color: var(--hx-encre-douce);
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

/* ==========================================================================
   La une : slogan + bordereau
   ========================================================================== */

.hx-une {
	display: grid;
	gap: 26px;
	padding: 26px var(--hx-marge) 56px;
	background: var(--hx-violet);
	color: var(--hx-papier);
}

.hx-une__titre {
	max-width: 12ch;
	margin: 0 0 12px;
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-slogan);
	font-weight: 900;
	line-height: 0.88;
	letter-spacing: -0.005em;
	text-transform: uppercase;
}

.hx-une__texte {
	max-width: 46ch;
	margin: 0 0 18px;
	color: var(--hx-violet-texte);
	font-size: var(--hx-t-corps);
}

.hx-une__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

@media (max-width: 420px) {
	.hx-une__actions .hx-bouton {
		padding: 12px 16px;
		font-size: var(--hx-t-sous-titre);
	}
}

@media (min-width: 900px) {
	.hx-une__texte {
		margin-bottom: 28px;
		font-size: var(--hx-t-sous-titre);
	}
}

.hx-lien-clair {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--hx-papier);
	font-weight: 700;
}

.hx-lien-clair:hover {
	color: var(--hx-jaune);
}

/* Le bordereau : formulaire imprimé à l'encre violette, valeurs à l'encre noire */

.hx-bordereau {
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr;
	align-self: start;
	background: var(--hx-papier);
	color: var(--hx-encre);
	border-radius: 3px;
	box-shadow: 0 24px 48px -18px rgba(10, 4, 30, 0.6), 0 2px 6px rgba(10, 4, 30, 0.25);
}

.hx-bordereau__souche {
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 2px dashed var(--hx-violet);
	background: var(--hx-violet-pale);
}

.hx-bordereau__souche span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-corps);
	font-weight: 800;
	letter-spacing: 0.14em;
}

.hx-bordereau__champs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0;
}

.hx-champ {
	min-width: 0;
	padding: 10px 14px 12px;
	border-bottom: 1.5px solid var(--hx-violet);
}

.hx-champ:not(.hx-champ--large):nth-child(odd) {
	border-right: 1.5px solid var(--hx-violet);
}

.hx-champ--large {
	grid-column: 1 / -1;
}

.hx-champ:last-child {
	border-bottom: 0;
}

/* Place réservée au tampon, à droite du dernier champ du bordereau d'accueil */
.hx-une .hx-champ:last-child {
	min-height: 112px;
	padding-right: 38%;
}

.hx-champ dt {
	margin: 0 0 2px;
	color: var(--hx-violet);
	font-size: var(--hx-t-etiquette);
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hx-champ dd {
	margin: 0;
	font-size: var(--hx-t-corps);
	font-weight: 650;
	line-height: 1.3;
}

.hx-champ small {
	display: block;
	margin-top: 2px;
	color: var(--hx-encre-douce);
	font-size: var(--hx-t-petit);
	font-weight: 400;
}

/* Le tampon frappé en travers des champs Livraison et Paiement */
.hx-bordereau__tampon {
	--r: -16deg;
	position: absolute;
	right: 3%;
	bottom: -3%;
	width: clamp(124px, 35%, 200px);
	height: auto;
	color: var(--hx-violet);
	opacity: 0.88;
	transform: rotate(var(--r));
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* Mention SPÉCIMEN : ce bordereau est un exemple */
.hx-specimen {
	position: absolute;
	top: 10px;
	right: 12px;
	padding: 3px 8px 2px;
	border: 2px solid var(--hx-violet);
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-petit);
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transform: rotate(5deg);
	opacity: 0.85;
}

/* Le double carbone jaune : les conditions */
.hx-bordereau--carbone {
	background: var(--hx-jaune);
	box-shadow: 0 18px 36px -18px rgba(21, 19, 26, 0.45), 0 1px 3px rgba(21, 19, 26, 0.2);
}

.hx-bordereau--carbone .hx-bordereau__souche {
	background: var(--hx-jaune-fonce);
}

.hx-bordereau--carbone .hx-urgent {
	color: var(--hx-rouge-sur-jaune);
}

.hx-bordereau--carbone .hx-champ small {
	color: var(--hx-encre-douce);
}

.hx-champ dd.hx-chiffre {
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-chiffre);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
	.hx-une {
		grid-template-columns: 1.05fr 1fr;
		align-items: center;
		gap: 56px;
		padding-top: 72px;
		padding-bottom: 88px;
		padding-left: max(var(--hx-marge), calc((100vw - var(--hx-largeur)) / 2));
		padding-right: max(var(--hx-marge), calc((100vw - var(--hx-largeur)) / 2));
	}

	.hx-bordereau {
		grid-template-columns: 48px 1fr;
		transform: rotate(1.5deg);
	}

	.hx-bordereau__tampon {
		width: 150px;
		right: 4%;
		bottom: 3%;
	}

	.hx-une .hx-champ:last-child {
		min-height: 172px;
		padding-right: 190px;
	}
}

/* ==========================================================================
   Sections
   ========================================================================== */

.hx-titre-section {
	margin: 0 0 28px;
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-grand-titre);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
}

.hx-etapes,
.hx-conditions {
	max-width: var(--hx-largeur);
	margin: 0 auto;
	padding: 64px var(--hx-marge);
}

/* La piste : quatre tampons ronds le long du trajet du colis */

.hx-piste {
	position: relative;
	display: grid;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-piste::before {
	content: "";
	position: absolute;
	left: 45px;
	top: 46px;
	bottom: 46px;
	border-left: 3px dashed var(--hx-violet);
	opacity: 0.45;
}

.hx-piste__etape {
	position: relative;
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 18px;
	align-items: center;
}

.hx-piste__etape h3 {
	margin: 0 0 4px;
	font-size: var(--hx-t-sous-titre);
}

.hx-piste__etape p {
	max-width: 40ch;
	margin: 0;
	color: var(--hx-encre-douce);
}

/* Tampon rond : double anneau, encre violette, posé de travers */
.hx-cachet-rond {
	--r: -8deg;
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	border: 4px solid currentColor;
	border-radius: 50%;
	background: var(--hx-papier);
	box-shadow: inset 0 0 0 4px var(--hx-papier), inset 0 0 0 6px currentColor;
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-corps);
	font-weight: 900;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
	transform: rotate(var(--r));
}

.hx-piste__etape:nth-child(2) .hx-cachet-rond {
	--r: 6deg;
}

.hx-piste__etape:nth-child(3) .hx-cachet-rond {
	--r: -3deg;
}

.hx-piste__etape:nth-child(4) .hx-cachet-rond {
	--r: 10deg;
}

@media (min-width: 900px) {
	.hx-piste {
		grid-template-columns: repeat(4, 1fr);
		gap: 32px;
	}

	.hx-piste::before {
		left: 46px;
		right: calc((100% - 96px) / 4 - 46px);
		top: 46px;
		bottom: auto;
		border-left: 0;
		border-top: 3px dashed var(--hx-violet);
	}

	.hx-piste__etape {
		grid-template-columns: 1fr;
		align-items: start;
		align-content: start;
	}
}

/* Étiquettes de colis sur fond jaune carbone */

.hx-contenu-colis {
	padding: 64px var(--hx-marge);
	background: var(--hx-jaune);
}

.hx-contenu-colis .hx-titre-section {
	max-width: var(--hx-largeur);
	margin-left: auto;
	margin-right: auto;
	color: var(--hx-encre);
}

.hx-etiquettes {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	max-width: var(--hx-largeur);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.hx-etiquette {
	--r: -1.5deg;
	flex: 1 1 260px;
	max-width: 420px;
	transform: rotate(var(--r));
}

.hx-etiquette:nth-child(2) {
	--r: 1deg;
	flex-basis: 300px;
}

.hx-etiquette:nth-child(3) {
	--r: -0.5deg;
	flex-basis: 340px;
}

.hx-etiquette a {
	position: relative;
	display: block;
	height: 100%;
	padding: 20px 20px 22px 58px;
	background: var(--hx-papier);
	color: var(--hx-encre);
	text-decoration: none;
	clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
	box-shadow: 0 10px 22px -12px rgba(21, 19, 26, 0.5);
	transition: transform 200ms var(--hx-sortie);
}

/* Œillet de l'étiquette */
.hx-etiquette a::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 3px solid var(--hx-violet);
	border-radius: 50%;
	background: var(--hx-jaune);
}

.hx-etiquette a:hover {
	transform: translateY(-3px);
}

.hx-etiquette__nom {
	display: block;
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-titre);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.hx-etiquette__detail {
	display: block;
	margin-top: 8px;
	color: var(--hx-encre-douce);
}

.hx-pastille {
	display: inline-block;
	margin-top: 12px;
	padding: 4px 10px;
	background: var(--hx-violet);
	color: var(--hx-papier);
	font-size: var(--hx-t-etiquette);
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Conditions : le double carbone du bordereau */

@media (min-width: 900px) {
	.hx-conditions {
		display: grid;
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 56px;
		align-items: start;
	}
}

.hx-urgent {
	display: block;
	margin-top: 4px;
	color: var(--hx-rouge);
	font-size: var(--hx-t-petit);
	font-weight: 700;
}

/* Vendeurs : la fiche vendeur, sur encre noire */

.hx-vendeurs {
	padding: 64px var(--hx-marge) 72px;
	background: var(--hx-encre);
	color: var(--hx-papier);
}

.hx-vendeurs > * {
	max-width: var(--hx-largeur);
	margin-left: auto;
	margin-right: auto;
}

.hx-vendeurs__entete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 32px;
}

.hx-vendeurs__titre {
	max-width: 16ch;
	margin: 0;
	color: var(--hx-jaune);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-grand-titre);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
}

.hx-cachet-rond--jaune {
	--r: 12deg;
	flex: 0 0 auto;
	width: 104px;
	height: 104px;
	background: var(--hx-encre);
	box-shadow: inset 0 0 0 4px var(--hx-encre), inset 0 0 0 6px currentColor;
	color: var(--hx-jaune);
	font-size: var(--hx-t-sous-titre);
}

.hx-fiche-vendeur {
	margin-top: 0;
	margin-bottom: 0;
	border-bottom: 1.5px solid var(--hx-encre-douce);
}

.hx-fiche-vendeur > div {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
	padding: 16px 0;
	border-top: 1.5px solid var(--hx-encre-douce);
}

.hx-fiche-vendeur dt {
	color: var(--hx-jaune);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-titre);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.hx-fiche-vendeur dd {
	max-width: 60ch;
	margin: 0;
	color: #d9d5e2;
}

.hx-fiche-vendeur strong {
	color: var(--hx-papier);
}

.hx-vendeurs__note {
	margin-top: 20px;
	margin-bottom: 0;
	color: #d9d5e2;
	font-size: var(--hx-t-petit);
}

@media (min-width: 760px) {
	.hx-fiche-vendeur > div {
		grid-template-columns: 220px 1fr;
		gap: 24px;
		align-items: baseline;
	}
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.hx-pied {
	padding: 48px var(--hx-marge) 28px;
	background: var(--hx-violet);
	color: var(--hx-violet-texte);
}

.hx-pied > * {
	max-width: var(--hx-largeur);
	margin-left: auto;
	margin-right: auto;
}

.hx-pied__marque {
	display: flex;
	align-items: center;
	gap: 18px;
}

.hx-pied__tampon {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	color: var(--hx-papier);
	--hx-tampon-papier: var(--hx-violet);
}

.hx-pied__slogan {
	margin: 0;
	color: var(--hx-papier);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-section);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.hx-pied__infos {
	display: grid;
	gap: 14px;
	margin-top: 32px;
	margin-bottom: 0;
}

.hx-pied__infos dt {
	color: var(--hx-jaune);
	font-size: var(--hx-t-etiquette);
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hx-pied__infos dd {
	margin: 0;
	color: var(--hx-papier);
}

.hx-pied__bas {
	margin-top: 36px;
	padding-top: 16px;
	border-top: 1px solid #6a52a8;
	font-size: var(--hx-t-petit);
}

.hx-pied__bas + .hx-pied__bas {
	margin-top: 4px;
	padding-top: 0;
	border-top: 0;
}

.hx-pied__infos a {
	color: inherit;
	text-underline-offset: 3px;
}

.hx-mentions {
	margin-top: 12px;
	font-size: var(--hx-t-petit);
	color: var(--hx-encre-douce);
}

@media (min-width: 760px) {
	.hx-pied__infos {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==========================================================================
   WooCommerce : boutique, panier, formulaires
   ========================================================================== */

/* Les listes de produits sont stylées dans assets/boutique.css */

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-titre);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.woocommerce form .form-row label,
.woocommerce-form label {
	color: var(--hx-violet);
	font-size: var(--hx-t-etiquette);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"] {
	min-height: 48px;
	padding: 10px 12px;
	border: 0;
	border-bottom: 2px solid var(--hx-violet);
	border-radius: 0;
	background: var(--hx-violet-pale);
	color: var(--hx-encre);
	font-size: var(--hx-t-corps);
}

.woocommerce form .form-row input.input-text::placeholder {
	color: #6b6578;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text {
	border-bottom-color: var(--hx-rouge);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 0;
	border-top: 4px solid var(--hx-violet);
	background: var(--hx-violet-pale);
	color: var(--hx-encre);
	list-style: none;
}

.woocommerce-error {
	border-top-color: var(--hx-rouge);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

/* Panier vide : un bordereau à remplir */
.cart-empty.woocommerce-info,
.wc-block-cart__empty-cart__title {
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-titre);
	font-weight: 800;
	text-transform: uppercase;
}

/* ==========================================================================
   Le moment signature : le tampon qui frappe
   ========================================================================== */

.hx-attente {
	opacity: 0;
}

.est-frappe {
	animation: hx-frappe 560ms var(--hx-sortie) both;
	animation-delay: var(--delai, 0ms);
}

@keyframes hx-frappe {
	0% {
		opacity: 0;
		transform: rotate(var(--r, 0deg)) scale(1.55);
		filter: blur(3px);
	}

	55% {
		opacity: 1;
		transform: rotate(var(--r, 0deg)) scale(0.97);
		filter: blur(0);
	}

	100% {
		opacity: 1;
		transform: rotate(var(--r, 0deg)) scale(1);
		filter: blur(0);
	}
}

.hx-bordereau__tampon.est-frappe {
	animation-name: hx-frappe-tampon;
}

@keyframes hx-frappe-tampon {
	0% {
		opacity: 0;
		transform: rotate(var(--r)) scale(1.6);
		filter: blur(3px);
	}

	55% {
		opacity: 0.9;
		transform: rotate(var(--r)) scale(0.96);
		filter: blur(0);
	}

	100% {
		opacity: 0.9;
		transform: rotate(var(--r)) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hx-attente {
		opacity: 1;
	}

	.est-frappe {
		animation: none;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}
