:root {
	--hb-color-accent: #FDB008;
	--hb-color-accent-hover: #E2A100;
	--hb-color-accent-tint: #FFF3D6;
	--hb-color-accent-border: #FCE0A0;
	--hb-color-black: #111111;
	--hb-color-white: #FFFFFF;

	--hb-card-radius: 10px;
	--hb-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
	--hb-card-padding-y: 24px;
	--hb-card-padding-x: 28px;
	--hb-cta-radius: 10px;
	--hb-cta-padding-y: 14px;
	--hb-cta-padding-x: 28px;
	--hb-cta-weight: 700;
	--hb-cta-line-height: 20px;
	--hb-cta-transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hb-accessory,
.hb-accessory-archive {
	margin: 0;
	background-color: #f5f6f8;
	color: #111827;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

.hb-section {
	background-color: #ffffff;
	border-radius: var(--hb-card-radius);
	box-shadow: var(--hb-card-shadow);
	padding: var(--hb-card-padding-y) var(--hb-card-padding-x);
	margin: 0 auto 24px;
	max-width: 1280px;
}

.hb-accessory__breadcrumb {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 20px 0;
	font-size: 13px;
	color: #6b7280;
}

.hb-accessory__breadcrumb-link {
	color: var(--hb-color-black);
	font-weight: 600;
	text-decoration: none;
}

.hb-accessory__breadcrumb-link:hover {
	text-decoration: underline;
	text-decoration-color: var(--hb-color-accent);
	text-decoration-thickness: 2px;
}

.hb-accessory__breadcrumb-separator {
	margin: 0 6px;
	color: #d1d5db;
}

.hb-accessory__breadcrumb-current {
	font-weight: 600;
	color: #374151;
}

/*
 * .hb-breadcrumb* : partial partagé templates/partials/breadcrumb.php,
 * utilisé par templates/archive-accessory.php (archive /accessoire/) —
 * distinct de .hb-accessory__breadcrumb* ci-dessus, propre au balisage
 * inline de la fiche individuelle (templates/single-accessory.php).
 *
 * Largeur/marge/padding alignés ici sur .hb-accessory-archive__header et
 * .hb-accessory-archive__filters (1280px, centré, même padding horizontal) :
 * contrairement à main.hb-machine-archive/main.hb-brand-archive, l'élément
 * <main class="hb-accessory-archive"> ne porte lui-même aucune largeur — ce
 * sont les blocs enfants qui gèrent individuellement la leur, donc
 * .hb-breadcrumb doit faire de même pour rester sur le même axe qu'eux.
 */
.hb-breadcrumb {
	max-width: 1280px;
	margin: 0 auto 16px;
	padding: 20px 20px 0;
	font-size: 13px;
	color: #6b7280;
}

.hb-breadcrumb__link {
	color: var(--hb-color-black);
	font-weight: 600;
	text-decoration: none;
}

.hb-breadcrumb__link:hover,
.hb-breadcrumb__link:focus {
	text-decoration: underline;
	text-decoration-color: var(--hb-color-accent);
	text-decoration-thickness: 2px;
}

.hb-breadcrumb__separator {
	margin: 0 6px;
	color: #d1d5db;
}

.hb-breadcrumb__current {
	font-weight: 600;
	color: #374151;
}

.hb-accessory__header {
	padding-top: 16px;
}

.hb-accessory__categories {
	margin: 0 0 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hb-accessory__category-tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background-color: var(--hb-color-accent-tint);
	color: var(--hb-color-black);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.hb-accessory__title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	color: #111827;
}

.hb-accessory__short-description {
	margin: 0 0 8px;
	font-size: 16px;
	color: #4b5563;
}

.hb-accessory__key-facts {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.hb-accessory__key-fact {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.hb-accessory__key-fact-icon {
	font-size: 16px;
}

.hb-accessory__price {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: var(--hb-color-black);
}

.hb-accessory__price strong {
	font-weight: 700;
}

.hb-accessory__cta {
	display: inline-block;
	border: 1px solid transparent;
	border-radius: var(--hb-cta-radius);
	background-color: var(--hb-color-accent);
	color: var(--hb-color-black);
	font-size: 15px;
	font-weight: var(--hb-cta-weight);
	line-height: var(--hb-cta-line-height);
	text-align: center;
	text-decoration: none;
	padding: var(--hb-cta-padding-y) var(--hb-cta-padding-x);
	cursor: pointer;
	transition: var(--hb-cta-transition);
}

.hb-accessory__cta:hover {
	background-color: var(--hb-color-accent-hover);
	color: var(--hb-color-black);
}

.hb-accessory__all-machines {
	max-width: 1280px;
	margin: 0 auto 24px;
	text-align: center;
}

.hb-accessory__main {
	max-width: 1280px;
	margin: 0 auto;
}

.hb-accessory__gallery-main-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
}

.hb-accessory__gallery-image {
	width: 100%;
	max-height: 480px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
}

.hb-accessory__gallery-thumbs {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hb-accessory__gallery-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	line-height: 0;
	overflow: hidden;
}

.hb-accessory__gallery-thumb:hover,
.hb-accessory__gallery-thumb:focus-visible {
	border-color: var(--hb-color-accent);
}

.hb-accessory__gallery-thumb img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: cover;
}

.hb-accessory__gallery-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background-color: #f5f6f8;
	border-radius: 12px;
	color: #9ca3af;
	font-size: 14px;
}

.hb-accessory-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(17, 24, 39, 0.92);
}

