/* ════════════════════════════════════════════════════════════
   APF SOLUTIONS — landing page
   Direction : industriel raffiné, sombre, accent ambre signal
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0A0B0D;
  --bg-soft:   #101114;
  --surface:   #15171B;
  --line:      rgba(255, 255, 255, .07);
  --ink:       #F2F3F5;
  --muted:     #9BA0A8;
  --faint:     #5C6068;
  --accent:    #FFB12E;
  --accent-2:  #FF7A3D;
  --ok:        #4ADE80;
  --warn:      #FF5D5D;

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body:    "Hanken Grotesk", sans-serif;
  --font-mono:    "Spline Sans Mono", monospace;

  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-soft:  cubic-bezier(.45, 0, .15, 1);
}

/* ── Base ──────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain global — texture discrète par-dessus tout */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .035;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #1A1206; }

html { scrollbar-color: #2A2D33 var(--bg); scrollbar-width: thin; }

/* scrollbar custom (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; }

/* ── Animations d'entrée (chargement + scroll) ─────────────── */

[data-load] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
body.loaded [data-load] { opacity: 1; transform: none; }

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 100ms);
}
[data-reveal].in-view { opacity: 1; transform: none; filter: blur(0); }

[data-reveal-visual] {
  opacity: 0;
  transform: perspective(1200px) translateY(70px) rotateX(7deg) scale(.95);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
[data-reveal-visual].in-view {
  opacity: 1;
  transform: perspective(1200px) translateY(0) rotateX(0) scale(1);
}

/* halos de section : transition visuelle douce entre blocs */
section { position: relative; }
section::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 177, 46, .25), transparent);
  pointer-events: none;
  z-index: 1;
}
.hero::before, .cta::before { display: none; }

/* ── Boutons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .85em 1.7em;
  border-radius: 100px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background .35s, border-color .35s, color .35s;
  will-change: transform;
}
/* shine : bande de lumière qui traverse au survol */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left .6s var(--ease-out);
}
.btn:hover::before { left: 130%; }
.btn--accent::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); }
.btn--accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1A1206;
  border-color: transparent;
  box-shadow: 0 6px 28px -8px rgba(255, 177, 46, .45);
}
.btn--accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -8px rgba(255, 177, 46, .6);
}
.btn--ghost { background: rgba(255,255,255,.03); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(255,255,255,.25); transform: translateY(-3px); }
.btn--small { padding: .55em 1.25em; font-size: .82rem; background: rgba(255,255,255,.04); }
.btn--small:hover { border-color: var(--accent); color: var(--accent); }

/* focus clavier visible (accessibilité) */
.btn:focus-visible,
.vw-chip:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn--big { font-size: 1.15rem; padding: 1em 2.2em; }

/* ── Eyebrow ───────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.65); opacity: .55; }
}

/* ── Navigation ────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .4s var(--ease-soft), background .4s, border-color .4s,
              backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(10, 11, 13, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo { display: inline-flex; align-items: center; gap: .6em; color: var(--ink); }
.nav-mark { display: grid; place-items: center; }
.nav-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.nav-word em { font-weight: 300; color: var(--muted); margin-left: .12em; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-size: .9rem;
  color: var(--muted);
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}
.orb--1 {
  width: 56vw; height: 56vw;
  top: -22vw; right: -14vw;
  background: radial-gradient(circle, rgba(255, 177, 46, .14), transparent 65%);
}
.orb--2 {
  width: 44vw; height: 44vw;
  bottom: -18vw; left: -12vw;
  background: radial-gradient(circle, rgba(255, 122, 61, .09), transparent 65%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 42%, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 42%, black 25%, transparent 72%);
}
.hero-inner {
  position: relative;
  text-align: center;
  width: min(940px, 92vw);
  will-change: transform, opacity;
}
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.9rem, 8.2vw, 6.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 1.4rem 0 1.8rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; }
.hero-title em {
  background: linear-gradient(110deg, var(--accent) 20%, var(--accent-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 34em;
  margin-inline: auto;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}
.hero-scrollhint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--faint);
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(var(--faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollhint 2.2s var(--ease-soft) infinite;
}
@keyframes scrollhint {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(280%); }
}

/* ── Manifeste (révélation mot à mot au scroll) ────────────── */

.manifesto { padding: clamp(120px, 18vh, 220px) 0; }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.02em;
  max-width: 21em;
  margin-inline: auto;
}
.manifesto-text .w {
  color: var(--ink);
  opacity: .14;
  transition: opacity .45s var(--ease-soft);
}
.manifesto-text .w.lit { opacity: 1; }

/* ── Sections produit ──────────────────────────────────────── */

