/* ============================================================
   SIS Digital Factory — inscription.css
   ============================================================ */

/* Indicateur d'étapes multi-step */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: var(--sis-glass-bg);
  border: 1.5px solid var(--sis-glass-border);
  color: var(--sis-text-muted);
}
.step-dot--active {
  background: var(--sis-gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 91, 216, 0.40);
}
.step-dot--done {
  background: var(--sis-success-soft);
  border-color: rgba(74, 222, 128, 0.35);
  color: transparent;
  font-size: 0;
}
.step-dot--done::after {
  content: '';
  display: block;
  width: 0.35rem;
  height: 0.6rem;
  border: 2px solid var(--sis-success);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.step-line {
  flex: 1;
  height: 1.5px;
  background: var(--sis-glass-border);
  margin: 0 0.25rem;
  transition: background 300ms;
}
.step-line--done {
  background: var(--sis-success);
  opacity: 0.45;
}

/* Étape journée revendeur (panneau latéral) */
.journey-step-sidebar {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
}
.journey-step-sidebar + .journey-step-sidebar {
  border-top: 1px solid var(--sis-glass-border);
}
.journey-num-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--sis-glass-bg);
  border: 1px solid var(--sis-glass-border);
  color: var(--sis-text-muted);
}
.journey-num-sm--active {
  background: var(--sis-gradient-primary);
  border-color: transparent;
  color: #fff;
}

/* Carte "Vous n'avez pas besoin de" */
.no-need-card {
  background: var(--sis-success-soft);
  border: 1px solid rgba(74, 222, 128, 0.20);
  border-radius: 12px;
  padding: 1.25rem;
}

/* Formulaire champs */
.input-glass {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  background: var(--sis-glass-bg);
  border: 1px solid var(--sis-glass-border);
  color: var(--sis-text-primary);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 200ms ease;
}
.input-glass::placeholder {
  color: var(--sis-text-muted);
}
.input-glass:focus {
  border-color: var(--sis-glass-border-accent);
  box-shadow: 0 0 0 3px rgba(31, 108, 247, 0.10);
}

/* Sélecteur de profil démo */
.demo-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sis-text-muted);
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-profile-btn:hover {
  color: var(--sis-text-secondary);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--sis-glass-border);
}
.demo-profile-btn--active {
  background: #fff;
  border-color: #e2e8f0;
  color: var(--sis-text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08), 0 0 0 0 transparent;
}
.demo-country-code {
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  color: var(--sis-text-muted);
  line-height: 1;
}
.demo-profile-btn--active .demo-country-code {
  color: var(--sis-blue-600);
}

/* Champ en erreur */
.input-glass--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.field-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8rem;
  color: #dc2626 !important;
  font-weight: 600;
  line-height: 1.4;
}
.field-error.hidden { display: none; }

