/**
 * Section page À propos — Formations & certifications (timeline).
 * Shortcode : [wpcursor name="a-propos-formations"]
 */

.wpcursor-a-propos-formations {
	--wpcursor-formations-bg: #ffffff;
	--wpcursor-formations-accent: #a65d4a;
	--wpcursor-formations-heading: #2d2a45;
	--wpcursor-formations-body: #5f5f6a;
	--wpcursor-formations-muted: #8a8a94;
	--wpcursor-formations-year: #9a9aa3;
	--wpcursor-formations-card-bg: #ffffff;
	--wpcursor-formations-line: #e4e2de;

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

.wpcursor-a-propos-formations__inner {
	max-width: 760px;
	margin: 0 auto;
	box-sizing: border-box;
}

.wpcursor-a-propos-formations__header {
	margin: 0 0 clamp(2.25rem, 5vw, 3rem);
	text-align: center;
}

.wpcursor-a-propos-formations__eyebrow {
	margin: 0 0 0.85rem;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--wpcursor-formations-accent);
}

.wpcursor-a-propos-formations__heading {
	margin: 0;
	font-family: var(--wpcursor-font-serif);
	font-size: clamp(1.85rem, 3.5vw, 2.5rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--wpcursor-formations-heading);
}

.wpcursor-a-propos-formations__timeline {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpcursor-a-propos-formations__item {
	display: grid;
	grid-template-columns: 3.5rem 1.25rem minmax(0, 1fr);
	gap: 0 1rem;
	align-items: start;
	position: relative;
	padding-bottom: 1.35rem;
}

.wpcursor-a-propos-formations__item:last-child {
	padding-bottom: 0;
}

.wpcursor-a-propos-formations__item:not(:last-child) .wpcursor-a-propos-formations__axis::after {
	content: "";
	position: absolute;
	top: 0.55rem;
	bottom: -1.35rem;
	left: 50%;
	width: 1px;
	background: var(--wpcursor-formations-line);
	transform: translateX(-50%);
}

.wpcursor-a-propos-formations__year {
	margin: 0.35rem 0 0;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: right;
	color: var(--wpcursor-formations-year);
}

.wpcursor-a-propos-formations__axis {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 100%;
}

.wpcursor-a-propos-formations__dot {
	position: relative;
	z-index: 1;
	display: block;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.55rem;
	border-radius: 50%;
	background: var(--wpcursor-formations-line);
	box-shadow: 0 0 0 3px var(--wpcursor-formations-bg);
}

.wpcursor-a-propos-formations__card {
	margin: 0;
	padding: 1.2rem 1.35rem;
	border-radius: 14px;
	background: var(--wpcursor-formations-card-bg);
	box-shadow: 0 4px 20px rgba(45, 42, 69, 0.07);
	box-sizing: border-box;
	text-align: left;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wpcursor-a-propos-formations__card:hover {
	box-shadow: 0 8px 28px rgba(45, 42, 69, 0.1);
	transform: translateY(-1px);
}

.wpcursor-a-propos-formations__card-title {
	margin: 0 0 0.35rem;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--wpcursor-formations-heading);
}

.wpcursor-a-propos-formations__card-subtitle {
	margin: 0;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.86rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wpcursor-formations-muted);
}

.wpcursor-a-propos-formations__card-subtitle + .wpcursor-a-propos-formations__cert-cta,
.wpcursor-a-propos-formations__card-title + .wpcursor-a-propos-formations__cert-cta {
	margin-top: 0.85rem;
}

.wpcursor-a-propos-formations__cert-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wpcursor-formations-accent);
	transition: color 0.2s ease, gap 0.2s ease;
}

.wpcursor-a-propos-formations__cert-cta:hover,
.wpcursor-a-propos-formations__cert-cta:focus-visible {
	color: var(--wpcursor-formations-heading);
	gap: 0.5rem;
}

.wpcursor-a-propos-formations__cert-cta-icon {
	font-size: 0.9em;
	line-height: 1;
}

@media (max-width: 560px) {
	.wpcursor-a-propos-formations__item {
		grid-template-columns: 3rem 1rem minmax(0, 1fr);
		gap: 0 0.75rem;
	}

	.wpcursor-a-propos-formations__year {
		font-size: 0.85rem;
	}

	.wpcursor-a-propos-formations__card {
		padding: 1rem 1.1rem;
	}
}
