/* OF onboarding wizard — immersion LP Learnifi (Inter, #1c1d1f) */
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1c1d1f;
  background: #fff;
}

.lf-ofw {
  --lf-ofw-violet: #7c3aed;
  --lf-ofw-violet-dark: #4c1d95;
  --lf-ofw-accent: #a435f0;
  --lf-ofw-text: #1c1d1f;
  --lf-ofw-muted: #5c5c6a;
  --lf-ofw-border: #e9d5ff;
  --lf-ofw-bg: radial-gradient(ellipse 120% 80% at 50% -20%, #f3e8ff 0%, #fff 45%, #fafafa 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lf-ofw-bg);
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
}

.lf-ofw *,
.lf-ofw *::before,
.lf-ofw *::after {
  box-sizing: border-box;
}

.lf-ofw-topbar {
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--lf-ofw-violet-dark), var(--lf-ofw-violet));
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
}

.lf-ofw-topbar span {
  opacity: 0.88;
  font-weight: 500;
}

.lf-ofw-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 88px;
  gap: 0;
}

.lf-ofw-hero {
  display: none;
  flex: 0 0 42%;
  max-width: 480px;
  padding: 28px 32px;
  margin-right: 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--lf-ofw-violet-dark) 0%, var(--lf-ofw-violet) 55%, var(--lf-ofw-accent) 100%);
  color: #fff;
  flex-direction: column;
}

.lf-ofw-hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.lf-ofw-hero-lead {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0 20px;
  line-height: 1.5;
}

.lf-ofw-mod {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.lf-ofw-mod.is-on {
  background: rgba(164, 53, 240, 0.35);
  border-color: #f0abfc;
}

.lf-ofw-mod i {
  width: 28px;
  text-align: center;
  color: #f0abfc;
}

.lf-ofw-mod-toast {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  line-height: 1.45;
}

.lf-ofw-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.lf-ofw-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--lf-ofw-border);
  border-radius: 24px;
  padding: 28px 32px 24px;
  box-shadow: 0 20px 60px rgba(76, 29, 149, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Stepper horizontal */
.lf-ofw-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.lf-ofw-step {
  flex: 1;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.lf-ofw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: #e9d5ff;
  z-index: 0;
}

.lf-ofw-step.is-done:not(:last-child)::after {
  background: linear-gradient(90deg, var(--lf-ofw-accent), var(--lf-ofw-violet));
}

.lf-ofw-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #f3e8ff;
  color: var(--lf-ofw-violet);
  border: 2px solid #e9d5ff;
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
}

.lf-ofw-step.is-active .lf-ofw-step-dot {
  background: linear-gradient(135deg, var(--lf-ofw-accent), var(--lf-ofw-violet));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transform: scale(1.08);
}

.lf-ofw-step.is-done .lf-ofw-step-dot {
  background: var(--lf-ofw-violet);
  color: #fff;
  border-color: transparent;
}

.lf-ofw-step-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--lf-ofw-muted);
  text-align: center;
  max-width: 72px;
  line-height: 1.2;
}

.lf-ofw-step.is-active .lf-ofw-step-label {
  color: var(--lf-ofw-violet);
}

.lf-ofw-coach {
  font-size: 13px;
  font-weight: 600;
  color: var(--lf-ofw-violet);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lf-ofw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 16px;
}

.lf-ofw-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid var(--lf-ofw-border);
  animation: lfOfwChipIn 0.3s ease;
}

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

.lf-ofw-panels {
  position: relative;
  flex: 1;
  min-height: 280px;
}

.lf-ofw-panel {
  display: none;
  animation: lfOfwPanelOut 0.2s ease forwards;
}

.lf-ofw-panel.is-active {
  display: block;
  animation: lfOfwPanelIn 0.35s ease forwards;
}

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

@keyframes lfOfwPanelOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.lf-ofw-panel.is-back.is-active {
  animation-name: lfOfwPanelInBack;
}

@keyframes lfOfwPanelInBack {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.lf-ofw-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lf-ofw-text);
  margin: 0 0 6px;
}

.lf-ofw-lead {
  color: var(--lf-ofw-muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Choix en grille horizontale */
.lf-ofw-choices {
  display: grid;
  gap: 12px;
}

.lf-ofw-choices--2 {
  grid-template-columns: repeat(2, 1fr);
}

.lf-ofw-choices--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .lf-ofw-choices--2,
  .lf-ofw-choices--3 {
    grid-template-columns: 1fr;
  }
}

.lf-ofw-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  margin: 0;
}

