/* EvCam — site vitrine. Même direction artistique que l'application : fond #06070d, verre dépoli, dégradé violet → cyan → menthe. */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06070d;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eef0ff;
  --muted: #a3a9ca;
  --faint: #6c7298;
  --acc: #8b7bff;
  --acc-2: #4dc7ff;
  --acc-3: #35f0c3;
  --pink: #ff4d8d;
  --ok: #3ddc97;
  --warn: #ffb454;
  --grad: linear-gradient(135deg, #8b7bff 0%, #4dc7ff 58%, #35f0c3 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(139, 123, 255, 0.4); }
:focus-visible { outline: 2px solid rgba(139, 123, 255, 0.85); outline-offset: 3px; border-radius: 10px; }

/* ------------------------------------------------------------------ fond */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(139, 123, 255, 0.30), transparent 70%),
    radial-gradient(45% 40% at 92% 8%, rgba(77, 199, 255, 0.16), transparent 70%),
    radial-gradient(50% 45% at 70% 100%, rgba(53, 240, 195, 0.11), transparent 70%),
    radial-gradient(40% 35% at 0% 85%, rgba(255, 77, 141, 0.09), transparent 70%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 78%);
}

.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ------------------------------------------------------------------ navigation */
.nav {
  position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: min(var(--maxw), 100% - var(--gutter) * 2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 16px;
  border-radius: 20px; background: rgba(8, 9, 18, 0.6); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(8, 9, 18, 0.82); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; filter: drop-shadow(0 6px 14px rgba(139, 123, 255, 0.5)); }
.badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; padding: 4px 9px; border-radius: 99px; color: #07110e; background: var(--grad);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 13px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--glass-2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 17px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; border: 1px solid var(--line-2);
  background: var(--glass-2); color: var(--text); transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, filter 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary { border: 0; color: #07110e; background: var(--grad); box-shadow: 0 16px 40px -14px rgba(77, 199, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 22px 50px -14px rgba(77, 199, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 13px; gap: 8px; }
.btn.sm svg { width: 17px; height: 17px; }
.btn.github { width: 100%; background: rgba(255, 255, 255, 0.07); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--glass); border: 1px solid var(--line);
}
.eyebrow-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc-3); box-shadow: 0 0 0 4px rgba(53, 240, 195, 0.18), 0 0 14px var(--acc-3); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(53, 240, 195, 0.05), 0 0 20px var(--acc-3); } }
h1 { margin-top: 22px; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.045em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; max-width: 540px; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); }

