/* ═══════════════════════════════════════════════
   Tunnel de conversion — Formation entrepreneuriale
═══════════════════════════════════════════════ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-ent-funnel {
  padding-bottom: 0;
}

@media (max-width: 720px) {
  .page-ent-funnel.has-mobile-cta {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

.funnel-hero {
  position: relative;
  padding: 40px 0 48px;
  background: linear-gradient(135deg, #3d1f47 0%, #5c2d6b 52%, #4a2660 100%);
  color: #f3e8f8;
  overflow: hidden;
}

.funnel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 30% 20%, #fff 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.funnel-hero .container {
  position: relative;
  z-index: 2;
}

.funnel-hero .breadcrumb {
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: rgba(243, 232, 248, 0.7);
}

.funnel-hero .breadcrumb a {
  color: #fbbf24;
  font-weight: 600;
}

.funnel-hero .breadcrumb a:hover {
  color: #fff;
}

.funnel-hero .eyebrow {
  color: #fcd34d;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.funnel-hero h1 {
  margin: 0 0 14px;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  line-height: 1.15;
  color: #fff;
  max-width: 22ch;
}

.funnel-hero-lead {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(254, 243, 199, 0.95);
  max-width: 54ch;
}

.funnel-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.funnel-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* ── Étapes du tunnel ───────────────────────── */
.funnel-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
}

.funnel-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

a.funnel-step:hover {
  color: #fff;
  border-color: rgba(251, 191, 36, 0.45);
}

.funnel-step.is-done {
  color: rgba(255, 255, 255, 0.85);
}

.funnel-step.is-current {
  color: #3d1f47;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.funnel-step-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.funnel-step.is-current .funnel-step-num {
  background: rgba(61, 31, 71, 0.2);
}

/* ── CTAs héros ─────────────────────────────── */
.funnel-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

@media (min-width: 540px) {
  .funnel-hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    align-items: stretch;
  }

  .funnel-hero-cta .btn-funnel-primary,
  .funnel-hero-cta .btn-funnel-secondary {
    flex: 1 1 auto;
    min-width: 160px;
  }
}

.btn-funnel-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #3d1f47;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-funnel-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.btn-funnel-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-funnel-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 140, 126, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.42);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* ── Sections contenu ───────────────────────── */
.funnel-section {
  padding: 48px 0;
}

.funnel-section.alt {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.funnel-section h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--heading);
  margin: 0 0 14px;
}

.funnel-section > .container > p.lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.funnel-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.funnel-check-list li {
  position: relative;
  padding-left: 36px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.5;
}

.funnel-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #3d1f47;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.funnel-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}

/* ── Grille bénéfices ───────────────────────── */
.funnel-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.funnel-benefit-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.funnel-benefit-card span {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.funnel-benefit-card h3 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--heading);
}

.funnel-benefit-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Modules compacts ───────────────────────── */
.funnel-modules {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.funnel-mod {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.funnel-mod-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #3d1f47;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.funnel-mod h3 {
  margin: 0 0 6px;
  font-family: "Outfit", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--heading);
}

.funnel-mod p {
  margin: 0;
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 480px) {
  .funnel-mod {
    grid-template-columns: 1fr;
  }

  .funnel-mod p {
    grid-column: 1;
  }
}

.funnel-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(47, 175, 227, 0.08);
  border: 1px solid rgba(47, 175, 227, 0.2);
  font-size: 0.95rem;
  color: var(--muted);
}

.funnel-note a {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ── Formulaire tunnel ──────────────────────── */
.funnel-form-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.funnel-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.funnel-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading);
}

.funnel-form input,
.funnel-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.funnel-form input:focus,
.funnel-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 175, 227, 0.12);
}

.funnel-form textarea {
  min-height: 100px;
  resize: vertical;
}

.funnel-form-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.funnel-form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.funnel-form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.funnel-form-status[data-variant="error"] {
  color: #7f1d1d;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.22);
}

.funnel-form-submit {
  margin-top: 8px;
}

.funnel-form .btn-whatsapp {
  width: 100%;
  margin-top: 4px;
}

/* ── Confirmation ───────────────────────────── */
.funnel-confirm-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.funnel-confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(24, 169, 87, 0.15), rgba(47, 175, 227, 0.12));
  border: 2px solid rgba(24, 169, 87, 0.35);
}

.funnel-confirm-card h1 {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--heading);
}

.funnel-confirm-card > p {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.funnel-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .funnel-confirm-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .funnel-confirm-actions .btn-whatsapp,
  .funnel-confirm-actions .btn-funnel-secondary {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 280px;
  }
}

/* ── Barre fixe mobile ──────────────────────── */
.funnel-sticky-mobile {
  display: none;
}

@media (max-width: 720px) {
  .funnel-sticky-mobile {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 32px rgba(17, 39, 66, 0.1);
  }

  .funnel-sticky-mobile .btn-whatsapp {
    flex: 1;
    min-height: 48px;
    font-size: 0.92rem;
    padding: 0 14px;
  }

  .funnel-sticky-mobile .btn-funnel-primary {
    flex: 1;
    min-height: 48px;
    font-size: 0.92rem;
    padding: 0 14px;
  }

  .funnel-sticky-mobile--solo .btn-whatsapp {
    flex: 1;
  }
}

/* ── Mega bandeau CTA bas de page ───────────── */
.funnel-cta-band {
  margin: 40px 0 0;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #3d1f47, #5c2d6b);
  color: #fff;
  text-align: center;
}

.funnel-cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.funnel-cta-band p {
  margin: 0 auto 22px;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.funnel-cta-band .funnel-inline-cta {
  justify-content: center;
  margin-top: 0;
}

.funnel-cta-band .btn-funnel-secondary {
  border-color: rgba(255, 255, 255, 0.5);
}