.product { padding: clamp(90px, 13vh, 170px) 0; position: relative; }
.product--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.product-head {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  margin-bottom: clamp(48px, 7vh, 84px);
}
.product-index {
  color: var(--accent);
  font-size: .95rem;
  border: 1px solid rgba(255, 177, 46, .3);
  border-radius: 8px;
  padding: .4em .65em;
  flex-shrink: 0;
}
.product-name {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.product-tag {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--muted);
  font-weight: 300;
  margin-top: .35em;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.product-grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.product-lede {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 2.4rem;
}
.product-lede::first-letter { color: var(--ink); }

.feature-list { display: grid; gap: 1.6rem; }
.feature-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  font-size: 1.05rem;
}
.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: .2em;
}
.feature-list span:not(.feature-icon) {
  font-size: .92rem;
  color: var(--muted);
  font-weight: 300;
}

.product-visual { position: relative; }
.visual-glow {
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .7;
  transition: opacity .6s var(--ease-out), inset .6s var(--ease-out);
}
.product-visual:hover .visual-glow {
  opacity: 1;
  inset: 5%;
}
.visual-glow--amber { background: rgba(255, 177, 46, .13); }
.visual-glow--green { background: rgba(74, 222, 128, .08); }

/* ── Mockup commun ─────────────────────────────────────────── */

