/* ==========================================================================
   Formulaire d'inscription par étapes (/inscription) : stepper, étapes et
   pied de boutons. La mise en page de la page (volets, en-tête, tailles des
   champs) est dans auth-split.css, chargée par le layout auth-split.
   Chargée uniquement par resources/views/auth/register.blade.php.
   ========================================================================== */

/* Stepper : pastilles numérotées reliées, libellé sous chaque étape. */
.vt-insc-stepper {
  list-style: none;
  display: flex;
  flex: none;
  margin: 0 0 22px;
  padding: 0;
}
.vt-insc-stepper li { flex: 1 1 0; position: relative; text-align: center; }
.vt-insc-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(50% + 26px);
  right: calc(-50% + 26px);
  height: 2px;
  border-radius: 2px;
  background: #dfe6ef;
  transition: background .25s ease;
}
.vt-insc-stepper li.fait:not(:last-child)::after { background: var(--vt-primary); }
.vt-insc-pas {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: 0; padding: 0;
  color: var(--vt-muted);
  font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.vt-insc-pas:disabled { cursor: default; }
.vt-insc-pastille {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid #d5deea;
  color: var(--vt-muted);
  font-size: 14px; font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.vt-insc-coche { display: none; width: 16px; height: 16px; }
.vt-insc-stepper li.actif .vt-insc-pas { color: var(--vt-text); }
.vt-insc-stepper li.actif .vt-insc-pastille {
  border-color: var(--vt-primary);
  color: var(--vt-primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .14);
}
.vt-insc-stepper li.fait .vt-insc-pas { color: var(--vt-primary); }
.vt-insc-stepper li.fait .vt-insc-pastille {
  background: var(--vt-primary);
  border-color: var(--vt-primary);
  color: #fff;
}
.vt-insc-stepper li.fait .vt-insc-num { display: none; }
.vt-insc-stepper li.fait .vt-insc-coche { display: block; }
.vt-insc-pas:hover .vt-insc-pastille { border-color: var(--vt-primary); }

/* Les marges automatiques (au-dessus de la progression, sous le formulaire)
   centrent le bloc dans la hauteur laissée libre par le stepper. */
.vt-insc-progression {
  flex: none;
  color: var(--vt-primary);
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  margin: auto 0 4px;
}

/* Formulaire : hauteur de l'étape la plus longue (messages d'erreur compris)
   pour que les boutons ne bougent pas d'une étape à l'autre ; il se réduit
   si la fenêtre est trop basse, la zone des champs défilant alors seule. */
.vt-insc-form {
  display: flex; flex-direction: column;
  flex: 0 1 480px; min-height: 0;
  margin-bottom: auto;
}
/* Marge intérieure : place de l'anneau de focus des champs ; les gouttières
   négatives des .row ne doivent pas créer de défilement horizontal. */
.vt-insc-etapes {
  flex: 1 1 auto; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  padding: 0 5px 5px; margin: 0 -5px;
}
.vt-insc-etape { border: 0; padding: 0; margin: 0; min-width: 0; }
.vt-insc-etape > legend {
  float: none; width: auto; padding: 0;
  color: var(--vt-text);
  font-size: 22px; font-weight: 700; line-height: 1.25;
  margin: 0 0 4px;
}
.vt-insc-etape .vt-split-note { margin: 2px 0 0; }
/* Le conseil change à chaque étape : hauteur stable pour que la carte ne saute pas. */
.vt-insc-conseil-texte { min-height: 4.8em; }
/* Sans JavaScript toutes les étapes restent visibles, l'une sous l'autre. */
.js .vt-insc-etape:not(.actif) { display: none; }
.js .vt-insc-etape.actif { animation: vt-insc-entree .22s ease; }
html:not(.js) .vt-insc-etape + .vt-insc-etape { margin-top: 28px; }
html:not(.js) .vt-insc-form { flex: 0 0 auto; }
html:not(.js) .vt-insc-etapes { overflow: visible; }
html:not(.js) .vt-insc-stepper,
html:not(.js) .vt-insc-progression,
html:not(.js) [data-insc-prec],
html:not(.js) [data-insc-suiv] { display: none; }
@keyframes vt-insc-entree {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .vt-insc-etape.actif { animation: none; }
}

.vt-insc-pied {
  display: flex; align-items: center; gap: 12px;
  flex: none;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--vt-border);
}
.vt-insc-pied .vt-insc-droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.vt-insc-pied .btn { white-space: nowrap; }
.vt-insc-pied .vt-legende-requis { margin: 0; }

/* ------------------------------------------------- Grands écrans de bureau -- */
@media (min-width: 1400px) and (min-height: 840px) {
  .vt-insc-stepper { margin-bottom: 26px; }
  .vt-insc-stepper li:not(:last-child)::after { top: 19px; left: calc(50% + 29px); right: calc(-50% + 29px); }
  .vt-insc-pastille { width: 40px; height: 40px; font-size: 15px; }
  .vt-insc-pas { font-size: 13.5px; }
  .vt-insc-progression { font-size: 13px; }
  .vt-insc-etape > legend { font-size: 26px; }
  .vt-insc-form { flex-basis: 550px; }
}

/* ------------------------------------------- Écrans peu hauts (portables) -- */
@media (max-height: 719.98px) {
  .vt-insc-stepper { margin-bottom: 14px; }
  .vt-insc-stepper li:not(:last-child)::after { top: 15px; left: calc(50% + 24px); right: calc(-50% + 24px); }
  .vt-insc-pastille { width: 32px; height: 32px; font-size: 13px; }
  .vt-insc-pas { gap: 5px; }
  .vt-insc-etape > legend { font-size: 20px; }
  .vt-insc-pied { margin-top: 10px; padding-top: 12px; }
  .vt-insc-form { flex-basis: 430px; }
}

/* ----------------------------------------------------------- Responsive -- */
/* Tablette : le stepper et l'étape forment un bloc centré, de hauteur stable
   d'une étape à l'autre (la zone des champs garde la hauteur de l'étape la
   plus longue). */
@media (max-width: 991.98px) {
  .vt-insc-stepper { margin-top: auto; }
  .vt-insc-progression { margin-top: 0; }
  .vt-insc-form { flex: 0 0 auto; }
  .vt-insc-etapes { overflow: visible; min-height: 330px; }
  /* « Se connecter » est déjà dans l'en-tête. */
  .vt-insc-pied [data-insc-connexion] { display: none; }
}
@media (max-width: 991.98px) and (max-height: 719.98px) {
  .vt-insc-etapes { min-height: 290px; }
}
/* Téléphone : le formulaire occupe l'écran, les boutons restent en bas. */
@media (max-width: 575.98px) {
  .vt-insc-stepper { margin-top: 0; margin-bottom: 16px; }
  .vt-insc-form { flex: 1 1 auto; margin-bottom: 0; }
  .vt-insc-etapes { min-height: 0; }
  .vt-insc-libelle { display: none; }
  .vt-insc-stepper li:not(:last-child)::after { left: calc(50% + 22px); right: calc(-50% + 22px); }
  .vt-insc-etape > legend { font-size: 20px; }
  .vt-insc-pied .vt-legende-requis { display: none; }
  /* Bouton principal sur toute la largeur ; « Précédent » réduit à sa flèche
     (le texte reste lu par les lecteurs d'écran). */
  .vt-insc-pied .vt-insc-droite { flex: 1 1 auto; }
  .vt-insc-pied .vt-insc-droite .btn { flex: 1 1 auto; }
  .vt-insc-prec-texte {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
