/* =============================================================================
   PAGE FORMATION — maquette s2 (/portal/courses)
   ============================================================================= */

body.azl-portal-courses .fhr_content_layout_body {
	background: var(--azl-bg, #f4f5f7) !important;
	padding: 0 var(--azl-layout-page-padding-x, 30px) 60px !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.azl-portal-courses .fhr_content_layout_header,
body.azl-portal-courses .fcom_sticky_header .fhr_content_layout_header,
body.azl-portal-courses .fcom_courses,
body.azl-portal-courses .feed_filters,
body.azl-portal-courses .fcom_space_topics,
body.azl-portal-courses .object_menu,
body.azl-portal-courses .azl-courses-page-intro,
body.azl-portal-courses .azl-courses-page-head,
body.azl-portal-courses .azl-courses-filters,
body.azl-portal-courses .azl-courses-dashboard {
	display: none !important;
}

body.azl-portal-courses .fcom_single_layout.fcom_max_layout,
body.azl-portal-courses .fcom_single_layout,
body.azl-portal-courses .fhr_content_layout,
body.azl-portal-courses .no_bg_layout.fhr_content_layout,
body.azl-portal-courses .feeds_main {
	max-width: none !important;
	width: 100% !important;
	background: transparent !important;
}

/* ── Shell Formation — pleine largeur (comme accueil / trousse) ─────────── */

body.azl-portal-courses .azl-formation {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 12px 0 40px;
	box-sizing: border-box;
}

body.azl-portal-courses .azl-formation__title {
	margin: 0 0 8px;
	font-size: 25px;
	font-weight: 800;
	color: var(--azl-ink, #16191d);
	line-height: 1.25;
}

body.azl-portal-courses .azl-formation__lead {
	margin: 0 0 20px;
	font-size: 14.5px;
	color: var(--azl-muted, #6b7280);
	line-height: 1.65;
	max-width: 720px;
}

body.azl-portal-courses .azl-formation__banner {
	display: flex;
	gap: 20px;
	align-items: center;
	border-radius: var(--azl-radius, 14px);
	padding: 18px 20px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

body.azl-portal-courses .azl-formation__banner--search {
	background: var(--azl-banner-search-gradient, linear-gradient(125deg, #0d2129, #0e5a68));
	color: #fff;
	border: none;
}

body.azl-portal-courses .azl-formation__banner--guide {
	background: var(--azl-banner-guide-bg, #f7fdfe);
	border: 1px solid var(--azl-banner-guide-border, #bfe6ed);
}

body.azl-portal-courses .azl-formation__banner-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.16);
	display: grid;
	place-items: center;
	font-size: 19px;
	flex-shrink: 0;
}

body.azl-portal-courses .azl-formation__guide-play {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--azl-primary-500, #0e8fa3);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 19px;
	font-weight: 800;
	flex-shrink: 0;
	border: none;
	cursor: pointer;
	padding: 0;
	padding-left: 3px;
	line-height: 1;
}

body.azl-portal-courses .azl-formation__guide-play:hover {
	background: var(--azl-primary-600, #0a6f80);
}

body.azl-portal-courses .azl-formation__banner-copy {
	flex: 1;
	min-width: 220px;
}

body.azl-portal-courses .azl-formation__banner-title {
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 5px;
	line-height: 1.3;
}

body.azl-portal-courses .azl-formation__banner--guide .azl-formation__banner-title {
	font-size: 15.5px;
	color: var(--azl-banner-guide-title, var(--azl-ink, #16191d));
}

body.azl-portal-courses .azl-formation__banner-text {
	font-size: 13px;
	color: var(--azl-banner-search-text, #a9c4cb);
	line-height: 1.6;
	margin: 0;
	max-width: 620px;
}

body.azl-portal-courses .azl-formation__banner-text--muted {
	color: var(--azl-muted, #6b7280);
}

body.azl-portal-courses .azl-formation__banner .azl-btn--on-dark {
	background: #fff;
	color: #0a5461;
	width: auto;
	flex-shrink: 0;
}

body.azl-portal-courses .azl-formation__banner .azl-btn--on-dark:hover {
	background: #f3f7f8;
	color: #0a5461;
}

body.azl-portal-courses .azl-formation__banner .azl-btn--teal {
	background: var(--azl-primary-500, #0e8fa3);
	color: #fff;
	flex-shrink: 0;
}

body.azl-portal-courses .azl-formation__empty {
	font-size: 14px;
	color: var(--azl-muted, #6b7280);
}

/* ── Grille modcards ─────────────────────────────────────────────────────── */

body.azl-portal-courses .azl-mods {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 8px;
}

body.azl-portal-courses .azl-modcard {
	border-radius: var(--azl-radius, 14px);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--azl-line, #e5e7eb);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.azl-portal-courses .azl-modcard:hover {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09);
	transform: translateY(-2px);
}

body.azl-portal-courses .azl-modcard__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
	min-height: 100%;
}

body.azl-portal-courses .azl-modcard__link:hover {
	color: inherit;
}

body.azl-portal-courses .azl-modcard__cover {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px 20px;
	box-sizing: border-box;
}

body.azl-portal-courses .azl-modcard__cover--photo {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

body.azl-portal-courses .azl-modcard__cover--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		180deg,
		rgba(13, 33, 41, 0.2) 0%,
		rgba(13, 33, 41, 0.55) 45%,
		rgba(13, 33, 41, 0.82) 100%
	);
	pointer-events: none;
}

body.azl-portal-courses .azl-modcard__glyph {
	position: absolute;
	right: -20px;
	bottom: -26px;
	width: 175px;
	height: 175px;
	opacity: 0.16;
	z-index: 0;
	pointer-events: none;
}

body.azl-portal-courses .azl-modcard__brand {
	position: absolute;
	top: 16px;
	right: 18px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.55);
	z-index: 1;
}

body.azl-portal-courses .azl-modcard__kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 6px;
	position: relative;
	z-index: 1;
}

body.azl-portal-courses .azl-modcard__title {
	font-size: 22px;
	font-weight: 900;
	line-height: 1.08;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	position: relative;
	z-index: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.azl-portal-courses .azl-modcard__body {
	padding: 16px 20px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

body.azl-portal-courses .azl-modcard__desc {
	font-size: 12.5px;
	color: var(--azl-muted, #6b7280);
	line-height: 1.6;
	flex: 1;
	margin: 0 0 13px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.azl-portal-courses .azl-modcard__meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 13px;
}

body.azl-portal-courses .azl-modcard__meta span {
	font-size: 10.5px;
	font-weight: 700;
	color: #6b7280;
	background: #f1f4f6;
	padding: 4px 9px;
	border-radius: 99px;
}

body.azl-portal-courses .azl-modcard__bar {
	height: 6px;
	background: var(--azl-line, #e5e7eb);
	border-radius: 99px;
	margin: 0 0 7px;
	overflow: hidden;
}

body.azl-portal-courses .azl-modcard__bar i {
	display: block;
	height: 100%;
	background: var(--azl-primary-500, #0e8fa3);
	border-radius: 99px;
}

body.azl-portal-courses .azl-modcard__pct {
	font-size: 11px;
	color: #9ca3af;
	font-weight: 700;
	letter-spacing: 0.05em;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */

body.azl-portal-courses .azl-formation__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
	flex-wrap: wrap;
}

body.azl-portal-courses .azl-formation__pager-btn,
body.azl-portal-courses .azl-formation__page-num {
	appearance: none;
	border: 1px solid var(--azl-line, #e5e7eb);
	background: #fff;
	color: var(--azl-ink, #16191d);
	font-size: 12.5px;
	font-weight: 700;
	padding: 9px 14px;
	border-radius: 10px;
	cursor: pointer;
	line-height: 1;
}

body.azl-portal-courses .azl-formation__pager-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

body.azl-portal-courses .azl-formation__page-num.is-active {
	background: var(--azl-primary-500, #0e8fa3);
	border-color: var(--azl-primary-500, #0e8fa3);
	color: #fff;
}

body.azl-portal-courses .azl-formation__pager-pages {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

@media (max-width: 1100px) {
	body.azl-portal-courses .azl-mods {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	body.azl-portal-courses .fhr_content_layout_body {
		padding: 0 16px 40px !important;
	}

	body.azl-portal-courses .azl-mods {
		grid-template-columns: 1fr;
	}

	body.azl-portal-courses .azl-formation__banner .azl-btn {
		width: 100%;
	}
}
