/* Digital Jouss' – Inscriptions Événements */
.djer-register-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

/*
 * Boutons : on hérite automatiquement du style JetEngine Dynamic Link
 * via la classe .jet-listing-dynamic-link__link ajoutée côté PHP.
 * On ne définit ici qu'un fallback minimal au cas où JetEngine n'est pas
 * encore chargé sur la page.
 */
.djer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	background: transparent;
	font: inherit;
	line-height: 1.2;
	transition: opacity 0.15s ease;
}

.djer-btn:active {
	transform: scale( 0.98 );
}

.djer-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.djer-btn-unregister {
	margin-left: 12px;
}

.djer-status-registered {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	background: #d1fae5;
	color: #065f46;
	border-radius: 50px;
	font-weight: 600;
}

.djer-status-locked {
	display: inline-block;
	padding: 12px 20px;
	background: #fef3c7;
	color: #92400e;
	border-left: 4px solid #f59e0b;
	border-radius: 6px;
	font-weight: 600;
	max-width: 100%;
}
.djer-status-locked .djer-status-text {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
}
.djer-status-locked .djer-locked-note {
	font-size: 13px;
	font-weight: 400;
	color: #92400e;
	line-height: 1.5;
}

.djer-status-locked-after {
	display: block;
}

.djer-message {
	margin-top: 10px;
	font-size: 14px;
	min-height: 1.4em;
}

.djer-message.is-success {
	color: #065f46;
}

.djer-message.is-error {
	color: #b91c1c;
}

/* ------------------------------------------------------------------ *
 *  LISTING D'ÉVÉNEMENTS (grille de cartes)
 * ------------------------------------------------------------------ */

.djer-events-grid {
	display: grid;
	gap: 24px;
	margin: 20px 0;
}

.djer-events-cols-1 { grid-template-columns: 1fr; }
.djer-events-cols-2 { grid-template-columns: repeat( 2, 1fr ); }
.djer-events-cols-3 { grid-template-columns: repeat( 3, 1fr ); }
.djer-events-cols-4 { grid-template-columns: repeat( 4, 1fr ); }

@media ( max-width: 1024px ) {
	.djer-events-cols-3,
	.djer-events-cols-4 { grid-template-columns: repeat( 2, 1fr ); }
}

@media ( max-width: 600px ) {
	.djer-events-grid { grid-template-columns: 1fr !important; }
}

.djer-event-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba( 2, 51, 88, 0.08 );
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.djer-event-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 8px 20px rgba( 2, 51, 88, 0.15 );
}

.djer-event-thumb-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
}

.djer-event-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.djer-event-card:hover .djer-event-thumb {
	transform: scale( 1.04 );
}

.djer-event-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: #9ca3af;
	background: linear-gradient( 135deg, #f0f4f8, #d9e3ec );
	width: 100%;
	height: 100%;
}

.djer-event-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.djer-event-date {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	margin-bottom: 8px;
}

.djer-event-title {
	font-size: 19px;
	font-weight: 700;
	color: #023358;
	margin: 0 0 14px;
	line-height: 1.3;
}

.djer-event-title a {
	color: inherit;
	text-decoration: none;
}

.djer-event-title a:hover {
	text-decoration: underline;
}

.djer-event-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	background: #d1fae5;
	color: #065f46;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 10px;
}

.djer-event-cta {
	margin-top: auto;
	display: inline-block;
	padding: 10px 18px;
	background: #023358;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: background 0.15s ease;
}

.djer-event-cta:hover {
	background: #034a82;
}

.djer-event-cta.is-registered {
	background: transparent;
	color: #023358 !important;
	border: 1px solid #023358;
}

.djer-event-cta.is-registered:hover {
	background: #023358;
	color: #fff !important;
}

.djer-events-empty {
	padding: 40px 20px;
	text-align: center;
	color: #6b7280;
	background: #f9fafb;
	border-radius: 8px;
	font-style: italic;
}