.mockup {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: linear-gradient(165deg, #1A1C21, #101114);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.8),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .5s var(--ease-out);
  transform-style: preserve-3d;
}

/* — Desk Manager — */
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.chrome-dot { width: 9px; height: 9px; border-radius: 50%; background: #34373D; }
.chrome-url { color: var(--faint); margin-left: 12px; font-size: .65rem; }
.mock-body { display: flex; min-height: 350px; }
.mock-side {
  width: 54px;
  border-right: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.side-item {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.side-item--on { background: rgba(255, 177, 46, .2); outline: 1px solid rgba(255, 177, 46, .45); }
.mock-main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label { font-size: .56rem; color: var(--faint); }
.kpi-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.kpi-trend { font-size: .68rem; }
.kpi-trend--up { color: var(--ok); }
.kpi-trend--down { color: var(--accent); }
.mock-map {
  flex: 1;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.025), transparent 50%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  overflow: hidden;
}
.map-dot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.map-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  opacity: 0;
  animation: ping 3s ease-out infinite;
}
.map-dot--warn { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.map-dot--warn::after { border-color: var(--accent); animation-duration: 1.6s; }
@keyframes ping {
  0%   { transform: scale(.4); opacity: .9; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}
.mock-rows { display: grid; gap: 8px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}
.row-pill {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .1em;
  padding: .35em .7em;
  border-radius: 100px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  flex-shrink: 0;
}
.row-pill--warn { background: rgba(255, 93, 93, .14); color: var(--warn); }
.row-pill--ok { background: rgba(74, 222, 128, .12); color: var(--ok); }
.row-bar {
  height: 5px;
  border-radius: 100px;
  background: rgba(255,255,255,.1);
  width: var(--w);
}
.row-meta { color: var(--faint); margin-left: auto; font-size: .62rem; }

/* — Dashboard Alarme — */
.mockup--alarm { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.alarm-head { display: flex; justify-content: space-between; align-items: center; }
.alarm-title { color: var(--muted); }
.alarm-live { display: inline-flex; align-items: center; gap: .55em; color: var(--ok); }
.alarm-live .mono { font-size: .6rem; }
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 1.6s ease-in-out infinite;
}
.alarm-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
}
.alarm-grid span {
  aspect-ratio: 1;
  border-radius: 7px;
  background: rgba(74, 222, 128, .14);
  outline: 1px solid rgba(74, 222, 128, .22);
  animation: led 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .2s);
}
/* variation pseudo-aléatoire des LED */
.alarm-grid span:nth-child(3n)  { --i: 3; }
.alarm-grid span:nth-child(5n)  { --i: 7; }
.alarm-grid span:nth-child(7n)  { --i: 11; }
.alarm-grid span:nth-child(11)  {
  background: rgba(255, 177, 46, .25);
  outline-color: rgba(255, 177, 46, .5);
  animation: ledwarn 1.4s ease-in-out infinite;
}
.alarm-grid span:nth-child(29)  {
  background: rgba(255, 93, 93, .25);
  outline-color: rgba(255, 93, 93, .5);
  animation: ledwarn 1s ease-in-out infinite;
}
@keyframes led {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
@keyframes ledwarn {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.alarm-feed {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.alarm-feed p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--muted);
}
.feed-time { color: var(--faint); }
.feed-flag {
  font-size: .56rem;
  letter-spacing: .1em;
  padding: .3em .6em;
  border-radius: 100px;
  background: rgba(255,255,255,.07);
}
.feed-flag--warn { background: rgba(255, 177, 46, .15); color: var(--accent); }
.feed-flag--ok { background: rgba(74, 222, 128, .12); color: var(--ok); }
.alarm-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.alarm-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(255, 177, 46, .1), rgba(255, 177, 46, .45));
  transform-origin: bottom;
  animation: bargrow 1.1s var(--ease-out) backwards;
}
.in-view .alarm-bars span:nth-child(odd)  { animation-delay: .3s; }
.in-view .alarm-bars span:nth-child(even) { animation-delay: .5s; }
@keyframes bargrow { from { transform: scaleY(0); } }

/* ── Chiffres ──────────────────────────────────────────────── */

.stats { padding: clamp(100px, 15vh, 190px) 0; position: relative; }
.stats-rail {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(transparent, var(--line) 30%, var(--line) 70%, transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--ink) 50%, rgba(242, 243, 245, .35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num sup, .stat-num small {
  font-size: .45em;
  font-weight: 500;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: .9rem;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 15em;
  margin-inline: auto;
}

/* ── Preloader (compteur + rideau) ─────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 1s var(--ease-soft);
  will-change: transform;
}
.preloader.done { transform: translateY(-101%); }
.preloader.off { display: none; }
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.preloader-mark { animation: pulse 1.4s ease-in-out infinite; }
.preloader-count {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--ink) 55%, rgba(242,243,245,.3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.preloader-line {
  width: 180px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.preloader-line span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Curseur custom (desktop fx) ───────────────────────────── */

.cursor-dot, .cursor-ring { display: none; }
body.fx { cursor: none; }
body.fx a, body.fx button, body.fx [data-tilt] { cursor: none; }
body.fx .cursor-dot {
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 3002;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
body.fx .cursor-ring {
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 177, 46, .45);
  z-index: 3001;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              border-color .35s, background .35s, opacity .3s;
}
body.fx .cursor-ring.is-hover {
  width: 62px; height: 62px;
  border-color: rgba(255, 177, 46, .9);
  background: rgba(255, 177, 46, .07);
}
body.fx .cursor-dot.is-hidden, body.fx .cursor-ring.is-hidden { opacity: 0; }

/* ── Canvas hero (constellation) ───────────────────────────── */

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* quand le shader WebGL tourne, les orbes CSS deviennent inutiles */
.hero--gl .orb { opacity: 0; }

/* ── Hero : titre lettre à lettre ──────────────────────────── */

.hero-title .w2 { display: inline-block; white-space: nowrap; }
.hero-title .ch {
  display: inline-block;
  transform: translateY(118%) rotate(3deg);
  transition: transform .95s var(--ease-out), color .3s;
  transition-delay: calc(var(--ci) * 24ms + 120ms);
  will-change: transform;
}
body.loaded .hero-title .ch { transform: none; }
/* au survol du titre, chaque lettre se soulève et colore */
body.fx .hero-title:hover .ch {
  transition: transform .4s var(--ease-out), color .4s;
  transition-delay: calc(var(--ci) * 12ms);
}
body.fx .hero-title:hover .ch {
  transform: translateY(-6px) rotate(-2deg);
}
body.fx .hero-title:hover em .ch {
  transform: translateY(-8px) rotate(2deg);
}
.hero-title em .ch {
  background: linear-gradient(120deg, var(--accent) 25%, var(--accent-2) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Empilement des réalisations (la 2 glisse sur la 1) ────── */

@media (min-width: 900px) {
  body.fx .stack #desk-manager {
    position: sticky;
    top: 0;
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  body.fx .stack #desk-manager .container { will-change: transform, opacity; }
  body.fx .stack #dashboard-alarme {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    display: flex;
    align-items: center;
    border-radius: 40px 40px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 -60px 120px -30px rgba(0, 0, 0, .75);
  }
}

/* ── Cartes : spotlight qui suit la souris ─────────────────── */

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 177, 46, .1), transparent 65%);
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* ── Barre de progression de lecture ───────────────────────── */

.scrollprogress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1001;
  pointer-events: none;
}
.scrollprogress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Savoir-faire : bento grid à tuiles vivantes ───────────── */

.domaines { padding: clamp(90px, 13vh, 170px) 0 clamp(70px, 10vh, 120px); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.tile { display: flex; flex-direction: column; padding: 1.6rem; transform-style: preserve-3d; transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s; }
body.fx .tile:hover {
  border-color: rgba(255, 177, 46, .35);
  box-shadow: 0 30px 60px -25px rgba(255, 177, 46, .18), 0 0 0 1px rgba(255, 177, 46, .08);
}
body.fx .tile .tile-visual { transform: translateZ(20px); transition: transform .5s var(--ease-out); }
body.fx .tile:hover .tile-visual { transform: translateZ(40px); }
body.fx .tile h3 { transform: translateZ(15px); transition: transform .5s var(--ease-out); }
body.fx .tile:hover h3 { transform: translateZ(28px); }
body.fx .tile p { transform: translateZ(10px); transition: transform .5s var(--ease-out); }
body.fx .tile:hover p { transform: translateZ(20px); }
.tile h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .45rem;
}
.tile p { font-size: .88rem; color: var(--muted); font-weight: 300; }
.tile-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  overflow: hidden;
  height: 168px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.tile--web { grid-row: span 2; }
.tile--web .tile-visual { height: auto; flex: 1; min-height: 300px; }
.tile--beyond {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding: 1.9rem 2.6rem;
  border-style: dashed;
  border-color: rgba(255, 177, 46, .22);
  background: linear-gradient(170deg, rgba(255, 177, 46, .045), rgba(255, 255, 255, .008));
}
.tile--beyond:hover { border-color: rgba(255, 177, 46, .45); }
.beyond-mark {
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  animation: beyondbreath 3.6s ease-in-out infinite;
}
@keyframes beyondbreath {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.tile--beyond h3 { margin-bottom: .3rem; }
.tile--beyond p { max-width: 36em; font-size: .94rem; }

/* — tuile web : mini-app qui se construit en boucle — */
.miniapp { width: 86%; height: 84%; min-height: 250px; display: flex; gap: 10px; }
.ma-side {
  width: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ma-side i { height: 19px; border-radius: 5px; background: rgba(255,255,255,.06); }
.ma-side i:first-child { background: rgba(255, 177, 46, .25); }
.ma-main { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.ma-bar {
  height: 13px;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  transform-origin: left;
  animation: maBar 5.5s var(--ease-soft) infinite;
}
.ma-bar--1 { width: 72%; }
.ma-bar--2 { width: 46%; animation-delay: .3s; }
@keyframes maBar {
  0%        { transform: scaleX(0); }
  16%, 82%  { transform: scaleX(1); }
  98%, 100% { transform: scaleX(0); }
}
.ma-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.ma-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(255,177,46,.12), rgba(255,177,46,.55));
  transform-origin: bottom;
  animation: maCol 5.5s var(--ease-soft) infinite;
}
.ma-chart i:nth-child(1) { height: 42%; animation-delay: .45s; }
.ma-chart i:nth-child(2) { height: 64%; animation-delay: .55s; }
.ma-chart i:nth-child(3) { height: 34%; animation-delay: .65s; }
.ma-chart i:nth-child(4) { height: 80%; animation-delay: .75s; }
.ma-chart i:nth-child(5) { height: 56%; animation-delay: .85s; }
.ma-chart i:nth-child(6) { height: 90%; animation-delay: .95s; }
.ma-chart i:nth-child(7) { height: 70%; animation-delay: 1.05s; }
@keyframes maCol {
  0%, 6%    { transform: scaleY(0); }
  26%, 80%  { transform: scaleY(1); }
  96%, 100% { transform: scaleY(0); }
}

/* — tuile API : flux de données entre nœuds — */
.api-net { width: 86%; }
.api-line { stroke: rgba(255,255,255,.16); stroke-width: 1.5; }
.api-node { fill: #23262B; stroke: rgba(255,255,255,.35); }
.api-node--hub { fill: var(--accent); stroke: none; }
.api-pulse { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

/* — tuile équipements : radar — */
.radar {
  width: 126px; height: 126px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(74,222,128,.06), transparent 70%);
}
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(74,222,128,.35), transparent 75deg);
  animation: sweep 3.4s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-ring { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.radar-ring--1 { inset: 22%; }
.radar-ring--2 { inset: 40%; }
.radar-blip {
  position: absolute;
  left: var(--bx); top: var(--by);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 9px var(--ok);
  opacity: 0;
  animation: blip 3.4s infinite;
  animation-delay: var(--bd);
}
.radar-blip--warn { background: var(--accent); box-shadow: 0 0 9px var(--accent); }
@keyframes blip {
  0%, 10%   { opacity: 0; }
  16%, 55%  { opacity: 1; }
  72%, 100% { opacity: 0; }
}

/* — tuile IA : conversation en boucle — */
.chat { display: flex; flex-direction: column; gap: 9px; width: 86%; }
.chat-msg {
  max-width: 88%;
  padding: .55em .85em;
  border-radius: 12px;
  font-size: .7rem;
  line-height: 1.45;
  color: var(--muted);
}
.chat-msg--user {
  align-self: flex-end;
  background: rgba(255,255,255,.08);
  border-bottom-right-radius: 3px;
  animation: chatUser 7s infinite;
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: .65em .75em;
  background: rgba(255,177,46,.1);
  border-radius: 12px 12px 12px 3px;
  animation: chatTyping 7s infinite;
}
.chat-typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: typdot 1s infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
.chat-msg--bot {
  align-self: flex-start;
  background: rgba(255,177,46,.13);
  color: var(--ink);
  border-bottom-left-radius: 3px;
  animation: chatBot 7s infinite;
}
@keyframes chatUser {
  0%        { opacity: 0; transform: translateY(8px); }
  6%, 90%   { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}
@keyframes chatTyping {
  0%, 12%   { opacity: 0; }
  16%, 42%  { opacity: 1; }
  47%, 100% { opacity: 0; }
}
@keyframes chatBot {
  0%, 46%   { opacity: 0; transform: translateY(8px); }
  53%, 90%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}
@keyframes typdot {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* — tuile gestion : tapis de documents traités en continu — */
.belt {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 150px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.belt-doc {
  position: absolute;
  width: 64%;
  background: #191B20;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.65);
  animation: beltmove 7.5s var(--ease-soft) infinite;
  animation-delay: var(--d);
  opacity: 0;
  will-change: transform, opacity;
}
@keyframes beltmove {
  0%        { transform: translateX(150%) rotate(2deg) scale(.95); opacity: 0; }
  10%       { opacity: 1; }
  16%, 42%  { transform: translateX(0) rotate(0) scale(1); opacity: 1; }
  54%       { transform: translateX(-150%) rotate(-2deg) scale(.95); opacity: 0; }
  100%      { transform: translateX(-150%); opacity: 0; }
}
.bd-num { font-size: .55rem; color: var(--faint); }
.bd-l {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
}
.bd-amount {
  align-self: flex-end;
  font-size: .72rem;
  color: var(--accent);
}
.bd-stamp {
  position: absolute;
  top: 50%; left: 50%;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: .25em .6em;
  background: rgba(10, 11, 13, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: beltstamp 7.5s infinite;
  animation-delay: var(--d);
}
.bd-stamp--ok { color: var(--ok); }
.bd-stamp--warn { color: var(--accent); }
@keyframes beltstamp {
  0%, 20%   { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(2.2); }
  26%       { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(.92); }
  29%       { transform: translate(-50%, -50%) rotate(-10deg) scale(1.06); }
  31%, 46%  { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
  54%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
}
.belt-status {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .5rem;
  letter-spacing: .16em;
  color: var(--faint);
  white-space: nowrap;
}
.belt-status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 1.4s ease-in-out infinite;
}

/* — tuile rapports : tableau de bord vivant + envoi périodique — */
.dash {
  position: relative;
  width: 80%;
  height: 100%;
  display: grid;
  place-items: center;
}
.dash-sheet {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: dashbob 4.5s ease-in-out infinite;
}
@keyframes dashbob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-title {
  width: 44%;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 177, 46, .35);
}
.dash-kpi {
  position: relative;
  width: 46px;
  height: 14px;
  font-size: .62rem;
  color: var(--ok);
  overflow: hidden;
}
.dash-kpi b {
  position: absolute;
  right: 0;
  font-weight: 500;
  animation: kpiflip 6s infinite;
}
.dash-kpi b:nth-child(2) { animation-delay: -3s; }
@keyframes kpiflip {
  0%, 6%     { opacity: 0; transform: translateY(10px); }
  10%, 46%   { opacity: 1; transform: none; }
  50%, 100%  { opacity: 0; transform: translateY(-10px); }
}
.dash-body {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-donut { width: 56px; height: 56px; transform: rotate(-90deg); flex-shrink: 0; }
.dash-donut circle { fill: none; stroke-width: 5; }
.dd-track { stroke: rgba(255,255,255,.08); }
.dd-arc {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 50 88;
}
.dd-arc2 {
  stroke: var(--ok);
  stroke-linecap: round;
  stroke-dasharray: 18 88;
  stroke-dashoffset: -58;
}
/* l'égaliseur danse en permanence */
.eq {
  flex: 1;
  height: 56px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.eq i {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(255,177,46,.15), rgba(255,177,46,.6));
  transform-origin: bottom;
  transform: scaleY(var(--eh));
  animation: eqdance 1.9s ease-in-out infinite alternate;
}
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.9s; }
.eq i:nth-child(5) { animation-delay: -1.2s; }
.eq i:nth-child(6) { animation-delay: -1.5s; }
.eq i:nth-child(7) { animation-delay: -1.8s; }
@keyframes eqdance {
  0%   { transform: scaleY(calc(var(--eh) * .45)); }
  100% { transform: scaleY(var(--eh)); }
}
/* l'avion en papier part avec le rapport, puis confirmation */
.dash-plane {
  position: absolute;
  bottom: 16%;
  left: -6%;
  font-size: 1rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 177, 46, .8);
  opacity: 0;
  animation: planefly 7s infinite;
  pointer-events: none;
}
@keyframes planefly {
  0%, 64%  { opacity: 0; transform: translate(0, 0) rotate(-18deg) scale(.8); }
  68%      { opacity: 1; }
  82%      { opacity: 1; transform: translate(370px, -110px) rotate(-26deg) scale(1.1); }
  84%, 100% { opacity: 0; transform: translate(370px, -110px); }
}
.dash-sent {
  position: absolute;
  bottom: 8px;
  right: 0;
  font-size: .52rem;
  letter-spacing: .14em;
  color: var(--ok);
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .25);
  padding: .45em .9em;
  border-radius: 99px;
  opacity: 0;
  animation: dashsent 7s infinite;
}
@keyframes dashsent {
  0%, 82%   { opacity: 0; transform: translateY(6px); }
  87%, 97%  { opacity: 1; transform: none; }
  100%      { opacity: 0; }
}

/* visuels produit : pilotés image par image par le scroll en mode fx,
   simple révélation sinon */
body.fx [data-scrollfx] { opacity: 0; will-change: transform, opacity; }
body:not(.fx) [data-scrollfx] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
body:not(.fx) [data-scrollfx].in-view { opacity: 1; transform: none; }

.domaines-note {
  margin-top: clamp(48px, 7vh, 72px);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--muted);
}
.domaines-note em {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.realisations-intro { padding: clamp(70px, 10vh, 120px) 0 0; }
.realisations-intro .section-head { margin-bottom: 0; }
.section-sub {
  margin-top: 1.2rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 34em;
}

/* ── Approche ──────────────────────────────────────────────── */

.approche {
  padding: clamp(90px, 13vh, 170px) 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: clamp(48px, 7vh, 80px); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-top: 1.1rem;
}
.section-title em {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  padding: 2.2rem 1.9rem;
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 177, 46, .55), transparent);
  opacity: 0;
  transition: opacity .5s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 177, 46, .25); }
.card:hover::before { opacity: 1; }
.card-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 177, 46, .35);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .7rem;
  letter-spacing: -.01em;
}
.card p { font-size: .94rem; color: var(--muted); font-weight: 300; }

