/* NovaFlows — style.css */

/* Polices système en attendant Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Curseur custom ── */
*, *::before, *::after { cursor: none !important; }

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #6ee7b7;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 10px #6ee7b7, 0 0 20px rgba(110,231,183,0.4);
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              height 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.25s, opacity 0.25s;
  box-shadow: 0 0 12px rgba(56,189,248,0.15);
}

body.cursor-hover #cursor-dot {
  width: 12px; height: 12px;
  background: #38bdf8;
  box-shadow: 0 0 16px #38bdf8, 0 0 32px rgba(56,189,248,0.5);
}

body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(110, 231, 183, 0.8);
}

body.cursor-click #cursor-dot {
  width: 5px; height: 5px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

body.cursor-click #cursor-ring {
  width: 20px; height: 20px;
  border-color: rgba(255,255,255,0.9);
}

/* ── Scrollbar custom ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0d0f;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #6ee7b7, #38bdf8);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #38bdf8, #6ee7b7);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #6ee7b7 #0d0d0f;
}

/* =============================================
   NOVAFLOWS — Styles intégrés
   Design: Dark editorial / tech minimal
   Fonts: Syne (display) + DM Sans (body)
   ============================================= */

:root {
  --font-display: 'Syne', 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --bg: #0d0d0f;
  --surface: #141416;
  --surface-2: #1a1a1e;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #fafafa;
  --text-muted: #71717a;
  --text-subtle: #3f3f46;
  --accent: #6ee7b7;
  --accent-2: #38bdf8;
  --accent-warm: #f9a8d4;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* ── UTILITIES ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 64px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0d0d0f;
  font-weight: 600;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(110, 231, 183, 0.3);
}

.btn--primary svg path {
  stroke: #0d0d0f;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(13, 13, 15, 0.95);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: #0d0d0f;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-smart {
  color: #fafafa;
  -webkit-text-fill-color: #fafafa;
}

.logo-flow {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 10px 22px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0d0d0f !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  -webkit-text-fill-color: #0d0d0f !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110, 231, 183, 0.25);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(13, 13, 15, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}

.orb--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.orb--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-2);
  bottom: -100px;
  left: -50px;
  animation-delay: -3s;
}

.orb--3 {
  width: 300px;
  height: 300px;
  background: var(--accent-warm);
  top: 40%;
  left: 40%;
  animation-delay: -5s;
  opacity: 0.08;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-20px, 20px) scale(1.04);
  }

  66% {
    transform: translate(20px, -15px) scale(0.97);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ── STATS CARD avec glow ── */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(110, 231, 183, 0.15);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.05),
    0 8px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero__stats::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(110, 231, 183, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__stats:hover {
  border-color: rgba(110, 231, 183, 0.3);
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.1),
    0 12px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(110, 231, 183, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat>span:nth-child(2) {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat__divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-subtle), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.22s;
}

.reveal--delay-3 {
  transition-delay: 0.34s;
}

.reveal--delay-4 {
  transition-delay: 0.46s;
}

/* ── SERVICES ── */
/* ── Services ── */
.services {
  padding: 120px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.service-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.04), rgba(56, 189, 248, 0.04));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card--large {
  grid-column: 1 / 3;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-card__tags span {
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-card--accent {
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.08), rgba(56, 189, 248, 0.08));
  border-color: rgba(110, 231, 183, 0.2);
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── AUTOMATIONS ── */
.automations {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.automations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.auto-card {
  padding: 28px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.auto-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.auto-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.auto-card:hover::after {
  transform: scaleX(1);
}

.auto-card__icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}

.auto-card__icon svg {
  width: 100%;
  height: 100%;
}

.auto-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.auto-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── APPS ── */
.apps {
  padding: 120px 0;
}

/* ── APPS MARQUEE ── */

/* ── SEARCH BADGE ── */
.apps__search-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(110, 231, 183, 0.3);
  background: rgba(110, 231, 183, 0.06);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}

.apps__search-badge:hover {
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(110, 231, 183, 0.15);
}

/* ── SEARCH MODAL ── */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-modal.open {
  opacity: 1;
  pointer-events: all;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-modal__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(110, 231, 183, 0.05);
  transform: translateY(-16px);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-modal.open .search-modal__box {
  transform: translateY(0);
}

.search-modal__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.search-modal__input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-modal__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  caret-color: var(--accent);
}

.search-modal__input::placeholder {
  color: var(--text-muted);
}

.search-modal__close-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 4px 8px;
  transition: all var(--transition);
}

