/* ==========================================================================
   ESE — Boutique WooCommerce, langage « Swiss » partagé avec l’espace pro.
   Palette de la charte uniquement ; le rouge n’apparaît que pour les erreurs.
   ========================================================================== */

/* ---------- Panier dans l’en-tête (chargé partout via ambiance, voir bas) ---------- */

/* ---------- Héros boutique ---------- */
.shop-hero { position: relative; isolation: isolate; overflow: hidden; padding: 80px 0 96px; border-bottom: 1px solid var(--ese-bordure); }
.shop-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 0 55%;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%231F6FB2'/%3E%3C/svg%3E");
	opacity: .16;
}
.shop-hero--compact { padding: 64px 0 56px; }
.shop-hero--compact::before { display: none; }
.shop-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.shop-hero--compact .shop-hero__grid { grid-template-columns: 1fr; }
.shop-hero .pro-hero__title { color: var(--ese-texte); }
.shop-hero__lead { font-size: 18px; line-height: 1.6; color: var(--ese-texte-2); max-width: 560px; margin-top: 22px; }
.shop-hero .btn-row { margin-top: 32px; }
.shop-stats { border-top-color: var(--ese-bordure); }
.shop-stats dt { color: var(--ese-texte-3); }
.shop-stats dd { color: var(--ese-texte); }

/* ---------- Livre en perspective ---------- */
.book3d { display: block; justify-self: center; perspective: 1600px; text-decoration: none; font-size: 22px; }
.book3d__inner {
	position: relative;
	display: block;
	width: min(300px, 64vw);
	transform-style: preserve-3d;
	transform: rotateY(-26deg) rotateX(5deg);
	transition: transform 1.2s var(--ease-out);
}
.book3d:hover .book3d__inner, .book3d:focus-visible .book3d__inner { transform: rotateY(-6deg) rotateX(2deg) translateY(-6px); }
.book3d__inner::after {
	/* tranche des pages */
	content: "";
	position: absolute;
	top: 1.5%;
	bottom: 1.5%;
	right: 0;
	width: 30px;
	transform-origin: right center;
	transform: rotateY(90deg);
	background: #F4F4F1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='4'%3E%3Crect width='1' height='4' fill='%23D9DDE0'/%3E%3C/svg%3E");
}
.book3d--static { pointer-events: none; }
.js .book3d:not(.book3d--static) .book3d__inner { animation: ese-book-in 1.4s var(--ease-out) .2s both; }
@keyframes ese-book-in { from { opacity: 0; transform: rotateY(-50deg) rotateX(8deg) translateX(40px); } }

/* ---------- Livre à la une (moment fort, fond sombre) ---------- */
.shop-feature { position: relative; isolation: isolate; overflow: hidden; background: var(--ese-sombre-creatif); color: #fff; padding: 96px 0; scroll-margin-top: 40px; }
.shop-feature::before {
	content: "";
	position: absolute;
	inset: 0 60% 0 0;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%2359B7E8'/%3E%3C/svg%3E");
	opacity: .12;
}
.shop-feature__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.shop-feature__cover { display: block; max-width: 340px; justify-self: center; width: 100%; font-size: 19px; transform: rotate(-3deg); transition: transform 1s var(--ease-out); }
.shop-feature__cover:hover { transform: rotate(0) translateY(-6px); }
.shop-feature .eyebrow { color: var(--ese-azur); }
.shop-feature__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin-top: 14px; text-wrap: balance; }
.shop-feature__title a { color: #fff; text-decoration: none; }
.shop-feature__text { font-size: 16.5px; line-height: 1.65; color: var(--ese-gris-clair); margin-top: 16px; max-width: 560px; }
.shop-feature__extract { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14.5px; }

.price-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-top: 28px; }
.price-tag__amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-tag__amount del { font-size: .55em; opacity: .55; font-weight: 500; margin-right: 8px; }
.price-tag__amount ins { text-decoration: none; }
.price-tag__sub { font-size: 13px; color: var(--ese-texte-4); }
.price-tag--light .price-tag__amount { color: var(--ese-texte); }
.price-tag--light .price-tag__sub { color: var(--ese-texte-3); }

