/* Landing publique voxfacture : overrides ciblés par-dessus Pico CSS. */

:root {
  /* Accent calé sur la couleur du wordmark dans logo.png (teal #1478a0).
     --vf-accent-dark sert aux hovers/borders pressed et fait passer le
     texte blanc à un ratio AA-confortable (~7:1). */
  --vf-accent: #1478a0;
  --vf-accent-dark: #0f5d7e;
  --vf-accent-soft: #e8f3f8;
  --vf-success: #2e8a3e;
  --vf-bg-soft: #f6f7fa;
  --vf-bg-hero: linear-gradient(180deg, #ffffff 0%, #eef4f7 100%);
  --vf-text-strong: #14213d;
  --vf-text-muted: #4a5567;
}

body { background: #fff; color: #1c1c1c; margin: 0; padding: 0; }

main {
  /* override Pico's default container styling on <main> so sections
     peuvent peindre des fonds pleine largeur : et Pico applique aussi
     un padding-block ≈ 4rem qui ajoute du blanc inutile en haut/bas
     de la landing : on l'annule ici. */
  background: transparent;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
}

/* ── HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid #e9ecf1;
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--vf-text-strong);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-header nav a {
  color: var(--vf-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-header nav a:hover {
  color: var(--vf-accent-dark);
}
.site-header .login-link {
  border-left: 1px solid #e9ecf1;
  padding-left: 1.25rem;
}
.cta-small {
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem !important;
  margin: 0;
  background: var(--vf-accent) !important;
  border-color: var(--vf-accent) !important;
  color: #fff !important;
}
.cta-small:hover {
  background: var(--vf-accent-dark) !important;
  border-color: var(--vf-accent-dark) !important;
  color: #fff !important;
}

/* Hide some nav items on mobile */
@media (max-width: 700px) {
  .site-header nav a:not(.cta-small):not(.login-link) { display: none; }
}

/* ── HERO ───────────────────────────────────────────────────────────── */
/* Pico v2 applique margin-block-start sur <section> et margin-top sur <p>,
   ce qui ajoute ~60-80px de blanc sous le header avant l'eyebrow. Reset. */
section { margin: 0; }
.hero > .container > :first-child { margin-top: 0; }

.hero {
  background: var(--vf-bg-hero);
  padding: 1.5rem 0 2.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero { padding: 2rem 0 3rem; }
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  /* Petit texte (12px) → AA exige 4.5:1, on utilise --vf-accent-dark. */
  color: var(--vf-accent-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--vf-text-strong);
  margin: 0 0 0.85rem;
  font-weight: 750;
}
.hero .lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--vf-text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.cta-primary {
  background: var(--vf-accent) !important;
  border-color: var(--vf-accent) !important;
  color: #fff !important;
  font-weight: 600;
  margin: 0;
}
.cta-primary:hover {
  background: var(--vf-accent-dark) !important;
  border-color: var(--vf-accent-dark) !important;
}
.cta-ghost {
  background: transparent !important;
  border: 1px solid #cdd5e0 !important;
  color: var(--vf-text-strong) !important;
  margin: 0;
}
.cta-ghost:hover {
  background: #fff !important;
  border-color: var(--vf-accent) !important;
  color: var(--vf-accent-dark) !important;
}
.cta-primary.block {
  width: 100%;
  display: block;
  text-align: center;
}
.trust-line {
  font-size: 0.85rem;
  color: var(--vf-text-muted);
  margin-top: 0.6rem;
}

/* ── SECTION COMMUNS ────────────────────────────────────────────────── */
section { padding: 2.75rem 0; }
@media (min-width: 768px) {
  section { padding: 3.25rem 0; }
}
section h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--vf-text-strong);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 700;
}
.section-lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.75rem;
  color: var(--vf-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* ── DÉMO INTERACTIVE ────────────────────────────────────────────────── */
.demo-section {
  background: linear-gradient(180deg, #ffffff 0%, #eef4f7 100%);
  text-align: center;
  padding: 2.75rem 0 3rem;
  border-top: 1px solid #eef0f4;
}
@media (min-width: 768px) {
  .demo-section { padding: 3.25rem 0 3.5rem; }
}
.demo-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0.85rem;
  max-width: 780px;
}
.demo-chip {
  background: #fff;
  border: 1px solid #cdd5e0;
  color: var(--vf-text-strong);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin: 0;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04);
}
.demo-chip:hover {
  border-color: var(--vf-accent);
  color: var(--vf-accent-dark);
  transform: translateY(-1px);
}
.demo-chips-label {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--vf-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.demo-textarea-label {
  display: block;
  max-width: 720px;
  margin: 0.25rem auto 0.85rem;
  text-align: left;
}
.demo-textarea-label > span {
  display: block;
  font-size: 0.82rem;
  color: var(--vf-text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.demo-textarea-label textarea {
  width: 100%;
  border: 1px solid #cdd5e0;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  line-height: 1.45;
  font-family: inherit;
  color: var(--vf-text-strong);
  resize: vertical;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.03);
}
.demo-textarea-label textarea:focus {
  outline: none;
  border-color: var(--vf-accent);
  box-shadow: 0 0 0 3px rgba(20, 120, 160, 0.18);
}
.demo-form-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.demo-form-actions button { margin: 0; }
.demo-source {
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--vf-text-muted);
  font-size: 0.9rem;
}
.demo-status {
  text-align: center;
  font-size: 0.92rem;
  margin-top: 0.5rem;
  min-height: 1.5rem;
}
.demo-result {
  max-width: 720px;
  margin: 1.25rem auto 0;
  text-align: left;
}
.demo-pdf {
  background: #fff;
  border: 1px solid #e9ecf1;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(20, 33, 61, 0.06);
}
.demo-pdf header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--vf-accent);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.demo-pdf header strong {
  font-size: 1.25rem;
  color: var(--vf-accent);
  letter-spacing: 0.04em;
}
.demo-pdf table { width: 100%; font-size: 0.9rem; margin: 0 0 0.5rem; }
.demo-pdf th, .demo-pdf td { padding: 0.4rem 0.5rem; }
.demo-pdf th { background: #eef4f7; }
.demo-pdf .num { text-align: right; }
.demo-pdf tfoot th, .demo-pdf tfoot td { font-size: 0.92rem; }
.demo-cta-after {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--vf-bg-soft);
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ── HOW IT WORKS ───────────────────────────────────────────────────── */
.how { background: #fff; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.step {
  background: var(--vf-bg-soft);
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 12px;
  position: relative;
  border: 1px solid #e9ecf1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.06);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vf-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(20, 120, 160, 0.28);
}
.step h3 {
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
  color: var(--vf-text-strong);
  font-weight: 650;
}
.step p { color: var(--vf-text-muted); margin: 0 0 0.4rem; font-size: 0.95rem; line-height: 1.5; }
.step blockquote {
  margin: 0.6rem 0 0;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border-left: 3px solid var(--vf-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: #2a2a2a;
  border-radius: 4px;
  line-height: 1.45;
}

/* ── FEATURES ───────────────────────────────────────────────────────── */
.features { background: var(--vf-bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.feature {
  background: #fff;
  padding: 1.25rem 1.25rem 1.3rem;
  border-radius: 12px;
  border: 1px solid #e9ecf1;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 33, 61, 0.06);
  border-color: #dde3ed;
}
.feature-icon { font-size: 1.6rem; margin-bottom: 0.35rem; line-height: 1; }
.feature h3 {
  font-size: 1.02rem;
  margin: 0 0 0.3rem;
  color: var(--vf-text-strong);
  font-weight: 650;
}
.feature p { margin: 0; color: var(--vf-text-muted); font-size: 0.92rem; line-height: 1.45; }

/* ── AUDIENCE ───────────────────────────────────────────────────────── */
.audience { background: #fff; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-top: 1.25rem;
}
@media (min-width: 560px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .audience-grid { grid-template-columns: repeat(4, 1fr); gap: 0.65rem; } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(8, 1fr); } }
.audience article {
  text-align: center;
  background: var(--vf-bg-soft);
  padding: 0.85rem 0.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vf-text-strong);
  border: 1px solid #eef0f4;
  transition: background 0.15s ease, transform 0.15s ease;
}
.audience article:hover {
  background: #fff;
  border-color: var(--vf-accent);
  transform: translateY(-1px);
}
.audience article span {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  line-height: 1;
}

/* ── PRICING ────────────────────────────────────────────────────────── */
.pricing { background: var(--vf-bg-soft); }
.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 1.6rem 1.6rem 1.75rem;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(20, 33, 61, 0.09);
  border: 1px solid #e9ecf1;
}
.pricing-card header { text-align: center; margin-bottom: 1.1rem; padding: 0; }
.pricing-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Texte plein largeur sur fond blanc → AA exige 4.5:1 ; on prend la
     variante --vf-accent-dark (~6.4:1). */
  color: var(--vf-accent-dark);
  margin: 0 0 0.5rem;
}
.price { margin: 0; }
.price .amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--vf-text-strong);
}
.price .period {
  color: var(--vf-text-muted);
  margin-left: 0.25rem;
}
.tagline { color: var(--vf-text-muted); font-size: 0.9rem; margin: 0.4rem 0 0; }

