/* ═══════════════════════════════════════════════════════════
   EvolutionsAI — design system
   Palette : #05060a (base) · #17b890 (teal) · #8758ff (violet)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #05060a;
  --bg-panel: #0b0d14;
  --bg-raised: #10131d;
  --text: #f4f5f7;
  --text-muted: #9298a8;
  --teal: #17b890;
  --violet: #8758ff;
  --grad: linear-gradient(135deg, var(--teal), var(--violet));
  /* Darker pair for button surfaces — keeps white label text ≥ 4.5:1 (WCAG AA) */
  --grad-btn: linear-gradient(135deg, #0c7c5e, #6b3fe8);
  --grad-btn-hover: linear-gradient(135deg, #6b3fe8, #0c7c5e);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font-display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(88px, 12vw, 160px);
  --radius: 18px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* fixed header compensation for native anchor jumps */
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }
strong { color: var(--text); font-weight: 600; }

::selection { background: rgba(135, 88, 255, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 18px;
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  border-radius: 8px; font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Wordmark ──────────────────────────────────────────── */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.wordmark__main { color: var(--text); }
.wordmark__grad {
  background: linear-gradient(180deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Grain ─────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -4%;
  z-index: 250;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.2%, -1.8%); }
  75% { transform: translate(-1.6%, -0.8%); }
  100% { transform: translate(0, 0); }
}

/* ── Preloader ─────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
}
.preloader__curtain {
  position: absolute; left: 0; width: 100%; height: 50.5%;
  background: #07080e;
}
.preloader__curtain--top { top: 0; }
.preloader__curtain--bottom { bottom: 0; }
.preloader__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.preloader__logo { font-size: clamp(28px, 5vw, 44px); overflow: hidden; }
.preloader__bar {
  width: min(280px, 60vw); height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.preloader__bar-fill {
  display: block; width: 100%; height: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
}
.preloader__count {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Custom cursor ─────────────────────────────────────── */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; opacity: 0; transition: opacity 0.3s; }
  .cursor.is-visible { opacity: 1; }
  .cursor__dot, .cursor__ring {
    position: fixed; top: 0; left: 0; z-index: 280;
    pointer-events: none;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor__dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--text);
  }
  .cursor__ring {
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: grid; place-items: center;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                margin 0.3s var(--ease-out), background-color 0.3s,
                border-color 0.3s;
  }
  .cursor__label {
    font-family: var(--font-display);
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    opacity: 0; transform: scale(0.6);
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
  }
  .cursor.is-hover .cursor__ring {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
  }
  .cursor.has-label .cursor__ring {
    width: 72px; height: 72px; margin: -36px 0 0 -36px;
    background: rgba(11, 13, 20, 0.75);
    border-color: var(--line-strong);
    backdrop-filter: blur(4px);
  }
  .cursor.has-label .cursor__label { opacity: 1; transform: scale(1); }
  .cursor.has-label .cursor__dot { opacity: 0; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 100px;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s;
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--solid {
  color: #fff;
  background: var(--grad-btn);
  border: 0;
  z-index: 1;
}
.btn--solid::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--grad-btn-hover);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.btn--solid:hover::after { opacity: 1; }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--lg { padding: 19px 40px; font-size: 17px; }

/* ── Header / nav ──────────────────────────────────────── */
.header {
  /* Above the mobile menu overlay (120) so logo + burger stay reachable */
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.js .header:not(.is-ready) { transform: translateY(-110%); }
.header.is-scrolled {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-110%); }

.nav {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.nav__logo { margin-right: auto; }
.nav__links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px; font-weight: 500;
  color: var(--text-muted);
  border-radius: 100px;
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav__cta { padding: 11px 22px; font-size: 14px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
}
.nav__burger span {
  position: absolute; left: 10px; right: 10px;
  height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), top 0.35s, bottom 0.35s;
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { bottom: 17px; }
.nav__burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { bottom: 21px; transform: rotate(-45deg); }

/* ── Mobile menu ───────────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(5, 6, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
}
.menu__inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 600;
  padding: 6px 12px;
  color: var(--text);
}
.menu__link:hover {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu__cta { margin-top: 26px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: clip;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero__orb--teal {
  width: 44vw; height: 44vw;
  left: -14vw; top: -10vw;
  background: radial-gradient(circle, rgba(23, 184, 144, 0.16), transparent 65%);
}
.hero__orb--violet {
  width: 52vw; height: 52vw;
  right: -18vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(135, 88, 255, 0.18), transparent 65%);
}

.hero__content {
  position: relative; z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: calc(var(--container));
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  margin-bottom: 34px;
  background: rgba(255, 255, 255, 0.02);
}
.hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin-bottom: 30px;
}
.hero__title em,
.hero__title em .u-word {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* background-clip:text can't paint across transformed children (SplitText
   words) — the per-word rule above takes over once the title is split */
.hero__title.has-split em { background: none; }

.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 14px;
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  margin-bottom: 42px;
}
.hero__tagline strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__actions {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.hero__secondary {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--text-muted);
  display: inline-block;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s;
}
.hero__secondary:hover { color: var(--teal); border-color: var(--teal); }

