/**
 * Funnel — styles de sections de la home : hero, pain, ecosystem, demo, mentor, final.
 */

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(61, 163, 200, .16), transparent 60%),
    radial-gradient(760px 520px at 100% 4%, rgba(250, 175, 11, .13), transparent 55%),
    linear-gradient(180deg, var(--fnl-ink) 0%, var(--fnl-ink-2) 100%);
  color: #fff;
}
.hero .wrap { padding: 64px var(--fnl-pad) 76px; }
.hero-inner {
  max-width: none;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo { height: 96px; width: auto; margin: 0 0 16px; }
.hero h1 {
  font-size: clamp(25px, 3.4vw, 37px);
  line-height: 1.16;
  font-weight: var(--fnl-fw-head);
  letter-spacing: -.015em;
  margin: 6px 0 0;
  text-wrap: balance;
}
.hero h1 .l1 { display: block; color: #fff; }
.hero h1 .l2 {
  display: block;
  color: var(--fnl-orange);
  font-size: .58em;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0;
  margin-top: .9em;
}
.hero-sub {
  font-size: 17px;
  color: #d7dadf;
  font-weight: 400;
  margin: 18px auto 0;
  max-width: 56ch;
  white-space: normal;
  line-height: 1.55;
}
.badges { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: center; margin: 24px 0 0; }
.badge.bx .material-icons-outlined { color: var(--fnl-orange); }
.hero .btn { margin-top: 28px; }
.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #9aa0a8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-note .material-icons-outlined { font-size: 16px; color: var(--fnl-blue-1); }

/* ── PAIN ───────────────────────────────────────────────────────────────── */
/* minmax(0,1fr) et non 1fr : une piste `1fr` garde un min-width:auto implicite
   et ne descend jamais sous la largeur mini de son contenu (une image large y
   imposait sa taille -> debordement horizontal sur mobile). */
.painlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 26px; margin-top: 40px; }
.pitem {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 16px;
  font-weight: 600;
  color: #eceef1;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pitem .material-icons-outlined { font-size: 21px; color: var(--fnl-danger); flex: 0 0 auto; margin-top: 2px; }
.pitem img { width: 21px; height: 21px; flex: 0 0 auto; margin-top: 2px; }
.reframe {
  margin-top: 32px;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.reframe .u { color: var(--fnl-orange); }

/* ── ECOSYSTEM ──────────────────────────────────────────────────────────── */
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.vision {
  margin: 34px auto 0;
  text-align: center;
  max-width: 62ch;
  font-size: 16px;
  font-weight: 500;
  color: var(--fnl-muted);
}
.vision b { color: var(--fnl-text); font-weight: 700; }

/* ── DEMO ───────────────────────────────────────────────────────────────── */
.demo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 38px; align-items: center; margin-top: 44px; }
/* Pyramide seule, centrée (le bloc CTA « démonstration » a été retiré). */
.demo-pyramid--center { margin-top: 44px; text-align: center; }
.demo-pyramid--center .pyr-img { margin: 0 auto; }
.demo-split.is-reverse { direction: rtl; }
.demo-split.is-reverse > * { direction: ltr; }
.pyr-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fnl-sim);
  text-align: center;
}
.pyr-img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5));
}
.demo-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 34px 32px;
}
.demo-cta-ico {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 175, 11, .14);
  color: var(--fnl-orange);
}
.demo-cta-ico .material-icons-outlined { font-size: 30px; }
.demo-cta h3 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.demo-cta p { margin: 0; font-size: 15px; color: #cfd3d9; line-height: 1.6; }
.demo-cta .btn { margin-top: 6px; }

/* ── MENTOR ─────────────────────────────────────────────────────────────── */
.mentor { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 42px; align-items: center; margin-top: 44px; }
.mentor-photo { position: relative; }
.mentor-photo .ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--fnl-line);
  background: linear-gradient(135deg, var(--fnl-blue-1), var(--fnl-blue-2));
}
.mentor-photo .ph-fallback {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--fnl-blue-1), var(--fnl-blue-2));
}
/* Sceau et pin : ornements de la photo, volontairement NON éditables (CSS pur,
   zéro logique côté bloc). L'image du sceau vient des assets du thème. */
.mentor-photo .seal {
  position: absolute;
  top: -16px;
  inset-inline-end: -16px;
  width: 90px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .22));
}
.mentor-photo .pin {
  position: absolute;
  inset-inline-start: -1px;
  bottom: -1px;
  background: var(--fnl-orange);
  color: var(--fnl-on-accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 13px;
}
.mentor-info h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.mentor-info .creds { font-size: 13.5px; font-weight: 700; color: var(--fnl-blue-2); margin: 5px 0 0; }
.mentor-info .bio { font-size: 15.5px; color: #3b3f49; font-weight: 400; margin: 16px 0 0; line-height: 1.6; }
.mentor-info .bio b { font-weight: 700; color: var(--fnl-text); }
.mentor-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fnl-blue-2);
  text-decoration: none;
}
.mentor-linkedin:hover { text-decoration: underline; }
.mentor-linkedin .material-icons-outlined { font-size: 18px; }

/* ── FINAL OFFER ────────────────────────────────────────────────────────── */
.final {
  background:
    radial-gradient(700px 420px at 85% -5%, rgba(61, 163, 200, .18), transparent 60%),
    linear-gradient(160deg, var(--fnl-ink) 0%, var(--fnl-ink-2) 100%);
  color: #fff;
}
.final .wrap { max-width: 720px; text-align: center; }
.final h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: var(--fnl-fw-head);
  letter-spacing: -.02em;
  margin: 16px 0 0;
}
.final h2 .hl { color: var(--fnl-orange); }
.final .lead { color: #cfd3d9; font-size: 17px; margin: 14px auto 0; max-width: 52ch; }
.final .btn { margin-top: 30px; }
.final .limit {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fnl-sim);
}

/* ═══ Miroir segmenté (4 cartes personas cliquables, zone pain sur fond sombre) ═══ */
.mirror-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 8px 0 22px; }
.mirror-card { text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--fnl-radius); padding: 16px; cursor: pointer; color: #fff; font-family: inherit;
  transition: border-color .18s var(--fnl-ease), background .18s var(--fnl-ease); display: block; width: 100%; }
.mirror-card:hover, .mirror-card[aria-expanded="true"] { border-color: var(--fnl-orange); background: rgba(250,175,11,.10); }
.mirror-ico { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(250,175,11,.18);
  align-items: center; justify-content: center; margin-bottom: 10px; }
.mirror-ico .material-icons-outlined { color: var(--fnl-orange); font-size: 20px; }
.mirror-title { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.mirror-body { display: none; }
.mirror-card[aria-expanded="true"] .mirror-body { display: block; }
.mirror-pt { display: block; font-size: 13.5px; color: rgba(255,255,255,.82); margin: 4px 0; padding-left: 14px; position: relative; }
.mirror-pt::before { content: "—"; position: absolute; left: 0; color: var(--fnl-orange); }
.mirror-out { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.2);
  font-size: 13.5px; font-weight: 600; color: #fff; }
@media (min-width: 760px) {
  .mirror-grid { grid-template-columns: repeat(2, 1fr); }
  .mirror-body { display: block; } /* desktop : tout visible */
}
@media (min-width: 1040px) { .mirror-grid { grid-template-columns: repeat(4, 1fr); } }
