/* ─────────────────────────────────────────────────────────────────────────
   FiscalMate site statique — design tokens alignés sur la webapp
   (cf. tailwind.config.ts : primary #2B6CB0, premium #7C3AED, surface #F0F4F8)
   Réécrit avril 2026.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Couleurs */
  --primary:        #2B6CB0;
  --primary-dark:   #22558D;
  --primary-50:     #EBF4FF;
  --primary-100:    #C3DAFE;
  --cyan:           #0BC5EA;
  --green:          #38A169;
  --premium:        #7C3AED;
  --premium-dark:   #6D28D9;
  --premium-50:     #EDE9FE;
  --secondary:      #F59E0B;

  --ink:            #091626;
  --ink-soft:       #1A3F6A;
  --ink-muted:      #6B7280;
  --surface:        #F0F4F8;
  --canvas:         #FFFFFF;
  --border:         #E2E8F0;

  --grad-brand:     linear-gradient(135deg, #2B6CB0 0%, #0BC5EA 50%, #38A169 100%);

  /* Typo */
  --font-sans:      'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:      'DM Mono', ui-monospace, monospace;

  /* Espacements & radius (alignés tailwind 2xl/3xl) */
  --r-sm:           8px;
  --r-md:           12px;
  --r-lg:           16px;
  --r-xl:           24px;

  /* Ombres */
  --shadow-card:    0 1px 3px 0 rgba(0,0,0,.06);
  --shadow-hover:   0 4px 12px 0 rgba(0,0,0,.12), 0 2px 4px -1px rgba(0,0,0,.08);
  --shadow-premium: 0 4px 20px 0 rgba(124,58,237,.25);
  --shadow-blue:    0 4px 20px 0 rgba(43,108,176,.25);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
strong { font-weight: 700; color: var(--ink); }

/* ─── Lang switcher (default FR) ────────────────────────────────────────── */
[data-lang="en"], [data-lang="nl"], [data-lang="de"] { display: none; }
body.lang-en [data-lang="en"] { display: inline; }
body.lang-en [data-lang="fr"] { display: none; }
body.lang-nl [data-lang="nl"] { display: inline; }
body.lang-nl [data-lang="fr"] { display: none; }
body.lang-de [data-lang="de"] { display: inline; }
body.lang-de [data-lang="fr"] { display: none; }

/* ─── NAV ───────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
nav.scrolled { box-shadow: var(--shadow-card); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo span { font-weight: 700; font-size: 17px; letter-spacing: -.3px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switcher {
  display: flex; gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 3px;
}
.lang-btn {
  font-size: 12px; font-weight: 600; color: var(--ink-muted);
  padding: 5px 9px; border-radius: 6px;
  transition: all .15s;
}
.lang-btn.active { background: var(--canvas); color: var(--ink); box-shadow: var(--shadow-card); }
.lang-btn:hover:not(.active) { color: var(--ink); }

.btn-cta-nav {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--canvas);
  padding: 10px 20px; border-radius: var(--r-sm);
  background: var(--primary);
  transition: background .15s, transform .15s;
}
.btn-cta-nav:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero { padding: 128px 32px 80px; }
/* Quand le bandeau disclaimer est présent, il a déjà géré le clear de la nav. */
.disclaimer-banner + .hero { padding-top: 56px; }
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--primary); padding: 6px 14px; background: var(--primary-50);
  border-radius: 100px; margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(38px, 5.5vw, 64px); font-weight: 700;
  line-height: 1.05; letter-spacing: -1.2px;
  color: var(--ink); margin-bottom: 28px;
}
.hero-title .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 20px; line-height: 1.65;
  color: var(--ink-soft);
  max-width: 680px; margin: 0 auto 40px;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.hero-fineprint {
  font-size: 13px; color: var(--ink-muted);
  letter-spacing: .2px;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--r-md);
  background: var(--primary); color: var(--canvas);
  box-shadow: var(--shadow-blue);
  transition: all .2s;
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 6px 24px 0 rgba(43,108,176,.32);
}
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border);
  transition: all .15s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 13px 8px;
  transition: color .15s;
}
.btn-ghost:hover { color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }

/* ─── SECTIONS ──────────────────────────────────────────────────────────── */
.section { padding: 96px 32px; }
.section-alt { background: var(--surface); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--primary); margin-bottom: 12px; letter-spacing: .5px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.8px;
  color: var(--ink); margin-bottom: 18px;
  max-width: 820px;
}
.section-lead {
  font-size: 19px; line-height: 1.65;
  color: var(--ink-soft);
  max-width: 720px; margin-bottom: 56px;
}