.hb-accessory-lightbox[hidden] {
	display: none;
}

.hb-accessory-lightbox__image {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 8px;
}

.hb-accessory-lightbox__close,
.hb-accessory-lightbox__prev,
.hb-accessory-lightbox__next {
	position: absolute;
	border: none;
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
}

.hb-accessory-lightbox__close:hover,
.hb-accessory-lightbox__prev:hover,
.hb-accessory-lightbox__next:hover {
	background-color: rgba(255, 255, 255, 0.24);
}

.hb-accessory-lightbox__close {
	top: 20px;
	right: 20px;
}

.hb-accessory-lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.hb-accessory-lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.hb-accessory__main section.hb-section > h2 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.hb-accessory__advice h3 {
	margin: 20px 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.hb-accessory__rich-content {
	font-size: 15px;
	color: #374151;
}

.hb-accessory__characteristics-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
}

.hb-accessory__characteristics-table tr {
	border-bottom: 1px solid #eef0f3;
}

.hb-accessory__characteristics-table tr:last-child {
	border-bottom: none;
}

.hb-accessory__characteristics-table th,
.hb-accessory__characteristics-table td {
	padding: 10px 12px 10px 0;
	text-align: left;
	font-size: 14px;
}

.hb-accessory__characteristics-table th {
	width: 40%;
	font-weight: 600;
	color: #6b7280;
}

.hb-accessory__characteristics-table td {
	font-weight: 600;
	color: #111827;
}

.hb-accessory__technical-notes {
	margin: 0;
	font-size: 14px;
	color: #4b5563;
}

.hb-accessory__videos-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hb-accessory__video {
	position: relative;
	aspect-ratio: 16 / 9;
}

.hb-accessory__video iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 12px;
}

.hb-accessory__documents-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hb-accessory__document {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 10px;
	background-color: #f5f6f8;
}

.hb-accessory__document-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 32px;
	padding: 0 6px;
	border-radius: 6px;
	background-color: var(--hb-color-accent);
	color: var(--hb-color-black);
	font-size: 11px;
	font-weight: 700;
}

