/* ============================================================
   Néo — Portfolio
   Design system : sombre, premium, façon Apple
   ============================================================ */

/* ---------- Police auto-hébergée (Inter variable) — zéro dépendance tierce, conforme RGPD ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #08080b;
  --bg-soft: #0d0d11;
  --surface: #131318;
  --surface-2: #191920;
  --surface-3: #202029;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text: #f4f4f7;
  --text-muted: #a2a2ae;
  --text-dim: #8b8b98;

  --accent: #6e7bff;
  --accent-2: #38e1c4;
  --accent-3: #b48cff;
  --grad: linear-gradient(120deg, #8a91ff 0%, #6e7bff 42%, #38e1c4 100%);
  --grad-soft: linear-gradient(120deg, rgba(110,123,255,.16), rgba(56,225,196,.14));

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow: 0 0 60px -10px rgba(110, 123, 255, 0.5);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(110, 123, 255, 0.35); color: #fff; }

/* ---------- Focus clavier visible (WCAG 2.4.7) ---------- */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
a:focus-visible, .btn:focus-visible, .nav__burger:focus-visible,
.nav__links a:focus-visible, #copyEmail:focus-visible { outline-offset: 4px; border-radius: 100px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Lien d'évitement (skip link) ---------- */
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 11px 18px;
  border-radius: 12px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); font-weight: 600; font-size: 0.9rem;
  transition: top .25s var(--ease); }
.skip-link:focus { top: 12px; }

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

/* ---------- Backgrounds ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.bg-orbs { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
}
.orb--1 { width: 620px; height: 620px; top: -220px; left: -160px;
  background: radial-gradient(circle, rgba(110, 123, 255, 0.55), transparent 70%); }
.orb--2 { width: 560px; height: 560px; top: 20%; right: -220px;
  background: radial-gradient(circle, rgba(56, 225, 196, 0.35), transparent 70%); }
.orb--3 { width: 640px; height: 640px; bottom: -280px; left: 30%;
  background: radial-gradient(circle, rgba(180, 140, 255, 0.32), transparent 70%); }

/* ---------- Typographic helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  padding: 7px 15px 7px 12px; border: 1px solid var(--border);
  border-radius: 100px; background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 12px 1px var(--accent-2); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.82)} }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: 100px; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn--primary {
  color: #0a0a0f; background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 10px 30px -10px rgba(110, 123, 255, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(110, 123, 255, 0.75); background-position: 100% 50%; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  color: var(--text); background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong); backdrop-filter: blur(10px);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.28); }
.btn--nav { padding: 10px 20px; font-size: 0.9rem; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); }
.btn--nav:hover { background: rgba(255,255,255,0.1); }
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 8, 11, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--border); }
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #0a0a0f;
  background: var(--grad); box-shadow: 0 6px 18px -6px rgba(110, 123, 255, 0.7);
}
.brand__name { font-size: 1.18rem; letter-spacing: -0.02em; }
.brand__dot { color: var(--accent-2); }

.nav__links { display: flex; gap: 6px; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  padding: 8px 14px; border-radius: 100px; transition: color .25s, background .25s; }
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04); position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav__burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 16px 22px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(10,10,14,0.98); border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7);
  transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s, visibility .35s; }
.nav__mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
.nav__mobile a:not(.btn) { padding: 13px 12px; font-weight: 500; color: var(--text-muted);
  border-bottom: 1px solid var(--border); }
.nav__mobile .btn { margin-top: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; left: 0; top: 0;
  background: radial-gradient(circle, rgba(110, 123, 255, 0.22), transparent 65%);
  pointer-events: none; transform: translate3d(35vw, 42vh, 0) translate(-50%, -50%); will-change: transform; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }

.hero__title { font-size: clamp(2.7rem, 6.4vw, 5.1rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.04em; margin: 26px 0 24px; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-muted); max-width: 40ch; line-height: 1.65; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 13px; margin: 34px 0 0; flex-wrap: wrap; }
.hero__proof { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero__proof li { font-size: 0.92rem; color: var(--text-dim); }
.hero__proof strong { display: block; font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }

/* Hero visual : système full-stack connecté */
.hero__visual { position: relative; perspective: 1200px; }
.flow { display: flex; flex-direction: column; width: 100%; max-width: 320px; margin-inline: auto;
  transform-style: preserve-3d; will-change: transform; }