.lf-ofw-choice:hover {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.lf-ofw-choice:has(input:checked),
.lf-ofw-choice.is-selected {
  border-color: var(--lf-ofw-accent);
  background: #faf5ff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.lf-ofw-choice input {
  margin-top: 3px;
  accent-color: var(--lf-ofw-violet);
}

.lf-ofw-choice strong {
  display: block;
  font-size: 0.92rem;
  color: var(--lf-ofw-text);
}

.lf-ofw-choice span {
  font-size: 0.8rem;
  color: var(--lf-ofw-muted);
}

.lf-ofw-field {
  margin-bottom: 14px;
}

.lf-ofw-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--lf-ofw-text);
}

.lf-ofw-field input,
.lf-ofw-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
}

.lf-ofw-field input:focus,
.lf-ofw-field select:focus {
  outline: none;
  border-color: var(--lf-ofw-accent);
  box-shadow: 0 0 0 3px rgba(164, 53, 240, 0.15);
}

.lf-ofw-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  gap: 12px;
}

.lf-ofw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.lf-ofw-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lf-ofw-btn--primary {
  background: linear-gradient(135deg, var(--lf-ofw-accent), var(--lf-ofw-violet));
  color: #fff;
}

.lf-ofw-btn--primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.lf-ofw-btn--ghost {
  background: transparent;
  color: var(--lf-ofw-muted);
}

.lf-ofw-btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.lf-ofw-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.lf-ofw-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.lf-ofw-plan-rec {
  border-color: var(--lf-ofw-accent) !important;
  background: linear-gradient(135deg, #faf5ff, #fff) !important;
}

.lf-ofw-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lf-ofw-violet);
  background: #f3e8ff;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

.lf-ofw-mirror,
.lf-ofw-transparency {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.88rem;
}

.lf-ofw-transparency {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0c4a6e;
  margin-top: 14px;
}

.lf-ofw-engage {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin: 12px 0;
}

.lf-ofw-engage th,
.lf-ofw-engage td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

@media (min-width: 992px) {
  .lf-ofw-hero {
    display: flex;
  }

  .lf-ofw-main {
    max-width: none;
  }
}

/* Barre transparence — visible tout le parcours */
.lf-ofw-trust {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px;
  background: linear-gradient(0deg, #fff 70%, rgba(255, 255, 255, 0.92));
  border-top: 2px solid #bae6fd;
  box-shadow: 0 -8px 24px rgba(2, 132, 199, 0.08);
}

.lf-ofw-trust-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #0c4a6e;
}

.lf-ofw-trust-inner i {
  color: #0284c7;
  font-size: 1.1rem;
  margin-top: 2px;
}

.lf-ofw-trust-inner strong {
  display: block;
  font-weight: 800;
  color: #075985;
}

.lf-ofw-trust-inner span {
  font-weight: 500;
}

/* Cartes plans (alignées page tarifs) */
.lf-ofw-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .lf-ofw-plans {
    grid-template-columns: 1fr;
  }
}

.lf-ofw-plan-pick {
  cursor: pointer;
  margin: 0;
  position: relative;
  padding-top: 28px !important;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.lf-ofw-plan-pick .lf-ofw-plan-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lf-ofw-plan-pick.is-selected,
.lf-ofw-plan-pick--rec.is-selected {
  border-color: #a435f0 !important;
  box-shadow: 0 8px 28px rgba(164, 53, 240, 0.22) !important;
  transform: translateY(-2px);
}

.lf-ofw-plan-rec-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(90deg, #a435f0, #7c3aed);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.lf-ofw-plan-trial {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6b21a8;
  text-align: center;
}

.lf-ofw-tarifs-link {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
}

.lf-ofw-tarifs-link a {
  color: #7c3aed;
  font-weight: 600;
}

.lf-ofw-btn.is-loading i {
  opacity: 0;
}

.lf-ofw-logged-hint {
  font-size: 13px;
  color: #4c1d95;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
  line-height: 1.45;
}

@media (max-width: 991px) {
  .lf-ofw-body {
    padding: 12px 12px 100px;
  }

  .lf-ofw-card {
    padding: 20px 18px 18px;
  }
}
