/* HITOP Agenda — Front Office (point 4, 20) */

.hitop-agenda-liste {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 24px 0;
}

.hitop-agenda-card {
	display: flex;
	flex-direction: row;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hitop-agenda-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hitop-agenda-card__image {
	flex: 0 0 240px;
	max-width: 240px;
	background: #f0f0f0;
}

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

.hitop-agenda-card__content {
	flex: 1;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hitop-agenda-card__title {
	margin: 0;
	font-size: 1.25em;
}

.hitop-agenda-card__title a {
	text-decoration: none;
	color: inherit;
}

.hitop-agenda-card__badges,
.hitop-agenda-single__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hitop-agenda-badge {
	display: inline-block;
	background: #f2f4f7;
	color: #333;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.85em;
	white-space: nowrap;
}

.hitop-agenda-badge--cadre {
	background: #eef2ff;
	color: #3730a3;
}

.hitop-agenda-badge--tarif {
	background: #ecfdf5;
	color: #065f46;
	font-weight: 600;
}

.hitop-agenda-badge--repetition {
	background: #eff6ff;
	color: #1e40af;
}

.hitop-agenda-card__excerpt {
	color: #555;
	font-size: 0.95em;
}

.hitop-agenda-btn {
	display: inline-block;
	background: #2563eb;
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-align: center;
	margin-right: 8px;
	margin-bottom: 8px;
}

.hitop-agenda-btn:hover {
	background: #1d4ed8;
}

.hitop-agenda-btn--secondary {
	background: #f2f4f7;
	color: #111 !important;
}

.hitop-agenda-btn--secondary:hover {
	background: #e2e6ea;
}

.hitop-agenda-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin: 24px 0;
	flex-wrap: wrap;
}

.hitop-agenda-pagination .page-numbers {
	padding: 6px 12px;
	border-radius: 6px;
	background: #f2f4f7;
	text-decoration: none;
	color: #333;
}

.hitop-agenda-pagination .page-numbers.current {
	background: #2563eb;
	color: #fff;
}

/* Fiche événement */

.hitop-agenda-single__image img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 20px;
}

.hitop-agenda-single__title {
	margin-top: 8px;
}

.hitop-agenda-single__actions {
	margin: 18px 0;
}

.hitop-agenda-single__content {
	margin-top: 20px;
	line-height: 1.6;
}

/* Formulaire participation (points 9-14) */

.hitop-agenda-participation {
	margin-top: 32px;
	padding: 20px;
	background: #f9fafb;
	border-radius: 12px;
}

.hitop-agenda-participation__intro {
	color: #555;
}

.hitop-agenda-form__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
	flex: 1;
}

.hitop-agenda-form__row-group {
	display: flex;
	gap: 16px;
}

.hitop-agenda-form__row-group .hitop-agenda-form__row {
	flex: 1;
	min-width: 0;
}

@media (max-width: 480px) {
	.hitop-agenda-form__row-group {
		flex-direction: column;
		gap: 0;
	}
}

.hitop-agenda-form__row input[type="text"],
.hitop-agenda-form__row input[type="email"] {
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
}

.hitop-agenda-form__checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.95em;
}

.hitop-agenda-form__rgpd-mention {
	font-size: 0.8em;
	color: #777;
	margin-bottom: 14px;
}

/* Honeypot invisible (point 13) */
.hitop-agenda-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hitop-agenda-form__feedback {
	margin-top: 10px;
	font-weight: 600;
}

.hitop-agenda-form__feedback.is-success {
	color: #065f46;
}

.hitop-agenda-form__feedback.is-error {
	color: #b91c1c;
}

/* Bloc « déjà inscrit » */
.hitop-agenda-deja-inscrit {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	padding: 16px 18px;
}

.hitop-agenda-deja-inscrit__badge {
	font-weight: 700;
	color: #065f46;
	margin-top: 0;
}

.hitop-agenda-deja-inscrit__actions {
	font-size: 0.85em;
}

.hitop-agenda-deja-inscrit__actions a {
	color: #555;
}

/* Responsive mobile (points 4, 20) */
@media (max-width: 640px) {
	.hitop-agenda-card {
		flex-direction: column;
	}

	.hitop-agenda-card__image {
		flex: none;
		max-width: 100%;
		height: 180px;
	}

	.hitop-agenda-btn {
		width: 100%;
		margin-right: 0;
	}
}
