/* Art Studio Azur ACADÉMIE — course list + single course.
   Builds on homepage.css (palette, .asa-btn, .asa-hero, .asa-section-title),
   which is always enqueued before this file. Same contrast rules:
   #f2f2f2 / #cfcfcf on #000–#151517 (WCAG AA). */

/* Hero */
.asa-home .asa-academy__hero {
	min-height: 50vh;
}

/* Long French course titles / unbroken words must wrap, never push the
   page sideways on phones. */
.asa-academy .asa-hero__title,
.asa-course-card__title,
.asa-course__facts dd,
.asa-course__dates li {
	overflow-wrap: anywhere;
}

.asa-home .asa-academy__hero--single {
	min-height: 40vh;
}

.asa-academy__intro {
	color: #cfcfcf;
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 680px;
	margin: 0 auto;
}

.asa-academy__intro p {
	margin: 0 0 1em;
}

.asa-academy__lead {
	color: #cfcfcf;
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 680px;
	margin: 0 auto;
}

.asa-academy__back {
	margin: 0 0 1.5rem;
	font-size: 0.9rem;
}

.asa-academy__back a {
	color: #cfcfcf;
	text-decoration: none;
}

.asa-academy__back a:hover,
.asa-academy__back a:focus-visible {
	color: #f2f2f2;
	text-decoration: underline;
}

/* Filters */
.asa-academy__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: 0 0 3rem;
}

.asa-academy__filters a {
	display: inline-flex;
	align-items: center;
	min-height: 44px; /* touch target */
	padding: 0.5rem 1.1rem;
	border: 1px solid #4a4a4e;
	border-radius: 999px;
	color: #cfcfcf;
	text-decoration: none;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.asa-academy__filters a:hover,
.asa-academy__filters a:focus-visible,
.asa-academy__filters a[aria-current="page"] {
	border-color: #f2f2f2;
	color: #f2f2f2;
}

/* Course grid */
.asa-academy__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 1.5rem;
}

.asa-course-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #151517;
	border: 1px solid #232326;
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.asa-course-card:hover,
.asa-course-card:focus-within {
	border-color: #f2f2f2;
	transform: translateY(-3px);
}

/* Keyboard focus lands on the title link (stretched over the card), so
   show the focus ring on the card itself. */
.asa-course-card:focus-within {
	outline: 2px solid #f2f2f2;
	outline-offset: 2px;
}

.asa-course-card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #0b0b0c;
}

.asa-course-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.asa-course-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem;
}

.asa-course-card__type {
	margin: 0 0 0.5rem;
	color: #cfcfcf;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.asa-course-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.asa-course-card__title a {
	color: #f2f2f2;
	text-decoration: none;
}

/* Whole card clickable, one link per card for screen readers. */
.asa-course-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.asa-course-card__title a:focus-visible {
	outline: none;
}

.asa-course-card__excerpt {
	margin: 0 0 1rem;
	color: #cfcfcf;
	font-size: 0.92rem;
	line-height: 1.55;
}

.asa-course-card__meta {
	margin: 0 0 1.25rem;
	color: #cfcfcf;
	font-size: 0.85rem;
}

.asa-course-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #232326;
	font-size: 0.9rem;
}

.asa-course-card__price {
	font-weight: 600;
}

.asa-course-card__more {
	margin-left: auto;
	color: #cfcfcf;
}

.asa-academy__empty {
	text-align: center;
	color: #cfcfcf;
	border: 1px dashed #3a3a3e;
	padding: 2.5rem 1.5rem;
	border-radius: 4px;
	max-width: 680px;
	margin: 0 auto;
}

/* Pagination */
.asa-academy__pagination {
	margin-top: 3rem;
	text-align: center;
}

.asa-academy__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.asa-academy__pagination .page-numbers {
	padding: 0.4rem 0.8rem;
	border: 1px solid #4a4a4e;
	color: #cfcfcf;
	text-decoration: none;
}

.asa-academy__pagination .page-numbers.current,
.asa-academy__pagination a.page-numbers:hover {
	border-color: #f2f2f2;
	color: #f2f2f2;
}

/* Bottom CTA */
.asa-academy__cta {
	text-align: center;
}

.asa-academy__cta p {
	color: #cfcfcf;
	margin: 0 0 1.5rem;
}

/* Single course */
.asa-course__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 3rem;
	align-items: start;
}

.asa-course__media {
	margin: 0 0 2rem;
}

.asa-course__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.asa-course__text {
	color: #e4e4e4;
	line-height: 1.75;
}

.asa-course__text a {
	color: #f2f2f2;
}

.asa-course__subtitle {
	margin: 2.5rem 0 1rem;
	font-size: 1.25rem;
}

.asa-course__aside {
	position: sticky;
	top: 6rem;
	padding: 1.75rem;
	background: #151517;
	border: 1px solid #232326;
	border-radius: 4px;
}

.asa-course__facts {
	margin: 0 0 1.5rem;
}

.asa-course__facts div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #232326;
}

.asa-course__facts dt {
	color: #cfcfcf;
	font-size: 0.85rem;
}

.asa-course__facts dd {
	margin: 0;
	text-align: right;
	font-size: 0.92rem;
}

.asa-course__aside-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.asa-course__dates {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.asa-course__dates li {
	padding: 0.4rem 0 0.4rem 1.1rem;
	position: relative;
	font-size: 0.92rem;
}

.asa-course__dates li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95rem;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: #f2f2f2;
}

.asa-course__cta {
	display: block;
	text-align: center;
}

.asa-course__cta-note {
	margin: 0.75rem 0 0;
	color: #cfcfcf;
	font-size: 0.8rem;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.asa-course-card,
	.asa-academy__filters a {
		transition: none !important;
	}
	.asa-course-card:hover,
	.asa-course-card:focus-within {
		transform: none !important;
	}
}

@media (max-width: 900px) {
	.asa-course__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.asa-course__aside {
		position: static;
	}
}

@media (max-width: 600px) {
	.asa-course__facts div {
		flex-direction: column;
		gap: 0.2rem;
	}
	.asa-course__facts dd {
		text-align: left;
	}
	.asa-course__aside {
		padding: 1.25rem;
	}
}
