/*
 * Site public des stages (module Stages), mise en page layouts/stage.php.
 * Mobile d'abord. Tout est préfixé « st- » et rangé sous body.st-body : rien ne touche les autres
 * pages du site d'inscription. Contrastes vérifiés AA (texte sur blanc et sur le bandeau).
 *
 * Pièges : sur .form-control / .form-select, toujours background-color et jamais le raccourci
 * background (il effacerait la flèche du select et les icônes de validation de Bootstrap).
 */

/* ------------------------------------------------------------------ jetons */

body.st-body {
	--st-ink: #0f172a;
	--st-text: #334155;
	--st-muted: #5b6577;
	--st-line: #e2e8f0;
	--st-line-strong: #cbd5e1;
	--st-bg: #f1f4f9;
	--st-card: #ffffff;
	--st-brand: #4f46e5;
	--st-brand-hover: #4338ca;
	--st-brand-ink: #3730a3;
	--st-brand-50: #eef2ff;
	--st-brand-100: #e0e7ff;
	--st-brand-200: #c7d2fe;
	--st-hero: linear-gradient(135deg, #1e1b4b 0%, #3730a3 48%, #6d28d9 100%);
	--st-ok: #047857;
	--st-ok-50: #ecfdf5;
	--st-ok-200: #a7f3d0;
	--st-warn: #a24a07;
	--st-warn-50: #fffbeb;
	--st-warn-200: #fde68a;
	--st-err: #be123c;
	--st-err-50: #fff1f2;
	--st-err-200: #fecdd3;
	--st-info: #075985;
	--st-info-50: #f0f9ff;
	--st-info-200: #bae6fd;
	--st-radius: 20px;
	--st-radius-md: 14px;
	--st-radius-sm: 10px;
	--st-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(15, 23, 42, .22);
	--st-shadow-soft: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px -6px rgba(15, 23, 42, .12);
	--st-focus: 0 0 0 4px rgba(79, 70, 229, .28);

	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--st-bg);
	color: var(--st-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.st-body h1,
.st-body h2,
.st-body h3 {
	color: var(--st-ink);
	letter-spacing: -.01em;
}

.st-body a {
	color: var(--st-brand-ink);
	text-underline-offset: .18em;
}

.st-body a:hover {
	color: var(--st-brand-hover);
}

.st-body :focus-visible {
	outline: none;
	box-shadow: var(--st-focus);
	border-radius: 6px;
}

.st-wrap {
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.st-wrap {
		padding: 0 1.5rem;
	}
}

.st-wrap--etroit {
	max-width: 46rem;
}

.st-evitement {
	position: absolute;
	left: -9999px;
	top: .5rem;
	z-index: 100;
	padding: .5rem 1rem;
	background: #fff;
	border-radius: var(--st-radius-sm);
}

.st-evitement:focus {
	left: .5rem;
}

.st-contenu {
	flex: 1 0 auto;
	outline: none;
}

/* ------------------------------------------------------------------ en-tête et pied */

.st-topbar {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--st-line);
	position: sticky;
	top: 0;
	z-index: 30;
}

.st-topbar-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}

.st-marque {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	min-width: 0;
	text-decoration: none;
	color: var(--st-ink);
}

.st-body a.st-marque,
.st-body a.st-marque:hover {
	color: var(--st-ink);
}

.st-marque-logo.is-casse {
	display: none;
}

.st-marque-logo {
	width: 2.5rem;
	height: 2.5rem;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
	flex: 0 0 auto;
}

.st-marque-initiale {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	background: var(--st-hero);
	color: #fff;
	font-weight: 800;
	flex: 0 0 auto;
}

.st-marque-textes {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.15;
}

