/* =============================================
   IISNO — Premium Light Design System
   Inspired by: Vercel · Stripe · Linear · Supabase
   Fonts: Plus Jakarta Sans + Inter
   ============================================= */

:root {
  /* ── Backgrounds ── */
  --bg-base:    #ffffff;
  --bg-surface: #f8fafc;
  --bg-elevated:#f1f5f9;
  --bg-card:    #ffffff;

  /* ── Text ── */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* ── Accents ── */
  --accent-primary: #6366f1;
  --accent-violet:  #8b5cf6;
  --accent-cyan:    #0ea5e9;
  --accent-green:   #10b981;
  --accent-glow:    rgba(99, 102, 241, 0.1);

  /* ── Gradients ── */
  --gradient-main:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-hero:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #0ea5e9 100%);
  --gradient-shift: linear-gradient(135deg, #6366f1, #8b5cf6, #0ea5e9, #6366f1);

  /* ── Borders ── */
  --border-subtle: rgba(15, 23, 42, 0.07);
  --border-medium: rgba(15, 23, 42, 0.12);
  --border-accent: rgba(99, 102, 241, 0.25);

  /* ── Shadows ── */
  --shadow-card:       0 1px 2px rgba(15,23,42,0.05), 0 4px 16px rgba(15,23,42,0.07);
  --shadow-card-hover: 0 0 0 1px rgba(99,102,241,0.15), 0 8px 32px rgba(15,23,42,0.1), 0 0 48px rgba(99,102,241,0.06);
  --shadow-glow:       0 0 60px rgba(99,102,241,0.08);
  --shadow-btn:        0 4px 20px rgba(99,102,241,0.28), 0 1px 0 rgba(255,255,255,0.15) inset;

  /* ── Typography ── */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ── Radius ── */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 28px;

  /* ── Transitions ── */
  --transition:      all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s  cubic-bezier(0.4, 0, 0.2, 1);
  --spring:          all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ==================== UTILITY ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.gradient-text {
  background: var(--gradient-shift);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition:
    opacity   0.72s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.72s cubic-bezier(0.4, 0, 0.2, 1),
    filter    0.72s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible     { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-delay-1     { transition-delay: 0.1s; }
.reveal-delay-2     { transition-delay: 0.2s; }
.reveal-delay-3     { transition-delay: 0.3s; }
.reveal-delay-4     { transition-delay: 0.4s; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 55%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-btn);
  border: 1px solid rgba(99,102,241,0.3);
}
.btn-primary:active { transform: scale(0.97) !important; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-medium);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(15, 23, 42, 0.04);
}

.btn-white {
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: #f0f0ff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.btn-white svg { flex-shrink: 0; }

/* ── Mouse-follow background glow ── */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.btn-primary::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.24) 0%, transparent 65%);
}
.btn-white::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,0.13) 0%, transparent 65%);
}
.btn-primary:hover::before,
.btn-white:hover::before { opacity: 1; }
/* Keep text/icons above the glow layer */
.btn > * { position: relative; z-index: 1; }

.btn-ghost-white {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15);
}

/* ==================== SECTION COMMON ==================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(99,102,241,0.06);
  margin-bottom: 20px;
}
.section-header  { text-align: center; margin-bottom: 72px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.032em;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.82;
}

/* ── Section gradient separators ── */
.services::before,
.processus::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.25), transparent);
}
.expertise::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.22), transparent);
}
.avantages::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.2), transparent);
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 4px 20px rgba(15,23,42,0.06);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.logo-mark {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text { color: var(--text-primary); }
.nav-links  { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(15,23,42,0.05); }
.nav-link.active { color: var(--text-primary) !important; }
.nav-link.nav-cta {
  background: rgba(99,102,241,0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(99,102,241,0.18);
  font-weight: 600;
}
.nav-link.nav-cta:hover {
  background: rgba(99,102,241,0.14);
  color: #4f46e5;
  border-color: rgba(99,102,241,0.32);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 100px;
  overflow: hidden;
  background: var(--bg-base);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* ── Lang switcher ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(15,23,42,0.05);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.lang-btn:hover { color: var(--text-primary); background: rgba(15,23,42,0.04); }
.lang-btn.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15,23,42,0.1);
}

/* Dot grid */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, black 15%, transparent 100%);
}