/* ─── EXPLAIN GRID (section 1) ──────────────────────────────────────────── */
.explain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.explain-card {
  background: var(--canvas); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px 30px;
  transition: transform .2s, box-shadow .2s;
}
.explain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.explain-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--primary-50); color: var(--primary);
  border-radius: 50%; font-weight: 700; font-size: 18px;
  margin-bottom: 22px;
}
.explain-card h3 {
  font-size: 21px; font-weight: 700;
  color: var(--ink); margin-bottom: 14px; line-height: 1.3;
}
.explain-card p {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-soft);
}

/* ─── DEDUCTION LIST (section 2) ────────────────────────────────────────── */
.deduction-list {
  display: flex; flex-direction: column; gap: 24px;
  margin-bottom: 56px;
}
.deduction-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 36px;
  background: var(--canvas); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px 36px;
  transition: border-color .2s, box-shadow .2s;
}
.deduction-row:hover { border-color: var(--primary-100); box-shadow: var(--shadow-card); }
.deduction-amount {
  display: flex; flex-direction: column; justify-content: center;
}
.amount-value {
  font-size: 42px; font-weight: 800;
  color: var(--green); letter-spacing: -1px; line-height: 1;
  margin-bottom: 6px;
}
.amount-label {
  font-size: 13px; color: var(--ink-muted); font-weight: 500;
}
.deduction-content h3 {
  font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px;
}
.deduction-content p {
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
}
.deductions-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 32px 36px;
  background: var(--canvas); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  flex-wrap: wrap;
}
.deductions-cta p {
  font-size: 17px; color: var(--ink-soft); flex: 1; min-width: 280px;
}

/* ─── STEPS (section 3) ─────────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: flex; flex-direction: column; gap: 36px;
}
.step {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding-bottom: 36px; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step h3 {
  display: flex; align-items: center; gap: 18px;
  font-size: 24px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--ink); color: var(--canvas);
  border-radius: 50%; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.step p {
  font-size: 18px; line-height: 1.7; color: var(--ink-soft);
  padding-left: 58px;
}

/* ─── PRICING (section 4) ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  max-width: 880px;
}
.price-card {
  background: var(--canvas); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 40px 36px;
  display: flex; flex-direction: column;
}
.price-card-premium {
  border-color: var(--premium);
  background: linear-gradient(180deg, var(--premium-50) 0%, var(--canvas) 30%);
  box-shadow: var(--shadow-premium); position: relative;
}
.badge-premium {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--canvas); background: var(--premium);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 18px;
}
.price-card h3 {
  font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 12px;
}
.price-value {
  font-size: 56px; font-weight: 800;
  color: var(--ink); letter-spacing: -2px; line-height: 1;
  margin-bottom: 8px;
}
.price-period {
  font-size: 18px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0;
}
.price-tagline {
  font-size: 16px; color: var(--ink-soft);
  margin-bottom: 12px;
}
.price-alt {
  font-size: 15px; font-weight: 600; color: var(--cyan);
  margin-bottom: 32px;
}
.price-features {
  list-style: none; flex: 1;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 32px;
}
.price-features li {
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  padding-left: 28px; position: relative;
}
.price-features li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  color: var(--green); font-weight: 700; font-size: 17px;
}
.price-features li.excluded {
  color: var(--ink-muted); opacity: .55;
}
.price-features li.excluded::before {
  content: '—'; color: var(--ink-muted); font-weight: 600;
}
.price-card-premium .btn-primary { background: var(--premium); box-shadow: var(--shadow-premium); }
.price-card-premium .btn-primary:hover { background: var(--premium-dark); }
.price-fineprint {
  font-size: 13px; color: var(--ink-muted);
  margin-top: 16px; text-align: center; line-height: 1.6;
}

/* ─── CTA FINALE ────────────────────────────────────────────────────────── */
.cta-final {
  padding: 96px 32px;
  background: var(--ink);
  color: var(--canvas);
  text-align: center;
}
.cta-final-inner { max-width: 720px; margin: 0 auto; }
.cta-final h2 {
  font-size: clamp(34px, 4.5vw, 48px); font-weight: 700;
  line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 20px;
}
.cta-final p {
  font-size: 19px; line-height: 1.65;
  color: rgba(255,255,255,.75); margin-bottom: 36px;
}
.btn-cta-final {
  background: var(--canvas); color: var(--ink); box-shadow: 0 4px 24px rgba(255,255,255,.18);
}
.btn-cta-final:hover { background: var(--canvas); color: var(--primary); transform: translateY(-2px); }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  padding: 64px 32px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 64px;
  margin-bottom: 56px;
}
.footer-brand .nav-logo span { font-size: 18px; }
.footer-tagline {
  font-size: 15px; color: var(--ink-muted);
  margin-top: 14px; max-width: 280px; line-height: 1.6;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--ink-soft);
  padding: 5px 0; transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 28px; border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 13px; color: var(--ink-muted); line-height: 1.6;
}

