/* ============================================================
   TAXina — Site vitrine — design system
   Couleurs ancrées sur la marque réelle (pin degradé sarcelle→
   vert-lime du logo) et la teinte navy déjà utilisée dans les
   applications et les documents internes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0F1B2B;
  --navy-deep: #081019;
  --navy-raised: #16263C;
  --paper: #F5F7F4;
  --paper-raised: #FFFFFF;
  --ink: #12201A;
  --ink-muted: #55645C;
  --ink-faint: #8A968E;
  --emerald: #0E9F6E;
  --emerald-deep: #0B7A55;
  --lime: #4CC26A;
  --gold: #E3A73B;
  --mint: #EAF4EE;
  --line: #E1E6E0;
  --line-on-navy: rgba(242,245,243,0.14);
  --shadow: 0 20px 50px rgba(9,20,15,0.10);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
h1, h2, h3, h4 {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-deep);
}
.on-navy .eyebrow, .eyebrow.on-navy { color: var(--gold); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 12px 28px rgba(14,159,110,0.32); }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost-light { background: rgba(242,245,243,0.08); color: #F2F5F3; border-color: rgba(242,245,243,0.35); }
.btn-ghost-light:hover { background: rgba(242,245,243,0.15); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald-deep); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,247,244,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(20px,5vw,56px); max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--ink-muted); font-weight: 600; font-size: 14.5px; transition: color 0.2s; }
.nav-links a:hover { color: var(--emerald-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 62px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 24px clamp(20px,5vw,56px); gap: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.25s ease; border-top: 1px solid var(--line); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta .btn span.long { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 88% -10%, var(--mint) 0%, var(--paper) 55%);
  color: var(--ink);
  padding: 78px 0 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-bottom: 40px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(14,159,110,0.08); border: 1px solid rgba(14,159,110,0.22); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03; margin-bottom: 20px; }
.hero-copy h1 em { font-style: normal; color: var(--emerald-deep); }
.hero-copy p.lede { font-size: 17.5px; color: var(--ink-muted); max-width: 46ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust .item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-muted); }
.hero-trust .item svg { flex: none; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; display: block; }

/* ---------- Section scaffolding ---------- */
section { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin: 12px 0 14px; }
.section-head p { color: var(--ink-muted); font-size: 16px; }
.section-head.on-navy p { color: rgba(242,245,243,0.72); }
section.on-navy { background: var(--navy); color: #F2F5F3; }
section.on-emerald { background: linear-gradient(135deg, var(--emerald-deep), var(--emerald) 60%, var(--lime)); color: #fff; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; position: relative; }
.step .step-no { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; color: var(--emerald-deep); background: rgba(14,159,110,0.1); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 14.5px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(9,20,15,0.14); }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(14,159,110,0.09); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.svc-card h3 { font-size: 21px; margin-bottom: 8px; }
.svc-card p.desc { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 18px; }
.svc-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--emerald-deep); background: rgba(14,159,110,0.1); padding: 6px 12px; border-radius: 999px; }

/* ---------- Ledger / trust ---------- */
.ledger-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .ledger-wrap { grid-template-columns: 1fr; } }
.ledger-copy h2 { color: #fff; margin: 12px 0 16px; }
.ledger-copy p.lede { color: rgba(242,245,243,0.75); font-size: 16px; margin-bottom: 26px; max-width: 48ch; }
.ledger-points { display: flex; flex-direction: column; gap: 16px; }
.ledger-point { display: flex; gap: 14px; align-items: flex-start; }
.ledger-point .ico { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(76,194,106,0.16); display: flex; align-items: center; justify-content: center; }
.ledger-point .t { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.ledger-point .d { font-size: 13.5px; color: rgba(242,245,243,0.62); }

.flow { display: flex; flex-direction: column; gap: 0; }
.flow-card { display: flex; gap: 16px; align-items: center; background: rgba(242,245,243,0.05); border: 1px solid var(--line-on-navy); border-radius: var(--radius-md); padding: 18px 20px; position: relative; }
.flow-card .fnum { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; color: var(--lime); min-width: 26px; }
.flow-card .ft { font-weight: 700; font-size: 15px; }
.flow-card .fd { font-size: 13px; color: rgba(242,245,243,0.6); }
.flow-connector { width: 2px; height: 22px; background: repeating-linear-gradient(180deg, rgba(76,194,106,0.5) 0 6px, transparent 6px 12px); margin-left: 32px; }

/* ---------- Driver CTA band ---------- */
.driver-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .driver-band { grid-template-columns: 1fr; } }
.driver-copy .eyebrow.on-navy { color: rgba(255,255,255,0.85); }
.driver-copy h2 { color: #fff; margin: 12px 0 16px; }
.driver-copy p.lede { color: rgba(255,255,255,0.88); font-size: 16.5px; max-width: 46ch; margin-bottom: 26px; }
.driver-figs { display: flex; gap: 16px; flex-wrap: wrap; }
.driver-fig { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-md); padding: 16px 20px; min-width: 150px; }
.driver-fig .v { font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; color: #fff; }
.driver-fig .l { font-size: 12.5px; color: rgba(255,255,255,0.82); margin-top: 2px; }
.driver-card-art { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-lg); padding: 28px; }
.driver-card-art .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 14px; color: #fff; }
.driver-card-art .row:last-child { border-bottom: none; }
.driver-card-art .row b { font-weight: 800; }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; text-align: center; box-shadow: var(--shadow); }
.dl-icon-wrap { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 32px rgba(14,159,110,0.24); }
.dl-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dl-card h3 { font-size: 21px; margin-bottom: 8px; }
.dl-card p.desc { color: var(--ink-muted); font-size: 14px; margin-bottom: 20px; }
.dl-note { font-size: 12px; color: var(--ink-faint); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; color: var(--emerald-deep); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-muted); font-size: 14.5px; max-width: 62ch; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(242,245,243,0.72); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr; gap: 36px; margin-bottom: 46px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; color: #fff; }
.footer-col h4 { font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242,245,243,0.9); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col span { text-decoration: none; font-size: 14px; color: rgba(242,245,243,0.66); }
.footer-col a:hover { color: var(--lime); }
.footer-contact-row { display: flex; align-items: center; gap: 9px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(242,245,243,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.social-row a:hover { background: var(--emerald); }
.footer-bottom { border-top: 1px solid rgba(242,245,243,0.1); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.footer-bottom a { color: rgba(242,245,243,0.55); text-decoration: none; margin-left: 18px; }
.footer-bottom a:hover { color: var(--lime); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Utility ---------- */
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
