/**
 * Axioneer Studio - Design moderne et professionnel
 * Styles CSS complets avec animations et effets avancés
 */

/* ==================== VARIABLES ==================== */
:root {
  /* Couleurs principales */
  --bg-primary: #0a0f1e;
  --bg-secondary: #0f1729;
  --bg-tertiary: #151d33;

  /* Texte */
  --text-primary: #ffffff;
  --text-secondary: #b4c1e0;
  --text-muted: #7889ab;

  /* Accents */
  --accent-cyan: #00d4ff;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-green: #10b981;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-purple)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-pink)
  );

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 96px;

  /* Transitions optimisées */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Easing functions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Courier New", monospace;
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
/* Pour Chromium/WebKit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 6px;
  border: 2px solid var(--bg-secondary);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    var(--accent-cyan),
    var(--accent-purple),
    var(--accent-pink)
  );
}

/* Pour Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-secondary);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-secondary);
}

/* ==================== PARTICLES BACKGROUND ==================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 212, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(168, 85, 247, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(236, 72, 153, 0.03) 0%,
      transparent 50%
    );
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: float 25s ease-in-out infinite;
  will-change: transform;
}

.particles::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
  top: -200px;
  right: -200px;
  animation-delay: -12s;
}

.particles::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
  bottom: -250px;
  left: -250px;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(50px, -50px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) rotate(240deg) scale(0.9);
  }
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-base);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.6s var(--ease-out);
  will-change: transform, opacity;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 15, 30, 0.95);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.logo-link:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.nav-link {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.nav-cta {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.nav-link.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, border-color 180ms ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 200ms ease;
  transform-origin: center;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.badge-icon {
  font-size: 18px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -2px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-smooth), height 0.4s var(--ease-smooth);
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  position: relative;
  z-index: 1;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.stat-icon {
  font-size: 24px;
}

.stat-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Visual - Floating Cards */
.hero-visual {
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  animation: floatCard 6s ease-in-out infinite,
    fadeInCard 0.8s ease-out forwards;
  will-change: transform, opacity;
}

.card-1 {
  top: 0;
  left: 0;
  width: 250px;
  animation-delay: 0s, 0.2s;
}

.card-2 {
  top: 150px;
  right: 0;
  width: 280px;
  animation-delay: 2s, 0.4s;
}

.card-3 {
  bottom: 0;
  left: 50%;
  width: 240px;
  animation-delay: 4s, 0.6s;
}

/* Fix card-3 initial position */
.card-3.floating-card {
  transform: translateX(-50%);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Separate animation for card-3 to maintain centering */
.card-3 {
  animation: floatCard3 6s ease-in-out infinite 4s,
    fadeInCard3 0.8s ease-out 0.6s forwards;
}

@keyframes floatCard3 {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-20px) rotate(2deg);
  }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInCard3 {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.card-icon {
  font-size: 32px;
  margin-bottom: var(--spacing-xs);
}

.card-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.card-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -1px;
  animation: titleReveal 0.7s var(--ease-out) 0.1s backwards;
  will-change: transform, opacity;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  animation: subtitleReveal 0.6s var(--ease-out) 0.15s backwards;
  will-change: transform, opacity;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes subtitleReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==================== SERVICES ==================== */
.services {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.02),
    transparent
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  position: relative;
  z-index: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  z-index: 1;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.35),
    rgba(168, 85, 247, 0.22),
    rgba(236, 72, 153, 0.18)
  );
  opacity: 0;
  pointer-events: none;
  filter: blur(0);
  transition: opacity var(--transition-base);
  z-index: -1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-bounce);
  z-index: 1;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 212, 255, 0.3);
  z-index: 10;
}

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

.service-card.featured {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.service-card.featured::after {
  opacity: 0.55;
}

.featured-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  padding: 6px 12px;
  background: var(--gradient-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: var(--spacing-sm);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-icon i {
  font-size: inherit;
  line-height: 1;
}

.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.service-features li > i.fa-square-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== PROCESS TIMELINE ==================== */
.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.timeline-number {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(8px);
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-connector {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  margin: 0 auto 0 40px;
  opacity: 0.3;
}

/* ==================== PUBLIC SECTION ==================== */
.public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.public-card {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-base);
}

.public-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px) scale(1.02);
}

.public-icon {
  font-size: 48px;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.public-icon i {
  font-size: inherit;
  line-height: 1;
}

.public-card h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.public-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.contact-info h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -1px;
}

.contact-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-method {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  transition: var(--transition-base);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.05);
}

.method-icon {
  font-size: 32px;
}

.method-content {
  flex: 1;
}

.method-content h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.method-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--spacing-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  font-size: 14px;
}

.visual-card {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.visual-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  z-index: 0;
}

.visual-content {
  position: relative;
  z-index: 1;
}

