/*
 * Parcours de compte (maquette Inscription et paiement.dc.html) : inscription, code reçu par e-mail, connexion,
 * mot de passe, choix de l'offre, paiement, confirmation. Boutons en pilule, comme le site public.
 */

/* ---------- Mise en page ---------- */
.vs-account {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.vs-account__header {
	border-bottom: 1px solid var(--vs-bord);
	background: var(--vs-vert-eau);
}

.vs-account__bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.vs-account__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--vs-encre);
}

.vs-account__help {
	font-size: 15px;
	font-weight: 600;
	flex: none;
}

.vs-account__main {
	flex: 1;
	padding: clamp(32px, 6vw, 72px) 16px 72px;
	outline: none;
}

.vs-account__footer {
	padding: 24px 16px;
	border-top: 1px solid var(--vs-bord);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	font-size: 14px;
}

.vs-account__footer a {
	color: var(--vs-texte-2);
}

/* Étapes Offre → Paiement → Confirmation. */
.vs-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

.vs-steps__item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--vs-encre);
	font-weight: 500;
}

.vs-steps__item--actuelle {
	font-weight: 700;
}

.vs-steps__item--a-venir {
	color: var(--vs-texte-3);
}

.vs-steps__number {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--vs-petrole);
	color: var(--vs-blanc);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	font-weight: 700;
}

.vs-steps__item--a-venir .vs-steps__number {
	background: var(--vs-surface-eteinte);
	color: var(--vs-texte-2);
}

@media (max-width: 899px) {
	.vs-steps__item:not(.vs-steps__item--actuelle) .vs-steps__label {
		display: none;
	}
}

/* ---------- Colonne étroite (inscription, connexion, mot de passe) ---------- */
.vs-auth {
	max-width: 460px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.vs-auth__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: center;
}

.vs-auth__title {
	margin: 0;
	text-align: center;
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 700;
	letter-spacing: -0.025em;
	outline: none;
}

.vs-auth__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--vs-texte-3);
}