.st-marque-nom {
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.st-marque-sous {
	font-size: .8rem;
	color: var(--st-muted);
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.st-topbar-lien {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	padding: .45rem .8rem;
	border-radius: 999px;
	white-space: nowrap;
}

.st-topbar-lien:hover {
	background: var(--st-brand-50);
}

@media (max-width: 479.98px) {
	.st-topbar-lien span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.st-topbar-lien {
		width: 2.6rem;
		height: 2.6rem;
		justify-content: center;
		padding: 0;
		background: var(--st-brand-50);
	}
}

.st-pied {
	margin-top: 3rem;
	padding: 1.5rem 0 5.5rem;
	color: var(--st-muted);
	font-size: .9rem;
	border-top: 1px solid var(--st-line);
	background: #fff;
}

@media (min-width: 768px) {
	.st-pied {
		padding-bottom: 1.5rem;
	}
}

.st-pied-in {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	justify-content: space-between;
}

/* ------------------------------------------------------------------ bandeau */

.st-hero {
	background: var(--st-hero);
	color: #fff;
	padding: 1.25rem 0 4.5rem;
	position: relative;
	overflow: hidden;
}

.st-hero::after {
	/* halo décoratif, sans image */
	content: "";
	position: absolute;
	right: -8rem;
	top: -10rem;
	width: 28rem;
	height: 28rem;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.st-hero--court {
	padding-bottom: 3.75rem;
}

@media (min-width: 768px) {
	.st-hero {
		padding: 2rem 0 5.5rem;
	}

	.st-hero--court {
		padding-bottom: 4.5rem;
	}
}

.st-hero .st-wrap {
	position: relative;
	z-index: 1;
}

.st-body .st-retour {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: rgba(255, 255, 255, .9);
	text-decoration: none;
	font-weight: 600;
	font-size: .92rem;
	padding: .3rem .7rem .3rem .5rem;
	margin-left: -.5rem;
	border-radius: 999px;
}

.st-body .st-retour:hover {
	color: #fff;
	background: rgba(255, 255, 255, .12);
}

.st-eyebrow {
	margin: 1rem 0 .35rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .82);
}

.st-body .st-hero-titre {
	color: #fff;
	font-size: clamp(1.75rem, 1.25rem + 2.4vw, 2.85rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.025em;
	margin: 0 0 1rem;
	overflow-wrap: anywhere;
}

.st-hero-texte {
	max-width: 44rem;
	color: rgba(255, 255, 255, .9);
	margin: -.25rem 0 1rem;
	overflow-wrap: anywhere;
}

.st-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .42rem .8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
	font-size: .92rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.st-chip i {
	opacity: .9;
}

/* jauge des places, dans le bandeau */
.st-jauge {
	margin-top: 1.1rem;
	max-width: 24rem;
}

.st-jauge-texte {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: .9rem;
	font-weight: 600;
	margin-bottom: .4rem;
}

.st-jauge-barre {
	height: .5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	overflow: hidden;
}

.st-jauge-barre span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #fff;
}

.st-jauge--alerte .st-jauge-barre span {
	background: #fcd34d;
}

/* ------------------------------------------------------------------ cartes et grilles */

.st-chevauche {
	/* première rangée de cartes, posée à cheval sur le bandeau */
	margin-top: -3.25rem;
	position: relative;
	z-index: 2;
}

.st-carte {
	background: var(--st-card);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow);
	padding: 1.25rem;
	border: 1px solid rgba(15, 23, 42, .04);
}

@media (min-width: 768px) {
	.st-carte {
		padding: 1.6rem;
	}
}

.st-carte + .st-carte {
	margin-top: 1rem;
}

.st-carte-titre {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: 1.15rem;
	font-weight: 750;
	margin: 0 0 .9rem;
}

.st-carte-titre i {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	background: var(--st-brand-50);
	color: var(--st-brand);
	font-size: .95rem;
	flex: 0 0 auto;
}

.st-texte {
	overflow-wrap: anywhere;
}

.st-texte:last-child,
.st-carte > :last-child {
	margin-bottom: 0;
}

.st-grille {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

@media (min-width: 992px) {
	.st-grille {
		grid-template-columns: minmax(0, 1fr) 22rem;
		gap: 1.5rem;
		align-items: start;
	}

	.st-grille-cote {
		position: sticky;
		top: 5.25rem;
	}
}

.st-note {
	font-size: .9rem;
	color: var(--st-muted);
}

/* ------------------------------------------------------------------ boutons */

.st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 3rem;
	padding: .7rem 1.25rem;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.st-btn:active {
	transform: translateY(1px);
}

.st-btn[disabled] {
	opacity: .65;
	cursor: progress;
}

/* .st-body devant chaque variante : un bouton en lien <a> ne prend pas la couleur des liens */
.st-body .st-btn--principal {
	background: var(--st-brand);
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7);
}

.st-body .st-btn--principal:hover,
.st-body .st-btn--principal:focus-visible {
	background: var(--st-brand-hover);
	color: #fff;
}

.st-body .st-btn--secondaire {
	background: var(--st-brand-50);
	color: var(--st-brand-ink);
	border-color: var(--st-brand-100);
}

.st-body .st-btn--secondaire:hover {
	background: var(--st-brand-100);
	color: var(--st-brand-ink);
}

.st-body .st-btn--clair {
	background: #fff;
	color: var(--st-ink);
	border-color: var(--st-line-strong);
}

.st-body .st-btn--clair:hover {
	border-color: var(--st-brand);
	color: var(--st-brand-ink);
}

.st-body .st-btn--danger {
	background: #fff;
	color: var(--st-err);
	border-color: var(--st-err-200);
}

.st-body .st-btn--danger:hover {
	background: var(--st-err-50);
	color: var(--st-err);
}

.st-btn--grand {
	min-height: 3.4rem;
	font-size: 1.05rem;
	padding: .8rem 1.5rem;
}

.st-btn--plein {
	width: 100%;
}

.st-btn--suite::after {
	/* flèche sans icône dans le texte du bouton (le libellé reste seul dans la balise) */
	content: "";
	width: .55rem;
	height: .55rem;
	border-top: 2.5px solid currentColor;
	border-right: 2.5px solid currentColor;
	transform: rotate(45deg);
	margin-left: .15rem;
}

.st-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	align-items: center;
}