.search-modal__close-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.search-modal__results {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-modal__results::-webkit-scrollbar {
  width: 4px;
}

.search-modal__results::-webkit-scrollbar-track {
  background: transparent;
}

.search-modal__results::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 2px;
}

.search-result-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: default;
  transition: all var(--transition);
}

.search-result-pill:hover {
  border-color: rgba(110, 231, 183, 0.4);
  color: var(--accent);
  background: rgba(110, 231, 183, 0.05);
}

.search-result-pill.highlight {
  border-color: rgba(110, 231, 183, 0.5);
  color: var(--accent);
  background: rgba(110, 231, 183, 0.08);
}

.search-modal__empty {
  width: 100%;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-modal__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ── APPS RIGHT COLUMN ── */

.apps__marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  /* masque les bords gauche/droite avec un fondu */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  gap: 10px;
  width: max-content;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  animation: marquee-right 60s linear infinite;
  animation-delay: -20s;
}

.marquee--left .marquee__track {
  animation-name: marquee-left;
  animation-duration: 70s;
  animation-delay: -35s;
}

.marquee--slow .marquee__track {
  animation-duration: 90s;
  animation-delay: -45s;
}

.marquee--left.marquee--slow .marquee__track {
  animation-name: marquee-left;
  animation-duration: 80s;
  animation-delay: -60s;
}

/* Pause au survol */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}


@keyframes marquee-right {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-left {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.app-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
  cursor: default;
  flex-shrink: 0;
}

.app-pill:hover {
  border-color: rgba(110, 231, 183, 0.4);
  color: var(--accent);
  background: rgba(110, 231, 183, 0.05);
}

.app-pill--more {
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.1), rgba(56, 189, 248, 0.1));
  border-color: rgba(110, 231, 183, 0.3);
  color: var(--accent);
  font-weight: 500;
}


/* ── CASE STUDY ── */
.casestudy {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.flow__step {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition), transform var(--transition);
}

.flow__step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.flow__step--1 .flow__icon {
  color: #6ee7b7;
}

/* vert turquoise */
.flow__step--2 .flow__icon {
  color: #38bdf8;
}

/* bleu ciel */
.flow__step--3 .flow__icon {
  color: #a78bfa;
}

/* violet */
.flow__step--4 .flow__icon {
  color: #f9a8d4;
}

/* rose */

/* Bordure gauche blanche subtile sur chaque step */
.flow__step {
  border-left: 2px solid transparent;
  background-clip: padding-box;
}

.flow__step--1 {
  border-left-color: rgba(110, 231, 183, 0.4);
}

.flow__step--2 {
  border-left-color: rgba(56, 189, 248, 0.4);
}

.flow__step--3 {
  border-left-color: rgba(167, 139, 250, 0.4);
}

.flow__step--4 {
  border-left-color: rgba(249, 168, 212, 0.4);
}

/* Numéro de step coloré selon l'étape */
.flow__step::before {
  content: attr(data-step);
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow__step--1::before {
  color: rgba(110, 231, 183, 0.5);
}

.flow__step--2::before {
  color: rgba(56, 189, 248, 0.5);
}

.flow__step--3::before {
  color: rgba(167, 139, 250, 0.5);
}

.flow__step--4::before {
  color: rgba(249, 168, 212, 0.5);
}

.flow__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.flow__icon svg {
  width: 100%;
  height: 100%;
}

.flow__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.flow__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  flex-shrink: 0;
  padding-top: 16px;
  color: var(--text-subtle);
}

.flow__arrow svg {
  width: 60px;
}

.flow__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  padding: 16px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(110, 231, 183, 0.04);
  width: fit-content;
  margin: 0 auto;
  color: var(--accent);
}

