/* =================================================================
   NIVRAM NVM Production — Click Funnel B2B
   Identité : fond #0A0A0B · accent #D4691E · Satoshi + Cormorant
   Mobile-first · CSS vanilla · zéro framework
   ================================================================= */

/* ---------- 1. Variables ---------- */
:root {
  --bg:        #0A0A0B;   /* noir profond  */
  --bg-soft:   #131315;   /* cartes / bandes */
  --bg-elev:   #1A1A1D;   /* éléments survolés */
  --accent:    #D4691E;   /* orange brûlé */
  --accent-2:  #E8843D;   /* orange clair (hover) */
  --text:      #F4F1EC;   /* blanc cassé */
  --text-dim:  #A7A29A;   /* gris chaud */
  --text-mute: #6B665E;   /* gris discret */
  --line:      rgba(244, 241, 236, 0.08);
  --radius:    14px;
  --maxw:      1120px;

  --f-title: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-title);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }
fieldset { border: none; min-width: 0; }
legend { padding: 0; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- 4. Typographie ---------- */
h1, h2, h3 { font-family: var(--f-title); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 500; }
.accent { color: var(--accent); }
p { color: var(--text-dim); }

/* ---------- 5. Boutons / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 17px 30px;
  border-radius: 60px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: #0A0A0B;
  box-shadow: 0 10px 34px -12px rgba(212, 105, 30, 0.7);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(212, 105, 30, 0.85); }
.btn-primary .arrow { transition: transform .18s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 22px;
  font-size: 0.92rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 105, 30, 0.08);
  transform: translateY(-1px);
}
.btn-block { display: flex; width: 100%; justify-content: center; }
.cta-note { margin-top: 14px; font-size: 0.84rem; color: var(--text-mute); }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 18px;
  transition: padding .35s cubic-bezier(.4,0,.2,1), background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding-block: 9px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img {
  height: 72px;
  width: auto;
  display: block;
  transition: height .35s cubic-bezier(.4,0,.2,1);
}
.site-header.scrolled .brand img { height: 46px; }
.brand .meta { display: none; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 120px 70px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.38;
}
/* dégradés pour lisibilité par-dessus la vidéo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0.55) 40%, rgba(10,10,11,0.95) 100%),
    radial-gradient(120% 90% at 20% 10%, rgba(212,105,30,0.10) 0%, transparent 55%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { max-width: 760px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { display: inline; }
.hero__sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.7vw, 1.6rem);
  color: var(--text);
  opacity: 0.92;
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.45;
}
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero__trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.hero__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px rgba(212,105,30,0.18); }

/* ---------- 8. Bande logos clients ---------- */
.clients { border-block: 1px solid var(--line); background: var(--bg-soft); padding-block: 30px; }
.clients__label { text-align: center; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 22px; }
.clients__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 6vw, 64px);
}
.client-logo {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.01em;
  color: var(--text-dim);
  opacity: 0.62;
  transition: opacity .25s ease, color .25s ease;
  filter: grayscale(1);
}
.client-logo:hover { opacity: 1; color: var(--text); }
.client-logo img { height: clamp(22px, 4vw, 30px); width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.7; transition: opacity .25s, filter .25s; }
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- 9. Problèmes nommés ---------- */
.problems__head { max-width: 640px; margin-bottom: 50px; }
.problems__head p { margin-top: 16px; font-size: 1.08rem; }
.problem-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.problem-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.problem-card:hover { border-color: rgba(212,105,30,0.4); transform: translateY(-4px); background: var(--bg-elev); }
.problem-card .num { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--accent); margin-bottom: 14px; }
.problem-card h3 { margin-bottom: 10px; }
.problem-card p { font-size: 0.97rem; }

/* ---------- 9-bis. Méthode « clé en main » (Done For You) ---------- */
.method { background: var(--bg-soft); border-block: 1px solid var(--line); }
.method__head { max-width: 720px; margin-bottom: 50px; }
.method__head h2 { margin-top: 14px; }
.method__head .lead { margin-top: 16px; font-size: 1.08rem; }

