/* =========================================================================
   Site vitrine FleetTrak — refonte « moderne / audacieux & graphique ».
   Dégradé de marque bleu -> indigo -> violet conservé. Titres XXL, géométrie,
   accents techniques en mono SYSTÈME (aucune police externe). Inter reste
   auto-hébergée (souveraineté / RGPD : aucun appel à Google). Thème clair/sombre.
   ========================================================================= */

/* ---------- Police Inter, auto-hebergee (souverainete / RGPD) ----------
   Servie en local depuis static/fonts/ : aucun appel a fonts.gstatic.com. */
@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: #f5f6fb;
  --bg-2: #eef0f7;
  --card: #ffffff;
  --ink: #0d1020;
  --ink-soft: #2a3047;
  --muted: #5b6478;
  --muted-2: #8a93a8;
  --line: #e7e9f3;
  --line-strong: #d7dbea;
  --primary: #6366f1;
  --primary-ink: #4f46e5;
  --panel-soft: linear-gradient(150deg, #eef2ff, #faf5ff);
  --ico-soft: linear-gradient(135deg, #eef2ff, #faf5ff);
  --ico-border: #eceefb;

  /* Identité de marque : dégradé bleu -> indigo -> violet, réutilisé partout. */
  --grad: linear-gradient(135deg, #3b82f6, #6366f1 55%, #8b5cf6);
  --grad-text: linear-gradient(115deg, #3b82f6, #6366f1 50%, #8b5cf6);

  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 20px;
  --radius-sm: 13px;
  --shadow-card: 0 1px 2px rgba(13,16,32,.04), 0 12px 30px -22px rgba(13,16,32,.28);
  --shadow-lift: 0 26px 50px -26px rgba(13,16,32,.32);
  --shadow-grad: 0 16px 34px -14px rgba(99,102,241,.85);
}
:root[data-theme="dark"] {
  --bg: #0a0e1c;
  --bg-2: #0d1224;
  --card: #141a2e;
  --ink: #eef1f8;
  --ink-soft: #c7cde0;
  --muted: #9aa3b8;
  --muted-2: #79839b;
  --line: #26304a;
  --line-strong: #33405e;
  --primary: #818cf8;
  --primary-ink: #a5b4fc;
  --panel-soft: linear-gradient(150deg, #161e3a, #221a3d);
  --ico-soft: linear-gradient(135deg, #1a2244, #241a3d);
  --ico-border: #2c365280;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -20px rgba(0,0,0,.7);
  --shadow-lift: 0 26px 50px -24px rgba(0,0,0,.75);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
::selection { background: rgba(99,102,241,.22); }

.muted { color: var(--muted); }
.center { text-align: center; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--mono); }

/* ---------- Eyebrow (label technique mono) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 8px 14px; border-radius: 999px;
}
.eyebrow-plain {
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
}

/* ---------- Topbar ---------- */
/* Navbar flottante : détachée du bord, en verre dépoli, ne prend pas toute la largeur. */
.topbar {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0;
  width: calc(100% - 28px);
  max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 58%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: var(--shadow-card);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px; }
.brand span {
  font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-logo { width: 34px; height: 34px; display: block; flex-shrink: 0; filter: drop-shadow(0 6px 12px rgba(99,102,241,.4)); }

.tabs { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.tab {
  border: none; cursor: pointer; padding: 8px 12px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 14px; white-space: nowrap;
  color: var(--muted); background: transparent;
  transition: color .15s, background .15s, transform .12s;
}
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--primary) 9%, transparent); transform: translateY(-1px); }
.tab.active {
  color: #fff; background: var(--grad);
  box-shadow: 0 10px 22px -10px rgba(99,102,241,.85);
}
.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: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .12s;
}
.theme-toggle:hover { background: color-mix(in srgb, var(--primary) 10%, var(--card)); transform: translateY(-1px); }

/* ---------- Menu mobile ---------- */
.menu-toggle {
  display: none; border: 1px solid var(--line); background: var(--card); cursor: pointer;
  width: 40px; height: 40px; border-radius: 11px; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; flex-shrink: 0;
}
.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
}

/* ---------- Boutons ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: 15px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  transition: border-color .15s, color .15s, background .15s, transform .12s, box-shadow .15s, filter .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary-ink); transform: translateY(-2px); }
.btn.primary {
  border-color: transparent; color: #fff; background: var(--grad);
  box-shadow: var(--shadow-grad);
}
.btn.primary:hover { filter: brightness(1.07); transform: translateY(-2px); color: #fff; box-shadow: 0 22px 44px -14px rgba(99,102,241,1); }
.btn.lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 10px 17px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
/* boutons sur fond dégradé (bandeaux CTA) */
.btn.on-grad { background: #fff; color: var(--primary-ink); border-color: transparent; box-shadow: 0 14px 30px -12px rgba(13,16,32,.4); }
.btn.on-grad:hover { color: var(--primary-ink); transform: translateY(-2px); }
.btn.ghost {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: #fff;
}
.btn.ghost:hover { background: rgba(255,255,255,.24); color: #fff; border-color: rgba(255,255,255,.7); transform: translateY(-2px); }

/* ---------- Layout sections ---------- */
main { display: block; }
.section { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 8vw, 108px) 32px 0; }
.section.tight { padding-top: clamp(40px, 5vw, 64px); }
.section.end { padding-bottom: clamp(56px, 7vw, 90px); }
.section-head {
  max-width: 660px; margin: 0 auto 44px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.04; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Page head (sous-pages) ---------- */
.page-head {
  max-width: 1100px; margin: 0 auto; padding: clamp(56px, 7vw, 92px) 32px 0;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.page-head h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 580px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; pointer-events: none; border-radius: 50%; filter: blur(30px);
}
.hero-glow.a { top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(139,92,246,.28), transparent 62%); }
.hero-glow.b { top: 60px; left: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59,130,246,.22), transparent 62%); }
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 32px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-copy h1 { font-size: clamp(44px, 6.4vw, 86px); font-weight: 800; line-height: .96; letter-spacing: -.035em; }
.hero-copy .sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-trust { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 4px; }
.hero-trust span { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: -6% -8% -10% -4%; border-radius: 28px;
  background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(139,92,246,.25)); filter: blur(28px);
}
.hero-visual .frame { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }

