/* E-com Fantôme · page d'inscription au webinaire
   DA = deck Canva du webinaire (fond nuit, violet FANTÔME, orange accroche, mono espacé, traits « circuit ») */

:root {
  --bg: #0D0C14;
  --bg-2: #12101B;
  --card: #16131F;
  --halo: #2A1A45;
  --line: rgba(190, 144, 248, 0.16);
  --violet: #BE90F8;
  --violet-deep: #7A55C7;
  --orange: #EE7044;
  --orange-soft: rgba(238, 112, 68, 0.12);
  --text: #F4F1FA;
  --muted: #A9A2BA;
  --dim: #6F6880;
  --radius: 14px;
  --maxw: 1120px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--violet); color: var(--bg); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Petits éléments de la DA ---------- */
.label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 18px;
}
.label.orange { color: var(--orange); }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); margin-right: 10px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(238,112,68,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(238,112,68,.55); }
  70% { box-shadow: 0 0 0 10px rgba(238,112,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,112,68,0); }
}
.v { color: var(--violet); }
.o { color: var(--orange); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 18px; }
.muted { color: var(--muted); }

/* ---------- Bouton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--orange);
  color: #1A0E08;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 19px 30px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 34px -10px rgba(238,112,68,.65), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); background: #F27E55; box-shadow: 0 16px 40px -10px rgba(238,112,68,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateY(2px); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; border-radius: 10px; box-shadow: none; }
.cta-note { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-top: 16px; }

/* ---------- Barre du haut ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13,12,20,.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(190,144,248,.08);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.brand b { color: var(--text); font-weight: 700; }
.brand .v { font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto; height: 120%;
  background:
    radial-gradient(ellipse 52% 46% at 50% 42%, rgba(122,85,199,.38), transparent 70%),
    radial-gradient(ellipse 40% 26% at 50% 100%, rgba(238,112,68,.16), transparent 70%);
  z-index: -2;
}
.hero .circuit { position: absolute; z-index: -1; pointer-events: none; }
.hero .c-tl { top: 40px; left: 0; width: min(36vw, 420px); }
.hero .c-tr { top: 18px; right: 0; width: min(30vw, 360px); }
.hero .c-bl { bottom: 40px; left: 0; width: min(28vw, 320px); }
.hero .c-br { bottom: 24px; right: 0; width: min(34vw, 400px); }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(36px, 6.2vw, 72px);
  max-width: 980px;
  margin: 0 auto;
}
.rule {
  width: 260px; height: 1px; margin: 34px auto 30px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: .8;
}
.hero .lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text);
  max-width: 720px; margin: 0 auto 16px;
}
.hero .sub { max-width: 720px; margin: 0 auto 38px; color: var(--muted); }
.hero .when {
  font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 22px;
}

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: 104px 0; }
.sec + .sec { border-top: 1px solid rgba(190,144,248,.07); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Situation : deux cas + OU */
.cases { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: stretch; }
.case {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 28px;
}
.case .num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  background: var(--orange-soft); color: var(--orange); margin-bottom: 18px;
}
.case p { color: var(--muted); }
.case p:last-child { margin-bottom: 0; }
.case p.strong { color: var(--text); }
.or {
  align-self: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: .2em; color: var(--dim);
}
.callout {
  margin-top: 30px;
  border-left: 2px solid var(--orange);
  background: linear-gradient(90deg, rgba(238,112,68,.10), rgba(238,112,68,.02) 70%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 34px;
}
.callout .label { margin-bottom: 10px; }
.callout p:not(.label) { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; letter-spacing: -0.01em; }

/* Ce que vous allez découvrir */
.learn { border-top: 1px solid var(--line); }
.learn-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.learn-item .n { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--orange); letter-spacing: -0.03em; }
.learn-item h3 { margin-bottom: 10px; }
.learn-item p { color: var(--muted); margin: 0; max-width: 760px; }
.learn-cta { margin-top: 48px; }

/* Pourquoi j'ai créé E-com Fantôme */
.story { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 64px; align-items: center; }
.portrait { position: relative; }
.portrait .frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(190,144,248,.22);
  box-shadow: 0 30px 80px -30px rgba(122,85,199,.55);
  aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.portrait .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,12,20,.75));
}
.portrait .tag {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
}
.portrait .tag span { color: var(--violet); }
.portrait .circuit { position: absolute; width: 180px; right: -64px; top: -34px; z-index: -1; }
.quote {
  position: relative;
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.7;
  color: var(--text);
}
.quote p { margin-bottom: 20px; }
.quote p:first-child::before {
  content: "«"; display: block;
  font-family: var(--display); font-weight: 800; font-size: 72px; line-height: .7;
  color: var(--violet); margin-bottom: 14px;
}
.sign { font-family: var(--mono); font-size: 14px; letter-spacing: .3em; color: var(--orange); margin-top: 8px; }

