/* ============================================================
   TikGrow — Design system
   Esthétique : éditorial énergique, sombre, "growth"
   Accent signature : lime électrique -> cyan
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Familjen+Grotesk:ital,wght@0,400..700;1,400..600&display=swap');

:root {
  --ink:      #0a0b0d;      /* fond quasi-noir */
  --ink-2:    #121319;      /* surfaces */
  --ink-3:    #1b1d26;      /* cartes surélevées */
  --line:     #2a2d3a;      /* bordures */
  --paper:    #f4f4ec;      /* texte principal (blanc chaud) */
  --muted:    #9a9db0;      /* texte secondaire */
  --lime:     #c8ff2f;      /* accent 1 */
  --cyan:     #35f0d0;      /* accent 2 */
  --coral:    #ff5c49;      /* alerte / danger */
  --grad:     linear-gradient(105deg, var(--lime), var(--cyan));
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Familjen Grotesk', sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* grain subtil + halo */
  background-image:
    radial-gradient(60vw 60vw at 85% -10%, rgba(53,240,208,.10), transparent 60%),
    radial-gradient(50vw 50vw at 0% 15%, rgba(200,255,47,.08), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: min(1160px, 92vw); margin-inline: auto; }
section { padding: clamp(56px, 9vw, 120px) 0; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  backdrop-filter: blur(14px);
  background: rgba(10,11,13,.62);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 18px var(--cyan);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--paper); }
@media (max-width: 720px){ .nav-links a.hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--grad); color: #06130c; box-shadow: 0 10px 30px -8px rgba(53,240,208,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(53,240,208,.6); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--paper); }

/* ---------- Typo ---------- */
.eyebrow {
  font-family: var(--font-body); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .74rem; color: var(--cyan);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 54ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 90px); position: relative; }
.hero h1 span.italic { font-style: italic; font-family: var(--font-body); font-weight: 500; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; }
.hero-stats .stat b {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  display: block; line-height: 1;
}
.hero-stats .stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){ .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(53,240,208,.4); }
.card .kicker { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* Bordure lumineuse pour cartes clés */
.card.glow::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .55;
}

/* ---------- Comparatif faux vs vrais ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px){ .compare { grid-template-columns: 1fr; } }
.compare .col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.compare .bad { background: rgba(255,92,73,.06); border-color: rgba(255,92,73,.35); }
.compare .good { background: rgba(53,240,208,.06); border-color: rgba(53,240,208,.35); }
.compare ul { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.compare li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.compare .bad li::before { content: '✕'; color: var(--coral); font-weight: 700; }
.compare .good li::before { content: '✓'; color: var(--lime); font-weight: 700; }

/* ---------- Simulateur ---------- */
.sim { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: start; }
@media (max-width: 940px){ .sim { grid-template-columns: 1fr; } }
.panel {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.field label .val { color: var(--cyan); font-variant-numeric: tabular-nums; }
input[type=range] {
  -webkit-appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--ink-3); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); cursor: pointer; box-shadow: 0 0 0 4px rgba(53,240,208,.15);
}
.seg { display: flex; gap: 8px; background: var(--ink-3); padding: 5px; border-radius: 12px; }
.seg button {
  flex: 1; padding: 10px; border: none; background: transparent; color: var(--muted);
  border-radius: 8px; font-family: var(--font-body); font-weight: 600; cursor: pointer; transition: .2s;
}
.seg button.active { background: var(--grad); color: #06130c; }

.result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width: 520px){ .result-grid { grid-template-columns: 1fr; } }
.result {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.result .label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.result .big {
  font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; margin-top: 6px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.result .sub { color: var(--muted); font-size: .84rem; margin-top: 6px; }
.result.hl { background: linear-gradient(160deg, rgba(200,255,47,.14), rgba(53,240,208,.10)); border-color: rgba(53,240,208,.5); }
.result.hl .big { color: var(--lime); }

.bar-track { height: 10px; border-radius: 999px; background: var(--ink-3); overflow: hidden; margin-top: 14px; }
.bar-fill { height: 100%; background: var(--grad); width: 0; transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #06130c; font-size: 1.5rem; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line); }
.badge.demo { color: var(--lime); border-color: rgba(200,255,47,.4); background: rgba(200,255,47,.08); }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 760px){ .kpi-row { grid-template-columns: repeat(2,1fr); } }
.kpi { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.kpi .n { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .84rem; }
.kpi .delta { font-size: .82rem; font-weight: 600; margin-top: 4px; }
.kpi .delta.up { color: var(--lime); }
.chart-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 22px; }
.chart-card h3 { margin-bottom: 4px; }
.chart-card .muted { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
table.vids { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.vids th, table.vids td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
table.vids th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
table.vids td .pill { font-variant-numeric: tabular-nums; }
.retention { display: inline-block; padding: 3px 9px; border-radius: 8px; font-weight: 600; font-size: .82rem; }
.retention.good { background: rgba(200,255,47,.14); color: var(--lime); }
.retention.mid { background: rgba(53,240,208,.12); color: var(--cyan); }
.retention.low { background: rgba(255,92,73,.14); color: var(--coral); }

/* ---------- Notice / warning box ---------- */
.notice { border-left: 3px solid var(--cyan); background: var(--ink-2); padding: 18px 22px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: .95rem; }
.notice.warn { border-left-color: var(--coral); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise .7s both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: slide 24s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--muted); }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; }
.marquee-track b { color: var(--lime); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
