/* ===== WEBAMAX PREMIUM BRAND SYSTEM ===== */

/* Brand Colors */
:root {
  /* Primary Palette */
  --wb-bg-primary: #e5e7eb;
  --wb-surface: #f0f1f3;
  --wb-primary: #4F46E5;
  --wb-secondary: #06B6D4;
  --wb-text-primary: #020617;
  --wb-text-secondary: #475569;
  --wb-text-muted: #64748B;
  
  /* Gradient System */
  --wb-gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --wb-gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #0EA5E9 100%);
  --wb-gradient-surface: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  --wb-gradient-glow: radial-gradient(circle at center, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  
  /* Shadows & Effects */
  --wb-shadow-sm: 0 1px 2px 0 rgba(2, 6, 23, 0.05);
  --wb-shadow-md: 0 4px 6px -1px rgba(2, 6, 23, 0.1), 0 2px 4px -1px rgba(2, 6, 23, 0.06);
  --wb-shadow-lg: 0 10px 15px -3px rgba(2, 6, 23, 0.1), 0 4px 6px -2px rgba(2, 6, 23, 0.05);
  --wb-shadow-xl: 0 20px 25px -5px rgba(2, 6, 23, 0.1), 0 10px 10px -5px rgba(2, 6, 23, 0.04);
  --wb-glow-primary: 0 0 20px rgba(79, 70, 229, 0.3);
  --wb-glow-secondary: 0 0 20px rgba(6, 182, 212, 0.3);
  
  /* Typography Scale */
  --wb-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wb-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing System */
  --wb-space-xs: 0.25rem;
  --wb-space-sm: 0.5rem;
  --wb-space-md: 1rem;
  --wb-space-lg: 1.5rem;
  --wb-space-xl: 2rem;
  --wb-space-2xl: 3rem;
  --wb-space-3xl: 4rem;
  
  /* Border Radius */
  --wb-radius-sm: 0.375rem;
  --wb-radius-md: 0.5rem;
  --wb-radius-lg: 0.75rem;
  --wb-radius-xl: 1rem;
  --wb-radius-2xl: 1.5rem;
  
  /* Animation */
  --wb-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --wb-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography System */
.wb-text-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--wb-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wb-text-h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--wb-text-primary);
}

.wb-text-h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--wb-text-primary);
}

.wb-text-h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--wb-text-primary);
}

.wb-text-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--wb-text-secondary);
}

.wb-text-body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--wb-text-secondary);
}

.wb-text-caption {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--wb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Button System */
.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wb-space-sm);
  padding: var(--wb-space-md) var(--wb-space-xl);
  border: none;
  border-radius: var(--wb-radius-lg);
  font-family: var(--wb-font-family);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--wb-transition);
  position: relative;
  overflow: hidden;
}

.wb-btn-primary {
  background: var(--wb-gradient-primary);
  color: white;
  box-shadow: var(--wb-shadow-md);
}

.wb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--wb-shadow-lg), var(--wb-glow-primary);
}

.wb-btn-secondary {
  background: #dfe1e5;
  color: var(--wb-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  box-shadow: var(--wb-shadow-sm);
}

.wb-btn-secondary:hover {
  background: rgba(79, 70, 229, 0.05);
  border-color: var(--wb-primary);
  transform: translateY(-1px);
  box-shadow: var(--wb-shadow-md);
}

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

.wb-btn-ghost:hover {
  background: rgba(79, 70, 229, 0.05);
  color: var(--wb-primary);
  border-color: rgba(79, 70, 229, 0.1);
}

/* Card System */
.wb-card {
  background: var(--wb-surface);
  border-radius: var(--wb-radius-xl);
  box-shadow: var(--wb-shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: var(--wb-transition);
  position: relative;
  overflow: hidden;
}

.wb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--wb-gradient-secondary);
  opacity: 0;
  transition: var(--wb-transition);
}

.wb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wb-shadow-xl);
  border-color: rgba(79, 70, 229, 0.1);
}

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

.wb-card-body {
  padding: var(--wb-space-xl);
}

.wb-card-premium {
  background: red;
  border: 1px solid rgba(79, 70, 229, 0.1);
  position: relative;
}

.wb-card-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--wb-gradient-glow);
  opacity: 0;
  transition: var(--wb-transition);
  pointer-events: none;
}

.wb-card-premium:hover::after {
  opacity: 1;
}

/* Navigation */
.wb-nav {
  background: rgba(223, 225, 229, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(2, 6, 23, 0.05);
}

.wb-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--wb-space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.wb-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--wb-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--wb-space-md);
}

.wb-logo-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--wb-primary);
}

.wb-nav-links {
  display: flex;
  gap: var(--wb-space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wb-nav-link {
  color: var(--wb-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--wb-transition);
  position: relative;
}

.wb-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wb-gradient-primary);
  transition: var(--wb-transition);
}