.cta-stack { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; max-width: 470px; }
.cta-cap {
  display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.cta-cap::before, .cta-cap::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.cta-cap::after { background: linear-gradient(270deg, transparent, var(--line-2)); }
.cta-cap svg { width: 15px; height: 15px; color: var(--acc-2); }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-row .btn { padding: 0 18px; }
.cta-note { margin-top: 2px; font-size: 13px; color: var(--faint); }
.cta-note b { color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -10% -12% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 123, 255, 0.34), rgba(77, 199, 255, 0.12) 58%, transparent 78%);
}
.hero-frame { position: relative; transform-style: preserve-3d; transition: transform 0.4s var(--ease); }
.chip-float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 15px; font-size: 13.5px; font-weight: 700;
  background: rgba(10, 11, 22, 0.72); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8); animation: float 6s ease-in-out infinite;
}
.chip-float small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.chip-float .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.chip-float .dot.ok { background: var(--acc-3); box-shadow: 0 0 12px var(--acc-3); }
.chip-float.a { top: -16px; left: -22px; }
.chip-float.b { right: -18px; top: 38%; animation-delay: -2s; }
.chip-float.c { left: 4%; bottom: -18px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* ------------------------------------------------------------------ cadre de capture */
.shot {
  position: relative; width: min(100%, var(--w, 100%)); margin-inline: auto; padding: 9px; border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.shot img { width: 100%; height: auto; border-radius: 22px; background: #0a0b14; cursor: zoom-in; }
.shot figcaption { padding: 12px 10px 4px; text-align: center; font-size: 12.5px; color: var(--faint); }
.shot.glow::before {
  content: ""; position: absolute; inset: -10% -12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 123, 255, 0.2), rgba(77, 199, 255, 0.07) 60%, transparent 80%);
}

/* ------------------------------------------------------------------ bande de chiffres */
.stats { margin: 36px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 24px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 22px; font-weight: 780; letter-spacing: -0.03em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------ sections */
section { position: relative; }
.section { padding: 110px 0 20px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc-2); }
h2 { margin-top: 12px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.04em; }
.section-lead { margin-top: 16px; max-width: 640px; font-size: 18px; color: var(--muted); }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* étapes */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px 26px 30px; border-radius: 26px; background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card .num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 14px; font-weight: 800; font-size: 18px; color: #07110e; background: var(--grad);
  box-shadow: 0 12px 28px -10px rgba(77, 199, 255, 0.7);
}
.card:nth-child(2) .num { background: linear-gradient(135deg, #ff5fa2, #ff8f5f); box-shadow: 0 12px 28px -10px rgba(255, 95, 162, 0.6); }
.card:nth-child(3) .num { background: linear-gradient(135deg, #2cd9a4, #3aa8ff); }
.card h3 { font-size: 20px; font-weight: 740; letter-spacing: -0.02em; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* visite guidée */
.tour-nav { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.tour-nav a {
  padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--glass); border: 1px solid var(--line);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tour-nav a:hover { color: var(--text); background: var(--glass-2); border-color: var(--line-2); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding: 70px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature-text .idx {
  display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.feature-text .idx b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-text h3 { margin-top: 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 790; letter-spacing: -0.035em; }
.feature-text > p { margin-top: 14px; font-size: 16.5px; color: var(--muted); }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; color: #cdd1ee; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 7px; background: rgba(53, 240, 195, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335f0c3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center; border: 1px solid rgba(53, 240, 195, 0.3);
}
.ticks b { color: var(--text); font-weight: 650; }
.note {
  margin-top: 20px; padding: 13px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); background: var(--glass); border: 1px solid var(--line);
}
.note b { color: var(--text); }
.shot-stack { display: grid; gap: 22px; }

/* encadrés spéciaux (veille, micro) */
.spot {
  position: relative; margin-top: 90px; padding: clamp(28px, 4vw, 56px); border-radius: 36px; overflow: hidden;
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.16), rgba(12, 14, 34, 0.7) 45%, rgba(53, 240, 195, 0.07));
  border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.spot::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -320px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(77, 199, 255, 0.2), rgba(139, 123, 255, 0.08) 60%, transparent 80%);
}
.spot .feature { padding: 0; }
.spot .feature + .feature { border: 0; }
.spot h2 { margin-top: 10px; font-size: clamp(28px, 3.3vw, 42px); }
.timeline { position: relative; margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.timeline li {
  position: relative; padding: 18px 18px 20px; border-radius: 20px; background: rgba(6, 7, 13, 0.55); border: 1px solid var(--line); counter-increment: step; font-size: 14px; color: var(--muted);
}
.timeline li::before {
  content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 9px; font-size: 13px; font-weight: 800; color: #07110e; background: var(--grad);
}
.timeline li b { display: block; margin-bottom: 3px; font-size: 15px; color: var(--text); font-weight: 700; }
.pill-ok { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: #7cf0bd; background: rgba(61, 220, 151, 0.12); border: 1px solid rgba(61, 220, 151, 0.3); }
.pill-ok svg { width: 16px; height: 16px; }
.link { color: var(--acc-2); font-weight: 650; border-bottom: 1px solid rgba(77, 199, 255, 0.35); transition: border-color 0.2s, color 0.2s; }
.link:hover { color: #fff; border-color: #fff; }

/* compatibilité */
.chips { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span { padding: 10px 18px; border-radius: 99px; font-size: 14.5px; font-weight: 650; color: #d5d9f2; background: var(--glass); border: 1px solid var(--line); }
.compat-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compat-grid .card h3 { font-size: 18px; }

/* téléchargement */
.download {
  margin-top: 110px; padding: clamp(32px, 5vw, 72px) clamp(22px, 4vw, 56px); border-radius: 40px; text-align: center; overflow: hidden; position: relative;
  background: radial-gradient(70% 90% at 50% 0%, rgba(139, 123, 255, 0.28), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-2);
}
.download .cta-stack { margin: 34px auto 0; text-align: left; }
.dl-help { margin: 44px auto 0; max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.dl-help .card { padding: 22px 22px 24px; background: rgba(6, 7, 13, 0.5); }
.dl-help h3 { font-size: 16px; }
.dl-help p { font-size: 14px; }

/* FAQ */
.faq { margin: 40px auto 0; max-width: 820px; display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--glass); border: 1px solid var(--line); transition: background 0.25s, border-color 0.25s; }
.faq details[open] { background: var(--glass-2); border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font-size: 16.5px; font-weight: 680; letter-spacing: -0.015em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 8px; background: var(--glass-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9cdf0' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(139, 123, 255, 0.25); }
.faq details p { padding: 0 24px 22px; font-size: 15px; color: var(--muted); }

/* pied de page */
footer { margin-top: 120px; padding: 40px 0 60px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.foot p { max-width: 520px; font-size: 13.5px; color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 600; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.credits { margin-top: 26px; font-size: 12.5px; color: var(--faint); }

/* visionneuse */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 28px; background: rgba(3, 4, 9, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); cursor: zoom-out;
}
.lightbox.open { display: grid; animation: fade 0.3s ease both; }
.lightbox img { max-width: min(1500px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 18px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9); }
@keyframes fade { from { opacity: 0; } }

/* apparition au défilement (uniquement si le JavaScript tourne) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ------------------------------------------------------------------ adaptatif */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 48px; }
  .cta-stack { max-width: 520px; }
  .hero-visual { max-width: 720px; margin-inline: auto; width: 100%; }
  .chip-float.a { left: -6px; } .chip-float.b { right: -6px; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 54px 0; }
  .feature.flip .feature-text { order: 0; }
  .steps, .compat-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav-links { display: none; }
  .nav .btn.ghost-hide { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .dl-help { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .section { padding-top: 84px; }
  .spot { margin-top: 64px; border-radius: 28px; }
  .download { margin-top: 84px; border-radius: 30px; }
  .chip-float.b { display: none; }
  .btn { padding: 0 20px; }
  .hero-visual::before { inset: -6% 0; }
  .shot.glow::before { inset: -6% -2%; }
}
@media (max-width: 420px) {
  .cta-row { grid-template-columns: 1fr; }
  .cta-cap { gap: 8px; font-size: 11px; letter-spacing: 0.06em; }
  .cta-cap::before, .cta-cap::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