@media (max-width: 575.98px) {
	.st-actions .st-btn,
	.st-actions form,
	.st-actions form .st-btn,
	.st-carte > .st-btn--grand,
	.st-carte > form > .st-btn--grand {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ messages (_flash.php) */

.st-body .alert {
	border-radius: var(--st-radius-md);
	border-width: 1px;
	padding: .9rem 1.1rem;
	overflow-wrap: anywhere;
}

.st-body .alert-success {
	background: var(--st-ok-50);
	border-color: var(--st-ok-200);
	color: #064e3b;
}

.st-body .alert-danger {
	background: var(--st-err-50);
	border-color: var(--st-err-200);
	color: #881337;
}

.st-body .alert-info {
	background: var(--st-info-50);
	border-color: var(--st-info-200);
	color: #0c4a6e;
}

.st-body .alert-warning {
	background: var(--st-warn-50);
	border-color: var(--st-warn-200);
	color: #78350f;
}

/* ------------------------------------------------------------------ pastilles */

.st-pastille {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .22rem .65rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	background: #f1f5f9;
	color: #334155;
}

.st-pastille--ok {
	background: var(--st-ok-50);
	color: var(--st-ok);
}

.st-pastille--alerte {
	background: var(--st-warn-50);
	color: var(--st-warn);
}

.st-pastille--complet {
	background: var(--st-err-50);
	color: var(--st-err);
}

.st-pastille--marque {
	background: var(--st-brand-50);
	color: var(--st-brand-ink);
}

/* ------------------------------------------------------------------ page du stage : deux voies */

.st-voies {
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.st-voies--deux {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.st-voie {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	background: var(--st-card);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow);
	padding: 1.25rem;
	border: 2px solid transparent;
}

@media (min-width: 768px) {
	.st-voie {
		padding: 1.5rem;
	}
}

.st-voie--adherent {
	border-color: var(--st-brand-200);
	background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 55%);
}

.st-voie-tete {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
}

.st-voie-icone {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 14px;
	background: var(--st-brand-50);
	color: var(--st-brand);
	font-size: 1.15rem;
	flex: 0 0 auto;
}

.st-voie--adherent .st-voie-icone {
	background: var(--st-brand);
	color: #fff;
}

.st-voie-titre {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0;
	line-height: 1.25;
}

.st-voie-prix {
	margin: .15rem 0 0;
	font-size: .95rem;
	color: var(--st-muted);
}

.st-voie-prix strong {
	color: var(--st-ink);
	font-size: 1.05rem;
}

.st-voie-texte {
	margin: 0;
}

.st-voie-avantages {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .35rem;
	font-size: .95rem;
}

.st-voie-avantages li {
	display: flex;
	gap: .55rem;
	align-items: baseline;
}

.st-voie-avantages i {
	color: var(--st-ok);
}

.st-voie-pied {
	margin-top: auto;
}

.st-voie--seule {
	max-width: 40rem;
}

.st-voie-etat {
	display: flex;
	gap: .85rem;
	align-items: flex-start;
}

.st-voie-etat > i {
	font-size: 1.4rem;
	color: var(--st-warn);
	margin-top: .1rem;
}

/* champ et bouton côte à côte (« recevoir mon lien », code d'accès) */
.st-champ-bouton {
	display: flex;
	flex-direction: column;
	gap: .6rem;
}

@media (min-width: 480px) {
	.st-champ-bouton {
		flex-direction: row;
		align-items: stretch;
	}

	.st-champ-bouton .form-control {
		flex: 1 1 auto;
		min-width: 0;
	}

	.st-champ-bouton .st-btn {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* ------------------------------------------------------------------ contenu de la page du stage */

.st-tarifs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-tarif {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: .8rem 0;
	border-bottom: 1px solid var(--st-line);
}

.st-tarif:last-child {
	border-bottom: 0;
}

.st-tarif-nom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .6rem;
	font-weight: 600;
	color: var(--st-ink);
	overflow-wrap: anywhere;
}

.st-tarif-prix {
	font-weight: 800;
	color: var(--st-ink);
	text-align: right;
	flex: 0 1 auto;
	max-width: 58%;
}

.st-tarif-prix small {
	display: block;
	font-weight: 500;
	color: var(--st-muted);
	font-size: .82rem;
}

.st-sous-titre {
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--st-muted);
	margin: 1.1rem 0 .25rem;
}

.st-infos {
	display: grid;
	gap: .9rem;
	margin: 0;
}

.st-info {
	display: flex;
	gap: .8rem;
	align-items: flex-start;
}

.st-info > i {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 12px;
	background: var(--st-brand-50);
	color: var(--st-brand);
	flex: 0 0 auto;
}

.st-info dt {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--st-muted);
}

.st-info dd {
	margin: 0;
	color: var(--st-ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.st-contact {
	display: grid;
	gap: .6rem;
}

.st-contact-nom {
	font-weight: 700;
	color: var(--st-ink);
	margin: 0;
}

.st-contact .st-actions {
	gap: .5rem;
}

.st-conditions {
	max-height: 18rem;
	overflow-y: auto;
	padding: 1rem 1.1rem;
	border-radius: var(--st-radius-md);
	background: #f8fafc;
	border: 1px solid var(--st-line);
	overflow-wrap: anywhere;
}

/* barre collante en bas de l'écran du téléphone */
.st-barre {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--st-line);
	box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .45);
	transform: translateY(110%);
	transition: transform .25s ease;
}

.st-barre.is-visible {
	transform: translateY(0);
}

.st-barre-prix {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}

.st-barre-prix span {
	font-size: .78rem;
	color: var(--st-muted);
	font-weight: 600;
}

.st-barre-prix strong {
	font-size: 1.15rem;
	color: var(--st-ink);
}

.st-barre .st-btn {
	min-height: 2.9rem;
	padding: .6rem 1.2rem;
}

@media (min-width: 992px) {
	.st-barre {
		display: none;
	}
}

/* ------------------------------------------------------------------ page du club */

.st-club-tete {
	display: flex;
	gap: 1.1rem;
	align-items: center;
	margin-top: .75rem;
}

.st-club-logo {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 18px;
	background: #fff;
	object-fit: contain;
	padding: .35rem;
	box-shadow: 0 10px 25px -12px rgba(0, 0, 0, .5);
	flex: 0 0 auto;
}

.st-club-tete .st-hero-titre {
	margin: 0;
}

.st-club-tete .st-eyebrow {
	margin-top: 0;
}

.st-stages {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.st-stages {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 1100px) {
	.st-stages {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.st-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--st-card);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.st-stage:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 22px 40px -18px rgba(15, 23, 42, .35);
}

.st-stage-bandeau {
	/* teinte claire : la carte chevauche le bandeau sombre de la page, elle doit s'en détacher */
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, var(--st-brand-50) 0%, #f5f3ff 100%);
	color: var(--st-ink);
	border-bottom: 1px solid var(--st-brand-100);
}

.st-stage-bandeau .st-date {
	box-shadow: 0 6px 14px -8px rgba(55, 48, 163, .45);
}

.st-date {
	display: grid;
	place-items: center;
	min-width: 3.75rem;
	padding: .35rem .5rem;
	border-radius: 14px;
	background: #fff;
	color: var(--st-ink);
	line-height: 1;
	box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6);
}

.st-date-jour {
	font-size: 1.45rem;
	font-weight: 800;
}

.st-date-mois {
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--st-brand);
	margin-top: .2rem;
}

