/* ==========================================================================
   Page « Funnel building » : complète css/style.css (charte TDV Media)
   ========================================================================== */

.fb-nowrap { white-space: nowrap; }
.fb-center { margin-left: auto; margin-right: auto; text-align: center; }
.fb-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.fb-hero {
  padding: calc(var(--header-h) + 72px) 0 96px;
  background:
    radial-gradient(760px 460px at 82% 18%, rgba(245, 245, 245, 0.08), transparent 62%),
    radial-gradient(520px 420px at 4% 92%, rgba(212, 175, 55, 0.07), transparent 65%),
    var(--black);
  overflow: hidden;
}
.fb-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.fb-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); text-wrap: balance; }
.fb-hero__lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.fb-prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fb-price {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.fb-price:hover { border-color: var(--silver-mid); transform: translateY(-2px); }
.fb-price strong {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.fb-price span { font-size: 0.9rem; color: var(--light-silver); line-height: 1.3; max-width: 190px; text-align: left; }

/* Bouton flottant (mobile) : sur une ligne, masqué tant que le bouton du haut est visible */
.fb .fab { white-space: nowrap; transition: opacity 0.25s ease, transform 0.25s ease; }
.fb .fab.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }

.fb-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.fb-hero__visual { display: flex; flex-direction: column; align-items: center; }
.fb-phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 16;
  padding: 10px;
  border-radius: 44px;
  background: #050505;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.2) inset,
    0 0 0 1px #000,
    0 50px 100px -24px rgba(0, 0, 0, 0.85),
    0 0 120px -30px rgba(245, 245, 245, 0.18);
}
.fb-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0b0b0b;
}
.fb-phone__screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-hero__caption { margin-top: 18px; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- Outils compatibles ---------- */
.fb-tools { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--black); }
.fb-tools__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 30px; padding-bottom: 30px; }
.fb-tools__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fb-tools__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fb-tools__list li {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--light-silver);
  background: rgba(255, 255, 255, 0.03);
}
.fb-tools__list .fb-tools__sio { padding: 7px 18px; background: rgba(0, 160, 255, 0.08); border-color: rgba(0, 160, 255, 0.35); }
.fb-tools__list .fb-tools__sio img { display: block; height: 22px; width: auto; }
.fb-tools__list .fb-tools__more { border-style: dashed; color: var(--muted); font-weight: 500; }
.fb-tools__note { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); }

/* ---------- Galerie ---------- */
.fb-gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.fb-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--black);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fb-card:hover { transform: translateY(-4px); border-color: var(--silver-dark); box-shadow: var(--shadow-md); }
.fb-card:focus-visible { outline: 2px solid var(--silver-light); outline-offset: 3px; }
.fb-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.fb-card__meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.fb-card__meta b { font-size: 0.92rem; font-weight: 700; }
.fb-card__meta i { font-style: normal; font-size: 0.8rem; color: var(--muted); }

/* ---------- Ce qui est inclus ---------- */
.fb-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.fb-feature { background: var(--black); padding: 36px 28px 40px; }
.fb-feature__num {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 26px;
}
.fb-feature h3 { margin-bottom: 12px; }
.fb-feature p { color: var(--muted); line-height: 1.6; }

/* ---------- Tarifs ---------- */
.fb-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.fb-plan {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--black);
}
.fb-plan--feature {
  border-color: rgba(245, 245, 245, 0.28);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(245, 245, 245, 0.08), transparent 70%),
    var(--black);
}
.fb-plan__name { font-weight: 700; font-size: 1.05rem; color: var(--light-silver); min-height: 2.6em; }
.fb-plan__price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 22px; }
.fb-plan__price strong {
  font-size: clamp(3rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fb-plan__price span { color: var(--muted); }
.fb-plan__list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.fb-plan__list li { position: relative; padding-left: 28px; color: var(--light-silver); line-height: 1.45; }
.fb-plan__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Déroulement ---------- */
.fb-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.fb-steps li {
  counter-increment: step;
  position: relative;
  padding: 30px 26px 30px;
  border-top: 1px solid var(--border);
}
.fb-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--silver-gradient);
  color: var(--black);
  font-weight: 800;
}
.fb-steps b { display: block; font-size: 1.15rem; margin-bottom: 8px; }
.fb-steps span { color: var(--muted); line-height: 1.6; }

/* ---------- Signature ---------- */
.fb-sign { padding: 80px 0; }
.fb-sign__inner { display: flex; align-items: center; gap: 32px; max-width: 820px; }
.fb-sign__inner img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--border);
  filter: grayscale(0.2);
}
.fb-sign__quote { font-size: 1.2rem; line-height: 1.6; color: var(--light-silver); }
.fb-sign__name { margin-top: 14px; font-weight: 700; }
.fb-sign__name span { display: block; font-weight: 500; font-size: 0.9rem; color: var(--muted); }

/* ---------- Visionneuse ---------- */
.fb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(6px);
}
.fb-lightbox[hidden] { display: none; }
.fb-lightbox__figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 100%; }
.fb-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.fb-lightbox__figure figcaption { margin-top: 14px; color: var(--light-silver); font-size: 0.95rem; text-align: center; }
.fb-lightbox__close,
.fb-lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--anthracite);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.fb-lightbox__close:hover,
.fb-lightbox__nav:hover { border-color: var(--silver-light); }
.fb-lightbox__close { position: absolute; top: 18px; right: 18px; font-size: 1.6rem; }
.fb-lightbox__close:focus-visible,
.fb-lightbox__nav:focus-visible { outline: 2px solid var(--silver-light); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fb-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fb-hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .fb-hero__text { text-align: center; }
  .fb-hero__lead { margin-left: auto; margin-right: auto; }
  .fb-prices, .fb-hero__cta { justify-content: center; }
  .fb-steps { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .fb-hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .fb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fb-card__meta { padding: 10px 10px 12px; }
  .fb-features { grid-template-columns: 1fr; }
  .fb-plans { grid-template-columns: 1fr; }
  .fb-plan { padding: 30px 22px 24px; }
  .fb-plan__name { min-height: 0; }
  .fb-sign__inner { flex-direction: column; text-align: center; }
  .fb-hero__cta .btn { width: 100%; }
  .fb-price { width: 100%; }
  .fb-price span { max-width: none; }
  .fb-lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 64px 12px 16px; }
  .fb-lightbox__figure { grid-column: 1; grid-row: 1; }
  .fb-lightbox__nav { position: absolute; bottom: 18px; }
  .fb-lightbox__nav--prev { left: 18px; }
  .fb-lightbox__nav--next { right: 18px; }
  .fb-lightbox__figure img { max-height: calc(100vh - 170px); }
}

@media (prefers-reduced-motion: reduce) {
  .fb-card, .fb-price { transition: none; }
}