.vs-auth__lead strong {
	color: var(--vs-encre);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.vs-auth__group {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.vs-auth__after {
	margin: 0;
	text-align: center;
	font-size: 15px;
}

.vs-auth__after a {
	font-weight: 600;
}

/* ---------- Carte de formulaire ---------- */
.vs-card {
	background: var(--vs-blanc);
	border: 1px solid var(--vs-bord);
	border-radius: var(--vs-rayon);
}

.vs-form {
	padding: clamp(24px, 5vw, 36px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Alertes : résumé des erreurs, erreur du serveur. */
.vs-alert {
	padding: 12px 14px;
	border-radius: var(--vs-rayon);
	background: var(--vs-erreur-teinte);
	border: 1px solid var(--vs-erreur-ligne);
	color: var(--vs-erreur-texte);
	font-size: 15px;
	line-height: 1.5;
	display: flex;
	gap: 10px;
	outline: none;
}

.vs-alert .vs-icon {
	font-size: 20px;
	line-height: 1.5;
}

.vs-alert a {
	color: var(--vs-erreur-texte);
	font-weight: 600;
}

.vs-alert--large {
	padding: 16px 18px;
	font-size: 15.5px;
	line-height: 1.55;
	gap: 12px;
}

.vs-alert--large .vs-icon {
	font-size: 22px;
	line-height: 1.55;
}

.vs-alert--succes {
	background: var(--vs-succes-teinte);
	border-color: var(--vs-succes-ligne);
	color: var(--vs-succes-texte);
}

.vs-alert--attention {
	background: var(--vs-attention-teinte);
	border-color: var(--vs-attention-ligne);
	color: var(--vs-attention-texte);
}

/* Deux champs côte à côte (prénom, nom), l'un sous l'autre sur un écran étroit. */
.vs-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	gap: 20px;
}

/* Champs. */
.vs-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.vs-field--full {
	grid-column: 1 / -1;
}

.vs-field__label {
	font-size: 15px;
	font-weight: 600;
}

.vs-field__label-note {
	font-weight: 400;
	color: var(--vs-texte-3);
}

.vs-field__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
}

.vs-field__row a {
	font-size: 14.5px;
}

.vs-input,
.vs-select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border-radius: var(--vs-rayon);
	border: 1.5px solid var(--vs-bord-champ);
	background: var(--vs-blanc);
	font-size: 16px;
	color: var(--vs-encre);
	scroll-margin-top: 96px;
}

.vs-select {
	padding: 0 12px;
}

.vs-input[aria-invalid='true'] {
	border-color: var(--vs-erreur);
}

.vs-field__hint {
	font-size: 14px;
	color: var(--vs-texte-3);
}

.vs-field__hint--small {
	font-size: 13.5px;
}

.vs-field__hint strong {
	color: var(--vs-encre);
	font-weight: 600;
	font-family: var(--vs-police-mono);
	font-size: 13.5px;
	overflow-wrap: anywhere;
}

.vs-field__error {
	font-size: 14px;
	color: var(--vs-erreur-texte);
}

/* Mot de passe avec bouton Afficher. */
.vs-password {
	position: relative;
}

.vs-password .vs-input {
	padding-right: 56px;
}

.vs-password__toggle {
	position: absolute;
	right: 2px;
	top: 2px;
	width: 44px;
	height: 44px;
	border: none;
	background: none;
	border-radius: var(--vs-rayon-sm);
	cursor: pointer;
	color: var(--vs-texte-2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-password__toggle .vs-icon {
	font-size: 22px;
}

/* Case à cocher. */
.vs-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.5;
	cursor: pointer;
}

.vs-check input {
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--vs-petrole);
	flex: none;
	scroll-margin-top: 96px;
}

/* Bouton principal en pilule. */
.vs-submit {
	height: 52px;
	border-radius: var(--vs-rayon-pilule);
	border: none;
	background: var(--vs-petrole);
	color: var(--vs-blanc);
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	text-decoration: none;
}

.vs-submit:hover {
	background: var(--vs-petrole-fonce);
	color: var(--vs-blanc);
}

.vs-submit:disabled {
	cursor: not-allowed;
}

.vs-submit--56 {
	height: 56px;
	font-size: 17px;
}

.vs-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--vs-blanc);
	animation: vs-spin 0.8s linear infinite;
	flex: none;
}

.vs-spinner--20 {
	width: 20px;
	height: 20px;
}

.vs-spinner--dark {
	width: 16px;
	height: 16px;
	border-width: 2px;
	border-color: var(--vs-bord-champ);
	border-top-color: var(--vs-petrole);
}

/* Bouton secondaire en ligne (« Renvoyer le code »). */
.vs-linkbutton {
	padding: 0;
	border: none;
	background: none;
	color: var(--vs-petrole);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.vs-linkbutton:hover {
	color: var(--vs-petrole-clair);
}

.vs-linkbutton:disabled {
	color: var(--vs-texte-3);
	text-decoration: none;
	cursor: default;
}

/* ---------- Code à 6 chiffres ---------- */
.vs-code__input {
	height: 64px;
	text-align: center;
	font-family: var(--vs-police-mono);
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0.4em;
	padding: 0 0 0 0.4em;
}

.vs-code__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	font-size: 15px;
}

/* ---------- Message envoyé (mot de passe oublié) ---------- */
.vs-sent {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
}

.vs-sent__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--vs-succes-teinte);
	color: var(--vs-succes-texte);
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-sent__icon .vs-icon {
	font-size: 28px;
}

.vs-sent__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.vs-sent__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--vs-texte-2);
}

.vs-sent a {
	font-size: 15px;
	font-weight: 600;
}

/* ---------- Message éphémère ---------- */
.vs-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 90;
	max-width: calc(100vw - 32px);
	padding: 14px 18px;
	border-radius: var(--vs-rayon);
	background: var(--vs-encre);
	color: var(--vs-blanc);
	font-size: 15px;
	display: flex;
	gap: 10px;
	align-items: center;
	box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.4);
}

.vs-toast .vs-icon {
	font-size: 20px;
	color: #9cc7c1;
}

/* Texte lu seulement par les lecteurs d'écran. */
.vs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