.st-stage-dates {
	font-weight: 700;
	font-size: .95rem;
}

.st-stage-dates span {
	display: block;
	font-weight: 500;
	color: var(--st-muted);
	font-size: .85rem;
}

.st-stage-corps {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.15rem 1.25rem 1.25rem;
	flex: 1 1 auto;
}

.st-stage-titre {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0;
	overflow-wrap: anywhere;
}

.st-body .st-stage-titre a {
	color: var(--st-ink);
	text-decoration: none;
}

.st-stage-titre a::after {
	/* toute la carte est cliquable */
	content: "";
	position: absolute;
	inset: 0;
}

.st-stage-faits {
	display: grid;
	gap: .35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .93rem;
}

.st-stage-faits li {
	display: flex;
	gap: .55rem;
	align-items: baseline;
}

.st-stage-faits i {
	width: 1rem;
	color: var(--st-brand);
	text-align: center;
}

.st-badges {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
}

.st-badges:empty {
	display: none;
}

.st-stage-tarifs {
	list-style: none;
	margin: 0;
	padding: .65rem .8rem;
	border-radius: var(--st-radius-sm);
	background: #f8fafc;
	display: grid;
	gap: .3rem;
	font-size: .9rem;
}

.st-stage-tarifs li {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
}

.st-stage-tarifs li span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.st-stage-tarifs strong {
	color: var(--st-ink);
	text-align: right;
}

.st-stage-pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: auto;
	padding-top: .75rem;
	border-top: 1px solid var(--st-line);
}

