/* ============================================================
   Assistant d'inscription — 3 étapes animées, fond dégradé de marque.
   Charte : noir + jaune (#f7cd16), cohérente avec le reste de l'app.
   ============================================================ */

.page-wizard {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px; position: relative; overflow: hidden; background: var(--noir);
}

/* Fond animé discret : deux halos qui dérivent lentement, effet premium sans surcharger. */
.wizard-fond {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(247, 205, 22, .16), transparent 55%),
    radial-gradient(700px circle at 85% 80%, rgba(247, 205, 22, .10), transparent 55%);
  animation: wizardDerive 18s ease-in-out infinite alternate;
}
@keyframes wizardDerive {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}

.wizard-carte {
  position: relative; z-index: 1; background: var(--blanc-pur); border-radius: 22px;
  padding: 38px 36px; width: 100%; max-width: 460px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: wizardApparition .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes wizardApparition {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wizard-marque { text-align: center; margin-bottom: 22px; }
.wizard-marque .logo-image { height: 32px; width: auto; }

/* ---------------- Indicateur d'étapes ---------------- */
.wizard-etapes { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; gap: 6px; }
.wizard-etape { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .4; transition: opacity .3s; }
.wizard-etape.actif, .wizard-etape.complete { opacity: 1; }
.wizard-etape span {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gris-fond); color: var(--gris-txt); font-weight: 700; font-size: 13px;
  transition: background .3s, color .3s, transform .3s;
}
.wizard-etape.actif span { background: var(--jaune); color: var(--noir); transform: scale(1.12); }
.wizard-etape.complete span { background: var(--noir); color: transparent; font-size: 0; position: relative; }
.wizard-etape.complete span::after { content: '✓'; color: var(--jaune); font-size: 14px; position: absolute; }
.wizard-etape em { font-size: 10.5px; font-style: normal; font-weight: 600; color: var(--gris-txt); }
.wizard-etape.actif em { color: var(--noir); }
.wizard-trait { width: 32px; height: 2px; background: var(--gris-bord); margin-bottom: 18px; }

/* ---------------- Panneaux (un par étape) ---------------- */
.wizard-panneau { display: none; animation: wizardGlisse .38s cubic-bezier(.2,.8,.2,1); }
.wizard-panneau.actif { display: block; }
@keyframes wizardGlisse {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
.wizard-panneau.sortie {
  animation: wizardGlisseSortie .25s ease forwards;
}
@keyframes wizardGlisseSortie {
  to { opacity: 0; transform: translateX(-14px); }
}

.wizard-titre { font-size: 19px; font-weight: 800; margin: 0 0 6px; color: var(--noir); }
.wizard-sous { font-size: 13px; color: var(--gris-txt); margin: 0 0 20px; line-height: 1.5; }

.wizard-actions { display: flex; gap: 10px; margin-top: 8px; }
.wizard-actions .btn { flex: 1; }
.wizard-suivant { width: 100%; margin-top: 4px; }

.wizard-essai {
  background: linear-gradient(135deg, #fffbea, #fff7d6); border: 1px solid #f7e394;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 600;
  color: #7a5c00; text-align: center; margin: 18px 0 6px;
}

/* Micro-interaction sur les boutons du wizard */
.wizard-carte .btn { transition: transform .12s ease, box-shadow .12s ease; }
.wizard-carte .btn:active { transform: scale(.97); }
.wizard-carte .btn-primaire:hover { box-shadow: 0 6px 18px rgba(247, 205, 22, .35); }

/* Secousse discrète en cas d'erreur de validation d'étape */
.wizard-secousse { animation: wizardSecousse .35s; }
@keyframes wizardSecousse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 480px) {
  .wizard-carte { padding: 28px 22px; border-radius: 18px; }
  .wizard-etape em { display: none; }
}

/* ---------------- Étape 4 : choix de formule (facultatif, façon Shopify) ---------------- */
.wizard-formules { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.wizard-formule {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; column-gap: 12px;
  border: 1.5px solid var(--gris-bord); border-radius: 12px; padding: 12px 14px;
}
.wizard-formule.actuelle { border-color: var(--jaune); background: #fffbea; }
/* Pas de largeurs fixes : nom/prix ne dépendent que de leur contenu, la description
   se rétracte (min-width:0) et passe à la ligne plutôt que de déborder de la carte. */
.wizard-formule-nom { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.wizard-formule-prix { font-weight: 800; font-size: 14px; flex-shrink: 0; }
.wizard-formule-desc { font-size: 11.5px; color: var(--gris-txt); line-height: 1.4; flex: 1 1 140px; min-width: 0; }
.wizard-formule .btn { flex-shrink: 0; margin-left: auto; }
.wizard-formule-badge {
  position: absolute; top: -9px; left: 12px; background: var(--noir); color: var(--jaune);
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 6px;
}
/* Sous ~560px (petits téléphones compris) : tout s'empile pour ne jamais déborder,
   bouton pleine largeur pour rester facilement touchable. */
@media (max-width: 560px) {
  .wizard-formule { flex-direction: column; align-items: stretch; }
  .wizard-formule-desc { order: 3; width: 100%; }
  .wizard-formule .btn { width: 100%; margin-left: 0; margin-top: 2px; }
}
