/* HBC Événements : page d'un événement (carte « date et lieu », encadré « Réserver »).
   Les couleurs suivent les variables du site, et celles de l'ambiance de la page quand elle en a une. */

.hbc-evt-info {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1rem;
	border: 1px solid var(--hbc-border, #C9CFDD);
	border-left: 4px solid var(--hbc-blue, #2B3BB0);
	border-radius: 0 0.9rem 0.9rem 0;
	background: #fff;
	padding: 0.75rem 1rem;
	color: var(--hbc-navy, #161D4F);
	font-weight: 800;
}

.hbc-evt-info svg {
	flex: 0 0 auto;
	color: var(--hbc-blue, #2B3BB0);
}

/* ---------- Encadré « Réserver » ---------- */

.hbc-evt-book-cta {
	--cta-accent: var(--hbc-amb-accent, var(--hbc-blue, #2B3BB0));
	--cta-accent-ink: var(--hbc-amb-ink, #fff);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 0 0 1.5rem;
}

.hbc-evt-book-cta-end {
	margin-top: 2rem;
}

.hbc-evt-book-cta-end .hbc-evt-book-cta {
	margin-bottom: 0;
}

.hbc-evt-book-cta p {
	margin: 0;
}

.hbc-evt-book-cta__body {
	display: grid;
	flex: 1 1 16rem;
	gap: 0.35rem;
	min-width: 0;
}

.hbc-evt-book-cta__title {
	color: var(--hbc-navy, #161D4F);
	font-size: 1.15rem;
	font-weight: 850;
	line-height: 1.2;
}

.hbc-evt-book-cta__text {
	color: var(--hbc-ink, #1B2147);
	font-size: 0.95rem;
	line-height: 1.5;
}

.hbc-evt-book-cta__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.hbc-evt-book-cta__meta span {
	border-radius: 999px;
	background: color-mix(in srgb, var(--cta-accent) 14%, transparent);
	padding: 0.2rem 0.65rem;
	color: var(--hbc-blue, #2B3BB0);
	font-size: 0.8rem;
	font-weight: 800;
}

.hbc-evt-book-cta__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--cta-accent) 16%, transparent);
	color: var(--hbc-blue, #2B3BB0);
}

.hbc-entry-content .hbc-evt-book-cta a.hbc-evt-book-cta__btn,
.hbc-evt-book-cta a.hbc-evt-book-cta__btn {
	flex: 0 0 auto;
	box-sizing: border-box;
	max-width: 100%;
	color: #fff;
	text-decoration: none;
}

/* Bouton seul : comme avant, avec les places restantes à côté. */
.hbc-evt-book-cta--bouton .hbc-evt-book-cta__meta span {
	background: none;
	padding: 0;
	color: var(--hbc-muted, #4A5068);
	font-weight: 600;
}

.hbc-evt-book-cta--bouton .hbc-evt-book-cta__meta span + span::before {
	content: "· ";
}

/* Encadré : fond légèrement teinté, bordure d'accent à gauche (même famille que la carte « date et lieu »). */
.hbc-evt-book-cta--encadre {
	border: 1px solid var(--hbc-border, #C9CFDD);
	border-left: 4px solid var(--cta-accent);
	border-radius: 0 1rem 1rem 0;
	background: color-mix(in srgb, var(--cta-accent) 7%, var(--hbc-surface, #fff));
	padding: 1rem 1.25rem;
}

/* Bandeau : aplat de la couleur d'accent, bouton inversé. */
.hbc-evt-book-cta--bandeau {
	position: relative;
	overflow: hidden;
	border-radius: 1.2rem;
	background:
		radial-gradient(18rem 10rem at 100% 0%, rgb(255 255 255 / 22%), transparent 70%),
		var(--cta-accent);
	padding: 1.3rem 1.5rem;
	color: var(--cta-accent-ink);
	box-shadow: 0 1rem 2rem color-mix(in srgb, var(--cta-accent) 30%, transparent);
}

.hbc-evt-book-cta--bandeau .hbc-evt-book-cta__title {
	color: inherit;
	font-size: 1.3rem;
}

.hbc-evt-book-cta--bandeau .hbc-evt-book-cta__text {
	color: inherit;
	opacity: 0.92;
}

.hbc-evt-book-cta--bandeau .hbc-evt-book-cta__meta span {
	background: color-mix(in srgb, currentColor 16%, transparent);
	color: inherit;
}

.hbc-evt-book-cta--bandeau .hbc-evt-book-cta__icon {
	background: color-mix(in srgb, currentColor 16%, transparent);
	color: inherit;
}

/* Bouton inversé (plus précis que les règles d'ambiance de HBC Éditeur). */
.hbc-main .hbc-entry-content .hbc-evt-book-cta.hbc-evt-book-cta--bandeau a.hbc-button.hbc-evt-book-cta__btn,
.hbc-evt-book-cta.hbc-evt-book-cta--bandeau a.hbc-button.hbc-evt-book-cta__btn {
	border-color: var(--cta-accent-ink);
	background: var(--cta-accent-ink);
	color: var(--cta-accent);
	box-shadow: none;
	filter: none;
}

@media (max-width: 560px) {
	.hbc-evt-book-cta--encadre,
	.hbc-evt-book-cta--bandeau {
		padding: 1rem;
	}

	.hbc-evt-book-cta__icon {
		display: none;
	}

	.hbc-evt-book-cta--encadre a.hbc-evt-book-cta__btn,
	.hbc-evt-book-cta--bandeau a.hbc-evt-book-cta__btn {
		width: 100%;
	}
}

/* ---------- Aperçu dans la fiche de l'événement (sans le thème du site) ---------- */

.hbc-evt-cta-preview {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #E4E7EF;
	padding: 1rem;
	font-size: 15px;
}

.hbc-evt-cta-preview__page {
	border-radius: 0.9rem;
	background: var(--hbc-surface, #F3F4F8);
	padding: 1rem;
	color: var(--hbc-ink, #1B2147);
}

.hbc-evt-cta-preview__page > p.hbc-evt-cta-preview__ph {
	margin: 0 0 1rem;
	color: var(--hbc-muted, #4A5068);
	font-style: italic;
}

.hbc-evt-cta-preview .hbc-evt-book-cta {
	margin-bottom: 1rem;
}

.hbc-evt-cta-preview .hbc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--cta-accent);
	border-radius: 999px;
	background: var(--cta-accent);
	padding: 0.7rem 1.15rem;
	color: var(--cta-accent-ink);
	font-size: 0.88rem;
	font-weight: 850;
	text-decoration: none;
}

.hbc-evt-cta-preview .hbc-evt-book-cta a.hbc-evt-book-cta__btn {
	color: var(--cta-accent-ink);
}

.hbc-evt-cta-preview .hbc-evt-book-cta.hbc-evt-book-cta--bandeau a.hbc-button.hbc-evt-book-cta__btn {
	color: var(--cta-accent);
}

.hbc-evt-cta-preview[data-empty="1"] .hbc-evt-book-cta {
	display: none;
}
