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

.wpcursor-accueil-blog {
	width: 100%;
	padding: clamp(2.6rem, 5vw, 4.2rem) 1.25rem clamp(3rem, 5vw, 4.6rem);
	background: #fff;
	font-family: Poppins, "Segoe UI", sans-serif;
	color: #10224f;
	box-sizing: border-box;
}

.wpcursor-accueil-blog__wrap {
	max-width: 1180px;
	margin: 0 auto;
}

.wpcursor-accueil-blog__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 0 0 2.2rem;
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	color: #10224f;
}

.wpcursor-accueil-blog__title::before,
.wpcursor-accueil-blog__title::after {
	content: "";
	display: block;
	width: min(120px, 14vw);
	height: 3px;
	border-radius: 999px;
	flex-shrink: 0;
}

.wpcursor-accueil-blog__title::before {
	background: linear-gradient(90deg, #9fd2f8, #3d9be9);
}

.wpcursor-accueil-blog__title::after {
	background: linear-gradient(90deg, #7a3adf, #912cdc);
}

.wpcursor-accueil-blog__row {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.wpcursor-accueil-blog__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.9rem, 2vw, 1.35rem);
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.wpcursor-accueil-blog__card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border-radius: 28px;
	background: #eef1f5;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(30, 50, 90, 0.08);
}

.wpcursor-accueil-blog__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #d9dee6;
	overflow: hidden;
	text-decoration: none;
}

.wpcursor-accueil-blog__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.wpcursor-accueil-blog__card:hover .wpcursor-accueil-blog__thumb {
	transform: scale(1.04);
}

.wpcursor-accueil-blog__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #8a96ab;
}

.wpcursor-accueil-blog__placeholder svg {
	width: 42px;
	height: 42px;
}

.wpcursor-accueil-blog__body {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 0.75rem;
	padding: 1rem 1rem 1.05rem;
	background: #fff;
	min-height: 6.5rem;
}

.wpcursor-accueil-blog__post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0;
	color: #2a3345;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.wpcursor-accueil-blog__post-title:hover,
.wpcursor-accueil-blog__post-title:focus-visible {
	color: #5a2fc0;
}

.wpcursor-accueil-blog__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #d7ecfb;
	color: #2f7fc4;
	text-decoration: none;
	flex-shrink: 0;
	transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.wpcursor-accueil-blog__go svg {
	width: 18px;
	height: 18px;
}

.wpcursor-accueil-blog__go:hover,
.wpcursor-accueil-blog__go:focus-visible {
	transform: translateX(2px);
	background: linear-gradient(100deg, #3d9be9 0%, #7a3adf 55%, #912cdc 100%);
	color: #fff;
}

.wpcursor-accueil-blog__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	flex: 0 0 auto;
	padding: 0.9rem 1.35rem;
	border-radius: 999px;
	border: 2px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(100deg, #3d9be9 0%, #7a3adf 55%, #912cdc 100%) border-box;
	color: #10224f;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(80, 70, 180, 0.1);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wpcursor-accueil-blog__cta svg {
	width: 16px;
	height: 16px;
	color: #7a3adf;
}

.wpcursor-accueil-blog__cta:hover,
.wpcursor-accueil-blog__cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(80, 70, 180, 0.18);
}

.wpcursor-accueil-blog__empty {
	grid-column: 1 / -1;
	padding: 1.5rem;
	color: #6a7384;
	text-align: center;
}

@media (max-width: 980px) {
	.wpcursor-accueil-blog__row {
		flex-direction: column;
		align-items: stretch;
	}

	.wpcursor-accueil-blog__grid {
		grid-template-columns: 1fr;
	}

	.wpcursor-accueil-blog__cta {
		align-self: center;
		margin-top: 0.35rem;
	}
}

@media (min-width: 700px) and (max-width: 980px) {
	.wpcursor-accueil-blog__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