.buy-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; max-width: 640px; }
.buy-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	text-decoration: none;
	transition: background-color var(--dur-sm), border-color var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
}
.buy-option:hover { color: #fff; border-color: var(--ese-azur); background: rgba(255, 255, 255, .04); }
.buy-option:active { transform: scale(.98); }
.buy-option strong { display: block; font-size: 15px; }
.buy-option small { display: block; font-size: 12px; color: var(--ese-texte-4); margin-top: 2px; }
.buy-option > svg { margin-left: auto; flex-shrink: 0; transition: transform var(--dur-md) var(--ease-out); }
.buy-option:hover > svg { transform: translateX(3px); }
.buy-option__icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--ese-azur); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.buy-option--primary { background: var(--ese-azur); border-color: var(--ese-azur); color: var(--ese-sombre-creatif); }
.buy-option--primary:hover { background: #7AC6EE; border-color: #7AC6EE; color: var(--ese-sombre-creatif); box-shadow: 0 8px 22px rgba(89, 183, 232, .28); }
.buy-option--primary small { color: rgba(38, 41, 46, .72); }
.buy-option--primary .buy-option__icon { background: rgba(38, 41, 46, .1); color: var(--ese-sombre-creatif); }
.buy-option--light { border-color: var(--ese-bordure-2); color: var(--ese-texte); background: #fff; margin-top: 12px; max-width: 440px; }
.buy-option--light:hover { color: var(--ese-texte); border-color: var(--ese-bleu-pro); background: #fff; }
.buy-option--light small { color: var(--ese-texte-3); }
.buy-option--light .buy-option__icon { background: var(--ese-bleu-tint); color: var(--ese-bleu-pro); }

/* États d’ajout au panier (classes posées par WooCommerce) */
.add_to_cart_button.loading { opacity: .6; pointer-events: none; }
.add_to_cart_button.added strong::after, .btn.add_to_cart_button.added::after { content: " ✓"; }
.added_to_cart { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ese-bleu-pro); text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 2; }
.buy-options .added_to_cart { grid-column: 1 / -1; color: var(--ese-azur); font-size: 14px; }

/* ---------- Catalogue ---------- */
.shop-catalog { padding-top: 96px; scroll-margin-top: 40px; }
.shop-catalog__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.shop-catalog__head .chips { margin: 0; justify-content: flex-start; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.shop-partner { margin-top: 40px; }

.product {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ese-bordure);
	border-radius: var(--radius-panel);
	transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38, 41, 46, .09); }
.product__visual { position: relative; display: flex; justify-content: center; padding: 36px 0 32px; background: var(--ese-surface); }
.product__visual .cover { width: 44%; font-size: 12px; transition: transform var(--dur-lg) var(--ease-out); }
.product:hover .product__visual .cover { transform: translateY(-6px) rotate(-2deg); }
.product__num { position: absolute; top: 16px; left: 18px; font-size: 13px; font-weight: 700; color: var(--ese-texte-4); font-variant-numeric: tabular-nums; transition: color var(--dur-sm); }
.product:hover .product__num { color: var(--ese-bleu-pro); }
.product__badge { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 20px; background: var(--ese-bleu-pro); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.product__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 20px; }
.product__title { font-size: 19px; line-height: 1.3; }
.product__title a { color: var(--ese-texte); text-decoration: none; transition: color var(--dur-sm); }
.product:hover .product__title a { color: var(--ese-bleu-pro); }
.product__desc { font-size: 14px; line-height: 1.6; color: var(--ese-texte-2); flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ese-bordure); }
.product__price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product__price del { font-size: .75em; opacity: .5; font-weight: 500; }
.product__price ins { text-decoration: none; }
.product__foot .btn, .product__foot .added_to_cart { position: relative; z-index: 2; }
.product__foot .added_to_cart { flex-basis: 100%; justify-content: flex-end; }