/* ─── DISCLAIMER (page-wide) ────────────────────────────────────────────── */
.disclaimer-banner {
  background: #FEF3C7; border-bottom: 1px solid #FCD34D;
  padding: 10px 32px;
  font-size: 13px; color: #92400E; text-align: center;
  margin-top: 68px;
}
.disclaimer-inline {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--r-md); padding: 16px 20px;
  font-size: 14px; color: var(--ink-muted); line-height: 1.6;
  margin: 32px auto; max-width: 760px;
}
.disclaimer-inline strong { color: var(--ink-soft); }

/* ─── PAGE INTERNE (privacy, terms, etc.) ───────────────────────────────── */
.page-content {
  max-width: 760px; margin: 0 auto;
  padding: 96px 32px 64px;
  font-size: 17px; line-height: 1.75; color: var(--ink-soft);
}
.page-content h1 {
  font-size: clamp(32px, 4vw, 44px); font-weight: 700;
  color: var(--ink); margin-bottom: 12px; letter-spacing: -.8px;
}
.page-content .lead {
  font-size: 19px; color: var(--ink-soft); margin-bottom: 40px;
}
.page-content h2 {
  font-size: 24px; font-weight: 700; color: var(--ink);
  margin: 40px 0 14px; letter-spacing: -.4px;
}
.page-content h3 {
  font-size: 19px; font-weight: 600; color: var(--ink);
  margin: 28px 0 10px;
}
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px 24px; }
.page-content li { margin-bottom: 8px; }
.page-content a:not([class*="btn-"]) {
  color: var(--primary); border-bottom: 1px solid currentColor;
  transition: color .15s;
}
.page-content a:not([class*="btn-"]):hover { color: var(--primary-dark); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Menu déroulant mobile quand hamburger est cliqué */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px; /* hauteur du header */
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 8px 20px 16px;
    gap: 2px;
  }
  .nav-links.open li { list-style: none; }
  .nav-links.open a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  /* Animation hamburger vers X quand menu ouvert */
  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hamburger span {
    transition: transform .2s, opacity .15s;
  }

  .hero { padding: 110px 20px 64px; }
  .hero-desc { font-size: 17px; }

  .section { padding: 72px 20px; }
  .section-lead { font-size: 17px; margin-bottom: 40px; }

  .explain-grid { grid-template-columns: 1fr; gap: 18px; }

  .deduction-row {
    grid-template-columns: 1fr; gap: 14px;
    padding: 24px 22px;
  }
  .amount-value { font-size: 36px; }
  .deduction-content h3 { font-size: 19px; }
  .deduction-content p { font-size: 16px; }
  .deductions-cta { flex-direction: column; align-items: stretch; padding: 24px; }
  .deductions-cta .btn-primary { justify-content: center; }

  .steps { gap: 28px; }
  .step h3 { font-size: 20px; }
  .step p { padding-left: 0; font-size: 16px; }

  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-card { padding: 32px 26px; }

  .cta-final { padding: 72px 20px; }

  .footer { padding: 48px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .page-content { padding: 100px 20px 48px; font-size: 16px; }
}

@media (max-width: 520px) {
  .nav-right .lang-switcher { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ─── A11Y ──────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── TRANSPARENCE SECTION — "Ce que l'app ne fait pas encore" ───────────── */
.transparence-list {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 48px;
}
.transparence-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 28px;
  background: var(--canvas); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px 32px;
  transition: border-color .2s, box-shadow .2s;
}
.transparence-row:hover { border-color: var(--primary-100); box-shadow: var(--shadow-card); }
.transparence-icon {
  font-size: 42px; line-height: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 4px;
}
.transparence-content h3 {
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px; line-height: 1.3;
}
.transparence-content p {
  font-size: 16px; line-height: 1.7; color: var(--ink-soft);
}
.transparence-cta {
  padding: 28px 32px;
  background: #fafaf9; border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.transparence-cta p {
  font-size: 15px; line-height: 1.7; color: var(--ink-muted); margin: 0;
}
.transparence-cta p + p { margin-top: 16px; }
.transparence-commitment {
  padding-top: 16px; border-top: 1px solid var(--border);
  color: var(--ink-soft) !important;
}

@media (max-width: 768px) {
  .transparence-row {
    grid-template-columns: 1fr; gap: 12px;
    padding: 24px 20px;
  }
  .transparence-icon {
    font-size: 32px; padding-top: 0;
    justify-content: flex-start;
  }
  .transparence-content h3 { font-size: 18px; }
  .transparence-content p { font-size: 15px; }
}
