/* Quelle catégorie est pour vous ? — styles front */

.hbc-widget {
	--hbc-navy: #14305f;
	--hbc-navy-dark: #0d2247;
	--hbc-yellow: #f7b500;
	--hbc-yellow-dark: #e0a300;
	--hbc-border: #e2e6ee;
	--hbc-grey: #6b7688;
	--hbc-bg: #ffffff;

	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 28px 32px;
	background: var(--hbc-bg);
	border: 1px solid var(--hbc-border);
	border-radius: 14px;
	box-shadow: 0 2px 14px rgba(20, 48, 95, 0.06);
	color: var(--hbc-navy);
	font-family: inherit;
}

.hbc-widget *,
.hbc-widget *::before,
.hbc-widget *::after {
	box-sizing: border-box;
}

/* Titre */
.hbc-widget .hbc-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: clamp(20px, 3.2vw, 30px);
	line-height: 1.15;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--hbc-navy);
}

.hbc-widget .hbc-title::after {
	content: "";
	display: block;
	width: 90px;
	height: 5px;
	margin-top: 12px;
	border-radius: 3px;
	background: var(--hbc-yellow);
}

.hbc-widget .hbc-intro {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hbc-grey);
	font-style: normal;
}

/* Sélecteur */
.hbc-widget .hbc-form {
	margin-top: 22px;
}

.hbc-widget .hbc-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hbc-navy);
}

.hbc-widget .hbc-select-wrap {
	position: relative;
	max-width: 260px;
}

.hbc-widget .hbc-select-wrap::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid var(--hbc-navy);
	border-bottom: 2px solid var(--hbc-navy);
	transform: rotate(45deg);
	pointer-events: none;
}

.hbc-widget .hbc-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	height: 56px;
	padding: 0 44px 0 18px;
	background: #fff;
	border: 1px solid var(--hbc-border);
	border-radius: 10px;
	color: var(--hbc-navy);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hbc-widget .hbc-select:hover {
	border-color: #c9d0dc;
}

.hbc-widget .hbc-select:focus {
	outline: none;
	border-color: var(--hbc-yellow);
	box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.28);
}

/* Résultats */
.hbc-widget .hbc-results:empty {
	display: none;
}

.hbc-widget .hbc-results {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--hbc-border);
}

.hbc-widget .hbc-results-title {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hbc-grey);
}

.hbc-widget .hbc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hbc-widget .hbc-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 20px 18px;
	background: #fff;
	border: 2px solid var(--hbc-border);
	border-radius: 12px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.hbc-widget .hbc-card:hover {
	border-color: var(--hbc-yellow);
	transform: translateY(-2px);
}

.hbc-widget .hbc-card-name {
	font-size: 22px;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	line-height: 1.1;
	color: var(--hbc-navy);
}

.hbc-widget .hbc-card-meta {
	margin-top: -6px;
	font-size: 13px;
	color: var(--hbc-grey);
}

/* Boutons */
.hbc-widget .hbc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: auto;
	padding: 13px 22px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hbc-widget .hbc-btn-primary,
.hbc-widget .hbc-btn-primary:visited {
	background: var(--hbc-yellow);
	color: var(--hbc-navy);
}

.hbc-widget .hbc-btn-primary:hover,
.hbc-widget .hbc-btn-primary:focus {
	background: var(--hbc-yellow-dark);
	color: var(--hbc-navy);
}

.hbc-widget .hbc-btn-navy,
.hbc-widget .hbc-btn-navy:visited {
	background: var(--hbc-navy);
	color: #fff;
}

.hbc-widget .hbc-btn-navy:hover,
.hbc-widget .hbc-btn-navy:focus {
	background: var(--hbc-navy-dark);
	color: #fff;
}

.hbc-widget .hbc-btn-outline,
.hbc-widget .hbc-btn-outline:visited {
	background: #fff;
	color: var(--hbc-navy);
	border-color: var(--hbc-border);
}

.hbc-widget .hbc-btn-outline:hover,
.hbc-widget .hbc-btn-outline:focus {
	border-color: var(--hbc-navy);
	color: var(--hbc-navy);
}

.hbc-widget .hbc-btn .hbc-arrow {
	font-size: 16px;
	line-height: 1;
}

/* Aucun résultat */
.hbc-widget .hbc-empty {
	padding: 22px;
	background: #f6f8fb;
	border: 1px solid var(--hbc-border);
	border-left: 5px solid var(--hbc-yellow);
	border-radius: 10px;
}

.hbc-widget .hbc-empty p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--hbc-navy);
}

/* Pied */
.hbc-widget .hbc-foot {
	margin-top: 18px;
	font-size: 13px;
	color: var(--hbc-grey);
}

.hbc-widget .hbc-foot a {
	color: var(--hbc-navy);
	font-weight: 700;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.hbc-widget {
		padding: 22px 18px 26px;
		border-radius: 12px;
	}

	.hbc-widget .hbc-select-wrap {
		max-width: 100%;
	}

	.hbc-widget .hbc-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbc-widget * {
		transition: none !important;
	}
}