/* Venez avec votre question */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.q {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 26px 26px 24px;
  font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.38; letter-spacing: -0.01em;
  transition: border-color .2s ease, transform .2s ease;
}
.q:hover { border-color: rgba(190,144,248,.45); transform: translateY(-3px); }
.q .who { display: block; margin-bottom: 12px; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.questions-note { max-width: 720px; margin: 0 auto; text-align: center; color: var(--muted); }

/* Inscription */
.signup { padding: 110px 0 120px; overflow: hidden; isolation: isolate; }
.signup::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(122,85,199,.30), transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(238,112,68,.10), transparent 70%);
  z-index: -1;
}
.signup .circuit { position: absolute; z-index: -1; pointer-events: none; }
.signup .c-l { left: 0; top: 300px; width: min(30vw, 340px); }
.signup .c-r { right: 0; bottom: 70px; width: min(32vw, 380px); }
.signup-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.signup-head h2 { margin-bottom: 18px; }
.signup-head p { color: var(--muted); margin: 0; }
.signup-head .label { margin-bottom: 20px; color: var(--orange); }
.form-card {
  max-width: 560px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(27,18,40,.92), rgba(18,16,27,.96));
  border: 1px solid rgba(190,144,248,.24);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 40px 100px -40px rgba(122,85,199,.6);
}
.form-card iframe { width: 100%; border: 0; border-radius: 12px; min-height: 520px; display: block; background: transparent; }
.form-placeholder {
  border: 1.5px dashed rgba(190,144,248,.35); border-radius: 12px;
  min-height: 420px; display: grid; place-items: center; text-align: center; padding: 30px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); line-height: 1.8;
}
.form-placeholder b { color: var(--violet); font-weight: 700; }
.reassure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 26px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.reassure span::before { content: "✓"; color: var(--orange); margin-right: 8px; }

/* Pied de page */
footer { border-top: 1px solid rgba(190,144,248,.08); padding: 34px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--dim); }

/* Barre mobile collante */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: none;
  transform: translateY(140%); transition: transform .3s ease;
}
.sticky-cta .btn { width: 100%; padding: 17px 20px; box-shadow: 0 14px 40px -8px rgba(0,0,0,.7), 0 8px 26px -10px rgba(238,112,68,.7); }
.sticky-cta.show { transform: translateY(0); }

/* Circuits SVG */
.circuit path, .circuit polyline { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.circuit .pv { stroke: rgba(190,144,248,.55); }
.circuit .po { stroke: rgba(238,112,68,.55); }
.circuit circle { fill: var(--violet); }
.circuit circle.co { fill: var(--orange); }
.draw path, .draw polyline { stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); animation: draw 2.4s cubic-bezier(.6,.1,.2,1) .2s forwards; }
.draw circle { opacity: 0; animation: fadein .6s ease 2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* Apparitions au défilement (glissé + opacité, jamais de flou) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Hero : entrée au chargement */
.hero .rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .rise:nth-child(2) { animation-delay: .08s; } .hero .rise:nth-child(3) { animation-delay: .18s; }
.hero .rise:nth-child(4) { animation-delay: .26s; } .hero .rise:nth-child(5) { animation-delay: .34s; }
.hero .rise:nth-child(6) { animation-delay: .42s; } .hero .rise:nth-child(7) { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; gap: 14px; }
  .or { justify-self: center; }
  .story { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 380px; }
  .questions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .btn-sm { display: none; }
  .brand { font-size: 11.5px; letter-spacing: .16em; }
  .hero { padding: 64px 0 76px; }
  .hero .when { font-size: 11.5px; letter-spacing: .14em; }
  .label { font-size: 11.5px; letter-spacing: .18em; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .case { padding: 26px 22px 22px; }
  .callout { padding: 24px 22px; }
  .learn-item { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .learn-item .n { font-size: 34px; }
  .btn { width: 100%; padding: 18px 20px; font-size: 16px; }
  .signup { padding: 76px 0 88px; }
  .form-card { padding: 10px; border-radius: 16px; }
  .hero .c-tl, .hero .c-br { width: 62vw; opacity: .7; }
  .hero .c-tr, .hero .c-bl { display: none; }
  .sticky-cta { display: block; }
  footer { padding-bottom: 110px; }
  .signup .c-l { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .rise { opacity: 1; transform: none; }
  .draw path, .draw polyline { stroke-dashoffset: 0; }
  .draw circle { opacity: 1; }
  html { scroll-behavior: auto; }
}