.wb-nav-link:hover {
  color: var(--wb-primary);
}

.wb-nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.wb-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--wb-bg-primary);
  overflow: hidden;
  padding-top: 4rem;
}

.wb-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--wb-space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wb-space-3xl);
  align-items: center;
  z-index: 2;
  position: relative;
}

.wb-hero-content {
  max-width: 600px;
}

.wb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-sm);
  padding: var(--wb-space-sm) var(--wb-space-lg);
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--wb-radius-2xl);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wb-primary);
  margin-bottom: var(--wb-space-lg);
}

.wb-hero-title {
  margin-bottom: var(--wb-space-lg);
}

.wb-hero-description {
  margin-bottom: var(--wb-space-2xl);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--wb-text-secondary);
}

.wb-hero-actions {
  display: flex;
  gap: var(--wb-space-md);
  flex-wrap: wrap;
}

/* Stats Section */
.wb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--wb-space-xl);
  margin-top: var(--wb-space-3xl);
}

.wb-stat {
  text-align: center;
  padding: var(--wb-space-lg);
  background: #dfe1e5;
  border-radius: var(--wb-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.wb-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--wb-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.wb-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--wb-space-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  .wb-hero-container {
    grid-template-columns: 1fr;
    gap: var(--wb-space-2xl);
    text-align: center;
  }
  
  .wb-nav-links {
    display: none;
  }
  
  .wb-hero-actions {
    justify-content: center;
  }
  
  .wb-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wb-space-lg);
  }
}

/* Timeline Component */
.wb-timeline {
  position: relative;
  padding: 2rem 0;
}

.wb-timeline-item {
  position: relative;
  margin-bottom: var(--wb-space-2xl);
  padding-left: 6rem;
}

.wb-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  background: var(--wb-gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--wb-glow-primary);
}

/* Architecture Canvas */
.wb-architecture-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-radius: var(--wb-radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.wb-arch-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, #06B6D4, transparent);
  height: 2px;
  width: 100%;
  opacity: 0.3;
  animation: wb-pulse-line 3s ease-in-out infinite;
}

.wb-arch-line:nth-child(1) { top: 25%; animation-delay: 0s; }
.wb-arch-line:nth-child(2) { top: 50%; animation-delay: 1s; }
.wb-arch-line:nth-child(3) { top: 75%; animation-delay: 2s; }

.wb-arch-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #4F46E5;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
  animation: wb-float-node 4s ease-in-out infinite;
}

.wb-arch-node:nth-child(4) { top: 20%; left: 20%; animation-delay: 0s; }
.wb-arch-node:nth-child(5) { top: 45%; left: 60%; animation-delay: 1s; }
.wb-arch-node:nth-child(6) { top: 70%; left: 30%; animation-delay: 2s; }
.wb-arch-node:nth-child(7) { top: 60%; left: 80%; animation-delay: 1.5s; }

@keyframes wb-pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleX(1); }
  50% { opacity: 0.6; transform: scaleX(1.02); }
}

@keyframes wb-float-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero Visual */
.wb-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-hero-graphic {
  width: 400px;
  height: 400px;
  background: var(--wb-gradient-glow);
  border-radius: 50%;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.wb-hero-graphic::before {
  content: '';
  position: absolute;
  inset: 20px;
  background: #dfe1e5;
  border-radius: 50%;
  box-shadow: var(--wb-shadow-xl);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.wb-hero-graphic::after {
  content: 'W';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  font-weight: 900;
  background: var(--wb-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Feature Icon */
.wb-feature-icon {
  width: 60px;
  height: 60px;
  background: var(--wb-gradient-primary);
  border-radius: var(--wb-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--wb-space-lg);
  box-shadow: var(--wb-glow-primary);
}

.wb-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

/* Tech Badge */
.wb-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-sm);
  padding: var(--wb-space-sm) var(--wb-space-md);
  background: #dfe1e5;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--wb-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wb-text-secondary);
  margin: var(--wb-space-xs);
  transition: var(--wb-transition);
}

.wb-tech-badge:hover {
  border-color: var(--wb-primary);
  color: var(--wb-primary);
  transform: translateY(-1px);
  box-shadow: var(--wb-shadow-md);
}

.wb-badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.wb-badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* List Styling */
.wb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wb-list li {
  padding: var(--wb-space-sm) 0;
  padding-left: var(--wb-space-lg);
  position: relative;
  color: var(--wb-text-secondary);
}

.wb-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wb-primary);
  font-weight: 700;
}

/* Canvas Background */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  overflow: hidden;
}

