/* ============================================================
   NOVRIX — Dark Blue Night
   Deep near-black · electric blue accent · white text.
   Same Soft Futurism structure — Bricolage + Hanken, pills, chips.
   ============================================================ */

:root {
  --canvas:   #f8f8f8;    /* blanc pur premium */
  --canvas-2: #f0f2f8;    /* pour sectors */
  --surface:  #ffffff;    /* cartes sur fond teinté */
  --surface-2:#f0f2fa;
  --ink:      #0c0f1e;    /* encre profonde */
  --ink-2:    #262b45;
  --muted:    #5c63a0;
  --muted-2:  #8e95c8;
  --hair:     rgba(12,15,30,0.10);
  --hair-2:   rgba(12,15,30,0.18);
  --accent:   #3b6bff;
  --accent-2: #567aff;
  --on-accent:#ffffff;

  /* bandes sombres */
  --dark:     #0a0c1c;
  --dark-2:   #12152a;
  --dark-hair:rgba(255,255,255,0.10);
  --dark-ink: #edeef8;
  --dark-mut: #5c63a0;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  --r-sm:   10px;
  --r:      16px;
  --r-lg:   26px;
  --r-pill: 100px;

  --maxw:   1200px;
  --gutter: clamp(20px, 5vw, 68px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); color: var(--ink); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
#root { position: relative; z-index: 1; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 12vh, 156px); }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.0; letter-spacing: -0.025em; margin: 20px 0 0;
}
.lede {
  color: var(--muted); font-size: clamp(16px, 1.5vw, 20px);
  max-width: 56ch; margin: 20px 0 0; text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1),
              background .25s ease, color .25s ease,
              border-color .25s ease, box-shadow .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px color-mix(in oklab, var(--accent) 65%, transparent);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--hair-2);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.on-dark .btn-primary { background: var(--accent); }
.on-dark .btn-ghost { color: var(--dark-ink); border-color: var(--dark-hair); }
.on-dark .btn-ghost:hover { border-color: var(--dark-ink); }

/* ---------- reveal ---------- */
[data-reveal] {
  transition: opacity .85s cubic-bezier(.2,.7,.2,1),
              transform .85s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
html.anim-ok [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  html.anim-ok [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--canvas) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav__inner {
  height: 74px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--ink); border-radius: 9px;
  flex: none;
}
.brand__mark svg { display: block; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.02em; font-size: 19px;
}
.brand__name b { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 15px; font-weight: 500; white-space: nowrap;
  color: var(--muted); transition: color .2s ease; position: relative;
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; background: var(--accent); border-radius: 2px;
  transition: width .28s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 16px; }

.lang {
  display: inline-flex; border: 1px solid var(--hair-2);
  border-radius: var(--r-pill); padding: 3px;
  font-size: 13px; font-weight: 600;
}
.lang button {
  background: transparent; color: var(--muted-2); border: none;
  border-radius: var(--r-pill); padding: 6px 12px; letter-spacing: 0.02em;
  transition: color .2s ease, background .2s ease;
}
.lang button.active { background: var(--ink); color: var(--canvas); }
.nav__cta { padding: 11px 20px; white-space: nowrap; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ============================================================
   FOOTER (deepest dark)
   ============================================================ */
.footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding-block: clamp(64px, 9vh, 110px) 44px;
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
  border-top: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
}
.footer__top {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; align-items: flex-start;
}
.footer__slogan {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 76px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 0.98;
  max-width: 14ch;
}
.footer__slogan b { color: var(--accent); }
.footer__contact { display: grid; gap: 12px; font-size: 16px; padding-top: 10px; }
.footer__contact a {
  display: flex; gap: 14px; align-items: baseline;
  white-space: nowrap; transition: color .2s;
}
.footer__contact a:hover { color: var(--accent); }
.footer__contact .k {
  color: var(--dark-mut); width: 52px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
}
.footer__bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--dark-hair);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 14px; color: var(--dark-mut);
}
.footer__bottom a:hover { color: var(--dark-ink); }