/* ---------- Comment acheter ---------- */
.pay-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pay-list li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--ese-bordure); border-radius: var(--radius-card); }
.pay-list strong { display: block; font-size: 15px; }
.pay-list small { display: block; font-size: 12.5px; color: var(--ese-texte-3); margin-top: 2px; }
.shop-how { margin-top: 96px; }

/* ---------- Fiche produit ---------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.product-hero__visual { position: sticky; top: calc(var(--admin-bar) + 96px); display: flex; justify-content: center; padding: 72px 24px; border-radius: 24px; background: var(--ese-surface); }
.product-hero__visual .woocommerce-product-gallery { width: 100%; margin: 0; }
.product-hero__visual .woocommerce-product-gallery img { border-radius: 12px; }
.product-hero__visual .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.product-hero__visual .flex-control-thumbs img { cursor: pointer; opacity: .6; transition: opacity var(--dur-sm); }
.product-hero__visual .flex-control-thumbs img.flex-active, .product-hero__visual .flex-control-thumbs img:hover { opacity: 1; }
.product-hero__visual .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 2; }
.back--dark { color: var(--ese-texte-3); opacity: 1; }
.back--dark:hover { color: var(--ese-bleu-pro); }
.product-hero__title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin-top: 12px; text-wrap: balance; }
.product-hero__lead { font-size: 17px; line-height: 1.65; color: var(--ese-texte-2); margin-top: 20px; max-width: 560px; }
.product-hero__lead p + p { margin-top: .8em; }

.product-buy form.cart { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.product-buy .quantity .qty {
	width: 76px;
	height: 52px;
	border: 1.5px solid var(--ese-bordure-2);
	border-radius: var(--radius-btn);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	background: #fff;
	color: var(--ese-texte);
}
.product-buy .quantity .qty:focus { outline: none; border-color: var(--ese-bleu-pro); box-shadow: 0 0 0 3px rgba(31, 111, 178, .14); }
.product-buy .quantity.hidden { display: none; }
.product-buy .single_add_to_cart_button,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 30px;
	border: 0;
	border-radius: var(--radius-btn);
	background: var(--ese-bleu-pro);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
}
.product-buy .single_add_to_cart_button:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover { background: var(--ese-bleu-pro-hover); color: #fff; box-shadow: 0 6px 18px rgba(31, 111, 178, .28); }
.product-buy .single_add_to_cart_button:active { transform: scale(.98); }
.product-buy .stock { font-size: 13px; color: var(--ese-texte-3); margin-top: 12px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--ese-bordure); }
.facts dt { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--ese-texte-3); }
.facts dd { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; }

.product-desc { background: var(--ese-surface); padding: 72px 0 24px; scroll-margin-top: 40px; }
.product-desc__content { margin-top: 18px; padding-bottom: 48px; }
.shop-catalog--related { padding-top: 72px; padding-bottom: 24px; }

/* ---------- Panier & commande (blocs WooCommerce) ---------- */
.entry--shop .entry__content { font-size: 16px; line-height: 1.55; }
.entry--shop .entry__content > * + * { margin-top: 0; }
.wc-block-cart, .wc-block-checkout, .wc-block-components-form { font-family: inherit; }
.wc-block-components-sidebar-layout .wc-block-components-sidebar {
	background: #fff;
	border: 1px solid var(--ese-bordure);
	border-radius: var(--radius-panel);
	padding: 24px !important;
}
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 52px;
	border-radius: var(--radius-btn) !important;
	background: var(--ese-bleu-pro) !important;
	color: #fff !important;
	font-weight: 600 !important;
	transition: background-color var(--dur-sm), box-shadow var(--dur-sm);
}
.wc-block-components-button:not(.is-link):hover { background: var(--ese-bleu-pro-hover) !important; box-shadow: 0 6px 18px rgba(31, 111, 178, .28); }
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control input,
.wc-blocks-components-select select,
.wc-block-components-textarea {
	border: 1.5px solid var(--ese-bordure-2) !important;
	border-radius: var(--radius-btn) !important;
	background: #fff !important;
}
.wc-block-components-text-input.is-active input:focus,
.wc-block-components-text-input input:focus { border-color: var(--ese-bleu-pro) !important; box-shadow: 0 0 0 3px rgba(31, 111, 178, .14) !important; outline: none; }
.wc-block-components-product-name { color: var(--ese-texte); font-weight: 700; text-decoration: none; }
.wc-block-components-product-name:hover { color: var(--ese-bleu-pro); }
.wc-block-components-title, .wc-block-cart__totals-title { font-size: 12px !important; letter-spacing: 2px; text-transform: uppercase; font-weight: 600 !important; color: var(--ese-texte-3); }
.wc-block-components-checkout-step__title { font-size: 20px !important; font-weight: 700 !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: 10px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; font-weight: 700; }
.wp-block-woocommerce-empty-cart-block { text-align: center; padding: 48px 0; }