body {
  font-family: 'Space Grotesk', var(--wb-font-family);
  background: var(--wb-bg-primary);
  color: var(--wb-text-primary);
  line-height: 1.6;
  /* SUPPRIMÉ: overflow-x: hidden casse le Flexbox */
  /* Structure Flexbox gérée par sticky-footer-reset.css */
}

/* Footer Styles */
.wb-footer {
  background: rgba(223, 225, 229, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: var(--wb-space-3xl) 0 var(--wb-space-xl);
}

.wb-footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--wb-space-3xl);
  margin-bottom: var(--wb-space-2xl);
}

.wb-footer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--wb-space-lg);
}

.wb-footer-brand p,
.wb-footer-note {
  margin: var(--wb-space-lg) 0;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

.wb-footer-location {
  color: rgba(0, 0, 0, 0.7);
  margin-top: var(--wb-space-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.loc-tag {
  color: var(--wb-primary);
  font-weight: 700;
}

.wb-footer-services ul,
.wb-contact-info {
  list-style: none;
  padding: 0;
  margin: var(--wb-space-lg) 0;
}

.wb-footer-services li,
.wb-contact-link {
  margin-bottom: var(--wb-space-sm);
}

.wb-footer-services a,
.wb-contact-link {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: var(--wb-transition);
  display: flex;
  align-items: center;
  gap: var(--wb-space-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.wb-footer-services a:hover,
.wb-contact-link:hover {
  color: var(--wb-primary);
  transform: translateX(4px);
}

.wb-footer-contact .wb-btn {
  margin-top: var(--wb-space-lg);
}

.wb-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--wb-space-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.5);
}

.wb-footer-version {
  display: flex;
  align-items: center;
  gap: var(--wb-space-sm);
}

.version-sep {
  color: rgba(0, 0, 0, 0.2);
}

.wb-footer-legal {
  display: flex;
  gap: var(--wb-space-sm);
  align-items: center;
}

.wb-footer-legal a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: var(--wb-transition);
}

.wb-footer-legal a:hover {
  color: var(--wb-primary);
}

.wb-footer-status {
  display: flex;
  align-items: center;
  gap: var(--wb-space-sm);
  color: #10b981;
}

.status-dot-footer {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 16px #10b981;
  }
}

/* WhatsApp Button */
.wb-whatsapp-btn {
  position: fixed;
  bottom: var(--wb-space-xl);
  right: var(--wb-space-xl);
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: var(--wb-transition);
  z-index: 1000;
}

.wb-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wb-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Mobile Navigation Toggle */
.wb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.wb-nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--wb-primary);
  transition: var(--wb-transition);
  border-radius: 2px;
}

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

.wb-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
  .wb-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .wb-hero-content {
    order: 2;
  }
  
  .wb-hero-visual {
    order: 1;
    margin-bottom: var(--wb-space-xl);
  }
  
  .wb-hero-photo {
    max-width: 280px;
  }
  
  .wb-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .wb-hero-actions .wb-btn {
    width: 100%;
    box-sizing: border-box;
  }
  
  .wb-grid-2,
  .wb-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .wb-architecture-grid {
    grid-template-columns: 1fr;
  }
  
  .wb-signature-visual {
    margin-bottom: var(--wb-space-xl);
  }
  
  .wb-architecture-image {
    max-width: 100%;
  }
  
  .wb-manifesto-card .wb-card-body {
    padding: var(--wb-space-xl);
  }
  
  .wb-btn {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .wb-btn-primary,
  .wb-btn-secondary,
  .wb-btn-sm {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .wb-footer {
    padding: var(--wb-space-md) 0 0;
  }
  
  .wb-footer-content {
    grid-template-columns: 1fr;
    gap: var(--wb-space-md);
    margin-bottom: 0;
  }
  
  .wb-footer-bottom {
    flex-direction: column;
    gap: var(--wb-space-xs);
    text-align: center;
    padding-top: var(--wb-space-xs);
    padding-bottom: var(--wb-space-xs);
  }
  
  .wb-footer-contact .wb-btn {
    width: 100%;
    box-sizing: border-box;
  }
  
  .wb-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wb-card-body {
    padding: var(--wb-space-lg);
    box-sizing: border-box;
  }
}

/* Utility Classes */
.wb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--wb-space-lg);
}

.wb-section {
  padding: var(--wb-space-3xl) 0;
  position: relative;
  z-index: 2;
}

.wb-grid {
  display: grid;
  gap: var(--wb-space-xl);
}

.wb-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.wb-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wb-flex {
  display: flex;
  gap: var(--wb-space-md);
}

.wb-flex-center {
  align-items: center;
  justify-content: center;
}

.wb-text-center {
  text-align: center;
}

.wb-mb-lg {
  margin-bottom: var(--wb-space-lg);
}

.wb-mb-xl {
  margin-bottom: var(--wb-space-xl);
}

