/* Page de présentation Mecavya — fond d'asphalte, compteur qui défile, téléphones en CSS. */
:root {
  --asphalt: #14181f;
  --asphalt2: #1c222c;
  --ink: #0b1220;
  --text: #1f2937;
  --muted: #5b6780;
  --light: #eef2f6;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --grad: linear-gradient(90deg, #2563eb, #06b6d4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }

/* ---------- barre du haut ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(15, 19, 24, 0.55); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; color: #d5dbe3; font-weight: 600; font-size: 15px; }
.nav a:hover, .link:hover { color: #fff; }
.actions { display: flex; align-items: center; gap: 18px; color: #d5dbe3; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 16px; transition: transform .15s, box-shadow .15s, background .15s; border: 1.5px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.plan .btn-ghost { border-color: var(--blue); color: var(--blue); }
.plan .btn-ghost:hover { background: rgba(37, 99, 235, 0.08); }

/* ---------- asphalte : fond sombre, bitume granuleux, ligne blanche qui défile ---------- */
.asphalt { position: relative; overflow: hidden; color: #e8edf3; background:
    radial-gradient(1200px 520px at 80% -10%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(6, 182, 212, 0.18), transparent 60%),
    linear-gradient(180deg, var(--asphalt2), var(--asphalt)); }
.asphalt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.35'/></svg>"); }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55)); }
.road i { position: absolute; left: 0; right: 0; bottom: 56px; height: 8px; opacity: .8;
  background: repeating-linear-gradient(90deg, #f5f7fa 0 70px, transparent 70px 150px); animation: lane 2.4s linear infinite; }
.road.soft i { opacity: .25; }
@keyframes lane { to { background-position-x: -150px; } }
.asphalt > .wrap { position: relative; z-index: 1; }

/* ---------- héros ---------- */
.hero { padding: 132px 0 150px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; font-weight: 700; color: #dbe4ee; margin: 0 0 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 62px); font-weight: 900; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: #c7d2df; max-width: 56ch; margin: 22px 0 28px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.center-cta { justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 22px; flex-wrap: wrap; color: #b9c6d4; font-size: 14.5px; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 8px; }

/* compteur kilométrique animé */
.odo { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.odo-digits { display: inline-flex; gap: 4px; padding: 7px 9px; background: #080b0f; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; box-shadow: inset 0 0 18px rgba(6, 182, 212, .18); }
.digit { width: 30px; height: 44px; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, #1a2330, #0c1118); position: relative; }
.digit ul { list-style: none; margin: 0; padding: 0; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.digit li { height: 44px; display: grid; place-items: center; font: 800 30px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; color: #e9f7ff; text-shadow: 0 0 10px rgba(6, 182, 212, .6); }
.odo-unit { color: #9fb0c3; font-weight: 600; font-size: 14px; }

/* ---------- téléphones en CSS ---------- */
.hero-phones { position: relative; height: 560px; }
.phone { width: 270px; background: #0a0d12; border-radius: 38px; padding: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1.5px rgba(255, 255, 255, .12) inset; position: relative; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #0a0d12; border-radius: 0 0 14px 14px; z-index: 2; }
.screen { background: #f4f7fb; border-radius: 30px; min-height: 490px; padding: 38px 14px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--text); overflow: hidden; }
.hero-phones .p-front { position: absolute; right: 8%; top: 0; z-index: 2; transform: rotate(3deg); }
.hero-phones .p-back { position: absolute; left: 4%; top: 70px; transform: rotate(-6deg) scale(.92); opacity: .95; }
.app-bar { font-weight: 800; font-size: 17px; color: var(--ink); }
.km-card { background: var(--grad); color: #fff; border-radius: 18px; padding: 14px; display: grid; gap: 2px; }
.km-card small { opacity: .85; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; font-weight: 700; }
.km-card strong { font-size: 32px; letter-spacing: -0.03em; } .km-card strong span { font-size: 16px; opacity: .85; }
.km-card em { font-style: normal; font-size: 12px; opacity: .9; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-grid div { background: #fff; border-radius: 14px; padding: 10px; border: 1px solid var(--line); display: grid; } .mini-grid small { color: var(--muted); font-size: 11px; } .mini-grid b { font-size: 18px; color: var(--ink); }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 86px; background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 10px 12px 0; }
.chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.chart.wide { height: 130px; }
.rem { background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--red); display: grid; gap: 2px; }
.rem.warn { border-left-color: var(--amber); } .rem.ok { border-left-color: var(--green); }
.rem b { font-size: 13.5px; color: var(--ink); } .rem span { font-size: 12px; color: var(--muted); }
.bar-track { height: 6px; border-radius: 4px; background: #e5eaf1; margin-top: 6px; overflow: hidden; } .bar-track i { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.notif { margin-top: auto; background: rgba(20, 24, 31, .94); color: #fff; border-radius: 16px; padding: 11px 13px; display: grid; gap: 2px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.notif b { font-size: 12px; opacity: .8; } .notif span { font-size: 12.5px; }
.donut-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.donut { width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--amber) 0 92%, #8b5cf6 92% 100%); display: grid; place-items: center; position: relative; flex: none; }
.donut::before { content: ""; position: absolute; inset: 18px; background: #f4f7fb; border-radius: 50%; }
.donut b, .donut small { position: relative; display: block; text-align: center; line-height: 1.1; } .donut b { font-size: 16px; color: var(--ink); } .donut small { font-size: 10.5px; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; } .legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; } .legend b { margin-left: auto; padding-left: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; } .c1 { background: var(--amber); } .c2 { background: #8b5cf6; }
.member { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; }
.member > i { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; flex: none; }
.member div { flex: 1; display: grid; line-height: 1.25; } .member b { font-size: 13.5px; color: var(--ink); } .member span { font-size: 11.5px; color: var(--muted); }
.member em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--green); } .member em.wait { color: var(--amber); }
.screen.cam { background: #0b0f14; color: #fff; justify-content: center; align-items: center; gap: 18px; }
.viewfinder { width: 100%; aspect-ratio: 1.15; border-radius: 18px; background: radial-gradient(circle at 50% 60%, #1c3a52, #0b1a26 70%); position: relative; display: grid; place-items: center; }
.gauge { text-align: center; } .gauge span { font: 800 38px ui-monospace, Consolas, monospace; color: #bff3ff; text-shadow: 0 0 16px rgba(6, 182, 212, .8); letter-spacing: .06em; } .gauge small { display: block; color: #7fb4c8; font-weight: 700; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--cyan); } .corner.a { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; } .corner.b { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; } .corner.c { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; } .corner.d { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.ok-chip { background: rgba(16, 185, 129, .18); color: #7be7c1; border: 1px solid rgba(16, 185, 129, .4); padding: 9px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; }

/* ---------- bande de preuves ---------- */
.proof { background: var(--light); padding: 42px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.proof-grid strong { display: block; font-size: 40px; font-weight: 900; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof-grid span { color: var(--muted); font-weight: 600; font-size: 15px; }

/* ---------- fonctionnalités ---------- */
.feature { padding: 96px 0; }
.feature.alt { background: var(--light); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .copy { order: 2; } .split.reverse .visual { order: 1; }
.eyebrow { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 10px; }
.feature h2, .more h2, .pricing h2, .faq h2, .final h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; }
.copy p { color: var(--muted); font-size: 18px; margin: 16px 0; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-weight: 600; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(16, 185, 129, .15); color: var(--green); font-weight: 900; display: grid; place-items: center; font-size: 13px; }
.visual { display: grid; place-items: center; }
.visual .phone { transform: rotate(-2deg); }
.split.reverse .visual .phone { transform: rotate(2deg); }
.visual { background: radial-gradient(closest-side, rgba(37, 99, 235, .14), transparent); padding: 20px; }

/* ---------- cartes ---------- */
.more { padding: 96px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.cards article { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.cards article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .1); }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(37, 99, 235, .1); font-size: 26px; margin-bottom: 14px; }
.cards h3 { font-size: 20px; margin-bottom: 8px; } .cards p { margin: 0; color: var(--muted); }

/* ---------- tarifs ---------- */
.pricing { padding: 100px 0 150px; }
.pricing h2 { color: #fff; } .sub { color: #b9c6d4; font-size: 18px; margin: 12px 0 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
.plan { background: #fff; color: var(--text); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { transform: translateY(-14px); box-shadow: 0 30px 70px rgba(37, 99, 235, .35); border: 2px solid var(--blue); }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 14px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.plan h3 { font-size: 22px; } .price b { font-size: 40px; letter-spacing: -0.03em; color: var(--ink); } .price span { color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 9px; flex: 1; } .plan li { padding-left: 26px; position: relative; font-weight: 600; font-size: 15px; } .plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.fine { color: #9fb0c3; margin-top: 30px; font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; background: var(--light); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; margin-top: 12px; }
.faq details:first-of-type { margin-top: 34px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); } .faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- appel final ---------- */
.final { padding: 110px 0 170px; } .final h2 { color: #fff; max-width: 22ch; margin-inline: auto; } .final .lead { margin-inline: auto; margin-bottom: 30px; }

/* ---------- pied de page ---------- */
.foot { background: #0d1015; color: #aab6c4; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { color: #fff; margin-bottom: 12px; font-size: 15px; } .foot a { display: block; margin: 7px 0; } .foot a:hover { color: #fff; }
.brand.light { color: #fff; margin-bottom: 8px; }
.copy-line { text-align: center; margin: 42px 0 0; font-size: 13.5px; }

/* ---------- adaptatif ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding-top: 110px; }
  .hero-grid, .split, .plans, .cards, .foot-grid { grid-template-columns: 1fr; }
  .split.reverse .copy, .split.reverse .visual { order: initial; }
  .hero-phones { height: 520px; display: grid; place-items: center; }
  .hero-phones .p-back { display: none; } .hero-phones .p-front { position: relative; right: auto; transform: rotate(2deg); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { transform: none; }
  .actions .link { display: none; }
  .feature, .more, .faq { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { .road i { animation: none; } html { scroll-behavior: auto; } .digit ul { transition: none; } }

.referral { margin: 40px auto 0; max-width: 760px; padding: 24px 28px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); text-align: center; color: #dbe4ee; }
.referral h3 { color: #fff; font-size: 22px; margin-bottom: 8px; } .referral p { margin: 0; } .referral b { color: #7be7c1; }
