/* Marche Public Veille -- Styles communs */

:root {
  --c-primary: #0b3d91;
  --c-primary-light: #1d4ed8;
  --c-accent: #ff6b35;
  --c-bg: #f7f9fc;
  --c-text: #0f172a;
  --c-muted: #64748b;
}

html { scroll-behavior: smooth; }
body { background: var(--c-bg); color: var(--c-text); font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* Hero gradient */
.hero-bg {
  background:
    radial-gradient(ellipse at top, rgba(102,126,234,0.18), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

/* Animation reveal */
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal 0.6s ease both; }
.reveal-2 { animation: reveal 0.6s 0.1s ease both; }
.reveal-3 { animation: reveal 0.6s 0.2s ease both; }

/* Boutons custom */
.btn-primary {
  background: linear-gradient(135deg, #0b3d91, #1d4ed8);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(11,61,145,0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,61,145,0.42); }

.btn-secondary {
  background: white;
  color: var(--c-primary);
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid var(--c-primary);
  display: inline-block;
  transition: all 0.18s ease;
}
.btn-secondary:hover { background: var(--c-primary); color: white; }

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15,23,42,0.10); }

/* Badges urgence */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-urgent { background: #fee2e2; color: #b91c1c; }
.badge-moyen  { background: #fef3c7; color: #92400e; }
.badge-normal { background: #dcfce7; color: #166534; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* Step dots */
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #0b3d91, #1d4ed8);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(11,61,145,0.30);
}

/* Nav active */
nav a.active { color: var(--c-primary); font-weight: 700; }

/* Print-friendly */
@media print {
  nav, footer, .no-print { display: none !important; }
}

/* ============================================
   TECH / INNOVATION VISUAL EFFECTS
   ============================================ */

/* Gradient animated background */
.bg-tech-hero {
  background:
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(120,119,198,0.3), transparent),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(255,107,53,0.15), transparent),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(56,189,248,0.18), transparent),
    linear-gradient(180deg, #0a0e27 0%, #0f1733 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Grid pattern overlay */
.bg-tech-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 40%, transparent 100%);
}

/* Glow text */
.glow-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(168,85,247,0.3);
}

.glow-text-light {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glassmorphism card */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}
.glass-dark {
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

/* Glowing button */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  background-size: 200% 200%;
  color: white;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
  box-shadow:
    0 8px 24px -8px rgba(139, 92, 246, 0.5),
    0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  animation: gradient-shift 6s ease infinite;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px -8px rgba(139, 92, 246, 0.7),
    0 0 0 1px rgba(255,255,255,0.1);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Glowing pulse circles (used for "engine running" indicators) */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.5); opacity: 0;   }
}

/* Floating elements animation */
.float {
  animation: float 6s ease-in-out infinite;
}
.float-2 { animation: float 7s ease-in-out infinite 0.5s; }
.float-3 { animation: float 8s ease-in-out infinite 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Animated gradient border */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 16px;
  z-index: 1;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
  background-size: 300% 300%;
  border-radius: 18px;
  z-index: -1;
  animation: gradient-shift 4s ease infinite;
}

/* Code-like block */
.code-block {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  background: rgba(15,23,42,0.95);
  color: #94a3b8;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border-left: 3px solid #818cf8;
  font-size: 0.875rem;
  line-height: 1.6;
}
.code-block .green { color: #4ade80; }
.code-block .blue  { color: #60a5fa; }
.code-block .pink  { color: #f472b6; }
.code-block .yellow{ color: #fbbf24; }
.code-block .gray  { color: #64748b; }

/* Connector lines (animated) */
@keyframes flow {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0;   }
}
.flow-line {
  stroke-dasharray: 5 5;
  animation: flow 1.5s linear infinite;
}

/* Type writer effect */
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50%      { border-color: #818cf8; }
}
.type-caret {
  border-right: 3px solid #818cf8;
  animation: blink-caret 0.75s step-end infinite;
}

/* Soft glowing badge for "live" indicators */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(74,222,128,0.3);
}

/* ============================================
   WOW DESIGN — Premium SaaS 2026
   ============================================ */

/* Mesh gradient hero (anime, type Anthropic / Vercel / Stripe) */
.hero-mesh {
  position: relative;
  background: #050b24;
  overflow: hidden;
  isolation: isolate;
}
.hero-mesh::before,
.hero-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: mesh-float 18s ease-in-out infinite;
}
.hero-mesh::before {
  width: 700px; height: 700px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}
.hero-mesh::after {
  width: 800px; height: 800px;
  bottom: -200px; right: -150px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation-delay: -9s;
}
.hero-mesh > .mesh-extra {
  position: absolute;
  width: 600px; height: 600px;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  animation: mesh-float 22s ease-in-out infinite -5s;
  pointer-events: none;
}
@keyframes mesh-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-40px, 40px) scale(0.95); }
}

/* Hero grid pattern overlay (subtle) */
.hero-mesh > .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* Big bold gradient title (kinetic) */
.kinetic-title {
  background: linear-gradient(120deg, #ffffff 0%, #c7d2fe 25%, #ffffff 50%, #fbcfe8 75%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: kinetic-shimmer 6s ease-in-out infinite;
}
@keyframes kinetic-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Premium glowing button */
.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  background-size: 200% 200%;
  color: white;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.3px;
  box-shadow:
    0 10px 30px -10px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
  animation: gradient-shift 8s ease infinite;
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px -10px rgba(139, 92, 246, 0.7),
    0 0 0 1px rgba(255,255,255,0.2) inset;
  background-position: 100% 50%;
}
.btn-premium-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.25s ease;
}
.btn-premium-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* Bento grid item */
.bento {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 3px rgba(15,23,42,0.04),
    0 8px 24px -10px rgba(15,23,42,0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  overflow: hidden;
}
.bento:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    0 1px 3px rgba(15,23,42,0.06),
    0 20px 40px -15px rgba(99, 102, 241, 0.25);
}
.bento-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-color: rgba(255,255,255,0.08);
}
.bento-gradient-1 {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
}
.bento-gradient-2 {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  color: white;
  border: none;
}
.bento-gradient-3 {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  color: white;
  border: none;
}

/* Number counter giant style */
.counter-giant {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Spotlight effect (cursor follow) - optional via JS */
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(99, 102, 241, 0.15),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.spotlight:hover::before { opacity: 1; }

/* Marquee logos / clients */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

/* Number pop on scroll (subtle entrance) */
@keyframes pop-in {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.pop-in { animation: pop-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pop-in-2 { animation: pop-in 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pop-in-3 { animation: pop-in 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pop-in-4 { animation: pop-in 0.7s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Halo effect around hero CTA */
.halo {
  position: relative;
}
.halo::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 60%);
  z-index: -1;
  animation: halo-pulse 3s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Aurora text border */
.aurora-border {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.aurora-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #06b6d4, #6366f1);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aurora-rotate 6s linear infinite;
}
@keyframes aurora-rotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
