/* linkedin-presale/styles.css
   Design flat, sans dégradé — palette LinkedIn-blue + neutres, inspiré
   HeyReach / MeetAlfred mais volontairement plus sobre. */

:root {
  --blue: #0a66c2;
  --blue-dark: #084b8f;
  --blue-light: #e8f1fc;
  --ink: #0b1220;
  --ink-soft: #43526b;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-dark: #0b1220;
  --bg-dark-card: #131b2c;
  --green: #0a8a52;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Icônes SVG ──────────────────────────────────────────────────────── */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-list { }
.icon-list li { display: flex; align-items: flex-start; gap: 10px; }
.icon-list .icon-check { color: var(--green); margin-top: 2px; width: 18px; height: 18px; }
.icon-list .icon-arrow { color: var(--blue); margin-top: 2px; width: 18px; height: 18px; }

/* ── Reveal on scroll ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
/* Décalage en cascade pour les grilles */
.feature-grid .reveal.in-view { transition-delay: calc(var(--i, 0) * 80ms); }
.steps .reveal.in-view { transition-delay: calc(var(--i, 0) * 90ms); }
.why-list .reveal.in-view { transition-delay: calc(var(--i, 0) * 80ms); }
.faq-list .reveal.in-view { transition-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; padding: 12px 22px; font-size: 15px; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 12px 22px; font-size: 15px; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Announcement bar ────────────────────────────────────────────────── */
.announce-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.announce-bar strong { color: #7cc0ff; }
.live-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%; background: #37d67a; flex-shrink: 0;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #37d67a;
  animation: pulse-ring 2s ease-out infinite;
}
/* transform + opacity uniquement → animation composited (GPU) */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.logo-mark.small { width: 26px; height: 26px; font-size: 12px; }
.logo-text { font-weight: 700; font-size: 15px; color: var(--ink); }
.logo-text em { font-style: normal; color: var(--ink-soft); font-weight: 500; }
.main-nav { display: flex; gap: 28px; margin-left: 12px; flex: 1; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.main-nav a:hover { color: var(--blue); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 9px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 64px; background: var(--bg-alt); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.hero h1 { font-size: 44px; }
.hero-sub { font-size: 17px; max-width: 46ch; }
.hero-cta-row { display: flex; gap: 14px; margin: 28px 0 22px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.badge {
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--blue-light); color: var(--blue);
}
.badge-live::before { content: "● "; color: var(--green); }
.hero-card-timer { font-size: 13px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-now { font-size: 38px; font-weight: 800; }
.price-was { font-size: 18px; color: var(--ink-soft); text-decoration: line-through; }
.price-badge { background: #fdecea; color: #c0392b; font-weight: 700; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; }
.price-note { font-size: 13px; color: var(--ink-soft); margin: 6px 0 18px; }

.seats-block { margin-bottom: 20px; }
.seats-bar-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.seats-bar-fill { height: 100%; background: var(--blue); border-radius: 999px; transition: width 0.4s ease; }
.seats-label { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }

.hero-card-list { margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

/* ── Demo video ──────────────────────────────────────────────────────── */
.demo-section { padding-top: 0; padding-bottom: 64px; background: var(--bg-alt); }
.demo-video-wrap {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #000;
}
.demo-video-wrap video { display: block; width: 100%; height: auto; }

/* ── Strip ───────────────────────────────────────────────────────────── */
.strip { border-bottom: 1px solid var(--line); padding: 32px 0; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.strip-item strong { display: block; font-size: 22px; font-weight: 800; color: var(--blue); }
.strip-item span { font-size: 13px; color: var(--ink-soft); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; }
.section-sub { color: var(--ink-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue);
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card:hover .feature-icon { transform: translateY(-2px) scale(1.06); background: var(--blue); color: #fff; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 16px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; margin: 0; }

.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why-copy h2 { font-size: 30px; }
.why-list { display: flex; flex-direction: column; gap: 14px; }
.why-list li {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.why-list li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: #c9dcf3; }
.why-list li strong { color: var(--ink); font-size: 15px; }
.why-check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.why-check .icon { width: 16px; height: 16px; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .eyebrow { color: #7cc0ff; }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: #a9b4c9; }

.pricing-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-dark-card);
  border: 1px solid #24304a;
  border-radius: 16px;
  overflow: hidden;
}
.pricing-left { padding: 40px; border-right: 1px solid #24304a; }
.pricing-right { padding: 40px; background: #fff; color: var(--ink); }

.pricing-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.price-now-lg { font-size: 46px; font-weight: 800; }
.price-was-lg { font-size: 20px; color: #7c8aa8; text-decoration: line-through; }
.pricing-left .price-note { color: #a9b4c9; }

.countdown-block { margin: 26px 0; }
.countdown-caption { font-size: 13px; color: #a9b4c9; margin-bottom: 10px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-cell {
  background: #1b2540; border: 1px solid #2a3654; border-radius: 10px;
  padding: 12px 6px; text-align: center;
}
.countdown-cell span { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown-cell small { font-size: 11px; color: #8896b3; text-transform: uppercase; letter-spacing: 0.05em; }

.pricing-includes { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.pricing-includes .icon-check { color: #37d67a; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-row .optional { font-weight: 400; color: #5f6d88; }
.form-row input {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 14.5px; font-family: inherit;
  background: #fff; color: var(--ink);
}
.form-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.form-error {
  background: #fdecea; color: #c0392b; font-size: 13.5px;
  padding: 10px 12px; border-radius: 8px; margin: 0 0 14px;
}
.form-status { font-size: 13.5px; margin-top: 12px; text-align: center; }
.form-status.status-error { color: #c0392b; }
.form-status.status-info { color: var(--ink-soft); }
.form-fineprint { font-size: 12px; color: #5f6d88; text-align: center; margin: 14px 0 0; }

.payment-summary {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; margin-bottom: 18px; font-size: 14px;
}
.payment-summary strong { display: block; font-size: 18px; margin-top: 4px; }

.success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #e7f8ee; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-icon .icon { width: 30px; height: 30px; }
#successStep { text-align: center; padding: 24px 0; }

/* ── FAQ (accordéon custom, hauteur animée) ──────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.open { border-color: #c9dcf3; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; font-family: inherit;
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-chevron { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a p { margin: 0; padding: 0 18px 18px; font-size: 14.5px; }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.final-cta { padding: 72px 0; background: var(--blue-light); text-align: center; }
.final-cta-inner h2 { font-size: 28px; max-width: 560px; margin: 0 auto 24px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #a9b4c9; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-inner .logo-text { color: #fff; }
.footer-inner a { color: #7cc0ff; text-decoration: none; }
.footer-legal { font-size: 12px; color: #9aa6bd; margin-top: 6px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner, .why-grid, .pricing-card { grid-template-columns: 1fr; }
  .pricing-left { border-right: none; border-bottom: 1px solid #24304a; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .pricing-left, .pricing-right { padding: 28px 22px; }
  .countdown-grid { gap: 6px; }
}

/* ── Micro-interactions & états animés ───────────────────────────────── */

/* Header : ombre + compactage au scroll */
.site-header { transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11, 18, 32, 0.07); }
.site-header.scrolled .header-inner { height: 60px; }

/* Boutons : léger relèvement + ombre au survol */
.btn-primary { box-shadow: 0 2px 8px rgba(10, 102, 194, 0.25); transition: background 0.15s ease, transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10, 102, 194, 0.32); }
.btn-ghost { transition: border-color 0.15s ease, color 0.15s ease, transform 0.18s cubic-bezier(0.22,1,0.36,1); }
.btn-ghost:hover { transform: translateY(-2px); }

/* Carte hero : entrée + flottement doux */
.hero-card { animation: floaty 6s ease-in-out infinite; }
.hero-card.reveal { animation: none; }
.hero-card.reveal.in-view { animation: floaty 6s ease-in-out 0.8s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Cartes feature : élévation au survol */
.feature-card { transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #c9dcf3; }

/* Étapes : ligne de connexion animée en fond (desktop) */
.steps { position: relative; }

/* Strip : items qui réagissent */
.strip-item { transition: transform 0.25s ease; }
.strip-item:hover { transform: translateY(-3px); }

/* Barre de progression des places : effet shimmer subtil */
.seats-bar-fill { position: relative; overflow: hidden; }
.seats-bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Compteur : petit pop quand la valeur des secondes change */
.countdown-cell span { transition: transform 0.2s ease; display: inline-block; }
.countdown-cell.tick span { animation: tick 0.4s ease; color: #7cc0ff; }
/* transform uniquement dans la keyframe → composited ; la teinte est portée
   par la classe .tick (transition CSS), pas par l'animation. */
@keyframes tick {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ── Typewriter (titre hero) ─────────────────────────────────────────── */
.hero-title { min-height: 1.2em; }
.type-wrap { display: inline-flex; align-items: baseline; }
.type { color: var(--blue); }
.type-caret {
  display: inline-block; width: 3px; height: 1em;
  background: var(--blue); margin-left: 3px;
  transform: translateY(2px);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.type.type-done + .type-caret { display: none; }

/* ── Nav : soulignement animé ────────────────────────────────────────── */
.main-nav a { position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Boutons : reflet lumineux au survol ─────────────────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-200%) skewX(-20deg);
}
/* transform uniquement → animation composited (GPU) */
.btn-primary:hover::after { animation: sheen 0.75s ease; }
@keyframes sheen {
  0% { transform: translateX(-200%) skewX(-20deg); }
  100% { transform: translateX(320%) skewX(-20deg); }
}

/* ── Carte hero : brillance douce sur le pourtour ────────────────────── */
.hero-card { position: relative; }

/* ── Reveal : variante "scale" pour la carte tarif ───────────────────── */
.pricing-card.reveal { transform: translateY(30px) scale(0.985); }
.pricing-card.reveal.in-view { transform: none; }

/* ── Icônes feature : tracé qui se dessine à l'apparition ────────────── */
.feature-card.reveal .feature-icon .icon { stroke-dasharray: 120; stroke-dashoffset: 120; }
.feature-card.reveal.in-view .feature-icon .icon {
  animation: draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 0.15s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-card, .hero-card.reveal.in-view { animation: none; }
  .seats-bar-fill::after { animation: none; }
  .btn-primary:hover, .btn-ghost:hover, .feature-card:hover, .strip-item:hover { transform: none; }
  .type-caret { animation: none; }
  .btn-primary:hover::after { animation: none; }
  .feature-card.reveal .feature-icon .icon { stroke-dashoffset: 0; }
}
