/* ==========================================================================
   FICHE PRODUIT : galerie, informations d'achat, variantes, accordéons, produits liés.
   ========================================================================== */

.bdp-fiche-page {
	padding-block: var(--esp-6, 2rem) var(--esp-9, 5rem);
}

@media (min-width: 900px) {

	.bdp-galerie {
		position: sticky;
		top: calc(var(--hauteur-entete, 4.5rem) + var(--esp-4, 1rem));
	}
}

/* ---------- Galerie ---------- */
.bdp-galerie {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--esp-3, 0.75rem);
	min-width: 0;
}

.bdp-galerie > * {
	min-width: 0;
}

.bdp-galerie__principale {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--r-l, 8px);
	background: var(--c-surface, #fff);
	overflow: hidden;
}

.bdp-galerie__lien {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.bdp-galerie__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bdp-galerie__couleur {
	position: absolute;
	bottom: var(--esp-3, 0.75rem);
	left: var(--esp-3, 0.75rem);
	z-index: 1;
	max-width: calc(100% - 5rem);
	padding: 0.35em 0.8em;
	background: var(--c-surface, #fff);
	color: var(--c-texte, #111);
	box-shadow: var(--ombre-s, 0 2px 8px rgb(0 0 0 / 0.15));
	font-size: var(--fs-sm, 0.9rem);
	font-weight: 700;
	line-height: 1.3;
}

.bdp-galerie__couleur[hidden] {
	display: none;
}

.bdp-galerie__loupe {
	position: absolute;
	right: var(--esp-3, 0.75rem);
	bottom: var(--esp-3, 0.75rem);
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--r-pill, 999px);
	background: var(--c-surface, #fff);
	color: var(--c-texte, #111);
	box-shadow: var(--ombre-s, 0 2px 8px rgb(0 0 0 / 0.15));
}

.bdp-galerie__badge {
	position: absolute;
	top: var(--esp-3, 0.75rem);
	left: var(--esp-3, 0.75rem);
}

.bdp-galerie__badge--nouveau ~ .bdp-galerie__badge:not(.bdp-galerie__badge--nouveau) {
	top: calc(var(--esp-3, 0.75rem) + 2.2rem);
}

.bdp-galerie__principale .bdp-image-vide {
	position: absolute;
	inset: 0;
}

/* Miniatures : colonne verticale à gauche de l'image principale (ordinateur), rangée sous l'image (mobile).
   Au-delà de la place disponible, la liste défile avec des flèches (galerie.js dans product.js). */
.bdp-galerie__colonne {
	display: flex;
	align-items: center;
	gap: var(--esp-2, 0.5rem);
	min-width: 0;
}

.bdp-galerie__miniatures {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	gap: var(--esp-2, 0.5rem);
	min-width: 0;
	scroll-snap-type: x mandatory;
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	scroll-behavior: smooth;
}

.bdp-galerie__miniature {
	flex: 0 0 4.5rem;
	width: 4.5rem;
	scroll-snap-align: start;
}

.bdp-galerie__fleche {
	display: grid;
	flex: none;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--c-texte, #111);
	cursor: pointer;
}

.bdp-galerie__fleche[hidden] {
	display: none;
}

.bdp-galerie__fleche:disabled {
	opacity: 0.35;
	cursor: default;
}

.bdp-galerie__fleche:hover,
.bdp-galerie__fleche:focus-visible {
	color: var(--c-primaire, #123);
}

.bdp-galerie__fleche:focus-visible {
	outline: 2px solid var(--c-focus, #0a5fc4);
	outline-offset: 2px;
}

.bdp-galerie__fleche .bdp-icone {
	width: 1.5rem;
	height: 1.5rem;
	stroke-width: 2.2;
}

/* Mobile : flèches vers la gauche et la droite. */
.bdp-galerie__fleche--prec .bdp-icone {
	transform: rotate(90deg);
}

.bdp-galerie__fleche--suiv .bdp-icone {
	transform: rotate(-90deg);
}

@media (min-width: 768px) {
	.bdp-galerie--colonne {
		grid-template-columns: 5.25rem minmax(0, 1fr);
		align-items: start;
	}

	.bdp-galerie--colonne .bdp-galerie__colonne {
		flex-direction: column;
		grid-column: 1;
		grid-row: 1;
		align-self: start;
	}

	.bdp-galerie--colonne .bdp-galerie__principale,
	.bdp-galerie--colonne .woocommerce-product-gallery__image {
		grid-column: 2;
		grid-row: 1;
	}

	.bdp-galerie--colonne .bdp-galerie__miniatures {
		flex-direction: column;
		scroll-snap-type: y mandatory;
	}

	.bdp-galerie--colonne .bdp-galerie__miniature {
		flex-basis: auto;
		width: 4.5rem;
	}

	/* Flèches haut et bas dans la colonne verticale. */
	.bdp-galerie--colonne .bdp-galerie__fleche--prec .bdp-icone {
		transform: rotate(180deg);
	}

	.bdp-galerie--colonne .bdp-galerie__fleche--suiv .bdp-icone {
		transform: none;
	}

}

/* Technologies : une rangée sur toute la largeur du bloc photo (miniatures comprises) ; elle défile au doigt quand les icônes ne tiennent pas. */
.bdp-galerie__tech-rangee {
	position: relative;
	min-width: 0;
	max-width: 100%;
	margin: var(--esp-2, 0.5rem) 0 0;
	padding: var(--esp-3, 0.75rem) 0 0;
	border-top: var(--filet, 1px) solid var(--c-ligne, #ddd);
	grid-column: 1 / -1;
}

.bdp-galerie__technologies {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: var(--esp-2, 0.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.bdp-galerie__technologies::-webkit-scrollbar {
	display: none;
}

/* Quand les icônes ne tiennent pas : la rangée se cale à gauche et défile. */
.bdp-galerie__tech-rangee.is-defilable .bdp-galerie__technologies {
	justify-content: flex-start;
	padding-inline: 2.5rem;
}

.bdp-galerie__tech-fleche {
	position: absolute;
	top: calc(50% + var(--esp-3, 0.75rem) / 2);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	border-radius: 50%;
	background: var(--c-surface, #fff);
	color: inherit;
	transform: translateY(-50%);
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.bdp-galerie__tech-fleche[hidden] {
	display: none;
}

.bdp-galerie__tech-fleche:disabled {
	opacity: 0.35;
	cursor: default;
}

.bdp-galerie__tech-fleche--prec {
	left: 0;
}

.bdp-galerie__tech-fleche--suiv {
	right: 0;
}

.bdp-galerie__tech-fleche svg {
	width: 1rem;
	height: 1rem;
}

/* Écran tactile : les flèches restent visibles (pour signaler que la rangée défile) ; fondu sur le bord droit tant qu'il y a une suite. */
@media (pointer: coarse) {
	.bdp-galerie__tech-rangee.is-defilable:not(.is-fin) .bdp-galerie__technologies {
		-webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
		mask-image: linear-gradient(to right, #000 80%, transparent);
	}
}

.bdp-galerie__tech {
	display: grid;
	place-items: center;
	flex: 1 1 5.5rem;
	min-width: 5.5rem;
	max-width: 7rem;
	scroll-snap-align: start;
}

.bdp-galerie__tech-bouton {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 2.75rem;
	padding: var(--esp-1, 0.25rem);
	border: var(--filet, 1px) solid transparent;
	border-radius: var(--rayon, 0.25rem);
	background: none;
	cursor: pointer;
}

.bdp-galerie__tech-bouton:hover {
	border-color: var(--c-ligne, #ddd);
}

.bdp-galerie__tech-icone {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 2.75rem;
	object-fit: contain;
}

/* Fenêtre explicative d'une technologie (ouverte au clic sur l'icône). */
.bdp-galerie__tech-fenetre {
	width: min(32rem, calc(100% - 2rem));
	max-height: calc(100% - 2rem);
	padding: var(--esp-4, 1rem);
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	border-radius: var(--rayon, 0.25rem);
	background: var(--c-fond, #fff);
	color: inherit;
	overflow: auto;
}

.bdp-galerie__tech-fenetre::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.bdp-galerie__tech-fenetre[open] {
	display: flex;
	flex-direction: column;
	gap: var(--esp-3, 0.75rem);
}

.bdp-galerie__tech-visuel {
	width: 100%;
	height: auto;
	border-radius: var(--rayon, 0.25rem);
}

.bdp-galerie__tech-titre {
	margin: 0 0 var(--esp-2, 0.5rem);
	padding-right: 2.5rem;
	font-size: 1.1rem;
}

.bdp-galerie__tech-texte p {
	margin: 0;
}

.bdp-galerie__tech-fermer {
	position: absolute;
	top: var(--esp-2, 0.5rem);
	right: var(--esp-2, 0.5rem);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #111;
	cursor: pointer;
}

.bdp-galerie__tech-fermer svg {
	width: 1.25rem;
	height: 1.25rem;
}

.bdp-galerie__bouton {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	padding: 0;
	border: calc(var(--filet, 1px) * 2) solid transparent;
	border-radius: var(--r-m, 4px);
	background: var(--c-surface-2, #eee);
	overflow: hidden;
	opacity: 0.7;
	transition: opacity var(--duree-s, 0.2s) var(--ease, ease);
}

.bdp-galerie__bouton img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bdp-galerie__bouton:hover,
.bdp-galerie__bouton[aria-pressed="true"] {
	opacity: 1;
}

.bdp-galerie__bouton[aria-pressed="true"] {
	border-color: var(--c-primaire, #123);
}

/* ---------- Visionneuse (dialog) ---------- */
.bdp-visionneuse__legende {
	position: absolute;
	right: 0;
	bottom: var(--esp-5, 1.5rem);
	left: 0;
	margin: 0;
	color: #fff;
	font-size: var(--fs-lg, 1.2rem);
	font-weight: 700;
	text-align: center;
}

.bdp-visionneuse__legende[hidden] {
	display: none;
}

.bdp-visionneuse {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}

.bdp-visionneuse::backdrop {
	background: rgb(0 0 0 / 0.88);
}

.bdp-visionneuse__cadre {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: var(--esp-8, 4rem) var(--esp-4, 1rem);
}

.bdp-visionneuse__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--r-m, 4px);
}

.bdp-visionneuse__fermer,
.bdp-visionneuse__nav {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: var(--filet, 1px) solid rgb(255 255 255 / 0.4);
	border-radius: var(--r-pill, 999px);
	background: rgb(0 0 0 / 0.5);
	color: #fff;
}

.bdp-visionneuse__fermer:hover,
.bdp-visionneuse__nav:hover {
	background: rgb(0 0 0 / 0.8);
}

.bdp-visionneuse__fermer {
	top: var(--esp-4, 1rem);
	right: var(--esp-4, 1rem);
}

.bdp-visionneuse__nav {
	top: 50%;
	transform: translateY(-50%);
}

.bdp-visionneuse__nav--prec { left: var(--esp-4, 1rem); }
.bdp-visionneuse__nav--suiv { right: var(--esp-4, 1rem); }

.bdp-visionneuse__nav[hidden] {
	display: none;
}

/* ---------- Informations d'achat ---------- */

.bdp-fiche__titre {
	margin: 0 0 var(--esp-4, 1rem);
	font-size: var(--fs-3xl, 2.5rem);
}

.bdp-fiche__prix {
	margin-bottom: var(--esp-4, 1rem);
}

.bdp-prix--fiche .bdp-prix__actuel {
	font-size: var(--fs-2xl, 2rem);
}

.bdp-prix__prefixe {
	color: var(--c-texte-doux, #555);
	font-size: var(--fs-sm, 0.9rem);
}

/* ---------- Bloc « Prix abonné » ---------- */
.bdp-abonne-bloc {
	margin-bottom: var(--esp-5, 1.5rem);
	padding: var(--esp-4, 1rem) var(--esp-5, 1.5rem);
	border: var(--filet, 1px) dashed var(--c-primaire, #123);
	border-radius: var(--r-m, 4px);
	background: var(--c-surface, #fff);
}

.bdp-abonne-bloc__titre {
	margin: 0 0 var(--esp-1, 0.25rem);
	font-family: var(--f-corps, inherit);
	font-size: var(--fs-sm, 0.9rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bdp-abonne-bloc__texte {
	margin: 0 0 var(--esp-3, 0.75rem);
	color: var(--c-texte-doux, #555);
	font-size: var(--fs-sm, 0.9rem);
}

.bdp-abonne-bloc__liste {
	display: grid;
	gap: var(--esp-2, 0.5rem);
	margin: 0 0 var(--esp-3, 0.75rem);
	padding: 0;
	list-style: none;
}

.bdp-abonne-bloc__formule {
	display: flex;
	justify-content: space-between;
	gap: var(--esp-4, 1rem);
	font-size: var(--fs-sm, 0.9rem);
}

.bdp-abonne-bloc__remise {
	font-weight: 700;
}

.bdp-abonne-bloc__lien {
	font-size: var(--fs-sm, 0.9rem);
	font-weight: 600;
}

/* ---------- Achat : quantité + bouton ---------- */
.bdp-achat__ligne {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--esp-3, 0.75rem);
}

.bdp-achat__ligne .bdp-quantite {
	flex: none;
}

.bdp-achat__ligne .single_add_to_cart_button {
	flex: 1 1 12rem;
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.bdp-achat__variation .woocommerce-variation {
	margin-bottom: var(--esp-4, 1rem);
}

.bdp-achat__variation .woocommerce-variation-price .price {
	font-size: var(--fs-xl, 1.5rem);
	font-weight: 700;
}

.bdp-achat__variation .woocommerce-variation-description {
	color: var(--c-texte-doux, #555);
}

/* ---------- Variantes (puces) ---------- */
.bdp-variations {
	display: grid;
	gap: var(--esp-5, 1.5rem);
	margin-bottom: var(--esp-5, 1.5rem);
}

.bdp-variation__entete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--esp-3, 0.75rem);
	margin-bottom: var(--esp-2, 0.5rem);
}

.bdp-variation__label {
	font-size: var(--fs-sm, 0.9rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bdp-variation__effacer {
	font-size: var(--fs-sm, 0.9rem);
	color: var(--c-texte-doux, #555);
}

.bdp-puces {
	display: flex;
	flex-wrap: wrap;
	gap: var(--esp-2, 0.5rem);
}

.bdp-puces__bouton {
	min-width: 3rem;
	min-height: 2.75rem;
	padding: 0.4em 1.1em;
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	border-radius: var(--r-m, 4px);
	background: var(--c-surface, #fff);
	color: var(--c-texte, #111);
	font-weight: 600;
	transition: border-color var(--duree-s, 0.2s) var(--ease, ease), box-shadow var(--duree-s, 0.2s) var(--ease, ease);
}

.bdp-puces__bouton:hover:not(:disabled) {
	border-color: var(--c-texte, #111);
}

.bdp-puces__bouton[aria-pressed="true"] {
	border-color: var(--c-primaire, #123);
	box-shadow: 0 0 0 var(--filet, 1px) var(--c-primaire, #123);
	background: var(--c-primaire, #123);
	color: var(--c-primaire-texte, #fff);
}

.bdp-puces__bouton:disabled {
	color: var(--c-texte-doux, #555);
	text-decoration: line-through;
	opacity: 0.55;
	cursor: not-allowed;
}

/* Liste d'origine masquée quand les puces sont actives (elle reste la source de vérité pour WooCommerce). */
html.js .bdp-variation--puces .bdp-variation__select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ---------- Accordéons et caractéristiques ---------- */

.bdp-caracteristiques {
	margin: 0;
}

.bdp-caracteristiques__ligne {
	display: grid;
	grid-template-columns: minmax(8rem, 1fr) 2fr;
	gap: var(--esp-4, 1rem);
	padding-block: var(--esp-3, 0.75rem);
	border-bottom: var(--filet, 1px) solid var(--c-ligne, #ddd);
}

.bdp-caracteristiques__ligne:last-child {
	border-bottom: 0;
}

.bdp-caracteristiques__terme {
	color: var(--c-texte, #111);
	font-weight: 600;
}

.bdp-caracteristiques__valeur {
	margin: 0;
}

.bdp-caracteristiques__valeur p {
	margin: 0;
}

/* ---------- Produits liés ---------- */
.bdp-fiche-page .bdp-grille-produits {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Prix de la variante copié dans le bloc de prix principal par product.js. */
html.js .bdp-fiche .woocommerce-variation-price {
	display: none;
}

.woocommerce-variation-availability .available-on-backorder::before {
	background: var(--c-alerte, #b26a00);
}

/* ==========================================================================
   FICHE PRODUIT DU DESIGN 1 (structure de l'ancien site) : mécanique neutre.
   Habillage : design/product.css.
   ========================================================================== */

/* ---------- Bandeau titre / marque / prix ---------- */
.bdp-d1-haut {
	display: grid;
	gap: var(--esp-2, 0.5rem);
	margin-bottom: var(--esp-5, 1.5rem);
	padding: var(--esp-2, 0.5rem) var(--esp-3, 0.75rem);
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
}

.bdp-d1-haut__marque {
	justify-self: center;
}

.bdp-d1-haut .bdp-fiche__titre {
	margin: 0;
	font-size: var(--fs-2xl, 2rem);
}

.bdp-d1-note {
	margin-top: var(--esp-1, 0.25rem);
	font-size: var(--fs-sm, 0.9rem);
}

.bdp-d1-marque {
	display: inline-flex;
	align-items: center;
	gap: var(--esp-2, 0.5rem);
	min-height: 2.75rem;
	padding: 0 var(--esp-4, 1rem);
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	font-weight: 600;
}

.bdp-d1-marque__icone {
	width: 1.1rem;
	height: 1.1rem;
}

/* Logo de la marque (reconnue dans le titre du produit) à la place du nom. */
.bdp-d1-marque--logo {
	padding: var(--esp-1, 0.25rem) var(--esp-3, 0.75rem);
	background: #fff;
}

.bdp-d1-marque__logo {
	display: block;
	width: auto;
	max-width: 9rem;
	height: 2.25rem;
	object-fit: contain;
}

.bdp-d1-haut__prix {
	display: grid;
	justify-items: start;
	gap: var(--esp-1, 0.25rem);
}

.bdp-d1-haut__prix .bdp-fiche__prix {
	margin: 0;
}

.bdp-d1-alma {
	display: inline-flex;
	align-items: center;
	gap: var(--esp-2, 0.5rem);
	margin: 0;
	padding: 0.2em 0.6em;
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	color: var(--c-texte-doux, #555);
	font-size: var(--fs-xs, 0.75rem);
	white-space: nowrap;
}

.bdp-d1-alma__logo {
	padding: 0 0.45em;
	background: var(--c-primaire, #123);
	color: var(--c-primaire-texte, #fff);
	font-weight: 700;
}

/* Mobile : titre, logo, prix et indication Alma centrés, une ligne chacun, avec un peu d'air. */
@media (max-width: 899px) {
	.bdp-d1-haut {
		gap: var(--esp-3, 0.75rem);
		padding-block: var(--esp-3, 0.75rem);
		text-align: center;
	}

	.bdp-d1-haut__prix {
		justify-items: center;
		gap: var(--esp-3, 0.75rem);
	}

	.bdp-d1-haut .bdp-prix,
	.bdp-d1-haut .bdp-d1-note {
		justify-content: center;
	}
}

@media (min-width: 900px) {
	.bdp-d1-haut {
		/* Titre à gauche, logo au centre exact du bloc, prix à droite. */
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 0;
		padding: var(--esp-2, 0.5rem) var(--esp-5, 1.5rem);
	}

	/* Les deux filets verticaux (avant le logo, avant le prix) ont la hauteur du bandeau : cellules étirées. */
	.bdp-d1-haut__marque,
	.bdp-d1-haut__prix {
		align-self: stretch;
		padding-left: var(--esp-5, 1.5rem);
		margin-left: var(--esp-5, 1.5rem);
		border-left: var(--filet, 1px) solid var(--c-ligne, #ddd);
	}

	.bdp-d1-haut__marque {
		display: flex;
		align-items: center;
	}

	.bdp-d1-haut__prix {
		align-content: center;
		justify-items: end;
	}
}

/* ---------- Image + informations ---------- */
.bdp-d1-corps {
	display: grid;
	gap: var(--esp-5, 1.5rem);
	margin-bottom: var(--esp-6, 2rem);
}

@media (min-width: 768px) {
	.bdp-d1-corps {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--esp-6, 2rem);
		align-items: stretch;
	}

	/* La hauteur de la ligne vient du bloc image : le bloc de droite la prend exactement ; la description courte défile si elle est plus longue. */
	.bdp-d1-infos {
		display: flex;
		flex-direction: column;
		contain: size;
	}

	.bdp-d1-infos .bdp-d1-courte {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
	}
}

.bdp-d1-image,
.bdp-d1-infos {
	min-width: 0;
}

.bdp-d1-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--esp-2, 0.5rem);
	margin: 0;
	padding: var(--esp-3, 0.75rem) 0;
	border-block: var(--filet, 1px) solid var(--c-ligne, #ddd);
	color: var(--c-texte-doux, #555);
	font-size: var(--fs-sm, 0.9rem);
}

.bdp-d1-meta__item {
	display: inline-flex;
	gap: 0.35em;
}

.bdp-d1-meta__valeur {
	color: var(--c-texte, #111);
}

.bdp-d1-meta__valeur--lien a {
	text-underline-offset: 0.2em;
}

.bdp-d1-courte {
	margin: var(--esp-4, 1rem) 0;
}

.bdp-d1-courte ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bdp-d1-courte li {
	position: relative;
	padding: 0.2em 0 0.2em 1.4em;
}

.bdp-d1-courte li::before {
	position: absolute;
	left: 0;
	content: "\2713";
	color: var(--c-primaire, #123);
	font-weight: 700;
}

.bdp-d1-delai {
	margin: 0 0 var(--esp-4, 1rem);
	padding: var(--esp-3, 0.75rem) var(--esp-4, 1rem);
	background: var(--c-surface-2, #eee);
	color: var(--c-texte, #111);
	font-weight: 600;
}

.bdp-d1-delai--mobile {
	margin-top: var(--esp-3, 0.75rem);
}

@media (min-width: 768px) {
	.bdp-d1-delai--mobile {
		display: none;
	}
}

@media (max-width: 767px) {
	.bdp-d1-delai--bureau {
		display: none;
	}
}

/* ---------- Barre d'ancres ---------- */
.bdp-d1-ancres {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--esp-5, 1.5rem);
	margin-bottom: var(--esp-5, 1.5rem);
	border-bottom: var(--filet, 1px) solid var(--c-ligne, #ddd);
}

.bdp-d1-ancres__lien {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	text-decoration: none;
	font-weight: 600;
}

.bdp-d1-ancres__lien:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* Mobile : liens empilés, présentés comme des boutons cadrés avec une flèche vers le bas (ils font descendre jusqu'à la section). */
@media (max-width: 899px) {
	.bdp-d1-ancres {
		flex-direction: column;
		gap: var(--esp-2, 0.5rem);
		padding-bottom: var(--esp-4, 1rem);
	}

	.bdp-d1-ancres__lien {
		justify-content: space-between;
		gap: var(--esp-3, 0.75rem);
		padding: 0 var(--esp-4, 1rem);
		border: var(--filet, 1px) solid var(--c-primaire, #123);
		background: var(--c-surface, #fff);
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.bdp-d1-ancres__lien::after {
		content: "";
		flex: 0 0 auto;
		width: 0.55rem;
		height: 0.55rem;
		margin-bottom: 0.25rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
	}

	.bdp-d1-ancres__lien:hover,
	.bdp-d1-ancres__lien:active,
	.bdp-d1-ancres__lien:focus-visible {
		background: var(--c-primaire, #123);
		color: var(--c-primaire-texte, #fff);
		text-decoration: none;
	}
}

/* Ordinateur : trait de couleur épais sous le lien au survol et au clavier. */
@media (min-width: 900px) {
	.bdp-d1-ancres__lien:hover,
	.bdp-d1-ancres__lien:focus-visible {
		text-decoration-line: underline;
		text-decoration-thickness: 2px;
		text-decoration-color: var(--c-primaire, #123);
	}
}

/* ---------- Sections ---------- */
.bdp-d1-section {
	padding-top: var(--esp-7, 2.5rem);
	scroll-margin-top: var(--decalage-ancre, 5rem);
}

.bdp-d1-section__titre {
	margin: 0 0 var(--esp-4, 1rem);
	font-size: var(--fs-xl, 1.5rem);
}

.bdp-d1-description {
	text-align:justify;
}

/* ---------- Réassurance ---------- */
.bdp-d1-reassurance {
	padding-top: var(--esp-6, 2rem);
}

.bdp-d1-reassurance__liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--esp-4, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.bdp-d1-reassurance__liste {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.bdp-d1-reassurance__item {
	display: flex;
	align-items: center;
	gap: var(--esp-3, 0.75rem);
}

.bdp-d1-reassurance__rond {
	flex: none;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
	border-radius: 50%;
	color: var(--c-primaire, #123);
}

.bdp-d1-reassurance__texte {
	margin: 0;
	font-size: var(--fs-sm, 0.9rem);
	font-weight: 600;
	line-height: 1.35;
}

/* ---------- Tableau des variantes ---------- */
.bdp-vt {
	--vt-image: 4rem;
	--vt-fond: var(--c-surface, #fff);
}

.bdp-vt__cadre {
	position: relative;
}

.bdp-vt__cadre::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 2.5rem;
	content: "";
	background: linear-gradient(to left, color-mix(in srgb, var(--c-texte, #111) 18%, transparent), transparent);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--duree-m, 0.3s) var(--ease, ease);
}

.bdp-vt__cadre.a-suite::after {
	opacity: 1;
}

.bdp-vt__defile {
	/* positionné : les textes masqués (position absolue) restent dans le cadre défilant */
	position: relative;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border: var(--filet, 1px) solid var(--c-ligne, #ddd);
}

.bdp-vt__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.bdp-vt__th,
.bdp-vt__td {
	padding: var(--esp-2, 0.5rem);
	border-bottom: var(--filet, 1px) solid var(--c-ligne, #ddd);
	background: var(--vt-fond);
	text-align: left;
	vertical-align: middle;
}

.bdp-vt__th {
	text-align: center;
	--vt-fond: var(--c-surface-2, #eee);
	font-size: calc(var(--fs-xs, 0.75rem) * 0.95);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
}

/* Valeurs courtes : jamais coupées en deux (les en-têtes, eux, passent à la ligne) ; centrées dans leur colonne. */
.bdp-vt__td {
	white-space: nowrap;
}

.bdp-vt__td[data-colonne] {
	text-align: center;
}

.bdp-vt__ligne {
	--vt-fond: var(--c-surface, #fff);
}

.bdp-vt__ligne:hover,
.bdp-vt__ligne:focus-within {
	--vt-fond: color-mix(in srgb, var(--c-primaire, #123) 6%, var(--c-surface, #fff));
}

.bdp-vt__ligne:last-child > * {
	border-bottom: 0;
}

/* Colonnes Image et Référence : le tableau tient dans la largeur, plus de défilement ni de colonnes collées. */
/* Deux colonnes fixes quand le tableau défile (mobile, tablette) : image + référence, puis la 1re caractéristique (couleur ou longueur). */
.bdp-vt__col-image {
	position: sticky;
	left: 0;
	z-index: 3;
	width: 6rem;
	min-width: 6rem;
	max-width: 6rem;
	padding-inline: var(--esp-2, 0.5rem);
	text-align: center;
}

.bdp-vt__ligne > .bdp-vt__td:nth-child(2),
.bdp-vt__table thead .bdp-vt__th:nth-child(2) {
	position: sticky;
	left: 6rem;
	z-index: 2;
	min-width: 5.5rem;
	max-width: 7.5rem;
	white-space: normal;
}

/* Ombre de séparation dès que le tableau a défilé. */
.bdp-vt__cadre.est-defile .bdp-vt__ligne > .bdp-vt__td:nth-child(2),
.bdp-vt__cadre.est-defile .bdp-vt__table thead .bdp-vt__th:nth-child(2) {
	box-shadow: 8px 0 10px -8px color-mix(in srgb, var(--c-texte, #111) 45%, transparent);
}

/* Référence : petits caractères au-dessus de l'image. */
.bdp-vt__ref {
	display: block;
	margin-bottom: 0.25rem;
	font-size: calc(var(--fs-xs, 0.75rem) * 0.9);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.bdp-vt__image {
	display: grid;
	margin-inline: auto;
	place-items: center;
	width: 3rem;
	height: 3rem;
	background: var(--c-surface-2, #eee);
}

.bdp-vt__image--bouton {
	padding: 0;
	border: 0;
	cursor: zoom-in;
}

.bdp-vt__image--bouton:hover,
.bdp-vt__image--bouton:focus-visible {
	outline: 2px solid var(--c-primaire, #123);
	outline-offset: 2px;
}

.bdp-vt__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bdp-vt__image-vide {
	width: 1.5rem;
	height: 1.5rem;
	opacity: 0.45;
}

.bdp-vt__quantite .bdp-quantite__bouton,
.bdp-vt__quantite .bdp-quantite__champ {
	width: 2.25rem;
	height: 2.5rem;
}

.bdp-vt__td--prix,
.bdp-vt__td--prix .woocommerce-Price-amount {
	font-weight: 700;
}

/* Prix : sans promotion, le prix normal seul ; en promotion, prix promo en rouge bordeaux + prix normal barré. */
.bdp-vt__td--prix .bdp-prix {
	flex-wrap: nowrap;
	gap: var(--esp-2, 0.5rem);
}

.bdp-vt__td--prix .bdp-prix__actuel {
	color: var(--c-texte, #111);
	font-size: inherit;
}

.bdp-vt__td--prix .bdp-prix--promo .bdp-prix__actuel {
	color: var(--c-prix, #aa272e);
}

.bdp-vt__td--prix .bdp-prix__barre {
	color: var(--c-texte, #111);
	font-weight: 400;
}

.bdp-vt__form {
	margin: 0;
}

.bdp-vt__ajouter {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-accent, #c60);
	color: var(--c-accent-texte, #fff);
	cursor: pointer;
	transition: transform var(--duree-s, 0.2s) var(--ease, ease);
}

.bdp-vt__ajouter:hover {
	transform: scale(1.08);
}

.bdp-vt__ajouter:focus-visible {
	outline: 3px solid var(--c-focus, #1a73e8);
	outline-offset: 3px;
}

.bdp-vt__ajouter:disabled {
	opacity: 0.6;
	cursor: wait;
}

.bdp-vt__defile:focus-visible {
	outline: 3px solid var(--c-focus, #1a73e8);
	outline-offset: 2px;
}

.bdp-vt__astuce {
	display: none;
	align-items: center;
	justify-content: center;
	gap: var(--esp-2, 0.5rem);
	margin: var(--esp-2, 0.5rem) 0 0;
	color: var(--c-texte-doux, #555);
	font-size: var(--fs-sm, 0.9rem);
}

.bdp-vt__astuce .bdp-icone {
	width: 1rem;
	height: 1rem;
}

.bdp-vt.peut-defiler .bdp-vt__astuce {
	display: flex;
}

/* Texte du bouton d'ajout : visible seulement en cartes (mobile). */
.bdp-vt__ajouter-texte {
	display: none;
}


.bdp-vt__annonce {
	margin: var(--esp-2, 0.5rem) 0 0;
	font-weight: 600;
}

.bdp-vt__annonce:empty {
	display: none;
}

.bdp-vt__annonce.est-erreur {
	color: var(--c-erreur, #b00020);
}

@media (prefers-reduced-motion: reduce) {
	.bdp-vt__cadre::after,
	.bdp-vt__ajouter {
		transition: none;
	}
}

/* Avis (formulaire WooCommerce) : champs à la largeur du conteneur. */
.bdp-d1-avis input[type="text"],
.bdp-d1-avis input[type="email"],
.bdp-d1-avis input[type="url"],
.bdp-d1-avis select,
.bdp-d1-avis textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.6em 0.8em;
	border: var(--filet, 1px) solid var(--c-texte-doux, #555);
	border-radius: var(--r-m, 4px);
	background: var(--c-surface, #fff);
	color: var(--c-texte, #111);
}

.bdp-d1-avis ol.commentlist {
	margin: 0 0 var(--esp-5, 1.5rem);
	padding: 0;
	list-style: none;
}

.bdp-d1-avis .comment-form > p {
	margin: 0 0 var(--esp-4, 1rem);
}

.bdp-d1-avis .submit {
	min-height: 2.75rem;
	padding: 0.5em 1.4em;
	border: calc(var(--filet, 1px) * 1.5) solid var(--c-primaire, #123);
	background: var(--c-primaire, #123);
	color: var(--c-primaire-texte, #fff);
	font-weight: 600;
	cursor: pointer;
}