.st-stage-prix {
	font-size: .85rem;
	color: var(--st-muted);
}

.st-stage-prix strong {
	display: block;
	color: var(--st-ink);
	font-size: 1.15rem;
}

.st-stage-voir {
	font-weight: 700;
	color: var(--st-brand-ink);
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.st-vide {
	text-align: center;
	padding: 2.5rem 1.25rem;
}

.st-vide-icone {
	display: inline-grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 20px;
	background: var(--st-brand-50);
	color: var(--st-brand);
	font-size: 1.6rem;
	margin-bottom: 1rem;
}

.st-vide h1,
.st-vide h2 {
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0 0 .5rem;
}

.st-vide p {
	max-width: 34rem;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------------------------ formulaire */

.st-form.st-carte {
	scroll-margin-top: 5rem;
}

.st-form .form-label,
.st-form legend {
	font-weight: 650;
	color: var(--st-ink);
	margin-bottom: .4rem;
	font-size: 1rem;
}

.st-form .form-control,
.st-form .form-select {
	min-height: 3rem;
	border-radius: 12px;
	border: 1.5px solid var(--st-line-strong);
	background-color: #fff;
	font-size: 1rem;
	padding: .65rem .9rem;
	color: var(--st-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.st-form textarea.form-control {
	min-height: 5.5rem;
}

.st-form .form-control:focus,
.st-form .form-select:focus {
	border-color: var(--st-brand);
	box-shadow: var(--st-focus);
}

.st-form .form-control.is-invalid,
.st-form .form-select.is-invalid {
	border-color: var(--st-err);
}

.st-form .form-text {
	color: var(--st-muted);
	font-size: .88rem;
	margin-top: .35rem;
}

.st-form .invalid-feedback {
	color: var(--st-err);
	font-weight: 600;
	font-size: .9rem;
}

/* bloc d'erreur vide de l'ActiveField : Bootstrap l'affiche à côté d'un champ .is-invalid */
.st-form .invalid-feedback:empty {
	display: none !important;
}

.st-form .invalid-feedback::before {
	content: "\f06a";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	margin-right: .35rem;
}

.st-form .mb-3 {
	margin-bottom: 1.15rem !important;
}

.st-requis::after,
.st-form div.required label.form-label::after,
.st-form .required > label.form-label::after {
	content: " *";
	color: var(--st-err);
}

.st-requis-seul {
	color: var(--st-err);
}

.st-champs {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.st-form fieldset legend {
	float: none;
	width: auto;
}

.st-duo {
	display: grid;
	gap: 0 1rem;
}

@media (min-width: 576px) {
	.st-duo {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* cases à cocher (consentement, conditions) */
.st-form .form-check {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	padding: .9rem 1rem;
	border-radius: var(--st-radius-md);
	background: #f8fafc;
	border: 1.5px solid var(--st-line);
}

.st-form .form-check .form-check-input {
	float: none;
	margin: .1rem 0 0;
	width: 1.35rem;
	height: 1.35rem;
	flex: 0 0 auto;
	border: 2px solid var(--st-line-strong);
	cursor: pointer;
}

.st-form .form-check-input:checked {
	background-color: var(--st-brand);
	border-color: var(--st-brand);
}

.st-form .form-check-label {
	cursor: pointer;
	color: var(--st-ink);
}

.st-form .form-check:has(.form-check-input:checked) {
	background: var(--st-brand-50);
	border-color: var(--st-brand-200);
}

.st-form .form-check .invalid-feedback {
	flex-basis: 100%;
}

.st-form .form-check:has(.invalid-feedback) {
	flex-wrap: wrap;
}

/* choix en cartes (formule, options, sexe, choix multiples) */
.st-choix-liste {
	display: grid;
	gap: .6rem;
}

.st-choix-liste--deux {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-choix {
	position: relative;
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: .9rem 1rem;
	border-radius: var(--st-radius-md);
	border: 1.5px solid var(--st-line-strong);
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
	margin: 0;
}

.st-choix:hover {
	border-color: var(--st-brand-200);
}

.st-choix-input {
	appearance: none;
	-webkit-appearance: none;
	width: 1.35rem;
	height: 1.35rem;
	margin: 0;
	border: 2px solid var(--st-line-strong);
	border-radius: 50%;
	background-color: #fff;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.st-choix-input[type=checkbox] {
	border-radius: 6px;
}

.st-choix-input::before {
	content: "";
	width: .6rem;
	height: .6rem;
	border-radius: 50%;
	background: #fff;
	transform: scale(0);
	transition: transform .12s ease;
}

.st-choix-input[type=checkbox]::before {
	width: .75rem;
	height: .4rem;
	border-radius: 0;
	background: transparent;
	border-left: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg) scale(0);
	margin-top: -.15rem;
}

.st-choix-input:checked {
	background-color: var(--st-brand);
	border-color: var(--st-brand);
}

.st-choix-input:checked::before {
	transform: scale(1);
}

.st-choix-input[type=checkbox]:checked::before {
	transform: rotate(-45deg) scale(1);
}

.st-choix-input:focus-visible {
	box-shadow: var(--st-focus);
	outline: none;
}

.st-choix:has(.st-choix-input:checked) {
	border-color: var(--st-brand);
	background: var(--st-brand-50);
	box-shadow: 0 0 0 1px var(--st-brand) inset;
}

.st-choix:has(.st-choix-input.is-invalid) {
	border-color: var(--st-err);
}

.st-choix-corps {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	color: var(--st-ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.st-choix-corps small {
	font-weight: 500;
	color: var(--st-muted);
	font-size: .85rem;
}

.st-choix-prix {
	font-weight: 800;
	color: var(--st-ink);
	white-space: nowrap;
	text-align: right;
}

.st-choix-prix small {
	display: block;
	font-weight: 500;
	color: var(--st-muted);
	font-size: .8rem;
}

.st-choix--icone .st-choix-corps {
	flex-direction: row;
	align-items: center;
	gap: .55rem;
}

.st-choix--icone i {
	color: var(--st-brand);
}

/* jours de présence d'une formule par jour : cases compactes, plusieurs par ligne */
.st-jours-liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
	gap: .5rem;
}

.st-choix--jour {
	gap: .6rem;
	padding: .6rem .75rem;
}

.st-choix--jour .st-choix-corps {
	line-height: 1.2;
}

/* bouton d'action secondaire présenté comme un lien (« Cocher tous les jours ») */
.st-lien-bouton {
	margin-top: .6rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--st-brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.st-lien-bouton:hover {
	color: var(--st-brand-hover);
}

.st-lien-bouton:focus-visible {
	outline: none;
	border-radius: 4px;
	box-shadow: var(--st-focus);
}

/* oui / non : deux boutons collés */
.st-segment {
	display: inline-grid;
	grid-template-columns: repeat(2, minmax(6.5rem, 1fr));
	gap: .5rem;
	width: 100%;
	max-width: 22rem;
}

.st-segment-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.st-segment-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	min-height: 3rem;
	border-radius: 12px;
	border: 1.5px solid var(--st-line-strong);
	background: #fff;
	color: var(--st-ink);
	font-weight: 700;
	cursor: pointer;
	transition: all .15s ease;
	margin: 0;
}

.st-segment-btn:hover {
	border-color: var(--st-brand-200);
}

.st-segment-input:checked + .st-segment-btn {
	background: var(--st-brand);
	border-color: var(--st-brand);
	color: #fff;
}

.st-segment-input:focus-visible + .st-segment-btn {
	box-shadow: var(--st-focus);
}

.st-segment-input.is-invalid + .st-segment-btn {
	border-color: var(--st-err);
}

.st-question {
	border: 0;
	padding: 0;
	margin: 0 0 1.25rem;
	min-width: 0;
}

.st-question > legend {
	margin-bottom: .55rem;
	line-height: 1.4;
}

.st-question .form-text {
	margin-top: -.25rem;
	margin-bottom: .6rem;
}

/* identité reprise de la fiche (lien personnel) */
.st-identite {
	display: grid;
	gap: .6rem 1rem;
	margin: 0 0 .9rem;
	padding: 1rem 1.1rem;
	border-radius: var(--st-radius-md);
	background: #f8fafc;
	border: 1px solid var(--st-line);
}

@media (min-width: 576px) {
	.st-identite {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.st-identite dt {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--st-muted);
}

.st-identite dd {
	margin: 0;
	font-weight: 700;
	color: var(--st-ink);
	overflow-wrap: anywhere;
}

.st-tarif-adherent {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .35rem .8rem;
	border-radius: 999px;
	background: var(--st-ok-50);
	color: var(--st-ok);
	font-weight: 700;
	font-size: .9rem;
	margin: 0;
}

/* étapes */
.st-etapes {
	display: flex;
	gap: .35rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	counter-reset: etape;
}

.st-etapes-item {
	flex: 1 1 0;
	min-width: 0;
}

.st-etapes-btn {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	color: var(--st-muted);
	font-size: .78rem;
	font-weight: 700;
	cursor: default;
}

.st-etapes-btn::before {
	content: "";
	display: block;
	height: .35rem;
	border-radius: 999px;
	background: var(--st-line);
	transition: background-color .2s ease;
}

.st-etapes-item.is-fait .st-etapes-btn {
	cursor: pointer;
	color: var(--st-brand-ink);
}

.st-etapes-item.is-fait .st-etapes-btn::before {
	background: var(--st-brand-200);
}

.st-etapes-item.is-actif .st-etapes-btn {
	color: var(--st-ink);
}

.st-etapes-item.is-actif .st-etapes-btn::before {
	background: var(--st-brand);
}

.st-etapes-libelle {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
	.st-etapes-libelle {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

.st-etape-compteur {
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--st-brand);
	margin: 0 0 .25rem;
}

.st-etape {
	scroll-margin-top: 5.5rem;
}

.st-etape + .st-etape {
	margin-top: 1rem;
}

.st-form.st-assistant .st-etape + .st-etape {
	margin-top: 0;
}

.st-etape-titre {
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0 0 .35rem;
	outline: none;
}

/* le titre reçoit le focus à chaque étape, pour les lecteurs d'écran : sans cadre visible */
.st-body .st-etape-titre:focus,
.st-body .st-etape-titre:focus-visible {
	box-shadow: none;
}

.st-etape-intro {
	color: var(--st-muted);
	margin: 0 0 1.25rem;
	font-size: .95rem;
}

.st-etape-nav {
	display: flex;
	flex-wrap: wrap-reverse;
	gap: .75rem;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--st-line);
}

@media (max-width: 479.98px) {
	.st-etape-nav .st-btn {
		flex: 1 1 100%;
	}
}

.st-etape-nav .st-btn--clair {
	border-color: transparent;
	background: transparent;
}

.st-erreurs:focus {
	outline: 3px solid var(--st-err);
	outline-offset: 2px;
}

.st-erreurs ul {
	padding-left: 1.2rem;
}

/* récapitulatif (colonne de droite) */
.st-recap-titre {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 .75rem;
}

.st-recap-stage {
	display: flex;
	gap: .8rem;
	align-items: center;
	padding-bottom: .9rem;
	margin-bottom: .9rem;
	border-bottom: 1px solid var(--st-line);
}

.st-recap-stage strong {
	display: block;
	color: var(--st-ink);
	overflow-wrap: anywhere;
}

.st-recap-stage span {
	font-size: .88rem;
	color: var(--st-muted);
}

.st-recap-lignes {
	display: grid;
	gap: .5rem;
	margin: 0 0 .9rem;
	padding: 0;
	list-style: none;
	font-size: .95rem;
}

.st-recap-lignes li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.st-recap-lignes li span:first-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.st-recap-lignes li span:last-child {
	white-space: nowrap;
	font-weight: 600;
	color: var(--st-ink);
}

.st-recap-vide {
	color: var(--st-muted);
	font-size: .92rem;
	margin: 0 0 .9rem;
}

.st-recap-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding-top: .9rem;
	border-top: 1px dashed var(--st-line-strong);
	color: var(--st-ink);
	font-weight: 700;
}

.st-recap-total strong {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.01em;
}

.st-recap-paiement {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	margin: 1rem 0 0;
	padding: .8rem .9rem;
	border-radius: var(--st-radius-sm);
	background: #f8fafc;
	font-size: .88rem;
	color: var(--st-text);
}

.st-recap-paiement i {
	color: var(--st-brand);
	margin-top: .15rem;
}

/* résumé de la dernière étape, rempli par le script */
.st-relecture {
	display: grid;
	gap: .75rem;
	margin: 0 0 1.25rem;
}

.st-relecture-bloc {
	padding: .9rem 1rem;
	border-radius: var(--st-radius-md);
	border: 1px solid var(--st-line);
	background: #f8fafc;
}

.st-relecture-bloc-tete {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: .25rem;
}

.st-relecture-bloc h3 {
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--st-muted);
	margin: 0;
}

.st-relecture-bloc button {
	border: 0;
	background: none;
	padding: .15rem .35rem;
	color: var(--st-brand-ink);
	font-weight: 700;
	font-size: .88rem;
	text-decoration: underline;
	cursor: pointer;
}

.st-relecture-bloc p {
	margin: 0;
	color: var(--st-ink);
	overflow-wrap: anywhere;
}

/* total en bas de l'écran du téléphone, pendant le formulaire */
.st-barre--total .st-barre-prix strong {
	font-size: 1.25rem;
}

/* ------------------------------------------------------------------ mon inscription, paiement */

.st-statut {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.st-statut-icone {
	display: inline-grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 16px;
	font-size: 1.35rem;
	flex: 0 0 auto;
	background: #f1f5f9;
	color: #334155;
}

.st-statut--ok .st-statut-icone {
	background: var(--st-ok-50);
	color: var(--st-ok);
}

.st-statut--alerte .st-statut-icone {
	background: var(--st-warn-50);
	color: var(--st-warn);
}

.st-statut--info .st-statut-icone {
	background: var(--st-info-50);
	color: var(--st-info);
}

.st-statut--marque .st-statut-icone {
	background: var(--st-brand-50);
	color: var(--st-brand);
}

.st-statut--neutre .st-statut-icone {
	background: #f1f5f9;
	color: #475569;
}

.st-statut-libelle {
	display: block;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--st-ink);
	margin: 0 0 .15rem;
}

.st-statut p {
	margin: 0;
}

.st-montants {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.st-montants th,
.st-montants td {
	padding: .65rem 0;
	border-bottom: 1px solid var(--st-line);
	vertical-align: baseline;
}

.st-montants th {
	font-weight: 500;
	color: var(--st-text);
	padding-right: 1rem;
	overflow-wrap: anywhere;
}

.st-montants td {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
	color: var(--st-ink);
}

.st-montants .text-muted {
	color: var(--st-muted) !important;
	font-weight: 400;
}

.st-montants tr.st-montant-fort th,
.st-montants tr.st-montant-fort td {
	font-weight: 800;
	color: var(--st-ink);
	font-size: 1.05rem;
	border-bottom: 0;
}

.st-montants tr.st-montant-total th,
.st-montants tr.st-montant-total td {
	border-top: 2px solid var(--st-line-strong);
}

.st-attente {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-weight: 600;
	color: var(--st-ink);
}

.st-attente .spinner-border {
	color: var(--st-brand);
}

.st-securite {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-size: .9rem;
	color: var(--st-muted);
	margin: .9rem 0 0;
}

.st-securite i {
	color: var(--st-ok);
	margin-top: .15rem;
}

.st-grand-etat {
	text-align: center;
	padding: 2rem 1.25rem;
}

.st-grand-etat .st-statut-icone {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 24px;
	font-size: 2rem;
	margin-bottom: 1rem;
}

.st-grand-etat h1 {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0 0 .5rem;
}

.st-grand-etat .st-actions {
	justify-content: center;
	margin-top: 1.25rem;
}

details.st-details {
	border-radius: var(--st-radius-md);
	border: 1px solid var(--st-line);
	background: #f8fafc;
	padding: .75rem 1rem;
	margin-bottom: 1rem;
}

details.st-details summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--st-ink);
}

/* ------------------------------------------------------------------ aperçu pour le club */

/* bandeau de l'aperçu (StageController::actionApercu), sous la barre du haut */
.st-apercu {
	background: #fffbeb;
	border-bottom: 1px solid var(--st-warn-200);
	color: #713f12;
	font-size: .9rem;
}

.st-apercu-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	padding-top: .6rem;
	padding-bottom: .6rem;
}

.st-apercu-texte {
	margin: 0;
	flex: 1 1 22rem;
}

.st-apercu-texte .fa-eye {
	color: var(--st-warn);
	margin-right: .25rem;
}

.st-apercu-note {
	display: block;
	margin-top: .1rem;
}


.st-apercu-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.st-body .st-apercu-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: .25rem .8rem;
	border-radius: 999px;
	border: 1px solid var(--st-warn-200);
	background: #fff;
	color: #713f12;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
}

.st-body .st-apercu-nav a:hover {
	border-color: var(--st-warn);
	color: #713f12;
}

.st-body .st-apercu-nav a.is-actif {
	background: #713f12;
	border-color: #713f12;
	color: #fff;
}

.st-body .st-apercu-nav a:focus-visible {
	outline: none;
	box-shadow: var(--st-focus);
}

/* téléphone (et cadre téléphone de l'admin) : bandeau court, vues sur une ligne */
@media (max-width: 575.98px) {
	.st-apercu {
		font-size: .82rem;
	}

	.st-apercu-in {
		gap: .4rem;
		padding-top: .45rem;
		padding-bottom: .5rem;
	}

	.st-apercu-nav {
		flex-wrap: nowrap;
		width: 100%;
		overflow-x: auto;
		gap: .25rem;
	}

	.st-body .st-apercu-nav a {
		flex: 0 0 auto;
		min-height: 1.85rem;
		padding: .2rem .55rem;
		font-size: .8rem;
	}
}

/* message « rien n'est envoyé » (stages.js) */
.st-apercu-message {
	position: fixed;
	left: 50%;
	bottom: 5.5rem;
	z-index: 110;
	max-width: calc(100% - 2rem);
	padding: .75rem 1.1rem;
	border-radius: var(--st-radius-sm);
	background: var(--st-ink);
	color: #fff;
	box-shadow: var(--st-shadow);
	font-size: .95rem;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 1rem);
	transition: opacity .2s ease, transform .2s ease;
}

.st-apercu-message.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ mouvements réduits */

@media (prefers-reduced-motion: reduce) {
	.st-body *,
	.st-body *::before,
	.st-body *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
