/**
 * Hero section — page Blog & Ressources.
 * Shortcode : [wpcursor name="hero-blog"]
 */

.wpcursor-hero-blog {
	--wpcursor-blog-bg: #faf8f6;
	--wpcursor-blog-heading: #2d2a45;
	--wpcursor-blog-subtitle: #5b4377;
	--wpcursor-blog-body: #5f5f6a;
	--wpcursor-blog-muted: #8a8a94;
	--wpcursor-blog-border: #e6e2dc;

	box-sizing: border-box;
	width: 100%;
	padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2.5rem, 5vw, 3.5rem);
	background: var(--wpcursor-blog-bg);
	color: var(--wpcursor-blog-body);
}

.wpcursor-hero-blog__inner {
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}

.wpcursor-hero-blog__content {
	max-width: 640px;
	text-align: left;
}

.wpcursor-hero-blog__breadcrumb {
	margin: 0 0 1.25rem;
}

.wpcursor-hero-blog__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wpcursor-blog-muted);
}

.wpcursor-hero-blog__breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

.wpcursor-hero-blog__breadcrumb-item:not(:last-child)::after {
	content: "/";
	margin: 0 0.45rem;
	color: var(--wpcursor-blog-muted);
}

.wpcursor-hero-blog__breadcrumb-link {
	color: var(--wpcursor-blog-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wpcursor-hero-blog__breadcrumb-link:hover,
.wpcursor-hero-blog__breadcrumb-link:focus-visible {
	color: var(--wpcursor-blog-heading);
	outline: none;
}

.wpcursor-hero-blog__breadcrumb-current {
	color: var(--wpcursor-blog-body);
}

.wpcursor-hero-blog__title {
	margin: 0;
	font-family: var(--wpcursor-font-serif);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--wpcursor-blog-heading);
}

.wpcursor-hero-blog__subtitle {
	margin: 0.35rem 0 1.25rem;
	font-family: var(--wpcursor-font-serif);
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-style: italic;
	font-weight: 500;
	line-height: 1.12;
	color: var(--wpcursor-blog-subtitle);
}

.wpcursor-hero-blog__description {
	margin: 0 0 1.75rem;
	max-width: 560px;
	font-family: var(--wpcursor-font-sans);
	font-size: clamp(0.92rem, 1.4vw, 1rem);
	font-weight: 400;
	line-height: 1.7;
	color: var(--wpcursor-blog-body);
}

.wpcursor-hero-blog__search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 420px;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 999px;
}

.wpcursor-hero-blog__search-icon {
	position: absolute;
	right: 1.15rem;
	left: auto;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wpcursor-blog-muted);
	pointer-events: none;
}

.wpcursor-hero-blog__search-input {
	width: 100%;
	margin: 0;
	padding: 1rem 3rem 1rem 1.5rem;
	border: 1px solid var(--wpcursor-blog-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--wpcursor-blog-heading);
	font-family: var(--wpcursor-font-sans);
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.2;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcursor-hero-blog__search-input::placeholder {
	color: var(--wpcursor-blog-muted);
	opacity: 1;
}

.wpcursor-hero-blog__search-input:focus {
	border-color: var(--wpcursor-blog-subtitle);
	box-shadow: 0 0 0 3px rgba(91, 67, 119, 0.12);
	outline: none;
}

.wpcursor-hero-blog .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 560px) {
	.wpcursor-hero-blog__search {
		max-width: 100%;
	}

	.wpcursor-hero-blog__description {
		max-width: none;
	}
}