/* ── Aurora — rotating conic gradient ── */
.hero-aurora {
  position: absolute;
  top: 50%; left: 50%;
  width: 180%; height: 180%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(99,102,241,0.00)  0deg,
    rgba(99,102,241,0.12) 55deg,
    rgba(139,92,246,0.10) 110deg,
    rgba(14,165,233,0.08) 180deg,
    rgba(99,102,241,0.05) 250deg,
    rgba(99,102,241,0.00) 310deg,
    rgba(99,102,241,0.00) 360deg
  );
  filter: blur(72px);
  animation: auroraRotate 22s linear infinite;
  pointer-events: none;
}
@keyframes auroraRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Floating particles (injected via JS) ── */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.2;
  animation: particleFloat ease-in-out infinite;
  pointer-events: none;
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0)    translateX(0);   opacity: 0.12; }
  33%       { transform: translateY(-28px) translateX(10px); opacity: 0.32; }
  66%       { transform: translateY(14px)  translateX(-7px); opacity: 0.18; }
}

/* Soft color blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(99,102,241,0.17) 0%, transparent 65%);
  top: -250px; left: -250px;
}
.blob-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.13) 0%, transparent 65%);
  bottom: -120px; right: -150px;
  animation-delay: -6s;
}
.blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.10) 0%, transparent 65%);
  top: 25%; right: -80px;
  animation-delay: -3s;
}
.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.08);
  animation: orbPulse 9s ease-in-out infinite;
}
.orb-1 {
  width: 460px; height: 460px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orb-2 {
  width: 780px; height: 780px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(139,92,246,0.05);
  animation-delay: -4.5s;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0)    scale(1)    rotate(0deg); }
  33%       { transform: translateY(-50px) scale(1.07) rotate(4deg); }
  66%       { transform: translateY(24px)  scale(0.96) rotate(-3deg); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.8; transform: translate(-50%, -50%) scale(1.07); }
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 44px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(15,23,42,0.06);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(99,102,241,0.5); }
  50%       { box-shadow: 0 0 0 7px rgba(99,102,241,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text-primary);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 48px;
  font-weight: 400;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  padding: 20px 40px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-divider { width: 1px; height: 36px; background: var(--border-subtle); }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator { display: flex; flex-direction: column; align-items: center; }
.scroll-line {
  width: 1px; height: 58px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scrollLine 2.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ==================== SERVICES ==================== */
.services {
  padding: 140px 0;
  background: var(--bg-surface);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Card ── */
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 32px;
  overflow: hidden;
  cursor: default;
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(var(--card-lift, 0px));
  transition:
    border-color  0.3s ease,
    box-shadow    0.3s ease,
    transform     0.1s ease;
  will-change: transform;
  box-shadow: var(--shadow-card);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99,102,241,0.03) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover {
  --card-lift: -5px;
  border-color: rgba(99,102,241,0.18);
  box-shadow: var(--shadow-card-hover);
  transition:
    border-color  0.3s ease,
    box-shadow    0.3s ease,
    transform     0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover::before        { opacity: 1; }
.service-card:hover .card-glow     { opacity: 1; }
.service-card:hover .card-accent   { transform: scaleX(1); opacity: 1; }
.service-card:hover .service-icon  {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.28);
}