/* ---------- Mon compte (shortcode classique) ---------- */
.woocommerce-account .entry__content .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ese-texte-2); text-decoration: none; font-weight: 500; transition: background-color var(--dur-sm), color var(--dur-sm); }
.woocommerce-MyAccount-navigation a:hover { background: var(--ese-bleu-tint); color: var(--ese-bleu-pro); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ese-bleu-pro); color: #fff; }
.woocommerce form .form-row { margin: 0 0 16px; }
.woocommerce form .form-row label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--ese-bordure-2);
	border-radius: var(--radius-btn);
	font: inherit;
	font-size: 15px;
	background: #fff;
}
.woocommerce form .form-row .input-text:focus { outline: none; border-color: var(--ese-bleu-pro); box-shadow: 0 0 0 3px rgba(31, 111, 178, .14); }
.woocommerce-account .u-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.woocommerce-account:not(.logged-in) .entry__content .woocommerce { display: block; }
.woocommerce-form-login, .woocommerce-form-register { background: #fff; border: 1px solid var(--ese-bordure); border-radius: var(--radius-panel); padding: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.shop-grid, .pay-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shop-feature__grid { gap: 48px; }
	.product-hero { gap: 48px; }
}
@media (max-width: 899px) {
	.shop-hero { padding: 48px 0 56px; }
	.shop-hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.shop-hero::before { inset: 50% 0 0 0; }
	.book3d { font-size: 18px; order: -1; }
	.book3d__inner { width: min(210px, 56vw); }
	.shop-feature { padding: 64px 0; }
	.shop-feature__grid { grid-template-columns: 1fr; gap: 40px; }
	.shop-feature__cover { max-width: 220px; font-size: 18px; }
	.buy-options { grid-template-columns: 1fr; }
	.product-hero { grid-template-columns: 1fr; padding-top: 32px; }
	.product-hero__visual { position: static; padding: 48px 24px; }
	.woocommerce-account .entry__content .woocommerce, .woocommerce-account .u-columns { grid-template-columns: 1fr; gap: 24px; }
	.woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 767px) {
	.shop-grid, .pay-list { grid-template-columns: 1fr; gap: 12px; }
	.shop-catalog { padding-top: 56px; }
	.shop-how { margin-top: 56px; }
	.price-tag__amount { font-size: 28px; }
	.facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.book3d__inner { transform: rotateY(-14deg); }
}

/* Commande : titres d’étape en phrase (pas en capitales), récapitulatif sans double bordure. */
.wc-block-components-checkout-step__title.wc-block-components-title { text-transform: none; letter-spacing: -.01em; color: var(--ese-texte); }
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block { border: 0 !important; }
.wc-block-components-sidebar .wc-block-components-checkout-order-summary__title { padding-left: 0; padding-right: 0; }
.product-buy .quantity:has(input[type="hidden"]) { display: none; }

