/**
 * Démos interactives — page d'accueil home_9 (aligné LP sales funnel)
 */
.h9-hero-playground {
  position: relative;
  isolation: isolate;
  min-height: 320px;
}

.h9-hero-playground .lf-dash-window {
  position: relative;
  z-index: 1;
}

.h9-hero-playground .lf-dash-window {
  box-shadow: 0 24px 60px rgba(28, 29, 31, 0.18), 0 0 0 1px rgba(164, 53, 240, 0.12);
}

.h9-hero-playground .lf-playground-hint {
  margin: 10px 14px 0;
  border-radius: 10px;
}

.h9-hero-playground .lf-dash-nav-item {
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}

.h9-hero-playground .lf-dash-nav-item:not(.active):hover {
  background: rgba(164, 53, 240, 0.12);
  transform: translateX(2px);
}

.h9-hero-panel {
  display: none;
  animation: h9-panel-in 0.35s ease;
}

.h9-hero-panel.is-on {
  display: block;
}

@keyframes h9-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.h9-hero-mini-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f5ff;
  border: 1.5px solid #e9d5ff;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.h9-hero-mini-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  width: 100%;
}

.h9-hero-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-bottom: 6px;
  background: #fff;
  border: 1.5px solid #f3f4f6;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.h9-hero-row:hover {
  border-color: #e9d5ff;
  background: #faf5ff;
  transform: translateX(2px);
}

.h9-hero-row.is-on {
  border-color: #a435f0;
  box-shadow: 0 4px 16px rgba(164, 53, 240, 0.12);
}

.h9-hero-row-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a435f0, #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h9-radar-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.h9-radar-pill--high { background: #fef2f2; color: #dc2626; }
.h9-radar-pill--med { background: #fff7ed; color: #c2410c; }
.h9-radar-pill--ok { background: #f0fdf4; color: #18753c; }

.h9-hero-playground .lf-demo-toast {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 12;
  max-width: none;
}

/* —— Problème : viewer avant / après —— */
.h9-problem-viewer {
  max-width: 920px;
  margin: 0 auto 2.5rem;
}

.h9-pv-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.h9-pv-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6a6f73;
  cursor: pointer;
  transition: all 0.2s;
}

.h9-pv-btn.is-on[data-pv="before"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.h9-pv-btn.is-on[data-pv="after"] {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #7c3aed;
}

.h9-pv-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(164, 53, 240, 0.12);
  border: 1.5px solid #e9d5ff;
  background: #fff;
  min-height: 280px;
  position: relative;
}

.h9-pv-panel {
  display: none;
  padding: 0;
  animation: h9-panel-in 0.4s ease;
}

.h9-pv-panel.is-on {
  display: block;
}

.h9-pv-excel {
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.h9-pv-excel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  font-size: 9px;
  font-family: ui-monospace, monospace;
}

.h9-pv-cell {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 6px 4px;
  min-height: 28px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h9-pv-cell.err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
  animation: h9-cell-blink 1.2s ease infinite;
}

.h9-pv-cell.warn {
  background: #fffbeb;
  border-color: #fde68a;
}

@keyframes h9-cell-blink {
  50% { opacity: 0.65; }
}

.h9-pv-chaos-msg {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
}

.h9-pv-after {
  padding: 14px 16px 16px;
}

.h9-pv-after-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.h9-pv-kpi {
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.h9-pv-kpi strong {
  display: block;
  font-size: 20px;
  color: #a435f0;
}

.h9-pv-kpi span {
  font-size: 10px;
  color: #6a6f73;
}

/* Showcases interactifs */
.lf-screen-frame.lf-sc-playground [data-h9-interactive] {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.lf-screen-frame.lf-sc-playground .lf-playground-hint {
  margin: 10px 14px 0;
  border-radius: 10px;
}

.lf-screen-frame.lf-sc-playground .h9-sc-crm-btn:not(:disabled) {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.lf-screen-frame.lf-sc-playground .h9-sc-row[data-h9-clickable] {
  cursor: pointer;
}

.lf-screen-frame.lf-sc-playground .h9-sc-row.is-picked {
  background: #faf5ff !important;
  box-shadow: inset 3px 0 0 #a435f0;
}

.h9-sc-toast {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 8;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  border-left: 4px solid #a435f0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
}

.h9-sc-toast.is-show {
  opacity: 1;
  transform: none;
}

.h9-sc-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a435f0, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h9-sc-toast-title {
  font-size: 12px;
  font-weight: 800;
  color: #1c1d1f;
}

.h9-sc-toast-msg {
  font-size: 11px;
  color: #6a6f73;
  margin-top: 2px;
}

@media (max-width: 991px) {
  .h9-hero-playground .lf-playground-hint span kbd {
    display: none;
  }
}

/* —— Hero Kanban compact —— */
.h9-hero-kanban-mount {
  min-height: 200px;
}

.h9-hero-kanban-mount .lf-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  min-height: 200px;
}

.h9-hero-kanban-mount .lf-kanban-col {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 6px;
  min-height: 180px;
}

.h9-hero-kanban-mount .lf-kanban-col-h {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h9-hero-kanban-mount .lf-kanban-col-count {
  font-size: 7px;
  color: #fff;
  border-radius: 8px;
  padding: 1px 4px;
}

.h9-hero-kanban-mount .lf-kanban-card {
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 4px;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.h9-hero-kanban-mount .lf-kanban-card:hover,
.h9-hero-kanban-mount .lf-kanban-card.is-selected {
  border-color: #a435f0;
  background: #faf5ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(164, 53, 240, 0.12);
}

/* —— Modules : mini-démos (face arrière) —— */
.h9-face-back {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px 10px !important;
  color: #fff;
}

.h9-mod-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.h9-mod-prev-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-bottom: 2px;
}

.h9-mod-prev-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.h9-mod-prev-row span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.h9-mod-prev-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  opacity: 0.8;
}

.h9-mod-prev-row.is-on,
.h9-mod-prev-chip.is-on,
.h9-mod-k-card.is-on,
.h9-mod-cal-day.is-on,
.h9-mod-pill.is-on {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateX(2px);
}

.h9-mod-prev-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  margin-right: 4px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.h9-mod-prev-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.h9-mod-k-col span {
  display: block;
  font-size: 8px;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 4px;
}

.h9-mod-k-card {
  font-size: 9px;
  font-weight: 700;
  padding: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
}

.h9-mod-prev-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
}

.h9-mod-prev-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.h9-mod-prev-bar-fill {
  height: 100%;
  background: #bbf7d0;
  border-radius: 4px;
}

.h9-mod-prev-cal {
  display: flex;
  gap: 6px;
}

.h9-mod-cal-day {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.h9-mod-prev-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
}

.h9-mod-prev-spark i {
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  transition: background 0.15s;
}

.h9-mod-prev-spark i.is-on {
  background: #f0abfc;
}

.h9-mod-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  margin-right: 4px;
  cursor: pointer;
}

.h9-mod-pill--hi {
  background: rgba(254, 226, 226, 0.35);
  color: #fecaca;
}

.h9-mod-pill--med {
  background: rgba(255, 237, 213, 0.35);
  color: #fed7aa;
}

.h9-mod-prev-hint {
  font-size: 9px;
  opacity: 0.65;
  margin-top: auto;
}

.h9-back-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.h9-back-footer .h9-back-stat {
  font-size: 18px;
  margin-bottom: 2px;
}

.h9-back-footer .h9-back-lbl {
  font-size: 10px;
  margin-bottom: 8px;
}

.h9-module-wrap {
  position: relative;
}

.h9-module-wrap .lf-demo-toast {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 5;
  font-size: 11px;
}

/* —— Section 3 étapes : wizard —— */
.h9-steps-wizard-wrap {
  background: linear-gradient(135deg, #faf5ff, #fff);
  border: 1.5px solid #e9d5ff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 12px 40px rgba(164, 53, 240, 0.1);
}

.h9-steps-wizard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.h9-steps-wizard-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #a435f0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.h9-steps-wizard-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  color: #1c1d1f;
  margin: 0;
  line-height: 1.3;
}

.h9-steps-wiz-play {
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  background: #fff;
  border: 1.5px solid #d8b4fe;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.h9-steps-wiz-play:hover {
  background: #f3e8ff;
  box-shadow: 0 4px 14px rgba(164, 53, 240, 0.15);
}

.h9-steps-wizard-screen {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(28, 29, 31, 0.06);
}

.h9-steps-wiz-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e0a3c, #2d1259);
  color: #fff;
  font-size: 11px;
}

