/* ═══════════════════════════════════════════════════════════
   KAHWA CONNECT — inscription.css
   Page inscription — Wizard 4 étapes
   www.kahwaconnect.fr
═══════════════════════════════════════════════════════════ */

/* ─── PAGE LAYOUT ───────────────────────────────────────── */
.inscription-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 60%, var(--blue-100) 100%);
  display: flex;
  flex-direction: column;
}

/* ─── NAV MINIMALISTE ───────────────────────────────────── */
.nav-inscription {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}
.nav-inscription-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-inscription-logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.nav-inscription-logo .brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
}
.nav-inscription-back {
  font-size: 13.5px;
  color: var(--grey-400);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.nav-inscription-back:hover { color: var(--blue-700); }

/* ─── WIZARD CONTAINER ──────────────────────────────────── */
.wizard-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 64px;
}

/* ─── PROGRESS BAR ──────────────────────────────────────── */
.wizard-progress {
  width: 100%;
  max-width: 680px;
  margin-bottom: 40px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 12px;
}

/* Ligne de fond */
.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--grey-200);
  z-index: 0;
}
/* Ligne de progression */
.progress-steps::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-700), var(--pink-500));
  z-index: 1;
  transition: width 0.5s ease;
  width: var(--progress-width, 0%);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.progress-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-400);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.progress-step.active .progress-step-circle {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-color: var(--blue-700);
  color: white;
  box-shadow: 0 4px 14px rgba(21,80,200,0.3);
  transform: scale(1.1);
}

.progress-step.done .progress-step-circle {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  border-color: #22C55E;
  color: white;
}
.progress-step.done .progress-step-circle::before {
  content: '✓';
}

.progress-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-400);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.progress-step.active .progress-step-label { color: var(--blue-700); }
.progress-step.done  .progress-step-label  { color: #16A34A; }

/* ─── WIZARD CARD ───────────────────────────────────────── */
.wizard-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(10,56,168,0.14), 0 4px 20px rgba(10,56,168,0.07);
  border: 1px solid var(--grey-100);
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  position: relative;
}

/* Accent top */
.wizard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--pink-500));
}

/* ─── STEP PANELS ───────────────────────────────────────── */
.step-panel {
  display: none;
  padding: 44px 48px;
  animation: slideIn 0.35s ease both;
}
.step-panel.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-header {
  margin-bottom: 32px;
}
.step-num-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pink-500);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
  line-height: 1.25;
}
.step-sub {
  font-size: 15px;
  color: var(--grey-400);
  line-height: 1.6;
}

/* ─── STEP 1 — PROFIL DE BASE ───────────────────────────── */
.gender-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.gender-choice-btn {
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--grey-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
}
.gender-choice-btn .gc-icon { font-size: 36px; }
.gender-choice-btn .gc-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-600);
}
.gender-choice-btn .gc-sub {
  font-size: 11.5px;
  color: var(--grey-400);
  text-align: center;
}
.gender-choice-btn:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}
.gender-choice-btn.active {
  border-color: var(--blue-700);
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  box-shadow: 0 4px 16px rgba(21,80,200,0.14);
}
.gender-choice-btn.active .gc-label { color: var(--blue-800); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── STEP 2 — QUIZ COMPATIBILITÉ ───────────────────────── */
.quiz-intro {
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quiz-intro-icon { font-size: 28px; flex-shrink: 0; }
.quiz-intro-text { font-size: 13.5px; color: var(--grey-600); line-height: 1.6; }
.quiz-intro-text strong { color: var(--blue-700); }

.quiz-question {
  margin-bottom: 24px;
}
.quiz-q-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quiz-q-label .q-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue-700);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quiz-option {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13.5px;
  color: var(--grey-600);
  font-family: var(--font-sans);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quiz-option .opt-emoji { font-size: 16px; flex-shrink: 0; }
.quiz-option:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  color: var(--blue-700);
}
.quiz-option.selected {
  border-color: var(--blue-700);
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  color: var(--blue-800);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(21,80,200,0.12);
}
.quiz-option.selected::after {
  content: '✓';
  margin-left: auto;
  color: var(--blue-700);
  font-weight: 700;
}

/* Quiz à 3 colonnes pour les petites options */
.quiz-options.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ─── STEP 3 — PHOTO + VÉRIFICATION ────────────────────── */
.photo-upload-zone {
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--grey-50);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.photo-upload-zone:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}
.photo-upload-zone.has-photo {
  border-color: #22C55E;
  background: #F0FDF4;
}
.photo-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.upload-sub { font-size: 13px; color: var(--grey-400); }
.upload-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid #22C55E;
  display: none;
}
.upload-preview.visible { display: block; }

