/* ============================================================
   souscrire.html — Tunnel pré-KYC autonomie
   ============================================================ */

.souscrire-body {
  background: var(--ivory);
  min-height: 100vh;
}

.souscrire-header {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.wizard {
  padding: 3rem 0 5rem;
  min-height: calc(100vh - 200px);
}

.wizard-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

/* === SIDEBAR PROGRESSION === */
.wizard-sidebar {
  position: sticky;
  top: 100px;
}

.wizard-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 0.6em;
}

.wizard-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.7em;
}

.wizard-intro {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 2em;
}

.wizard-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  counter-reset: step;
}

.wstep {
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.55em 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}

.wstep::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 100%;
  width: 1px;
  height: 0.55em;
  background: var(--hairline);
}

.wstep:last-child::before { display: none; }

.wstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ivory-dark);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1.5px solid var(--hairline);
  flex-shrink: 0;
  transition: all 0.25s;
}

.wstep.active .wstep-num {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.wstep.done .wstep-num {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.wstep.done .wstep-num::before { content: "✓"; }

.wstep.done .wstep-num { font-size: 0; }
.wstep.done .wstep-num::before { font-size: 14px; }

.wstep.active .wstep-label,
.wstep.done .wstep-label {
  color: var(--navy);
  font-weight: 500;
}

.wizard-trust {
  background: var(--ivory-dark);
  border-radius: 8px;
  padding: 1.2rem;
  border: 1px solid var(--hairline);
}

.wizard-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.3em 0;
}

/* === MAIN PANEL === */
.wizard-main {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 30px 80px -30px rgba(6, 22, 50, 0.12);
}

.wstep-panel {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  animation: fadeIn 0.3s ease-out;
}

.wstep-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 0.6em;
}

.wstep-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5em;
}

.step-lead {
  color: var(--text);
  margin-bottom: 2.2em;
  line-height: 1.6;
}

/* Champs */
.field {
  margin-bottom: 1.4rem;
  position: relative;
}

.field-row {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.field-row:has(> .field:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.field-row:has(> .field:nth-child(3):last-child) { grid-template-columns: 1fr 2fr 2fr; }
.field-row .field { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select {
  width: 100%;
  font: inherit;
  padding: 0.85em 1em;
  border: 1.5px solid var(--hairline);
  border-radius: 6px;
  background: var(--ivory);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #C46A3D;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.4em 0 0;
  font-style: italic;
}

.checkbox {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.checkbox input[type="checkbox"] {
  margin-top: 0.2em;
  accent-color: var(--gold);
  width: 16px; height: 16px;
}

/* Radio cards */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.radio-card {
  display: block;
  cursor: pointer;
  padding: 1em 1.1em;
  background: var(--ivory);
  border: 1.5px solid var(--hairline);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
  transition: all 0.18s;
  position: relative;
}

.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: block; line-height: 1.5; }
.radio-card span small { color: var(--text-muted); font-size: 0.85em; }

.radio-card:hover {
  border-color: var(--gold-light);
  background: var(--ivory-dark);
}

.radio-card:has(input:checked) {
  border-color: var(--gold);
  background: var(--ivory-dark);
  box-shadow: 0 4px 14px -4px rgba(184, 152, 96, 0.4);
}

.radio-card:has(input:checked) span strong { color: var(--navy); }

/* Recommandation produit */
.reco-card {
  background: linear-gradient(135deg, var(--ivory-dark) 0%, var(--ivory) 100%);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.reco-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.4em 1em;
  border-radius: 4px;
}

.reco-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.6em 0 0.4em;
}

.reco-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 1.5em;
}

.reco-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--white);
  border-radius: 8px;
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--hairline);
}

.reco-num {
  text-align: center;
}

.reco-num-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.4em;
}

.reco-num-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.reco-num-value.gold { color: var(--gold-dark); }
.reco-num-value.success { color: var(--success); }

.reco-features {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.reco-features li {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text);
}

/* Consentements */
.consent-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.consent-item {
  display: flex;
  gap: 0.9em;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.consent-item:has(input:checked) {
  border-color: var(--gold);
  background: var(--ivory-dark);
}

.consent-item input[type="checkbox"] {
  margin-top: 0.2em;
  accent-color: var(--gold);
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.consent-item strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.2em;
}

.consent-item a {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* Recap */
.recap-card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.recap-section {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--hairline);
}

.recap-section:last-child { border-bottom: 0; }

.recap-section h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

.recap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em 1.5em;
  font-size: 0.92rem;
}

.recap-key { color: var(--text-muted); }
.recap-val { color: var(--navy); font-weight: 500; }

.next-steps-box {
  background: var(--navy-dark);
  color: var(--ivory);
  border-radius: 8px;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.next-steps-box h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ivory);
  margin: 0 0 0.8em;
}

.next-steps-list {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.85);
  line-height: 1.6;
}

.next-steps-list strong { color: var(--gold-light); }

/* Actions */
.wstep-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.wstep-actions .btn-primary { margin-left: auto; }
.btn-finalize {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.btn-finalize:hover {
  background: #3D6644;
  border-color: #3D6644;
  color: var(--white);
}

/* Success */
.wstep-success {
  text-align: center;
  padding: 2rem 0;
}

.wstep-success.active { display: block; }

.success-seal {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  margin-bottom: 1.5rem;
}

.success-lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 480px;
  margin: 1em auto 2em;
  line-height: 1.6;
}

/* Footer */
.souscrire-footer {
  background: var(--ivory-dark);
  border-top: 1px solid var(--hairline);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.souscrire-footer a { color: var(--gold-dark); }

/* Responsive */
@media (max-width: 980px) {
  .wizard-inner { grid-template-columns: 1fr; gap: 2rem; }
  .wizard-sidebar { position: static; }
  .wizard-main { padding: 2rem 1.5rem; }
  .field-row { grid-template-columns: 1fr !important; }
  .recap-grid, .reco-numbers { grid-template-columns: 1fr; }
  .radio-grid { grid-template-columns: 1fr; }
}
