/**
 * Hero Blog / Ressources — blanc #ffffff · navy #022b60 · orange #fbaf3f
 */
html:has(.wpcursor-hero-blog) {
	overflow-x: clip;
}

/* Masque chrome Astra sur la page articles */
body.blog:has(.wpcursor-hero-blog) .ast-archive-description,
body.blog:has(.wpcursor-hero-blog) .page-header,
body.blog:has(.wpcursor-hero-blog) .entry-header,
body.home:has(.wpcursor-hero-blog) .ast-archive-description,
body.blog:has(.wpcursor-hero-blog) #primary > .ast-archive-description {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.blog:has(.wpcursor-hero-blog) #content > .ast-container,
body.home:has(.wpcursor-hero-blog) #content > .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.blog:has(.wpcursor-hero-blog) #primary,
body.home:has(.wpcursor-hero-blog) #primary {
	margin: 0;
	padding: 0;
}

/* Boucle / empty state Astra (remplacée par les sections Ubris) */
body.blog:has(.wpcursor-hero-blog) #primary .ast-row,
body.blog:has(.wpcursor-hero-blog) #primary .ast-pagination,
body.blog:has(.wpcursor-hero-blog) #primary article,
body.blog:has(.wpcursor-hero-blog) #primary .ast-article-post,
body.blog:has(.wpcursor-hero-blog) #primary .ast-blog-layout-6-grid,
body.blog:has(.wpcursor-hero-blog) #primary .no-results,
body.blog:has(.wpcursor-hero-blog) #primary .ast-no-results,
body.home:has(.wpcursor-hero-blog) #primary .ast-row,
body.home:has(.wpcursor-hero-blog) #primary .ast-pagination,
body.home:has(.wpcursor-hero-blog) #primary article,
body.home:has(.wpcursor-hero-blog) #primary .no-results {
	display: none !important;
}

.wpcursor-component.wpcursor-hero-blog.alignfull,
body.blog .wpcursor-component.wpcursor-hero-blog,
body.home .wpcursor-component.wpcursor-hero-blog {
	margin-left: 0;
	margin-right: 0;
	max-width: 100vw;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-blog {
	--sr-navy: #022b60;
	--sr-orange: #fbaf3f;
	--sr-orange-soft: #fde7c4;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-muted: #5b6b82;
	--sr-line: #e6ecf3;
	--sr-chip: #eef2f7;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-pad: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--sr-content: 84rem;
	background: var(--sr-white);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-blog *,
.wpcursor-component.wpcursor-hero-blog *::before,
.wpcursor-component.wpcursor-hero-blog *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__shell {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: var(--sr-content);
	padding: 2.25rem var(--sr-pad) 2.75rem;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__eyebrow {
	align-items: center;
	color: var(--sr-orange) !important;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.7rem;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__eyebrow-line {
	background: var(--sr-orange);
	border-radius: 999px;
	display: inline-block;
	height: 2px;
	width: 1.75rem;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__title {
	color: var(--sr-navy) !important;
	font-size: clamp(1.85rem, 4.4vw, 3.15rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 0 0 1rem;
	max-width: 12ch;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__dot {
	color: var(--sr-orange);
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__text {
	color: var(--sr-navy);
	font-size: 1.02rem;
	line-height: 1.55;
	margin: 0 0 1.5rem;
	max-width: 34rem;
	opacity: 0.88;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__search {
	align-items: center;
	background: var(--sr-white);
	border: 1.5px solid var(--sr-line);
	border-radius: 999px;
	display: flex;
	gap: 0.35rem;
	margin: 0 0 1.1rem;
	max-width: 28rem;
	min-height: 3.15rem;
	padding: 0.35rem 0.45rem 0.35rem 1.15rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__search:focus-within {
	border-color: var(--sr-orange);
	box-shadow: 0 0 0 3px rgba(251, 175, 63, 0.18);
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__search-input {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--sr-navy);
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.4;
	margin: 0;
	min-width: 0;
	outline: none;
	padding: 0.45rem 0;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__search-input::placeholder {
	color: #8a97ab;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__search-btn {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--sr-navy);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 2.4rem;
	justify-content: center;
	padding: 0;
	transition: color 0.15s ease, background-color 0.15s ease;
	width: 2.4rem;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__search-btn:hover,
.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__search-btn:focus-visible {
	background: var(--sr-chip);
	color: var(--sr-orange);
	outline: none;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__filter {
	align-items: center;
	background: var(--sr-chip);
	border-radius: 999px;
	color: var(--sr-navy) !important;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	min-height: 2.35rem;
	padding: 0.55rem 1rem;
	text-decoration: none !important;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__filter:hover,
.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__filter:focus-visible {
	background: #e4ebf4;
	outline: none;
	transform: translateY(-1px);
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__filter.is-active {
	background: var(--sr-orange-soft);
	color: var(--sr-navy) !important;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card {
	background: var(--sr-white);
	border: 1px solid var(--sr-line);
	border-radius: 1.15rem;
	box-shadow: 0 18px 40px rgba(2, 43, 96, 0.08);
	color: inherit;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card:hover,
.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card:focus-visible {
	box-shadow: 0 22px 48px rgba(2, 43, 96, 0.12);
	outline: none;
	transform: translateY(-2px);
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-media {
	margin: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-media img {
	aspect-ratio: 16 / 10;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-badge {
	background: var(--sr-navy);
	border-radius: 0.45rem;
	bottom: 0.85rem;
	color: var(--sr-white);
	font-size: 0.68rem;
	font-weight: 700;
	left: 0.85rem;
	letter-spacing: 0.08em;
	line-height: 1;
	padding: 0.45rem 0.65rem;
	position: absolute;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 1.1rem;
	padding: 1.15rem 1.2rem 1.25rem;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-title {
	color: var(--sr-navy) !important;
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.28;
	margin: 0;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-meta {
	align-items: center;
	color: var(--sr-muted);
	display: flex;
	font-size: 0.9rem;
	justify-content: space-between;
	margin-top: auto;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-arrow {
	align-items: center;
	color: var(--sr-orange);
	display: inline-flex;
	transition: transform 0.18s ease;
}

.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card:hover .wpcursor-hero-blog__card-arrow,
.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card:focus-visible .wpcursor-hero-blog__card-arrow {
	transform: translateX(3px);
}

@media (min-width: 900px) {
	.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__shell {
		align-items: center;
		gap: clamp(2rem, 4vw, 3.5rem);
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		min-height: 28rem;
		padding: 2.75rem var(--sr-pad) 3.25rem;
	}

	.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__title {
		max-width: 11ch;
	}

	.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-media img {
		aspect-ratio: 16 / 11;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card,
	.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__filter,
	.wpcursor-component.wpcursor-hero-blog .wpcursor-hero-blog__card-arrow {
		transition: none;
	}
}
