/* ─── Polices (hébergées localement, fichiers variables) ─────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --surface-page:   #dce3ec;
  --surface-card:   #ffffff;
  --surface-alt:    #f1f5f9;
  --border:         #e2e8f0;
  --text-primary:   #0f172a;
  --text-secondary: #64748b;
  --text-muted:     #94a3b8;
  --blue:           #2563eb;
  --blue-dark:      #1d4ed8;
  --blue-light:     #eff6ff;
  --indigo:         #4f46e5;
  --indigo-light:   #eef2ff;
  --emerald:        #10b981;
  --radius:         1rem;
  /* plan colors — générées par scripts/generate-landing-plans.js */
  --plan-free:      #16a34a;
  --plan-standard:  #2563eb;
  --plan-pro:       #d97706;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--surface-page);
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-indigo {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.btn-indigo:hover { background: #4338ca; border-color: #4338ca; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(0,0,0,.05); color: var(--text-primary); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--surface-alt); }
.btn-white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn-white:hover { background: #f0f4ff; }
.btn-green {
  background: var(--plan-free);
  color: #fff;
  border-color: var(--plan-free);
}
.btn-green:hover { background: #15803d; border-color: #15803d; }
.btn-amber {
  background: var(--plan-pro);
  color: #fff;
  border-color: var(--plan-pro);
}
.btn-amber:hover { background: #b45309; border-color: #b45309; }
.w-full { width: 100%; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(220, 227, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.08);
  overflow: hidden;
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 1.125rem;
  height: 150px;
}
.nav-actions { display: flex; align-items: flex-start; gap: 0.5rem; }
.nav-baseline {
  position: absolute;
  left: 50%;
  top: 68px;
  transform: translateX(-50%);
  font-size: calc(2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.5px;
}

/* ─── Logo ───────────────────────────────────────────────────────────────── */
.logo { font-size: 3rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.logo-s, .logo-y { color: var(--blue); }
.logo-coant { color: var(--text-primary); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 5rem;
  background: var(--surface-page);
}
.hero-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 2rem;
  padding: 0.3rem 0.875rem;
  margin-bottom: 1.25rem;
}
.hero-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.1875rem;
  color: var(--text-primary);
}
.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.hero-sub {
  font-size: 1.1875rem;
  color: var(--text-primary);
  margin-top: -0.75rem;
  margin-bottom: 2rem;
}
.hero-tarifs-link {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 150ms;
}
.hero-tarifs-link:hover { color: var(--blue-dark); }

/* ─── Hero form card ─────────────────────────────────────────────────────── */
.hero-form-wrap { display: flex; justify-content: center; }
.hero-form-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  box-shadow: 0 24px 64px -16px rgba(15, 23, 42, 0.14);
  text-align: left;
}
.hero-form-bar { height: 3px; background: linear-gradient(to right, #2563eb, #4f46e5); }
.hero-form-body { padding: 1.75rem; }
.hero-form-title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.hero-form-sub { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.hero-form-fields { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; min-width: 0; }
.hero-form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.hero-form-group label { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); }
.hero-form-group input {
  width: 100%;
  padding: 0.5625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface-alt);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
}
.hero-form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #fff;
}
.hero-form-group.has-error input { border-color: #f43f5e; }
.hero-field-error { font-size: 0.6875rem; color: #f43f5e; display: none; }
.hero-form-group.has-error .hero-field-error { display: block; }
.hero-form-submit { width: 100%; gap: 0.5rem; padding: 0.7rem 1rem; }
.hero-form-login { margin-top: 0.875rem; text-align: center; font-size: 0.8125rem; color: var(--text-muted); }
.hero-form-login a { color: var(--blue); font-weight: 500; }
.hero-form-login a:hover { text-decoration: underline; }

/* ─── Section headers ────────────────────────────────────────────────────── */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.3px;
}
.section-staircase { width: fit-content; margin: 0 auto 2.5rem; text-align: left; line-height: 1.15; }
.stair-line { display: block; }
.stair-line:nth-child(2) { margin-left: 5rem; }
.stair-line:nth-child(3) { margin-left: 10rem; }
.stair-blue { color: var(--blue); }
.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 3rem;
}

/* ─── Trust strip ────────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--surface-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-flag-svg { width: 24px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.trust-pic { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-secondary); }
.trust-detail { color: var(--text-muted); font-weight: 400; }
.trust-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-sep { display: none; }
  .trust-inner { gap: 0.75rem 1.25rem; justify-content: flex-start; }
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features {
  background: var(--surface-card);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 200ms, border-color 200ms;
}
.feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -8px rgba(15,23,42,.08);
}
.feature-card-header { display: flex; align-items: flex-end; gap: 0.875rem; margin-bottom: 1rem; }
.feature-card-header h3 { margin-bottom: 0; }
.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}
.feature-icon svg { width: 24px; height: 24px; display: block; }
.icon-bg-blue   { background: var(--blue-light); }
.icon-bg-emerald{ background: #ecfdf5; }
.icon-bg-indigo { background: var(--indigo-light); }
.icon-bg-violet { background: #f5f3ff; }
.icon-bg-amber  { background: #fffbeb; }
.icon-bg-rose   { background: #fff1f2; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.55; }
.feature-list { display: flex; flex-direction: column; gap: 0.35rem; }
.feature-list li { font-size: 0.9375rem; color: var(--text-primary); padding-left: 1rem; position: relative; }
.feature-list li::before { content: "•"; position: absolute; left: 0; color: var(--text-secondary); }

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing { padding: 5rem 0; background: var(--surface-page); scroll-margin-top: 160px; }
.pricing .section-title { margin-bottom: 3rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms, transform 200ms;
}
.pricing-card:hover { box-shadow: 0 16px 40px -8px rgba(15,23,42,.1); transform: translateY(-2px); }
.pricing-card-featured {
  border-color: var(--plan-standard);
  border-width: 2px;
  box-shadow: 0 16px 40px -8px rgba(37,99,235,.16);
  position: relative;
}
.pricing-card-free {
  border-color: var(--plan-free);
  border-width: 2px;
}
.pricing-card-premium {
  border-color: var(--plan-pro);
  border-width: 2px;
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: 99px;
  white-space: nowrap;
}
.pricing-card-body { padding: 2.25rem 1.5rem 1.25rem; flex: 1; }
.pricing-card-footer { padding: 0 1.5rem 1.5rem; }

.plan-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.75rem; text-align: center; letter-spacing: 0.08em; }
.plan-limits-list { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.plan-price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.25rem; }
.price-amount { font-size: 2.25rem; font-weight: 800; color: var(--text-primary); }
.price-green  { color: var(--plan-free); }
.price-blue   { color: var(--plan-standard); }
.price-indigo { color: var(--plan-pro); }
.price-period { font-size: 0.875rem; color: var(--text-muted); }
.plan-sub { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.plan-features { display: flex; flex-direction: column; gap: 0.625rem; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.check { color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.check-blue   { color: var(--plan-standard); }
.check-indigo { color: var(--plan-pro); }

/* ─── CTA section ────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--blue);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,.5) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(30,58,110,.8) 0%, transparent 50%);
  padding: 5rem 0;
  text-align: center;
}
.cta-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-inner p { font-size: 1.0625rem; color: rgba(255,255,255,.75); margin-bottom: 2rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--text-primary);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1rem;
}
.footer-logo { display: flex; flex-direction: column; gap: 0.25rem; }
.footer .logo-coant { color: #e2e8f0; }
.footer .logo-s, .footer .logo-y { color: #93c5fd; }
.footer-tagline { font-size: 0.8125rem; color: rgba(255,255,255,.45); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.9375rem; color: rgba(255,255,255,.6); transition: color 150ms; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.35);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-legal a { color: rgba(255,255,255,.5); transition: color 150ms; }
.footer-legal a:hover { color: #fff; }

/* ─── Pages juridiques ───────────────────────────────────────────────────── */
.legal { padding: 3rem 0 4rem; }
.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px -8px rgba(15,23,42,.12);
  padding: 2.75rem 3rem;
  color: #334155;
  font-size: 0.9688rem;
}
.legal-card h1 { font-size: 2rem; line-height: 1.2; color: var(--text-primary); margin-bottom: 0.5rem; }
.legal-version { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 2rem; }
.legal-card h2 { font-size: 1.2rem; color: var(--text-primary); margin: 2.25rem 0 0.75rem; }
.legal-card h3 { font-size: 1rem; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.legal-card p { margin-bottom: 0.9rem; }
.legal-card ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.9rem; }
.legal-card li { margin-bottom: 0.35rem; }
.legal-card strong { color: var(--text-primary); }
.legal-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal-card hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.legal-card table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.9rem; }
.legal-card th, .legal-card td { text-align: left; padding: 0.6rem 0.75rem; border: 1px solid var(--border); vertical-align: top; }
.legal-card th { background: var(--surface-alt); color: var(--text-primary); }
.legal-card blockquote {
  background: var(--surface-alt);
  border-left: 3px solid var(--blue);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.legal-card blockquote p:last-child, .legal-card blockquote ul:last-child { margin-bottom: 0; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .logo { font-size: 2rem; letter-spacing: -1px; }
  .nav-inner { height: 150px; padding-top: 1.125rem; }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 1.5rem; }
  .hero { padding-top: 1.75rem; }
  .hero-content { width: 100%; align-items: center; }
  .hero-checklist { margin: 0 auto 2.5rem; }
  .hero-checklist li { font-size: 0.9375rem; }
  .hero-sub { font-size: 0.9375rem; }
  .hero-tarifs-link { font-size: 0.9375rem; margin-bottom: 0.5rem; }
  .hero-form-card { max-width: 100%; text-align: left; }

  .section-staircase { text-align: center; }
  .section-staircase .stair-line { margin-left: 0; }

  .features-grid { grid-template-columns: 1fr; }
  .features { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .cta-section { padding: 2.5rem 0; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing { padding-top: 1.5rem; padding-bottom: 1.25rem; scroll-margin-top: 110px; }
  .pricing .section-title { margin-bottom: 1.5rem; }

  .footer-inner { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }

  .legal { padding: 1.5rem 0 2.5rem; }
  .legal .container { padding: 0 1rem; }
  .legal-card { padding: 1.75rem 1.25rem; }
  .legal-card h1 { font-size: 1.5rem; }
  .legal-card table { display: block; overflow-x: auto; }

  .nav-actions .btn-ghost { display: none; }
  .nav-baseline {
    font-size: 1rem;
    left: 1.5rem;
    transform: none;
    top: 72px;
    letter-spacing: 0;
  }
  .logo { font-size: 1.6rem; }
  .nav-inner { height: 100px; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 0.7rem 1.25rem; font-size: 0.9375rem; }
  .section-title { font-size: 1.625rem; }
  .section-staircase { font-size: 1.375rem; }
  .logo { font-size: 1.4rem; }
  .nav-inner { height: 95px; }
  .nav-baseline { font-size: 0.875rem; top: 66px; }
}