/* ── Timeline approche (le trait se dessine au scroll) ─────── */

.timeline {
  position: relative;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vh, 4.6rem);
}
.timeline-rail {
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
#timelineBar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
}
.step {
  display: flex;
  gap: 2.1rem;
  align-items: flex-start;
  opacity: .38;
  transition: opacity .6s var(--ease-soft);
}
.step.lit { opacity: 1; }
.step-dot {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--faint);
  font-size: .78rem;
  position: relative;
  z-index: 1;
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s;
}
.step.lit .step-dot {
  border-color: transparent;
  color: #1A1206;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(255, 177, 46, .35);
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: .5rem;
}
.step-body p { color: var(--muted); font-weight: 300; max-width: 36em; }

/* ── CTA ───────────────────────────────────────────────────── */

.cta {
  padding: clamp(120px, 18vh, 230px) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 110%, rgba(255, 177, 46, .16), transparent 70%);
}
.cta-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 177, 46, .11), transparent 70%);
  pointer-events: none;
}
.cta:hover .cta-glow { opacity: 1; }
.cta-inner { position: relative; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 1.2rem 0 1.4rem;
}
.cta-title em {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-sub {
  color: var(--muted);
  font-weight: 300;
  max-width: 30em;
  margin: 0 auto 2.8rem;
}

/* ── Footer ────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 90px 0 64px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  bottom: -.36em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 16.5vw, 13rem);
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
  pointer-events: none;
  user-select: none;
}
.footer-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand p {
  margin-top: .8rem;
  font-size: .85rem;
  color: var(--faint);
  font-weight: 300;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-align: right;
  color: var(--faint);
  font-size: .64rem;
}
.footer-legal-link {
  color: var(--faint);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.footer-legal-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── Démo veille : le torrent, l'IA, la synthèse ───────────── */

[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.veille {
  padding: clamp(90px, 13vh, 170px) 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.vw-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) auto minmax(0, 6fr);
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  align-items: center;
}

/* — le torrent brut : mur de données "data center" — */
.vw-feed {
  position: relative;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), rgba(255,255,255,.025) 20%, transparent calc(20% + 1px)) 0 0 / 20% 100%,
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    radial-gradient(circle at 30% 20%, rgba(255,177,46,.05), transparent 60%),
    #07080A;
  overflow: hidden;
  mask-image: linear-gradient(transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(transparent, black 8%, black 92%, transparent);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6), 0 30px 60px -30px rgba(0,0,0,.8);
}
/* colonnes verticales en fond */
.vw-feed-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 20% 32px, 100% 32px;
  pointer-events: none;
}
.vw-feed-track {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  animation: vwscroll 26s linear infinite;
}
@keyframes vwscroll { to { transform: translateY(-50%); } }
.vw-item {
  flex-shrink: 0;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.vw-item .mono {
  display: block;
  font-size: .46rem;
  color: var(--faint);
  letter-spacing: .16em;
  margin-bottom: 2px;
}
.vw-item p {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* pings lumineux : articles prioritaires qui flashent */
.vw-feed-pings {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.vw-ping {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,177,46,.55);
  animation: vwping 3.4s var(--pd) infinite ease-out;
}
.vw-ping--warn {
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(255,122,61,.55);
  animation-name: vwping-warn;
}
@keyframes vwping {
  0%   { box-shadow: 0 0 0 0 rgba(255,177,46,.6); opacity: 0; }
  10%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { box-shadow: 0 0 0 26px rgba(255,177,46,0); opacity: 0; }
}
@keyframes vwping-warn {
  0%   { box-shadow: 0 0 0 0 rgba(255,122,61,.6); opacity: 0; }
  10%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { box-shadow: 0 0 0 30px rgba(255,122,61,0); opacity: 0; }
}
.vw-feed-count {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: .52rem;
  letter-spacing: .16em;
  color: var(--accent);
  background: rgba(10, 11, 13, .85);
  border: 1px solid rgba(255,177,46,.3);
  border-radius: 99px;
  padding: .5em 1.1em;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.vw-feed-count #vwCount { color: var(--ink); font-weight: 500; }

/* — l'IA au centre : réacteur — */
.vw-ia {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.vw-ia-core {
  position: relative;
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.vw-ia-badge {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.45rem;
  color: var(--accent);
  border: 1px solid rgba(255, 177, 46, .55);
  background: radial-gradient(circle, rgba(255, 177, 46, .18), transparent 70%);
  box-shadow: 0 0 28px rgba(255,177,46,.25), inset 0 0 18px rgba(255,177,46,.1);
  animation: vwpulse 2.6s ease-in-out infinite;
}
@keyframes vwpulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
/* anneau rotatif autour du noyau */
.vw-ia-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,177,46,.25);
  border-top-color: rgba(255,177,46,.85);
  border-right-color: rgba(255,122,61,.55);
  animation: vwspin 3.2s linear infinite;
}
.vw-ia-ring::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255,177,46,.18);
  animation: vwspin 9s linear infinite reverse;
}
@keyframes vwspin { to { transform: rotate(360deg); } }
@keyframes au-call {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 177, 46, .35); }
  50%      { box-shadow: 0 0 0 14px rgba(255, 177, 46, 0); }
}
.vw-ia-label {
  font-size: .6rem;
  color: var(--accent);
  letter-spacing: .22em;
  text-shadow: 0 0 12px rgba(255,177,46,.5);
}
.vw-ia-sub { font-size: .58rem; color: var(--faint); line-height: 1.5; }