/* ---------- Cadre « navigateur » ---------- */
.frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 44px 90px -34px rgba(13,16,32,.42), 0 14px 34px -14px rgba(13,16,32,.2);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg-2) 60%, var(--card));
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.url-pill {
  margin-left: 10px; font-family: var(--mono); font-weight: 500; font-size: 11.5px;
  color: var(--muted-2); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px;
}
.frame img { display: block; width: 100%; height: auto; }

/* ---------- Pastilles flottantes ---------- */
.chip {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 15px; box-shadow: 0 18px 38px -16px rgba(13,16,32,.4);
  display: flex; align-items: center; gap: 10px;
}
.chip .ico { font-size: 18px; }
.chip .big { font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: -.02em; }
.chip .big.compact { font-size: 15px; line-height: 1.05; }
.chip .lbl { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.chip.tr { top: -22px; right: -10px; }
.chip.bl { bottom: -20px; left: -16px; }

/* ---------- Bandeau métriques (sombre) ---------- */
.metrics-band { max-width: 1200px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 32px; }
.metrics-inner {
  position: relative; overflow: hidden; background: #0d1020; border-radius: 26px;
  padding: clamp(34px, 4vw, 52px) clamp(28px, 4vw, 56px);
  box-shadow: 0 30px 70px -34px rgba(13,16,32,.6);
}
.metrics-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.metrics-inner::after {
  content: ""; position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.4), transparent 60%); filter: blur(24px);
}
.metrics { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-val { font-weight: 800; font-size: clamp(40px, 5vw, 58px); line-height: 1; color: #fff; letter-spacing: -.03em; }
.metric-val.grad { background: linear-gradient(115deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #9aa3b8; }

/* ---------- Grille fonctionnalités ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 13px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.feature-card .top { display: flex; align-items: center; justify-content: space-between; }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--ico-soft); border: 1px solid var(--ico-border);
}
.feature-num { font-family: var(--mono); font-weight: 700; font-size: 15px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.feature-card.compact { padding: 26px; }
.feature-card.compact .feature-ico { width: 48px; height: 48px; border-radius: 13px; font-size: 24px; }
.feature-card.compact h3 { font-size: 18px; }
.feature-card.compact p { font-size: 14.5px; }

.cta-row { text-align: center; margin-top: 34px; }
.cta-row.tight { margin-top: 18px; }

/* ---------- Liste à coches ---------- */
.check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--grad);
}
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 24px; }
.check-item { display: flex; align-items: flex-start; gap: 11px; font-weight: 500; font-size: 15px; color: var(--ink-soft); }

/* ---------- Solutions (trio) ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.solution-card {
  text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.sol-thumb { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ico-soft); }
.sol-thumb img { display: block; width: 100%; height: 158px; object-fit: cover; object-position: top left; }
.solution-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 9px; }
.solution-card .head { display: flex; align-items: center; gap: 11px; }
.solution-card .head img { width: 34px; height: 34px; display: block; filter: drop-shadow(0 6px 12px rgba(99,102,241,.35)); }
.solution-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.solution-card p { color: var(--muted); font-size: 15px; }
.sol-badge {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, transparent);
  border-radius: 999px; padding: 4px 10px;
}

/* ---------- Solutions (lignes détaillées) ---------- */
.solution-rows { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 32px; display: flex; flex-direction: column; gap: 24px; }
.solution-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 52px); align-items: center;
}
.solution-row .info { display: flex; flex-direction: column; gap: 16px; }
.solution-row .head { display: flex; align-items: center; gap: 13px; }
.solution-row .head img { width: 46px; height: 46px; display: block; filter: drop-shadow(0 8px 16px rgba(99,102,241,.4)); }
.solution-row h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.025em; }
.solution-row .url { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.solution-row .tagline { color: var(--muted); font-size: 16px; }
.sol-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 11px 20px; }
.sol-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.sol-points .check { width: 21px; height: 21px; border-radius: 7px; font-size: 11px; }
.solution-row .frame { box-shadow: 0 34px 70px -30px rgba(13,16,32,.4); }

