/* =========================================================================
   Site vitrine FleetTrak — reprend l'identite visuelle de l'application :
   memes jetons de couleur, degrade de marque bleu -> indigo -> violet,
   police Inter, halos colores, cartes a ombre douce, thème clair/sombre.
   ========================================================================= */

/* ---------- Police Inter, auto-hebergee (souverainete / RGPD) ----------
   Inter est une fonte variable (graisses 100->900 dans un seul fichier).
   Servie en local depuis static/fonts/ : aucun appel a fonts.gstatic.com,
   donc aucune transmission d'IP visiteur a Google. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f3f5fb;
  --card: #ffffff;
  --ink: #18213a;
  --muted: #6b7689;
  --line: #e7eaf3;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --green: #059669;
  --green-bg: #d1fae5;
  --red: #e11d48;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
  /* Identité « startup » : dégradé de marque + halos colorés réutilisés partout. */
  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --brand-grad-soft: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  --accent: #8b5cf6;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-lift: 0 12px 30px -8px rgba(79,70,229,.35);
  --shadow-card: 0 1px 2px rgba(16,24,40,.05), 0 10px 24px -16px rgba(24,33,58,.30);
}
:root[data-theme="dark"] {
  --bg: #0b1020;
  --card: #151c2e;
  --ink: #e6eaf2;
  --muted: #93a0b5;
  --line: #283248;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --green: #34d399; --green-bg: #0c3a2c;
  --red: #fb7185;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --brand-grad-soft: linear-gradient(135deg, #1b2440 0%, #241a3d 100%);
  --shadow-lift: 0 14px 34px -10px rgba(0,0,0,.6);
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -18px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 110% -8%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(800px 400px at -10% 0%, rgba(59,130,246,.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -.6px; line-height: 1.12; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Topbar (reprise de l'app) ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 0 24px; height: 64px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 12px; }
.brand span {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-logo { width: 32px; height: 32px; display: block; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(99,102,241,.35)); }

.tabs { display: flex; gap: 4px; }
.tab {
  border: none; background: transparent; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); transform: translateY(-1px); }
.tab.active { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-lift); }
.tab.active:hover { color: #fff; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-size: 16px; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .12s ease;
}
.theme-toggle:hover { background: color-mix(in srgb, var(--accent) 10%, var(--card)); transform: translateY(-1px); }

/* ---------- Boutons (reprise de l'app) ---------- */
.btn {
  font: inherit; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 9%, var(--card)); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(79,70,229,.6); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: var(--shadow-lift); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn.lg { padding: 13px 24px; font-size: 16px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn.ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.24); }

/* ---------- Cartes ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 26px;
}

/* ---------- Layout sections ---------- */
main { display: block; }
.section { max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.section.narrow { max-width: 760px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; display: grid; gap: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  max-width: 880px; margin: 0 auto; padding: 92px 24px 64px; text-align: center;
  display: grid; gap: 22px; justify-items: center; position: relative; z-index: 1;
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; margin: 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 13.5px; font-weight: 500; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 600px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(520px 260px at 20% 10%, rgba(59,130,246,.18), transparent 60%);
}

/* ---------- Bandeau metriques ---------- */
.band { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--brand-grad-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
}
.metric { text-align: center; }
.metric-val { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.metric-lbl { color: var(--muted); font-size: 13.5px; font-weight: 500; }

/* ---------- Grille fonctionnalites ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.feature-card { display: grid; gap: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-card h3 { font-size: 19px; font-weight: 800; }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad-soft); box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Liste a coches ---------- */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 26px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 7px; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--brand-grad);
}

/* ---------- Solutions ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card { text-align: center; display: grid; gap: 10px; justify-items: center; transition: transform .15s ease, box-shadow .15s ease; }
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.sol-logo { width: 54px; height: 54px; filter: drop-shadow(0 8px 18px rgba(99,102,241,.4)); }
.solution-card h3 { font-size: 20px; font-weight: 800; }

.solution-rows { display: grid; gap: 20px; }
.solution-row { display: grid; gap: 18px; }
.solution-row-head { display: flex; align-items: center; gap: 16px; }
.solution-row-head h2 { font-size: 24px; font-weight: 800; }
.solution-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.solution-points li { display: flex; align-items: flex-start; gap: 10px; }

/* ---------- Tarifs ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin-bottom: 22px; }
.price-card { position: relative; display: grid; gap: 14px; }
.price-card.featured {
  border-color: transparent; box-shadow: var(--shadow-lift);
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -1px;
  transform: translateY(-6px);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow-lift); white-space: nowrap;
}
.price-card h3 { font-size: 20px; font-weight: 800; }
.price-range { font-size: 13.5px; margin: -8px 0 0; }
.price-amount { display: flex; align-items: baseline; gap: 8px; }
.price-num { font-size: 46px; font-weight: 900; }
.price-unit { font-size: 14px; }
.price-annual { display: flex; align-items: center; gap: 8px; margin: -8px 0 0; color: var(--muted); }
.price-flag-annual {
  display: inline-block; background: var(--brand-grad-soft);
  color: var(--accent); font-weight: 800; font-size: 12px;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.price-blurb { font-size: 14px; margin: 0; }
.price-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.price-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* ---------- Calculateur ---------- */
.calc-card { max-width: 820px; margin: 0 auto; }
.calc-body { display: grid; gap: 20px; }
.calc-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.calc-field input, .calc-field textarea {
  font: inherit; padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%;
}
.calc-field input:focus, .calc-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-color: transparent; }
.calc-slider { width: 100%; accent-color: var(--accent); cursor: pointer; }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-res {
  text-align: center; padding: 18px; border-radius: var(--radius-sm);
  background: var(--brand-grad-soft); border: 1px solid var(--line);
}
.calc-res-lbl { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.calc-res-val { font-size: 30px; font-weight: 900; }
.calc-res-val small { font-size: 12px; font-weight: 600; margin-left: 3px; }
.calc-note { text-align: center; margin: 0; }

/* ---------- Page head (sous-pages) ---------- */
.page-head { max-width: 760px; margin: 0 auto; padding: 72px 24px 8px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.page-head h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 900; }

/* ---------- Formulaire contact ---------- */
.form-card { display: grid; gap: 0; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-ok { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 20px 0; }
.form-ok h3 { font-size: 22px; font-weight: 800; }
.form-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 18px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 500;
}
.form-alert p { margin: 0; }
.form-alert .feature-ico { font-size: 22px; line-height: 1; }
.form-alert-ok { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); color: #15803d; }
.form-alert-error { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #b91c1c; }

/* ---------- Bloc souveraineté ---------- */
.sovereignty {
  display: flex; align-items: center; gap: 28px;
  background: var(--brand-grad-soft);
}
.sov-flag { font-size: 72px; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 8px 18px rgba(99,102,241,.3)); }
.sov-body { display: grid; gap: 12px; }
.sov-body h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.sov-body p { margin: 0; }
.sov-points { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 4px; }
.sov-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}

