/**
 * GHA Catalogue — Encarts de découverte V2 (§5.4), CSS nettoyé et borné.
 *
 * Copié depuis `prototypes/archive-cours/v2.css` (Step 2), sous
 * `body.gha-courses-archive` et le media query desktop du catalogue
 * (992.02px, distinct du seuil 600.02px des chips). `body.gha-courses-archive`
 * — et non `.gha-courses-archive` — est déterminant : la home a un wrapper
 * `<div class="gha-courses-archive">` (front-page.php), jamais posé sur
 * `<body>` (seules les pages d'archive/taxonomie cours reçoivent cette
 * classe de corps, gha_archive_courses_body_class() dans functions.php).
 * Un sélecteur `body.gha-courses-archive` ne peut donc jamais matcher à
 * l'intérieur de ce wrapper de la home : ces règles y restent inertes.
 *
 * Deux variantes claires du prototype (v2-category-light « beige » et
 * v2-category-blue « bleu ciel ») sont fusionnées ici sous la seule classe
 * v2-category-blue : accents bleus et halo conservés sur fond blanc, cadrage utile de
 * v2-category-light transféré (flat-tile img, masques, mosaïque 3 colonnes,
 * object-position des .v2-next-topic), ancienne classe et couleurs beiges
 * supprimées. Voir le tableau de sort par règle dans le rapport de Task 3.
 *
 * Exclus de ce portage (non nécessaires en production, voir rapport) :
 * `.gha-events-band[hidden],#section-elearning[hidden]{display:none!important}`
 * et `.gha-events-band:empty{display:none!important}` — artefacts du
 * scénario `v2-base.js`, où `.gha-events-band` existe toujours et se masque
 * via CSS ; côté WordPress, l'élément n'est tout simplement pas rendu quand
 * aucun événement n'existe (D5, archive-course-init.php). `.v2-sr-only` —
 * seul appelant dans le prototype (`status`, région d'annonce dédiée) non
 * porté : l'annonce reste `.gha-topic-result`, déjà stylée ailleurs.
 * `html{scroll-behavior:auto!important}` sous prefers-reduced-motion — la
 * réduction de mouvement est gérée programmatiquement par
 * gha-catalogue-discovery.js (`behavior:'auto'` dans chaque appel
 * scrollIntoView), sans règle globale `html` dans un fichier borné au
 * catalogue.
 *
 * @package GHA\Theme
 * @since 2.3.0
 */