/* ---------- Page catégorie ---------- */
.cat-hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 88px; border-bottom: 1px solid var(--ese-bordure); }
.cat-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 0 55%;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%231F6FB2'/%3E%3C/svg%3E");
	opacity: .16;
}
.cat-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.cat-hero__back { display: inline-block; margin-bottom: 26px; color: var(--ese-texte-3); opacity: 1; }
.cat-hero__back:hover { color: var(--ese-bleu-pro); }
.cat-hero .pro-hero__title { color: var(--ese-texte); }
.cat-stats dd .amount, .cat-stats dd { font-size: 34px; }
.cat-hero__art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.cat-hero__num {
	position: absolute;
	right: 0;
	bottom: -40px;
	font-size: clamp(160px, 18vw, 260px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.05em;
	color: var(--ese-bleu-pro);
	opacity: .08;
	pointer-events: none;
}
/* Éventail de couvertures */
.fan { position: relative; width: min(220px, 50vw); font-size: 15px; }
.fan__item { display: block; }
.fan__item + .fan__item { position: absolute; inset: 0; }
.fan__item { transition: transform 1s var(--ease-out); }
.fan--2 .fan__item:nth-child(1) { transform: rotate(-7deg) translateX(-34px); }
.fan--2 .fan__item:nth-child(2) { transform: rotate(5deg) translateX(30px); }
.fan--3 .fan__item:nth-child(1) { transform: rotate(-11deg) translateX(-62px); }
.fan--3 .fan__item:nth-child(2) { transform: rotate(0) translateY(-10px); z-index: 2; }
.fan--3 .fan__item:nth-child(3) { transform: rotate(11deg) translateX(62px); }
.fan--1 .fan__item { transform: rotate(-4deg); }
.cat-hero__art:hover .fan--3 .fan__item:nth-child(1) { transform: rotate(-15deg) translateX(-84px); }
.cat-hero__art:hover .fan--3 .fan__item:nth-child(3) { transform: rotate(15deg) translateX(84px); }
.cat-hero__art:hover .fan--2 .fan__item:nth-child(1) { transform: rotate(-10deg) translateX(-50px); }
.cat-hero__art:hover .fan--2 .fan__item:nth-child(2) { transform: rotate(8deg) translateX(46px); }
.js .fan { animation: ese-fan-in 1.2s var(--ease-out) .15s both; }
@keyframes ese-fan-in { from { opacity: 0; transform: translateY(30px) scale(.95); } }

/* Autres catégories */
.other-cats { padding-top: 88px; }
.other-cats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.cat-tile {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 38px;
	grid-template-areas: "icon name go" "icon count go";
	align-items: center;
	column-gap: 16px;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--ese-bordure);
	border-radius: var(--radius-panel);
	color: var(--ese-texte);
	text-decoration: none;
	overflow: hidden;
	transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out), border-color var(--dur-sm);
}
.cat-tile:hover { color: var(--ese-texte); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(38, 41, 46, .08); border-color: var(--ese-bleu-pro); }
.cat-tile__num { position: absolute; top: 10px; right: 64px; font-size: 12px; font-weight: 700; color: var(--ese-texte-4); font-variant-numeric: tabular-nums; }
.cat-tile__icon { grid-area: icon; width: 48px; height: 48px; border-radius: 12px; background: var(--ese-bleu-tint); color: var(--ese-bleu-pro); display: flex; align-items: center; justify-content: center; transition: background-color var(--dur-sm), color var(--dur-sm); }
.cat-tile:hover .cat-tile__icon { background: var(--ese-bleu-pro); color: #fff; }
.cat-tile__name { grid-area: name; font-size: 17px; align-self: end; }
.cat-tile__count { grid-area: count; font-size: 13px; color: var(--ese-texte-3); align-self: start; }
.cat-tile .pcard__go { grid-area: go; }
.cat-tile:hover .pcard__go { background: var(--ese-bleu-pro); border-color: var(--ese-bleu-pro); color: #fff; }

@media (max-width: 1199px) { .other-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
	.cat-hero { padding: 36px 0 56px; }
	.cat-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.cat-hero__art { order: -1; min-height: 240px; }
	.fan { width: min(150px, 40vw); font-size: 11px; }
	.cat-hero::before { inset: 0 0 50% 0; }
	.other-cats { padding-top: 56px; }
}
@media (max-width: 600px) { .other-cats__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .fan { animation: none; } }

/* ==========================================================================
   Fiche produit (version enrichie)
   ========================================================================== */
.product-hero { padding-top: 40px; }
.product-hero__visual {
	isolation: isolate;
	overflow: hidden;
	min-height: 520px;
	align-items: center;
	padding: 72px 32px;
	background: var(--ese-surface);
	border: 1px solid var(--ese-bordure);
}
.product-hero__visual::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%231F6FB2'/%3E%3C/svg%3E");
	opacity: .14;
}
.product-hero__badge { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 20px; background: var(--ese-bleu-pro); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

/* Livre 3D qui suit la souris (valeurs posées par le JS) */
.book3d--tilt { font-size: 24px; perspective: 1400px; }
.book3d--tilt .book3d__inner { width: min(300px, 60vw); transform: rotateY(calc(-20deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))); transition: transform .6s var(--ease-out); }
.book3d--tilt.is-tilting .book3d__inner { transition-duration: .12s; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ese-texte-4); }
.crumbs a { color: var(--ese-texte-3); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ese-bleu-pro); }
.crumbs a:last-child { color: var(--ese-bleu-pro); }
.product-hero__title { margin-top: 18px; }
.product-hero__by { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ese-texte-3); }
.product-hero__by span { color: var(--ese-bleu-pro); }