.hero__scroll {
  position: absolute;
  bottom: 34px; right: var(--gutter);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--grad);
  animation: scroll-hint 2s var(--ease-out) infinite;
}
@keyframes scroll-hint {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ── Marquee ───────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0;
  overflow: clip;
  background: var(--bg-panel);
}
.marquee__track {
  display: flex; align-items: center;
  width: max-content;
  will-change: transform;
}
/* JS wraps the items into two identical groups; padding-right doubles as the
   inter-group gap so a -50% translate is exactly one seamless period */
.marquee__group {
  display: flex; align-items: center; gap: 44px;
  padding-right: 44px;
  flex-shrink: 0;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  font-size: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding-block: var(--section-pad); position: relative; }

.section__head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 84px); }
.section__index {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.section__title em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__lede {
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: var(--text-muted);
  max-width: 62ch;
}

/* ── Service cards ─────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 34px 30px 30px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  /* hover lift uses `translate` so it composes with GSAP's transform writes */
  transition: border-color 0.4s, translate 0.4s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my),
              rgba(135, 88, 255, 0.10), rgba(23, 184, 144, 0.05) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover { border-color: var(--line-strong); translate: 0 -4px; }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  margin-bottom: 24px;
  transition: transform 0.45s var(--ease-out), border-color 0.45s;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon {
  transform: rotate(-6deg) scale(1.06);
  border-color: rgba(23, 184, 144, 0.4);
}
.card__title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card__text { font-size: 15px; color: var(--text-muted); }
.card__num {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── Cas d'usage — horizontal ──────────────────────────── */
.usecases { padding-block: 0 var(--section-pad); background: var(--bg-panel); }
.usecases__pin {
  padding-block: var(--section-pad) 0;
}
/* The GSAP pin (desktop, motion-OK, tall-enough viewport) opts in via JS.
   Everywhere else the viewport is a native snap scroller, so the cards stay
   reachable with reduced motion, without JS, or if a CDN fails. */
.usecases__pin.is-pinned {
  display: flex; flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  overflow: clip;
}
.usecases__head { margin-bottom: clamp(40px, 5vw, 64px); }
.usecases__head .section__head { margin-bottom: 0; }

.usecases__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.usecases__viewport::-webkit-scrollbar { display: none; }
.usecases__pin.is-pinned .usecases__viewport {
  overflow: visible;
  scroll-snap-type: none;
}
.usecases__track {
  display: flex; gap: 18px;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
  width: max-content;
  will-change: transform;
}
.ucard { scroll-snap-align: start; }

.ucard {
  position: relative;
  display: flex; flex-direction: column;
  width: clamp(300px, 34vw, 430px);
  min-height: 320px;
  padding: 32px 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.4s, background-color 0.4s, transform 0.4s var(--ease-out);
  flex-shrink: 0;
}
.ucard:hover {
  border-color: rgba(23, 184, 144, 0.45);
  transform: translateY(-6px);
}
.ucard__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--teal);
  margin-bottom: auto;
}
.ucard__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 48px;
  margin-bottom: 12px;
}
.ucard__text { font-size: 14.5px; color: var(--text-muted); }
.ucard__arrow {
  position: absolute; top: 26px; right: 28px;
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out), color 0.4s;
}
.ucard:hover .ucard__arrow {
  transform: translate(4px, -4px) rotate(-45deg);
  color: var(--teal);
}

.usecases__progress {
  display: none;
  margin-top: clamp(36px, 5vw, 56px);
  margin-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  height: 1px;
  background: var(--line-strong);
  position: relative;
}
.usecases__pin.is-pinned .usecases__progress { display: block; }

