: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;
}

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

article.hb-brand,
main.hb-brand-archive {
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 24px 48px;
}

article.hb-brand *,
main.hb-brand-archive * {
	box-sizing: border-box;
}

.hb-breadcrumb {
	margin: 0 0 16px;
	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;
}

/*
 * max-width: none — .hb-section est aussi défini, sans portée, dans
 * accessories.css (max-width: 900px), chargé sur la fiche marque pour
 * réutiliser les cartes Machine/Accessoire (voir BrandModule::register_assets()).
 * Cette règle ne redéfinissait jusqu'ici que padding/fond/ombre, jamais
 * max-width : la valeur d'accessories.css s'appliquait donc par défaut à
 * .hb-section ici (en-tête compris), plus étroite que le conteneur
 * article.hb-brand (1280px). none neutralise explicitement cet héritage
 * pour toutes les sections de ce template, sans toucher à accessories.css.
 */
.hb-brand .hb-section {
	max-width: none;
	margin-bottom: 16px;
	padding: 20px 24px;
	background-color: #ffffff;
	border-radius: var(--hb-card-radius);
	box-shadow: var(--hb-card-shadow);
}

.hb-brand .hb-section:last-child {
	margin-bottom: 0;
}

.hb-brand .hb-section h2 {
	margin: 0 0 12px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #111827;
}

.hb-section .hb-card {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

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

.hb-brand__hero-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	background-color: #fafbfc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}

.hb-brand__hero-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.hb-brand__hero-logo-placeholder {
	font-size: 36px;
	color: #9ca3af;
}

.hb-brand__name {
	margin: 0 0 10px;
	font-size: 1.7rem;
	font-weight: 700;
	color: #111827;
}

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

.hb-brand__fact {
	display: flex;
	flex-direction: column;
	font-size: 0.88rem;
}

.hb-brand__fact-label {
	color: #6b7280;
}

.hb-brand__fact-value {
	color: #111827;
	font-weight: 600;
}

.hb-brand__sales-contact-facts {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.hb-brand__sales-contact-fact {
	display: flex;
	flex-direction: column;
	font-size: 0.9rem;
}

.hb-brand__sales-contact-fact-label {
	color: #6b7280;
}

.hb-brand__sales-contact-fact-value {
	color: #111827;
	font-weight: 600;
}

.hb-brand__sales-contact-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

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

.hb-brand__sales-contact-button:hover,
.hb-brand__sales-contact-button:focus {
	background-color: var(--hb-color-accent-hover);
}

.hb-brand__sales-contact-button--whatsapp {
	background-color: #25d366;
	color: #ffffff;
}

.hb-brand__sales-contact-button--whatsapp:hover,
.hb-brand__sales-contact-button--whatsapp:focus {
	background-color: #1ebc59;
}

.hb-brand__history-content,
.hb-brand__market-zone p {
	color: #374151;
	font-size: 0.95rem;
}

.hb-brand__history-content p:first-child {
	margin-top: 0;
}

.hb-brand__history-content p:last-child {
	margin-bottom: 0;
}

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

.hb-brand__marketplace {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
}

.hb-brand__marketplace-name {
	min-width: 90px;
	font-weight: 600;
	color: #111827;
}

.hb-brand__marketplace-stars {
	color: #f59e0b;
	letter-spacing: 1px;
}

.hb-brand__marketplace-comment {
	margin: 0;
	color: #6b7280;
	font-size: 0.88rem;
	font-style: italic;
}

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

.hb-brand__contact-link {
	display: inline-block;
	padding: var(--hb-cta-padding-y) var(--hb-cta-padding-x);
	background-color: var(--hb-color-accent);
	border: 1px solid transparent;
	border-radius: var(--hb-cta-radius);
	color: var(--hb-color-black);
	font-weight: var(--hb-cta-weight);
	font-size: 0.9rem;
	line-height: var(--hb-cta-line-height);
	text-decoration: none;
	transition: var(--hb-cta-transition);
}

.hb-brand__contact-link:hover,
.hb-brand__contact-link:focus {
	background-color: var(--hb-color-accent-hover);
}

.hb-brand__faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hb-brand__faq-item {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px 20px;
}

.hb-brand__faq-question {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.hb-brand__faq-question::-webkit-details-marker {
	display: none;
}

.hb-brand__faq-question::after {
	content: "+";
	float: right;
	font-weight: 400;
}

.hb-brand__faq-item[open] .hb-brand__faq-question::after {
	content: "−";
}

.hb-brand__faq-answer {
	margin: 12px 0 0;
	color: #4b5563;
}

.hb-machine-card__brand-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.hb-machine-card__brand-link:hover .hb-machine-card__brand,
.hb-machine-card__brand-link:focus .hb-machine-card__brand {
	text-decoration: underline;
}

a.hb-machine__brand {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
}

a.hb-machine__brand:hover,
a.hb-machine__brand:focus {
	text-decoration: underline;
}

.hb-brand-archive__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hb-brand-archive__title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	color: #111827;
}

.hb-brand-archive__empty {
	padding: 24px;
	background-color: #ffffff;
	border-radius: 10px;
	color: #6b7280;
	text-align: center;
}

.hb-brand-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.hb-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--hb-card-padding-y) var(--hb-card-padding-x);
	background-color: #ffffff;
	border-radius: var(--hb-card-radius);
	box-shadow: var(--hb-card-shadow);
}

.hb-brand-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin-bottom: 14px;
	background-color: #fafbfc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}

.hb-brand-card__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.hb-brand-card__logo-placeholder {
	font-size: 30px;
	color: #9ca3af;
}

.hb-brand-card__name {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
}

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

.hb-brand-card__country {
	margin: 0 0 4px;
	color: #6b7280;
	font-size: 0.88rem;
}

.hb-brand-card__machine-count {
	margin: 0 0 14px;
	color: #374151;
	font-size: 0.85rem;
}

.hb-brand-card__cta {
	display: block;
	width: 100%;
	padding: 10px 16px;
	background-color: var(--hb-color-accent);
	border-radius: 8px;
	color: var(--hb-color-black);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

.hb-brand-card__cta:hover,
.hb-brand-card__cta:focus {
	background-color: var(--hb-color-accent-hover);
}

@media (min-width: 640px) {
	.hb-brand__hero {
		flex-direction: row;
		align-items: center;
	}

	.hb-brand-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hb-brand__sales-contact-facts {
		flex-direction: row;
		align-items: flex-start;
	}

	.hb-brand__sales-contact-actions {
		flex-direction: row;
	}
}

@media (min-width: 900px) {
	article.hb-brand,
	main.hb-brand-archive {
		padding: 32px 32px 56px;
	}

	.hb-brand-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 480px) {
	.hb-brand__contact-list {
		flex-direction: column;
	}

	.hb-brand__contact-link {
		text-align: center;
	}
}
