/*
Theme Name: PAFEX
Theme URI: https://www.pafexfrance.fr
Author: PAFEX France
Description: Thème B2B noir et blanc pour PAFEX France : accueil, catalogue avec arborescence et recherche par référence, fiches produit, articles de marques et espace client. Compatible WooCommerce. La logique B2B (prix masqués, remises clients) est fournie par le plugin PAFEX Pro.
Version: 1.0.103
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pafex
Tags: e-commerce, woocommerce, minimal, black-and-white
*/

/* ---------- Polices (hébergées dans le thème) ---------- */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: italic;
	font-display: swap;
}

/* ---------- Couleurs et mesures ---------- */
:root {
	--ink: #0b0b0c;
	--ink-2: #3a3a37;
	--text: #2a2a28;
	--muted: #5e5e5a;
	--muted-2: #6b6b66;
	--line: #e6e6e2;
	--line-2: #dcdcd7;
	--soft: #f3f3f1;
	--bg: #ffffff;
	--dark-soft: #1a1a1c;
	--on-dark: #c4c4bf;
	--on-dark-2: #a3a39e;
	--danger: #b42318;
	--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1200px;
	--gutter: 24px;
	--r-xl: 32px;
	--r-l: 28px;
	--r-m: 24px;
	--r-s: 20px;
	--r-xs: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.pafex-icon { flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.pafex-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
}
.pafex-skip:focus { left: 16px; color: #fff; }

/* ---------- Mise en page ---------- */
.pafex-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.pafex-wrap .pafex-wrap { padding-inline: 0; }
.pafex-center { text-align: center; }
.pafex-narrow { max-width: 760px; margin-inline: auto; }

/* ---------- Typographie ---------- */
.pafex-eyebrow {
	display: block;
	margin: 0;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.pafex-display {
	margin: 16px auto 0;
	max-width: 1060px;
	font-size: calc(clamp(40px, 6.4vw, 84px) * .81);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.02;
}
.pafex-display--left { margin-left: 0; max-width: 860px; }
.pafex-h1 { margin-top: 12px; font-size: calc(clamp(36px, 4.6vw, 60px) * .81); letter-spacing: -0.04em; line-height: 1.04; }
.pafex-h2 { margin-top: 12px; font-size: calc(clamp(28px, 3.8vw, 48px) * .81); letter-spacing: -0.03em; line-height: 1.06; }
.pafex-h3 { margin-top: 48px; font-size: 22px; letter-spacing: -0.02em; }
.pafex-lead {
	margin-top: 24px;
	max-width: 620px;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.55;
	color: var(--muted);
}
.pafex-lead p + p { margin-top: 12px; }
.pafex-lead--center { margin-inline: auto; }
.pafex-muted { color: var(--muted); }
.pafex-small { font-size: 13px; }
.pafex-mono { font-family: var(--mono); }
.pafex-strong { font-weight: 600; }
.pafex-nowrap { white-space: nowrap; }

/* ---------- Boutons et liens ---------- */
.pafex-btn,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pafex-btn:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover { color: #fff; opacity: 0.85; }
.pafex-btn--light { border-color: #fff; background: #fff; color: var(--ink); }
.pafex-btn--light:hover { color: var(--ink); }
.pafex-btn--outline,
.woocommerce .button.alt-outline { background: transparent; color: var(--ink); }
.pafex-btn--outline:hover { color: var(--ink); background: var(--soft); opacity: 1; }
.pafex-btn--small { min-height: 44px; padding: 0 22px; font-size: 14px; }
.woocommerce .button:disabled,
.woocommerce .button.disabled { opacity: 0.4; cursor: not-allowed; }

.pafex-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}
.pafex-link .pafex-icon { transition: transform 0.15s ease; }
.pafex-link:hover .pafex-icon { transform: translateX(3px); }

.pafex-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.pafex-pill:hover { color: #fff; opacity: 0.85; }
.pafex-pill--soft { padding: 0 14px; background: var(--soft); color: var(--ink); }
.pafex-pill--soft:hover { color: var(--ink); background: var(--line); opacity: 1; }
.pafex-pill--small { min-height: 34px; padding: 0 14px; }

.pafex-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.pafex-actions--center { justify-content: center; }
.pafex-probox .pafex-actions { gap: 10px; margin-top: 20px; }

/* ---------- En-tête ---------- */
.pafex-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .pafex-header { top: 32px; }
.pafex-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	min-height: 56px;
	padding-block: 10px;
}
.pafex-logo {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	white-space: nowrap;
}
.pafex-logo { flex: none; margin-left: -14px; }
.pafex-logo img { display: block; width: 68px; height: auto; max-height: none; }
@media (max-width: 720px) { .pafex-logo { margin-left: -6px; } }
.pafex-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.pafex-menu { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.pafex-menu a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.pafex-menu .current-menu-item > a,
.pafex-menu .current-menu-ancestor > a,
.pafex-menu .current_page_item > a { font-weight: 600; }
.pafex-menu > li { position: relative; }
.pafex-menu .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin: -3px 0 0 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.pafex-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -14px;
	z-index: 60;
	min-width: 230px;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	margin: 0;
	padding: 8px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(11, 11, 12, 0.08);
}
.pafex-menu .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.pafex-menu li:hover > .sub-menu,
.pafex-menu li:focus-within > .sub-menu { display: block; }
.pafex-menu .sub-menu a { display: flex; width: 100%; min-height: 0; padding: 9px 12px; border-radius: 10px; font-weight: 400; white-space: nowrap; }
.pafex-menu .sub-menu a:hover { background: var(--soft); color: var(--ink); }
.pafex-menu .sub-menu .current-menu-item > a { font-weight: 600; }
.pafex-account { display: flex; align-items: center; gap: 10px; }
.pafex-account__name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.pafex-cart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	height: 40px;
	padding: 0 14px 0 8px;
	border-radius: 999px;
	color: var(--ink);
}
.pafex-cart:hover { background: var(--soft); color: var(--ink); }
.pafex-cart__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.pafex-cart__info { display: flex; flex-direction: column; gap: 2px; line-height: 1; text-align: left; white-space: nowrap; }
.pafex-cart__info[hidden] { display: none; }
.pafex-cart__count { font-size: 11px; color: var(--muted); }
.pafex-cart__total { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pafex-cart__ht { font-family: var(--font); font-size: 10px; font-weight: 400; color: var(--muted); }
.pafex-cart-count {
	position: absolute;
	top: -7px;
	right: -9px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.pafex-cart-count[hidden] { display: none; }
.pafex-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

@media (max-width: 1080px) {
	.pafex-burger { display: inline-flex; }
	.pafex-header__inner { gap: 8px 16px; }
	.pafex-nav {
		display: none;
		order: 10;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 8px 0 16px;
	}
	/* 1.0.84 : menu ouvert = panneau qui défile seul, à hauteur de l'écran ; la page derrière est bloquée.
	   (Avant : l'en-tête collant devenait plus haut que l'écran, et le bas du menu Marques n'était atteignable qu'en bas de page.) */
	.pafex-nav.is-open {
		display: flex;
		max-height: calc(100vh - var(--pafex-nav-top, 64px));
		max-height: calc(100dvh - var(--pafex-nav-top, 64px));
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	.pafex-menu { flex-direction: column; gap: 0; font-size: 17px; }
	.pafex-menu a { min-height: 48px; }
	.pafex-menu .sub-menu { display: block; position: static; min-width: 0; max-height: none; padding: 0 0 8px 16px; border: 0; border-radius: 0; box-shadow: none; background: none; }
	.pafex-menu .sub-menu a { min-height: 40px; padding: 0; font-size: 15px; color: var(--muted); }
	.pafex-menu .menu-item-has-children > a::after { display: none; }
	.pafex-search--header { width: 100%; }
	.pafex-account { order: 2; }
	.pafex-account__name { max-width: 110px; }
}

html.pafex-nav-lock { overflow: hidden; overscroll-behavior: none; }
html.pafex-nav-lock .pafex-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Recherche ---------- */
.pafex-search { position: relative; margin: 0; }
.pafex-search--header { width: 260px; max-width: 100%; }
.pafex-search__label { margin-bottom: 12px; }
.pafex-search__box { position: relative; }
.pafex-search__box .pafex-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pafex-search input[type="search"] {
	width: 100%;
	height: 36px;
	padding: 0 14px 0 36px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--soft);
	color: var(--ink);
	font-family: var(--font);
	font-size: 13px;
	-webkit-appearance: none;
	appearance: none;
}
.pafex-search input[type="search"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.pafex-search--sidebar input[type="search"] { height: 42px; border-radius: var(--r-xs); background: #fff; font-size: 14px; padding-left: 38px; }
.pafex-search--page input[type="search"] { height: 52px; font-size: 16px; padding-left: 42px; background: #fff; }
.pafex-search--page .pafex-icon { left: 16px; }

.pafex-suggest {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	width: 380px;
	max-width: calc(100vw - 32px);
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(11, 11, 12, 0.1);
}
.pafex-suggest[hidden] { display: none; }
.pafex-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 12px;
	color: var(--ink);
}
.pafex-suggest__item:hover,
.pafex-suggest__item.is-active { background: var(--soft); color: var(--ink); }
.pafex-suggest__thumb {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--soft);
	overflow: hidden;
}
.pafex-suggest__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pafex-suggest__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pafex-suggest__name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pafex-suggest__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pafex-suggest__empty { padding: 14px 10px; font-size: 14px; color: var(--muted); }
.pafex-suggest__all {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 4px;
	border-radius: 12px;
	background: var(--soft);
	font-size: 13px;
	font-weight: 500;
}
@media (max-width: 1080px) {
	.pafex-suggest { left: 0; right: auto; width: 100%; }
}

/* ---------- Images de remplacement ---------- */
.pafex-ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--soft);
}
.pafex-ph__ring { width: 34%; aspect-ratio: 1 / 1; border: 1px solid var(--line-2); border-radius: 50%; }
.pafex-ph__label {
	position: absolute;
	bottom: 24px;
	left: 0;
	right: 0;
	text-align: center;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-2);
}
.pafex-media { overflow: hidden; background: var(--soft); }
.pafex-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Accueil ---------- */
.pafex-hero { padding-top: 112px; }
.pafex-hero__media {
	margin-top: 72px;
	aspect-ratio: 16 / 8;
	border-radius: var(--r-xl);
}
.pafex-section { padding-top: 136px; }
.pafex-section--last { padding-bottom: 136px; }
.pafex-section--tight { padding-top: 96px; }
.pafex-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}
.pafex-section__head .pafex-h2,
.pafex-section__head .pafex-h3 { margin-top: 12px; }
.pafex-section__head .pafex-h3:first-child { margin-top: 0; }

.pafex-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pafex-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 4 / 5;
	padding: 28px;
	overflow: hidden;
	border-radius: var(--r-m);
	background: var(--soft);
	color: var(--ink);
	transition: transform 0.25s ease;
}
.pafex-tile:hover { color: var(--ink); transform: translateY(-4px); }
.pafex-tile__num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pafex-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pafex-tile__text { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pafex-tile.has-image { justify-content: flex-end; padding: 16px; }
.pafex-tile.has-image .pafex-tile__text { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pafex-tile__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pafex-tile__count { font-size: 14px; color: var(--muted); }

.pafex-dark { background: var(--ink); color: #fff; }
.pafex-dark a:not(.pafex-btn) { color: #fff; }
.pafex-dark .pafex-eyebrow { color: var(--on-dark-2); }
.pafex-dark .pafex-lead { color: var(--on-dark); }
.pafex-section--band { margin-top: 136px; padding-block: 120px; }
.pafex-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.pafex-split__text { flex: 1 1 420px; min-width: 0; }
.pafex-split__text .pafex-btn,
.pafex-split__text .pafex-link { margin-top: 32px; }
.pafex-split__media { flex: 1 1 420px; min-width: 0; aspect-ratio: 5 / 4; border-radius: var(--r-l); }
.pafex-dark .pafex-split__media { background: var(--dark-soft); }
.pafex-dark .pafex-ph__ring { border-color: rgba(255, 255, 255, 0.12); }
.pafex-split__media--soft { aspect-ratio: 4 / 3; }

.pafex-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 80px; }
.pafex-logos__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	transition: border-color 0.15s ease;
}
.pafex-logos__item:hover { border-color: rgba(255, 255, 255, 0.5); }
.pafex-logos__item img { max-height: 44px; width: auto; filter: grayscale(1) brightness(0) invert(1); }

.pafex-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 56px; text-align: left; }
.pafex-feature { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-m); }
.pafex-feature h3 { margin-top: 24px; font-size: 20px; letter-spacing: -0.01em; }
.pafex-feature p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Pages et articles ---------- */
.pafex-page { padding-top: 64px; padding-bottom: 120px; }
.pafex-page__head { margin-bottom: 48px; }
.pafex-page__head.pafex-center .pafex-h1 { margin-inline: auto; max-width: 900px; }
.pafex-page__head--left { margin-bottom: 56px; }
.pafex-page__head--left .pafex-display { margin-top: 16px; }
.pafex-page__media { margin-bottom: 64px; }
.pafex-page__media img { display: block; width: 100%; height: auto; border-radius: var(--r-l); }

.pafex-prose {
	max-width: 728px;
	margin-inline: auto;
	padding-inline: var(--gutter);
	font-size: 19px;
	line-height: 1.7;
	color: var(--text);
}
.pafex-prose > * + * { margin-top: 20px; }
.pafex-prose h2 { margin-top: 64px; font-size: calc(30px * .81); letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
.pafex-prose h3 { margin-top: 40px; font-size: 22px; color: var(--ink); }
.pafex-prose a { text-decoration: underline; text-underline-offset: 3px; }
.pafex-prose ul, .pafex-prose ol { padding-left: 1.2em; }
.pafex-prose img { border-radius: var(--r-m); }
.pafex-prose figure { margin-inline: 0; }
.pafex-prose figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.pafex-prose .alignwide { width: min(1152px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.pafex-prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.pafex-prose .alignfull img { border-radius: 0; }
.pafex-prose blockquote,
.pafex-prose .wp-block-quote,
.pafex-prose .wp-block-pullquote {
	margin: 72px 0;
	padding: 0;
	border: 0;
	text-align: center;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--ink);
}
.pafex-prose blockquote cite,
.pafex-prose .wp-block-quote cite {
	display: block;
	margin-top: 20px;
	font-family: var(--mono);
	font-size: 12px;
	font-style: normal;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.pafex-prose .wp-block-gallery { gap: 16px; }
.pafex-prose--story { padding-top: 96px; }
.pafex-prose--left { max-width: 760px; margin-left: 0; padding-inline: 0; }
.pafex-page--wc .pafex-wrap { max-width: var(--wrap); }

/* ---------- Marques ---------- */
.pafex-brand__head { padding-top: 96px; }
.pafex-brand__head .pafex-eyebrow { margin-top: 20px; }
.pafex-brand .pafex-hero__media { margin-top: 64px; }
.pafex-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; color: var(--muted); }
.pafex-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 48px 0 0; }
.pafex-facts > div { padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; }
.pafex-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pafex-facts dd { margin: 8px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pafex-brand { padding-bottom: 120px; }
.pafex-prevnext { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 120px; }
.pafex-prevnext a { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--r-m); background: var(--soft); }
.pafex-prevnext a.is-next { align-items: flex-end; text-align: right; }
.pafex-prevnext a:hover { color: var(--ink); background: var(--line); }
.pafex-prevnext__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.pafex-feature-card {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	border-radius: var(--r-xl);
	background: var(--ink);
	color: #fff;
}
.pafex-feature-card:hover { color: #fff; }
.pafex-feature-card__media { flex: 1 1 520px; min-width: 0; min-height: 420px; background: var(--dark-soft); }
.pafex-feature-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pafex-feature-card__body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; }
.pafex-feature-card .pafex-eyebrow { color: var(--on-dark-2); }
.pafex-feature-card__title { font-size: calc(clamp(28px, 3vw, 40px) * .81); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.pafex-feature-card__text { font-size: 17px; line-height: 1.55; color: var(--on-dark); }
.pafex-feature-card .pafex-btn { align-self: flex-start; margin-top: 8px; }

.pafex-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 16px; margin-top: 64px; }
.pafex-brandlist > .pafex-cards:empty { display: none; }
.pafex-card-story { display: flex; flex-direction: column; color: var(--ink); }
.pafex-card-story:hover { color: var(--ink); }
.pafex-card-story__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-m); background: var(--soft); }
.pafex-card-story__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pafex-card-story:hover .pafex-card-story__media img { transform: scale(1.03); }
.pafex-card-story .pafex-eyebrow { margin-top: 20px; }
.pafex-card-story__title { margin-top: 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.pafex-card-story__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pafex-card-story__more { margin-top: 14px; font-size: 14px; font-weight: 500; }

/* ---------- Catalogue ---------- */
.pafex-catalog .pafex-page__head { margin-bottom: 48px; }
.pafex-catalog__layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.pafex-filters { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 40px; }
.pafex-catalog__main { flex: 999 1 560px; min-width: 0; }
@media (max-width: 860px) {
	.pafex-filters { max-width: none; gap: 28px; }
}
.pafex-filters__block .pafex-eyebrow { margin-bottom: 12px; padding: 0; font-size: 11px; letter-spacing: 0.14em; }
.pafex-filters fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pafex-tree, .pafex-tree ul { margin: 0; padding: 0; list-style: none; }
.pafex-tree { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pafex-tree li { position: relative; }
.pafex-tree a { display: flex; align-items: center; min-height: 38px; padding: 0 40px 0 12px; border-radius: 10px; color: var(--ink); }
.pafex-tree a:hover { background: var(--soft); color: var(--ink); }
.pafex-tree .current-cat > a,
.pafex-tree > li.current-cat > a { background: var(--soft); font-weight: 600; }
.pafex-tree .children { display: none; flex-direction: column; gap: 2px; margin: 2px 0 6px 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.pafex-tree .children a { min-height: 34px; padding-left: 10px; color: var(--ink-2); }
.pafex-tree .is-open > .children,
.pafex-tree .current-cat > .children,
.pafex-tree .current-cat-parent > .children,
.pafex-tree .current-cat-ancestor > .children { display: flex; }
.pafex-tree__toggle {
	position: absolute;
	top: 3px;
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.pafex-tree__toggle:hover { background: var(--line); }
.pafex-tree__toggle .pafex-icon { transition: transform 0.2s ease; }
.pafex-tree__toggle[aria-expanded="true"] .pafex-icon { transform: rotate(180deg); }
.pafex-check { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; font-size: 14px; cursor: pointer; border-radius: 10px; }
.pafex-check:hover { background: var(--soft); }
.pafex-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.pafex-check__name { flex: 1; }
.pafex-check__count { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.pafex-check:has(input:checked) { background: var(--soft); font-weight: 600; }
.pafex-clear { display: inline-block; margin-top: 10px; padding-left: 12px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.pafex-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}
.pafex-toolbar__count { font-size: 14px; color: var(--muted); }
.pafex-toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select,
.pafex-select {
	min-height: 40px;
	padding: 0 36px 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--ink);
	font-family: var(--font);
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.pafex-view { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.pafex-view button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.pafex-view button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 11, 12, 0.08); }

/* Grille de produits */
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 40px 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
.pafex-section ul.products { margin-top: 0; }
ul.products::before, ul.products::after { display: none; }
.pafex-card { display: flex; flex-direction: column; min-width: 0; }
.pafex-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--r-s);
	background: var(--soft);
}
.pafex-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 8%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.35s ease;
}
.pafex-card:hover .pafex-card__media img { transform: scale(1.04); }
.pafex-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff;
	font-size: 11px;
	font-weight: 600;
}
.pafex-card__brand { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pafex-card__title { margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.pafex-card__brand + .pafex-card__title { margin-top: 6px; }
.pafex-card__media + .pafex-card__body .pafex-card__title:first-child { margin-top: 14px; }
.pafex-card__sku { margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.pafex-card__buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pafex-card__price { font-size: 15px; font-weight: 600; }
.pafex-card__price del { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* « À partir de » : en petit, au-dessus du prix */
.pafex-from {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.3;
	color: var(--muted);
}
.pafex-buybox__price .pafex-from { margin-bottom: 6px; font-size: 13px; }
.pafex-card__price { line-height: 1.2; }
.pafex-card__price ins { text-decoration: none; }
.pafex-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.pafex-add:hover { color: #fff; transform: scale(1.06); }
.pafex-add.loading { opacity: 0.4; pointer-events: none; }
.pafex-add.added { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pafex-card .added_to_cart { display: none; }

/* Vue liste */
ul.products.is-list { grid-template-columns: 1fr; gap: 0; }
ul.products.is-list .pafex-card { flex-direction: row; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
ul.products.is-list .pafex-card__media { flex: none; width: 88px; border-radius: 14px; }
ul.products.is-list .pafex-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 24px; flex: 1; min-width: 0; }
ul.products.is-list .pafex-card__brand,
ul.products.is-list .pafex-card__title,
ul.products.is-list .pafex-card__sku { grid-column: 1; margin: 0; }
ul.products.is-list .pafex-card__buy { grid-column: 2; grid-row: 1 / span 3; margin: 0; gap: 16px; }
ul.products.is-list .pafex-badge { display: none; }

/* Afficher plus / pagination */
.pafex-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 64px; }
.pafex-more__count { font-size: 13px; }
.pafex-more__bar { width: 160px; height: 3px; overflow: hidden; border-radius: 999px; background: var(--line); }
.pafex-more__bar span { display: block; height: 100%; background: var(--ink); transition: width 0.3s ease; }
.pafex-more__btn { margin-top: 8px; }
.pafex-more__btn[hidden] { display: none; }
.woocommerce-pagination,
.pafex-pagination,
.navigation.pagination { margin-top: 40px; }
.woocommerce-pagination ul,
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.woocommerce-pagination a,
.woocommerce-pagination span,
.nav-links a,
.nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 14px;
}
.woocommerce-pagination .current,
.nav-links .current { background: var(--ink); color: #fff; }
.woocommerce-pagination a:hover,
.nav-links a:hover { background: var(--soft); color: var(--ink); }
.pafex-js .pafex-has-more .woocommerce-pagination { display: none; }

.pafex-empty { margin-top: 32px; padding: 48px 24px; border-radius: var(--r-m); background: var(--soft); text-align: center; }
.pafex-empty__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pafex-empty .pafex-muted { margin-top: 8px; }
.pafex-empty .pafex-btn { margin-top: 20px; }

/* ---------- Fiche produit ---------- */
.pafex-wc { padding-top: 32px; }
.pafex-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.pafex-breadcrumb a { color: var(--muted); }
.pafex-breadcrumb a:hover { color: var(--ink); }
.pafex-product__layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; margin-top: 32px; }
.pafex-product__gallery { flex: 1 1 520px; min-width: 0; }
.pafex-product__summary { flex: 1 1 400px; min-width: 0; }
@media (min-width: 1000px) {
	.pafex-product__summary { position: sticky; top: 88px; }
}

.woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { overflow: hidden; border-radius: var(--r-l); background: var(--soft); }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.woocommerce-product-gallery .flex-viewport { border-radius: var(--r-l); }
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.woocommerce-product-gallery .flex-control-thumbs li { overflow: hidden; border-radius: 16px; background: var(--soft); cursor: pointer; }
.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	mix-blend-mode: multiply;
	opacity: 0.55;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1.5px transparent;
	transition: opacity 0.15s ease;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 5;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center;
	font-size: 0;
	color: transparent;
	box-shadow: 0 2px 8px rgba(11, 11, 12, 0.08);
}
.woocommerce-product-gallery__trigger > * { display: none; }

.pafex-product__brand { display: inline-block; }
.pafex-product__title { margin-top: 12px; font-size: calc(clamp(30px, 3.4vw, 44px) * .81); letter-spacing: -0.03em; line-height: 1.08; }
.pafex-product__sku { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pafex-product__excerpt { margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.pafex-product__excerpt p + p { margin-top: 12px; }

.pafex-probox { margin-top: 32px; padding: 28px; border-radius: var(--r-m); background: var(--soft); }
.pafex-probox__title { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.pafex-probox .pafex-muted { margin-top: 10px; font-size: 15px; line-height: 1.55; }

.pafex-buybox { margin-top: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-m); }
.pafex-buybox__label { font-size: 13px; color: var(--muted); }
.pafex-buybox__price { margin-top: 6px; font-size: calc(44px * .95); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.pafex-buybox__price del { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pafex-buybox__price ins { text-decoration: none; }
.pafex-buybox__price .woocommerce-price-suffix { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pafex-price-details { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 14px; }
.pafex-price-details > div { display: flex; justify-content: space-between; gap: 16px; }
.pafex-price-details dt, .pafex-price-details .label { color: var(--muted); }
.pafex-price-details dd { margin: 0; font-family: var(--mono); }
.pafex-buybox__cart { margin-top: 24px; }
.pafex-buybox__cart form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.pafex-buybox__cart form.variations_form { display: block; }
.pafex-buybox__cart .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pafex-buybox__cart .single_add_to_cart_button { flex: 1 1 200px; }
.pafex-buybox__stock { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.pafex-buybox__stock span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.pafex-buybox__stock.is-out { color: var(--danger); }
.pafex-buybox__stock.is-out span { background: var(--danger); }
.pafex-buybox .stock { display: none; }
/* Le prix de la déclinaison remplace le grand prix (voir pafex.js) : pas de doublon sous les listes. */
.pafex-buybox .woocommerce-variation-price { display: none; }
.pafex-buybox__price .price { display: block; }
/* Bouton tant qu'aucun modèle n'est choisi */
.pafex-buybox .single_add_to_cart_button.disabled { background: var(--line); border-color: var(--line); color: var(--muted); opacity: 1; cursor: not-allowed; }
/* Choix des modèles */
.pafex-buybox table.variations { margin-bottom: 8px; }
.pafex-buybox table.variations th.label { padding-right: 16px; font-weight: 400; color: var(--muted); white-space: nowrap; }

.quantity { display: inline-flex; align-items: center; height: 48px; border-radius: 999px; background: var(--soft); }
.quantity .qty {
	width: 52px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 500;
	color: var(--ink);
	-moz-appearance: textfield;
}
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pafex-qty-btn {
	width: 44px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 20px;
	color: var(--ink);
	cursor: pointer;
}
.pafex-qty-btn:hover { background: var(--line); }

table.variations { width: 100%; border-collapse: collapse; }
table.variations th, table.variations td { padding: 6px 0; text-align: left; vertical-align: middle; font-size: 14px; }
table.variations select { width: 100%; }
.reset_variations { font-size: 13px; color: var(--muted); }

/* Liste des modèles : même rendu sur Safari, Chrome et Firefox, aligné avec son libellé */
table.variations tr { display: flex; align-items: flex-start; gap: 16px; }
table.variations tr + tr { margin-top: 10px; }
table.variations th.label { display: flex; align-items: center; flex: 0 0 auto; min-width: 56px; height: 46px; padding: 0; line-height: 1.2; }
table.variations th.label label { display: block; margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); }
table.variations td.value { flex: 1 1 auto; min-width: 0; padding: 0; }
table.variations td.value .reset_variations { display: inline-block; margin-top: 6px; }
.woocommerce table.variations select,
table.variations select {
	height: 46px;
	min-height: 46px;
	margin: 0;
	padding: 0 42px 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-xs);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
	box-shadow: none;
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 44px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
table.variations select:hover { border-color: var(--line-2); }
table.variations select:focus { outline: none; border-color: var(--ink); }

.pafex-specs { margin: 16px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.pafex-specs > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pafex-specs dt { color: var(--muted); }
.pafex-specs dd { margin: 0; font-family: var(--mono); font-size: 14px; text-align: right; }
.pafex-product__summary .pafex-link { margin-top: 20px; }
/* Description : sous le tableau sur mobile, sous les photos sur ordinateur. */
.pafex-product__description { flex: 1 1 100%; min-width: 0; padding-top: 24px; }
.pafex-product__description .pafex-prose { margin-top: 24px; }
@media (min-width: 1000px) {
	.pafex-product__layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 56px; row-gap: 0; }
	.pafex-product__gallery { grid-column: 1; grid-row: 1; }
	.pafex-product__summary { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
	.pafex-product__description { grid-column: 1; grid-row: 2; padding-top: 56px; }
	.pafex-product__description .pafex-h2 { font-size: calc(clamp(28px, 3vw, 40px) * .81); }
}

/* Description courte repliée (1 à 2 phrases) */
.pafex-excerpt__toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pafex-excerpt__toggle i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.pafex-excerpt__toggle[aria-expanded="true"] i { transform: translateY(2px) rotate(-135deg); }
.pafex-excerpt__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Formulaires et notices WooCommerce ---------- */
.woocommerce form .form-row { margin: 0 0 16px; }
.woocommerce form .form-row label,
.woocommerce-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.woocommerce form .form-row .required { color: var(--danger); text-decoration: none; }
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"]:not(.qty),
.woocommerce input[type="url"],
.woocommerce textarea,
.woocommerce select:not(.orderby) {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-xs);
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
}
.woocommerce textarea { min-height: 120px; }
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus { outline: none; border-color: var(--ink); }
.woocommerce form .form-row-first,
.woocommerce form .form-row-last { width: 100%; }
@media (min-width: 720px) {
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
	.woocommerce form .form-row-first { margin-right: 12px; }
}
.woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.woocommerce-form__input-checkbox { accent-color: var(--ink); }

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	font-size: 15px;
	list-style: none;
}
.woocommerce-error { border-color: var(--danger); color: var(--danger); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Tableaux WooCommerce (commandes, détails) */
.woocommerce table.shop_table,
.pafex-table {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 18px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	font-size: 14px;
}
.woocommerce table.shop_table th,
.pafex-table th {
	padding: 14px 20px;
	text-align: left;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.woocommerce table.shop_table td,
.pafex-table td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.woocommerce table.shop_table tfoot th { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 14px; }
.pafex-table .is-num { text-align: right; }
.pafex-table-wrap { overflow-x: auto; }
.pafex-table { min-width: 640px; }
.pafex-table__link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; font-size: 13px; }
.woocommerce-orders-table .button { min-height: 36px; padding: 0 14px; font-size: 13px; margin: 2px; }

/* ---------- Espace client ---------- */
.woocommerce-account .pafex-page { padding-top: 48px; }
.pafex-account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.pafex-account-head .pafex-h1 { margin-top: 12px; font-size: calc(clamp(32px, 4vw, 48px) * .81); }
.pafex-account-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.woocommerce-MyAccount-navigation { flex: 1 1 200px; max-width: 240px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-xs); color: var(--ink); }
.woocommerce-MyAccount-navigation a:hover { background: var(--soft); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--soft); font-weight: 600; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); }
.woocommerce-MyAccount-content { flex: 999 1 560px; min-width: 0; }
@media (max-width: 860px) {
	.woocommerce-MyAccount-navigation { max-width: none; }
	.woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
	.woocommerce-MyAccount-navigation a { background: var(--soft); border-radius: 999px; }
}

.pafex-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pafex-kpi { padding: 22px; border-radius: var(--r-s); background: var(--soft); }
.pafex-kpi--dark { background: var(--ink); color: #fff; }
.pafex-kpi__label { font-size: 13px; color: var(--muted); }
.pafex-kpi--dark .pafex-kpi__label,
.pafex-kpi--dark .pafex-kpi__sub { color: var(--on-dark); }
.pafex-kpi__value { margin-top: 10px; font-size: calc(28px * .95); font-weight: 600; letter-spacing: -0.02em; }
.pafex-kpi__sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.pafex-kpi__sub a { text-decoration: underline; text-underline-offset: 3px; }

.pafex-account-section { margin-top: 72px; }
.pafex-account-section > .pafex-h3 { margin: 0 0 20px; }
.pafex-account-section .pafex-section__head { margin-bottom: 20px; }
.pafex-orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.pafex-order { padding: 24px; border-radius: var(--r-s); background: var(--soft); }
.pafex-order__head { display: flex; justify-content: space-between; gap: 12px; }
.pafex-order__num { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.pafex-order__head .pafex-small { margin-top: 4px; }
.pafex-order__total { font-family: var(--mono); font-size: 15px; font-weight: 600; white-space: nowrap; }
.pafex-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.pafex-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted-2); }
.pafex-steps li span { height: 4px; border-radius: 999px; background: var(--line-2); }
.pafex-steps li.is-done { color: var(--ink); }
.pafex-steps li.is-done span { background: var(--ink); }
.pafex-steps li.is-current { font-weight: 600; }
.pafex-order .pafex-link { margin-top: 12px; }

.pafex-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pafex-info { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 14px; line-height: 1.7; }
.pafex-info--soft { border-color: transparent; background: var(--soft); }
.pafex-info .pafex-eyebrow { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.14em; }
.pafex-info address { font-style: normal; }

.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.woocommerce-Addresses::before, .woocommerce-Addresses::after { display: none; }
.woocommerce-Address { width: auto !important; float: none !important; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-s); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-Address-title h2 { font-size: 18px; }
.woocommerce-Address address { margin-top: 12px; font-style: normal; line-height: 1.7; }
.woocommerce-MyAccount-content fieldset { margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-s); }
.woocommerce-MyAccount-content legend { padding: 0 8px; font-weight: 600; }

/* Connexion */
.pafex-login-intro { margin-bottom: 32px; text-align: center; }
.pafex-login-intro .pafex-lead { margin-inline: auto; }
.woocommerce-account:not(.logged-in) .pafex-page--wc .woocommerce { max-width: 460px; margin-inline: auto; }
.woocommerce-account:not(.logged-in) .u-columns,
.woocommerce-account:not(.logged-in) .col2-set { display: block; }
.woocommerce-form-login { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-m); }
.woocommerce-form-login .woocommerce-form-login__submit { width: 100%; margin-top: 8px; }
.woocommerce-form-login .lost_password { margin-top: 16px; font-size: 14px; text-align: center; }
.woocommerce-form-login .lost_password a { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-account:not(.logged-in) h2 { display: none; }
.pafex-login-request { margin-top: 24px; text-align: center; font-size: 15px; color: var(--muted); }
.pafex-login-request a { margin-left: 4px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Panier et commande (blocs WooCommerce) */
.wc-block-cart, .wc-block-checkout { font-family: var(--font); }
.wc-block-components-button:not(.is-link) { border-radius: 999px !important; background: var(--ink) !important; color: #fff !important; min-height: 48px; }
.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-select select { border-radius: var(--r-xs) !important; }

/* ---------- PVC, coefficient ---------- */
.pafex-pvc { display: inline; }
.pafex-pvc .pafex-from { display: block; margin-bottom: 2px; }
.pafex-pvc__label, .pafex-pvc__tax { color: var(--muted); font-size: 12px; font-weight: 400; }
.pafex-pvc__amount { font-family: var(--mono); }
.pafex-card__prices { min-width: 0; }
.pafex-card__ht { font-size: 12px; font-weight: 400; color: var(--muted); }
.pafex-coef { font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.pafex-card__pvc { margin-top: 4px; font-size: 12px; color: var(--muted); }
.pafex-card__pvc .pafex-pvc__amount { font-size: 12px; color: var(--muted); }
.pafex-card__guest { margin-top: 12px; line-height: 1.25; }
.pafex-card__guest .pafex-pvc__amount { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink); }
.pafex-card__buy .pafex-card__guest { margin-top: 0; }

.pafex-buybox__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-top: 6px; }
.pafex-buybox__main { min-width: 0; }
.pafex-buybox__main .pafex-buybox__price { display: inline; margin-top: 0; }
.pafex-buybox__main .pafex-buybox__price .price { display: inline; }
.pafex-section--tight > .pafex-h2 { margin-bottom: 32px; }
.pafex-section--tight > .pafex-h2 + ul.products { margin-top: 0; }
.pafex-buybox__meta { display: inline-flex; gap: 6px; margin-left: 8px; font-size: 15px; color: var(--muted); }
.pafex-buybox__meta .pafex-coef { font-size: 13px; }
.pafex-buybox__pvc {
	margin: 0;
	padding: 8px 14px;
	border-radius: 12px;
	background: var(--soft);
	font-size: 12px;
	line-height: 1.35;
	color: var(--muted);
	text-align: right;
}
.pafex-buybox__pvc .pafex-pvc__amount { font-size: 17px; font-weight: 600; color: var(--ink); }
.pafex-buybox__pvc .pafex-pvc__tax { font-size: 12px; }
.pafex-buybox__price--pvc .pafex-pvc__amount { font-family: var(--font); }
.pafex-buybox__price--pvc .pafex-pvc__tax { font-size: 15px; letter-spacing: 0; }
.pafex-buybox__price--pvc .pafex-from { font-size: 13px; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.pafex-buybox .pafex-vitrine-only .pafex-buybox__price { margin-top: 6px; }
.pafex-pvcbox { margin-top: 32px; }
.pafex-pvcbox .pafex-buybox__price { margin-top: 6px; font-size: calc(36px * .95); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.pafex-pvcbox + .pafex-probox { margin-top: 24px; }

.pafex-card__cond { color: var(--ink); font-weight: 500; }
.pafex-buybox__cond { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.pafex-buybox__cond[hidden] { display: none; }

/* ---------- Mode vitrine (bouton œil) ---------- */
.pafex-vitrine-only { display: none; }
.pafex-vitrine .pafex-purchase { display: none !important; }
.pafex-vitrine .pafex-vitrine-only { display: block; }
.pafex-eye {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}
.pafex-eye:hover { background: var(--soft); }
.pafex-eye__off { display: none; }
.pafex-vitrine .pafex-eye { border-color: var(--ink); background: var(--ink); color: #fff; }
.pafex-vitrine .pafex-eye__on { display: none; }
.pafex-vitrine .pafex-eye__off { display: block; }
.pafex-eye--mobile { display: none; }
@media (max-width: 1080px) {
	.pafex-eye--desktop { display: none; }
	.pafex-eye--mobile { display: inline-flex; }
}

/* En-tête d'un pro connecté : plus d'éléments, on resserre pour tenir sur une ligne.
   Le nom du client devient une icône ronde (le nom reste lu par les lecteurs d'écran et s'affiche au survol). */
.pafex-logged-in .pafex-account .pafex-pill--soft { width: 36px; padding: 0; justify-content: center; }
.pafex-logged-in .pafex-account__name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
@media (min-width: 1081px) {
	.pafex-logged-in .pafex-header__inner { gap: 12px 24px; }
	.pafex-logged-in .pafex-nav { gap: 8px 14px; }
	.pafex-logged-in .pafex-menu { gap: 6px 18px; }
	.pafex-logged-in .pafex-search--header { width: 190px; }
	.pafex-logged-in .pafex-franco { min-width: 156px; padding: 0 14px; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
	.pafex-logged-in .pafex-menu { gap: 6px 18px; }
	.pafex-logged-in .pafex-search--header { width: 150px; }
	.pafex-logged-in .pafex-cart__count { display: none; }
}
@media (min-width: 1081px) and (max-width: 1160px) {
	.pafex-logged-in .pafex-franco { min-width: 0; }
	.pafex-logged-in .pafex-franco__name { display: none; }
	.pafex-logged-in .pafex-franco__row { justify-content: center; }
	.pafex-logged-in .pafex-header__inner { gap: 12px 16px; }
}

/* En-tête trop chargé pour une ligne : version compacte (is-tight), décidée avant le premier affichage
 * (script juste après l'en-tête dans header.php, puis assets/js/pafex.js). */
@media (min-width: 1081px) {
	.pafex-header.is-tight .pafex-header__inner { gap: 12px 16px; }
	.pafex-header.is-tight .pafex-nav { gap: 8px 12px; }
	.pafex-header.is-tight .pafex-menu { gap: 6px 14px; }
	.pafex-header.is-tight .pafex-search--header { width: 130px; }
	.pafex-header.is-tight .pafex-franco { min-width: 0; }
	.pafex-header.is-tight .pafex-franco__name { display: none; }
	.pafex-header.is-tight .pafex-franco__row { justify-content: center; }
	.pafex-header.is-tight .pafex-cart__count { display: none; }
	.pafex-header.is-tight .pafex-account__name { display: none; }
}
@media (min-width: 1081px) and (max-width: 1160px) {
	.pafex-header.is-tight .pafex-search--header { width: 104px; }
}

/* ---------- Franco de port ---------- */
.pafex-franco {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	flex: none;
	min-width: 168px;
	height: 36px;
	padding: 0 16px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--soft);
	color: var(--ink);
}
.pafex-franco[hidden] { display: none; }
.pafex-franco:hover { color: var(--ink); background: var(--line); }
.pafex-franco__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; line-height: 1; }
.pafex-franco__name { font-weight: 600; letter-spacing: 0.06em; }
.pafex-franco__left { font-family: var(--mono); white-space: nowrap; }
.pafex-franco__bar { display: block; height: 3px; overflow: hidden; border-radius: 999px; background: var(--line-2); }
.pafex-franco__bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width 0.3s ease; }
.pafex-franco.is-ok { background: var(--ink); color: #fff; }
.pafex-franco.is-ok:hover { color: #fff; opacity: 0.9; }
.pafex-franco.is-ok .pafex-franco__bar { background: rgba(255, 255, 255, 0.25); }
.pafex-franco.is-ok .pafex-franco__bar span { background: #fff; }
@media (max-width: 720px) {
	.pafex-franco { min-width: 0; width: 124px; padding: 0 12px; }
	.pafex-franco__name { display: none; }
	.pafex-franco__row { justify-content: center; }
	.pafex-cart { padding-right: 10px; gap: 6px; }
	.pafex-cart__count { display: none; }
	.pafex-cart__total { font-size: 12px; }
	.pafex-cart__ht { display: none; }
	.pafex-account__name { display: none; }
}

/* ---------- 404 ---------- */
.pafex-404 { padding-top: 120px; }
.pafex-404__search { max-width: 460px; margin: 32px auto 0; text-align: left; }

/* ---------- Pied de page ---------- */
.pafex-footer { background: var(--soft); padding: 64px 0 32px; }
.pafex-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; font-size: 14px; }
.pafex-footer__logo { font-size: 16px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.pafex-footer__grid .pafex-muted { margin-top: 12px; line-height: 1.6; }
.pafex-footer__col { display: flex; flex-direction: column; gap: 10px; }
.pafex-footer__col .pafex-eyebrow { margin-bottom: 4px; font-size: 11px; letter-spacing: 0.14em; }
.pafex-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 48px;
	padding-top: 20px;
	background: linear-gradient(var(--line-2), var(--line-2)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
	font-size: 12px;
	color: var(--muted);
}
.pafex-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.pafex-legal a { color: var(--muted); }
.pafex-legal a:hover { color: var(--ink); }

/* ---------- Petits écrans ---------- */
@media (max-width: 720px) {
	:root { --gutter: 16px; }
	.pafex-hero { padding-top: 64px; }
	.pafex-section--last { padding-bottom: 88px; }
	.pafex-hero__media { margin-top: 48px; aspect-ratio: 4 / 3; border-radius: var(--r-m); }
	.pafex-section { padding-top: 88px; }
	.pafex-section--band { margin-top: 88px; padding-block: 80px; }
	.pafex-page { padding-top: 40px; padding-bottom: 88px; }
	.pafex-buybox__price { font-size: calc(36px * .95); }
	.pafex-feature-card__body { padding: 28px; }
	.pafex-feature-card__media { min-height: 260px; }
	.pafex-prose { font-size: 17px; }
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
	.pafex-tile { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Page marque : logo */
.pafex-brand__logo { display: flex; justify-content: center; margin: 24px 0 8px; }
.pafex-brand__logo img { max-width: 180px; max-height: 90px; width: auto; height: auto; object-fit: contain; }

/* Catalogue : lien vers le configurateur d'épuisettes */
.pafex-filters__config { display: inline-flex; align-items: center; gap: 10px; margin-top: -12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.pafex-filters__config svg { flex: none; transition: transform .4s ease; }
.pafex-filters__config:hover { color: var(--ink); }
.pafex-filters__config:hover svg { transform: rotate(60deg); }
.pafex-filters__config:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête (1.0.14) : menu à gauche, espace au centre, recherche + compte à droite ---------- */
@media (min-width: 1081px) {
	.pafex-header__inner,
	.pafex-logged-in .pafex-header__inner { justify-content: flex-start; gap: 12px; }
	.pafex-nav { display: contents; }
	.pafex-nav > nav { margin-left: 40px; }
	.pafex-search--header { margin-left: auto; }
	.pafex-account { gap: 10px; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
	.pafex-nav > nav { margin-left: 24px; }
}

/* ---------- Accueil : bandeau défilant ---------- */
.pafex-slider { position: relative; overflow: hidden; background: var(--soft); }
.pafex-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.pafex-slider__track::-webkit-scrollbar { display: none; }
.pafex-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; color: #fff; }
.pafex-slide:hover { color: #fff; }
.pafex-slide picture, .pafex-slide__img { display: block; width: 100%; height: auto; }
.pafex-slide.has-title::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
	pointer-events: none;
}
.pafex-slide__text {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: clamp(44px, 6vw, 88px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}
.pafex-slide__title { max-width: 760px; font-size: calc(clamp(30px, 4.6vw, 68px) * .81); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.pafex-slide__cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; }
.pafex-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	color: var(--ink);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.pafex-slider:hover .pafex-slider__arrow,
.pafex-slider__arrow:focus-visible { opacity: 1; }
.pafex-slider__arrow:hover { background: #fff; }
.pafex-slider__arrow--prev { left: 20px; }
.pafex-slider__arrow--prev svg { transform: rotate(180deg); }
.pafex-slider__arrow--next { right: 20px; }
.pafex-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 2;
	display: flex;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.28);
	transform: translateX(-50%);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.pafex-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.pafex-slider__dot.is-active { width: 24px; background: #fff; }
@media (hover: none) { .pafex-slider__arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .pafex-slider__track { scroll-behavior: auto; } }

/* ---------- Filtres : cases arrondies et logos de marque ---------- */
.pafex-check input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	display: inline-grid;
	place-content: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--line-2);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.pafex-check input[type="checkbox"]::after {
	content: "";
	width: 10px;
	height: 10px;
	background: #fff;
	clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
	transform: scale(0);
	transition: transform 0.12s ease;
}
.pafex-check input[type="checkbox"]:checked { border-color: var(--ink); background: var(--ink); }
.pafex-check input[type="checkbox"]:checked::after { transform: scale(1); }
.pafex-check input[type="checkbox"]:hover { border-color: var(--ink-2); }
.pafex-check__logo {
	flex: none;
	width: 60px;
	height: 34px;
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--line);
}
.pafex-check:has(.pafex-check__logo) { min-height: 44px; }


/* ---------- En-tête : menu du compte et aperçu du panier (survol) ---------- */
.pafex-drop { position: relative; }
.pafex-drop__panel {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 60;
	padding-top: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.pafex-drop.is-open > .pafex-drop__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}
.pafex-drop__card {
	min-width: 220px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(11, 11, 12, 0.12);
}
.pafex-drop__menu { padding: 8px; }
.pafex-drop__who { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.pafex-drop__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.pafex-drop__menu a:hover { background: var(--soft); color: var(--ink); }

.pafex-minicart { width: 380px; max-width: calc(100vw - 32px); padding: 16px; }
.pafex-minicart__empty { padding: 12px 4px; font-size: 14px; color: var(--muted); text-align: center; }
.pafex-minicart__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; font-size: 15px; font-weight: 600; }
.pafex-minicart__head span { font-size: 12px; font-weight: 400; color: var(--muted); }
.pafex-minicart__list {
	max-height: 292px;
	margin: 0 -6px;
	padding: 0 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.pafex-minicart__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.pafex-minicart__item + .pafex-minicart__item { border-top: 1px solid var(--line); }
.pafex-minicart__img { width: 48px; height: 48px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.pafex-minicart__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pafex-minicart__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pafex-minicart__name { overflow: hidden; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pafex-minicart__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pafex-minicart__price { font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pafex-minicart__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 4px; font-size: 14px; }
.pafex-minicart__total strong { font-family: var(--mono); font-size: 16px; }
.pafex-minicart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pafex-minicart__actions .pafex-btn { justify-content: center; width: 100%; }
/* Sur mobile et tablette, l'icône panier ouvre directement la page Panier. */
@media (hover: none), (max-width: 1080px) {
	.pafex-drop--cart > .pafex-drop__panel { display: none; }
}

/* ---------- Accueil : nos produits (défilement un par un) ---------- */
.pafex-home-products { padding-top: 88px; }
.pafex-h2__link { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.pafex-h2__link .pafex-icon { transition: transform 0.2s ease; }
.pafex-h2__link:hover { color: var(--ink); }
.pafex-h2__link:hover .pafex-icon { transform: translateX(6px); }
.pafex-rail__nav { display: flex; gap: 8px; }
.pafex-rail__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color 0.15s ease; }
.pafex-rail__btn:hover { border-color: var(--ink); }
.pafex-rail__btn--prev svg { transform: rotate(180deg); }
.pafex-rail { --rail-n: 6; --rail-gap: 16px; overflow: hidden; margin-top: 40px; }
ul.products.pafex-rail__track { display: flex; gap: var(--rail-gap); margin: 0; padding: 0; will-change: transform; }
.pafex-rail__track > .pafex-card { flex: 0 0 calc((100% - (var(--rail-n) - 1) * var(--rail-gap)) / var(--rail-n)); }
@media (max-width: 1080px) { .pafex-rail { --rail-n: 3; } }
@media (max-width: 640px) { .pafex-rail { --rail-n: 2; --rail-gap: 12px; } .pafex-rail__nav { display: none; } }

/* ---------- Accueil : nos marques ---------- */
.pafex-home-brands__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.pafex-home-brands__head > div { max-width: 720px; }
.pafex-home-brands__head .pafex-lead { margin-top: 20px; color: var(--on-dark); }
.pafex-home-brands .pafex-logos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 56px; }
.pafex-logos__item.has-logo { aspect-ratio: 16 / 10; min-height: 0; padding: 0; overflow: hidden; border: 0; background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pafex-logos__item.has-logo img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.pafex-logos__item.has-logo:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }

/* ---------- Accueil : blog ---------- */
.pafex-home-blog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; margin-top: 48px; }
.pafex-home-blog .pafex-card-story__title { font-size: 20px; }
.pafex-home-blog .pafex-card-story__text { font-size: 14px; }
@media (max-width: 1080px) { .pafex-home-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pafex-home-blog__grid { grid-template-columns: 1fr; } }

/* ---------- Accueil : qui sommes-nous (photo bord gauche → milieu, texte blanc sur noir) ---------- */
.pafex-about { display: grid; grid-template-columns: 1fr 1fr; margin-top: 136px; background: var(--ink); color: #fff; }
.pafex-about__media { position: relative; min-height: 560px; background: var(--dark-soft); }
.pafex-about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pafex-about__ph { position: absolute; left: 24px; bottom: 24px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--on-dark); font-size: 12px; }
.pafex-about__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0;
	padding: 96px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 96px 72px;
}
.pafex-about__text .pafex-eyebrow { color: var(--on-dark-2); }
.pafex-about__text .pafex-h2 { color: #fff; }
.pafex-about__text .pafex-lead { margin-top: 24px; color: var(--on-dark); }
.pafex-about__text .pafex-btn { margin-top: 36px; }
@media (max-width: 900px) {
	.pafex-about { grid-template-columns: 1fr; margin-top: 88px; }
	.pafex-about__media { min-height: 0; aspect-ratio: 4 / 3; }
	.pafex-about__text { padding: 56px var(--gutter); }
}


/* ---------- Accueil : fondu enchaîné du bandeau et espaces resserrés ---------- */
.pafex-slider.is-fade .pafex-slider__track { display: grid; overflow: hidden; scroll-snap-type: none; }
.pafex-slider.is-fade .pafex-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.pafex-slider.is-fade .pafex-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .pafex-slider.is-fade .pafex-slide { transition: none; } }

.home .pafex-home-products { padding-top: 48px; }
.home .pafex-home-brands.pafex-section--band { margin-top: 72px; padding-block: 72px; }
.home .pafex-home-blog.pafex-section { padding-top: 72px; }
.home .pafex-about { margin-top: 72px; }
@media (max-width: 760px) {
	.home .pafex-home-products { padding-top: 40px; }
	.home .pafex-home-brands.pafex-section--band { margin-top: 48px; padding-block: 48px; }
	.home .pafex-home-blog.pafex-section { padding-top: 48px; }
	.home .pafex-about { margin-top: 48px; }
}

/* ---------- Détail d'une commande (espace client et page « Commande reçue ») ---------- */
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-of-type mark,
.woocommerce-order mark { padding: 1px 6px; border-radius: 6px; background: var(--soft); color: var(--ink); font-weight: 600; }
.woocommerce-order-details,
.woocommerce-customer-details,
.wc-block-order-confirmation-additional-fields-wrapper { margin-top: 40px; }
.woocommerce-order-details__title,
.woocommerce-customer-details .woocommerce-column__title,
.wc-block-order-confirmation-additional-fields-wrapper > h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -0.02em; }
.woocommerce table.order_details { table-layout: auto; }
.woocommerce table.order_details th:last-child,
.woocommerce table.order_details td:last-child { text-align: right; white-space: nowrap; }
.woocommerce table.order_details tfoot th { font-weight: 500; color: var(--muted); }
.woocommerce table.order_details tfoot tr:last-child td,
.woocommerce table.order_details tfoot tr:last-child th { font-weight: 600; color: var(--ink); }
.woocommerce table.order_details .wc-item-meta { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.woocommerce table.order_details .wc-item-meta li,
.woocommerce table.order_details .wc-item-meta p { display: inline; margin: 0; }
.order-again { margin: 24px 0 0; }
.woocommerce-customer-details address {
	max-width: 460px;
	margin: 0;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	font-style: normal;
	line-height: 1.7;
	font-size: 15px;
}
.woocommerce-customer-details address p { margin: 0; }
.wc-block-components-additional-fields-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 24px;
	max-width: 460px;
	margin: 0;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	font-size: 15px;
}
.wc-block-components-additional-fields-list dt { color: var(--muted); }
.wc-block-components-additional-fields-list dd { margin: 0; font-weight: 600; }
@media (max-width: 640px) {
	.woocommerce table.order_details th,
	.woocommerce table.order_details td { padding: 12px 14px; }
}

/* Espace client : date d'expédition prévue (à la place du suivi). */
.pafex-order__ship { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 15px; font-weight: 500; }

.woocommerce table.order_details tfoot th { border-top: 1px solid var(--line); }

/* ---------- Page « Commande reçue » ---------- */
.woocommerce-order { max-width: 960px; }
.woocommerce-order > p.woocommerce-thankyou-order-received {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 32px;
	padding: 22px 24px;
	border-radius: 18px;
	background: var(--ink);
	color: #fff;
	font-size: 17px;
	line-height: 1.5;
}
.woocommerce-order > p.woocommerce-thankyou-order-received::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	margin-top: -1px;
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230b0b0c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.woocommerce-order-overview li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--soft);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
ul.woocommerce-order-overview li strong {
	font-family: var(--font);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
	word-break: break-word;
}
.woocommerce-order > p:not(.woocommerce-thankyou-order-received):empty { display: none; }

/* ---------- Connexion : bouton « afficher le mot de passe » (œil dans le champ) ---------- */
.woocommerce form .password-input,
.password-input { position: relative; display: block; width: 100%; }
.password-input input[type="password"],
.password-input input[type="text"] { padding-right: 52px; }
.password-input .show-password-input {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	transform: translateY(-50%);
	cursor: pointer;
}
.password-input .show-password-input::after { content: none !important; }
.password-input .show-password-input:hover { background: var(--soft); color: var(--ink); }
.password-input .show-password-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.password-input .show-password-input::before { content: "" !important; display: block; width: 20px; height: 20px; margin: auto; background: currentColor !important; -webkit-mask: var(--eye) center / contain no-repeat; mask: var(--eye) center / contain no-repeat; }
.password-input .show-password-input {
	--eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.password-input .show-password-input.display-password {
	--eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.6 5.1A10.4 10.4 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-2.6 3.6M6.6 6.6C3.9 8.4 2 12 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M2 2l20 20'/%3E%3C/svg%3E");
	color: var(--ink);
}

/* ---------- Menu mobile : sous-menus repliables ---------- */
.pafex-subtoggle { display: none; }
.pafex-menu .pafex-sub-all { display: none; }
@media (max-width: 1080px) {
	.pafex-menu > .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.pafex-menu > .menu-item-has-children > a { flex: 1 1 auto; }
	.pafex-menu > .menu-item-has-children > .sub-menu { flex-basis: 100%; }
	.pafex-subtoggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: var(--ink);
		cursor: pointer;
	}
	.pafex-subtoggle svg { transition: transform .25s ease; }
	.pafex-menu li.is-open > .pafex-subtoggle svg { transform: rotate(180deg); }
	.pafex-menu li.menu-item-has-children:not(.is-open) > .sub-menu { display: none; }
	.pafex-menu .pafex-sub-all { display: block; }
	.pafex-menu .pafex-sub-all a { color: var(--ink); font-weight: 500; }
}

/* ---------- Formulaire « Demande d'accès pro » ---------- */
.pafex-acces { max-width: 820px; margin: 0; }
.pafex-acces fieldset { margin: 0 0 28px; padding: 0; border: 0; }
.pafex-acces legend { margin: 0 0 14px; padding: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.pafex-acces__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pafex-acces__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.pafex-acces__field.is-wide { grid-column: 1 / -1; }
.pafex-acces__field b { color: var(--danger); font-weight: 500; }
.pafex-acces input[type="text"],
.pafex-acces input[type="email"],
.pafex-acces input[type="tel"],
.pafex-acces select,
.pafex-acces textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-xs);
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 400;
}
.pafex-acces textarea { min-height: 110px; resize: vertical; }
.pafex-acces input:focus,
.pafex-acces select:focus,
.pafex-acces textarea:focus { outline: none; border-color: var(--ink); }
.pafex-acces .has-error input,
.pafex-acces .has-error select { border-color: var(--danger); }
.pafex-acces__err { font-size: 13px; font-weight: 400; color: var(--danger); }
.pafex-acces__alert { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--r-xs); background: #fdecea; color: var(--danger); font-size: 15px; }
.pafex-acces__check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; font-size: 14px; color: var(--text); cursor: pointer; }
.pafex-acces__check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.pafex-acces__check.has-error { color: var(--danger); }
.pafex-acces__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pafex-acces__submit { margin-top: 20px; }
.pafex-acces > .pafex-acces__err { display: block; margin: 0 0 0 28px; }
.pafex-acces--ok .pafex-btn { text-decoration: none; }
.pafex-acces__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pafex-acces--ok { padding: 40px 32px; border-radius: var(--r-m); background: var(--soft); text-align: center; }
.pafex-acces__ok-title { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: var(--ink); }
.pafex-acces--ok .pafex-btn { margin-top: 16px; }
@media (max-width: 640px) {
	.pafex-acces__grid { grid-template-columns: 1fr; }
	.pafex-acces--ok { padding: 28px 20px; }
}

/* ---------- Fiche produit : zoom au survol sans transparence ---------- */
/* La photo normale est masquée pendant le zoom : on ne voit plus que la photo agrandie. */
.woocommerce-product-gallery__image > a img { transition: opacity .15s ease; }
.woocommerce-product-gallery__image:hover > a img { opacity: 0; }
@media (hover: none) { .woocommerce-product-gallery__image:hover > a img { opacity: 1; } }

/* ---------- Filtres du catalogue : déroulants sur mobile ---------- */
.pafex-fold > summary { list-style: none; }
.pafex-fold > summary::-webkit-details-marker { display: none; }
.pafex-fold__value,
.pafex-fold__chev { display: none; }
@media (min-width: 861px) {
	.pafex-fold > summary { cursor: default; }
	.pafex-fold > summary .pafex-eyebrow { display: block; }
}
@media (max-width: 860px) {
	.pafex-filters { gap: 12px; }
	.pafex-filters .pafex-search,
	.pafex-filters__config { margin-bottom: 8px; }
	.pafex-fold > summary {
		display: flex;
		align-items: center;
		gap: 12px;
		min-height: 54px;
		padding: 8px 14px 8px 18px;
		border: 1px solid var(--line);
		border-radius: var(--r-xs);
		background: #fff;
		cursor: pointer;
	}
	.pafex-fold > summary .pafex-eyebrow { flex: none; margin: 0; }
	.pafex-fold__value { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 500; color: var(--ink); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
	.pafex-fold__chev { display: block; flex: none; transition: transform .25s ease; }
	.pafex-fold[open] > summary { border-color: var(--ink); }
	.pafex-fold[open] .pafex-fold__chev { transform: rotate(180deg); }
	.pafex-fold > nav,
	.pafex-fold > fieldset { padding: 10px 4px 4px; }
}

/* ---------- Fiche produit : commande rapide des déclinaisons ---------- */
.pafex-vgrid { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.pafex-vgrid__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.pafex-vgrid__filter > span:first-child { min-width: 56px; }
.pafex-vgrid__filter select {
	flex: 1 1 200px;
	min-height: 46px;
	padding: 10px 40px 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-xs);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat;
	color: var(--ink);
	font: inherit;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.pafex-vgrid__filter select:focus { outline: none; border-color: var(--ink); }
.pafex-vgrid__badge { flex-basis: 100%; padding-left: 68px; font-size: 12px; font-weight: 400; color: var(--muted); }
.pafex-vgrid__table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.pafex-vgrid__head,
.pafex-vgrid__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 128px; align-items: center; gap: 12px; padding: 10px 14px; }
.pafex-vgrid__head { padding-top: 12px; padding-bottom: 12px; background: var(--soft); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pafex-vgrid__head span:nth-child(2) { text-align: right; }
.pafex-vgrid__head span:nth-child(3) { text-align: center; }
.pafex-vgrid__row { border-top: 1px solid var(--line); transition: background .15s ease; }
.pafex-vgrid__row[hidden] { display: none; }
.pafex-vgrid__row.has-qty { background: #f7f7f5; }
.pafex-vgrid__row.is-out .pafex-vgrid__img,
.pafex-vgrid__row.is-out .pafex-vgrid__name,
.pafex-vgrid__row.is-out .pafex-vgrid__price { opacity: .45; }
.pafex-vgrid__item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pafex-vgrid__img { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--soft); object-fit: contain; mix-blend-mode: multiply; }
.pafex-vgrid__img--empty { display: block; }
.pafex-vgrid__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pafex-vgrid__name { overflow: hidden; font-size: 15px; font-weight: 500; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.pafex-vgrid__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.pafex-vgrid__sku { font-family: var(--mono); }
.pafex-vgrid__stock { display: inline-flex; align-items: center; gap: 5px; }
.pafex-vgrid__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; }
.pafex-vgrid__stock.is-out::before { background: var(--danger); }
.pafex-vgrid__price { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; }
.pafex-vgrid__price del { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.pafex-vgrid__price ins { text-decoration: none; }
.pafex-vgrid__qty { display: flex; align-items: center; justify-content: center; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.pafex-vgrid__row.has-qty .pafex-vgrid__qty { border-color: var(--ink); }
.pafex-vgrid__qty input { width: 44px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.pafex-vgrid__qty input::-webkit-outer-spin-button,
.pafex-vgrid__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pafex-vgrid__qty input:focus { outline: none; }
.pafex-vgrid__step { width: 40px; height: 100%; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.pafex-vgrid__step:hover { background: var(--soft); }
.pafex-vgrid__na { font-size: 12px; color: var(--muted); }
.pafex-vgrid__row.is-out .pafex-vgrid__qty { border-style: dashed; }
.pafex-vgrid__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pafex-vgrid__summary { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.pafex-vgrid__add { flex: 0 1 auto; }
.pafex-vgrid__add:disabled { opacity: .35; cursor: not-allowed; }
.pafex-vgrid__add.is-loading { opacity: .6; cursor: progress; }
.pafex-vgrid__msg { margin: 0; padding: 12px 16px; border-radius: var(--r-xs); background: #ecf7f0; color: #14532d; font-size: 14px; }
.pafex-vgrid__msg.is-error { background: #fdecea; color: var(--danger); }
.pafex-vgrid__msg a { color: inherit; font-weight: 600; }
@media (max-width: 560px) {
	.pafex-vgrid__head { display: none; }
	.pafex-vgrid__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "item item" "price qty"; row-gap: 8px; }
	.pafex-vgrid__item { grid-area: item; }
	.pafex-vgrid__price { grid-area: price; text-align: left; }
	.pafex-vgrid__qty { grid-area: qty; width: 128px; }
	.pafex-vgrid__badge { padding-left: 0; }
	.pafex-vgrid__add { width: 100%; }
}
/* Commande rapide : neutralise les styles généraux des champs */
.pafex-vgrid .pafex-vgrid__qty input[type="number"] { width: 44px; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.pafex-vgrid .pafex-vgrid__filter select { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.pafex-vgrid .pafex-vgrid__step { min-height: 0; margin: 0; box-shadow: none; }
@media (hover: hover) { .pafex-vgrid__step:hover { background: var(--soft); } }
@media (hover: none) { .pafex-vgrid__step:hover { background: transparent; } }
/* Franco : seuil + reste à commander */
.pafex-franco__name { white-space: nowrap; }
@media (min-width: 1161px) { .pafex-logged-in .pafex-franco { min-width: 214px; } }
.pafex-vgrid__cond { padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }

/* Panier / commande : pas de pastille « Économisez X € » */
.wc-block-components-sale-badge,
.wc-block-components-product-badge.wc-block-components-sale-badge { display: none !important; }

/* Catalogue : boutons « Composez votre épuisette » (noir) et, côté pro, « Réassort boîte d'anneaux » (gris) — 1.0.102 */
.pafex-filters .pafex-filters__config {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	margin-top: -16px;
	padding: 9px 16px;
	border: 0;
	border-radius: 16px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	transition: opacity .2s ease;
}
.pafex-filters .pafex-filters__config::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-left: auto;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}
.pafex-filters .pafex-filters__config:hover { color: #fff; opacity: .88; }
.pafex-filters .pafex-filters__config:hover span { text-decoration: none; }
.pafex-filters .pafex-filters__config:hover::after { transform: translateX(3px); }
.pafex-filters .pafex-filters__config:hover svg { transform: none; }
/* Second bouton (ajouté par PAFEX Pro), collé sous le premier : 8 px d'écart. */
.pafex-filters .pafex-filters__config + .pafex-filters__config { margin-top: -32px; background: var(--soft); color: var(--ink); }
.pafex-filters .pafex-filters__config + .pafex-filters__config:hover { color: var(--ink); opacity: 1; background: #e9e9e6; }
@media (max-width: 860px) {
	.pafex-filters .pafex-filters__config { margin-top: 0; }
	.pafex-filters .pafex-filters__config + .pafex-filters__config { margin-top: -12px; }
}
/* Commande rapide en mode discret : PVC TTC de chaque déclinaison à la place du prix d'achat */
.pafex-vgrid__price .pafex-pvc { font-weight: 600; }
.pafex-vgrid__price .pafex-pvc__tax { font-size: 11px; font-weight: 400; color: var(--muted); }
.pafex-vgrid__head .pafex-vitrine-only,
.pafex-vgrid__summary .pafex-purchase { display: inline; }
.pafex-vgrid__head .pafex-vitrine-only { display: none; }
.pafex-vitrine .pafex-vgrid__head .pafex-vitrine-only { display: inline; }
.pafex-vitrine .pafex-vgrid__summary .pafex-purchase { display: none !important; }
/* Commande rapide : PVC et coef. sous le prix de chaque ligne */
.pafex-vgrid__price > .pafex-purchase { display: block; }
.pafex-vgrid__price .pafex-vgrid__pvc { margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.pafex-vgrid__price .pafex-vgrid__pvc .amount { color: var(--ink-2); font-weight: 500; }
.pafex-vgrid__coef { font-family: var(--mono); }
@media (max-width: 560px) { .pafex-vgrid__price .pafex-vgrid__pvc { margin-top: 1px; } }
/* Commande rapide : aperçu agrandi de la photo de la déclinaison */
.pafex-vgrid__img.has-zoom { cursor: zoom-in; transition: box-shadow .15s ease; }
.pafex-vgrid__img.has-zoom:hover { box-shadow: 0 0 0 2px var(--ink); }
.pafex-vgrid__zoom { position: absolute; z-index: 9999; width: 280px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; box-shadow: 0 24px 60px rgba(11, 11, 12, .18); pointer-events: none; }
.pafex-vgrid__zoom[hidden] { display: none; }
.pafex-vgrid__zoom img { display: block; width: 100%; height: 256px; border-radius: 12px; background: var(--soft); object-fit: contain; mix-blend-mode: multiply; }
.pafex-vgrid__zoom-cap { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; }
@media (max-width: 560px) { .pafex-vgrid__zoom { width: 220px; } .pafex-vgrid__zoom img { height: 196px; } }
/* Page Marques : logo de la marque sur les cartes (centré, jamais coupé) */
.pafex-card-story__media.is-logo,
.pafex-feature-card__media.is-logo { display: flex; align-items: center; justify-content: center; }
.pafex-card-story__media.is-logo { background: var(--soft); }
.pafex-card-story__media.is-logo img { width: 62%; height: 62%; object-fit: contain; border-radius: var(--r-xs); }
.pafex-card-story:hover .pafex-card-story__media.is-logo img { transform: scale(1.04); }
.pafex-feature-card__media.is-logo img { width: 52%; height: auto; max-height: 72%; object-fit: contain; border-radius: var(--r-s); }

/* ---------- Accueil : bandeaux photos (1 photo pleine largeur / 2 photos arrondies) ---------- */
.pafex-bands { --band-gap: 12px; display: flex; flex-direction: column; gap: var(--band-gap); padding-top: var(--band-gap); }
.pafex-band { position: relative; }
.pafex-band--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--band-gap); padding-inline: var(--band-gap); }
.pafex-band__item { position: relative; display: block; overflow: hidden; color: inherit; text-decoration: none; }
.pafex-band__item picture { display: block; width: 100%; height: 100%; }
.pafex-band__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pafex-band--one .pafex-band__item { aspect-ratio: 2560 / 900; }
.pafex-band--two .pafex-band__item { aspect-ratio: 10 / 9; border-radius: var(--r-l); }
a.pafex-band__item:hover .pafex-band__img { transform: scale(1.02); }
.pafex-band__btn {
	position: absolute;
	left: 50%;
	bottom: clamp(18px, 4%, 40px);
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 30px;
	border-radius: 999px;
	background: var(--band-bg, #fff);
	color: var(--band-fg, #0b0b0c);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	transition: transform .2s ease, box-shadow .2s ease;
}
a.pafex-band__item:hover .pafex-band__btn { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .24); }
.home .pafex-home-bands + .pafex-home-brands.pafex-section--band { margin-top: 12px; }
@media (max-width: 720px) {
	.pafex-bands { --band-gap: 10px; }
	.pafex-band--one .pafex-band__item { aspect-ratio: 16 / 9; }
	.pafex-band--one .pafex-band__item.has-mobile { aspect-ratio: 4 / 5; }
	.pafex-band--two { grid-template-columns: 1fr; }
	.pafex-band__btn { min-height: 44px; padding: 10px 24px; font-size: 15px; }
}
/* Bandeaux collés au menu du haut et à la section marques (espaces seulement entre les photos) */
.pafex-bands { padding-top: 0; }
.home .pafex-home-bands + .pafex-home-brands.pafex-section--band { margin-top: 0; }
/* Photos côte à côte : angles droits (pas d'arrondi) */
.pafex-band--two .pafex-band__item { border-radius: 0; }

/* =========================================================================
 * 1.0.35 — Panier livrables / reliquats, coef. vert, franco vert
 * ====================================================================== */
:root {
	--ok: #1f8a4c;
	--ok-soft: #e7f5ec;
	--warn: #f0b400;
	--stock-out: #d92d20;
}

/* Franco atteint : pastille verte */
.pafex-franco.is-ok { background: var(--ok); color: #fff; }
.pafex-franco.is-ok:hover { background: var(--ok); color: #fff; opacity: 0.92; }

/* Mise en page : panier à gauche, récapitulatif à droite */
.pafex-basket-page > .woocommerce { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 40px; }
.pafex-basket-page > .woocommerce > * { flex: 0 0 100%; min-width: 0; }
.pafex-basket-page > .woocommerce > .woocommerce-cart-form { flex: 1 1 0; }
.pafex-basket-page > .woocommerce > .cart-collaterals { flex: 0 0 380px; position: sticky; top: 96px; }
@media (max-width: 1000px) {
	.pafex-basket-page > .woocommerce > .woocommerce-cart-form { flex-basis: 100%; }
	.pafex-basket-page > .woocommerce > .cart-collaterals { flex-basis: 100%; position: static; margin-top: 32px; }
}

.pafex-basket__head,
.pafex-basket__row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 118px 156px 100px 32px;
	gap: 16px;
	align-items: center;
}
.pafex-basket__head { grid-template-columns: minmax(0, 1fr) 118px 156px 100px 32px; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.pafex-basket__head > span:nth-child(n+2) { text-align: right; }
.pafex-basket__head > span:nth-child(3) { text-align: center; }

.pafex-basket__group { margin-top: 28px; }
.pafex-basket__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.pafex-basket__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.is-back > .pafex-basket__title .pafex-basket__dot { background: var(--warn); }
.pafex-basket__sum { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.pafex-basket__lead { margin: 0 0 6px; font-size: 13px; color: var(--muted); }

.pafex-basket__row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pafex-basket__thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-xs); background: var(--soft); }
.pafex-basket__name { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.pafex-basket__name a { color: var(--ink); }
.pafex-basket__arrow { margin-right: 6px; color: var(--muted); }
.pafex-basket__info .variation { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pafex-basket__info .variation dt, .pafex-basket__info .variation dd { margin: 0; }
.pafex-basket__info .variation dd p { margin: 0; }
.pafex-basket__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; color: var(--muted-2); }
.pafex-basket__meta .pafex-item-sku { display: inline; margin: 0; }
.pafex-basket__split { color: #8a6100; font-weight: 500; }
.pafex-basket__price { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-family: var(--mono); font-size: 14px; }
.pafex-basket__price .pafex-item-coef { margin: 0; background: var(--ok-soft); color: var(--ok); }
.pafex-basket__qty { display: flex; justify-content: center; }
.pafex-basket__qty .quantity input.qty { width: 84px; height: 40px; text-align: center; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 14px; padding: 0 8px; }
.pafex-basket__fixed { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.pafex-basket__total { text-align: right; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.pafex-basket__remove a.remove { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 20px; line-height: 1; text-decoration: none; }
.pafex-basket__remove a.remove:hover { background: var(--soft); color: var(--danger); }
.pafex-basket__row.is-rest { padding: 8px 0; background: transparent; }
.pafex-basket__row.is-rest .pafex-basket__thumb img { width: 40px; height: 40px; margin-left: 24px; opacity: 0.6; }
.pafex-basket__row.is-rest .pafex-basket__name { font-size: 14px; color: var(--muted); }

.pafex-basket__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pafex-basket__actions .coupon { display: flex; gap: 8px; }
.pafex-basket__actions .coupon input { height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.pafex-js .pafex-basket__update { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pafex-basket.is-updating { opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }

@media (max-width: 720px) {
	.pafex-basket__head { display: none; }
	.pafex-basket__row {
		grid-template-columns: 56px minmax(0, 1fr) 32px;
		grid-template-areas: "thumb info remove" "thumb price price" "thumb qty total";
		gap: 8px 12px;
		align-items: start;
	}
	.pafex-basket__thumb { grid-area: thumb; }
	.pafex-basket__thumb img { width: 56px; height: 56px; }
	.pafex-basket__info { grid-area: info; }
	.pafex-basket__remove { grid-area: remove; }
	.pafex-basket__price { grid-area: price; flex-direction: row; justify-content: flex-start; align-items: center; }
	.pafex-basket__qty { grid-area: qty; justify-content: flex-start; }
	.pafex-basket__total { grid-area: total; align-self: center; }
}

/* Récapitulatif */
.pafex-totals {
	padding: 24px;
	border-radius: var(--r-m);
	background: var(--soft);
}
.pafex-totals__title { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.pafex-totals__coef {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0 0 18px;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--ok);
	color: #fff;
	text-align: center;
}
.pafex-totals__coef-main { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pafex-totals__coef-sub { font-family: var(--mono); font-size: 13px; opacity: 0.92; }
.pafex-totals__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pafex-totals__table th { padding: 7px 0; text-align: left; font-weight: 400; color: var(--ink-2); }
.pafex-totals__table td { padding: 7px 0; text-align: right; font-family: var(--mono); white-space: nowrap; }
.pafex-totals__table small { font-size: 11px; color: var(--muted); }
.pafex-totals__table .is-back th { color: #8a6100; }
.pafex-totals__table .pafex-totals__sep th, .pafex-totals__table .pafex-totals__sep td { border-top: 1px solid var(--line-2); padding-top: 12px; font-weight: 600; color: var(--ink); }
.pafex-totals__table .order-total th, .pafex-totals__table .order-total td { font-size: 13px; color: var(--muted); }
.pafex-totals__table .order-total td strong { font-weight: 500; }
.pafex-totals__table .order-total .includes_tax { display: none; }
.pafex-totals__hint td { padding-top: 0; text-align: left; font-family: var(--font); font-size: 12px; color: var(--muted); white-space: normal; }
.pafex-totals__free { color: var(--ok); font-family: var(--font); font-weight: 500; }
.pafex-totals__due { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-xs); background: #fff; }
.pafex-totals__due-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 14px; }
.pafex-totals__due-row + .pafex-totals__due-row { margin-top: 8px; }
.pafex-totals__due-row strong { font-family: var(--mono); white-space: nowrap; }
.pafex-totals__due-row.is-ok strong { font-size: 18px; }
.pafex-totals__due-row.is-back { color: #8a6100; }
.pafex-totals__due-row small { font-size: 11px; font-weight: 400; color: var(--muted); }
.pafex-totals__note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.pafex-totals .wc-proceed-to-checkout { margin-top: 18px; }
.pafex-totals .wc-proceed-to-checkout .checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.pafex-totals .wc-proceed-to-checkout .checkout-button:hover { opacity: 0.88; color: #fff; }
.pafex-vitrine .pafex-totals__coef,
.pafex-vitrine .pafex-basket__price .pafex-item-coef { display: none; }

/* Paramètres compte : COEFF TTC / COEFF HT */
.pafex-coefmode { margin: 28px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-s); }
.pafex-coefmode legend { padding: 0 8px; font-weight: 600; }
.pafex-switch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pafex-switch__label { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted-2); cursor: pointer; user-select: none; }
.pafex-switch__label.is-on { color: var(--ink); }
.pafex-switch__track {
	position: relative;
	width: 56px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	cursor: pointer;
	transition: background 0.2s;
}
.pafex-switch__ball { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.pafex-switch__track[aria-checked="true"] { background: var(--ok); }
.pafex-switch__track[aria-checked="true"] .pafex-switch__ball { transform: translateX(26px); }
.pafex-switch__saved { font-size: 13px; color: var(--ok); }
.pafex-coefmode__help { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.pafex-coefmode__ex { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* Pastilles de stock (pros) */
.pafex-stockdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #fff; flex: none; }
.pafex-stockdot.is-low { background: var(--warn); }
.pafex-stockdot.is-out { background: var(--stock-out); }
.pafex-card__stock { position: absolute; top: 12px; right: 12px; z-index: 2; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(0, 0, 0, 0.12); }
.pafex-stockinfo__lead { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.pafex-stockinfo__list { display: grid; gap: 8px; margin: 0; padding: 16px 20px; list-style: none; border-radius: var(--r-s); background: var(--soft); font-size: 14px; }
.pafex-stockinfo__list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pafex-stockinfo__list .pafex-stockdot { box-shadow: none; }

/* Fiche produit : « Caractéristiques » repliable (fermé par défaut) */
.pafex-specfold { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pafex-specfold__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.pafex-specfold__head::-webkit-details-marker { display: none; }
.pafex-specfold__head .pafex-h3 { margin: 0; }
.pafex-specfold__chev { width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.pafex-specfold[open] .pafex-specfold__chev { transform: rotate(-135deg) translate(-2px, -1px); }
.pafex-specfold .pafex-specs { margin: 0 0 18px; }

/* Tableau de commande détaillé (Terminal Tackle, cannes…) : description complète sous le nom,
   ligne sur deux niveaux (nom + description en pleine largeur, puis prix et quantité) : rien n'est coupé. */
.pafex-vgrid__stock.is-low::before { background: var(--warn); }
.pafex-vgrid--detail .pafex-vgrid__head > span:nth-child(n+2) { display: none; }
.pafex-vgrid--detail .pafex-vgrid__head { grid-template-columns: 1fr; }
.pafex-vgrid--detail .pafex-vgrid__row {
	grid-template-columns: minmax(0, 1fr) 128px;
	grid-template-areas: "item item" "price qty";
	row-gap: 10px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.pafex-vgrid--detail .pafex-vgrid__item { grid-area: item; align-items: flex-start; }
.pafex-vgrid--detail .pafex-vgrid__price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; text-align: left; white-space: normal; }
.pafex-vgrid--detail .pafex-vgrid__qty { grid-area: qty; }
.pafex-vgrid--detail .pafex-vgrid__name { overflow: visible; white-space: normal; text-overflow: clip; }
.pafex-vgrid__desc { display: block; margin: 1px 0 3px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* Catalogue PDF en ligne : feuilletage, défilement, miniatures, sommaire, recherche */
.pafex-catalogue.pafex-page { padding-top: 32px; padding-bottom: 64px; }
/* Lecteur plus large que le reste du site : place pour le livre + les deux colonnes produits. */
.pafex-catalogue { --wrap: 1680px; }
.pafex-catalogue .pafex-page__head { margin-bottom: 20px; }
.pafex-catalogue .pafex-h1 { font-size: calc(clamp(30px, 3.2vw, 44px) * .81); }
.pafex-catalogue .pafex-lead { margin-top: 8px; }
.pafex-reader { scroll-margin-top: var(--rd-top, 0px); }
.pafex-reader { --rd-h: calc(100vh - 220px); position: relative; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--soft); }
.pafex-reader [hidden] { display: none !important; }
.pafex-reader__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	background: #fff;
}
.pafex-reader__group, .pafex-reader__zoomgroup { display: flex; align-items: center; gap: 6px; }
.pafex-reader__btn,
.pafex-reader__zoom {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.pafex-reader__btn.is-sm { min-width: 34px; height: 34px; padding: 0 8px; }
.pafex-reader__zoom { min-width: 76px; font-family: var(--mono); font-size: 13px; }
.pafex-reader__btn:hover, .pafex-reader__zoom:hover { background: var(--soft); }
.pafex-reader__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pafex-reader__btn:disabled { opacity: .35; cursor: default; }
.pafex-reader__btn:focus-visible, .pafex-reader__zoom:focus-visible, .pafex-reader__seg button:focus-visible, .pafex-reader__thumbs button:focus-visible, .pafex-reader__outline button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pafex-reader__page { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pafex-reader .pafex-reader__page input { width: 58px; height: 38px; min-height: 0; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 14px; text-align: center; -moz-appearance: textfield; }
.pafex-reader__page input::-webkit-inner-spin-button, .pafex-reader__page input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pafex-reader__seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.pafex-reader__seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pafex-reader__seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pafex-reader__dl { display: inline-flex; align-items: center; gap: 8px; }
.pafex-reader__dl small { font-weight: 400; opacity: 0.75; }

/* Recherche */
.pafex-reader__find { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fff; color: var(--muted); }
.pafex-reader .pafex-reader__find input { flex: 1; min-width: 0; height: 36px; min-height: 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-size: 15px; color: var(--ink); background: var(--soft); }
.pafex-reader__count { font-family: var(--mono); font-size: 12px; white-space: nowrap; min-width: 4ch; text-align: right; }

/* Zone de lecture */
.pafex-reader__body { position: relative; display: flex; height: var(--rd-h); min-height: 420px; }
.pafex-reader__view,
.pafex-reader__book { flex: 1; min-width: 0; overflow: auto; outline: none; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.pafex-reader__view:focus-visible, .pafex-reader__book:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.pafex-reader__view { scrollbar-gutter: stable; } /* 1.0.103 : la place de la barre de défilement est réservée, la largeur des pages ne change pas. */
.pafex-reader__pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: max-content;
	min-width: 100%;
	padding: 16px;
	box-sizing: border-box;
	transform-origin: 0 0;
}
.pafex-reader__sheet { position: relative; flex: none; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06); }
.pafex-reader__sheet canvas { display: block; }
.pafex-reader__sheet.is-blank { background: none; box-shadow: none; }
.pafex-reader__msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: var(--muted); }
noscript .pafex-reader__msg { position: static; }

/* Surlignage des résultats */
.pafex-reader__hls { position: absolute; inset: 0; pointer-events: none; }
.pafex-reader__hls i { position: absolute; border-radius: 2px; background: rgba(255, 196, 0, 0.38); mix-blend-mode: multiply; }
.pafex-reader__hls i.is-on { background: rgba(255, 128, 0, 0.55); box-shadow: 0 0 0 2px rgba(255, 128, 0, 0.9); }

/* Feuilletage */
.pafex-reader__book { position: relative; }
.pafex-reader__bookin { display: grid; place-items: center; width: max-content; min-width: 100%; min-height: 100%; padding: 16px; box-sizing: border-box; transform-origin: 0 0; }
.pafex-reader__spread { position: relative; display: flex; perspective: 2400px; }
.pafex-reader__slot { position: relative; flex: none; }
.pafex-reader__slot > .pafex-reader__sheet { position: absolute; inset: 0; }
.pafex-reader__spread:not(.is-single) .pafex-reader__slot.is-l > .pafex-reader__sheet:not(.is-blank) { box-shadow: -6px 6px 22px rgba(0, 0, 0, 0.10); }
.pafex-reader__spread:not(.is-single) .pafex-reader__slot.is-r > .pafex-reader__sheet:not(.is-blank) { box-shadow: 6px 6px 22px rgba(0, 0, 0, 0.10); }
/* Pli de la reliure */
.pafex-reader__spread:not(.is-single) .pafex-reader__slot.is-l > .pafex-reader__sheet:not(.is-blank)::after,
.pafex-reader__spread:not(.is-single) .pafex-reader__slot.is-r > .pafex-reader__sheet:not(.is-blank)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; }
.pafex-reader__spread:not(.is-single) .pafex-reader__slot.is-l > .pafex-reader__sheet::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, 0.12), transparent); }
.pafex-reader__spread:not(.is-single) .pafex-reader__slot.is-r > .pafex-reader__sheet::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent); }
.pafex-reader__spread.is-single .is-r { display: none; }
.pafex-reader:not(.is-zoomed) .pafex-reader__slot { cursor: pointer; }
.pafex-reader__sheet.is-ghost { pointer-events: none; }
.pafex-reader__leaf { position: absolute; top: 0; bottom: 0; z-index: 3; transform-style: preserve-3d; will-change: transform; }
.pafex-reader__leaf.is-fwd { left: 50%; transform-origin: left center; }
.pafex-reader__leaf.is-back { left: 0; transform-origin: right center; }
.pafex-reader__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pafex-reader__face.is-back { transform: rotateY(180deg); }
.pafex-reader__face > .pafex-reader__sheet { position: absolute; inset: 0; }
.pafex-reader__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(to right, transparent 30%, rgba(0, 0, 0, 0.10) 50%, transparent 70%); }
.pafex-reader__turn {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: opacity .2s;
}
.pafex-reader__turn.is-prev { left: 12px; }
.pafex-reader__turn.is-next { right: 12px; }
.pafex-reader__turn:disabled { opacity: 0; pointer-events: none; }
.pafex-reader.is-zoomed .pafex-reader__turn { opacity: .5; }
.pafex-reader__book { scrollbar-gutter: auto; }

/* Panneau : miniatures et sommaire */
.pafex-reader__panel { flex: none; display: flex; flex-direction: column; width: 196px; border-right: 1px solid var(--line); background: #fff; }
.pafex-reader__tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.pafex-reader__tabs button { flex: 1; padding: 8px 6px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pafex-reader__tabs button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.pafex-reader__thumbs { flex: 1; overflow: auto; display: grid; grid-template-columns: 1fr; align-content: start; gap: 12px; padding: 14px 18px; }
.pafex-reader__thumbs button { display: grid; justify-items: center; gap: 4px; padding: 6px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.pafex-reader__thumbs button:hover { background: var(--soft); }
.pafex-reader__thumbs button.is-on { background: var(--soft); box-shadow: inset 0 0 0 2px var(--ink); }
.pafex-reader__thumb { display: block; width: 120px; max-width: 100%; background: var(--soft); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.pafex-reader__thumb canvas { display: block; }
.pafex-reader__thumbs small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pafex-reader__outline { flex: 1; overflow: auto; padding: 8px 6px 14px; }
.pafex-reader__outline ul { list-style: none; margin: 0; padding: 0; }
.pafex-reader__outline ul ul { padding-left: 12px; }
.pafex-reader__outline button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; line-height: 1.35; color: var(--ink); text-align: left; cursor: pointer; }
.pafex-reader__outline ul ul button { font-size: 13px; color: var(--ink-2); }
.pafex-reader__outline button:hover { background: var(--soft); }
.pafex-reader__outline button small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Plein écran */
.pafex-reader.is-full { --rd-h: calc(100vh - 60px); border-radius: 0; }
.pafex-reader.is-full:has(.pafex-reader__find:not([hidden])) { --rd-h: calc(100vh - 113px); }

/* Références cliquables (pros) : lien vers la fiche + petit panier */
.pafex-reader__links { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pafex-reader__ref { position: absolute; display: block; pointer-events: auto; border-radius: 2px; box-shadow: inset 0 -1.5px 0 rgba(16, 132, 255, 0.85); transition: background-color 0.15s; }
.pafex-reader__ref:hover, .pafex-reader__ref:focus-visible { background: rgba(16, 132, 255, 0.16); outline: none; }
.pafex-reader__cart {
	position: absolute;
	display: grid;
	place-items: center;
	width: max(16px, var(--s));
	aspect-ratio: 1;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s, background-color 0.15s;
}
.pafex-reader__cart svg { width: 68%; height: 68%; }
.pafex-reader__cart:hover { transform: translateY(-50%) scale(1.15); }
.pafex-reader__cart:focus-visible { outline: 2px solid #1084ff; outline-offset: 2px; }
.pafex-reader__cart.is-busy { opacity: 0.6; cursor: progress; }
.pafex-reader__cart.is-ok { background: #1f8a4c; }
.pafex-reader__toast { position: absolute; left: 50%; bottom: 16px; z-index: 7; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translate(-50%, 8px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.pafex-reader__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pafex-reader__toast.is-bad { background: var(--danger); }
@media (hover: none) { .pafex-reader__cart { width: max(22px, var(--s)); } }

/* Catalogue en plusieurs PDF : accueil, nom de la section, menu de téléchargement */
.pafex-cathome[hidden] { display: none; }
.pafex-cathome__hero { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.pafex-cathome__cover { display: block; border-radius: 6px; overflow: hidden; background: var(--soft); aspect-ratio: 210 / 297; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.12); transition: transform 0.25s; }
.pafex-cathome__cover:hover { transform: translateY(-4px) rotate(-0.6deg); }
.pafex-cathome__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pafex-cathome__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 520px; }
.pafex-cathome__intro p { margin: 0; }
.pafex-cathome__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pafex-cathome__search { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--soft); color: var(--muted); }
.pafex-cathome .pafex-cathome__search input { flex: 1; min-width: 0; height: 46px; min-height: 0; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); box-shadow: none; outline: none; }
.pafex-cathome__search:focus-within { border-color: var(--ink); background: #fff; }
.pafex-cathome__dl { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pafex-cathome__dl small { color: var(--muted); font-weight: 400; }
.pafex-cathome__h { margin: 0 0 18px; font-size: 22px; letter-spacing: -0.02em; }
.pafex-cathome__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }
.pafex-cathome__item { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.pafex-cathome__thumb { display: block; margin-bottom: 6px; aspect-ratio: 210 / 297; border-radius: 4px; overflow: hidden; background: var(--soft); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.06); transition: transform 0.2s, box-shadow 0.2s; }
.pafex-cathome__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pafex-cathome__item:hover .pafex-cathome__thumb, .pafex-cathome__item:focus-visible .pafex-cathome__thumb { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.12); }
.pafex-cathome__item:focus-visible { outline: none; }
.pafex-cathome__item:focus-visible b { text-decoration: underline; }
.pafex-cathome__item b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.pafex-cathome__item small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pafex-cathome__cell { position: relative; }
.pafex-cathome__cell .pafex-cathome__item small { padding-right: 34px; }
/* Petite icône de téléchargement, au bout de la ligne « X pages ». */
.pafex-cathome__get { position: absolute; right: -6px; bottom: -7px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); transition: background-color 0.15s, color 0.15s; }
.pafex-cathome__get:hover, .pafex-cathome__get:focus-visible { background: var(--soft); color: var(--ink); outline: none; }
.pafex-cathome__get:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.pafex-reader__sec { max-width: 220px; margin-left: 6px; overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.pafex-reader__dlwrap { position: relative; }
.pafex-reader__dlmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; min-width: 240px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(11, 11, 12, 0.12); }
.pafex-reader__dlmenu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.pafex-reader__dlmenu a:hover, .pafex-reader__dlmenu a:focus-visible { background: var(--soft); outline: none; }
.pafex-reader__dlmenu small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.pafex-reader__thumbsh { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.pafex-reader__outline button.is-on { background: var(--soft); font-weight: 600; }
@media (max-width: 1240px) { .pafex-reader__sec { display: none; } }
@media (max-width: 720px) {
	.pafex-cathome__hero { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; margin-bottom: 36px; }
	.pafex-cathome__cover { width: min(62vw, 260px); }
	.pafex-cathome__intro { align-items: center; }
	.pafex-cathome__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
	.pafex-reader__dlmenu { right: -6px; }
}

/* Colonnes « Produits de la page » (gauche = page de gauche, droite = page de droite) */
.pafex-reader__col { flex: none; width: 262px; overflow: auto; padding: 12px 10px 16px; background: #fff; overscroll-behavior: contain; box-sizing: border-box; }
.pafex-reader__col.is-l { border-right: 1px solid var(--line); }
.pafex-reader__col.is-r { border-left: 1px solid var(--line); order: 5; }
.pafex-reader__body > .pafex-reader__msg { order: 6; }
.pafex-reader.has-prods .pafex-reader__sec { display: none; }
.pafex-pc__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 4px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pafex-pc__title span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pafex-pc__title small { flex: none; font-weight: 500; color: var(--muted); }
.pafex-pc__none { margin: 8px 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pafex-pc { margin: 0 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.pafex-pc.is-hot { border-color: #1084ff; box-shadow: 0 0 0 2px rgba(16, 132, 255, 0.35); }
.pafex-pc.is-flash { animation: pafex-pc-flash 0.9s ease; }
@keyframes pafex-pc-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 132, 255, 0); } 30% { box-shadow: 0 0 0 5px rgba(16, 132, 255, 0.45); } }
.pafex-pc__head { display: flex; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; }
.pafex-pc__head:hover b { text-decoration: underline; }
.pafex-pc__img { flex: none; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.pafex-pc__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pafex-pc__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pafex-pc__txt b { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pafex-pc__txt small { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Tableau : pastille stock · taille · achat HT · coef · PVC · panier */
.pafex-pc__tbl { margin-top: 7px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pafex-pc__cols, .pafex-pc__row { display: grid; grid-template-columns: 8px 34px 1fr 38px 1fr 28px; align-items: center; gap: 5px; }
.pafex-pc__cols.is-one, .pafex-pc__row.is-one { grid-template-columns: 8px 1fr 38px 1fr 28px; }
.pafex-pc__cols.is-pub, .pafex-pc__row.is-pub { grid-template-columns: 1fr auto; }
.pafex-pc__cols.is-pub:not(:has(span + span)) { grid-template-columns: 1fr; }
.pafex-pc__cols { padding: 0 0 3px; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.pafex-pc__cols span:nth-last-of-type(1), .pafex-pc__cols span:nth-last-of-type(2) { text-align: right; }
.pafex-pc__cols.is-pub span:last-child { text-align: right; }
.pafex-pc__row { padding: 4px 0; border-bottom: 1px solid var(--line); }
.pafex-pc__row:last-child { border-bottom: 0; padding-bottom: 0; }
.pafex-pc__row.is-hot { margin: 0 -6px; padding-left: 6px; padding-right: 6px; border-radius: 6px; background: #fff4c2; }
/* Déclinaisons (pro) : le modèle sur toute la largeur, les prix dessous, alignés sur l'en-tête. */
.pafex-pc__row.is-var { grid-template-columns: 8px 1fr 38px 1fr 28px; row-gap: 1px; }
.pafex-pc__row.is-var .pafex-pc__dot { grid-row: 1; grid-column: 1; }
.pafex-pc__row.is-var .pafex-pc__size { grid-row: 1; grid-column: 2 / 5; white-space: normal; overflow: visible; font-size: 11px; line-height: 1.3; }
.pafex-pc__row.is-var .pafex-pc__buy { grid-row: 2; grid-column: 2; }
.pafex-pc__row.is-var .pafex-pc__coef { grid-row: 2; grid-column: 3; }
.pafex-pc__row.is-var .pafex-pc__pvc { grid-row: 2; grid-column: 4; }
.pafex-pc__row.is-var .pafex-pc__add { grid-row: 1 / 3; grid-column: 5; }
.pafex-pc__row.is-var .pafex-pc__add.is-off { align-self: center; }
.pafex-pc__row.is-pub .pafex-pc__size { white-space: normal; font-size: 11px; line-height: 1.3; }
.pafex-vitrine .pafex-pc__row.is-var { grid-template-columns: 8px 1fr 28px; }
.pafex-vitrine .pafex-pc__row.is-var .pafex-pc__size { grid-column: 2; }
.pafex-vitrine .pafex-pc__row.is-var .pafex-pc__pvc { grid-row: 2; grid-column: 2; text-align: left; }
.pafex-vitrine .pafex-pc__row.is-var .pafex-pc__add { grid-column: 3; }
.pafex-pc__size { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pafex-pc__buy { font-weight: 700; color: var(--ink); white-space: nowrap; text-align: right; }
.pafex-pc__coef { justify-self: end; padding: 1px 5px; border-radius: 999px; background: var(--soft); font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.pafex-pc__pvc { color: var(--muted); white-space: nowrap; text-align: right; }
.pafex-pc__row.is-pub .pafex-pc__pvc { color: var(--ink); font-weight: 600; }
.pafex-pc__dot { width: 8px; height: 8px; border-radius: 50%; background: #1f8a4c; }
.pafex-pc__dot.is-low { background: #e08a00; }
.pafex-pc__dot.is-out { background: #c62828; }
.pafex-pc__add { position: relative; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.pafex-pc__add svg { width: 13px; height: 13px; }
.pafex-pc__add small { position: absolute; right: -5px; top: -6px; min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border: 1.5px solid #fff; border-radius: 999px; background: #1084ff; font-size: 8.5px; font-weight: 700; line-height: 12px; text-align: center; }
.pafex-pc__add:hover { transform: scale(1.08); }
.pafex-pc__add.is-ok { background: #1f8a4c; }
.pafex-pc__add.is-busy { opacity: 0.6; cursor: progress; }
.pafex-pc__add.is-off { background: none; color: var(--muted); cursor: default; }
.pafex-vitrine .pafex-pc__cols:not(.is-pub), .pafex-vitrine .pafex-pc__row:not(.is-pub) { grid-template-columns: 8px 34px 1fr 28px; }
.pafex-vitrine .pafex-pc__cols.is-one, .pafex-vitrine .pafex-pc__row.is-one { grid-template-columns: 8px 1fr 28px; }
.pafex-pc__zoom { position: absolute; z-index: 8; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(11, 11, 12, 0.22); opacity: 0; transform: scale(0.96); transition: opacity 0.15s, transform 0.15s; pointer-events: none; box-sizing: border-box; }
.pafex-pc__zoom.is-on { opacity: 1; transform: none; }
.pafex-pc__zoom img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pafex-reader__marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pafex-reader__mark { position: absolute; border-radius: 3px; pointer-events: auto; cursor: pointer; box-shadow: inset 0 -1.5px 0 rgba(16, 132, 255, 0.55); transition: background-color 0.12s, box-shadow 0.12s; }
.pafex-reader__mark.is-hot { background: rgba(16, 132, 255, 0.14); box-shadow: 0 0 0 2px #1084ff; }
.pafex-reader.has-prods .pafex-reader__turn.is-prev { left: 6px; }
.pafex-reader.has-prods .pafex-reader__turn.is-next { right: 6px; }
.pafex-reader.has-prods .pafex-reader__turn { width: 38px; height: 38px; margin-top: -19px; }
@media (max-width: 720px) { .pafex-reader__col, .pafex-reader__bar [data-act="prods"] { display: none !important; } }

/* Crédit discret sous le lecteur */
.pafex-reader-credit { display: flex; justify-content: flex-end; margin: 16px 4px 0; line-height: 0; }
.pafex-reader-credit img { display: block; width: auto; height: 22px; opacity: 0.45; transition: opacity 0.2s; }
.pafex-reader-credit a:hover img, .pafex-reader-credit a:focus-visible img { opacity: 0.85; }
@media (max-width: 720px) { .pafex-reader-credit { justify-content: center; margin-top: 12px; } .pafex-reader-credit img { height: 18px; } }

@media (max-width: 1080px) {
	.pafex-reader__seg span { display: none; }
	.pafex-reader__seg button { padding: 0 9px; }
}
@media (max-width: 720px) {
	.pafex-reader { --rd-h: calc(100svh - 150px); margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
	.pafex-reader__bar { justify-content: center; gap: 8px 6px; padding: 8px 10px; }
	.pafex-reader__group { gap: 4px; }
	.pafex-reader__btn { min-width: 36px; height: 36px; padding: 0 8px; }
	.pafex-reader .pafex-reader__page input { width: 48px; height: 36px; }
	.pafex-reader__page { margin: 0 2px; }
	.pafex-reader__zoomgroup, .pafex-reader__turn { display: none; }
	/* Une seule ligne : bascule d'affichage en un bouton, téléchargement en icône, pas de plein écran. */
	.pafex-reader__seg { padding: 0; border: 0; background: none; }
	.pafex-reader__seg button { width: 36px; height: 36px; padding: 0; justify-content: center; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
	.pafex-reader__seg button[aria-pressed="true"] { display: none; }
	.pafex-reader__bar [data-act="full"] { display: none; }
	/* Précédent / suivant : sur téléphone, on fait défiler ou on balaie la page. */
	.pafex-reader__bar .pafex-reader__group > [data-act="prev"], .pafex-reader__bar .pafex-reader__group > [data-act="next"] { display: none; }
	.pafex-reader__dl { width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; }
	.pafex-reader__dl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.pafex-reader__body { min-height: 360px; }
	.pafex-reader__pages { gap: 10px; padding: 10px; }
	.pafex-reader__bookin { padding: 10px; }
	.pafex-reader__panel { position: absolute; z-index: 6; inset: 0 auto 0 0; width: min(78vw, 260px); box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15); }
	.pafex-reader__thumbs { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; }
}
@media (max-width: 360px) {
	.pafex-reader__bar { padding: 8px 6px; gap: 6px 3px; }
	.pafex-reader__group { gap: 3px; }
	.pafex-reader__btn, .pafex-reader__seg button, .pafex-reader__dl { min-width: 34px; width: auto; height: 34px; padding: 0 7px; }
	.pafex-reader .pafex-reader__page input { width: 40px; height: 34px; }
	.pafex-reader__page { gap: 3px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pafex-reader__turn { transition: none; }
}

/* Mode discret (œil) sur le panier : montants masqués sans casser les colonnes */
.pafex-vitrine .pafex-basket .pafex-basket__price.pafex-purchase { display: flex !important; visibility: hidden; }
.pafex-vitrine .pafex-basket .pafex-basket__total.pafex-purchase,
.pafex-vitrine .pafex-basket__head .pafex-purchase { display: block !important; visibility: hidden; }
.pafex-vitrine .pafex-totals__table,
.pafex-vitrine .pafex-totals__due { display: none; }

/* Tableau de commande : PVC et Coeff sur deux lignes sous le prix (plus de chevauchement avec « par 10 ») */
.pafex-vgrid__head,
.pafex-vgrid__row { grid-template-columns: minmax(140px, 1fr) auto 128px; }
.pafex-vgrid__price .pafex-vgrid__pvc { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: normal; }
.pafex-vgrid__price .pafex-vgrid__pvc > * { white-space: nowrap; }
.pafex-vgrid__price .pafex-vgrid__pvc .pafex-vgrid__coef { font-family: var(--mono); font-size: 11.5px; }
.pafex-vgrid__meta > * { white-space: nowrap; }
.pafex-vgrid--detail .pafex-vgrid__price .pafex-vgrid__pvc { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
@media (max-width: 720px) {
	.pafex-vgrid__row { grid-template-columns: minmax(0, 1fr) auto; }
	.pafex-vgrid__price .pafex-vgrid__pvc { align-items: flex-start; }
}

/* Catalogue : rappel des pastilles de stock sous « Composez votre épuisette » */
.pafex-filters .pafex-filters__stock {
	display: grid;
	gap: 6px;
	margin-top: -16px;
	padding: 12px 16px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-xs);
	background: #fff;
	font-size: 13px;
	color: var(--ink-2);
}
.pafex-filters .pafex-filters__config + .pafex-filters__stock { margin-top: -20px; }
.pafex-filters__stock p { display: flex; align-items: center; gap: 10px; margin: 0; }
.pafex-filters__stock .pafex-stockdot { width: 10px; height: 10px; box-shadow: none; }
@media (max-width: 860px) { .pafex-filters .pafex-filters__stock, .pafex-filters .pafex-filters__config + .pafex-filters__stock { margin-top: 0; } }

.pafex-totals__coef-note { font-size: 11px; opacity: 0.85; }

/* Mon compte : « dont X € HT de reliquat estimé » sous le montant */
.pafex-order-back { display: block; margin-top: 2px; font-family: var(--font); font-size: 12px; font-weight: 400; color: #8a6100; white-space: nowrap; }
.woocommerce-orders-table .pafex-order-back { white-space: normal; }
.pafex-order__total .pafex-order-back { text-align: inherit; }

/* =========================================================================
 * 1.0.38 — Panier : « Ajouter une référence », déconditionnement
 * ====================================================================== */
.pafex-page__titlebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.pafex-cartadd { position: relative; flex: 0 1 460px; min-width: 0; }
.pafex-cartadd__label { display: block; margin: 0 0 6px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.pafex-cartadd__box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); }
.pafex-cartadd__box:focus-within { border-color: var(--ink); }
.pafex-cartadd__box .pafex-icon { color: var(--muted); }
.pafex-cartadd__box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; }
.pafex-cartadd__list { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: min(680px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg); box-shadow: 0 18px 48px rgba(11, 11, 12, 0.14); }
.pafex-cartadd__none { margin: 0; padding: 16px; font-size: 14px; color: var(--muted); }
.pafex-cartadd__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-xs); }
.pafex-cartadd__item + .pafex-cartadd__item { border-top: 1px solid var(--line); }
.pafex-cartadd__item.is-active, .pafex-cartadd__item:hover { background: var(--soft); }
.pafex-cartadd__thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--soft); overflow: visible; }
.pafex-cartadd__thumb img { display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.pafex-cartadd__thumb .pafex-stockdot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; }
.pafex-cartadd__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pafex-cartadd__sku { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.pafex-cartadd__name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pafex-cartadd__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted-2); }
.pafex-cartadd__stock { font-weight: 500; color: var(--ok); }
.pafex-cartadd__stock.is-low { color: #8a6100; }
.pafex-cartadd__stock.is-out { color: var(--stock-out); }
.pafex-cartadd__prices { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.pafex-cartadd__price { font-weight: 600; }
.pafex-cartadd__pvc { font-size: 12px; color: var(--muted); }
.pafex-cartadd__prices .pafex-item-coef { margin: 0; background: var(--ok-soft); color: var(--ok); }
.pafex-cartadd__buy { display: flex; align-items: center; gap: 8px; }
.pafex-cartadd__qty { width: 64px; height: 40px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 999px; text-align: center; font-family: var(--mono); font-size: 14px; }
.pafex-cartadd__btn { min-height: 40px; padding: 0 16px; }
.pafex-cartadd__msg { margin: 8px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 500; }
.pafex-cartadd__msg.is-error { background: #fdecea; color: var(--danger); }
.pafex-vitrine .pafex-cartadd__pvc { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
	.pafex-cartadd { flex-basis: 100%; }
	.pafex-cartadd__list { left: 0; right: auto; width: 100%; }
	.pafex-cartadd__item { grid-template-columns: 44px minmax(0, 1fr) auto; }
	.pafex-cartadd__thumb, .pafex-cartadd__thumb img { width: 44px; height: 44px; }
	.pafex-cartadd__buy { grid-column: 2 / -1; justify-content: flex-end; }
}

.pafex-decond { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; font-size: 12px; }
.pafex-decond__check { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-weight: 500; cursor: pointer; user-select: none; }
.pafex-decond__check input { width: 14px; height: 14px; margin: 0; accent-color: var(--ink); }
.pafex-decond__check:hover { border-color: var(--ink); }
.pafex-decond.is-on .pafex-decond__check { border-color: var(--ink); background: var(--ink); color: #fff; }
.pafex-decond.is-on .pafex-decond__check input { accent-color: #fff; }
.pafex-decond__hint { color: var(--muted-2); }
.pafex-decond__info { padding: 3px 10px; border-radius: 999px; background: #fff4d6; color: #8a6100; font-weight: 600; }
.pafex-totals__decond th small { display: block; font-size: 11px; color: var(--muted); }
.pafex-basket__row > .pafex-decond { grid-column: 2 / -1; margin: -4px 0 0; }
@media (max-width: 720px) {
	.pafex-basket__row > .pafex-decond { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 720px) {
	/* Le total de ligne garde sa largeur (pas de débordement à droite sur téléphone). */
	.pafex-basket__row { grid-template-columns: 56px minmax(0, 1fr) auto; }
	.pafex-basket__total { white-space: nowrap; }
}

/* Fiche produit : rappel déconditionnement sous la remise */
.pafex-decond-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line, #ececE8); color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- Paniers multiples ---------- */
.pafex-carttabs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0 0 22px; }
.pafex-carttabs[hidden] { display: none; }
.pafex-carttab { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.pafex-carttab:hover { border-color: var(--ink); }
.pafex-carttab.is-active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5); }
.pafex-carttab__main { display: flex; flex-direction: column; gap: 1px; padding: 9px 6px 9px 16px; color: inherit; min-width: 96px; }
.pafex-carttab__main:hover { color: inherit; }
.pafex-carttab__name { font-weight: 600; font-size: 15px; line-height: 1.25; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pafex-carttab__total { font-family: var(--mono); font-size: 12px; opacity: .75; }
.pafex-carttab__edit, .pafex-carttab__del { display: grid; place-items: center; align-self: stretch; width: 30px; border: 0; background: transparent; color: inherit; opacity: .55; cursor: pointer; font-size: 18px; line-height: 1; padding: 0; text-decoration: none; }
.pafex-carttab__edit:hover, .pafex-carttab__del:hover { opacity: 1; color: inherit; }
.pafex-carttab__del { width: 26px; margin-right: 4px; }
.pafex-carttab__rename { width: 150px; margin: 6px 0 6px 12px; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; }
.pafex-carttabs__new { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 1px dashed #b9b9b3; border-radius: 14px; color: var(--ink); font-weight: 600; font-size: 14px; background: transparent; }
.pafex-carttabs__new:hover { border-color: var(--ink); background: var(--soft); color: var(--ink); }
.pafex-carttabs__new span { font-size: 20px; line-height: 1; }

/* Aperçu du panier au survol : plusieurs paniers */
.pafex-minicart--multi { width: 420px; padding: 12px 14px 16px; }
.pafex-minicart__tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 4px; border-radius: 14px; background: var(--soft); }
.pafex-minicart__tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: background .12s ease, box-shadow .12s ease; }
.pafex-minicart__tab.is-on { background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(0, 0, 0, .3); }
.pafex-minicart__tabname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.pafex-minicart__tab.is-current .pafex-minicart__tabname::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #1f8a4c; vertical-align: middle; }
.pafex-minicart__tabtotal { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pafex-minicart__pane { display: none; }
.pafex-minicart__pane.is-on { display: block; }
.pafex-minicart__actions:empty { display: none; }
.pafex-minicart__open { grid-column: 1 / -1; justify-content: center; }
@media (max-width: 640px) {
	.pafex-carttab__name { max-width: 120px; }
	.pafex-carttabs__new { padding: 10px 16px; }
}

/* 5 paniers : onglets de l'aperçu sur plusieurs lignes ; explication de la marge */
.pafex-minicart__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.pafex-minicart--multi.is-switching { opacity: .6; pointer-events: none; }
.pafex-minicart__tab:not(.is-current):hover { background: rgba(255, 255, 255, .7); }
.pafex-totals__howto { margin: 10px 4px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* ---------- Fusion de paniers ---------- */
.pafex-carttab__merge { display: grid; place-items: center; align-self: stretch; width: 30px; border: 0; background: transparent; color: inherit; opacity: .55; cursor: pointer; padding: 0; }
.pafex-carttab__merge:hover { opacity: 1; }
.pafex-carttab[draggable="true"] { cursor: grab; }
.pafex-carttab.is-dragging { opacity: .45; }
.pafex-carttab.is-droptarget { outline: 3px dashed #1a73e8; outline-offset: 3px; background: #e8f1fe; color: var(--ink); }
.pafex-carttab.is-droptarget .pafex-carttab__total { opacity: 1; }
.pafex-carttabs__hint { flex-basis: 100%; margin: 0; font-size: 12.5px; color: #6b6b66; }
.pafex-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 20, 40, .5); }
.pafex-modal__box { background: #fff; color: var(--ink); width: 100%; max-width: 440px; border-radius: 16px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.pafex-modal__box h3 { margin: 0 0 8px; font-size: 18px; }
.pafex-modal__box p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; }
.pafex-modal__list { display: grid; gap: 8px; margin: 12px 0; }
.pafex-modal__opt { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.pafex-modal__opt span:last-child { font-weight: 500; color: #666; font-family: var(--mono); font-size: 13px; }
.pafex-modal__opt:hover { border-color: var(--ink); background: var(--soft); }
.pafex-modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.pafex-modal__btn { padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.pafex-modal__btn--ok { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 680px) {
	.pafex-modal { align-items: flex-end; padding: 0; }
	.pafex-modal__box { max-width: none; border-radius: 20px 20px 0 0; padding: 22px 18px 26px; }
	.pafex-carttabs__hint { display: none; }
}

/* ---------- Vignettes du carrousel : légende (coloris / modèle) ---------- */
.woocommerce-product-gallery .flex-control-thumbs li { display: flex; flex-direction: column; }
.pafex-thumbcap { display: block; padding: 6px 2px 0; line-height: 1.25; text-align: center; overflow-wrap: anywhere; color: var(--ink); }
.pafex-thumbcap--colour { font-size: 12.5px; font-weight: 600; }
.pafex-thumbcap--model { font-size: 11px; font-weight: 500; color: #6b6b66; }

/* ---------- Tableau des références pour les visiteurs (lecture seule) ---------- */
.pafex-vgrid--guest .pafex-vgrid__head,
.pafex-vgrid--guest .pafex-vgrid__row { grid-template-columns: minmax(0, 1fr) auto; }
.pafex-vgrid__price--guest { text-align: right; font-weight: 700; white-space: nowrap; }
.pafex-vgrid__price--guest small { font-weight: 500; color: #6b6b66; }

/* ---------- Articles : mise en page « journal » (3/4 de largeur, 2 colonnes) ---------- */
.pafex-prose--journal { max-width: 1100px; font-size: 19px; line-height: 1.7; }
.pafex-prose--journal > .pafex-cols > * + * { margin-top: 18px; }
.pafex-prose--journal > h2 { margin: 40px 0 18px; }
.pafex-prose--journal > h3 { margin: 32px 0 14px; }
.pafex-prose--journal > .pafex-lead { font-size: 22px; line-height: 1.5; color: var(--ink); }
.pafex-prose--journal > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video) { margin-top: 28px; margin-bottom: 28px; }
.pafex-prose--journal > .alignwide, .pafex-prose--journal > .alignfull { width: 100%; margin-left: 0; transform: none; }
.pafex-prose--journal img { max-width: 100%; height: auto; }
.pafex-prose--journal .wp-block-image img, .pafex-prose--journal > figure img { width: 100%; height: auto; display: block; }
.pafex-prose--journal .wp-block-image.is-resized img { width: auto; max-width: 100%; }
.pafex-prose--journal .wp-block-image img, .pafex-prose--journal > figure img { max-height: 560px; object-fit: cover; }
.pafex-prose--journal > .pafex-lead { max-width: none; }

/* Bouton « catalogue de la marque » en fin d'article */
.pafex-brand__cta { display: flex; justify-content: center; margin: 56px auto 24px; }
.pafex-brand__cta .pafex-btn { min-height: 52px; padding-inline: 32px; font-size: 16px; }

/* ---------- Application PAFEX Pro (installée sur l'écran d'accueil) ---------- */
.pafex-appback { flex: none; display: none; place-items: center; width: 36px; height: 36px; margin: 0 -14px 0 -10px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.pafex-appback:active { background: var(--soft); }
html.pafex-app .pafex-appback { display: grid; }
/* (Transitions entre pages retirées en 1.0.64 : traînée grise autour du logo sur Safari.) */
html.pafex-app .pafex-header { padding-top: env(safe-area-inset-top); }
html.pafex-app body { padding-bottom: env(safe-area-inset-bottom); -webkit-tap-highlight-color: transparent; }
html.pafex-app .pafex-logo { margin-left: 0; }

.pafex-appbanner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(11, 11, 12, 0.22); opacity: 0; transform: translateY(24px); transition: opacity 0.25s, transform 0.25s; }
.pafex-appbanner.is-on { opacity: 1; transform: none; }
.pafex-appbanner img { flex: none; border-radius: 11px; }
.pafex-appbanner p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.pafex-appbanner p b { display: block; font-size: 14px; color: var(--ink); }
.pafex-appbanner .pafex-btn { flex: none; min-height: 0; padding: 10px 16px; font-size: 14px; }
.pafex-appbanner__x { flex: none; width: 28px; height: 28px; margin-left: -4px; padding: 0; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (min-width: 721px) { .pafex-appbanner { left: auto; width: 420px; } }

.pafex-appsheet { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center; background: rgba(11, 11, 12, 0); transition: background 0.25s; }
.pafex-appsheet.is-on { background: rgba(11, 11, 12, 0.45); }
.pafex-appsheet__box { position: relative; width: 100%; max-width: 440px; padding: 28px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; text-align: center; transform: translateY(100%); transition: transform 0.3s; }
.pafex-appsheet.is-on .pafex-appsheet__box { transform: none; }
@media (min-width: 721px) { .pafex-appsheet { align-items: center; } .pafex-appsheet__box { border-radius: 22px; } }
.pafex-appsheet__box > img { border-radius: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.pafex-appsheet__title { margin: 12px 0 16px; font-size: 18px; font-weight: 600; }
.pafex-appsheet ol { margin: 0 0 20px; padding: 0; list-style: none; text-align: left; }
.pafex-appsheet li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.pafex-appsheet__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: #0a7aff; font-size: 13px; }
.pafex-appsheet__note { color: var(--muted); font-size: 13px; }
.pafex-appsheet .pafex-btn { width: 100%; justify-content: center; }
.pafex-appsheet__x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
/* Téléphone : la ligne compte (scanner, franco, panier, œil, compte) tient sur la largeur. */
@media (max-width: 480px) {
	.pafex-logged-in .pafex-account { gap: 6px; max-width: 100%; }
	.pafex-logged-in .pafex-franco { min-width: 0; padding: 0 12px; }
	.pafex-scanbtn { width: 36px !important; height: 36px !important; }
}
@media (max-width: 380px) {
	.pafex-logged-in .pafex-franco { display: none; }
}

/* Menu principal épuré (ordinateur) : texte plus petit et plus discret, la page active ressort. */
@media (min-width: 1081px) {
	.pafex-menu { font-size: 13px; letter-spacing: 0.01em; }
	.pafex-menu > li > a { color: var(--ink-2); transition: color 0.15s; }
	.pafex-menu > li > a:hover,
	.pafex-menu > .current-menu-item > a,
	.pafex-menu > .current-menu-ancestor > a,
	.pafex-menu > .current_page_item > a { color: var(--ink); }
	.pafex-menu .menu-item-has-children > a::after { transform: rotate(45deg) scale(0.85); }
}

/* ---------- En-tête (1.0.67) : recherche rectangle, menu souligné, panier + franco en un seul bloc (pros) ---------- */
@media (min-width: 1081px) {
	.pafex-menu > li > a { position: relative; }
	.pafex-menu > li > a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1.5px; border-radius: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
	.pafex-menu > li > a:hover::before,
	.pafex-menu > .current-menu-item > a::before,
	.pafex-menu > .current-menu-ancestor > a::before,
	.pafex-menu > .current_page_item > a::before { transform: scaleX(1); }
	.pafex-menu > .menu-item-has-children > a::before { right: 14px; }
}
.pafex-header .pafex-search input[type="search"] { height: 44px; border: 1px solid #dcdcd7; border-radius: 10px; background: #fff; }
.pafex-header .pafex-search input[type="search"]:focus { border-color: var(--ink); }

.pafex-cartbox { display: flex; align-items: stretch; height: 44px; box-sizing: border-box; border: 1px solid #dcdcd7; border-radius: 10px; background: #fff; transition: border-color 0.15s; }
.pafex-cartbox:hover { border-color: var(--ink); }
.pafex-cartbox .pafex-cart { height: auto; padding: 0 14px 0 12px; border-radius: 9px 0 0 9px; background: none; }
.pafex-cartbox .pafex-cart:hover { background: none; }
.pafex-cartbox .pafex-cart__total { font-size: 14px; }
.pafex-cartbox .pafex-cart { gap: 14px; }
.pafex-cartbox .pafex-cart__info { gap: 4px; }
.pafex-cartbox .pafex-cart__total { order: 1; }
.pafex-cartbox .pafex-cart__count { order: 2; }
.pafex-cartbox .pafex-cart-count { top: -8px; right: -10px; min-width: 18px; height: 18px; border-width: 0; border-radius: 6px; font-family: var(--mono); }
.pafex-header .pafex-cartbox .pafex-franco { order: 2; flex-direction: column; justify-content: center; gap: 5px; height: auto; min-width: 132px; width: auto; padding: 0 14px; border-left: 1px solid #e6e6e1; border-radius: 0 9px 9px 0; background: none; color: var(--ink); box-shadow: none; opacity: 1; }
.pafex-header .pafex-cartbox .pafex-franco:hover { background: none; color: var(--ink); opacity: 1; }
.pafex-cartbox .pafex-franco[hidden] { display: none; }
.pafex-cartbox .pafex-franco__row { display: contents; }
.pafex-cartbox .pafex-franco__name { display: block; order: 1; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; line-height: 1; color: var(--muted); }
.pafex-cartbox .pafex-franco__bar { order: 2; height: 3px; border-radius: 2px; background: #ecece7; }
.pafex-cartbox .pafex-franco__bar span { background: var(--ink); }
.pafex-cartbox .pafex-franco__left { order: 3; font-size: 11.5px; line-height: 1; }
.pafex-header .pafex-cartbox .pafex-franco.is-ok .pafex-franco__bar { background: #ecece7; }
.pafex-header .pafex-cartbox .pafex-franco.is-ok .pafex-franco__bar span { background: var(--ok, #1f8a4c); }
.pafex-header .pafex-cartbox .pafex-franco.is-ok .pafex-franco__left { color: var(--ok, #1f8a4c); font-weight: 600; }
/* En-tête compact : le bloc garde le montant et la jauge, sans les petits libellés. */
@media (min-width: 1081px) {
	.pafex-header.is-tight .pafex-cartbox .pafex-franco { min-width: 104px; padding: 0 12px; }
	.pafex-header.is-tight .pafex-cartbox .pafex-franco__name { display: none; }
}
/* Téléphone et tablette : bloc resserré. */
@media (max-width: 1080px) {
	.pafex-cartbox { height: 40px; }
	.pafex-cartbox .pafex-cart { padding: 0 10px 0 10px; gap: 8px; }
	.pafex-header .pafex-cartbox .pafex-franco { min-width: 0; width: auto; padding: 0 10px; }
	.pafex-cartbox .pafex-franco__name { display: none; }
	.pafex-cartbox .pafex-cart__count { display: none; }
}
@media (max-width: 380px) {
	.pafex-header .pafex-cartbox .pafex-franco { display: none; }
}
/* Compte, œil et scanner : carrés arrondis comme la recherche et le bloc panier. */
.pafex-header .pafex-eye,
.pafex-header .pafex-account .pafex-pill--soft,
.pafex-header .pafex-scanbtn { width: 44px; height: 44px; padding: 0; justify-content: center; box-sizing: border-box; border: 1px solid #dcdcd7; border-radius: 10px; background: #fff; }
.pafex-header .pafex-eye:hover,
.pafex-header .pafex-account .pafex-pill--soft:hover,
.pafex-header .pafex-scanbtn:hover { border-color: var(--ink); background: #fff; }
.pafex-vitrine .pafex-header .pafex-eye { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 1080px) {
	.pafex-header .pafex-eye,
	.pafex-header .pafex-account .pafex-pill--soft,
	.pafex-header .pafex-scanbtn { width: 40px !important; height: 40px !important; }
}

/* 1.0.69 : même design (contour fin, fond blanc), formes arrondies : recherche et bloc panier en ovale, boutons ronds. */
.pafex-header .pafex-search input[type="search"] { border-radius: 999px; }
.pafex-cartbox { border-radius: 999px; }
.pafex-cartbox .pafex-cart { padding-left: 16px; border-radius: 999px 0 0 999px; }
.pafex-header .pafex-cartbox .pafex-franco { padding-right: 20px; border-radius: 0 999px 999px 0; }
.pafex-header .pafex-eye,
.pafex-header .pafex-account .pafex-pill--soft,
.pafex-header .pafex-scanbtn { border-radius: 50%; }

/* 1.0.72 : « Déjà commandé » (clients pros) : étoile indigo pleine, arrondie, sur pastille blanche.
   Cuivre (.is-prev) quand la dernière commande date de la saison dernière. */
.pafex-ordered {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	color: #4f46e5;
	line-height: 0;
	box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.16);
}
.pafex-ordered.is-prev { color: #b7793f; box-shadow: inset 0 0 0 1px rgba(183, 121, 63, 0.22); }
.pafex-ordered__star { display: block; }
.pafex-card__ordered {
	position: absolute;
	top: 6px;
	right: 10px;
	z-index: 2;
	box-shadow: 0 1px 4px rgba(17, 17, 26, 0.14), inset 0 0 0 1px rgba(79, 70, 229, 0.12);
}
.pafex-card__ordered .pafex-ordered__star { width: 15px; height: 15px; }
.pafex-card__ordered.is-prev { box-shadow: 0 1px 4px rgba(17, 17, 26, 0.1), inset 0 0 0 1px rgba(183, 121, 63, 0.18); }
.pafex-card__stock ~ .pafex-card__ordered { right: 34px; }
.pafex-ordered--sm { width: 16px; height: 16px; margin: -3px; background: none; box-shadow: none; }
.pafex-ordered--sm .pafex-ordered__star { width: 14px; height: 14px; }
.pafex-ordered--sm.is-prev { box-shadow: none; }
.pafex-filters__stock .pafex-ordered--sm { margin: -3px; }
.pafex-check .pafex-ordered--sm { margin: 0; }
.pafex-stockinfo__list .pafex-ordered { width: 16px; height: 16px; margin: -2px; background: none; box-shadow: none; }
.pafex-stockinfo__list .pafex-ordered .pafex-ordered__star { width: 14px; height: 14px; }
.pafex-filters__mine .pafex-check__count { color: #4f46e5; font-weight: 600; }
.pafex-vitrine select.orderby option[value="deja"] { display: none; } /* Mode vitrine : pas d'historique d'achat à l'écran. */

/* Vue liste : vignette de 88 px, pastilles plus petites et serrées. */
ul.products.is-list .pafex-card__stock { top: 8px; right: 8px; width: 10px; height: 10px; }
ul.products.is-list .pafex-card__ordered { top: 4px; right: 6px; width: 18px; height: 18px; }
ul.products.is-list .pafex-card__stock ~ .pafex-card__ordered { right: 24px; }
ul.products.is-list .pafex-card__ordered .pafex-ordered__star { width: 11px; height: 11px; }
@media (max-width: 640px) {
	.pafex-card__stock { top: 10px; right: 10px; }
	.pafex-card__ordered { top: 5px; right: 8px; width: 22px; height: 22px; }
	.pafex-card__stock ~ .pafex-card__ordered { right: 30px; }
	.pafex-card__ordered .pafex-ordered__star { width: 13px; height: 13px; }
	ul.products.is-list .pafex-card__ordered { top: 4px; right: 6px; width: 18px; height: 18px; }
	ul.products.is-list .pafex-card__stock ~ .pafex-card__ordered { right: 24px; }
}

/* Fiche produit : bandeau lavande sous la référence. */
.pafex-ordered-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: var(--r-xs);
	background: #f0eeff;
	color: #3a31b0;
	font-size: 14px;
	line-height: 1.4;
}
.pafex-ordered-note .pafex-ordered { width: 22px; height: 22px; margin-top: -1px; box-shadow: none; }
.pafex-ordered-note .pafex-ordered .pafex-ordered__star { width: 14px; height: 14px; }
.pafex-ordered-note__text { flex: 1 1 auto; min-width: 0; padding-top: 1px; font-weight: 500; }
.pafex-ordered-note__link { margin-left: 4px; color: #3a31b0; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.pafex-ordered-note__link:hover { color: #4f46e5; }

/* Grille des déclinaisons : « ★ Commandé 2 fois ». */
.pafex-vgrid__ordered { display: inline-flex; align-items: center; gap: 4px; color: #4f46e5; font-weight: 600; }
.pafex-vgrid__ordered .pafex-ordered__star { flex: none; }
.pafex-vgrid__ordered.is-prev .pafex-ordered__star { color: #b7793f; }

/* 1.0.71 : catalogue interactif, colonnes « Produits de la page » (pros) : déjà commandé, déjà au panier. */
.pafex-pc__img { position: relative; }
.pafex-pc__star { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: #4f46e5; box-shadow: 0 1px 3px rgba(17, 17, 26, 0.16); }
.pafex-pc__star.is-prev { color: #b7793f; }
.pafex-pc__star svg { width: 12px; height: 12px; }
.pafex-pc__flags { display: inline-flex; flex-wrap: wrap; gap: 3px 5px; margin-left: 6px; vertical-align: 1px; font-family: var(--font); }
.pafex-pc__flags:empty { display: none; }
.pafex-pc__flags.is-card { display: flex; margin: 6px 0 0 55px; font-family: var(--font); }
.pafex-pc__flags.is-card:empty { display: none; }
.pafex-pc__ord, .pafex-pc__incart { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 14px; white-space: nowrap; }
.pafex-pc__ord { background: #f0eeff; color: #3a31b0; }
.pafex-pc__incart { background: #e6f4ec; color: #17693a; }
.pafex-pc__ord svg, .pafex-pc__incart svg { flex: none; width: 9px; height: 9px; }
.pafex-pc.has-cart { border-color: #b9dfc8; }
.pafex-pc__add.is-in { background: #1f8a4c; }
.pafex-pc__add.is-in:hover { background: #17693a; }

/* 1.0.71 : recherche de l'en-tête et de la colonne du catalogue.
   Visiteur : suggestions avec « Voir le produit ». Pro : ajout rapide (mêmes lignes que « Ajouter une référence » du panier). */
.pafex-suggest__text { flex: 1; }
.pafex-suggest__go { flex: none; margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pafex-suggest__item:hover .pafex-suggest__go, .pafex-suggest__item.is-active .pafex-suggest__go { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pafex-search--sidebar .pafex-suggest { left: 0; right: auto; width: min(380px, calc(100vw - 32px)); }
.pafex-search--quick .pafex-cartadd__list { z-index: 60; }
.pafex-search--sidebar .pafex-cartadd__list { left: 0; right: auto; }
.pafex-cartadd__go { display: block; color: inherit; }
a.pafex-cartadd__name { color: var(--ink); }
a.pafex-cartadd__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pafex-cartadd__flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.pafex-cartadd__flags:empty { display: none; }
.pafex-cartadd__btn.is-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.pafex-cartadd__all { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 6px 4px 2px; border-radius: 12px; background: var(--soft); font-size: 13px; font-weight: 500; color: var(--ink); }
.pafex-cartadd__all:hover { background: var(--line); color: var(--ink); }
.pafex-search.pafex-search--quick input.pafex-cartadd__qty[type="number"] { flex: none; width: 64px; min-width: 0; height: 40px; padding: 0 6px; border-radius: 999px; font-size: 14px; }
.pafex-cartadd__go .pafex-cartadd__thumb { display: block; }
/* 1.0.73 : recherches de produits : toute la ligne ouvre la fiche produit, sauf la quantité et « Ajouter ». */
.pafex-cartadd__item { cursor: pointer; }
.pafex-cartadd__buy { cursor: default; }
.pafex-cartadd__view { font-size: 12px; font-weight: 500; color: var(--muted); }
.pafex-cartadd__item:hover .pafex-cartadd__view, .pafex-cartadd__view:focus { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pafex-search--quick .pafex-cartadd__btn { flex: none; }
.pafex-quick__msg { position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: calc(100vw - 32px); margin: 0; transform: translateX(-50%); box-shadow: 0 10px 30px rgba(11, 11, 12, 0.18); }
@media (max-width: 1080px) {
	.pafex-search--header .pafex-cartadd__list { left: 0; right: auto; width: 100%; }
}
@media (max-width: 720px) {
	.pafex-search--quick .pafex-cartadd__item { grid-template-columns: 44px minmax(0, 1fr) auto; }
	.pafex-search--quick .pafex-cartadd__thumb, .pafex-search--quick .pafex-cartadd__thumb img { width: 44px; height: 44px; }
	.pafex-search--quick .pafex-cartadd__buy { grid-column: 2 / -1; justify-content: flex-end; }
}

/* 1.0.73 : recherche de la colonne du catalogue : fenêtre condensée (5 produits, lignes compactes). */
.pafex-search--sidebar .pafex-cartadd__list { width: min(330px, calc(100vw - 32px)); max-height: min(420px, 60vh); padding: 4px; border-radius: 14px; }
.pafex-cartadd__item.is-compact { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; padding: 7px 8px; }
.pafex-cartadd__item.is-compact > :first-child { grid-row: 1 / span 2; align-self: start; }
.pafex-cartadd__item.is-compact .pafex-cartadd__thumb, .pafex-cartadd__item.is-compact .pafex-cartadd__thumb img { width: 36px; height: 36px; border-radius: 8px; }
.pafex-cartadd__item.is-compact .pafex-cartadd__thumb .pafex-stockdot { width: 8px; height: 8px; top: -2px; right: -2px; }
.pafex-cartadd__item.is-compact .pafex-cartadd__info { gap: 1px; }
.pafex-cartadd__item.is-compact .pafex-cartadd__name { overflow: hidden; font-size: 13px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.pafex-cartadd__item.is-compact .pafex-cartadd__meta { flex-wrap: nowrap; overflow: hidden; gap: 6px; font-size: 11px; white-space: nowrap; }
.pafex-cartadd__item.is-compact .pafex-cartadd__sku { font-size: 11px; }
.pafex-cartadd__incart { color: var(--ok); font-weight: 600; }
.pafex-cartadd__item.is-compact .pafex-cartadd__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pafex-cartadd__item.is-compact .pafex-cartadd__price { font-family: var(--mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pafex-cartadd__item.is-compact .pafex-cartadd__buy { gap: 5px; }
.pafex-cartadd__item.is-compact .pafex-cartadd__pricebox { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pafex-cartadd__small { display: flex; flex-wrap: nowrap; gap: 0 7px; overflow: hidden; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pafex-cartadd__small .pafex-purchase { color: var(--ok); font-weight: 600; }
.pafex-search.pafex-search--sidebar.pafex-search--quick input.pafex-cartadd__qty[type="number"] { width: 46px; height: 28px; padding: 0 4px; font-size: 12.5px; }
.pafex-cartadd__item.is-compact .pafex-cartadd__btn { min-height: 28px; padding: 0 11px; font-size: 12.5px; }
.pafex-search--sidebar .pafex-cartadd__all { position: sticky; bottom: 0; min-height: 32px; margin: 4px 2px 2px; border-radius: 10px; font-size: 12.5px; box-shadow: 0 -6px 12px #fff; }


/* ---------- Typo unique Archivo (1.0.86) : grands titres élargis, mêmes proportions qu'en Geist ---------- */
.pafex-display,
.pafex-h1,
.pafex-h2,
.pafex-prose h2,
.pafex-feature-card__title,
.pafex-product__title,
.pafex-account-head .pafex-h1,
.pafex-slide__title,
.pafex-catalogue .pafex-h1 {
	font-family: var(--font);
	font-weight: 800;
	font-stretch: 112%;
	font-variation-settings: "wdth" 112;
	letter-spacing: -0.025em;
}
.pafex-buybox__price,
.pafex-pvcbox .pafex-buybox__price,
.pafex-kpi__value { font-weight: 700; letter-spacing: -0.02em; }
h1, h2, h3, h4 { font-weight: 700; }

/* =========================================================================
   1.0.88 : international, pages légales, sélecteur de langue
   ====================================================================== */
.pafex-acces input[type="url"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-xs);
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 400;
}
.pafex-acces input[type="url"]:focus { outline: none; border-color: var(--ink); }
.pafex-acces .has-error textarea { border-color: var(--danger); }
.pafex-cf__intro { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: var(--text); }
.pafex-acces__check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.pafex-cgv-lock .pafex-btn { margin: 16px 6px 0; }

.pafex-legal-doc { max-width: 760px; font-size: 15px; line-height: 1.7; color: var(--text); }
.pafex-legal-doc h2 { margin: 36px 0 10px; font-size: 19px; color: var(--ink); }
.pafex-legal-doc h2:first-child { margin-top: 0; }
.pafex-legal-doc ul { margin: 0; padding: 0 0 0 18px; }
.pafex-legal-doc li { margin: 4px 0; }
.pafex-legal-doc__note { margin-top: 32px; font-size: 13px; color: var(--muted); }
.pafex-legal-todo { padding: 1px 6px; border-radius: 4px; background: #fff2b3; color: #6b5200; font-size: .92em; }

.pafex-footer__bottom { align-items: center; }
.pafex-legal--pages { margin-right: auto; margin-left: 24px; }
.pafex-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; letter-spacing: .06em; }
.pafex-lang a,
.pafex-lang span { min-width: 34px; padding: 4px 10px; border-radius: 999px; text-align: center; line-height: 1.2; }
.pafex-lang a { color: var(--muted); text-decoration: none; }
.pafex-lang a:hover { color: var(--ink); }
.pafex-lang__on { background: var(--ink); color: #fff; font-weight: 600; }
@media (max-width: 640px) {
	.pafex-legal--pages { margin-left: 0; }
}
.pafex-acces select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}

/* 1.0.93 : stock réel en chiffres (commerciaux uniquement) */
.pafex-card__qty { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--ink, #111); font-size: 12px; font-weight: 600; line-height: 1.3; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); border-left: 4px solid var(--ok); }
.pafex-card__qty.is-low { border-left-color: var(--warn); }
.pafex-card__qty.is-out { border-left-color: var(--stock-out); }
.pafex-buybox__qty { font-weight: 700; }

/* 1.0.94 : catalogue, mode « saisie rapide » */
.pafex-quick-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line, #e3e3df); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.pafex-quick-toggle[aria-pressed="true"] { background: var(--ink, #111); border-color: var(--ink, #111); color: #fff; }
.pafex-quick-btn { display: none; border: 0; cursor: pointer; }
.pafex-quick-btn svg { transform: rotate(90deg); transition: transform .2s ease; }
.pafex-quick-btn[aria-expanded="true"] svg { transform: rotate(-90deg); }
ul.products.is-quick .pafex-quick-btn { display: inline-flex; }
ul.products.is-quick .pafex-card .pafex-add:not(.pafex-quick-btn) { display: none; }
ul.products > li.pafex-quick-panel { grid-column: 1 / -1; list-style: none; margin: 0 0 8px; padding: 18px 20px; border: 1px solid var(--line, #e3e3df); border-radius: 18px; background: #fafaf8; width: auto; }
li.pafex-quick-panel.is-loading { color: var(--muted, #777); font-size: 14px; }
.pafex-quick-panel__head { margin: 0 0 10px; font-weight: 600; }
.pafex-quick-panel__head a { color: inherit; }
.pafex-quick-panel .pafex-vgrid { margin: 0; }

/* 1.0.96 : commerciaux — pastille du catalogue + stock réel au survol (sans prix).
   L'encart s'ouvre À GAUCHE de la carte, par-dessus la carte voisine (à droite s'il n'y a pas la place). */
.pafex-card__stockzone { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pafex-card__stockzone:hover { pointer-events: auto; } /* garde l'encart ouvert jusqu'à lui */
.pafex-card__stockzone > .pafex-stockdot { position: absolute; top: 12px; right: 12px; pointer-events: auto; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(0, 0, 0, 0.12); }
.pafex-card__stockzone > .pafex-stockdot::after { content: ""; position: absolute; inset: -8px; }
.pafex-stockpop { display: none; position: absolute; top: 0; right: 100%; width: 274px; max-height: min(360px, 70vh); overflow: auto; overscroll-behavior: contain; padding: 10px 12px; border-right: 14px solid transparent; border-radius: 12px; background: #fff; background-clip: padding-box; color: var(--ink, #111); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18)); /* bordure transparente = passage de la souris de la pastille à l'encart */ font-size: 12px; line-height: 1.35; text-align: left; cursor: default; pointer-events: auto; }
.pafex-card__stockzone.is-right .pafex-stockpop { right: auto; left: 100%; border-right: 0; border-left: 14px solid transparent; }
.pafex-card__stockzone:hover .pafex-stockpop, .pafex-card__stockzone:focus-within .pafex-stockpop { display: block; }
.pafex-stockpop__t { display: block; margin: 0 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pafex-stockpop__t small { margin-left: 6px; letter-spacing: 0; text-transform: none; }
.pafex-stockpop ul { margin: 0; padding: 0; list-style: none; }
.pafex-stockpop li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line, #eee); }
.pafex-stockpop li:first-child { border-top: 0; }
.pafex-stockpop li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pafex-stockpop li.is-more { color: var(--muted); font-style: italic; }
/* Quantité dans une pastille : vert = en stock, orange = 3 conditionnements ou moins, rouge = 0. */
.pafex-stockpop__q { flex: none; min-width: 34px; padding: 2px 8px; border-radius: 999px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: var(--ok); }
.pafex-stockpop__q.is-low { background: var(--warn); color: #3a2a00; }
.pafex-stockpop__q.is-out { background: var(--stock-out); }
/* L'encart sort de la photo et passe au-dessus des cartes voisines. */
.pafex-card:has(.pafex-card__stockzone:hover), .pafex-card:has(.pafex-card__stockzone:focus-within) { position: relative; z-index: 20; }
.pafex-card__media:has(.pafex-card__stockzone:hover), .pafex-card__media:has(.pafex-card__stockzone:focus-within) { overflow: visible; }

/* 1.0.96 : commerciaux — vue « miniatures » (plus de produits à l'écran) */
ul.products.is-mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 14px; }
ul.products.is-mini .pafex-card__media img { padding: 6%; }
ul.products.is-mini .pafex-card__brand, ul.products.is-mini .pafex-card__pvc, ul.products.is-mini .pafex-card__guest, ul.products.is-mini .pafex-coef, ul.products.is-mini .pafex-badge { display: none; }
ul.products.is-mini .pafex-card__title { margin-top: 8px; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
ul.products.is-mini .pafex-card__sku { font-size: 11px; }
ul.products.is-mini .pafex-card__buy { margin-top: 6px; }
ul.products.is-mini .pafex-card__price { font-size: 13px; }
ul.products.is-mini .pafex-from { font-size: 10px; }
ul.products.is-mini .pafex-add { width: 34px; height: 34px; }
