/* NovaFlows — style.css v5 LIGHT+DARK */
@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');

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(0,113,227,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,113,227,0.6); }

/* =============================================
   ROOT — Light (défaut)
   ============================================= */
:root {
  --font-display: 'Syne', 'SF Pro Display', -apple-system, system-ui, sans-serif;
  --font-body: 'DM Sans', 'SF Pro Text', -apple-system, system-ui, sans-serif;

  /* Fond */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;

  /* Bordures */
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(0,0,0,0.14);
  --border-blue: rgba(0,113,227,0.2);

  /* Texte */
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-subtle: #aeaeb2;

  /* Bleu */
  --blue: #0071e3;
  --blue-light: #147ce5;
  --blue-pale: rgba(0,113,227,0.08);

  /* Nav */
  --nav-bg: rgba(255,255,255,0.72);
  --nav-bg-scrolled: rgba(255,255,255,0.9);
  --nav-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.04);

  /* Grille / grid */
  --grid-line: rgba(0,0,0,0.028);

  /* Orbes hero */
  --orb1-color: rgba(0,113,227,0.06);
  --orb2-color: rgba(20,124,229,0.05);
  --orb3-color: rgba(0,113,227,0.04);

  /* Aurora hero */
  --aurora-1: rgba(0,113,227,0.07);
  --aurora-2: rgba(20,124,229,0.04);

  /* Menus / modals */
  --mobile-menu-bg: rgba(255,255,255,0.97);
  --modal-backdrop: rgba(0,0,0,0.4);

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --transition: 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* =============================================
   DARK MODE
   ============================================= */
[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0a0a12;
  --surface: #0e0e1c;
  --surface-2: #141425;
  --surface-3: #1a1a30;

  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --border-blue: rgba(41,151,255,0.22);

  --text: #f5f5f7;
  --text-muted: #86868b;
  --text-subtle: #3a3a50;

  --blue: #2997ff;
  --blue-light: #5ac8fa;
  --blue-pale: rgba(41,151,255,0.08);

  --nav-bg: rgba(0,0,0,0.55);
  --nav-bg-scrolled: rgba(0,0,0,0.92);
  --nav-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.5);

  --grid-line: rgba(255,255,255,0.022);

  --orb1-color: rgba(41,151,255,0.12);
  --orb2-color: rgba(90,200,250,0.08);
  --orb3-color: rgba(41,151,255,0.06);

  --aurora-1: rgba(41,151,255,0.13);
  --aurora-2: rgba(20,124,229,0.06);

  --mobile-menu-bg: rgba(0,0,0,0.97);
  --modal-backdrop: rgba(0,0,0,0.85);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
}

*, *::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;
  transition: background-color 0.35s ease, color 0.35s ease;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── Transitions globales pour le switch ── */
.nav, .service-card, .auto-card, .app-pill, .flow__step,
.hero__stats, .stat, .video-modal__container, .search-modal__box,
.cta__inner, .footer, .automations, .casestudy, .process {
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

/* ── BOUTON THÈME ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
  color: var(--text);
  transform: rotate(12deg) scale(1.08);
}
/* En mode clair : lune visible, soleil caché */
.theme-icon--sun { display: none; }
.theme-icon--moon { display: block; }
/* En mode sombre : soleil visible, lune cachée */
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

/* ── Page spotlight ── */
#page-spotlight {
  position: fixed;
  width: 600px; height: 600px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(0,113,227,0.04) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  will-change: left, top;
}

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

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

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.section-label::before {
  content: ''; width: 20px; height: 1px;
  background: var(--blue); opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,3.8vw,3rem); font-weight: 700;
  line-height: 1.1; color: var(--text); margin-bottom: 18px;
  letter-spacing: -0.022em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), #147ce5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { max-width: 540px; color: var(--text-muted); font-size: 1.03rem; line-height: 1.75; }
.section-header { margin-bottom: 60px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.93rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none; position: relative;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue); color: #fff; font-weight: 600;
}
.btn--primary:hover {
  background: #0077ed;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,113,227,0.28);
}
.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-2);
}
.btn--large { padding: 17px 38px; font-size: 1.02rem; }