/* ── PROCESS ── */
.process {
  padding: 120px 0;
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
}

.process__step {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
  position: relative;
}

.process__step:first-child {
  border-top: 1px solid var(--border);
}

.process__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: top;
}

.process__step:hover::before {
  transform: scaleY(1);
}

.process__step:hover {
  padding-left: 20px;
}

/* ── FIX BUG NUMÉROS 01/02/03 ── */
.process__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  position: relative;
}

/* Chiffre gris visible par défaut */
.process__num::before {
  content: attr(data-num);
  display: block;
  color: var(--text-subtle);
  transition: opacity var(--transition);
}

/* Chiffre en dégradé superposé, invisible par défaut */
.process__num::after {
  content: attr(data-num);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity var(--transition);
}

.process__step:hover .process__num::before {
  opacity: 0;
}

.process__step:hover .process__num::after {
  opacity: 1;
}

.process__content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.process__content p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ── CTA ── */
.cta {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb--cta1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -200px;
  left: 50%;
  transform: translateX(-60%);
  opacity: 0.1;
}

.orb--cta2 {
  width: 400px;
  height: 400px;
  background: var(--accent-2);
  bottom: -150px;
  right: 10%;
  opacity: 0.1;
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cta__desc {
  max-width: 520px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.cta__note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* ── FOOTER ── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__brand p {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 8px;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ── VIDEO CARD ── */
.service-card--video {
  cursor: pointer;
  position: relative;
}

.service-card--video:hover {
  border-color: rgba(110, 231, 183, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(110, 231, 183, 0.12);
}

.video-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--transition);
}

.service-card--video:hover .video-hint {
  background: rgba(110, 231, 183, 0.15);
  border-color: rgba(110, 231, 183, 0.6);
}

/* ── VIDEO MODAL ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: all;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-modal__container {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 24px;
  padding: 40px;
  max-width: 760px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.05),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(110, 231, 183, 0.05);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-modal.open .video-modal__container {
  transform: translateY(0) scale(1);
}

.video-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.video-modal__close:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface-2);
}

.video-modal__header {
  margin-bottom: 28px;
}

.video-modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.video-modal__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
}

.video-modal__cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE COMPLET — Mobile First
   ══════════════════════════════════════════ */

/* ── TABLETTE (≤ 1024px) ── */
/* ── APPS SECTION ── */
.apps {
  padding: 120px 0;
}

.apps__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.apps__text {
  max-width: 480px;
}

.apps__text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.apps__right {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Badge recherche centré sous les lignes */
.apps__search-badge {
  align-self: center;
  margin-top: 14px;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE COMPLET — Mobile First
   ══════════════════════════════════════════ */

/* ── TABLETTE (≤ 1024px) ── */
@media (max-width: 1024px) {
  .automations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card--large {
    grid-column: 1 / 3;
  }
}

/* ── MOBILE LARGE (≤ 768px) ── */
@media (max-width: 768px) {

  /* NAV */
  .nav {
    padding: 0 20px;
    height: 62px;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  /* HERO */
  .hero {
    padding: 90px 20px 70px;
    min-height: 100svh;
  }

  .hero__content {
    text-align: center;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 3.2rem);
    letter-spacing: -0.01em;
  }

  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .hero__stats {
    gap: 0;
    padding: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(110, 231, 183, 0.15);
  }

  .stat {
    flex: 1;
    padding: 20px 10px;
    border-right: 1px solid var(--border);
  }

  .stat:last-child {
    border-right: none;
  }

  .stat__number {
    font-size: 1.6rem;
  }

  .stat>span:nth-child(2) {
    font-size: 1.3rem;
  }

  .stat__label {
    font-size: 0.65rem;
  }

  .stat__divider {
    display: none;
  }

  /* SECTIONS PADDING */
  .services {
    padding: 72px 0;
  }

  .automations {
    padding: 72px 0;
  }

  .apps {
    padding: 72px 0;
  }

  .casestudy {
    padding: 72px 0;
  }

  .process {
    padding: 72px 0;
  }

  .cta {
    padding: 80px 0;
  }

  /* SERVICES */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card--large {
    grid-column: 1;
  }

  .service-card {
    padding: 28px 22px;
  }

  /* AUTOMATIONS */
  .automations__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .auto-card {
    padding: 22px 18px;
  }

  /* APPS */
  .apps__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .apps__text {
    max-width: 100%;
  }

  .apps__search-badge {
    align-self: flex-start;
  }

  /* FLOW */
  .flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .flow__step {
    max-width: 100%;
    width: 100%;
    min-width: unset;
  }

  .flow__arrow {
    transform: rotate(90deg);
    padding: 0;
    width: 60px;
    height: 60px;
    margin: 4px auto;
  }

  /* PROCESS */
  .process__step {
    gap: 20px;
    padding: 28px 0;
  }

  .process__num {
    font-size: 2rem;
    width: 48px;
  }

  .process__content h3 {
    font-size: 1.1rem;
  }

  .process__steps {
    max-width: 100%;
  }

  /* CTA */
  .cta__title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .cta__desc {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  .btn--large {
    padding: 16px 32px;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
  }

  /* FOOTER */
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__links {
    gap: 20px;
    flex-wrap: wrap;
  }

  /* TITLES */
  .section-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-desc {
    font-size: 0.95rem;
  }
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 80px 18px 60px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .hero__badge {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .hero__stats {
    flex-direction: column;
    border-radius: 14px;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .stat__number {
    font-size: 2rem;
  }

  .stat>span:nth-child(2) {
    font-size: 1.8rem;
  }

  .stat__label {
    font-size: 0.75rem;
    margin-top: 0;
  }

  .automations__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .process__step {
    flex-direction: row;
    gap: 16px;
  }

  .process__num {
    font-size: 1.8rem;
    width: 44px;
  }

  .flow__step {
    padding: 24px 18px;
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal__container {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .video-modal__title {
    font-size: 1rem;
  }

  .video-modal__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .hero__scroll {
    display: none;
  }

  .flow__note {
    font-size: 0.8rem;
    padding: 12px 18px;
    text-align: center;
  }

  .apps__text {
    max-width: 100%;
  }

  .apps__search-badge {
    width: 100%;
    justify-content: center;
  }
}

/* ── TRÈS PETIT (≤ 360px) ── */
@media (max-width: 360px) {
  .hero__title {
    font-size: 1.6rem;
  }

  .nav {
    padding: 0 14px;
  }

  .container {
    padding: 0 14px;
  }

  .service-card {
    padding: 22px 16px;
  }

  .auto-card {
    padding: 18px 14px;
  }

  .process__step {
    gap: 12px;
  }

  .process__num {
    font-size: 1.5rem;
    width: 38px;
  }
}

/* ── FLOW TUBE CONNECTOR ── */
.flow__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 72px;
  flex-shrink: 0;
  align-self: center;
}

.flow__tube {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.flow__tube::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 70%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  border-radius: 99px;
  animation: tubeSweep 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes tubeSweep {
  0% {
    left: -70%;
  }

  100% {
    left: 110%;
  }
}

.flow__tube__label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

@media (max-width: 768px) {
  .flow__arrow {
    flex-direction: row;
    width: auto;
    height: 44px;
    transform: none;
    gap: 6px;
  }

  .flow__tube {
    width: 44px;
    height: 6px;
  }

  .flow__tube__label {
    writing-mode: vertical-rl;
    font-size: 0.5rem;
  }
}

/* ── HERO SERPENT LINES ── */
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__line {
  position: absolute;
  left: var(--x, 50%);
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(110, 231, 183, 0.1) 30%,
      rgba(110, 231, 183, 0.1) 70%,
      transparent 100%);
}

.hero__line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -25%;
  width: 1px;
  height: 25%;
  background: linear-gradient(to bottom,
      transparent,
      var(--accent),
      rgba(110, 231, 183, 0.4));
  animation: snakeDrop var(--dur, 4s) cubic-bezier(0.4, 0, 0.6, 1) var(--delay, 0s) infinite;
}

@keyframes snakeDrop {
  0% {
    top: -25%;
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  94% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}