/* =========================================================
   FLP · Les Étapes — 3 designs  [CSS v1.0.0]
   ========================================================= */
.flp-st {
	--flp-st-primary: #597c31;
	--flp-st-accent: #8ab661;
	--flp-st-dark: #28331e;
	--flp-st-light: #f4f7ee;
	--flp-st-muted: #6a7d5c;
	--flp-st-border: rgba(40,51,30,.10);
	--flp-st-font: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-family: var(--flp-st-font);
	max-width: 1200px; margin: 0 auto;
	padding: 10px 16px; box-sizing: border-box;
}
.flp-st *, .flp-st *::before, .flp-st *::after { box-sizing: border-box; }

/* En-tête */
.flp-st-header { text-align: center; margin-bottom: 46px; max-width: 720px; margin-left: auto; margin-right: auto; }
.flp-st-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--flp-st-primary); margin-bottom: 14px;
	position: relative; padding: 0 18px;
}
.flp-st-eyebrow::before, .flp-st-eyebrow::after { content: ""; position: absolute; top: 50%; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--flp-st-accent)); }
.flp-st-eyebrow::before { right: 100%; transform: scaleX(-1); }
.flp-st-eyebrow::after { left: 100%; }
.flp-st-heading { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.14; color: var(--flp-st-dark); margin: 0 0 14px; font-weight: 800; letter-spacing: -.01em; }
.flp-st-sub { font-size: 1.05rem; line-height: 1.6; color: var(--flp-st-muted); margin: 0; }

/* Marker (numéro + icône) commun */
.flp-st-marker { position: relative; flex: 0 0 auto; }
.flp-st-icon {
	width: 60px; height: 60px; border-radius: 50%;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	background: var(--flp-st-primary); color: #fff; font-size: 24px; line-height: 1 !important;
	box-shadow: 0 10px 24px -10px rgba(89,124,49,.6);
	transform: translateZ(0); backface-visibility: hidden;
}
.flp-st-icon svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.flp-st-icon i { font-size: 1em !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.flp-st-icon i::before { line-height: 1 !important; }
.flp-st-num {
	position: absolute; top: -10px; right: -10px; z-index: 2;
	min-width: 26px; height: 26px; padding: 0 6px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--flp-st-primary); border: 2px solid var(--flp-st-accent);
	border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1;
}

.flp-st-title { font-size: 1.18rem; font-weight: 800; color: var(--flp-st-dark); margin: 0 0 8px; line-height: 1.3; }
.flp-st-text { font-size: .96rem; line-height: 1.6; color: var(--flp-st-muted); margin: 0; }

/* =========================================================
   DESIGN 1 — CARTES NUMÉROTÉES EN LIGNE
   ========================================================= */
.flp-st--cards .flp-st-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flp-st--cards .flp-st-item { position: relative; }
/* Connecteur entre cartes */
.flp-st--cards .flp-st-item:not(:last-child)::after {
	content: ""; position: absolute; top: 54px; right: -14px; width: 28px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--flp-st-accent) 0 6px, transparent 6px 12px);
	z-index: 0;
}
.flp-st--cards .flp-st-card {
	background: #fff; border: 1px solid var(--flp-st-border); border-radius: 18px;
	padding: 28px 24px; text-align: center; height: 100%;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	transform: translateZ(0); backface-visibility: hidden;
}
.flp-st--cards .flp-st-marker { display: inline-block; margin-bottom: 18px; }
@media (hover: hover) and (pointer: fine) {
	.flp-st--cards .flp-st-card:hover { transform: translateY(-6px) translateZ(0); box-shadow: 0 22px 44px -24px rgba(10,10,10,.35); border-color: var(--flp-st-accent); }
}

/* =========================================================
   DESIGN 2 — TIMELINE VERTICALE (alternée)
   ========================================================= */
.flp-st--vertical .flp-st-track { position: relative; display: flex; flex-direction: column; gap: 10px; }
.flp-st--vertical .flp-st-track::before {
	content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
	background: linear-gradient(180deg, var(--flp-st-accent), var(--flp-st-primary));
	transform: translateX(-50%);
}
.flp-st--vertical .flp-st-item { position: relative; width: 50%; padding: 18px 40px; }
.flp-st--vertical .flp-st-item:nth-child(odd) { left: 0; }
.flp-st--vertical .flp-st-item:nth-child(even) { left: 50%; }
.flp-st--vertical .flp-st-card {
	background: #fff; border: 1px solid var(--flp-st-border); border-radius: 16px; padding: 22px 24px;
	position: relative; box-shadow: 0 12px 30px -20px rgba(10,10,10,.35);
	transform: translateZ(0); backface-visibility: hidden;
}
/* Marker posé sur la ligne centrale */
.flp-st--vertical .flp-st-marker { position: absolute; top: 26px; }
.flp-st--vertical .flp-st-item:nth-child(odd) .flp-st-marker { right: -30px; }
.flp-st--vertical .flp-st-item:nth-child(even) .flp-st-marker { left: -30px; }
.flp-st--vertical .flp-st-icon { width: 54px; height: 54px; font-size: 22px; }

/* =========================================================
   DESIGN 3 — TIMELINE HORIZONTALE (points connectés)
   ========================================================= */
.flp-st--horizontal .flp-st-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flp-st--horizontal .flp-st-track::before {
	content: ""; position: absolute; left: 8%; right: 8%; top: 30px; height: 2px;
	background: linear-gradient(90deg, var(--flp-st-accent), var(--flp-st-primary));
	z-index: 0;
}
.flp-st--horizontal .flp-st-item { position: relative; text-align: center; z-index: 1; }
.flp-st--horizontal .flp-st-marker { display: inline-block; margin-bottom: 18px; }
.flp-st--horizontal .flp-st-icon { width: 60px; height: 60px; border: 4px solid #fff; }
.flp-st--horizontal .flp-st-card { background: transparent; padding: 0 8px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
	/* Cartes : 2 colonnes, on masque les connecteurs horizontaux */
	.flp-st--cards .flp-st-track { grid-template-columns: repeat(2, 1fr); }
	.flp-st--cards .flp-st-item::after { display: none; }

	/* Horizontale → devient verticale simple (empilée) */
	.flp-st--horizontal .flp-st-track { grid-template-columns: 1fr; gap: 26px; }
	.flp-st--horizontal .flp-st-track::before { display: none; }
}

@media (max-width: 600px) {
	.flp-st { padding: 10px 18px; }
	/* Cartes : 1 colonne */
	.flp-st--cards .flp-st-track { grid-template-columns: 1fr; }

	/* Timeline verticale : ligne à gauche, tout d'un seul côté */
	.flp-st--vertical .flp-st-track::before { left: 22px; }
	.flp-st--vertical .flp-st-item,
	.flp-st--vertical .flp-st-item:nth-child(odd),
	.flp-st--vertical .flp-st-item:nth-child(even) { width: 100%; left: 0; padding: 14px 0 14px 58px; }
	.flp-st--vertical .flp-st-item:nth-child(odd) .flp-st-marker,
	.flp-st--vertical .flp-st-item:nth-child(even) .flp-st-marker { left: -4px; right: auto; }
	.flp-st--vertical .flp-st-icon { width: 48px; height: 48px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.flp-st-card { transition: none; }
}