/* Force de mot de passe */
.pwd-strength { display: flex; gap: 4px; margin-top: 6px; }
.pwd-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--sis-glass-border); transition: background 300ms; }
.pwd-bar--weak   { background: #ef4444; }
.pwd-bar--medium { background: #f59e0b; }
.pwd-bar--strong { background: var(--sis-success); }
.pwd-hint { font-size: 0.75rem; color: var(--sis-text-muted); margin-top: 4px; }

/* Onglets de formulaire */
.form-step {
  display: none;
  animation: sis-fade-in 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.form-step--active {
  display: block;
}

/* Select custom */
select.input-glass {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Checkbox custom */
.checkbox-glass {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 5px;
  border: 1.5px solid var(--sis-glass-border);
  background: var(--sis-glass-bg);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  transition: all 200ms;
  flex-shrink: 0;
}
.checkbox-glass:checked {
  background: var(--sis-gradient-primary);
  border-color: transparent;
}
.checkbox-glass:checked::after {
  content: '';
  width: 0.35rem;
  height: 0.6rem;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

/* ============================================================
   Wizard "Créer ma boutique" — 8 steps
   ============================================================ */

/* Hero cards 01-04 above the wizard */
.wizard-hero-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.wizard-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.wizard-hero-card__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.wizard-hero-card__title {
  margin-top: 0.5rem;
  font-family: var(--font-display), sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sis-text-primary);
}

/* 8-segment stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.stepper__seg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.stepper__bar {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: background 200ms ease;
}
.stepper__seg--active .stepper__bar { background: var(--sis-text-primary); }
.stepper__seg--done   .stepper__bar { background: var(--sis-text-primary); opacity: 0.55; }
.stepper__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 200ms ease;
}
.stepper__seg--active .stepper__label,
.stepper__seg--done   .stepper__label { color: var(--sis-text-primary); }

/* Active panel */
.wizard-panel { display: none; }
.wizard-panel--active { display: block; animation: sis-fade-in 350ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Pills (multi-select chips for clients / ton commercial / appellation / CTA principal) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--sis-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.pill:hover {
  border-color: var(--sis-text-primary);
  color: var(--sis-text-primary);
}
.pill--active {
  background: var(--sis-text-primary);
  border-color: var(--sis-text-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* Style ambiance cards */
.ambience-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
}
.ambience-card:hover { border-color: #cbd5e1; }
.ambience-card--active {
  border-color: var(--sis-text-primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.ambience-card__check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sis-text-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.ambience-card--active .ambience-card__check { display: flex; }
.ambience-card__dots {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}
.ambience-card__dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.ambience-card__title { font-weight: 600; color: var(--sis-text-primary); font-size: 0.9375rem; }
.ambience-card__subtitle { font-size: 0.8125rem; color: var(--sis-text-muted); margin-top: 0.25rem; }

/* Sliders (Style step) */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sis-text-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sis-text-primary);
  cursor: pointer;
  border: none;
}

/* Pack cards */
.pack-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pack-card:hover { border-color: #cbd5e1; }
.pack-card--active {
  border-color: var(--sis-text-primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.pack-card__badge {
  position: absolute;
  top: -0.625rem;
  right: 1rem;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}
.pack-card__title { font-family: var(--font-display), sans-serif; font-size: 1rem; font-weight: 600; color: var(--sis-text-primary); }
.pack-card__price { font-family: var(--font-display), sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--sis-text-primary); margin-top: 0.5rem; }
.pack-card__features { margin-top: 1rem; flex: 1; }
.pack-card__features li {
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--sis-text-secondary);
}
.pack-card__features li::before { content: "✓ "; color: var(--sis-success); font-weight: 700; margin-right: 0.25rem; }
.pack-card__cta {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}
.pack-card__cta:hover { background: #f1f5f9; }
.pack-card--active .pack-card__cta {
  background: var(--sis-text-primary);
  color: #fff;
  border-color: var(--sis-text-primary);
}

/* Conseil SIS side panel */
.tip-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 1.25rem;
}
.tip-card__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.tip-card__avatar {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #fef3c7; color: #92400e; font-weight: 700; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tip-card__title { font-weight: 600; color: var(--sis-text-primary); font-size: 0.875rem; }
.tip-card__subtitle { font-size: 0.75rem; color: var(--sis-text-muted); }
.tip-card__body { font-size: 0.8125rem; color: var(--sis-text-secondary); line-height: 1.55; }

/* Auto-save indicator */
.autosave-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  border-radius: 99px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: var(--sis-text-muted);
  font-weight: 500;
}
.autosave-badge__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--sis-success); animation: sis-pulse 1.6s infinite;
}
@keyframes sis-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Status header chips */
.status-chip {
  padding: 0.375rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--sis-text-secondary);
}
.status-chip--draft { background: #fef3c7; color: #92400e; }
.status-chip--submitted { background: #dcfce7; color: #166534; }

/* Preview canvas (étape 7) */
.preview-frame {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  min-height: 400px;
}
.preview-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.375rem;
  background: #f1f5f9;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 1rem;
}
.preview-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--sis-text-muted);
  background: transparent;
  border: none;
  transition: all 180ms ease;
}
.preview-tab--active { background: #fff; color: var(--sis-text-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }

/* Recap rows (étape 8) */
.recap-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}
.recap-row__label { color: var(--sis-text-muted); }
.recap-row__value { color: var(--sis-text-primary); font-weight: 500; }