.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
.step-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.step-card:hover { border-color: rgba(212,105,30,0.4); transform: translateY(-4px); }
.step-card__n {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(212,105,30,0.12);
  border: 1px solid rgba(212,105,30,0.4);
  color: var(--accent); font-weight: 900; font-size: 1rem;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step-card p { font-size: 0.94rem; }

/* Bandeau « ce que vous avez à faire » */
.method__note {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 24px 26px;
  background: radial-gradient(120% 130% at 0% 0%, rgba(212,105,30,0.14) 0%, transparent 60%), var(--bg);
  border: 1px solid rgba(212,105,30,0.28);
  border-radius: var(--radius);
}
.method__note .tag {
  flex: none; font-family: var(--f-serif); font-style: italic;
  font-size: 1.15rem; color: var(--accent); font-weight: 600;
}
.method__note p { color: var(--text); font-size: 1.02rem; margin: 0; }
.method__note p strong { color: var(--text); font-weight: 700; }

/* ---------- 10. Proof / case study ---------- */
.proof { background: var(--bg-soft); border-block: 1px solid var(--line); }
.proof__grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
.proof__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c20, #0e0e10);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof__media video, .proof__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: relative;
  z-index: 2;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(212,105,30,0.7);
  transition: transform .2s ease;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; fill: #0A0A0B; }
.placeholder-tag {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mute); background: rgba(10,10,11,0.6);
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line);
}
.case__client { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 14px; }
.case h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; margin-bottom: 22px; }
.case__steps { display: grid; gap: 16px; margin-bottom: 26px; }
.case__step { display: flex; gap: 14px; }
.case__step .k { flex: none; width: 78px; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); padding-top: 3px; }
.case__step .v { color: var(--text-dim); font-size: 0.98rem; }
.case__result {
  display: flex; gap: 26px; flex-wrap: wrap;
  padding: 20px 0 0; border-top: 1px solid var(--line);
}
.stat .n { font-family: var(--f-title); font-weight: 900; font-size: 1.9rem; color: var(--text); line-height: 1; }
.stat .l { font-size: 0.82rem; color: var(--text-mute); margin-top: 6px; }
.proof__note {
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 760px;
  font-size: 1rem; color: var(--text-dim);
}
.proof__note strong { color: var(--accent); font-weight: 700; }

/* ---------- 11. Témoignage vidéo ---------- */
.testimonial { text-align: center; }
.testimonial__media {
  max-width: 720px; margin: 0 auto 28px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #1c1c20, #0e0e10);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.testimonial__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testimonial blockquote {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  color: var(--text); max-width: 760px; margin: 0 auto 18px; line-height: 1.4;
}
.testimonial cite { font-style: normal; color: var(--text-dim); font-size: 0.92rem; }
.testimonial cite strong { color: var(--text); font-weight: 700; }

/* ---------- 11-bis. Services associés (élévation de valeur) ---------- */
.services__head { max-width: 720px; margin-bottom: 48px; }
.services__head h2 { margin-top: 14px; }
.services__head .lead { margin-top: 16px; font-size: 1.08rem; }

.svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.svc-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .25s ease, transform .25s ease;
}
.svc-card:hover { border-color: rgba(212,105,30,0.4); transform: translateY(-4px); }
.svc-card.is-core { border-color: rgba(212,105,30,0.4); background: linear-gradient(180deg, rgba(212,105,30,0.07), transparent), var(--bg-soft); }
.svc-card__tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  padding: 4px 10px; border: 1px solid rgba(212,105,30,0.4); border-radius: 50px;
}
.svc-card__ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(212,105,30,0.12); border: 1px solid rgba(212,105,30,0.3);
  display: grid; place-items: center; margin-bottom: 18px;
}
.svc-card__ic svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: 0.95rem; }

.services__note {
  margin-top: 30px; text-align: center;
  font-family: var(--f-serif); font-style: italic;
  font-size: 1.2rem; color: var(--text);
}
.services__note .accent { font-style: normal; font-weight: 700; }