/* — la synthèse : se "matérialise" à chaque switch de canal — */
.vw-mail-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.vw-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,177,46,.18) 45%,
    rgba(255,177,46,.35) 50%,
    rgba(255,177,46,.18) 55%,
    transparent 100%
  );
  transform: translateY(-100%);
  opacity: 0;
  border-radius: inherit;
}
.vw-mail-wrap.is-scanning .vw-scan {
  animation: vwscan .9s ease-out;
}
@keyframes vwscan {
  0%   { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.vw-mail {
  border: 1px solid rgba(255, 177, 46, .25);
  border-radius: 16px;
  background: linear-gradient(165deg, #1A1C21, #121316);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8);
  padding: 18px 20px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  transition: opacity .25s, filter .35s, transform .35s;
}
.vw-mail.is-switch {
  opacity: 0;
  filter: blur(6px);
  transform: scale(.985);
}
.vw-mail-wrap:not(.is-scanning) .vw-mail:not(.is-switch) {
  animation: vwmaterialize .55s ease-out;
}
@keyframes vwmaterialize {
  0%   { opacity: 0; filter: blur(8px); transform: scale(.97); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
.vw-mail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.vw-mail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}
.vw-mail-head b {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
}
.vw-mail-time { margin-left: auto; font-size: .58rem; color: var(--faint); }
.vw-lines { flex: 1; display: flex; flex-direction: column; gap: 13px; }
.vw-line {
  display: flex;
  gap: 10px;
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
  min-height: 1.5em;
}
.vw-line .vw-bullet { flex-shrink: 0; color: var(--faint); }
.vw-line--flag { color: var(--ink); }
.vw-line--flag .vw-bullet { color: var(--accent); }
.vw-line.is-typing .vw-text::after {
  content: "▍";
  color: var(--accent);
  animation: vwcaret .8s steps(1) infinite;
}
@keyframes vwcaret { 50% { opacity: 0; } }
.vw-mail-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .52rem;
  color: var(--ok);
  letter-spacing: .14em;
  opacity: 0;
  transition: opacity .6s;
}
.vw-mail-foot.is-in { opacity: 1; }

/* — conclusion — */
.vw-outro {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.vw-outro p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .vw-stage { grid-template-columns: 1fr; }
  .vw-feed { height: 200px; }
  .vw-ia { flex-direction: row; justify-content: center; gap: 12px; }
  .vw-ia-sub br { display: none; }
  .vw-mail { min-height: 320px; }
}

/* — canaux de livraison : email / sms / whatsapp — */
.vw-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vw-channels { display: flex; gap: 8px; }
.vw-chip {
  font-size: .56rem;
  letter-spacing: .14em;
  color: var(--faint);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .55em 1.1em;
  cursor: pointer;
  transition: color .35s, border-color .35s, background .35s;
}
.vw-chip:hover { color: var(--muted); border-color: rgba(255,255,255,.2); }
.vw-chip.is-active {
  color: var(--accent);
  border-color: rgba(255, 177, 46, .5);
  background: rgba(255, 177, 46, .08);
}

/* l'en-tête façon boîte mail */
.vw-mailmeta {
  font-size: .5rem;
  color: var(--faint);
  letter-spacing: .12em;
  line-height: 1.8;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

/* horodatage des bulles */
.vw-line .vw-meta {
  margin-left: auto;
  align-self: flex-end;
  flex-shrink: 0;
  font-size: .42rem;
  letter-spacing: .08em;
  color: var(--faint);
  opacity: 0;
  transition: opacity .4s;
  padding-left: 8px;
}
.vw-line.is-done .vw-meta { opacity: 1; }

/* — mode téléphone (SMS et WhatsApp) — */
.vw-mail--phone {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 420px !important;
  display: grid;
  place-items: center;
}
.vw-mail--phone .vw-scan { display: none; }
.vw-phone {
  position: relative;
  width: 290px;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: #0D0E11;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.85), inset 0 0 0 3px rgba(255,255,255,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s;
}
.vw-mail-wrap.is-scanning .vw-phone { animation: vwshake .55s ease-out; }
@keyframes vwshake {
  0%, 100% { transform: translate(0,0); }
  15% { transform: translate(-3px,-1px) rotate(-.4deg); }
  30% { transform: translate(3px,1px) rotate(.4deg); }
  45% { transform: translate(-2px,1px) rotate(-.2deg); }
  60% { transform: translate(2px,-1px) rotate(.2deg); }
  75% { transform: translate(-1px,0) rotate(-.1deg); }
}
.vw-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 76px; height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  z-index: 2;
}
.vw-phone-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 14px 10px;
}
.vw-phone-bar b {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
}
.vw-phone-bar .mono { font-size: .48rem; letter-spacing: .12em; }
/* SMS : barre sobre grise */
.vw-phone-bar--sms {
  background: #16181D;
  border-bottom: 1px solid var(--line);
}
.vw-phone-bar--sms .mono { color: #6AA9FF; margin-left: auto; }
/* WhatsApp : la barre verte iconique + avatar */
.vw-phone-bar--wa { background: #128C5A; }
.vw-phone-bar--wa b { color: #fff; }
.vw-phone-bar--wa .mono { color: rgba(255,255,255,.8); margin-left: auto; }
.vw-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1A1206;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .7rem;
  flex-shrink: 0;
}
.vw-phone .vw-lines { padding: 14px 12px; }
/* fond à motif discret pour WhatsApp */
.vw-phone--wa .vw-lines {
  flex: 1;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 16px 16px;
}
.vw-phone .vw-mail-foot {
  margin: 0;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
}
/* bulles */
.vw-phone .vw-line {
  border-radius: 14px 14px 14px 4px;
  padding: .6em .85em;
  max-width: 90%;
  align-self: flex-start;
  font-size: .74rem;
}
.vw-phone--sms .vw-line {
  background: #23262C;
  border: 1px solid rgba(255,255,255,.07);
}
.vw-phone--wa .vw-line {
  background: #173326;
  border: 1px solid rgba(37, 211, 102, .22);
}
.vw-phone--wa .vw-meta { color: rgba(37, 211, 102, .8); }
.vw-phone .vw-bullet--plain { display: none; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .product-grid, .product-grid--flip { grid-template-columns: 1fr; }
  .product-grid--flip .product-visual { order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-rail { display: none; }
  .cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--web { grid-row: auto; }
  .tile--beyond { grid-column: auto; }
  .tile--web .tile-visual { min-height: 220px; }
  .tile--beyond { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .tile--beyond .domaines-note { margin: 0; text-align: left; }
  .footer-meta { text-align: left; }
  .mock-body { min-height: 280px; }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-kpis .kpi:last-child { display: none; }
  .hero-scrollhint { display: none; }
}

/* ── Accessibilité — mouvement réduit ──────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  [data-load], [data-reveal], [data-reveal-visual] { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1; }
}
