/*
 * CSS du blog public (listing + single).
 *
 * - Listing : mise en page type Google News (grille 2 col, carré monogramme
 *   source à gauche + contenu texte à droite). Pagination classique.
 * - Single : styles du body de l'article, bloc points clés, section
 *   "formations qui traitent le sujet" (réutilise .ka-formation-card via
 *   formation-archive.css).
 */

/* =========================================================
 * Listing : wrapper
 * ========================================================= */

.ka-blog-listing {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.ka-blog-listing--empty {
	text-align: center;
	padding: 60px 20px;
	font-family: 'Manrope', sans-serif;
	color: #475569;
}

/* =========================================================
 * Listing : filtres (pills type onglets, cohérent catalogue)
 * ========================================================= */

.ka-blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 0 40px;
}

.ka-blog-filter {
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #45464e;
	background: transparent;
	border: 1px solid #cbd5e1;
	border-radius: 100px;
	padding: 10px 22px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ka-blog-filter:hover {
	border-color: #22C55E;
	color: #041534;
}

.ka-blog-filter.is-active {
	background: #22C55E;
	border-color: #22C55E;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
}

/* =========================================================
 * Listing : grille
 * ========================================================= */

.ka-blog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.ka-blog-listing--cols-3 .ka-blog-grid {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
	.ka-blog-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

/* =========================================================
 * Listing : card Google News
 * ========================================================= */

.ka-blog-news-card {
	background: #ffffff;
	border: 1px solid rgba(4, 21, 52, 0.08);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ka-blog-news-card:hover {
	transform: translateY(-2px);
	border-color: rgba(34, 197, 94, 0.35);
	box-shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
}

.ka-blog-news-card.ka-hidden {
	display: none;
}

.ka-blog-news-card__link,
.ka-blog-news-card__link:hover,
.ka-blog-news-card__link:visited {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
}

/* -- Thumb carré avec monogramme (compact Google News) -- */

.ka-blog-news-card__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	text-align: center;
	margin-top: 2px;
}

.ka-blog-news-card__thumb span {
	display: block;
}

@media (max-width: 640px) {
	.ka-blog-news-card__thumb {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
		font-size: 17px;
		border-radius: 9px;
	}
}

/* -- Contenu texte à droite -- */

.ka-blog-news-card__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ka-blog-news-card__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 2px;
}

.ka-blog-news-card__pill {
	font-family: 'Manrope', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 100px;
}

.ka-blog-news-card__title {
	font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #041534;
	letter-spacing: -0.01em;
	margin: 0;
	/* Titre complet, pas de troncature (on avait des titres coupés) */
	overflow-wrap: break-word;
	word-break: break-word;
}

.ka-blog-news-card:hover .ka-blog-news-card__title {
	color: #007432;
}

.ka-blog-news-card__accroche {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
	margin: 2px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ka-blog-news-card__meta {
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	letter-spacing: 0.2px;
	margin: 2px 0 0;
}

.ka-blog-news-card__meta-sep {
	opacity: 0.5;
}

/* =========================================================
 * Listing : pagination
 * ========================================================= */

.ka-blog-pagination {
	margin: 40px 0 0;
	display: flex;
	justify-content: center;
}

.ka-blog-pagination ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ka-blog-pagination li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ka-blog-pagination li::marker {
	content: '';
}

.ka-blog-pagination a,
.ka-blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #45464e;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ka-blog-pagination a:hover {
	border-color: #22C55E;
	color: #041534;
}

.ka-blog-pagination .current {
	background: #22C55E;
	border-color: #22C55E;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
}

.ka-blog-pagination .dots {
	border: none;
	background: transparent;
}

/* =========================================================
 * Single : carte source en haut (au-dessus de l'article)
 * ========================================================= */

.ka-veille-source-card {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 720px;
	margin: 0 auto 40px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid rgba(4, 21, 52, 0.08);
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(27, 42, 74, 0.05);
}

.ka-veille-source-card__monogram {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ka-veille-source-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ka-veille-source-card__label {
	font-family: 'Manrope', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #94a3b8;
}

.ka-veille-source-card__name {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #041534;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.ka-veille-source-card__meta {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
}

.ka-veille-source-card__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: #041534;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	border-radius: 100px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ka-veille-source-card__cta:hover,
.ka-veille-source-card__cta:visited {
	color: #ffffff !important;
	text-decoration: none !important;
}

.ka-veille-source-card__cta:hover {
	background: #007432;
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.ka-veille-source-card {
		flex-wrap: wrap;
		gap: 12px;
	}
	.ka-veille-source-card__cta {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* =========================================================
 * Single : section formations liées (variante compacte par défaut)
 * ========================================================= */

.ka-veille-formations {
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 24px;
}

.ka-veille-formations__title {
	font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
	font-size: 28px;
	font-weight: 800;
	color: #041534;
	text-align: center;
	margin: 0 0 28px;
	letter-spacing: -0.01em;
}

.ka-veille-formations--compact .ka-veille-formations__title {
	font-size: 22px;
	margin-bottom: 20px;
	text-align: left;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.ka-veille-formations__list {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* -- Card formation compacte (ligne horizontale) -- */

.ka-veille-formation-mini {
	display: flex;
	align-items: stretch;
	gap: 16px;
	padding: 12px 16px 12px 12px;
	background: #ffffff;
	border: 1px solid rgba(4, 21, 52, 0.08);
	border-radius: 14px;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ka-veille-formation-mini:hover {
	transform: translateY(-2px);
	border-color: rgba(34, 197, 94, 0.35);
	box-shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
}

.ka-veille-formation-mini:visited {
	color: inherit;
}

.ka-veille-formation-mini__visual {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-color: #edecea;
}

.ka-veille-formation-mini__visual--fallback {
	background-image: linear-gradient(135deg, #f0efed 0%, #dcfce7 100%);
}

.ka-veille-formation-mini__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
}

.ka-veille-formation-mini__label {
	font-family: 'Manrope', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #007432;
}

.ka-veille-formation-mini__title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #041534;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 0;
}

.ka-veille-formation-mini__sub {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ka-veille-formation-mini__cta {
	flex: 0 0 auto;
	align-self: center;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #007432;
	transition: transform 0.2s ease;
}

.ka-veille-formation-mini:hover .ka-veille-formation-mini__cta {
	transform: translateX(3px);
}

/* =========================================================
 * Single : bloc "Continuer la lecture"
 * ========================================================= */

.ka-veille-autres {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.ka-veille-autres__title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: #041534;
	letter-spacing: -0.01em;
	margin: 0 0 20px;
	text-align: left;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(4, 21, 52, 0.08);
}

.ka-veille-autres__footer {
	margin-top: 28px;
	text-align: center;
}

.ka-veille-autres__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	background: transparent;
	color: #007432 !important;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	border: 1.5px solid #007432;
	border-radius: 100px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.ka-veille-autres__all:hover {
	background: #007432;
	color: #ffffff !important;
}

/* =========================================================
 * Single : bloc À retenir (points clés)
 * ========================================================= */

.ka-veille-points .ka-veille-points__list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ka-veille-points .ka-veille-points__list li {
	list-style: none !important;
	position: relative;
	padding: 12px 0 12px 36px;
	border-bottom: 1px solid rgba(4, 21, 52, 0.08);
}

.ka-veille-points .ka-veille-points__list li:last-child {
	border-bottom: none;
}

.ka-veille-points .ka-veille-points__list li::marker {
	content: '';
}

.ka-veille-points .ka-veille-points__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 18px;
	width: 20px;
	height: 20px;
	background: #22C55E;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center/contain;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* =========================================================
 * Single : corps de l'article (post_content)
 * ========================================================= */

.ka-veille-article p {
	margin: 0 0 20px;
}

.ka-veille-article h2 {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #041534;
	margin: 36px 0 16px;
	letter-spacing: -0.01em;
}

.ka-veille-article h3 {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #041534;
	margin: 28px 0 12px;
}

.ka-veille-article a {
	color: #007432;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ka-veille-article a:hover {
	color: #041534;
}

.ka-veille-article ul,
.ka-veille-article ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.ka-veille-article li {
	margin: 0 0 8px;
}

.ka-veille-article blockquote {
	margin: 24px 0;
	padding: 20px 28px;
	background: #faf9f6;
	border-radius: 12px;
	font-style: italic;
	color: #1f2937;
}
