/*
Theme Name: Arte Del Fai
Theme URI: https://artedelfai.com/
Author: Arte Del Fai
Author URI: https://artedelfai.com/
Description: Thème bloc sur mesure pour Arte Del Fai, boutique belge de cravates et de boutons de manchette. Classique, épuré, mobile first, polices hébergées localement.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artedelfai
Tags: e-commerce, full-site-editing, block-patterns, one-column, custom-colors, custom-menu, accessibility-ready
*/

/*
 * Ce fichier ne contient QUE ce que theme.json ne sait pas exprimer.
 * Aucune famille de police n'est déclarée ici : elles vivent uniquement dans theme.json
 * (slugs « heading » et « body »), pour qu'un changement se fasse en un seul endroit.
 */

/* ---------------------------------------------------------------- *
 * 1. Accessibilité : lien d'évitement et focus visible
 * ---------------------------------------------------------------- */

.adf-skip-link {
	position: absolute;
	top: -100px;
	left: var(--wp--preset--spacing--20, 1rem);
	z-index: 100000;
	padding: 0.75em 1.25em;
	background: var(--wp--preset--color--primary, #004c33);
	color: var(--wp--preset--color--white, #fff);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 2px 2px;
	transition: top 0.15s ease-in-out;
}

.adf-skip-link:focus {
	top: 0;
	color: var(--wp--preset--color--white, #fff);
	outline: 2px solid var(--wp--preset--color--accent, #b08d57);
	outline-offset: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #004c33);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Contour clair sur fond vert (héros, pied de page). */
.has-primary-background-color :where(a, button):focus-visible,
.wp-block-cover :where(a, button):focus-visible,
footer.wp-block-template-part :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--white, #fff);
}

/* ---------------------------------------------------------------- *
 * 2. En-tête
 * ---------------------------------------------------------------- */

.adf-header {
	position: relative;
	z-index: 20;
}

/* Le bloc Site Logo ne rend rien tant qu'aucun logo n'est déposé :
   on neutralise l'espace résiduel pour que le titre texte serve de repli. */
.adf-header .wp-block-site-logo:not(:has(img)) {
	display: none;
}

.adf-header .wp-block-site-logo img {
	max-height: 56px;
	width: auto;
}

/* Recherche produit discrète de l'en-tête. */
.adf-header-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	padding: 0.5em 0.75em;
	background: var(--wp--preset--color--base, #faf8f5);
	min-width: 0;
}

.adf-header-search .wp-block-search__button {
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--primary, #004c33);
	padding: 0.4em 0.6em;
}

.adf-header-search .wp-block-search__button svg {
	fill: currentColor;
}

/* Mini-panier : bouton sobre, pastille de compteur dorée. */
.adf-header .wp-block-woocommerce-mini-cart .wc-block-mini-cart__button {
	color: var(--wp--preset--color--primary, #004c33);
	padding: 0.4em 0.5em;
}

.adf-header .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--accent-dark, #8a6a3a);
	color: #fff;
	font-weight: 600;
}

/* Navigation mobile : le sous-menu déroulant reste lisible. */
.adf-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--white, #fff);
	padding-top: var(--wp--preset--spacing--40, 3rem);
}

.adf-header .wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--contrast, #23282a);
}

/* ---------------------------------------------------------------- *
 * 3. Grilles produits
 * ---------------------------------------------------------------- */

.wc-block-product-template__responsive .wp-block-woocommerce-product-image,
.wp-block-woocommerce-product-collection .wc-block-components-product-image {
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	overflow: hidden;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img {
	transition: opacity 0.25s ease, transform 0.4s ease;
	display: block;
	width: 100%;
	height: auto;
}

/* Boutons de manchette : léger zoom au survol, sans voile. */
.wp-block-woocommerce-product-collection .adf-vignette--zoom {
	overflow: hidden;
}
.wp-block-woocommerce-product-collection .adf-vignette--zoom img {
	transition: transform 0.4s ease;
}
/* Le survol s'applique à la carte entière : image, titre et bouton réagissent
   ensemble, qu'on survole l'image ou le titre. */
@media (hover: hover) {
	.wp-block-woocommerce-product-collection li.wc-block-product:hover .adf-vignette--zoom img,
	.wp-block-woocommerce-product-collection li.wc-block-product:focus-within .adf-vignette--zoom img {
		transform: scale(1.08);
	}
	.wp-block-woocommerce-product-collection li.wc-block-product:hover .adf-vignette--glissement img.adf-vignette-survol,
	.wp-block-woocommerce-product-collection li.wc-block-product:focus-within .adf-vignette--glissement img.adf-vignette-survol {
		opacity: 1;
	}
	.wp-block-woocommerce-product-collection li.wc-block-product:hover .wp-block-post-title a,
	.wp-block-woocommerce-product-collection li.wc-block-product:focus-within .wp-block-post-title a {
		color: var(--wp--preset--color--primary, #004c33);
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
}

/* Titre de vignette : Inter 15 px anthracite, deux lignes au plus. */
.wp-block-woocommerce-product-collection .wc-block-product-template li .wp-block-post-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--contrast, #23282a);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
	margin-block: 0.75rem 0.25rem;
}

.wp-block-woocommerce-product-collection .wc-block-product-template li .wp-block-post-title a {
	color: var(--wp--preset--color--contrast, #23282a);
	text-decoration: none;
}

.wp-block-woocommerce-product-collection .wc-block-product-template li .wp-block-post-title a:hover,
.wp-block-woocommerce-product-collection .wc-block-product-template li .wp-block-post-title a:focus {
	color: var(--wp--preset--color--primary, #004c33);
	text-decoration: underline;
}

/* Bouton de grille : contour vert sur fond blanc, plein au survol.
   Le vert plein est réservé à l'action principale d'une page (fiche, panier). */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button .wp-block-button__link,
.wp-block-woocommerce-product-collection .wc-block-components-product-button .wp-block-button__link,
.adf-bouton-voir .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid var(--wp--preset--color--primary, #004c33);
	color: var(--wp--preset--color--primary, #004c33);
	border-radius: 2px;
	text-decoration: none;
	white-space: nowrap;
	padding: 0.55em 1em;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-button .wp-block-button__link:hover,
.wp-block-woocommerce-product-collection .wc-block-components-product-button .wp-block-button__link:focus,
.adf-bouton-voir .wp-block-button__link:hover,
.adf-bouton-voir .wp-block-button__link:focus {
	background: var(--wp--preset--color--primary, #004c33);
	border-color: var(--wp--preset--color--primary, #004c33);
	color: var(--wp--preset--color--white, #fff);
}

.adf-bouton-voir {
	display: flex;
	margin: 0;
}

/* ---------------------------------------------------------------- *
 * 4. Boutons personnalisés : prix masqués dans les GRILLES uniquement
 *    (reproduit le CSS additionnel de l'ancien site, post 98)
 *    - page 493 « Boutons personnalisés » : classe adf-prix-masques sur les collections
 *    - archive de la catégorie « boutons-de-manchettes-en-relief » : classe de corps
 *    La fiche produit conserve prix et bouton d'achat.
 * ---------------------------------------------------------------- */

.adf-prix-masques .wp-block-woocommerce-product-price,
.adf-prix-masques .wc-block-components-product-price,
.adf-prix-masques .price,
body.adf-masquer-prix .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price,
body.adf-masquer-prix .wp-block-woocommerce-product-collection .wc-block-components-product-price,
body.adf-masquer-prix .wc-block-grid__product-price {
	display: none !important;
}

/* ---------------------------------------------------------------- *
 * 5. Fiche produit
 * ---------------------------------------------------------------- */

.wp-block-woocommerce-product-image-gallery img {
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	background: #fff;
}

.woocommerce div.product form.cart .button,
.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button {
	background: var(--wp--preset--color--primary, #004c33);
	color: #fff;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 600;
	padding: 0.9em 2em;
}

.woocommerce div.product form.cart .button:hover,
.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button:hover {
	background: var(--wp--preset--color--primary-dark, #00311f);
	color: #fff;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.wp-block-woocommerce-product-details .wc-tabs li.active a {
	color: var(--wp--preset--color--primary, #004c33);
	border-bottom: 2px solid var(--wp--preset--color--primary, #004c33);
}

/* ---------------------------------------------------------------- *
 * 6. Formulaires (WooCommerce, Contact Form 7, recherche)
 * ---------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea,
.wc-block-components-text-input input,
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea {
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--contrast, #23282a);
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	padding: 0.7em 0.85em;
	max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--wp--preset--color--primary, #004c33);
}

.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--primary, #004c33);
	color: #fff;
	border: 1px solid var(--wp--preset--color--primary, #004c33);
	border-radius: 2px;
	padding: 0.85em 1.9em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--primary-dark, #00311f);
	border-color: var(--wp--preset--color--primary-dark, #00311f);
}

.wpcf7 label {
	display: block;
	font-weight: 500;
	margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- *
 * 7. Panier, commande, notices
 * ---------------------------------------------------------------- */

.wc-block-components-button:not(.is-link),
.woocommerce .button.alt,
.woocommerce a.button.checkout-button {
	background: var(--wp--preset--color--primary, #004c33);
	color: #fff;
	border-radius: 2px;
}

.wc-block-components-button:not(.is-link):hover,
.woocommerce .button.alt:hover {
	background: var(--wp--preset--color--primary-dark, #00311f);
	color: #fff;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
	border-left-color: var(--wp--preset--color--primary, #004c33);
}

/* ---------------------------------------------------------------- *
 * 8. Cartes « univers » et réassurance (patterns)
 * ---------------------------------------------------------------- */

.adf-carte-univers {
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.adf-carte-univers:hover,
.adf-carte-univers:focus-within {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lifted, 0 16px 40px rgba(35, 40, 42, 0.1));
}

.adf-carte-univers img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.adf-reassurance {
	border-top: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-bottom: 1px solid var(--wp--preset--color--border, #e4dfd7);
}

/* Filet doré discret sous les titres de section de l'accueil. */
.adf-titre-section::after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin: 0.6em auto 0;
	background: var(--wp--preset--color--accent, #b08d57);
}

/* ---------------------------------------------------------------- *
 * 9. Pied de page
 * ---------------------------------------------------------------- */

.adf-footer a {
	color: inherit;
}

.adf-footer a:hover,
.adf-footer a:focus {
	color: var(--wp--preset--color--white, #fff);
}

/* ---------------------------------------------------------------- *
 * 10. Divers
 * ---------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

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

/* Lien « voir toute la catégorie » sous les grilles d'exemples (page 493). */
.adf-voir-tout {
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.adf-voir-tout a {
	display: inline-block;
	padding: 0.7em 1.6em;
	border: 1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.adf-voir-tout a:hover,
.adf-voir-tout a:focus-visible {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}



/* -----------------------------------------------------------------
 * 8. Boutique : colonne de filtres + grille
 * ----------------------------------------------------------------- */

/* Deux colonnes dès 600 px : c'est le point de bascule du bloc
   « Filtres de produits » de WooCommerce (au-dessous, il devient un tiroir).
   Sans cela, le cœur empile les colonnes jusqu'à 781 px et la colonne de
   filtres s'afficherait dépliée en pleine largeur au-dessus de la grille. */
@media (min-width: 600px) {
	.adf-boutique__colonnes {
		flex-wrap: nowrap !important;
	}

	.adf-boutique__colonnes > .adf-boutique__filtres {
		flex-basis: 260px !important;
		flex-grow: 0;
		flex-shrink: 0;
	}

	.adf-boutique__colonnes > .adf-boutique__grille {
		flex-basis: 0;
		flex-grow: 1;
		min-width: 0;
	}

	/* Colonne collante mais autonome : si elle dépasse la hauteur de l'écran,
	   elle défile à l'intérieur, on atteint donc toujours les derniers filtres. */
	.adf-boutique__filtres .wc-block-product-filters {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
		width: 100%;
		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 2rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-right: 0.5rem;
		scrollbar-width: thin;
		scrollbar-color: var(--wp--preset--color--border, #ddd) transparent;
	}
}

/* Mobile : le bouton « Filtrer » du tiroir, aligné avec le tri. */
@media (max-width: 599px) {
	.adf-boutique__filtres {
		margin-bottom: 0;
	}

	.adf-boutique__filtres .wc-block-product-filters__open-overlay {
		border: 1px solid var(--wp--preset--color--border, #e4dfd7) !important;
		border-radius: 2px;
		padding: 0.6em 1em !important;
		width: 100%;
		justify-content: center;
		font-size: var(--wp--preset--font-size--small);
	}

	.adf-boutique__filtres .wc-block-product-filters__overlay-dialog {
		background: var(--wp--preset--color--base, #faf8f5);
	}
}

.adf-filtre-titre {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.6em;
	color: var(--wp--preset--color--contrast);
}

.adf-boutique__filtres .wp-block-woocommerce-product-filter-attribute,
.adf-boutique__filtres .wp-block-woocommerce-product-filter-status,
.adf-boutique__filtres .wp-block-woocommerce-product-filter-price,
.adf-boutique__filtres .adf-filtre-type {
	border-top: 1px solid var(--wp--preset--color--border, #e4dfd7);
	padding-top: var(--wp--preset--spacing--20, 1rem);
}


/* Filtre « Type » : trois liens, pas de case à cocher (voir RAPPORT-boutique). */
.adf-filtre-type__liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.adf-filtre-type__lien {
	display: block;
	padding: 0.25em 0;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}

.adf-filtre-type__lien:hover,
.adf-filtre-type__lien:focus-visible {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.adf-filtre-type__lien.is-active {
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

.adf-filtre-type__lien.is-reset {
	color: var(--wp--preset--color--muted);
	font-style: italic;
}

/* Barre des filtres actifs (chips). */
.adf-chips {
	width: 100%;
}

.adf-chips .wc-block-product-filters__content {
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.adf-chips .wp-block-woocommerce-product-filter-active:empty {
	display: none;
}

.adf-chips .wc-block-product-filter-removable-chips__items {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
}

.adf-chips .wc-block-product-filter-removable-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 999px;
	padding: 0.15em 0.4em 0.15em 0.8em;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--primary-light, #eef3f0);
}

.adf-chips .wc-block-product-filter-removable-chips__remove {
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 0;
	padding: 0;
	color: inherit;
}

.adf-chips .wc-block-product-filter-removable-chips__remove-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.adf-chips .adf-lien-effacer,
.adf-chips .wc-block-product-filter-clear-button .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
	padding: 0.3em 0.9em;
}

/* En-tête de grille : compteur et tri. */
.adf-boutique__barre .adf-compteur {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.adf-boutique__barre .woocommerce-ordering select {
	font-size: var(--wp--preset--font-size--small);
	padding: 0.35em 2em 0.35em 0.6em;
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	background-color: var(--wp--preset--color--white, #fff);
}

.adf-boutique__titre {
	margin-bottom: 0;
}

.adf-boutique__chapo {
	color: var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--40);
	max-width: 70ch;
}

/* Vignettes : deuxième image de galerie au survol, badge « à personnaliser ». */
.adf-vignette {
	position: relative;
}

.wp-block-woocommerce-product-collection .adf-vignette img.adf-vignette-survol {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}



.adf-vignette .adf-badge-perso {
	position: absolute;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 2;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--accent-dark, #8a6a3a);
	border: 0;
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
	line-height: 1.6;
	padding: 0.15em 0.55em;
	pointer-events: none;
}

/* Recherche par nom de famille. */
.adf-recherche-famille {
	background: var(--wp--preset--color--primary-light, #eef3f0);
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	padding: var(--wp--preset--spacing--30, 1.5rem);
	margin: var(--wp--preset--spacing--20, 1rem) 0;
}

.adf-recherche-famille__label {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.5em;
}

.adf-recherche-famille__champs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.adf-recherche-famille__input {
	flex: 1 1 16rem;
	min-width: 0;
	padding: 0.65em 0.8em;
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	background: var(--wp--preset--color--white, #fff);
	font-size: 1rem;
}

.adf-recherche-famille__bouton {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white, #fff);
	border: 0;
	border-radius: 2px;
	padding: 0.65em 1.6em;
	cursor: pointer;
}

.adf-recherche-famille__bouton:hover,
.adf-recherche-famille__bouton:focus-visible {
	background: var(--wp--preset--color--primary-dark, #00311f);
}

.adf-recherche-famille__aide {
	margin: 0.7em 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* Curseur de prix : la colonne fait 260 px, on empile le curseur et les deux
   champs plutôt que de les mettre en ligne (le rendu « inline » déborde). */
.adf-boutique__filtres .wc-block-product-filter-price-slider__content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.adf-boutique__filtres .wc-block-product-filter-price-slider__range {
	flex: 1 0 100%;
	order: -1;
}

.adf-boutique__filtres .wc-block-product-filter-price-slider__left,
.adf-boutique__filtres .wc-block-product-filter-price-slider__right {
	flex: 1 1 0;
	min-width: 0;
}

.adf-boutique__filtres .wc-block-product-filter-price-slider__right {
	text-align: right;
}

.adf-boutique__filtres .wc-block-product-filter-price-slider input[type="text"] {
	width: 100%;
	max-width: 7em;
	padding: 0.35em 0.5em;
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--white, #fff);
}

.adf-boutique__filtres .wc-block-product-filter-price-slider__right input[type="text"] {
	margin-left: auto;
}


/* Chips : la puce et le bouton « Tout effacer » sur la même ligne. */
.adf-chips .wp-block-woocommerce-product-filter-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
}

.adf-chips .wp-block-woocommerce-product-filter-active > * {
	margin: 0;
}

.adf-chips .wc-block-product-filter-clear-button .wp-block-buttons {
	margin: 0;
}


/* ================================================================ *
 * 11. Corrections issues de la revue UI (theme/REVUE-UI.md)
 * ================================================================ */

/* ---- 11.1 En-tête : une barre, trois blocs ---------------------- */

.adf-header__barre {
	gap: 1.25rem;
	min-height: 64px;
}

.adf-header__nav .wp-block-navigation__container {
	flex-wrap: nowrap;
}

.adf-header__nav {
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
}

.adf-header__actions {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.adf-header .wp-block-site-title {
	white-space: nowrap;
	font-size: 1.625rem;
	letter-spacing: 0.05em;
}

/* Le champ n'est plus tronqué : 200 px, placeholder entier. */
.adf-recherche-entete .wp-block-search__input {
	width: 190px;
	min-width: 0;
	box-sizing: border-box;
	font-size: var(--wp--preset--font-size--small);
	text-overflow: ellipsis;
}

/* La loupe ne sert qu'en mobile : sur ordinateur, le champ est ouvert. */
.adf-loupe {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--primary, #004c33);
	cursor: pointer;
}

/* Mini-panier : largeur réservée, montant masqué quand le panier est vide. */
.adf-header .wp-block-woocommerce-mini-cart,
.adf-header .adf-mini-panier-statique {
	min-width: 44px;
	display: flex;
	justify-content: flex-end;
}

.adf-header .wc-block-mini-cart__button:has(.wc-block-mini-cart__badge[hidden]) .wc-block-mini-cart__amount {
	display: none;
}

.adf-header .adf-mini-panier-statique .wc-block-mini-cart__button {
	color: var(--wp--preset--color--primary, #004c33);
	padding: 0.4em 0.5em;
	text-decoration: none;
	background: none;
	border: 0;
}

.adf-header .adf-mini-panier-statique .wc-block-mini-cart__icon {
	width: 24px;
	height: 24px;
}

/* ---- 11.2 Héros -------------------------------------------------- */

.adf-hero {
	min-height: clamp(480px, 62vh, 680px) !important;
}

.adf-hero .wp-block-cover__image-background {
	object-position: 70% 50%;
}

/* Le voile est ramené à 40 % pour ne plus salir la photo ; un dégradé discret
   côté gauche garantit malgré tout le contraste du titre et des boutons. */
.adf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(0, 49, 31, 0.55) 0%,
		rgba(0, 49, 31, 0.3) 45%,
		rgba(0, 49, 31, 0) 78%
	);
}

.adf-hero > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.adf-hero__texte {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.adf-hero h1 {
	text-transform: none;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.1;
}

/* Second appel à l'action : contour blanc sur l'image. */
.adf-bouton-contour-clair .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--white, #fff);
}

.adf-bouton-contour-clair .wp-block-button__link:hover,
.adf-bouton-contour-clair .wp-block-button__link:focus {
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--primary, #004c33);
	border-color: var(--wp--preset--color--white, #fff);
}

/* ---- 11.3 Cartes univers ---------------------------------------- */

.adf-carte-univers img {
	aspect-ratio: 1 / 1;
}

.adf-carte-univers h3 a {
	text-decoration: none;
}

.adf-carte-univers h3 a:hover,
.adf-carte-univers h3 a:focus-visible {
	text-decoration: underline;
}

.adf-carte-univers__lien {
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	letter-spacing: 0.03em;
}

.adf-carte-univers__lien a {
	text-decoration: none;
}

.adf-carte-univers__lien a:hover,
.adf-carte-univers__lien a:focus-visible {
	text-decoration: underline;
}

/* ---- 11.4 Titres de section : filet doré, alignés sur la grille --- */

.adf-titre-section.is-style-adf-gauche::after,
.adf-titre-section-gauche::after {
	margin-left: 0;
	margin-right: auto;
}

.wp-block-post-content .wp-block-heading.adf-titre-section-gauche,
.adf-titre-section-gauche {
	font-size: clamp(1.625rem, 2.6vw, 1.75rem);
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--20);
}

.adf-titre-section-gauche::after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin: 0.5em 0 0;
	background: var(--wp--preset--color--accent, #b08d57);
}

/* ---- 11.5 Grilles produit : images à ratio constant --------------- */

.wp-block-woocommerce-product-collection .wc-block-components-product-image {
	aspect-ratio: 1 / 1;
	display: block;
	position: relative;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image a,
.wp-block-woocommerce-product-collection .wc-block-components-product-image > img {
	display: block;
	width: 100%;
	height: 100%;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Prix de vignette : Inter 15 px anthracite (le vert reste au bouton). */
.wp-block-woocommerce-product-collection .wc-block-components-product-price,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--contrast, #23282a);
}

/* ---- 11.6 Produits épuisés --------------------------------------- */

.adf-vignette-epuisee img {
	opacity: 0.6;
}

.adf-epuise-mention {
	margin: 0;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted, #5c6360);
}

/* ---- 11.7 Libellé court des boutons de grille en mobile ---------- */

.adf-ajouter-court {
	display: none;
}

/* ---- 11.8 Colonne de filtres ------------------------------------- */

/* Un seul type de séparateur : un filet au-dessus de chaque titre. */
.adf-boutique__filtres .wc-block-product-filter-checkbox-list,
.adf-boutique__filtres .wc-block-product-filter-checkbox-list__list {
	border: 0;
	padding: 0;
	margin: 0;
	list-style: none;
	background: none;
}

.adf-boutique__filtres .wp-block-woocommerce-product-filter-attribute,
.adf-boutique__filtres .wp-block-woocommerce-product-filter-status,
.adf-boutique__filtres .wp-block-woocommerce-product-filter-price,
.adf-boutique__filtres .adf-filtre-type {
	border-top: 1px solid var(--wp--preset--color--border, #e4dfd7);
	padding-top: var(--wp--preset--spacing--20, 1rem);
	margin-bottom: 0;
}

/* Un seul style de titre : Inter 12 px capitales espacées, anthracite. */
.adf-boutique__filtres .adf-filtre-titre,
.adf-filtre-type .adf-filtre-titre {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast, #23282a);
	margin: 0 0 0.7em;
}

.adf-boutique__filtres .wc-block-product-filter-checkbox-list__item {
	padding: 0.2em 0;
	gap: 0.55rem;
}

/* Bug WooCommerce 11.1 : la règle `display:contents` du cœur vise
   `.wc-block-product-filter-checkbox-list fieldset`, or le fieldset est rendu
   sous `.wp-block-woocommerce-product-filter-checkbox-list`. Le cadre gris
   autour de chaque liste est donc la bordure par défaut du navigateur. */
.wc-block-product-filters fieldset,
.wp-block-woocommerce-product-filter-checkbox-list fieldset {
	display: contents;
	border: 0;
	margin: 0;
	padding: 0;
}

/* Cases : 18 px, blanches à bord fin, vert plein une fois cochées
   (équivalent d'un `accent-color` vert, que le cœur neutralise en
   `appearance: none`). */
.adf-boutique__filtres,
.wc-block-product-filters__overlay-content {
	accent-color: var(--wp--preset--color--primary, #004c33);
	--wc-product-filter-checkbox-list-option-element: var(--wp--preset--color--white, #fff);
	--wc-product-filter-checkbox-list-option-element-border: var(--wp--preset--color--border, #e4dfd7);
	--wc-product-filter-checkbox-list-option-element-selected: var(--wp--preset--color--white, #fff);
	--wc-product-filter-price-slider: var(--wp--preset--color--primary, #004c33);
	--wc-product-filter-price-slider-handle: var(--wp--preset--color--white, #fff);
	--wc-product-filter-price-slider-handle-border: var(--wp--preset--color--primary, #004c33);
}

.wc-block-product-filters input[type="checkbox"].wc-block-product-filter-checkbox-list__input {
	width: 18px;
	height: 18px;
	border-radius: 2px;
}

.wc-block-product-filters input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked {
	background: var(--wp--preset--color--primary, #004c33);
	border-color: var(--wp--preset--color--primary, #004c33);
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__mark {
	width: 18px;
	height: 18px;
}

/* Le carré gris que le cœur pose derrière la case n'a plus lieu d'être. */
.wc-block-product-filters .wc-block-product-filter-checkbox-list__input-wrapper::before {
	display: none;
}

.adf-boutique__filtres .wc-block-product-filter-checkbox-list__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast, #23282a);
}

.adf-boutique__filtres .wc-block-product-filter-checkbox-list__text-count {
	color: var(--wp--preset--color--muted, #5c6360);
}

.adf-filtre-aide {
	margin: -0.35em 0 0.6em;
	color: var(--wp--preset--color--muted, #5c6360);
}

/* Curseur de prix : tout reste dans les 260 px de la colonne. */
.adf-boutique__filtres .wc-block-product-filter-price-slider,
.adf-boutique__filtres .wc-block-product-filter-price-slider * {
	box-sizing: border-box;
}

.adf-boutique__filtres .wc-block-product-filter-price-slider__left,
.adf-boutique__filtres .wc-block-product-filter-price-slider__right {
	flex: 1 1 calc(50% - 0.25rem);
	max-width: calc(50% - 0.25rem);
	min-width: 0;
}

.adf-boutique__filtres .wc-block-product-filter-price-slider input[type="text"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* « Type » rendu comme les autres groupes. */
.adf-filtre-type__lien {
	padding: 0.2em 0;
	font-size: var(--wp--preset--font-size--small);
}

.adf-filtre-type__lien.is-active {
	font-weight: 600;
}

/* Chips : la puce et « Tout effacer » sur la même ligne, même hauteur. */
.adf-chips .wc-block-product-filter-removable-chips__item {
	min-height: 28px;
	padding: 0.1em 0.35em 0.1em 0.75em;
	border-radius: 999px;
	line-height: 1.4;
}

.adf-chips .adf-lien-effacer,
.adf-chips .wc-block-product-filter-clear-button .wp-block-button__link {
	background: none;
	border: 0;
	padding: 0 0.25em;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--muted, #5c6360);
	text-transform: none;
	letter-spacing: 0.01em;
	font-weight: 500;
	text-decoration: underline;
}

.adf-chips .wc-block-product-filter-clear-button .wp-block-button__link:hover,
.adf-chips .wc-block-product-filter-clear-button .wp-block-button__link:focus {
	background: none;
	color: var(--wp--preset--color--primary, #004c33);
}

/* ---- 11.9 Barre de la boutique : respiration sous le H1 ---------- */

.adf-boutique__titre {
	margin-top: 0.35em;
	margin-bottom: 0;
}

.adf-boutique__colonnes {
	margin-top: var(--wp--preset--spacing--30) !important;
}

.adf-boutique__barre .woocommerce-ordering select {
	height: 36px;
	padding: 0 2.2em 0 0.7em;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235c6360'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5em center;
	background-size: 18px 18px;
}

/* Bloc « nom de famille » : même gabarit partout (800 px centrés). */
.adf-recherche-famille {
	max-width: 800px;
	margin-inline: auto;
}

/* ---- 11.10 Pastilles d'ancrage des pages catégorie --------------- */

.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--primary, #004c33);
	color: var(--wp--preset--color--primary, #004c33);
	background: transparent;
}

.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: var(--wp--preset--color--primary, #004c33);
	color: var(--wp--preset--color--white, #fff);
}

/* ---- 11.11 Fiche produit ----------------------------------------- */

/* Galerie : grande image sur toute la largeur de la colonne, vignettes dessous. */
.adf-fiche__galerie .wp-block-woocommerce-product-gallery {
	display: block;
}

.adf-fiche__galerie .wp-block-woocommerce-product-gallery-large-image,
.adf-fiche__galerie .wc-block-product-gallery-large-image {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
}

.adf-fiche__galerie .wc-block-product-gallery-large-image img,
.adf-fiche__galerie .wp-block-woocommerce-product-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--wp--preset--color--white, #fff);
}

.adf-fiche__galerie .wp-block-woocommerce-product-gallery-thumbnails,
.adf-fiche__galerie .wc-block-product-gallery-thumbnails {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
}

.adf-fiche__galerie .wc-block-product-gallery-thumbnails__thumbnail {
	width: 68px;
	height: 68px;
	flex: 0 0 68px;
}

.adf-fiche__galerie .wc-block-product-gallery-thumbnails__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
}

.adf-fiche__galerie .wc-block-product-gallery-thumbnails__thumbnail--is-active img,
.adf-fiche__galerie .wc-block-product-gallery-thumbnails__thumbnail.is-active img {
	border: 2px solid var(--wp--preset--color--primary, #004c33);
}

/* Prix de la fiche : anthracite, l'attention va au bouton. */
.adf-fiche__achat .wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--contrast, #23282a);
	font-size: 1.375rem;
}

/* Quantité et bouton d'achat alignés à 48 px. */
.adf-fiche__achat .quantity input.qty,
.adf-fiche__achat .wc-block-components-quantity-selector input {
	height: 48px;
	box-sizing: border-box;
	padding: 0 0.5em;
	text-align: center;
	width: 64px;
}

.adf-fiche__achat form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
}

.adf-fiche__achat form.cart .button,
.adf-fiche__achat .single_add_to_cart_button {
	height: 48px;
	box-sizing: border-box;
	padding: 0 2em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Caractéristiques : liste compacte. */
.adf-caract {
	margin: 0;
	display: grid;
	gap: 0.2rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
}

.adf-caract__ligne {
	display: flex;
	gap: 0.5rem;
}

.adf-caract__cle {
	flex: 0 0 7.5rem;
	color: var(--wp--preset--color--muted, #5c6360);
	margin: 0;
}

.adf-caract__valeur {
	margin: 0;
	color: var(--wp--preset--color--contrast, #23282a);
}

/* Réassurance de la colonne d'achat. */
.adf-reassurance-produit {
	list-style: none;
	margin: 0;
	padding: 0.85rem 0 0;
	border-top: 1px solid var(--wp--preset--color--border, #e4dfd7);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #5c6360);
	display: grid;
	gap: 0.3rem;
}

.adf-reassurance-produit li {
	padding-left: 1.1rem;
	position: relative;
}

.adf-reassurance-produit li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent, #b08d57);
}

/* Accordéon sobre, à la place des onglets WooCommerce. */
.adf-accordeon {
	border-top: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-bottom: 1px solid var(--wp--preset--color--border, #e4dfd7);
	padding: 0.25rem 0;
}

.adf-accordeon__titre {
	cursor: pointer;
	list-style: none;
	padding: 0.9rem 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast, #23282a);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.adf-accordeon__titre::-webkit-details-marker {
	display: none;
}

.adf-accordeon__titre::after {
	content: "+";
	font-weight: 400;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--wp--preset--color--muted, #5c6360);
}

.adf-accordeon[open] .adf-accordeon__titre::after {
	content: "–";
}

.adf-accordeon__corps {
	padding-bottom: 1rem;
}

.adf-accordeon__corps p {
	margin-top: 0;
}

/* ---- 11.12 Panier vide ------------------------------------------- */

.wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before {
	display: none;
}

.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots {
	display: none;
}

/* ---- 11.13 Formulaires (contact, recherche) ---------------------- */

input,
select,
textarea,
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea {
	box-sizing: border-box;
	max-width: 100%;
}

.wpcf7 input:not([type="submit"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	display: block;
}

.wpcf7 p {
	max-width: 560px;
}

.adf-note-formulaire {
	margin-top: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted, #5c6360);
}

/* ---- 11.14 Pied de page ------------------------------------------ */

.adf-footer__titre {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin-bottom: 0.6em;
}

/* ---- 11.15 Mobile ------------------------------------------------ */

@media (max-width: 781px) {
	.adf-header__enveloppe {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.adf-header__barre {
		flex-wrap: nowrap !important;
		min-height: 64px;
		gap: 0.5rem;
	}

	.adf-header__nav {
		order: 1;
		flex: 0 0 auto;
	}

	.adf-header__marque {
		order: 2;
		flex: 1 1 auto;
		justify-content: center;
		min-width: 0;
	}

	.adf-header__actions {
		order: 3;
		flex: 0 0 auto;
	}

	.adf-header .wp-block-site-title {
		font-size: 1.125rem;
		letter-spacing: 0.04em;
	}

	.adf-loupe {
		display: inline-flex;
	}

	/* Le champ est replié tant que la loupe n'a pas été touchée. */
	.adf-header .adf-recherche-entete {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 30;
		padding: 0.6rem var(--wp--preset--spacing--30);
		background: var(--wp--preset--color--white, #fff);
		border-bottom: 1px solid var(--wp--preset--color--border, #e4dfd7);
	}

	.adf-header.adf-recherche-ouverte .adf-recherche-entete {
		display: block;
	}

	.adf-header .adf-recherche-entete .wp-block-search__input {
		width: 100%;
	}

	.adf-bandeau-promo p {
		font-size: 0.75rem;
	}

	/* Grilles : 2 colonnes, gouttière de 12 px. */
	.wc-block-product-template.is-flex-container,
	.wc-block-product-template__responsive {
		gap: 12px !important;
		grid-gap: 12px !important;
	}

	.wc-block-product-template__responsive {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.wc-block-product-template.is-flex-container > li {
		width: calc(50% - 6px) !important;
	}

	/* Bouton court, sur une seule ligne. */
	.wp-block-woocommerce-product-collection .wc-block-components-product-button .wp-block-button__link {
		white-space: nowrap;
		padding: 0.7em 0.6em;
		font-size: 0.8125rem;
		letter-spacing: 0.04em;
	}

	.wc-block-components-product-button__button > span:not(.adf-ajouter-court) {
		display: none;
	}

	.adf-ajouter-court {
		display: inline;
	}

	/* Fiche produit : image jamais tronquée. */
	.adf-fiche__colonnes {
		gap: var(--wp--preset--spacing--20);
	}

	.adf-fiche__galerie .wc-block-product-gallery-large-image img {
		max-width: 100%;
	}

	/* Fil d'Ariane sur une ligne, déroulant si besoin. */
	.wp-block-woocommerce-breadcrumbs {
		font-size: 0.75rem;
	}
}

@media (max-width: 599px) {
	/* Le tiroir de filtres réutilise les mêmes réglages que la colonne. */
	.wc-block-product-filters__overlay-dialog .wc-block-product-filter-checkbox-list {
		border: 0;
		padding: 0;
	}
}

/* ================================================================ *
 * 12. Passe 2 — régressions et arbitrages (theme/REVUE-UI-2.md)
 * ================================================================ */

/* ---- 12.1 En-tête : une seule ligne de 1024 à 1440 px ------------ */

/* Les libellés ne se cassent jamais : c'est le nombre d'entrées qui doit
   tenir, pas les mots. Les espacements se resserrent avec la largeur. */
.adf-header__nav .wp-block-navigation-item__content,
.adf-header__nav .wp-block-navigation-item__label {
	white-space: nowrap;
}

@media (min-width: 782px) {
	/* Le logo ne doit plus se lire comme la première entrée du menu :
	   40 px au minimum entre la marque et « Boutique ». */
	.adf-header__marque {
		margin-inline-end: 1.5rem;
	}

	.adf-header__barre {
		gap: 1rem;
	}

	.adf-header__nav .wp-block-navigation__container {
		gap: 1rem;
	}
}

/* Entre 782 et 1279 px, le champ de recherche fixe (190 px) ne laisse plus
   la place aux cinq entrées : on replie la recherche en icône, exactement
   comme en mobile — la loupe ouvre le champ sous l'en-tête. */
@media (max-width: 1279px) {
	.adf-loupe {
		display: inline-flex;
	}

	.adf-header .adf-recherche-entete {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 30;
		padding: 0.6rem var(--wp--preset--spacing--30);
		background: var(--wp--preset--color--white, #fff);
		border-bottom: 1px solid var(--wp--preset--color--border, #e4dfd7);
	}

	.adf-header.adf-recherche-ouverte .adf-recherche-entete {
		display: block;
	}

	.adf-header .adf-recherche-entete .wp-block-search__input {
		width: 100%;
	}
}

@media (min-width: 782px) and (max-width: 1099px) {
	.adf-header__nav .wp-block-navigation {
		font-size: 0.8125rem;
	}

	.adf-header__nav .wp-block-navigation__container {
		gap: 0.75rem;
	}

	.adf-header .wp-block-site-title {
		font-size: 1.375rem;
	}
}

/* Panier : c'est l'action de conversion, pas le plus petit picto de la barre. */
.adf-header .wc-block-mini-cart__icon,
.adf-header .adf-mini-panier-statique .wc-block-mini-cart__icon {
	width: 22px;
	height: 22px;
}

.adf-header .wc-block-mini-cart__button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.5em;
}

@media (min-width: 1024px) {
	/* Libellé « Panier » à droite de l'icône. Le bouton porte déjà un
	   aria-label : ce texte est décoratif, d'où le pseudo-élément. */
	.adf-header .wc-block-mini-cart__button::after {
		content: "Panier";
		font-family: var(--wp--preset--font-family--body);
		font-size: 0.8125rem;
		letter-spacing: 0.02em;
		color: var(--wp--preset--color--primary, #004c33);
	}

	.adf-header .wp-block-woocommerce-mini-cart,
	.adf-header .adf-mini-panier-statique {
		min-width: 88px;
	}
}

/* ---- 12.2 Héros -------------------------------------------------- */

/*
 * Pas de nouvelle photo (aucune n'existe). La photo de 2017 est cadrée large
 * et le bouton de manchette y est au centre : `object-position` seul ne peut
 * rien, puisqu'en 16:9 l'image est rognée verticalement, jamais latéralement.
 * On agrandit donc légèrement la photo et on la décale vers la droite, pour
 * que le produit se retrouve à droite du bloc de texte.
 */
.adf-hero .wp-block-cover__image-background {
	object-position: 50% 50%;
	transform: scale(1.35) translateX(12%);
	transform-origin: center center;
}

@media (max-width: 781px) {
	/* Mobile : hauteur contenue, produit visible dans la moitié haute, texte et
	   boutons ancrés en bas sur un dégradé vertical. Pas de zoom artificiel. */
	/* Hauteur = contenu (texte + 2 boutons + marges), l'image sert de fond
	   cadré sur le bouton de manchette : plus de zone morte. */
	.adf-hero {
		min-height: 0 !important;
		height: auto !important;
		padding: 2.25rem 1.25rem 2rem !important;
	}

	.adf-hero .wp-block-cover__image-background {
		transform: none;
		object-position: 62% 45%;
	}

	.adf-hero::before {
		background: linear-gradient(
			180deg,
			rgba(0, 49, 31, 0.55) 0%,
			rgba(0, 49, 31, 0.45) 100%
		);
	}

	.adf-hero > .wp-block-cover__inner-container {
		align-self: center;
		width: 100%;
	}

	.adf-hero h1 {
		font-size: clamp(2rem, 9vw, 2.6rem);
		margin-bottom: 0.75rem;
	}

	.adf-hero .wp-block-buttons {
		gap: 0.5rem;
	}

	/* Deux boutons de même largeur, empilés : plus d'escalier. */
	.adf-hero .wp-block-buttons {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.adf-hero .wp-block-buttons > .wp-block-button {
		width: 100%;
	}

	.adf-hero .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		display: block;
		width: 100%;
		text-align: center;
	}
}

/* ---- 12.3 Bloc « nom de famille » : aligné sur la grille ---------- */

/* Sur les archives, le H1 et les puces sont alignés à gauche : un bloc centré
   entre eux flotte. Il reprend donc la largeur du conteneur, à gauche.
   La page 493, dont le H1 est centré, garde les 800 px centrés (§11.9). */
.adf-famille-enveloppe .adf-recherche-famille {
	max-width: none;
	margin-inline: 0;
}

/* Le bloc ne se rend que sur les vues « Armoiries » : sans lui, l'enveloppe
   ne doit pas laisser d'espace derrière elle. */
.adf-famille-enveloppe:not(:has(.adf-recherche-famille)) {
	display: none;
}

/* ---- 12.4 Raccourcis « Collections » ----------------------------- */

.adf-raccourcis {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
}

.adf-raccourcis__intitule {
	flex: 0 0 auto;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #5c6360);
}

.adf-raccourcis__liste {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adf-raccourcis__lien {
	display: inline-block;
	padding: 0.35em 0.85em;
	border: 1px solid var(--wp--preset--color--border, #e4dfd7);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast, #23282a);
	text-decoration: none;
	white-space: nowrap;
	background: var(--wp--preset--color--white, #fff);
}

.adf-raccourcis__lien:hover,
.adf-raccourcis__lien:focus-visible {
	border-color: var(--wp--preset--color--primary, #004c33);
	color: var(--wp--preset--color--primary, #004c33);
}

.adf-raccourcis__lien.is-active {
	background: var(--wp--preset--color--primary, #004c33);
	border-color: var(--wp--preset--color--primary, #004c33);
	color: var(--wp--preset--color--white, #fff);
}

@media (max-width: 781px) {
	/* La rangée défile horizontalement plutôt que de passer sur trois lignes. */
	.adf-raccourcis {
		display: block;
		margin-inline: 0;
	}

	.adf-raccourcis__intitule {
		display: block;
		margin-bottom: 0.4rem;
	}

	.adf-raccourcis__liste {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 0.25rem;
		-webkit-overflow-scrolling: touch;
	}

	.adf-raccourcis__liste::-webkit-scrollbar {
		display: none;
	}
}

/* ---- 12.5 Galerie de la fiche : flèches discrètes ---------------- */

.adf-fiche__galerie .wc-block-product-gallery-large-image-next-previous button,
.adf-fiche__galerie .wc-block-product-gallery-large-image-next-previous__button {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: none;
	color: var(--wp--preset--color--contrast, #23282a);
	opacity: 1;
}

.adf-fiche__galerie .wc-block-product-gallery-large-image-next-previous button:hover,
.adf-fiche__galerie .wc-block-product-gallery-large-image-next-previous__button:hover {
	background: rgba(255, 255, 255, 0.95);
}

.adf-fiche__galerie .wc-block-product-gallery-large-image-next-previous svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* ---- 12.6 Puces de filtres : « Tout effacer » sur la même ligne --- */

.adf-chips .wc-block-product-filter-active,
.adf-chips .wp-block-woocommerce-product-filter-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.adf-chips .wp-block-buttons {
	align-items: center;
	margin: 0;
}

/* Colonne de filtres (PC) : plus compacte en hauteur, pour voir plus de critères d'un coup. */
@media (min-width: 600px) {
	.adf-boutique__filtres .wc-block-product-filters.adf-filtres {
		gap: 1rem;
	}
	.adf-boutique__filtres .wc-block-product-filters.adf-filtres > * {
		margin-block: 0;
	}
	.adf-boutique__filtres .adf-filtre-titre,
	.adf-boutique__filtres .adf-filtre-type .adf-filtre-titre {
		margin-bottom: 0.35em;
		padding-top: 0.6rem;
	}
	.adf-boutique__filtres .wc-block-product-filter-checkbox-list__item {
		padding: 0.05em 0;
		line-height: 1.45;
	}
	.adf-boutique__filtres .wc-block-product-filter-checkbox-list__label {
		font-size: 0.8125rem;
	}
	.adf-boutique__filtres .adf-filtre-type__liste li {
		line-height: 1.5;
		margin: 0;
	}
	.adf-boutique__filtres .wc-block-product-filter-price-slider,
	.adf-boutique__filtres .wc-block-product-filter-price {
		margin-block: 0.25rem;
	}
	.adf-boutique__filtres .wc-block-product-filter-price .wc-block-product-filter-price__range-text,
	.adf-boutique__filtres .wc-block-product-filter-price-slider__content {
		font-size: 0.8125rem;
	}
	.adf-boutique__filtres .wc-block-product-filter-price input {
		padding: 0.35rem 0.5rem;
		font-size: 0.8125rem;
	}
}

/* Compactage vertical de la colonne de filtres (PC), spécificité > conteneur généré. */
@media (min-width: 600px) {
	.adf-boutique__filtres .wc-block-product-filters.adf-filtres.is-layout-flex {
		gap: 0.5rem;
	}
	.adf-boutique__filtres .wp-block-woocommerce-product-filter-attribute,
	.adf-boutique__filtres .wp-block-woocommerce-product-filter-status,
	.adf-boutique__filtres .wp-block-woocommerce-product-filter-price,
	.adf-boutique__filtres .adf-filtre-type {
		padding-top: 0.75rem;
	}
	.adf-boutique__filtres .adf-filtre-titre,
	.adf-boutique__filtres .adf-filtre-type .adf-filtre-titre {
		padding-top: 0;
		margin-bottom: 0.4em;
	}
	.adf-boutique__filtres .wc-block-product-filter-checkbox-list__item {
		padding: 0;
		line-height: 1.35;
	}
	.adf-boutique__filtres .wc-block-product-filter-checkbox-list__label {
		font-size: 0.8125rem;
	}
	.adf-boutique__filtres .adf-filtre-type__liste li {
		line-height: 1.4;
		margin: 0;
	}
	.adf-boutique__filtres .wc-block-product-filter-price-slider__range {
		margin-block: 0.4rem;
	}
	.adf-boutique__filtres .wc-block-product-filter-price-slider__content {
		gap: 0.5rem;
	}
	.adf-boutique__filtres .wc-block-product-filter-price-slider__left,
	.adf-boutique__filtres .wc-block-product-filter-price-slider__right {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
	.adf-boutique__filtres .wc-block-product-filter-price-slider input {
		width: 100%;
		padding: 0.3rem 0.5rem;
		font-size: 0.8125rem;
		min-height: 0;
		line-height: 1.3;
	}
}
