/* ============================================================
   TrouvePro — inscription-client.css
   ============================================================ */

/* ── LAYOUT PRINCIPAL ────────────────────────────────────── */
.insc-main {
  background: var(--gris-clair);
  min-height: calc(100vh - 120px);
  padding: 48px 24px 64px;
}
.insc-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* ── COLONNE FORMULAIRE ──────────────────────────────────── */
.insc-form-col {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 40px 48px;
}

/* ── BARRE DE PROGRESSION ────────────────────────────────── */
.progress-bar {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.prog-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gris-clair);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-mid);
  transition: background .3s, border-color .3s, color .3s;
}
.prog-label {
  font-size: 11px;
  color: var(--gris-mid);
  font-weight: 400;
  white-space: nowrap;
  transition: color .3s;
}
.progress-step.active .prog-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.progress-step.active .prog-label {
  color: var(--orange);
  font-weight: 500;
}
.progress-step.done .prog-dot {
  background: var(--vert);
  border-color: var(--vert);
  color: #fff;
}
.progress-step.done .prog-label { color: var(--vert); }
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background .3s;
}
.progress-line.done { background: var(--vert); }

/* ── ÉTAPES ──────────────────────────────────────────────── */
.etape { animation: fadeUp .35s both; }
.etape.hidden { display: none; }

.etape-header { margin-bottom: 32px; }
.etape-titre {
  font-family: var(--font-titre);
  font-size: 28px;
  font-weight: 800;
  color: var(--noir);
  letter-spacing: -.02em;
}
.etape-sous {
  font-size: 14px;
  color: var(--gris-mid);
  margin-top: 6px;
  font-weight: 300;
}

/* ── TÉLÉPHONE ───────────────────────────────────────────── */
.tel-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.tel-prefix {
  background: var(--gris-clair);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--gris-mid);
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.tel-input { flex: 1; }

/* ── BOUTON PLEINE LARGEUR ───────────────────────────────── */
.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.btn-lg { padding: 15px 26px !important; font-size: 16px !important; }

/* ── LIEN CONNEXION ──────────────────────────────────────── */
.insc-login-link {
  text-align: center;
  font-size: 13.5px;
  color: var(--gris-mid);
  margin-top: 20px;
}
.insc-login-link a {
  color: var(--orange);
  font-weight: 500;
}
.insc-login-link a:hover { text-decoration: underline; }

/* ── OTP ─────────────────────────────────────────────────── */
.otp-group { margin-bottom: 24px; }
.otp-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-titre);
  background: var(--gris-clair);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  outline: none;
  color: var(--noir);
  transition: border-color .18s, background .18s;
  caret-color: var(--orange);
}
.otp-input:focus {
  border-color: var(--orange);
  background: var(--blanc);
}
.otp-input.rempli {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.otp-input.erreur-input {
  border-color: #E53E3E;
  background: #FFF5F5;
  animation: shake .4s;
}
.otp-tiret {
  font-size: 20px;
  color: var(--border);
  flex-shrink: 0;
  padding: 0 2px;
}
.otp-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.otp-chrono {
  font-size: 13px;
  color: var(--gris-mid);
}
.otp-renvoyer {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-corps);
  padding: 0;
}
.otp-renvoyer:hover { text-decoration: underline; }
.otp-renvoyer.hidden { display: none; }

/* ── BOUTON RETOUR ───────────────────────────────────────── */
.btn-retour {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  font-size: 13.5px;
  color: var(--gris-mid);
  cursor: pointer;
  font-family: var(--font-corps);
  margin-top: 20px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.btn-retour:hover { color: var(--noir); background: var(--gris-clair); }

/* ── SUCCÈS ──────────────────────────────────────────────── */
.succes-wrapper { text-align: center; }
.succes-icone {
  font-size: 56px;
  margin-bottom: 16px;
  animation: bounceIn .5s both;
}
.succes-card {
  background: var(--gris-clair);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.succes-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gris-mid);
  font-weight: 300;
}
.succes-ligne span {
  color: var(--vert);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── COLONNE DROITE : RÉASSURANCE ────────────────────────── */
.insc-side { position: sticky; top: 88px; }
.side-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
}
.side-titre {
  font-family: var(--font-titre);
  font-size: 17px;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 24px;
}
.side-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.side-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.side-icone {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}
.side-item-titre {
  font-weight: 500;
  font-size: 14px;
  color: var(--noir);
  margin-bottom: 3px;
}
.side-item-desc {
  font-size: 13px;
  color: var(--gris-mid);
  line-height: 1.55;
  font-weight: 300;
}
.side-temoignage {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.side-temo-etoiles { color: #F5A623; font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.side-temo-texte   { font-size: 13px; color: var(--gris-mid); font-style: italic; line-height: 1.6; margin-bottom: 12px; font-weight: 300; }
.side-temo-auteur  { display: flex; align-items: center; gap: 8px; }

/* ── ÉTATS BOUTON (chargement) ───────────────────────────── */
.btn-primary.loading {
  opacity: .75;
  pointer-events: none;
  position: relative;
}
.btn-primary.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
@keyframes bounceIn {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .insc-wrapper { grid-template-columns: 1fr; }
  .insc-side    { display: none; }
  .insc-form-col { padding: 28px 24px 36px; }
}
@media (max-width: 480px) {
  .insc-main { padding: 24px 12px 48px; }
  .otp-input { width: 44px; height: 52px; font-size: 20px; }
  .otp-inputs { gap: 6px; }
}