.usecases__cta {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.usecases__cta-note { font-size: 13.5px; color: var(--text-muted); }
.usecases__progress-fill {
  position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
}

/* ── Méthode / steps ───────────────────────────────────── */
.steps {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  padding-left: clamp(54px, 7vw, 80px);
}
.steps__line {
  position: absolute;
  left: clamp(20px, 2.8vw, 28px);
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.steps__line-fill {
  position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleY(0); transform-origin: top;
}

.step {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 640px;
}
.step__num {
  position: absolute;
  left: calc(-1 * clamp(54px, 7vw, 80px));
  top: -4px;
  width: clamp(40px, 5.6vw, 56px); height: clamp(40px, 5.6vw, 56px);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 700;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text-muted);
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.is-active .step__num {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(var(--bg) 0 0) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 24px rgba(23, 184, 144, 0.25);
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.step__text { color: var(--text-muted); font-size: 15.5px; }

/* ── Avantages / tabs ──────────────────────────────────── */
.benefits { background: var(--bg-panel); }

.tabs {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg);
  padding: clamp(24px, 4vw, 56px);
}
.tabs__list {
  display: flex; flex-direction: column; gap: 4px;
}
.tabs__btn {
  position: relative;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 18px;
  border-radius: 12px;
  transition: color 0.3s, background-color 0.3s;
}
.tabs__btn::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 3px; height: 0;
  border-radius: 3px;
  background: var(--grad);
  transform: translateY(-50%);
  transition: height 0.35s var(--ease-out);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.tabs__btn.is-active::before { height: 60%; }

.tabs__panels { position: relative; min-height: 180px; }
.tabs__panel p {
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.55;
  color: var(--text);
  max-width: 30em;
}
.tabs__panel-index {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 18px;
}

/* ── CTA ───────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: clip;
  text-align: center;
}
.cta__orb {
  position: absolute;
  left: 50%; top: 55%;
  width: min(720px, 90vw); height: min(720px, 90vw);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 38% 38%, rgba(23, 184, 144, 0.14), transparent 55%),
    radial-gradient(circle at 64% 60%, rgba(135, 88, 255, 0.16), transparent 55%);
  filter: blur(40px);
  pointer-events: none;
}
.cta__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 26px;
}
.cta__title em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta__sub {
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 44px;
  font-size: clamp(15.5px, 1.5vw, 18px);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--bg);
}
.footer__inner {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer__logo { font-size: 19px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a {
  font-size: 14px; color: var(--text-muted);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--text); }
.footer__credit { font-size: 13.5px; color: var(--text-muted); width: 100%; }
.footer__credit a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s;
}
.footer__credit a:hover { color: var(--teal); border-color: var(--teal); }

/* ── Reveal initial states (JS adds motion) ────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .preloader-done [data-reveal] { /* handled by GSAP */ }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 899px) {
  .ucard { width: min(82vw, 380px); }

  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; flex-wrap: wrap; }
  .tabs__btn { font-size: 15px; padding: 10px 14px; }
  .tabs__btn::before { display: none; }
  .tabs__btn.is-active { background: rgba(255, 255, 255, 0.06); }
}

@media (max-width: 639px) {
  .cards { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__title { max-width: none; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.1em; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .preloader { display: none; }
  .cursor { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Blog — listes, articles, prose
   ═══════════════════════════════════════════════════════════ */

.bloglist { padding-top: calc(76px + clamp(48px, 8vw, 96px)); }
.bloglist__cats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.bloglist__cats .ucard__tag { transition: border-color 0.3s, color 0.3s; }
.bloglist__cats .ucard__tag:hover { border-color: var(--teal); }
.bloglist__empty { color: var(--text-muted); }

.bloglist__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 767px) { .bloglist__grid { grid-template-columns: 1fr; } }

.postcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s, translate 0.4s var(--ease-out);
}
.postcard:hover { border-color: rgba(23, 184, 144, 0.45); translate: 0 -4px; }
.postcard__media { aspect-ratio: 16 / 9; overflow: hidden; }
.postcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.postcard:hover .postcard__media img { transform: scale(1.04); }
.postcard__body { position: relative; padding: 26px 26px 30px; display: grid; gap: 12px; }
.postcard__meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text-muted);
}
.postcard__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600; line-height: 1.25; letter-spacing: -0.015em;
}
.postcard__excerpt {
  font-size: 14.5px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.postcard .ucard__arrow { top: auto; bottom: 24px; right: 26px; }
.postcard:hover .ucard__arrow { transform: translate(4px, -4px) rotate(-45deg); color: var(--teal); }

.pagination {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: clamp(40px, 6vw, 64px);
}
.pagination__link {
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}
a.pagination__link:hover { color: var(--text); border-color: var(--line-strong); }
.pagination__link.is-current {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
}

/* ── Article ───────────────────────────────────────────── */
.post { padding-top: calc(76px + clamp(40px, 7vw, 80px)); }
.post__container { max-width: 880px; }
.post__breadcrumb {
  display: flex; gap: 10px;
  font-size: 13.5px; color: var(--text-muted);
  margin-bottom: 26px;
}
.post__breadcrumb a { transition: color 0.3s; }
.post__breadcrumb a:hover { color: var(--teal); }
.post__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 14px; color: var(--text-muted);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.post__cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 52px);
}
.post__cover img { width: 100%; }
.post__footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

/* ── Prose (contenu markdown) ──────────────────────────── */
.prose {
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 1.75;
  color: var(--text);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
  margin-top: 1.8em;
}
.prose h2 { font-size: 1.65em; }
.prose h3 { font-size: 1.3em; }
.prose h4 { font-size: 1.1em; }
.prose p, .prose li { color: rgba(244, 245, 247, 0.86); }
.prose a {
  color: var(--teal);
  border-bottom: 1px solid rgba(23, 184, 144, 0.35);
  transition: border-color 0.3s;
}
.prose a:hover { border-color: var(--teal); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: 0.5em; }
.prose blockquote {
  border-left: 3px solid;
  border-image: var(--grad) 1;
  padding: 0.2em 0 0.2em 1.2em;
  color: var(--text-muted);
}
.prose img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-block: 0.6em;
}
.prose code {
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15em 0.4em;
}
.prose pre {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.prose th { background: var(--bg-raised); font-family: var(--font-display); }
.prose hr { border: 0; height: 1px; background: var(--line-strong); }

/* ── 404 / pages simples ───────────────────────────────── */
.notfound { padding-top: calc(76px + clamp(60px, 10vw, 120px)); text-align: center; }
.notfound .hero__actions { justify-content: center; margin-top: 36px; }
