/*
Theme Name: Bezier Shop
Theme URI: https://shop.bezier.one
Author: Thierry Bezier
Description: Thème enfant de Twenty Twenty-Five pour la boutique de tirages et aluminiums de Thierry Bezier (variante B : bandeau noir, typo étroite).
Template: twentytwentyfive
Version: 1.0.9
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bezier-shop
*/

/* ---------- En-tête noir ---------- */
.bz-header a,
.bz-header .wp-block-site-title a {
	color: #FFFFFF;
	text-decoration: none;
}
.bz-header a:hover {
	color: #B5B5B5;
}
.bz-header .wc-block-mini-cart__button,
.bz-header .wc-block-customer-account a,
.bz-header .wc-block-customer-account svg {
	color: #FFFFFF;
	fill: currentColor;
}
.bz-header .wc-block-mini-cart__badge {
	background: #FFFFFF;
	color: #0E0E0E;
}
.bz-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #0E0E0E;
	color: #FFFFFF;
}

/* ---------- Filtres de collection ---------- */
.bz-filters a {
	display: inline-block;
	padding: 10px 0;
	color: #555555;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.bz-filters a:hover,
.bz-filters a:focus-visible {
	color: #121212;
	border-bottom-color: #121212;
}

.bz-filters .bz-sep {
	padding: 10px 0;
	color: #DDDDDD;
}

/* ---------- Grille produits ---------- */
.wc-block-product-template.is-flex-container,
.wp-block-woocommerce-product-template {
	row-gap: 40px;
	column-gap: 16px;
}
.wp-block-woocommerce-product-template .wc-block-components-product-image {
	background: #E4E0D9;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin-bottom: 12px;
}
.wp-block-woocommerce-product-template .wc-block-components-product-image a,
.wp-block-woocommerce-product-template .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wp-block-woocommerce-product-template .wp-block-post-title {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	margin-top: 0;
	margin-bottom: 4px;
}
.wp-block-woocommerce-product-template .wp-block-post-title a {
	text-decoration: none;
}
.wp-block-woocommerce-product-template .wc-block-components-product-price,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price {
	color: #555555;
	font-size: 14px;
}

/* ---------- Fiche produit ---------- */
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .flex-viewport {
	background: #E4E0D9;
}
.single-product .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px !important;
}
.single-product .flex-control-thumbs li {
	width: auto !important;
	margin: 0 !important;
	background: #E4E0D9;
}
form.cart table.variations {
	border: 0;
	margin-bottom: 8px;
}
form.cart table.variations th,
form.cart table.variations td {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
}
form.cart table.variations th.label {
	font-weight: 400;
	color: #555555;
	margin-bottom: 8px;
}
form.cart table.variations td.value {
	margin-bottom: 20px;
}
form.cart table.variations select,
.wp-block-add-to-cart-form form.cart table.variations select,
.woocommerce div.product form.cart .variations select {
	font: inherit;
	font-size: 15px !important;
	line-height: 1.4 !important;
	height: auto !important;
	min-height: 48px;
	min-width: 260px !important;
	max-width: 100%;
	padding: 12px 44px 12px 18px !important;
	border: 1px solid #B9B9B9;
	border-radius: 24px;
	background-color: #FFFFFF;
	background-position: right 18px center !important;
	color: #121212;
	cursor: pointer;
}
form.cart table.variations select:focus-visible {
	outline: 2px solid #121212;
	outline-offset: 2px;
}
form.cart .reset_variations {
	font-size: 14px;
	color: #555555;
}
form.cart .quantity input.qty {
	font: inherit;
	min-height: 52px;
	width: 72px;
	border: 1px solid #B9B9B9;
	text-align: center;
}
form.cart .single_add_to_cart_button,
form.cart button[type="submit"] {
	min-height: 52px;
	padding: 0 32px;
	border: 1px solid #121212;
	border-radius: 0;
	background: #121212;
	color: #FFFFFF;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
form.cart .single_add_to_cart_button:hover {
	background: #333333;
}
.bz-details details {
	border-bottom: 1px solid #DDDDDD;
	padding: 16px 0;
}
.bz-details summary {
	cursor: pointer;
	font-weight: 500;
}
.bz-details details > p {
	margin-top: 12px;
	color: #333333;
}

/* ---------- Pied de page noir ---------- */
.bz-footer a {
	color: #FFFFFF;
	text-decoration: none;
}
.bz-footer a:hover {
	color: #B5B5B5;
}

/* ---------- Bannière d'accueil (bloc bezier/hero) ---------- */
.wp-site-blocks > .bz-hero,
.bz-hero { margin-block-start: 0; }
.bz-hero {
	position: relative;
	background: #0E0E0E;
	color: #FFFFFF;
	overflow: hidden;
	touch-action: pan-y;
}
.bz-hero__track { position: relative; height: clamp(580px, calc(100svh - 110px), 980px); }
.bz-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.bz-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.bz-hero__slide::before {
	content: "";
	position: absolute;
	inset: -60px;
	background: var(--bz-bg) center / cover no-repeat;
	filter: blur(28px);
}
.bz-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(14, 14, 14, 0.88) 0%, rgba(14, 14, 14, 0.55) 42%, rgba(14, 14, 14, 0.25) 100%);
}
.bz-hero__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	height: 100%;
	max-width: 1520px;
	margin: 0 auto;
	padding: 28px 32px 78px;
	display: grid;
	grid-template-columns: minmax(250px, 0.75fr) minmax(0, 2.25fr);
	grid-template-rows: minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