.visual-content h3 {
  font-size: 24px;
  margin-bottom: var(--spacing-xs);
  font-weight: 800;
}

.visual-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.visual-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.vstat {
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vstat span {
  color: var(--text-muted);
  font-size: 13px;
}

.vstat strong {
  font-size: 16px;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-icon {
  font-size: 28px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-small {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0;
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .services-grid,
  .public-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: var(--spacing-sm);
  }

  .timeline-number {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  .timeline-connector {
    margin-left: 30px;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

/* ===================================================================== */
/* ==================== REBUILD FROM SCRATCH (2025) ==================== */
/* ===================================================================== */

:root {
  --bw-bg: #0b1020;
  --bw-bg-2: #0f1730;
  --bw-card: rgba(255, 255, 255, 0.06);
  --bw-border: rgba(255, 255, 255, 0.12);
  --bw-text: rgba(255, 255, 255, 0.92);
  --bw-muted: rgba(255, 255, 255, 0.68);
  --bw-soft: rgba(255, 255, 255, 0.08);
  --bw-accent-1: #00d4ff;
  --bw-accent-2: #a855f7;
  --bw-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --bw-radius: 16px;
  --bw-radius-sm: 12px;
  --bw-max: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(
      1200px 700px at 15% 15%,
      rgba(0, 212, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 85% 30%,
      rgba(168, 85, 247, 0.1),
      transparent 55%
    ),
    radial-gradient(
      700px 600px at 60% 90%,
      rgba(236, 72, 153, 0.06),
      transparent 55%
    ),
    var(--bw-bg);
  color: var(--bw-text);
}

.container {
  max-width: var(--bw-max);
}

/* Navbar */
.navbar {
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-icon {
  background: linear-gradient(135deg, var(--bw-accent-1), var(--bw-accent-2));
}

.nav-link {
  color: var(--bw-muted);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bw-text);
}

.nav-link.active {
  color: var(--bw-text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.nav-cta {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22),
      rgba(0, 0, 0, 0.22)
    ),
    linear-gradient(135deg, var(--bw-accent-1), var(--bw-accent-2));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

/* Mobile menu */
@media (max-width: 900px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: var(--bw-radius);
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: 1000;
    /* Animation slide-down */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out),
      visibility 0ms 220ms;
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out),
      visibility 0ms 0ms;
    pointer-events: auto;
  }

  /* Liens mobile améliorés */
  .nav-links .nav-link {
    padding: 14px 16px;
    border-radius: var(--bw-radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    /* Animation séquentielle */
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 200ms ease, transform 200ms ease, background 150ms ease,
      border-color 150ms ease;
  }

  .nav-links.active .nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active .nav-link:nth-child(1) {
    transition-delay: 50ms;
  }
  .nav-links.active .nav-link:nth-child(2) {
    transition-delay: 100ms;
  }
  .nav-links.active .nav-link:nth-child(3) {
    transition-delay: 150ms;
  }
  .nav-links.active .nav-link:nth-child(4) {
    transition-delay: 200ms;
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
  }

  /* CTA mobile */
  .nav-links .nav-link.nav-cta {
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }

  /* Overlay derrière le menu */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 200ms ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

/* Hero */
.hero {
  min-height: auto;
  padding: 120px 0 72px;
}

.hero .container {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bw-muted);
  margin-bottom: 14px;
}

.hero-title {
  letter-spacing: -1.6px;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--bw-accent-1),
    var(--bw-accent-2),
    var(--bw-accent-1)
  );
  background-size: 200% 200%;
  animation: bw-gradient-pan 6s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes bw-gradient-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text {
    animation: none;
  }
}

.hero-description {
  color: var(--bw-muted);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bw-text);
  font-weight: 600;
  font-size: 13px;
  animation: pillPop 0.5s var(--ease-bounce) backwards;
  will-change: transform, opacity;
}

.pill:nth-child(1) {
  animation-delay: 0.45s;
}

.pill:nth-child(2) {
  animation-delay: 0.55s;
}

.pill:nth-child(3) {
  animation-delay: 0.65s;
}

@keyframes pillPop {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pill i {
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

.hero-panel {
  display: grid;
  gap: 14px;
  background: transparent;
  position: relative;
  z-index: 0;
}

.panel-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bw-radius);
  padding: 18px;
  box-shadow: var(--bw-shadow);
}

.panel-card h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.panel-card p {
  color: var(--bw-muted);
}

.panel-card--accent {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.06);
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bw-muted);
  line-height: 1.55;
}