.card-glow {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99,102,241,0.05) 0%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 20px;
}
.service-list { display: flex; flex-direction: column; gap: 7px; }
.service-list li {
  font-size: 0.775rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  font-weight: 500;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.45;
}
.service-card--cta {
  background: linear-gradient(135deg,
    rgba(99,102,241,0.04) 0%,
    rgba(139,92,246,0.03) 100%
  );
  border: 1.5px dashed rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.service-card--cta:hover {
  background: linear-gradient(135deg,
    rgba(99,102,241,0.08) 0%,
    rgba(139,92,246,0.06) 100%
  );
  border-color: rgba(99,102,241,0.35);
}
.cta-inner { text-align: center; }
.cta-label {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.cta-inner h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.cta-inner p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.72;
}

/* ==================== EXPERTISE ==================== */
.expertise {
  padding: 140px 0;
  position: relative;
  background: var(--bg-base);
  overflow: hidden;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.tech-category:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.tech-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.tech-cat-icon {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  background: rgba(99,102,241,0.07);
  border-radius: 8px;
}
.tech-cat-header span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.tech-items { display: flex; flex-direction: column; gap: 10px; }
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  padding: 4px;
  border-radius: 8px;
}
.tech-item:hover { color: var(--text-primary); }
.tech-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.tech-logo.react   { background: rgba(97,218,251,0.12);  color: #0ea5e9; }
.tech-logo.ts      { background: rgba(49,120,198,0.12);  color: #3178c6; font-size: 0.78rem; }
.tech-logo.spring  { background: rgba(109,179,63,0.12);  color: #5a9e32; }
.tech-logo.node    { background: rgba(104,160,99,0.14);  color: #4a8a45; }
.tech-logo.aws     { background: rgba(255,153,0,0.12);   color: #d97706; }
.tech-logo.gcp     { background: rgba(66,133,244,0.12);  color: #2563eb; }
.tech-logo.docker  { background: rgba(13,183,237,0.12);  color: #0891b2; }
.tech-logo.k8s     { background: rgba(50,108,229,0.12);  color: #2563eb; }
.tech-logo.cicd    { background: rgba(124,58,237,0.1);   color: #7c3aed; }
.tech-logo.keycloak{ background: rgba(0,138,0,0.1);      color: #15803d; }
.tech-logo.oauth   { background: rgba(236,72,153,0.08);  color: #db2777; }
.tech-logo.oidc    { background: rgba(139,92,246,0.1);   color: #7c3aed; }

/* ==================== PROCESSUS ==================== */
.processus {
  padding: 140px 0;
  background: var(--bg-surface);
  position: relative;
}
.process-track { position: relative; }
.process-line {
  position: absolute;
  left: 40px; top: 24px; bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(99,102,241,0.35),
    rgba(139,92,246,0.15),
    transparent
  );
  opacity: 0.6;
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
  cursor: default;
}
.process-step:last-child { border-bottom: none; }
.process-step:hover .step-content { transform: translateX(10px); }
.process-step:hover .step-number {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.process-step:hover .step-icon {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--border-medium);
  letter-spacing: -0.06em;
  line-height: 1;
  padding-top: 10px;
  text-align: center;
  transition: var(--transition);
}
.step-content {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; gap: 10px;
}
.step-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-primary);
  transition: var(--transition);
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.82;
  max-width: 560px;
}

/* ==================== AVANTAGES ==================== */
.avantages {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}
.avantages-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.avantages-left  { position: sticky; top: 120px; }
.avantages-desc  { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.82; margin-bottom: 36px; }
.avantages-right { display: flex; flex-direction: column; }
.avantage-item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.avantage-item:last-child { border-bottom: none; }
.avantage-item:hover { padding-left: 12px; }
.avantage-item:hover .avantage-icon {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
}
.avantage-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0; margin-top: 2px;
  transition: var(--transition);
}
.avantage-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.avantage-item p { font-size: 0.855rem; color: var(--text-secondary); line-height: 1.82; }

/* ==================== CTA SECTION ==================== */
.cta-section { position: relative; padding: 160px 0; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0c0a1e 0%, #13102c 25%, #10082a 55%, #0a091c 100%);
}
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px; height: 500px;
  background: radial-gradient(ellipse,
    rgba(99,102,241,0.28) 0%,
    rgba(139,92,246,0.14) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: ctaGlow 7s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.038em;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 100px rgba(99,102,241,0.22);
}
.cta-desc { font-size: 1.05rem; color: rgba(255,255,255,0.48); margin-bottom: 48px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.cta-contact-info { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.cta-contact-info span {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.28);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  font-size: 0.845rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-top: 16px; margin-bottom: 24px;
  max-width: 260px;
}
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--bg-card);
}
.social-link:hover {
  color: var(--accent-primary);
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.05);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.845rem; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent-primary); }
.footer-contact { gap: 12px !important; }
.footer-contact li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.845rem; color: var(--text-muted);
}
.footer-contact li svg { flex-shrink: 0; opacity: 0.45; }
.footer-contact li a { color: var(--text-secondary); transition: var(--transition); }
.footer-contact li a:hover { color: var(--accent-primary); }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.2);
  background: rgba(22,163,74,0.06);
  padding: 6px 14px;
  border-radius: 100px;
  margin-top: 20px;
  font-weight: 500;
}
.badge-pulse {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.775rem;
  color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}

/* ==================== RÉALISATIONS ==================== */
.realisations {
  padding: 140px 0;
  background: var(--bg-surface);
  position: relative;
}
.realisations::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.25), transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ── Base card ── */
.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-card);
}