/* ---------- Sécurité + souveraineté ---------- */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.panel { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(30px, 3vw, 42px); display: flex; flex-direction: column; gap: 16px; }
.panel > * { position: relative; }
.panel .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.panel-dark { background: #0d1020; color: #fff; }
.panel-dark .blob { top: -90px; left: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(99,102,241,.45), transparent 62%); filter: blur(20px); }
.panel-dark h3 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.panel-dark p { color: #aeb6c8; font-size: 15px; line-height: 1.6; }
.panel-dark .eyebrow-plain { color: #a78bfa; }
.panel-soft { background: var(--panel-soft); border: 1px solid var(--line); }
.panel-soft .blob { bottom: -90px; right: -50px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,.22), transparent 62%); filter: blur(18px); }
.panel-soft h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.panel-soft p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.panel .ico-big { font-size: 42px; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.chip-tag { font-family: var(--mono); font-size: 11.5px; border-radius: 999px; padding: 7px 13px; }
.panel-dark .chip-tag { color: #dfe3ee; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.panel-soft .chip-tag { color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); }

/* ---------- Bandeau CTA (dégradé) ---------- */
.cta-band { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 8vw, 108px) 32px clamp(56px, 7vw, 90px); }
.cta-band.flush-top { padding-top: 0; }
.cta-inner {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(44px, 5vw, 72px) 32px;
  text-align: center; background: var(--grad); box-shadow: 0 30px 70px -28px rgba(99,102,241,.8);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 26px 26px;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.cta-inner p { color: rgba(255,255,255,.92); font-size: 17px; max-width: 520px; }

/* ---------- Tarifs ---------- */
.pricing-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
}
.price-card.featured {
  border: 2px solid transparent; outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  outline-offset: -1px; box-shadow: 0 30px 64px -28px rgba(99,102,241,.6); transform: translateY(-8px);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--grad); border-radius: 999px; padding: 6px 15px;
  box-shadow: 0 10px 22px -10px rgba(99,102,241,.9); white-space: nowrap;
}
.price-card .label { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.price-range { color: var(--muted-2); font-size: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; }
.price-num { font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-unit { color: var(--muted-2); font-size: 13.5px; }
.price-annual { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.price-annual .pct {
  font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 11%, transparent); border-radius: 999px; padding: 3px 9px;
}
.price-blurb { color: var(--muted); font-size: 14.5px; }
.price-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.price-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.price-points .check { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted-2); font-size: 13.5px; margin: 26px auto 0; max-width: 760px; }
.price-note strong { color: var(--muted); }

/* ---------- Calculateur ---------- */
.calc-wrap { max-width: 860px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) 32px 0; }
.calc-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-card); }
.calc-card .section-head { margin-bottom: 26px; }
.calc-card .section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.calc-body { display: flex; flex-direction: column; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 14px; }
.calc-field input {
  font: inherit; font-weight: 600; padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); width: 100%;
}
.calc-field input:focus { outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent); border-color: transparent; }
.calc-slider { width: 100%; accent-color: var(--primary); cursor: pointer; }
.calc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.calc-res { text-align: center; padding: 20px; border-radius: 16px; background: var(--ico-soft); border: 1px solid var(--ico-border); }
.calc-res-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.calc-res-val { font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-note { text-align: center; color: var(--muted-2); font-size: 13px; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact-grid { max-width: 1080px; margin: 0 auto; padding: clamp(56px, 7vw, 92px) 32px clamp(56px, 7vw, 90px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: .99; letter-spacing: -.035em; }
.contact-info p { color: var(--muted); font-size: 17px; max-width: 420px; }
.contact-points { display: flex; flex-direction: column; gap: 13px; margin-top: 8px; }
.contact-points .check-item { font-size: 15px; align-items: center; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow-card); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent); border-color: transparent; }
.form-ok { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; }
.form-ok .ico { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--ico-soft); border: 1px solid var(--ico-border); }
.form-ok h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.form-ok p { color: var(--muted); font-size: 15px; max-width: 340px; }
.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 .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; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: clamp(40px, 5vw, 72px); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 34px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-weight: 800; font-size: 18px; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--primary); }
.footer-legal-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px 30px; }
.footer-legal { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: .02em; }

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(56px,7vw,92px) 32px clamp(40px,5vw,64px); }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-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; }