.h9-steps-wiz-bar-lbl {
  flex: 1;
  opacity: 0.85;
}

.h9-steps-wiz-progress {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
}

.h9-steps-wiz-step {
  flex: 1;
  text-align: center;
}

.h9-steps-wiz-step i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #e5e7eb;
  margin-bottom: 6px;
  transition: background 0.35s;
}

.h9-steps-wiz-step span {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
}

.h9-steps-wiz-step.is-on i {
  background: #a435f0;
}

.h9-steps-wiz-step.is-on span {
  color: #7c3aed;
}

.h9-steps-wiz-step.is-done i {
  background: #18753c;
}

.h9-steps-wiz-panel {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-height: 100px;
}

.h9-steps-wiz-field label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #6a6f73;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.h9-steps-wiz-field input,
.h9-steps-wiz-field select {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid #e9d5ff;
  border-radius: 8px;
  font-size: 12px;
  background: #faf5ff;
  box-sizing: border-box;
}

.h9-steps-wiz-review {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  background: #f8f5ff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1c1d1f;
  line-height: 1.5;
}

.h9-steps-wiz-review i {
  display: block;
  font-size: 28px;
  color: #a435f0;
  margin-bottom: 8px;
}

.h9-steps-wiz-review span {
  font-size: 12px;
  font-weight: 500;
  color: #6a6f73;
}

.h9-steps-wiz-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.h9-steps-wiz-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.h9-steps-wiz-btn.ghost {
  background: #f3f4f6;
  color: #6a6f73;
}

.h9-steps-wiz-btn.primary {
  background: linear-gradient(135deg, #a435f0, #7c3aed);
  color: #fff;
}

.h9-steps-wiz-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.h9-steps-wiz-success {
  padding: 28px 20px;
  text-align: center;
  animation: h9-panel-in 0.45s ease;
}

.h9-steps-wiz-success i {
  font-size: 40px;
  color: #16a34a;
  margin-bottom: 10px;
}

.h9-steps-wiz-success strong {
  display: block;
  font-size: 16px;
  color: #1c1d1f;
  margin-bottom: 4px;
}

.h9-steps-wiz-success span {
  font-size: 13px;
  color: #6a6f73;
}

@media (max-width: 768px) {
  .h9-steps-wiz-panel {
    grid-template-columns: 1fr;
  }

  .h9-hero-kanban-mount .lf-kanban {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .h9-hero-panel,
  .h9-pv-panel,
  .h9-pv-cell.err {
    animation: none;
  }
}
