@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* Plein écran côté Astra : le hero vit dans .entry-content */
body.wpcursor-article-page .site-content > .ast-container,
body.wpcursor-article-page .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.wpcursor-article-page #primary,
body.wpcursor-article-page #main,
body.wpcursor-article-page .ast-article-single,
body.wpcursor-article-page .ast-article-inner,
body.wpcursor-article-page .entry-content.clear,
body.wpcursor-article-page .entry-content {
	max-width: none;
	width: 100%;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
	/* Sticky sidebar : overflow hidden sur les parents casse position:sticky */
	overflow: visible !important;
}

body.wpcursor-article-page .entry-header,
body.wpcursor-article-page .post-navigation,
body.wpcursor-article-page .posts-navigation,
body.wpcursor-article-page #comments,
body.wpcursor-article-page .comments-area {
	display: none !important;
}

.wpcursor-article-hero {
	--wpc-navy: #10224f;
	--wpc-ink: #2a3345;
	--wpc-muted: #5a6478;
	--wpc-grad: linear-gradient(100deg, #3d9be9 0%, #7a3adf 55%, #912cdc 100%);
	--wpc-frame: linear-gradient(145deg, #ff5eb5 0%, #e040a0 40%, #c44dff 100%);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #f4f8ff;
	background-image: var(--wpc-article-hero-bg);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	font-family: Poppins, "Segoe UI", sans-serif;
	color: var(--wpc-ink);
}

.wpcursor-article-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0.28) 42%,
		rgba(255, 255, 255, 0.08) 68%,
		rgba(255, 255, 255, 0) 100%
	);
}

.wpcursor-article-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(1.6rem, 3.5vw, 2.8rem) 1.35rem clamp(2.2rem, 4vw, 3.4rem);
}

.wpcursor-article-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 1rem;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--wpc-muted);
}

.wpcursor-article-hero__crumbs a {
	color: inherit;
	text-decoration: none;
}

.wpcursor-article-hero__crumbs a:hover {
	color: var(--wpc-navy);
	text-decoration: underline;
}

.wpcursor-article-hero__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.38rem 0.85rem;
	border-radius: 0.55rem;
	background: var(--wpc-grad);
	color: #fff !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: 0 8px 18px rgba(80, 70, 180, 0.22);
}

.wpcursor-article-hero__title {
	margin: 0.85rem 0 0;
	color: var(--wpc-navy);
	font-size: clamp(1.55rem, 3.4vw, 2.45rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.wpcursor-article-hero__intro {
	max-width: 36rem;
	margin: 1rem 0 0;
	font-size: clamp(0.95rem, 1.35vw, 1.05rem);
	line-height: 1.55;
	font-weight: 500;
	color: var(--wpc-ink);
}

.wpcursor-article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.15rem 1.6rem;
	list-style: none;
	margin: 1.35rem 0 0;
	padding: 0;
	color: var(--wpc-muted);
	font-size: 0.92rem;
	font-weight: 500;
}

.wpcursor-article-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.wpcursor-article-hero__meta svg {
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
	color: #6b5ce7;
}

.wpcursor-article-hero__visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 280px;
}

.wpcursor-article-hero__sparkles {
	position: absolute;
	inset: 8% 10%;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 22%, #8b5cf6 0 2px, transparent 3px),
		radial-gradient(circle at 88% 78%, #8b5cf6 0 2px, transparent 3px),
		linear-gradient(45deg, transparent 46%, #7c6af0 46%, #7c6af0 54%, transparent 54%) 8% 18% / 18px 18px no-repeat,
		linear-gradient(-45deg, transparent 46%, #7c6af0 46%, #7c6af0 54%, transparent 54%) 8% 18% / 18px 18px no-repeat,
		linear-gradient(45deg, transparent 46%, #7c6af0 46%, #7c6af0 54%, transparent 54%) 90% 82% / 18px 18px no-repeat,
		linear-gradient(-45deg, transparent 46%, #7c6af0 46%, #7c6af0 54%, transparent 54%) 90% 82% / 18px 18px no-repeat;
	opacity: 0.85;
	animation: wpc-article-spark 3.2s ease-in-out infinite;
}

@keyframes wpc-article-spark {
	0%, 100% { opacity: 0.55; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.03); }
}

.wpcursor-article-hero__frame {
	position: relative;
	width: min(100%, 360px);
	aspect-ratio: 1 / 1.05;
	padding: 7px;
	background: var(--wpc-frame);
	clip-path: polygon(22% 4%, 78% 4%, 98% 50%, 78% 96%, 22% 96%, 2% 50%);
	box-shadow: 0 18px 40px rgba(180, 40, 140, 0.28);
	animation: wpc-article-float 5.5s ease-in-out infinite;
}

@keyframes wpc-article-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.wpcursor-article-hero__frame img,
.wpcursor-article-hero__cover-img,
.wpcursor-article-hero__frame-empty {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: polygon(22% 4%, 78% 4%, 98% 50%, 78% 96%, 22% 96%, 2% 50%);
	background: #f3e8ff;
}

@media (max-width: 900px) {
	.wpcursor-article-hero {
		background-position: 70% top;
		background-size: cover;
	}

	.wpcursor-article-hero::before {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.72) 0%,
			rgba(255, 255, 255, 0.55) 55%,
			rgba(255, 255, 255, 0.35) 100%
		);
	}

	.wpcursor-article-hero__inner {
		grid-template-columns: 1fr;
		padding-top: 1.4rem;
	}

	.wpcursor-article-hero__visual {
		order: -1;
		min-height: 0;
	}

	.wpcursor-article-hero__frame {
		width: min(72vw, 280px);
	}
}