.panel-list li > i.fa-square-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(135deg, var(--bw-accent-1), var(--bw-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  border-radius: 14px;
}

button.btn {
  -webkit-appearance: none;
  appearance: none;
}

button.btn,
button.btn-tertiary {
  font: inherit;
}

.btn-primary {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22),
      rgba(0, 0, 0, 0.22)
    ),
    linear-gradient(135deg, var(--bw-accent-1), var(--bw-accent-2));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-tertiary {
  padding: 0 14px;
  height: 42px;
  min-height: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bw-text);
}

.btn-tertiary:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-subtitle {
  color: var(--bw-muted);
}

/* Services */
.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.public-card {
  background: var(--bw-card);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  box-shadow: var(--bw-shadow);
}

.service-card {
  padding: 18px;
}

.service-card p {
  color: var(--bw-muted);
}

.service-features {
  margin-top: 12px;
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bw-muted);
}

.service-features li > i.fa-square-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(135deg, var(--bw-accent-1), var(--bw-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 0;
}

.step {
  background: var(--bw-card);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 18px;
  box-shadow: var(--bw-shadow);
  position: relative;
  z-index: 1;
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.step-n {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step p {
  color: var(--bw-muted);
}

.step h3 i {
  margin-right: 8px;
  line-height: 1;
}

/* Public */
.public-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 0;
}

.public-card {
  padding: 16px;
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  background: var(--bw-card);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  box-shadow: var(--bw-shadow);
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
}

.public-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.public-card p {
  color: var(--bw-muted);
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  background: var(--bw-card);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 18px;
  box-shadow: var(--bw-shadow);
}

.contact-tagline {
  color: var(--bw-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.contact-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--bw-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.contact-item > div:last-child {
  flex: 1;
  min-width: 0;
}

.contact-item h3 {
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.78);
  margin: 2px 0 2px;
}

.contact-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-value {
  color: var(--bw-text);
  font-weight: 700;
  margin: 6px 0 10px;
}

.contact-subvalue {
  margin: -6px 0 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.contact-item .btn-tertiary {
  width: fit-content;
}

.contact-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.contact-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.contact-link:focus-visible {
  outline: 2px solid var(--bw-accent-1);
  outline-offset: 4px;
  border-radius: 8px;
}

.contact-footnote {
  margin-top: 14px;
  color: var(--bw-muted);
}

.contact-side {
  border-radius: var(--bw-radius);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.04);
}

.side-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--bw-muted);
}

.side-list li {
  position: relative;
  padding-left: 22px;
}

.side-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.55);
}

/* Footer */
.footer {
  padding: 40px 0;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--bw-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bw-text);
}

.footer-bottom {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.55);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--bw-shadow);
  color: var(--bw-text);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 9999;
}

.toast.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Contact (from scratch v4) */
.contact2-head {
  text-align: center;
  margin-bottom: 18px;
}

.contact2-title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1px;
}

.contact2-subtitle {
  color: var(--bw-muted);
  max-width: 680px;
  margin: 8px auto 0;
}

.contact2-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  align-items: stretch;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.contact2-panel {
  border-radius: var(--bw-radius);
  padding: 18px;
  border: 1px solid var(--bw-border);
  background: var(--bw-card);
  box-shadow: var(--bw-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.contact2-panel:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.contact2-panel h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact2-panel p {
  color: var(--bw-muted);
  line-height: 1.65;
}

.contact2-checks {
  margin: 14px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact2-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bw-muted);
  line-height: 1.55;
}

.contact2-checks li > i.fa-square-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(135deg, var(--bw-accent-1), var(--bw-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact2-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.contact2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 650;
  font-size: 13px;
}

.contact2-badge i {
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

.contact2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  position: relative;
  z-index: 0;
}

.contact2-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: var(--bw-radius);
  border: 1px solid var(--bw-border);
  background: var(--bw-card);
  box-shadow: var(--bw-shadow);
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.contact2-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.contact2-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.18),
    rgba(168, 85, 247, 0.18)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact2-ico i {
  font-size: 22px;
  line-height: 1;
}

.contact2-body {
  min-width: 0;
}

.contact2-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2px;
}

.contact2-value {
  margin-top: 6px;
  font-weight: 850;
  color: var(--bw-text);
}

.contact2-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.contact2-actions .btn-tertiary {
  width: fit-content;
  white-space: nowrap;
}

/* Reveal - Animations optimisées */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  filter: blur(3px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
    filter 0.6s var(--ease-out);
  will-change: transform, opacity, filter;
}

.reveal-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger animation optimisé */
[data-reveal]:nth-child(1) {
  transition-delay: 0s;
}
[data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}
[data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}
[data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}
[data-reveal]:nth-child(5) {
  transition-delay: 0.24s;
}
[data-reveal]:nth-child(6) {
  transition-delay: 0.3s;
}
[data-reveal]:nth-child(7) {
  transition-delay: 0.36s;
}
[data-reveal]:nth-child(8) {
  transition-delay: 0.42s;
}