/* ---------- 12. CTA final ---------- */
.cta-final { text-align: center; }
.cta-final__box {
  background: radial-gradient(130% 120% at 50% 0%, rgba(212,105,30,0.16) 0%, transparent 60%), var(--bg-soft);
  border: 1px solid rgba(212,105,30,0.28);
  border-radius: 24px;
  padding: clamp(40px, 7vw, 70px) 26px;
}
.cta-final h2 { max-width: 660px; margin: 0 auto 16px; }
.cta-final p { max-width: 540px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ---------- 13. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer img { height: 22px; opacity: 0.8; }
.site-footer .legal { font-size: 0.8rem; color: var(--text-mute); }
.site-footer .legal a { color: var(--text-dim); }
.site-footer .legal a:hover { color: var(--accent); }

/* =================================================================
   PAGES 2 & 3 — Qualification + Confirmation
   ================================================================= */
.funnel-page { min-height: 100svh; display: flex; flex-direction: column; }
.funnel-main { flex: 1; display: flex; align-items: center; padding-block: 110px 60px; }
.funnel-card {
  width: 100%; max-width: 680px; margin-inline: auto;
}

/* progression */
.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; justify-content: center; }
.progress .step { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.progress .bar { width: 46px; height: 3px; border-radius: 3px; background: var(--bg-elev); overflow: hidden; }
.progress .bar.done { background: var(--accent); }
.progress .bar.active::after { content: ''; display: block; height: 100%; width: 50%; background: var(--accent); }

/* form */
.q-head { text-align: center; margin-bottom: 40px; }
.q-head h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin-bottom: 14px; }
.q-head p { font-size: 1.05rem; }

.q-block { margin-bottom: 30px; }
.q-block > legend, .q-block > .q-label {
  display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; color: var(--text);
}
.q-block .q-num { color: var(--accent); font-family: var(--f-serif); font-style: italic; margin-right: 8px; }
.options { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.option {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  font-size: 0.96rem;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--text-mute); transition: all .18s ease;
  display: grid; place-items: center;
}
.option .tick::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .18s ease; }
.option:hover { border-color: rgba(212,105,30,0.45); background: var(--bg-elev); }
.option input:checked ~ .tick { border-color: var(--accent); }
.option input:checked ~ .tick::after { transform: scale(1); }
.option input:checked ~ span:last-child { color: var(--text); }
.option:has(input:checked) { border-color: var(--accent); background: rgba(212,105,30,0.08); }
.option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.q-error { color: #ff6b5e; font-size: 0.84rem; margin-top: 8px; display: none; }
.q-block.invalid .q-error { display: block; }

.q-submit { margin-top: 38px; }
.q-reassure { text-align: center; margin-top: 18px; font-size: 0.84rem; color: var(--text-mute); }

/* Embed Tally — conteneur neutre (le formulaire est rendu dans une iframe) */
.tally-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}
.tally-embed iframe { width: 100%; border: 0; display: block; }

/* Page 3 — confirmation */
.confirm-head { text-align: center; margin-bottom: 40px; }
.confirm-badge {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 24px;
  background: rgba(212,105,30,0.14); border: 1px solid rgba(212,105,30,0.4);
  display: grid; place-items: center;
}
.confirm-badge svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.confirm-head h1 { margin-bottom: 16px; }
.confirm-head .perso { font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; color: var(--text); max-width: 560px; margin: 0 auto; }
.confirm-head .perso .accent { font-style: normal; font-weight: 700; }

.benefits { display: grid; gap: 12px; max-width: 520px; margin: 34px auto; }
.benefit { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--text-dim); }
.benefit svg { flex: none; width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2.4; margin-top: 2px; }

.calendly-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft); min-height: 640px;
}
.calendly-inline-widget { min-width: 320px; height: 680px; }

.fallback { text-align: center; margin-top: 30px; font-size: 0.92rem; color: var(--text-dim); }
.fallback a { color: var(--accent); font-weight: 600; }

/* =================================================================
   14. Reveal on scroll
   ================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   15. Responsive ≥ 720px
   ================================================================= */
@media (min-width: 760px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .proof__grid { grid-template-columns: 1.05fr 1fr; gap: 50px; }
  .options { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .wrap { padding-inline: 32px; }
}

/* accessibilité — réduction des animations */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
