/* Wrapper */
.ldy-exo-wrap {
	--gap: 18px;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--shadow2: 0 12px 40px rgba(0, 0, 0, 0.14);
}

/* Filtre */
.ldy-exo-filter {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.ldy-exo-filter-btn {
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: #fff;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 14px;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		background 0.15s ease;
}

.ldy-exo-filter-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.ldy-exo-filter-btn.is-active {
	background: rgba(0, 0, 0, 0.06);
	border-color: rgba(0, 0, 0, 0.22);
}

.ldy-exo-filter-select {
	margin-left: auto;
	border-radius: 12px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: #fff;
}

/* Grille */
.ldy-exo-grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Carte */
.ldy-exo-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.ldy-exo-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow2);
}

.ldy-exo-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: rgba(0, 0, 0, 0.06);
}

.ldy-exo-video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.ldy-exo-hoverhint {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	opacity: 0;
	transform: translateY(4px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
	pointer-events: none;
}

.ldy-exo-card:hover .ldy-exo-hoverhint {
	opacity: 1;
	transform: translateY(0);
}

.ldy-exo-missing {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	color: rgba(0, 0, 0, 0.55);
	font-size: 14px;
}

.ldy-exo-body {
	padding: 14px 14px 16px;
}

.ldy-exo-title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.2;
}

.ldy-exo-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.72);
}

/* Mobile : le select devient prioritaire */
@media (max-width: 600px) {
	.ldy-exo-filter-select {
		width: 100%;
		margin-left: 0;
	}
}