/* Variantes d'animation optimisées - Sans rotation 3D pour éviter les bugs */
.service-card[data-reveal]:not(.reveal-in) {
  transform: translateY(50px) scale(0.92);
  filter: blur(3px);
}

.public-card[data-reveal]:not(.reveal-in) {
  transform: translateY(35px) scale(0.9);
  filter: blur(3px);
}

.step[data-reveal]:not(.reveal-in) {
  transform: translateX(-25px) translateY(25px) scale(0.92);
  filter: blur(4px);
}

/* Reset optimisé au reveal-in */
.service-card.reveal-in,
.public-card.reveal-in,
.step.reveal-in {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Responsive */
@media (max-width: 1000px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact2-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

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

  .contact2-item {
    grid-template-columns: 56px 1fr;
  }

  .contact2-actions {
    justify-content: stretch;
  }

  .contact2-actions .btn-tertiary {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== SCROLL PROGRESS INDICATOR ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transition: transform 0.1s ease-out;
}

/* ==================== SMOOTH SCROLL SNAP (subtle) ==================== */
section {
  scroll-margin-top: 80px;
}

/* ==================== CUSTOM CURSOR EFFECT (optional) ==================== */
.hero-panel,
.service-card,
.public-card,
.step,
.btn {
  cursor: pointer;
}

/* ==================== ENHANCED HOVER STATES ==================== */
.public-card:hover {
  transform: translateY(-12px) scale(1.03) rotate(-1deg);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.step:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.2), 0 6px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(168, 85, 247, 0.3);
  z-index: 10;
}

.panel-card {
  transition: box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.panel-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* ==================== ENHANCED MOBILE MENU ==================== */
.mobile-toggle.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ==================== LOADING ANIMATIONS ==================== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.hero-content {
  animation: fadeInUp 0.7s var(--ease-out);
  will-change: transform, opacity;
}

.hero-kicker {
  animation: fadeInUp 0.6s var(--ease-out) 0.1s backwards;
  will-change: transform, opacity;
}

.hero-title {
  animation: fadeInUp 0.7s var(--ease-out) 0.15s backwards;
  will-change: transform, opacity;
}

.hero-description {
  animation: fadeInUp 0.7s var(--ease-out) 0.2s backwards;
  will-change: transform, opacity;
}

.hero-cta {
  animation: fadeInUp 0.6s var(--ease-out) 0.25s backwards;
  will-change: transform, opacity;
}

.hero-cta .btn-primary {
  animation: btnSlideIn 0.5s var(--ease-bounce) 0.4s backwards;
  will-change: transform, opacity;
}

.hero-cta .btn-secondary {
  animation: btnSlideIn 0.5s var(--ease-bounce) 0.5s backwards;
  will-change: transform, opacity;
}

@keyframes btnSlideIn {
  from {
    opacity: 0;
    transform: translateX(-25px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero-panel {
  animation: fadeInUp 0.7s var(--ease-out) 0.15s backwards;
  will-change: transform, opacity;
}

.panel-card {
  animation: fadeInCard 0.7s var(--ease-out) backwards;
  will-change: transform, opacity, filter;
}

.panel-card:nth-child(1) {
  animation-delay: 0.35s;
}

.panel-card:nth-child(2) {
  animation-delay: 0.45s;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.92);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(45px) scale(0.94);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ==================== GLASS MORPHISM ENHANCEMENTS ==================== */
.hero-panel,
.contact2-panel,
.contact2-item {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ==================== HOVER STACKING + SPEED (GLOBAL) ==================== */
.services-grid,
.public-grid,
.process-grid,
.hero-panel,
.contact2-wrap,
.contact2-grid,
.contact-grid {
  isolation: isolate;
}

/* Hover uniforme pour TOUS les blocs (même lift, même ombre, même vitesse) */
:is(
    .service-card,
    .public-card,
    .step,
    .panel-card,
    .contact2-panel,
    .contact2-item,
    .contact-card,
    .contact-item,
    .visual-card,
    .stat-item
  ) {
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}

:is(
    .service-card,
    .public-card,
    .step,
    .panel-card,
    .contact2-panel,
    .contact2-item,
    .contact-item,
    .stat-item
  ):hover:not(.tilt-active) {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.16), 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 212, 255, 0.28);
  z-index: 60;
}

/* Pendant le tilt 3D (JS), on supprime la transition de transform pour éviter les saccades */
:is(
    .service-card,
    .public-card,
    .step,
    .panel-card,
    .contact2-panel,
    .contact2-item,
    .contact-item,
    .stat-item
  ).tilt-active {
  z-index: 60;
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.16), 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 212, 255, 0.28);
  transition: box-shadow 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    filter: none;
  }

  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    filter: none !important;
    transform: none !important;
  }
}