.flow__node { position: relative; z-index: 2; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; }
.flow .ui-card { width: 100%; padding: 20px; top: auto; right: auto; bottom: auto; left: auto;
  background: linear-gradient(160deg, #1c1c25, #111118); }
.flow .code-card { width: 100%; padding: 0 0 4px; top: auto; right: auto; bottom: auto; left: auto;
  background: linear-gradient(160deg, #18181f, #0e0e15);
  border: 1px solid var(--border-strong); }
.code-card__top { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); }
.code-card__top .code-card__dots { margin: 0; }
.code-card__tag { font-size: 0.7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.flow .code-card .code-card__body { padding: 14px 16px 4px; }

/* Connexion animée entre les noeuds */
.flow__link { display: block; height: 32px; position: relative; }
.flow__link::before { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 2px;
  transform: translateX(-50%); border-radius: 2px; opacity: .65;
  background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(56, 225, 196, 0.45); }
.flow__dot { position: absolute; left: 50%; margin-left: -5px; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 12px 1px var(--accent-2); animation: flowDot 2.6s var(--ease) infinite; }
@keyframes flowDot { 0% { top: -2px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }

.flow__foot { display: flex; gap: 10px; }
.flow__chip { flex: 1; text-align: center; font-size: 0.8rem; font-weight: 600; padding: 12px 10px; border-radius: 14px;
  color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); }

[data-scroll-scale] { will-change: transform; }

.glass-card { position: absolute; border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(28,28,36,0.9), rgba(16,16,22,0.82));
  backdrop-filter: blur(20px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.wallet-card { width: 300px; top: 40px; right: 20px; padding: 22px; z-index: 3;
  background: linear-gradient(150deg, #23233a, #16161f 70%);
  border: 1px solid rgba(255,255,255,0.14); }
.wallet-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(140deg, rgba(110,123,255,.25), transparent 45%); pointer-events: none; }
.wallet-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.wallet-card__brand { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.wallet-card__chip { width: 34px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #e9c46a, #c99b3a); opacity: .9; }
.wallet-card__label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 14px 0 16px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,0.2); }
.stamp.on { border-style: solid; border-color: transparent; background: var(--grad);
  box-shadow: 0 0 14px -3px rgba(110,123,255,.7); }
.wallet-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.82rem; }
.wallet-card__reward { color: var(--accent-2); font-weight: 600; }

/* Carte tableau de bord SaaS (hero) */
.ui-card { width: 300px; top: 30px; right: 10px; z-index: 3; padding: 22px;
  background: linear-gradient(160deg, rgba(26,26,34,0.95), rgba(16,16,22,0.9));
  border: 1px solid rgba(255,255,255,0.14); }
.ui-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(140deg, rgba(110,123,255,.22), transparent 45%); pointer-events: none; }
.ui-card__head { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.ui-card__title { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; }
.ui-card__live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-muted); }
.ui-card__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.ui-card__stat { display: flex; justify-content: space-between; align-items: flex-end; margin: 22px 0 16px; position: relative; z-index: 1; }
.ui-card__num { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ui-card__cap { font-size: 0.76rem; color: var(--text-dim); }
.ui-card__delta { font-size: 0.82rem; font-weight: 600; color: var(--accent-2); }
.ui-card__chart { display: flex; align-items: flex-end; gap: 7px; height: 58px; position: relative; z-index: 1; }
.ui-card__chart i { flex: 1; border-radius: 4px; background: var(--grad); opacity: .85; }

.code-card { width: 320px; bottom: 20px; left: 0; padding: 16px 18px 18px; z-index: 2; }
.code-card__dots { display: flex; gap: 7px; margin-bottom: 14px; }
.code-card__dots i { width: 11px; height: 11px; border-radius: 50%; background: #34343f; }
.code-card__dots i:first-child { background: #ff5f57; }
.code-card__dots i:nth-child(2) { background: #febc2e; }
.code-card__dots i:nth-child(3) { background: #28c840; }
.code-card__body { font-family: var(--mono); font-size: 0.79rem; line-height: 1.7; color: #c9c9d6; overflow: hidden; }
.c-key { color: #b48cff; } .c-fn { color: #6e7bff; } .c-prop { color: #38e1c4; }
.c-str { color: #e9c46a; } .c-num { color: #ff8f6b; } .c-com { color: #7b7b88; font-style: italic; }

.chip { position: absolute; font-size: 0.8rem; font-weight: 600; padding: 8px 15px; border-radius: 100px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); backdrop-filter: blur(12px);
  color: var(--text); box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); z-index: 4; }
.chip--1 { top: 0; left: 30px; }
.chip--2 { bottom: 130px; right: 0; }
.chip--3 { bottom: 0; left: 120px; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 100px;
  display: grid; place-items: start center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--text-muted);
  animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%,100%{opacity:0;transform:translateY(14px)} }

/* Floating animations */
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 8.5s ease-in-out infinite; }
.float-c { animation: floatC 6s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(14px)} }
@keyframes floatC { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-10px) rotate(-2deg)} }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 20px 0 40px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-soft)); }
.stat__num { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; line-height: 1.45; }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 100px 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__kicker { display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section__title { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 700; letter-spacing: -0.032em; line-height: 1.08; }
.section__intro { margin-top: 18px; font-size: 1.0625rem; color: var(--text-muted); line-height: 1.65; }

/* Expertise cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), var(--bg-soft));
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; 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; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature:hover::after { opacity: 0.6; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent); background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 22px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature p { color: var(--text-muted); font-size: 0.975rem; line-height: 1.62; }
.feature__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.feature__tags li { font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  padding: 5px 12px; border-radius: 100px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }

/* Marquee */
.marquee { margin-top: 56px; overflow: hidden; position: relative;
  border-block: 1px solid var(--border); padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 26px; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span { font-size: 1.05rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; letter-spacing: -0.01em; }
.marquee__track span:nth-child(3n+1) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   PROJET — DigiKart
   ============================================================ */
.section--project { background:
  radial-gradient(ellipse 70% 50% at 80% 0%, rgba(110,123,255,0.08), transparent 60%),
  radial-gradient(ellipse 60% 50% at 10% 100%, rgba(56,225,196,0.06), transparent 60%); }
.project { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }

.project__visual { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* Capture cliquable du site (fenêtre navigateur) */
.site-shot { display: block; width: 100%; border-radius: 16px; overflow: hidden; position: relative;
  border: 1px solid var(--border-strong); background: #16161b; box-shadow: var(--shadow);
  transform-origin: center; will-change: transform, opacity;
  transition: box-shadow .4s var(--ease); }
.site-shot:hover { box-shadow: 0 44px 100px -34px rgba(0,0,0,.85); }
.site-shot__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: #1c1c22; border-bottom: 1px solid var(--border); }
.site-shot__dots { display: flex; gap: 6px; }
.site-shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.site-shot__dots i:nth-child(1) { background: #ff5f57; }
.site-shot__dots i:nth-child(2) { background: #febc2e; }
.site-shot__dots i:nth-child(3) { background: #28c840; }
.site-shot__url { font-size: 0.8rem; color: var(--text-muted); background: #101015;
  padding: 5px 16px; border-radius: 100px; border: 1px solid var(--border); }
.site-shot__img { display: block; }
.site-shot__img img { display: block; width: 100%; height: auto; }
.site-shot__hint { position: absolute; right: 14px; bottom: 14px; font-size: 0.82rem; font-weight: 600;
  color: #0a0a0f; background: var(--grad); padding: 8px 15px; border-radius: 100px;
  opacity: 0; transform: translateY(6px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.site-shot:hover .site-shot__hint { opacity: 1; transform: none; }

/* Badge App Store */
.appstore-badge { display: inline-flex; border-radius: 12px; transition: transform .3s var(--ease), filter .3s var(--ease); }
.appstore-badge:hover { transform: translateY(-2px); filter: brightness(1.12); }
.appstore-badge svg { height: 52px; width: auto; display: block; }
.phone { width: 262px; height: 534px; border-radius: 44px; padding: 12px; position: relative; z-index: 2;
  background: linear-gradient(160deg, #2a2a34, #14141a); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 1px 1px rgba(255,255,255,.1); }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0a0a0d; border-radius: 0 0 18px 18px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative;
  background: radial-gradient(ellipse at top, #1b1b28, #0c0c12); padding: 46px 18px 18px; }

.wallet-pass { border-radius: 22px; padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #7c86ff 0%, #6e7bff 45%, #38e1c4 100%); box-shadow: 0 20px 40px -18px rgba(110,123,255,.7); }
.wallet-pass::after { content:""; position:absolute; top:-40%; right:-20%; width:140px; height:140px; border-radius:50%;
  background: rgba(255,255,255,0.14); filter: blur(4px); }
.wallet-pass__head { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.wallet-pass__logo { font-weight: 800; font-size: 1.05rem; }
.wallet-pass__tier { font-size: 0.68rem; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.22); backdrop-filter: blur(4px); }
.wallet-pass__hero { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; position: relative; z-index: 1; }
.wallet-pass__points { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.wallet-pass__unit { font-size: 0.9rem; opacity: 0.85; }
.wallet-pass__bar { height: 7px; border-radius: 100px; background: rgba(255,255,255,0.25); margin: 12px 0 8px; overflow: hidden; position: relative; z-index: 1; }
.wallet-pass__bar i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.wallet-pass__meta { display: flex; justify-content: space-between; font-size: 0.72rem; opacity: 0.9; position: relative; z-index: 1; }
.wallet-pass__qr { margin-top: 18px; background: #fff; border-radius: 14px; padding: 12px; display: grid; place-items: center; }
.qr { width: 78px; height: 78px; border-radius: 6px;
  background-image:
    linear-gradient(45deg, #0a0a0d 25%, transparent 25%, transparent 75%, #0a0a0d 75%),
    linear-gradient(45deg, #0a0a0d 25%, transparent 25%, transparent 75%, #0a0a0d 75%);
  background-size: 13px 13px; background-position: 0 0, 6.5px 6.5px; opacity: 0.92; }

.wallet-push { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 18px; background: rgba(30,30,40,0.82); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 12px 30px -12px rgba(0,0,0,.7); }
.wallet-push__icon { font-size: 1.4rem; }
.wallet-push__txt { font-size: 0.76rem; line-height: 1.35; color: var(--text-muted); }
.wallet-push__txt b { color: var(--text); }

.dash { position: absolute; right: -6px; bottom: 40px; z-index: 3; width: 210px; padding: 18px;
  border-radius: var(--radius); background: rgba(20,20,26,0.9); backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.dash__row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.dash__row + .dash__row { margin-top: 14px; }
.dash__v { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.dash__spark { display: flex; align-items: flex-end; gap: 5px; height: 42px; margin: 10px 0; }
.dash__spark i { flex: 1; border-radius: 3px; background: var(--grad); opacity: .85; }
.dash__spark i:nth-child(1){height:35%} .dash__spark i:nth-child(2){height:55%}
.dash__spark i:nth-child(3){height:42%} .dash__spark i:nth-child(4){height:70%}
.dash__spark i:nth-child(5){height:60%} .dash__spark i:nth-child(6){height:88%}
.dash__spark i:nth-child(7){height:100%}

/* Case study */
.case { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.case__tag { font-size: 0.78rem; font-weight: 600; padding: 6px 14px; border-radius: 100px;
  color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.case-block { margin-bottom: 24px; }
.case-block h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; }
.case-block p { color: var(--text-muted); font-size: 0.975rem; line-height: 1.65; }
.case-block p strong { color: var(--text); font-weight: 600; }

.checklist { display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-muted); font-size: 0.97rem; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-soft); border: 1px solid rgba(110,123,255,.4); }
.checklist li::after { content: ""; position: absolute; left: 6.5px; top: 7px; width: 6px; height: 9px;
  border: solid var(--accent-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.case-stack { margin: 30px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.case-stack > span { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.case-stack__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.case-stack__tags em { font-style: normal; font-size: 0.82rem; font-weight: 500; padding: 6px 13px; border-radius: 8px;
  color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.case__cta { margin-top: 6px; }

/* ============================================================
   MÉTHODE
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), var(--bg-soft)); position: relative;
  transition: transform .4s var(--ease), border-color .4s var(--ease); }
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.step__num { display: inline-block; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.05em;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 20px; }
.step h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.975rem; line-height: 1.55; }

/* ============================================================
   À PROPOS
   ============================================================ */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about__media { display: grid; place-items: center; }
.about__panel { width: 100%; max-width: 340px; aspect-ratio: 4/5; border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong); background: linear-gradient(165deg, var(--surface-2), var(--bg-soft));
  box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; }
.about__panel::before { content:""; position:absolute; top:-30%; right:-30%; width:70%; height:70%; border-radius:50%;
  background: var(--grad); filter: blur(60px); opacity: 0.35; }
.about__badge { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; position: relative; z-index: 1; }
.about__lines { display: grid; gap: 12px; position: relative; z-index: 1; }
.about__lines span { height: 10px; border-radius: 100px; background: rgba(255,255,255,0.08); }
.about__lines span:nth-child(1){width:85%} .about__lines span:nth-child(2){width:70%}
.about__lines span:nth-child(3){width:92%} .about__lines span:nth-child(4){width:60%; background: var(--grad); opacity:.7}
.about__pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.about__pills em { font-style: normal; font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 100px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); }

/* Photo de profil */
.about__photo { position: relative; width: 100%; max-width: 340px; aspect-ratio: 4/5; margin: 0;
  border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 24px 70px -34px rgba(110, 123, 255, 0.5); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block;
  transition: transform 1.1s var(--ease); }
.about__photo:hover img { transform: scale(1.04); }
.about__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, rgba(110, 123, 255, 0.18), transparent 42%); mix-blend-mode: screen; }
.about__photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.about__photo-tag { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px; padding: 46px 22px 20px;
  background: linear-gradient(to top, rgba(8, 8, 11, 0.92), rgba(8, 8, 11, 0.4) 55%, transparent); }
.about__photo-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.about__photo-name::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); margin-left: 8px; vertical-align: middle; box-shadow: 0 0 10px var(--accent-2); }
.about__photo-role { font-size: 0.85rem; color: var(--text-muted); }

.about__copy p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; margin-top: 18px; }
.about__copy p strong { color: var(--text); font-weight: 600; }
.about__copy .section__kicker { margin-top: 0; }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin-top: 34px; }
.about__values li b { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.about__values li b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); margin-right: 9px; vertical-align: middle; box-shadow: 0 0 10px var(--accent-2); }
.about__values li span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact { padding-bottom: 120px; }
.contact { text-align: center; max-width: 720px; margin-inline: auto; padding: 64px 40px;
  border-radius: var(--radius-xl); border: 1px solid var(--border-strong); position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 100% at 50% 0%, rgba(110,123,255,0.14), transparent 60%),
    linear-gradient(165deg, var(--surface), var(--bg-soft)); box-shadow: var(--shadow); }
.contact .section__kicker { margin-bottom: 14px; }
.contact__title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -0.032em; line-height: 1.08; }
.contact__lead { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.65; max-width: 46ch; margin: 18px auto 0; }
.contact__actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.copy__label { font-variant-numeric: tabular-nums; }
#copyEmail.copied { border-color: var(--accent-2); color: var(--accent-2); }
.contact__note { margin-top: 26px; font-size: 0.88rem; color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg-soft); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__brand strong { display: block; font-size: 1.05rem; }
.footer__brand span { font-size: 0.82rem; color: var(--text-dim); }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { font-size: 0.9rem; color: var(--text-muted); transition: color .2s; }
.footer__nav a:hover { color: var(--text); }
.footer__legal { display: grid; gap: 4px; text-align: right; font-size: 0.8rem; color: var(--text-dim); }
.footer__legal .todo { color: var(--text-muted); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px) scale(0.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   SCROLL PROGRESS + EFFETS INTERACTIFS
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  transform: scaleX(0); transform-origin: 0 50%; background: var(--grad); will-change: transform;
  box-shadow: 0 0 14px -2px rgba(110, 123, 255, 0.7); }

/* Zoom au défilement (façon Apple) : piloté en JS via data-zoom */
[data-zoom] { will-change: transform, opacity; transform-origin: center; }

/* Cartes « spotlight » : halo suivant le curseur */
.feature > *, .step > * { position: relative; z-index: 1; }
.feature::before, .step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 123, 255, 0.16), transparent 60%); }
.feature:hover::before, .step:hover::before { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__visual { max-width: 380px; margin-inline: auto; }
  .hero { padding-top: 130px; }
  .project { grid-template-columns: 1fr; gap: 40px; }
  .project__visual { order: -1; align-items: stretch; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; }
  .about__panel { max-width: 300px; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: block; }
  .nav__mobile { display: flex; }
  .hero { padding-top: 116px; }
  .hero__proof { gap: 20px; }
  .section { padding: 74px 0; }
  .section__head { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; gap: 16px; }
  .contact { padding: 44px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__legal { text-align: left; }
  .hero__visual { max-width: 380px; margin-inline: auto; }
  .dash { width: 180px; right: 0; }
}

@media (max-width: 560px) {
  /* Système connecté : tout reste visible, centré et redimensionné */
  .hero__visual { max-width: 320px; margin-inline: auto; }
  .flow { max-width: 300px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .stats__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}

/* ---------- Performance mobile : alléger le rendu GPU ---------- */
@media (max-width: 720px) {
  .nav.scrolled { background: rgba(8, 8, 11, 0.95); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost, .eyebrow, .flow__chip { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bg-grid { display: none; }
  .orb--3 { display: none; }
  .orb { filter: blur(60px); opacity: 0.22; }
  .eyebrow { font-size: 0.78rem; padding: 6px 14px 6px 12px; }
  .eyebrow__more { display: none; }
}

/* Tactile : pas de couches GPU inutiles (tilt/halo désactivés), indice visible */
@media (hover: none), (pointer: coarse) {
  .hero__glow, .hero__visual, .flow { will-change: auto; }
  .site-shot__hint { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  [data-scroll-scale], .flow, .hero__glow { transform: none !important; }
  [data-scroll-scale] { opacity: 1 !important; }
  .flow__dot, .marquee__track { animation: none !important; }
}