/* ---------- Positionnement (accueil / comparatif) ---------- */
.position-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.position-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
}
.position-card h3 { font-size: 18px; margin: 12px 0 8px; }
.position-card.featured {
  border: 2px solid transparent; outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  outline-offset: -1px; box-shadow: 0 26px 54px -26px rgba(99,102,241,.55); transform: translateY(-6px);
}
.position-card .price-flag { top: -13px; }

/* ---------- Tableau comparatif ---------- */
.table-wrap { max-width: 1080px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.compare-table tbody td:first-child { color: var(--ink-soft); font-weight: 600; }
.compare-table td.highlight, .compare-table th.highlight { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--ink); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Calculateur : toggle engagement ---------- */
.calc-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.calc-toggle input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ---------- Animations ---------- */
@keyframes page-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float-glow { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) scale(1.03); } }

.page-enter { animation: page-fade-in .5s cubic-bezier(.16,1,.3,1) both; }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in-view {
  animation: reveal-up .6s cubic-bezier(.16,1,.3,1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.hero-glow, .glow, .frame .blob, .panel .blob { animation: float-glow 9s ease-in-out infinite; }
.hero-glow.b { animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .page-enter, .reveal, .reveal.in-view, .hero-glow, .glow, .panel .blob { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Utilitaires ---------- */
.mt-sm { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual .frame { transform: none; }
  .hero-visual { margin-top: 8px; }
}
@media (max-width: 680px) {
  .tabs { display: none; }
  .hide-mobile { display: none; }
  .menu-toggle { display: flex; }
  .topbar { width: calc(100% - 20px); padding: 8px 10px 8px 14px; }
  .brand span { font-size: 18px; }

  .mobile-menu {
    position: fixed; top: 78px; left: 10px; right: 10px; z-index: 49;
    display: flex; flex-direction: column; gap: 4px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lift);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .28s cubic-bezier(.16,1,.3,1), opacity .2s;
  }
  .mobile-menu.open { max-height: 70vh; opacity: 1; pointer-events: auto; overflow-y: auto; }
  .mobile-link {
    display: block; padding: 12px 14px; border-radius: 12px;
    font-weight: 600; font-size: 15px; color: var(--ink-soft);
  }
  .mobile-link:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
  .mobile-link.active { color: #fff; background: var(--grad); }

  .form-row { grid-template-columns: 1fr; }
  .legal-card { padding: 26px 22px; }
}

/* ============ LIGHTBOX (agrandissement des captures) ============ */
img.theme-shot { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin; cursor: zoom-out;
  background: color-mix(in srgb, #05070d 78%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; transition: opacity .22s ease;
}
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: scale(.96); transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.lightbox.open img { transform: scale(1); }