/* ── Featured (live) card ── */
.project-card--featured {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-color: rgba(99,102,241,0.16);
  background: linear-gradient(145deg, rgba(99,102,241,0.03) 0%, #fff 50%);
}
.project-card--featured:hover {
  border-color: rgba(99,102,241,0.32);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.project-card--featured:hover .project-footer svg {
  transform: translateX(4px);
}
.project-card--featured:hover .project-glow { opacity: 1; }

/* ── Coming-soon card ── */
.project-card--soon {
  opacity: 0.85;
}
.project-card--soon:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.project-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-icon--car   { background: rgba(99,102,241,0.08); color: var(--accent-primary); border: 1px solid rgba(99,102,241,0.15); }
.project-icon--bus   { background: rgba(14,165,233,0.08); color: #0ea5e9; border: 1px solid rgba(14,165,233,0.15); }
.project-icon--track { background: rgba(139,92,246,0.08); color: var(--accent-violet); border: 1px solid rgba(139,92,246,0.15); }
.project-icon--admin { background: rgba(16,185,129,0.08); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.15); }

/* Status badges */
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 100px;
}
.project-status--live {
  background: rgba(16,185,129,0.08);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}
.project-status--soon {
  background: rgba(99,102,241,0.07);
  color: var(--accent-primary);
  border: 1px solid rgba(99,102,241,0.16);
}
.status-dot {
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: dotPulse 2.5s ease-in-out infinite;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 24px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.project-url {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.01em;
}
.project-footer svg {
  color: var(--accent-primary);
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.project-card--featured:hover .project-footer svg { opacity: 1; }

/* Coming soon overlay */
.project-soon-overlay {
  position: absolute;
  top: 16px; right: 16px;
  pointer-events: none;
}
.soon-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid     { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .avantages-inner { grid-template-columns: 1fr; gap: 48px; }
  .avantages-left  { position: static; }
  .tech-grid       { grid-template-columns: repeat(2, 1fr); }
  .hero-stats      { padding: 16px 20px; }
  .stat            { padding: 0 20px; }
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(24px);
    padding: 16px; border-bottom: 1px solid var(--border-subtle);
    gap: 2px; box-shadow: 0 12px 32px rgba(15,23,42,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-container  { position: relative; }
  .nav-toggle     { display: flex; }
  .services-grid  { grid-template-columns: 1fr; }
  .tech-grid      { grid-template-columns: repeat(2, 1fr); }
  .process-step   { grid-template-columns: 60px 1fr; gap: 16px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .hero-stats     { flex-direction: column; gap: 14px; border: none; background: none; padding: 0; box-shadow: none; }
  .stat-divider   { width: 40px; height: 1px; }
  .stat           { padding: 0; }
  .hero           { padding: 120px 20px 80px; }
  .services, .expertise, .processus, .avantages, .realisations, .cta-section { padding: 88px 0; }
  .section-header { margin-bottom: 48px; }
}
@media (max-width: 480px) {
  .tech-grid    { grid-template-columns: 1fr; }
  .cta-actions  { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}