.pills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--ese-bordure); border-radius: 30px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ese-texte-2); }
.pills svg { color: var(--ese-bleu-pro); }
.pills__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ese-bleu-pro); box-shadow: 0 0 0 3px var(--ese-bleu-tint); }

/* Quantité − / + */
.product-buy .quantity { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--ese-bordure-2); border-radius: 26px; background: #fff; overflow: hidden; }
.product-buy .quantity .qty { width: 44px; height: 100%; border: 0; border-radius: 0; box-shadow: none !important; -moz-appearance: textfield; }
.product-buy .quantity .qty::-webkit-inner-spin-button, .product-buy .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; height: 100%; border: 0; background: none; color: var(--ese-bleu-pro); font-size: 20px; font-weight: 600; line-height: 1; transition: background-color var(--dur-sm); }
.qty-btn:hover { background: var(--ese-bleu-tint); }
.product-buy .single_add_to_cart_button { flex: 1; min-width: 220px; border-radius: 26px; }
.product-hero__info .share { margin-top: 28px; }

/* Résumé + détails */
.product-desc { padding: 80px 0 64px; }
.product-desc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.product-desc__content { margin-top: 22px; padding-bottom: 0; max-width: 680px; }
.specs { position: sticky; top: calc(var(--admin-bar) + 96px); padding: 24px; background: #fff; border: 1px solid var(--ese-bordure); border-radius: 20px; }
.specs__title { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ese-bleu-pro); padding-bottom: 12px; border-bottom: 1.5px solid var(--ese-texte); }
.specs dl { margin: 0; }
.specs dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ese-bordure); }
.specs dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.specs dt { font-size: 12px; font-weight: 600; color: var(--ese-texte-3); }
.specs dd { margin: 0; font-size: 14px; font-weight: 600; }
.specs dd a { color: var(--ese-bleu-pro); text-decoration: none; }
.product .reassure, .single-product .reassure { padding-top: 0; }