/* ── 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: 68px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: var(--nav-bg-scrolled);
  box-shadow: var(--nav-shadow);
}
.nav__logo { display: flex; align-items: center; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__cta {
  padding: 9px 20px; border-radius: 100px;
  background: var(--blue); color: #fff !important;
  font-weight: 600 !important; font-size: 0.86rem !important;
  -webkit-text-fill-color: #fff !important;
  transition: background var(--transition), box-shadow var(--transition) !important;
}
.nav__cta:hover { background: #0077ed !important; box-shadow: 0 4px 14px rgba(0,113,227,0.28); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.3s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--mobile-menu-bg); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.mobile-menu a { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--text); transition: color var(--transition); }
.mobile-menu a:hover { color: var(--blue); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 140px 40px 100px;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

/* Aurora */
.hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, var(--aurora-1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 25% at 80% 15%, var(--aurora-2) 0%, transparent 55%);
  pointer-events: none;
  transition: background 0.35s ease;
}

/* Grid */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 20%, transparent 100%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(120px); animation: float 12s ease-in-out infinite; }
.orb--1 { width: 700px; height: 700px; background: var(--orb1-color); top: -280px; right: -180px; animation-delay: 0s; }
.orb--2 { width: 450px; height: 450px; background: var(--orb2-color); bottom: -180px; left: -80px; animation-delay: -5s; }
.orb--3 { width: 280px; height: 280px; background: var(--orb3-color); top: 40%; left: 38%; animation-delay: -8s; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-28px,28px) scale(1.04); }
  66% { transform: translate(24px,-16px) scale(0.97); }
}

.hero__content { position: relative; z-index: 2; max-width: 900px; 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 rgba(0,113,227,0.18);
  background: rgba(0,113,227,0.05);
  font-size: 0.78rem; color: var(--blue); margin-bottom: 36px;
  letter-spacing: 0.01em; font-weight: 500;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(0.7); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem,8vw,6.5rem);
  font-weight: 800; line-height: 1.04;
  color: var(--text); margin-bottom: 28px;
  letter-spacing: -0.035em;
}
.hero__subtitle {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 52px; line-height: 1.8;
  font-weight: 300;
}
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 88px; }

/* ── STATS ── */
.hero__stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.hero__stats:hover { box-shadow: var(--shadow-md); }
.stat {
  flex: 1; text-align: center; padding: 28px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(0,113,227,0.03); }
.stat__number {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--blue), #147ce5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat > span:nth-child(2) {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), #147ce5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat__label { display: block; font-size: 0.77rem; color: var(--text-muted); margin-top: 6px; }
.stat__divider { display: none; }

.hero__scroll {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-subtle); font-size: 0.63rem; letter-spacing: 0.16em; 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; }
}

/* ── HERO 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(0,113,227,0.06) 30%, rgba(0,113,227,0.06) 70%, transparent 100%);
}
.hero__line::after {
  content: ''; position: absolute; left: -1px; top: -35%; width: 2px; height: 35%;
  background: linear-gradient(to bottom, transparent, var(--line-color, rgba(0,113,227,0.7)), rgba(255,255,255,0.5));
  animation: snakeDrop var(--dur,4s) cubic-bezier(.4,0,.6,1) var(--delay,0s) infinite;
  border-radius: 2px;
}
@keyframes snakeDrop {
  0% { top:-35%; opacity:0; }
  8% { opacity:1; }
  92% { opacity:1; }
  100% { top:110%; opacity:0; }
}

/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.7s ease,transform 0.7s ease; }
.reveal.visible { opacity:1; transform:none; }
.reveal--delay-1 { transition-delay:0.1s; }
.reveal--delay-2 { transition-delay:0.2s; }
.reveal--delay-3 { transition-delay:0.32s; }
.reveal--delay-4 { transition-delay:0.44s; }

/* ── SERVICES ── */
.services { padding: 120px 0; background: var(--bg); }
.services__grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto; gap: 16px;
}
.service-card {
  padding: 36px 32px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
  --mouse-x: 50%; --mouse-y: 50%;
}
.service-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(200px circle at var(--mouse-x) var(--mouse-y), rgba(0,113,227,0.05), transparent 80%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.service-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::after { opacity: 1; }
.service-card--large { grid-column: 1 / 3; }

.service-card__icon {
  width: 48px; height: 48px; color: var(--blue); margin-bottom: 24px;
  background: rgba(0,113,227,0.07); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,113,227,0.1);
  transition: background 0.3s, box-shadow 0.3s;
}
.service-card:hover .service-card__icon { background: rgba(0,113,227,0.12); box-shadow: 0 0 16px rgba(0,113,227,0.1); }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.68; margin-bottom: 18px; }
.service-card__tags { display: flex; gap: 7px; flex-wrap: wrap; }
.service-card__tags span {
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 0.73rem; color: var(--text-muted);
}