.hb-accessory__document-title {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.hb-accessory__document-download {
	flex: 0 0 auto;
	color: var(--hb-color-black);
	font-weight: 600;
	text-decoration: none;
	font-size: 13px;
	white-space: nowrap;
}

.hb-accessory__document-download:hover {
	text-decoration: underline;
	text-decoration-color: var(--hb-color-accent);
	text-decoration-thickness: 2px;
}

.hb-accessory__compatibility-badge {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	background-color: var(--hb-color-accent-tint);
	color: var(--hb-color-black);
	font-size: 14px;
	font-weight: 700;
}

.hb-accessory__compatibility-group + .hb-accessory__compatibility-group {
	margin-top: 20px;
}

.hb-accessory__compatibility-group h3 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

.hb-accessory__compatibility-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hb-accessory__compatibility-list li a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: #f5f6f8;
	color: #111827;
	text-decoration: none;
	font-size: 14px;
}

.hb-accessory__empty-state {
	margin: 0;
	font-size: 14px;
	color: #9ca3af;
	font-style: italic;
}

.hb-accessory-grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.hb-accessory-grid--compact {
	max-width: none;
	padding: 0;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.hb-accessory-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: var(--hb-card-radius);
	box-shadow: var(--hb-card-shadow);
	overflow: hidden;
}

.hb-accessory-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: #f5f6f8;
}

.hb-accessory-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hb-accessory-card__content {
	padding: var(--hb-card-padding-y) var(--hb-card-padding-x);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hb-accessory-card__name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.hb-accessory-card__name a {
	color: #111827;
	text-decoration: none;
}

.hb-accessory-card__excerpt {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.hb-accessory-card__price {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--hb-color-black);
}

.hb-accessory-card__cta {
	margin-top: 8px;
	align-self: flex-start;
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-color-black);
	text-decoration: none;
}

.hb-accessory-card__cta:hover {
	text-decoration: underline;
	text-decoration-color: var(--hb-color-accent);
	text-decoration-thickness: 2px;
}

.hb-accessory-archive__header {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 20px 0;
}

.hb-accessory-archive__description {
	margin: 10px 0 0;
	max-width: 640px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.6;
}

.hb-accessory-archive__count {
	margin: 10px 0 0;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
}

.hb-accessory-archive__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
}

.hb-accessory-archive__filters {
	max-width: 1280px;
	margin: 0 auto 24px;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
}

.hb-accessory-archive__filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hb-accessory-archive__filter label {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.hb-accessory-archive__filter select {
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	background-color: #ffffff;
	font-size: 14px;
	color: #111827;
	width: 230px;
	max-width: 100%;
}

.hb-accessory-archive__filter-submit button {
	border: none;
	border-radius: 8px;
	background-color: var(--hb-color-accent);
	color: var(--hb-color-black);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	cursor: pointer;
}

.hb-accessory-archive__filter-submit button:hover {
	background-color: var(--hb-color-accent-hover);
}

.hb-accessory-archive__empty {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	color: #6b7280;
}

@media ( min-width: 960px ) {
	.hb-accessory__header,
	.hb-section {
		padding: 32px;
	}
}

@media ( max-width: 600px ) {
	.hb-accessory-archive__filter,
	.hb-accessory-archive__filter select {
		width: 100%;
	}

	.hb-accessory-lightbox__close,
	.hb-accessory-lightbox__prev,
	.hb-accessory-lightbox__next {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}

	.hb-accessory-lightbox__prev {
		left: 8px;
	}

	.hb-accessory-lightbox__next {
		right: 8px;
	}

	.hb-accessory__breadcrumb {
		white-space: normal;
		word-break: break-word;
	}

	.hb-accessory__characteristics-table,
	.hb-accessory__characteristics-table tbody,
	.hb-accessory__characteristics-table tr,
	.hb-accessory__characteristics-table th,
	.hb-accessory__characteristics-table td {
		display: block;
		width: 100%;
	}

	.hb-accessory__characteristics-table tr {
		padding: 8px 0;
	}

	.hb-accessory__characteristics-table th {
		padding-bottom: 2px;
	}

	.hb-accessory__characteristics-table td {
		padding-top: 0;
	}
}
