/**
 * Section pages d'offre — Déroulé séance (badges durée).
 * Shortcode : [wpcursor name="offre-deroule-2"]
 */

.wpcursor-offre-deroule-2 {
	--wpcursor-deroule2-bg: #f5f2e9;
	--wpcursor-deroule2-accent: #c88d8d;
	--wpcursor-deroule2-marker: #5b4273;
	--wpcursor-deroule2-heading: #2d2a45;
	--wpcursor-deroule2-body: #5f5f6a;
	--wpcursor-deroule2-card-bg: #ffffff;
	--wpcursor-deroule2-badge-bg: #e8e4dc;

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

.wpcursor-offre-deroule-2__inner {
	max-width: 780px;
	margin: 0 auto;
	box-sizing: border-box;
}

.wpcursor-offre-deroule-2__header {
	margin: 0 0 clamp(2rem, 4.5vw, 2.75rem);
	text-align: left;
}

.wpcursor-offre-deroule-2__eyebrow {
	margin: 0 0 0.75rem;
	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-deroule2-accent);
}

.wpcursor-offre-deroule-2__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-deroule2-heading);
}

.wpcursor-offre-deroule-2__timeline {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wpcursor-offre-deroule-2__step {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.85rem 1rem;
	align-items: start;
}

.wpcursor-offre-deroule-2__aside {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	min-width: 3.25rem;
	padding-top: 0.35rem;
}

.wpcursor-offre-deroule-2__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wpcursor-deroule2-marker);
	color: #ffffff;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	transform: scale(0);
	transform-origin: center center;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wpcursor-offre-deroule-2__duration {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--wpcursor-deroule2-badge-bg);
	font-family: var(--wpcursor-font-sans);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--wpcursor-deroule2-body);
	white-space: nowrap;
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.45s ease-out,
		transform 0.45s ease-out;
}

.wpcursor-offre-deroule-2__card {
	margin: 0;
	padding: 1.35rem 1.5rem;
	border-radius: 14px;
	background: var(--wpcursor-deroule2-card-bg);
	box-shadow: 0 4px 18px rgba(45, 42, 69, 0.07);
	box-sizing: border-box;
	text-align: left;
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.55s ease-out,
		transform 0.55s ease-out;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(1) .wpcursor-offre-deroule-2__number {
	transform: scale(1);
	transition-delay: 0ms;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(1) .wpcursor-offre-deroule-2__duration,
.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(1) .wpcursor-offre-deroule-2__card {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.1s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(2) .wpcursor-offre-deroule-2__number {
	transform: scale(1);
	transition-delay: 0.2s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(2) .wpcursor-offre-deroule-2__duration,
.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(2) .wpcursor-offre-deroule-2__card {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.3s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(3) .wpcursor-offre-deroule-2__number {
	transform: scale(1);
	transition-delay: 0.4s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(3) .wpcursor-offre-deroule-2__duration,
.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(3) .wpcursor-offre-deroule-2__card {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.5s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(4) .wpcursor-offre-deroule-2__number {
	transform: scale(1);
	transition-delay: 0.6s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(4) .wpcursor-offre-deroule-2__duration,
.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(4) .wpcursor-offre-deroule-2__card {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.7s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(5) .wpcursor-offre-deroule-2__number {
	transform: scale(1);
	transition-delay: 0.8s;
}

.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(5) .wpcursor-offre-deroule-2__duration,
.wpcursor-offre-deroule-2__timeline.is-inview .wpcursor-offre-deroule-2__step:nth-child(5) .wpcursor-offre-deroule-2__card {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.9s;
}

.wpcursor-offre-deroule-2__step-title {
	margin: 0 0 0.5rem;
	font-family: var(--wpcursor-font-serif);
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wpcursor-deroule2-heading);
}

.wpcursor-offre-deroule-2__step-text {
	margin: 0;
	font-family: var(--wpcursor-font-sans);
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--wpcursor-deroule2-body);
}

@media (max-width: 560px) {
	.wpcursor-offre-deroule-2__step {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.wpcursor-offre-deroule-2__aside {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 0.65rem;
		min-width: 0;
		padding-top: 0;
	}

	.wpcursor-offre-deroule-2__card {
		padding: 1.15rem 1.2rem;
	}
}

.wpcursor-offre-deroule-2[data-wpcursor-runtime="admin_preview"] .wpcursor-offre-deroule-2__number,
.wpcursor-offre-deroule-2[data-wpcursor-runtime="admin_preview"] .wpcursor-offre-deroule-2__duration,
.wpcursor-offre-deroule-2[data-wpcursor-runtime="admin_preview"] .wpcursor-offre-deroule-2__card {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-offre-deroule-2__number,
	.wpcursor-offre-deroule-2__duration,
	.wpcursor-offre-deroule-2__card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