/* ---------- Bandeau CTA ---------- */
.cta-band { margin: 40px auto 70px; max-width: 1120px; padding: 0 24px; }
.cta-inner {
  background: var(--brand-grad); color: #fff; border-radius: var(--radius);
  padding: 52px 28px; text-align: center; display: grid; gap: 16px; justify-items: center;
  box-shadow: var(--shadow-lift);
}
.cta-inner h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.cta-inner p { margin: 0; opacity: .92; max-width: 540px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 30px 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand .brand-logo { width: 26px; height: 26px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 500; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: 13px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid, .solution-grid, .pricing-grid, .check-grid { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .solution-points { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .tabs { display: none; }
  .feature-grid, .solution-grid, .pricing-grid, .check-grid, .calc-results, .form-row { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .sovereignty { flex-direction: column; text-align: center; }
  .sov-points { justify-content: center; }
}

/* ---------- Pages légales (mentions légales / confidentialité) ---------- */
.legal { max-width: 820px; }
.legal-card { padding: 36px 38px; }
.legal-card h2 {
  font-size: 19px; font-weight: 800; margin: 30px 0 10px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.legal-card h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-card p { color: var(--muted); line-height: 1.7; margin: 0 0 6px; }
.legal-card p strong { color: var(--ink); }
.legal-card a { color: var(--primary); font-weight: 600; }
.legal-list { margin: 8px 0 6px; padding-left: 20px; display: grid; gap: 6px; }
.legal-list li { color: var(--muted); line-height: 1.6; }
@media (max-width: 680px) {
  .legal-card { padding: 26px 22px; }
}