.wb-mt-xl {
  margin-top: var(--wb-space-xl);
}

/* Badge System */
.wb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-xs);
  padding: var(--wb-space-xs) var(--wb-space-sm);
  border-radius: var(--wb-radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wb-badge-primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--wb-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.wb-badge-secondary {
  background: rgba(6, 182, 212, 0.1);
  color: var(--wb-secondary);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.wb-badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Focus States pour Accessibilité Clavier */
a:focus-visible,
button:focus-visible,
.wb-btn:focus-visible,
.nb-link:focus-visible,
.terminal-link:focus-visible,
.wb-contact-link:focus-visible,
.wb-nav-link:focus-visible {
  outline: 3px solid var(--wb-primary);
  outline-offset: 2px;
  border-radius: var(--wb-radius-sm);
}

.nb-toggle:focus-visible {
  outline: 3px solid var(--wb-primary);
  outline-offset: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wb-primary);
  color: white;
  padding: var(--wb-space-md) var(--wb-space-xl);
  text-decoration: none;
  z-index: 10000;
  border-radius: var(--wb-radius-md);
  font-weight: 600;
  box-shadow: var(--wb-shadow-xl);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--wb-space-md);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== PAGES COMMON - Transparent backgrounds for Three.js ===== */

/* Canvas background */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* All content above canvas */
.wb-nav {
  position: fixed;
  z-index: 1000;
}

.wb-hero,
.wb-section,
main {
  position: relative;
  z-index: 1;
}

/* Sections with subtle transparent backgrounds */
.wb-section {
  background: transparent;
}

/* Cards with semi-transparent backgrounds */
.wb-card {
  background: #dfe1e5;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.wb-card-premium {
  background: #dfe1e5;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

/* Hero section transparent */
.wb-hero {
  background: transparent;
}

/* ===== IMAGE OPTIMIZATION ===== */

.wb-hero-photo,
.wb-architecture-image,
.project-image {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .wb-architecture-image {
        width: 348px;
        height: auto;
    }
    
    .project-image {
        width: 533px;
        height: auto;
    }
    
    .wb-card {
        background: #dfe1e5;
    }
}

/* ===== NAVBAR - SYSTEM ARCHITECT CONTROL BAR ===== */

.nb-header {
  background: rgba(223, 225, 229, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.nb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--wb-space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo System */
.nb-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--wb-text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.nb-logo-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--wb-primary);
}

.nb-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--wb-space-sm);
  font-family: var(--wb-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--wb-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nb-status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: nb-pulse 2s ease-in-out infinite;
}

@keyframes nb-pulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: scale(0.95);
  }
}

/* Navigation Links */
.nb-nav {
  display: flex;
  gap: var(--wb-space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nb-link {
  color: var(--wb-text-secondary);
  text-decoration: none;
  font-family: var(--wb-font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding: var(--wb-space-xs) 0;
}

.nb-link::before {
  content: '[';
  color: transparent;
  margin-right: 2px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nb-link::after {
  content: ']';
  color: transparent;
  margin-left: 2px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nb-link:hover {
  color: var(--wb-primary);
}

.nb-link:hover::before,
.nb-link:hover::after {
  color: var(--wb-primary);
}

.nb-link.active {
  color: var(--wb-primary);
}

.nb-link.active::before,
.nb-link.active::after {
  color: var(--wb-primary);
}

/* CTA Button - Command Style */
.nb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--wb-space-sm) var(--wb-space-lg);
  background: transparent;
  color: var(--wb-text-primary);
  border: 2px solid var(--wb-text-primary);
  font-family: var(--wb-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.nb-action::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--wb-primary);
  border-left: 2px solid var(--wb-primary);
  opacity: 0;
  transition: opacity 0.1s;
}

.nb-action::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--wb-primary);
  border-right: 2px solid var(--wb-primary);
  opacity: 0;
  transition: opacity 0.1s;
}

.nb-action:hover {
  background: var(--wb-text-primary);
  color: #fff;
  border-color: var(--wb-text-primary);
}

.nb-action:hover::before,
.nb-action:hover::after {
  opacity: 1;
}

.nb-action:active {
  transform: scale(0.98);
  background: var(--wb-primary);
  border-color: var(--wb-primary);
}

/* Mobile Toggle */
.nb-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--wb-space-sm);
}

.nb-toggle span {
  width: 22px;
  height: 2px;
  background: var(--wb-text-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Responsive Navbar - OVERRIDDEN BY mobile-handheld-system.css */
@media (min-width: 769px) and (max-width: 1024px) {
  .nb-container {
    padding: 0 var(--wb-space-md);
  }
  
  .nb-nav {
    gap: var(--wb-space-md);
  }
  
  .nb-link {
    font-size: 0.8125rem;
  }
}