@media (min-width: 992.02px) {

	/* --- Panneau générique ------------------------------------------- */
	body.gha-courses-archive .v2-panel {
		box-sizing: border-box;
		min-width: 0;
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		padding: 26px;
		background: #fff;
		display: flex;
		flex-direction: column;
		align-self: stretch;
		overflow: hidden;
		color: #1e293b;
		font-family: inherit;
	}
	body.gha-courses-archive .v2-panel h3 {
		font-family: Sora, Inter, sans-serif;
		color: #1e293b;
		font-size: 26px;
		line-height: 1.28;
		letter-spacing: -.85px;
		margin: 0 0 16px;
		font-weight: 700;
	}
	body.gha-courses-archive .v2-panel p {
		font-size: 14px;
		line-height: 1.6;
		color: #64748b;
		margin: 0 0 18px;
	}
	body.gha-courses-archive .v2-panel svg {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
	}
	body.gha-courses-archive .v2-panel button {
		font: inherit;
		cursor: pointer;
		line-height: 1.4;
		text-align: left;
		transition: background .15s, border-color .15s;
	}
	body.gha-courses-archive .v2-panel button:focus-visible {
		outline: 3px solid #60a5fa;
		outline-offset: 3px;
	}

	/* --- Liens de sujets (encart « Nos e-learnings ») ------------------ */
	body.gha-courses-archive .v2-subject-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-bottom: 22px;
	}
	body.gha-courses-archive .v2-subject-links button {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		padding: 13px 14px;
		color: #1e293b;
	}
	body.gha-courses-archive .v2-subject-links button:hover {
		background: #eff6ff;
		border-color: #93c5fd;
	}
	body.gha-courses-archive .v2-subject-links strong {
		font-size: 13px;
		display: block;
	}
	body.gha-courses-archive .v2-panel small {
		font-size: 11px;
		color: #64748b;
		display: block;
		font-weight: 400;
		margin-top: 4px;
	}
	body.gha-courses-archive .v2-subject-links svg {
		width: 15px;
		color: #1e40af;
	}
	body.gha-courses-archive .v2-all {
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 13px !important;
		font-weight: 700 !important;
		color: #1e40af;
		background: none;
		border: 0;
		padding: 0;
		margin-top: auto;
	}
	body.gha-courses-archive .v2-themes {
		background: #edf4ff;
		border-color: #d5e3fa;
	}
	body.gha-courses-archive .v2-span-1 {
		padding: 21px 18px;
	}
	body.gha-courses-archive .v2-span-1 h3 {
		font-size: 22px;
		letter-spacing: -.6px;
		margin-bottom: 14px;
	}
	body.gha-courses-archive .v2-span-1 .v2-subject-links {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	body.gha-courses-archive .v2-span-1 .v2-subject-links button {
		padding: 12px 10px;
	}
	body.gha-courses-archive .v2-span-1 .v2-subject-links strong {
		font-size: 12px;
	}
	body.gha-courses-archive .v2-span-1 .v2-all {
		font-size: 12px !important;
	}
	body.gha-courses-archive .v2-span-3 .v2-subject-links,
	body.gha-courses-archive .v2-span-4 .v2-subject-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	body.gha-courses-archive .v2-standalone {
		height: 320px;
	}
	body.gha-courses-archive .v2-standalone h3 {
		font-size: 24px;
		margin-bottom: 18px;
	}
	body.gha-courses-archive .v2-standalone.v2-span-4 {
		height: 292px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact {
		height: 242px;
		padding: 22px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact h3 {
		font-size: 21px;
		margin-bottom: 16px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact .v2-subject-links {
		gap: 8px;
		margin-bottom: 14px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact .v2-subject-links button {
		padding: 8px 10px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact .v2-subject-links small {
		display: none;
	}
	body.gha-courses-archive .v2-standalone.v2-compact.v2-span-4 {
		height: 218px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact.v2-span-4 .v2-subject-links {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	body.gha-courses-archive .v2-standalone.v2-span-4 .v2-subject-links {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	body.gha-courses-archive .v2-standalone.v2-span-4 .v2-subject-links strong {
		font-size: 12px;
	}

	/* --- Carte e-learning compacte : six tuiles illustrées ------------- */
	body.gha-courses-archive .v2-subjects h3 {
		margin-bottom: 22px;
	}
	body.gha-courses-archive .v2-subjects .v2-subject-links {
		grid-template-columns: 1fr;
		gap: 7px;
		margin-bottom: 20px;
	}
	body.gha-courses-archive .v2-panel .v2-compact-links button {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		min-height: 43px;
		padding: 10px;
		gap: 8px;
	}
	body.gha-courses-archive .v2-compact-links .v2-subject-image {
		position: absolute;
		right: 0;
		top: 0;
		width: 38%;
		height: 100%;
		object-fit: cover;
		object-position: center;
		pointer-events: none;
		z-index: -1;
		-webkit-mask-image: linear-gradient(to right, transparent, #000 40%, #000 75%, transparent);
		mask-image: linear-gradient(to right, transparent, #000 40%, #000 75%, transparent);
	}
	body.gha-courses-archive .v2-subjects.v2-span-1 .v2-subject-image {
		right: 6px;
	}
	body.gha-courses-archive .v2-panel .v2-compact-links strong {
		font-size: 12px;
		line-height: 1.4;
		font-weight: 600;
	}
	body.gha-courses-archive .v2-panel .v2-compact-links small {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		min-width: 24px;
		height: 22px;
		padding: 0 5px;
		margin: 0;
		background: #edf2f7;
		border-radius: 5px;
		color: #64748b;
		font-size: 11px;
		line-height: 1;
	}
	body.gha-courses-archive .v2-panel .v2-compact-links button:hover small {
		background: #dbeafe;
		color: #1e40af;
	}

	/* --- Thématiques illustrées ----------------------------------------- */
	body.gha-courses-archive .v2-panel.v2-themes {
		background: #f5f7fb;
		border-color: #e0e6ef;
		padding: 22px;
		gap: 17px;
	}
	body.gha-courses-archive .v2-visual-themes {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
		flex: 1;
		min-height: 0;
	}
	body.gha-courses-archive .v2-themes .v2-theme-tile {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		border: 0;
		border-radius: 9px;
		padding: 0;
		background: #2e5fa1;
		color: white;
		min-width: 0;
		min-height: 0;
		display: flex;
		align-items: flex-end;
	}
	body.gha-courses-archive .v2-theme-tile > img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .3s;
		z-index: -2;
	}
	body.gha-courses-archive .v2-theme-tile:after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, transparent 32%, rgba(14, 26, 46, .12) 50%, rgba(14, 26, 46, .85) 100%);
		z-index: -1;
	}
	body.gha-courses-archive .v2-theme-tile:hover > img {
		transform: scale(1.04);
	}
	body.gha-courses-archive .v2-tile-copy {
		display: block;
		padding: 18px 14px;
		min-width: 0;
	}
	body.gha-courses-archive .v2-tile-copy strong {
		font-family: Sora, Inter, sans-serif;
		display: block;
		font-size: 17px;
		line-height: 1.3;
		letter-spacing: -.4px;
	}
	body.gha-courses-archive .v2-themes .v2-tile-copy small {
		font-size: 11px;
		color: #fff;
		margin-top: 0;
		line-height: 1.5;
	}
	body.gha-courses-archive .v2-tile-arrow {
		position: absolute;
		right: 10px;
		top: 10px;
		border: 1px solid #ffffff80;
		background: #ffffff20;
		border-radius: 50%;
		width: 26px;
		height: 26px;
		display: grid;
		place-items: center;
		backdrop-filter: blur(4px);
	}
	body.gha-courses-archive .v2-tile-arrow svg {
		width: 14px;
		height: 14px;
	}
	body.gha-courses-archive .v2-themes .v2-all {
		font-size: 12px !important;
		margin-top: 0;
	}
	body.gha-courses-archive .v2-themes.v2-span-2 .v2-visual-themes {
		grid-template-columns: 1.1fr 1fr;
		grid-template-rows: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}
	body.gha-courses-archive .v2-themes.v2-span-2 .v2-theme-tile:first-child {
		grid-row: span 3;
	}
	body.gha-courses-archive .v2-themes.v2-span-2 .v2-theme-tile:first-child > img {
		object-position: calc(50% + 8px) center;
	}
	body.gha-courses-archive .v2-themes.v2-span-2 .v2-theme-tile:not(:first-child) .v2-tile-copy,
	body.gha-courses-archive .v2-themes.v2-span-1 .v2-tile-copy {
		padding: 12px;
	}
	body.gha-courses-archive .v2-themes.v2-span-2 .v2-theme-tile:not(:first-child) strong,
	body.gha-courses-archive .v2-themes.v2-span-1 .v2-tile-copy strong {
		font-size: 14px;
	}
	body.gha-courses-archive .v2-themes.v2-span-1 {
		padding: 18px 15px;
		gap: 14px;
	}
	body.gha-courses-archive .v2-themes.v2-span-1 .v2-visual-themes {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}
	body.gha-courses-archive .v2-themes.v2-standalone {
		height: 320px;
		gap: 14px;
	}
	body.gha-courses-archive .v2-themes.v2-standalone.v2-compact {
		height: 258px;
		padding: 18px;
		gap: 10px;
	}
	body.gha-courses-archive .v2-themes.v2-standalone .v2-theme-tile > img {
		object-position: center 45%;
	}

	body.gha-courses-archive #section-elearning {
		scroll-margin-top: 110px;
	}
	body.gha-courses-archive #section-elearning .gha-course-card {
		scroll-margin-top: 110px;
	}

	@media (prefers-reduced-motion: reduce) {
		body.gha-courses-archive .v2-theme-tile > img {
			transition: none;
		}
	}

	/* Les illustrations des thématiques commencent au même niveau que les cours. */
	body.gha-courses-archive .v2-panel.v2-themes,
	body.gha-courses-archive .v2-panel.v2-themes.v2-span-1,
	body.gha-courses-archive .v2-panel.v2-themes.v2-standalone.v2-compact {
		padding: 0;
		border: 0;
		background: transparent;
		gap: 14px;
		overflow: visible;
	}
	body.gha-courses-archive .v2-themes .v2-all {
		padding: 0 2px 2px;
	}
	body.gha-courses-archive .v2-themes .v2-visual-themes {
		margin: 0;
	}

	/* --- Séparateur : une colonne de sujets sépare sélection et suite ---- */
	body.gha-courses-archive .v2-next-card {
		box-sizing: border-box;
		min-width: 0;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}
	body.gha-courses-archive .v2-next-topics {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: repeat(var(--v2-topic-rows, 4), minmax(0, 1fr));
		gap: 8px;
	}
	body.gha-courses-archive .v2-next-topic {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		min-width: 0;
		min-height: 0;
		background: #1e293b;
		box-shadow: 0 1px 2px #0000000a;
		display: flex;
		align-items: flex-end;
		padding: 12px;
		text-align: left;
		cursor: pointer;
		color: white;
		font: inherit;
	}
	body.gha-courses-archive .v2-next-topic > img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center 15%;
		z-index: -2;
		transition: transform .2s;
	}
	body.gha-courses-archive .v2-next-topic:after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(transparent 28%, #0e1a2e30 45%, #0e1a2ee8);
		z-index: -1;
	}
	body.gha-courses-archive .v2-next-topic:hover > img {
		transform: scale(1.025);
	}
	body.gha-courses-archive .v2-next-topic-copy strong {
		display: block;
		font: 700 14px/1.35 Sora, Inter, sans-serif;
		letter-spacing: -.4px;
		color: white;
	}
	body.gha-courses-archive .v2-next-topic-copy small {
		display: block;
		font: 400 11px/1.5 Inter, sans-serif;
		color: white;
		margin-top: 0;
	}
	body.gha-courses-archive .v2-next-scroll {
		cursor: pointer;
		text-align: left;
	}
	body.gha-courses-archive .v2-next-scroll span {
		font-size: 20px;
		line-height: 1;
	}
	body.gha-courses-archive .v2-next-card button:focus-visible {
		outline: 3px solid #60a5fa;
		outline-offset: 2px;
	}
	body.gha-courses-archive .v2-next-section {
		grid-column: 1 / -1;
		margin: 0 !important;
		padding-top: 8px;
		scroll-margin-top: 110px;
	}

	@media (prefers-reduced-motion: reduce) {
		body.gha-courses-archive .v2-next-topic > img {
			transition: none;
		}
	}

	/* --- Cartes indépendantes, alignées sur les zones des cartes voisines - */
	body.gha-courses-archive .v2-panel.v2-themes.v2-aligned-card,
	body.gha-courses-archive .v2-next-card.v2-aligned-card {
		padding: 0;
		gap: 8px;
		border: 0;
		border-radius: 0;
		background: transparent;
		overflow: visible;
		box-shadow: none;
	}
	body.gha-courses-archive .v2-aligned-card > .v2-visual-themes,
	body.gha-courses-archive .v2-next-card.v2-aligned-card > .v2-next-topics {
		flex: 0 0 var(--v2-art-height, 320px);
		height: var(--v2-art-height, 320px);
		min-height: 0;
		margin: 0;
		box-sizing: border-box;
	}
	body.gha-courses-archive .v2-themes.v2-aligned-card .v2-visual-themes {
		gap: 8px;
	}
	body.gha-courses-archive .v2-themes.v2-aligned-card .v2-theme-tile {
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		box-shadow: 0 1px 2px #0000000a;
	}
	body.gha-courses-archive .v2-aligned-footer {
		flex: 1;
		min-height: 0;
		padding: 10px 16px 12px;
		display: flex;
		flex-direction: column;
		gap: 4px;
		background: white;
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		box-shadow: 0 1px 2px #0000000a;
	}
	body.gha-courses-archive .v2-aligned-footer > .v2-next-heading,
	body.gha-courses-archive .v2-aligned-footer > h3 {
		flex: 1;
		min-height: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	body.gha-courses-archive .v2-aligned-footer > h3,
	body.gha-courses-archive .v2-aligned-footer .v2-next-heading h3 {
		font-family: Sora, Inter, sans-serif;
		font-size: 18px;
		font-weight: 600;
		line-height: 1.3;
		letter-spacing: -.4px;
		color: #1e293b;
		margin: 0;
	}
	body.gha-courses-archive .v2-aligned-footer .v2-next-heading h3 {
		margin-bottom: 4px;
	}
	body.gha-courses-archive .v2-aligned-footer .v2-next-heading p {
		font-size: 12px;
		line-height: 1.5;
		margin: 0;
		color: #64748b;
	}
	body.gha-courses-archive .v2-aligned-card .v2-aligned-footer > .v2-all,
	body.gha-courses-archive .v2-aligned-card .v2-aligned-footer > .v2-next-scroll {
		box-sizing: border-box;
		flex: 0 0 var(--v2-action-height, 39.5px);
		min-height: 0;
		height: var(--v2-action-height, 39.5px);
		padding: 8px 0 0;
		margin: 4px 0 0;
		border: 0;
		border-top: 1px solid #e2e8f0;
		border-radius: 0;
		background: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		font: 600 13px/1.4 Inter, sans-serif;
		color: #1e40af;
	}
	body.gha-courses-archive .v2-aligned-footer > .v2-all svg {
		width: 18px;
		height: 18px;
	}

	/* --- Une même construction pour chaque largeur : mosaïque puis pied -- */
	body.gha-courses-archive .v2-themes.v2-span-4 .v2-visual-themes {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: 1fr;
		gap: 24px;
	}
	body.gha-courses-archive .v2-themes.v2-span-3 .v2-visual-themes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
	body.gha-courses-archive .v2-themes.v2-span-1 .v2-visual-themes {
		grid-template-rows: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}
	body.gha-courses-archive .v2-themes.v2-span-1 .v2-aligned-footer {
		padding-right: 14px;
		padding-left: 14px;
	}
	body.gha-courses-archive .v2-themes.v2-span-1 .v2-aligned-footer h3 {
		font-size: 16px;
		letter-spacing: -.3px;
	}
	body.gha-courses-archive .v2-themes.v2-span-1 .v2-aligned-footer > .v2-all {
		font-size: 12px;
	}
	body.gha-courses-archive .v2-themes.v2-standalone.v2-compact .v2-visual-themes {
		flex-basis: var(--v2-art-height);
		height: var(--v2-art-height);
	}

	/* Le nombre réel de mises en avant pilote la mosaïque : aucune tuile
	   n'est dupliquée pour remplir les rangées. Un choix reste une tuile
	   unique ; deux ou trois choix utilisent la mosaïque à deux colonnes,
	   sauf en pleine largeur où toutes les tuiles tiennent sur une rangée. */
	body.gha-courses-archive .v2-themes.v2-featured-count-1 .v2-visual-themes {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
	}
	body.gha-courses-archive .v2-themes.v2-featured-count-1 .v2-theme-tile:first-child {
		grid-row: span 1;
	}
	body.gha-courses-archive .v2-themes.v2-featured-count-2:not(.v2-span-4) .v2-visual-themes {
		grid-template-columns: 1.1fr 1fr;
		grid-template-rows: 1fr;
	}
	body.gha-courses-archive .v2-themes.v2-featured-count-2:not(.v2-span-4) .v2-theme-tile:first-child {
		grid-row: span 1;
	}
	body.gha-courses-archive .v2-themes.v2-featured-count-3:not(.v2-span-4) .v2-visual-themes {
		grid-template-columns: 1.1fr 1fr;
		grid-template-rows: repeat(2, minmax(0, 1fr));
	}
	body.gha-courses-archive .v2-themes.v2-featured-count-3:not(.v2-span-4) .v2-theme-tile:first-child {
		grid-row: span 2;
	}
	body.gha-courses-archive .v2-themes.v2-featured-count-2.v2-span-4 .v2-visual-themes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: 1fr;
	}
	body.gha-courses-archive .v2-themes.v2-featured-count-3.v2-span-4 .v2-visual-themes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: 1fr;
	}

	body.gha-courses-archive .v2-next-span-1 .v2-aligned-footer .v2-next-heading h3 {
		font-size: 16px;
		letter-spacing: -.45px;
	}

	/* Ligne complète : les mises en avant ouvrent directement les e-learnings. */
	body.gha-courses-archive #section-elearning > .v2-learning-featured {
		margin: 0 0 16px;
	}

	/* --- Thématiques et séparateurs : fond blanc, accents bleus ---------
	   L'encart « Nos e-learnings » et ses listes gardent leur propre fond. */
	body.gha-courses-archive .v2-themes .v2-theme-tile.v2-category-blue,
	body.gha-courses-archive .v2-next-topic.v2-category-blue {
		background: #fff;
		border-color: #dbe6f1;
		color: #263f5b;
	}
	body.gha-courses-archive .v2-category-blue.v2-theme-tile:after,
	body.gha-courses-archive .v2-category-blue.v2-next-topic:after {
		background: linear-gradient(180deg, transparent 30%, #ffffff1a 48%, #fffffff5 100%);
	}
	/* Halo local et diffus : il suit le texte et reste fixe pendant le zoom. */
	body.gha-courses-archive .v2-category-blue .v2-tile-copy,
	body.gha-courses-archive .v2-category-blue .v2-next-topic-copy {
		text-shadow: 0 0 5px #fffffff2, 0 0 12px #ffffffb3;
	}
	body.gha-courses-archive .v2-themes .v2-category-blue .v2-tile-copy strong,
	body.gha-courses-archive .v2-category-blue .v2-next-topic-copy strong {
		color: #263f5b;
	}
	body.gha-courses-archive .v2-themes .v2-category-blue .v2-tile-copy small,
	body.gha-courses-archive .v2-category-blue .v2-next-topic-copy small {
		color: #4b6682;
	}
	body.gha-courses-archive .v2-category-blue .v2-tile-arrow {
		color: #355d87;
		border-color: #bdd2e6;
		background: #ffffffcc;
	}

	/* Cadrage transféré de l'ancienne v2-category-light (§5.4, Step 2) :
	   les formats aplatis dégagent le titre à gauche, les .v2-next-topic
	   gardent un cadrage centré. */
	body.gha-courses-archive .v2-flat-tile.v2-category-blue > img {
		left: 28%;
		right: auto;
		-webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
		mask-image: linear-gradient(to right, transparent, #000 35%);
	}
	body.gha-courses-archive .v2-themes.v2-span-3 .v2-flat-tile.v2-category-blue > img {
		left: 20%;
	}
	body.gha-courses-archive .v2-next-topic.v2-category-blue > img {
		object-position: center;
	}

	body.gha-courses-archive .v2-themes .v2-aligned-footer > h3 {
		font-size: 16px;
	}
}

/* Ajustements tablette (993–1100px), portés à l'identique de v2.css. */
@media (min-width: 993px) and (max-width: 1100px) {
	body.gha-courses-archive .v2-panel {
		padding: 21px;
	}
	body.gha-courses-archive .v2-span-1 {
		padding: 18px 14px;
	}
	body.gha-courses-archive .v2-span-1 h3 {
		font-size: 20px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact.v2-span-4 {
		height: 250px;
	}
	body.gha-courses-archive .v2-standalone.v2-compact.v2-span-4 .v2-subject-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	body.gha-courses-archive .v2-themes.v2-span-1 {
		padding: 14px 12px;
		gap: 11px;
	}
	body.gha-courses-archive .v2-tile-copy strong {
		font-size: 15px;
	}
	body.gha-courses-archive .v2-aligned-footer > h3,
	body.gha-courses-archive .v2-aligned-footer .v2-next-heading h3 {
		font-size: 17px;
	}
}