.service-card--accent {
  background: linear-gradient(150deg, rgba(0,113,227,0.04), var(--bg-alt));
  border-color: rgba(0,113,227,0.1);
}
.service-card__number {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue), #147ce5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.service-card--video { cursor: pointer; }
.service-card--video:hover { border-color: rgba(0,113,227,0.35); box-shadow: 0 12px 40px rgba(0,113,227,0.08); }
.video-hint {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid rgba(0,113,227,0.25); background: rgba(0,113,227,0.06);
  font-size: 0.77rem; font-weight: 600; color: var(--blue); transition: all var(--transition);
}
.service-card--video:hover .video-hint { background: rgba(0,113,227,0.12); border-color: rgba(0,113,227,0.5); }

/* ── AUTOMATIONS ── */
.automations { padding: 120px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.automations__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.auto-card {
  padding: 26px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
  --mouse-x: 50%; --mouse-y: 50%;
}
.auto-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(160px circle at var(--mouse-x) var(--mouse-y), rgba(0,113,227,0.05), transparent 80%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.auto-card:hover { border-color: var(--border-blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.auto-card:hover::after { opacity: 1; }
.auto-card__icon {
  width: 38px; height: 38px; color: var(--blue); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,113,227,0.07); border-radius: 9px; border: 1px solid rgba(0,113,227,0.1);
}
.auto-card__icon svg { width: 20px; height: 20px; }
.auto-card h4 { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.auto-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* ── APPS ── */
.apps { padding: 120px 0; background: var(--bg); }
.apps__body { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.apps__text { max-width: 460px; }
.apps__text p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 28px; }
.apps__right { overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.apps__marquee-wrap {
  display: flex; flex-direction: column; gap: 11px; overflow: hidden;
  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%);
}
.apps__search-badge { align-self: center; margin-top: 16px; }

.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: flex; gap: 9px; width: max-content;
  transform: translateZ(0); 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; }
.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: 8px 15px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  font-size: 0.82rem; color: var(--text-muted); white-space: nowrap;
  transition: all var(--transition); cursor: default; flex-shrink: 0;
}
.app-pill:hover { border-color: rgba(0,113,227,0.35); color: var(--blue); background: rgba(0,113,227,0.04); }

/* ── SEARCH BADGE ── */
.apps__search-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid rgba(0,113,227,0.22); background: rgba(0,113,227,0.05);
  font-size: 0.81rem; font-weight: 500; color: var(--blue); cursor: pointer; transition: all var(--transition);
}
.apps__search-badge:hover { background: rgba(0,113,227,0.1); border-color: rgba(0,113,227,0.4); transform: translateY(-1px); }

/* ── 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.28s;
}
.search-modal.open { opacity: 1; pointer-events: all; }
.search-modal__backdrop { position: absolute; inset: 0; background: var(--modal-backdrop); backdrop-filter: blur(12px); }
.search-modal__box {
  position: relative; z-index: 2; width: 100%; max-width: 580px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  transform: translateY(-16px); transition: transform 0.3s cubic-bezier(.25,.46,.45,.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(--blue); }
.search-modal__input::placeholder { color: var(--text-muted); }
.search-modal__close-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted); cursor: pointer; font-size: 0.7rem; 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: 300px; overflow-y: auto; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-modal__results::-webkit-scrollbar { width: 3px; }
.search-modal__results::-webkit-scrollbar-thumb { background: var(--text-subtle); border-radius: 2px; }
.search-result-pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface-2); font-size: 0.83rem; color: var(--text-muted); cursor: default; transition: all var(--transition); }
.search-result-pill:hover { border-color: rgba(0,113,227,0.35); color: var(--blue); background: rgba(0,113,227,0.05); }
.search-result-pill.highlight { border-color: rgba(0,113,227,0.4); color: var(--blue); background: rgba(0,113,227,0.07); }
.search-modal__empty { width: 100%; text-align: center; padding: 28px 20px; color: var(--text-muted); font-size: 0.9rem; }
.search-modal__footer { padding: 11px 20px; border-top: 1px solid var(--border); font-size: 0.73rem; color: var(--text-subtle); text-align: center; }

/* ── CASE STUDY ── */
.casestudy { padding: 120px 0; background: var(--bg-alt); 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: 155px; max-width: 215px; text-align: center;
  padding: 30px 20px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.flow__step:hover { border-color: var(--border-blue); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.flow__step { border-top: 2px solid transparent; }
.flow__step--1 { border-top-color: var(--blue); }
.flow__step--2 { border-top-color: #147ce5; }
.flow__step--3 { border-top-color: #3a8fd1; }
.flow__step--4 { border-top-color: #5aa0e0; }
.flow__step::before { content:attr(data-step); position:absolute; top:11px; right:13px; font-family:var(--font-display); font-size:0.6rem; font-weight:800; letter-spacing:.08em; color: rgba(0,113,227,0.35); }
.flow__icon { width:46px; height:46px; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; border-radius:11px; border:1px solid rgba(0,113,227,0.12); background:rgba(0,113,227,0.06); color:var(--blue); }
.flow__icon svg { width:24px; height:24px; }
.flow__label { font-family:var(--font-display); font-size:0.93rem; font-weight:700; margin-bottom:9px; color:var(--text); }
.flow__desc { font-size:0.8rem; color:var(--text-muted); line-height:1.56; }
.flow__arrow { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; width:68px; flex-shrink:0; align-self:center; }
.flow__tube { width:100%; height:4px; background:rgba(0,0,0,0.06); 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(--blue),#147ce5,transparent);
  border-radius:99px; animation:tubeSweep 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes tubeSweep { 0%{left:-70%;} 100%{left:110%;} }
.flow__tube__label { font-family:var(--font-display); font-size:0.5rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:var(--text-subtle); }
.flow__note { display:flex; align-items:center; justify-content:center; gap:10px; font-size:0.86rem; padding:14px 26px; border-radius:100px; border:1px solid var(--border); background:rgba(0,113,227,0.04); width:fit-content; margin:0 auto; color:var(--blue); }

/* ── PROCESS ── */
.process { padding: 120px 0; background: var(--bg); }
.process__steps { display:flex; flex-direction:column; gap:0; max-width:760px; }
.process__step { display:flex; gap:44px; 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(--blue),#147ce5); transform:scaleY(0); transition:transform var(--transition); transform-origin:top; }
.process__step:hover::before { transform:scaleY(1); }
.process__step:hover { padding-left:22px; }
.process__num { font-family:var(--font-display); font-size:3rem; font-weight:800; line-height:1; flex-shrink:0; width:76px; position:relative; }
.process__num::before { content:attr(data-num); display:block; color:var(--text-subtle); transition:opacity var(--transition); }
.process__num::after { content:attr(data-num); display:block; position:absolute; top:0; left:0; background:linear-gradient(135deg,var(--blue),#147ce5); -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:11px; color:var(--text); }
.process__content p { color:var(--text-muted); font-size:0.96rem; line-height:1.72; }

/* ── CTA ── */
.cta { padding: 140px 0; position:relative; overflow:hidden; text-align:center; background: var(--bg-alt); border-top:1px solid var(--border); }
.cta__bg { position:absolute; inset:0; pointer-events:none; }
.orb--cta1 { width:600px; height:600px; background:var(--orb1-color); top:-280px; left:50%; transform:translateX(-50%); filter:blur(130px); opacity:1.5; }
.orb--cta2 { width:350px; height:350px; background:var(--orb2-color); bottom:-160px; right:10%; filter:blur(100px); opacity:1.5; }
.cta__inner {
  position:relative; z-index:2;
  max-width:760px; margin:0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 56px;
  box-shadow: var(--shadow-lg);
}
.cta__title { font-family:var(--font-display); font-size:clamp(2.2rem,5vw,3.8rem); font-weight:800; line-height:1.08; margin-bottom:22px; letter-spacing:-.025em; }
.cta__desc { max-width:480px; margin:0 auto 44px; color:var(--text-muted); font-size:1rem; line-height:1.78; font-weight:300; }
.cta__note { margin-top:20px; font-size:0.8rem; color:var(--text-subtle); letter-spacing:.04em; }

/* ── RÉALISATIONS TEASER ── */
.showcase-teaser { padding: 90px 0; text-align: center; }
.showcase-teaser__inner { max-width: 560px; margin: 0 auto; }
.showcase-teaser__title { font-family:var(--font-display); font-size: clamp(1.7rem,3.4vw,2.4rem); font-weight:700; letter-spacing:-.02em; margin-bottom: 30px; }

/* ── FOOTER ── */
.footer { padding:48px 0 32px; border-top:1px solid var(--border); background: var(--bg); }
.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.79rem; color:var(--text-subtle); margin-top:6px; }
.footer__links { display:flex; gap:26px; flex-wrap:wrap; }
.footer__links a { font-size:0.86rem; 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.79rem; color:var(--text-subtle); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ── 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 .3s ease; }
.video-modal.open { opacity:1; pointer-events:all; }
.video-modal__backdrop { position:absolute; inset:0; background:var(--modal-backdrop); backdrop-filter:blur(16px); }
.video-modal__container {
  position:relative; z-index:2; background:var(--surface);
  border:1px solid var(--border); border-radius:24px; padding:40px; max-width:760px; width:100%;
  box-shadow:0 40px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.04);
  transform:translateY(24px) scale(.97); transition:transform .38s cubic-bezier(.25,.46,.45,.94);
}
.video-modal.open .video-modal__container { transform:translateY(0) scale(1); }
.video-modal__close { position:absolute; top:16px; right:16px; width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:var(--surface-2); 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-3); }
.video-modal__header { margin-bottom:24px; }
.video-modal__title { font-family:var(--font-display); font-size:1.35rem; font-weight:700; color:var(--text); margin-bottom:7px; }
.video-modal__desc { font-size:0.91rem; color:var(--text-muted); line-height:1.6; }
.video-wrapper { position:relative; padding-bottom:56.25%; 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(22px); transition:opacity .6s ease,transform .6s ease; }
.fade-up.visible { opacity:1; transform:none; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@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; }
}
@media (max-width: 768px) {
  .nav { padding:0 20px; height:62px; }
  .nav__links { display:none; }
  .nav__burger { display:flex; }
  .hero { padding:90px 20px 70px; min-height:100svh; }
  .hero__title { font-size:clamp(2.2rem,11vw,3.5rem); }
  .hero__subtitle { font-size:1rem; margin-bottom:36px; }
  .hero__actions { flex-direction:column; align-items:center; gap:10px; margin-bottom:52px; }
  .hero__actions .btn { width:100%; justify-content:center; max-width:300px; }
  .hero__stats { flex-direction:row; border-radius:14px; }
  .stat { padding:18px 14px; }
  .stat__number { font-size:1.55rem; }
  .stat > span:nth-child(2) { font-size:1.25rem; }
  .stat__label { font-size:0.64rem; }
  .services,.apps,.process { padding:72px 0; }
  .automations,.casestudy { padding:72px 0; }
  .cta { padding:80px 0; }
  .services__grid { grid-template-columns:1fr; gap:12px; }
  .service-card--large { grid-column:1; }
  .service-card { padding:26px 20px; }
  .automations__grid { grid-template-columns:1fr 1fr; gap:10px; }
  .apps__body { grid-template-columns:1fr; gap:36px; }
  .apps__text { max-width:100%; }
  .flow { flex-direction:column; align-items:center; }
  .flow__step { max-width:100%; width:100%; min-width:unset; }
  .flow__arrow { flex-direction:row; width:auto; height:40px; gap:6px; padding:0; }
  .flow__tube { width:40px; height:4px; }
  .flow__tube__label { writing-mode:vertical-rl; }
  .process__step { gap:18px; padding:26px 0; }
  .process__num { font-size:2rem; width:50px; }
  .process__content h3 { font-size:1.05rem; }
  .cta__inner { padding:48px 24px; }
  .btn--large { padding:15px 30px; width:100%; max-width:300px; }
  .footer__inner { flex-direction:column; gap:20px; }
  .section-title { font-size:clamp(1.7rem,6vw,2.2rem); }
  .section-header { margin-bottom:40px; }
}
@media (max-width: 480px) {
  .container { padding:0 18px; }
  .hero { padding:76px 18px 60px; }
  .hero__title { font-size:clamp(1.9rem,10vw,2.8rem); }
  .hero__stats { flex-direction:column; border-radius:14px; overflow:hidden; }
  .stat { border-right:none; border-bottom:1px solid var(--border); padding:14px 20px; display:flex; align-items:center; gap:12px; text-align:left; }
  .stat:last-child { border-bottom:none; }
  .automations__grid { grid-template-columns:1fr; }
  .flow__step { padding:22px 16px; }
  .video-modal { padding:10px; }
  .video-modal__container { padding:20px 16px; border-radius:16px; }
  .video-modal__title { font-size:1rem; }
  .hero__scroll { display:none; }
  .cta__inner { padding:40px 20px; border-radius:20px; }
  .apps__search-badge { width:100%; justify-content:center; }
  .section-title { font-size:clamp(1.6rem,9vw,2rem); }
}
@media (max-width: 360px) {
  .hero__title { font-size:1.7rem; }
  .nav { padding:0 14px; }
  .container { padding:0 14px; }
}