/* Toggle Mensuel / Annuel sur la pricing card */
.period-toggle {
  display: inline-flex;
  background: var(--vf-bg-soft);
  padding: 0.25rem;
  border-radius: 999px;
  margin: 0.5rem auto 1rem;
  gap: 0.25rem;
}
.period-btn {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--vf-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.period-btn:hover {
  color: var(--vf-text-strong);
}
.period-btn.is-active {
  background: #fff;
  color: var(--vf-text-strong);
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.08);
}
.save-badge {
  background: var(--vf-success);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}
.pricing-features li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f3f7;
  font-size: 0.92rem;
  line-height: 1.4;
}
.pricing-features li:last-child { border: none; }
.overage {
  background: var(--vf-bg-soft);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--vf-text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.45;
}
.cta-sub { text-align: center; font-size: 0.85rem; color: var(--vf-text-muted); margin-top: 0.5rem; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { background: var(--vf-bg-soft); }
.faq .container > h2 { margin-bottom: 1.5rem; }
.faq details {
  background: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 0.45rem;
  border: 1px solid #e9ecf1;
  transition: border-color 0.15s ease;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.faq details[open] { border-color: #b9d4e0; box-shadow: 0 2px 8px rgba(20, 33, 61, 0.04); }
.faq summary {
  font-weight: 600;
  color: var(--vf-text-strong);
  cursor: pointer;
  font-size: 0.96rem;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vf-accent-dark);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq p { margin: 0; color: var(--vf-text-muted); line-height: 1.55; font-size: 0.92rem; }

/* ── FINAL CTA ──────────────────────────────────────────────────────── */
.final-cta {
  background: linear-gradient(135deg, #14213d 0%, #1f3056 100%);
  color: #fff;
  text-align: center;
  padding: 2.5rem 0 2.75rem;
}
@media (min-width: 768px) {
  .final-cta { padding: 3rem 0 3.25rem; }
}
.final-cta h2 { color: #fff; margin-bottom: 0.5rem; }
.final-cta p { color: #cdd5e0; margin: 0 0 1.25rem; font-size: 1rem; }
.final-cta .cta-primary {
  background: #fff !important;
  color: var(--vf-text-strong) !important;
  border-color: #fff !important;
}
.final-cta .cta-primary:hover {
  background: var(--vf-accent) !important;
  color: #fff !important;
  border-color: var(--vf-accent) !important;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid #e9ecf1;
  padding: 2rem 0;
  margin-top: 0;
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--vf-text-muted);
}
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a {
  color: var(--vf-text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--vf-accent-dark); }
