/**
 * Section page Sophrologie — Articles de blog liés.
 * Shortcode : [wpcursor name="sophrologie-articles"]
 */

.wpcursor-sophrologie-articles {
	--wpcursor-sophro-art-bg: #ffffff;
	--wpcursor-sophro-art-heading: #4a2d5c;
	--wpcursor-sophro-art-accent: #e8a598;
	--wpcursor-sophro-art-body: #5f5f6a;
	--wpcursor-sophro-art-muted: #7a7a85;
	--wpcursor-sophro-art-link: #5e3a71;
	--wpcursor-sophro-art-soon-bg: rgba(94, 58, 113, 0.08);
	--wpcursor-sophro-art-soon-text: #6f5685;

	box-sizing: border-box;
	width: 100%;
	padding: clamp(4.5rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2rem);
	background: var(--wpcursor-sophro-art-bg);
	color: var(--wpcursor-sophro-art-body);
}

.wpcursor-sophrologie-articles__inner {
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.wpcursor-sophrologie-articles__header {
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
	text-align: center;
}

.wpcursor-sophrologie-articles__heading {
	margin: 0;
	font-family: var(--wpcursor-font-title);
	font-size: clamp(1.65rem, 3vw, 2.2rem);
	font-weight: var(--wpcursor-title-weight, 700);
	line-height: 1.22;
	letter-spacing: var(--wpcursor-title-letter-spacing, -0.027em);
	color: var(--wpcursor-sophro-art-heading);
}

.wpcursor-sophrologie-articles__divider {
	width: 3.25rem;
	height: 2px;
	margin: 1.15rem auto 0;
	border-radius: 999px;
	background: var(--wpcursor-sophro-art-accent);
}

.wpcursor-sophrologie-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 auto;
	padding: 0;
	padding-inline: 0;
	list-style: none;
	width: 100%;
	box-sizing: border-box;
}

.wpcursor-sophrologie-articles__card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 28px rgba(74, 45, 92, 0.07);
}

.wpcursor-sophrologie-articles__card--soon {
	opacity: 0.96;
}

.wpcursor-sophrologie-articles__media {
	position: relative;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #ebe4f2;
}

.wpcursor-sophrologie-articles__card--soon .wpcursor-sophrologie-articles__image {
	filter: saturate(0.88);
}

.wpcursor-sophrologie-articles__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpcursor-sophrologie-articles__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem 1rem 1.15rem;
}

.wpcursor-sophrologie-articles__title {
	margin: 0 0 0.5rem;
	font-family: var(--wpcursor-font-body);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.38;
	color: var(--wpcursor-sophro-art-heading);
}

.wpcursor-sophrologie-articles__excerpt {
	margin: 0 0 1rem;
	flex: 1;
	font-family: var(--wpcursor-font-body);
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--wpcursor-sophro-art-body);
}

.wpcursor-sophrologie-articles__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
}

.wpcursor-sophrologie-articles__soon {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--wpcursor-sophro-art-soon-bg);
	font-family: var(--wpcursor-font-body);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--wpcursor-sophro-art-soon-text);
}

.wpcursor-sophrologie-articles__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--wpcursor-font-body);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--wpcursor-sophro-art-link);
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.wpcursor-sophrologie-articles__link:hover,
.wpcursor-sophrologie-articles__link:focus-visible {
	color: #4d2f5d;
	gap: 0.5rem;
	outline: none;
}

.wpcursor-sophrologie-articles__link-arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.wpcursor-sophrologie-articles__link:hover .wpcursor-sophrologie-articles__link-arrow,
.wpcursor-sophrologie-articles__link:focus-visible .wpcursor-sophrologie-articles__link-arrow {
	transform: translateX(2px);
}

.wpcursor-sophrologie-articles__cta-wrap {
	display: flex;
	justify-content: center;
	margin-top: clamp(2rem, 4vw, 2.75rem);
}

.wpcursor-sophrologie-articles__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.85rem 1.5rem;
	border: none;
	border-radius: 999px;
	background: var(--wpcursor-sophro-art-link);
	font-family: var(--wpcursor-font-body);
	font-size: clamp(0.82rem, 1.2vw, 0.9rem);
	font-weight: 600;
	line-height: 1.25;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(94, 58, 113, 0.22);
	transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease, transform 0.15s ease;
}

.wpcursor-sophrologie-articles__cta:hover,
.wpcursor-sophrologie-articles__cta:focus-visible {
	background: #8f689a;
	color: #ffffff;
	gap: 0.6rem;
	outline: none;
	transform: translateY(-1px);
}

.wpcursor-sophrologie-articles__cta-arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.wpcursor-sophrologie-articles__cta:hover .wpcursor-sophrologie-articles__cta-arrow,
.wpcursor-sophrologie-articles__cta:focus-visible .wpcursor-sophrologie-articles__cta-arrow {
	transform: translateX(2px);
}

@media (max-width: 960px) {
	.wpcursor-sophrologie-articles__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: none;
		width: 100%;
		margin-inline: auto;
	}
}

@media (max-width: 640px) {
	.wpcursor-sophrologie-articles__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.wpcursor-sophrologie-articles {
		padding: clamp(3.5rem, 10vw, 5rem) clamp(1.25rem, 4vw, 2rem);
	}
}