/* Photos multiples */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.photo-slot {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 2px dashed var(--grey-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--grey-50);
  font-size: 24px;
  position: relative;
  overflow: hidden;
}
.photo-slot:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}
.photo-slot.filled {
  border-color: #22C55E;
  border-style: solid;
}
.photo-slot-label {
  font-size: 10px;
  color: var(--grey-400);
  margin-top: 4px;
}
.photo-slot:first-child .photo-slot-label {
  color: var(--blue-700);
  font-weight: 600;
}

/* Selfie vérification */
.selfie-box {
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.selfie-box-icon { font-size: 32px; flex-shrink: 0; }
.selfie-box-content h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 4px;
}
.selfie-box-content p {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 12px;
}
.btn-selfie {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: var(--blue-700);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-selfie:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}

/* ─── STEP 4 — COMPTE + PREMIUM ────────────────────────── */
.premium-banner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.premium-banner-left { color: white; }
.premium-banner-left .pb-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue-200);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.premium-banner-left .pb-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.premium-banner-left .pb-sub {
  font-size: 12.5px;
  color: var(--blue-200);
  opacity: 0.85;
}
.premium-banner-right { flex-shrink: 0; }
.premium-banner-price {
  text-align: center;
  color: white;
}
.premium-banner-price .price-amount {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1;
}
.premium-banner-price .price-period {
  font-size: 11px;
  color: var(--blue-200);
  display: block;
  margin-bottom: 6px;
}
.premium-banner-price .price-original {
  font-size: 11px;
  color: rgba(168,212,255,0.6);
  text-decoration: line-through;
  display: block;
  margin-bottom: 8px;
}
.btn-premium-choose {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--pink-500);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  white-space: nowrap;
}
.btn-premium-choose:hover {
  background: var(--pink-700);
  transform: translateY(-1px);
}

/* Plan toggle */
.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.plan-card {
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.plan-card:hover { border-color: var(--blue-400); }
.plan-card.selected {
  border-color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: 0 4px 14px rgba(21,80,200,0.12);
}
.plan-card.recommended::before {
  content: '⭐ Recommandé';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink-500);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.plan-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-900);
  margin-bottom: 4px;
}
.plan-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 8px;
}
.plan-price span { font-size: 13px; font-weight: 400; color: var(--grey-400); }
.plan-features { display: flex; flex-direction: column; gap: 4px; }
.plan-feature {
  font-size: 12px;
  color: var(--grey-600);
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-feature::before { content: '✓'; color: #22C55E; font-weight: 700; }

/* CGU checkbox */
.cgu-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
}
.cgu-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue-700);
  cursor: pointer;
}
.cgu-check-label {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.55;
}
.cgu-check-label a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
}

/* ─── NAVIGATION BOUTONS ────────────────────────────────── */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-top: 1px solid var(--grey-100);
  background: var(--grey-50);
}
.btn-prev {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--grey-200);
  background: white;
  color: var(--grey-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-prev:hover { border-color: var(--grey-400); color: var(--grey-800); }
.btn-prev:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-next {
  padding: 11px 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(21,80,200,0.28);
}
.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21,80,200,0.38);
}
.btn-next.btn-finish {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  box-shadow: 0 4px 14px rgba(232,37,90,0.28);
}
.btn-next.btn-finish:hover {
  box-shadow: 0 8px 22px rgba(232,37,90,0.38);
}

.wizard-step-info {
  font-size: 12.5px;
  color: var(--grey-400);
}

/* ─── SUCCESS SCREEN ────────────────────────────────────── */
.success-screen {
  display: none;
  padding: 56px 48px;
  text-align: center;
}
.success-screen.active { display: block; }
.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.success-sub {
  font-size: 16px;
  color: var(--grey-400);
  margin-bottom: 32px;
  line-height: 1.65;
}
.success-slogan {
  font-family: var(--font-arab);
  font-size: 18px;
  color: var(--pink-500);
  direction: rtl;
  margin-bottom: 32px;
  font-weight: 600;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 720px) {
  .step-panel    { padding: 32px 24px; }
  .wizard-nav    { padding: 20px 24px; }
  .form-row      { grid-template-columns: 1fr; }
  .gender-choice { grid-template-columns: 1fr 1fr; }
  .quiz-options  { grid-template-columns: 1fr; }
  .quiz-options.cols-3 { grid-template-columns: 1fr 1fr; }
  .photos-grid   { grid-template-columns: repeat(2, 1fr); }
  .plan-toggle   { grid-template-columns: 1fr; }
  .premium-banner { flex-direction: column; }
  .progress-step-label { display: none; }
}
@media (max-width: 480px) {
  .wizard-container { padding: 24px 12px 48px; }
  .gender-choice { grid-template-columns: 1fr 1fr; gap: 10px; }
}