.bz-hero__text > * { margin: 0; }
.bz-hero__kicker {
	font-family: var(--wp--preset--font-family--archivo-narrow);
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #E4E0D9;
}
.bz-hero__title {
	margin-top: 14px !important;
	font-family: var(--wp--preset--font-family--bodoni-moda);
	font-weight: 500;
	font-size: clamp(32px, 3.6vw, 58px);
	line-height: 1.04;
}
.bz-hero__title a { color: inherit; text-decoration: none; }
.bz-hero__price { margin-top: 18px !important; font-size: 16px; color: #DDDDDD; }
.bz-hero__cta { margin-top: 30px !important; display: flex; flex-wrap: wrap; gap: 12px; }
.bz-hero__btn {
	display: inline-block;
	padding: 14px 26px;
	background: #FFFFFF;
	color: #121212;
	border: 1px solid #FFFFFF;
	font-family: var(--wp--preset--font-family--archivo-narrow);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.bz-hero__btn:hover { background: #E4E0D9; border-color: #E4E0D9; color: #121212; }
.bz-hero__btn--ghost { background: transparent; color: #FFFFFF; }
.bz-hero__btn--ghost:hover { background: #FFFFFF; color: #121212; border-color: #FFFFFF; }
.bz-hero__btn:focus-visible,
.bz-hero__arrow:focus-visible,
.bz-hero__dot:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.bz-hero__art {
	align-self: stretch;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bz-hero__art img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.bz-hero__nav {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}
.bz-hero__dots { display: flex; gap: 10px; }
.bz-hero__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid #FFFFFF;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.bz-hero__dot[aria-current="true"] { background: #FFFFFF; }
.bz-hero__arrow {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: transparent;
	color: #FFFFFF;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.bz-hero__arrow:hover { border-color: #FFFFFF; }
@media (max-width: 781px) {
	.bz-hero__track { height: clamp(600px, calc(100svh - 90px), 860px); }
	.bz-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
		gap: 22px;
		padding: 16px 12px 78px;
	}
	.bz-hero__art { order: -1; }
	.bz-hero__text { padding: 0 8px; }
	.bz-hero__slide::after { background: linear-gradient(0deg, rgba(14, 14, 14, 0.9) 0%, rgba(14, 14, 14, 0.4) 60%, rgba(14, 14, 14, 0.25) 100%); }
	.bz-hero__title { font-size: 34px; }
	.bz-hero__cta { margin-top: 20px !important; }
	.bz-hero__btn { padding: 12px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.bz-hero__slide, .bz-hero__slide.is-active { transition: none; }
}

/* ---------- Liens légaux du pied de page ---------- */
.bz-footer .bz-legal a {
	color: #B5B5B5;
	text-decoration: none;
}
.bz-footer .bz-legal a:hover {
	color: #FFFFFF;
	text-decoration: underline;
}