/* Barre d’achat mobile */
.buy-bar { display: none; }
@media (max-width: 899px) {
	.product-hero__visual { min-height: 360px; padding: 48px 24px; }
	.book3d--tilt { font-size: 18px; }
	.book3d--tilt .book3d__inner { width: min(220px, 56vw); }
	.product-desc { padding: 56px 0 40px; }
	.product-desc__grid { grid-template-columns: 1fr; gap: 32px; }
	.specs { position: static; }
	.buy-bar {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 12px;
		z-index: 45;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 10px 10px 18px;
		background: #fff;
		border: 1px solid var(--ese-bordure);
		border-radius: 18px;
		box-shadow: 0 14px 40px rgba(38, 41, 46, .18);
		transform: translateY(140%);
		transition: transform var(--dur-md) var(--ease-out);
	}
	.buy-bar.is-visible { transform: none; }
	.has-player .buy-bar { bottom: 96px; }
	.buy-bar__info { flex: 1; min-width: 0; }
	.buy-bar__info strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.buy-bar__info span { font-size: 14px; font-weight: 700; color: var(--ese-bleu-pro); }
	.product-buy .single_add_to_cart_button { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.book3d--tilt .book3d__inner { transform: rotateY(-14deg); }
}

/* ---------- Recherche dans la boutique ---------- */
.shop-search--hero { margin-top: 26px; max-width: 640px; }
.shop-search--inline { max-width: 420px; margin: 0; padding: 4px 4px 4px 16px; box-shadow: none; }
.shop-search--inline input { height: 40px; font-size: 14.5px; }
.shop-search--inline .btn { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.shop-search-hero .cat-hero__title { margin-top: 12px; }
.product__title mark, .product__desc mark { background: var(--ese-bleu-tint); color: var(--ese-bleu-pro); padding: 0 3px; border-radius: 4px; }
.shop-search-catalog .search-empty, .shop-search-empty { margin-top: 32px; }
.shop-search-empty .search-empty__icon { margin-left: auto; margin-right: auto; }
.shop-search-empty .btn-row { margin-top: 22px; justify-content: center; }
@media (max-width: 767px) { .shop-search--inline { max-width: none; width: 100%; } }

/* ---------- En-tête de catégorie : photo sombre (miniature de la catégorie) ---------- */
.cat-hero--photo { background: var(--ese-sombre-creatif); color: #fff; border-bottom: 0; padding-bottom: 96px; }
.cat-hero--photo::before {
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23fff'/%3E%3C/svg%3E");
	opacity: .08;
}
.cat-hero--photo .zone-bg { opacity: .24; background-position: center; }
.cat-hero--photo .pro-hero__title { color: #fff; }
.cat-hero--photo .eyebrow { color: var(--ese-azur); }
.cat-hero--photo .cat-hero__back { color: var(--ese-gris-clair); }
.cat-hero--photo .cat-hero__back:hover { color: var(--ese-azur); }
.cat-hero--photo .shop-hero__lead { color: var(--ese-gris-dark-text); }
.cat-hero--photo .shop-stats { border-top-color: rgba(255, 255, 255, .16); }
.cat-hero--photo .shop-stats dt { color: var(--ese-gris-clair); }
.cat-hero--photo .shop-stats dd, .cat-hero--photo .shop-stats dd .amount { color: #fff; }
.cat-hero--photo .cat-hero__num { color: var(--ese-azur); opacity: .14; }
.cat-hero--photo .fan .cover { box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.cat-hero--photo .waves { opacity: .5; }
.cat-hero__waves { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none; }
.cat-stats dd, .cat-stats dd .amount { white-space: nowrap; }
@media (max-width: 600px) {
	.cat-stats { grid-template-columns: repeat(2, auto); gap: 20px 32px; }
	.cat-stats dd, .cat-stats dd .amount { font-size: 26px; }
}

/* ==========================================================================
   Fiche produit : plateau sombre photographique (miniature de la catégorie).
   ========================================================================== */
.product-stage { position: relative; isolation: isolate; overflow: hidden; background: var(--ese-sombre-creatif); color: #fff; }
.product-stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23fff'/%3E%3C/svg%3E");
	opacity: .07;
}
.product-stage .zone-bg { opacity: .2; background-position: center; }
.product-stage__waves { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; opacity: .5; pointer-events: none; }
.product-stage .product-hero { padding-top: 64px; padding-bottom: 104px; }

/* Visuel : halo azur et cercles concentriques derrière le livre. */
.product-stage .product-hero__visual {
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .1);
	overflow: hidden;
	isolation: isolate;
}
.product-stage .product-hero__visual::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 120%;
	aspect-ratio: 1;
	translate: -50% -50%;
	z-index: -1;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ccircle cx='200' cy='200' r='34' fill='none' stroke='%2359B7E8' stroke-opacity='.18'/%3E%3Ccircle cx='200' cy='200' r='68' fill='none' stroke='%2359B7E8' stroke-opacity='.18'/%3E%3Ccircle cx='200' cy='200' r='102' fill='none' stroke='%2359B7E8' stroke-opacity='.18'/%3E%3Ccircle cx='200' cy='200' r='136' fill='none' stroke='%2359B7E8' stroke-opacity='.18'/%3E%3Ccircle cx='200' cy='200' r='170' fill='none' stroke='%2359B7E8' stroke-opacity='.18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-stage .book3d .cover { box-shadow: 0 40px 70px rgba(0, 0, 0, .5); }

.product-stage .crumbs { color: var(--ese-gris-clair); }
.product-stage .crumbs a { color: var(--ese-gris-clair); }
.product-stage .crumbs a:hover, .product-stage .crumbs a:last-child { color: var(--ese-azur); }
.product-stage .product-hero__title { color: #fff; }
.product-stage .product-hero__by span { color: var(--ese-azur); }
.product-stage .price-tag--light .price-tag__amount { color: #fff; }
.product-stage .price-tag--light .price-tag__sub { color: var(--ese-gris-clair); }
.product-stage .product-hero__lead { color: var(--ese-gris-dark-text); }
.product-stage .pills li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--ese-gris-dark-text); }
.product-stage .pills svg { color: var(--ese-azur); }
.product-stage .pills__dot { background: var(--ese-azur); box-shadow: 0 0 0 3px rgba(89, 183, 232, .22); }
.product-stage .product-buy .single_add_to_cart_button { background: var(--ese-azur) !important; color: var(--ese-sombre-creatif) !important; }
.product-stage .product-buy .single_add_to_cart_button:hover { background: #7AC6EE !important; color: var(--ese-sombre-creatif) !important; box-shadow: 0 10px 26px rgba(89, 183, 232, .3); }
.product-stage .product-buy .added_to_cart { color: var(--ese-azur); }
.buy-option--stage { margin-top: 12px; max-width: 440px; }
.product-stage .share__label { color: var(--ese-gris-clair); }
.product-stage .share__btn { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.product-stage .share__btn:hover { background: var(--ese-azur); border-color: var(--ese-azur); color: var(--ese-sombre-creatif); }
.product-stage .share__copy.is-copied { background: rgba(89, 183, 232, .16); border-color: var(--ese-azur); color: var(--ese-azur); }

/* Titres liés : pas de carte orpheline sur deux colonnes. */
@media (min-width: 768px) and (max-width: 1199px) {
	.shop-catalog--related .shop-grid > :nth-child(3) { display: none; }
}
@media (max-width: 767px) {
	.product-stage .product-hero { padding-top: 32px; padding-bottom: 72px; }
}
.product-stage .product-hero__by { color: var(--ese-gris-clair); }
.cat-hero--photo .shop-search--hero { box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.search-hero--photo .zone-bg, .shop-search-hero .zone-bg { opacity: .14; }
