/* ==========================================================================
   EVOLYSTIS - DESIGN SYSTEM "DARK PREMIUM" & "LIGHT ENTERPRISE"
   Digital Engineering · AI Transformation · Intelligent Business Solutions
   WCAG 2.2 AA Compliant · RTL Ready · Responsive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@400;600;700;800&family=Tajawal:wght@400;500;700&display=swap');

:root {
  /* DARK THEME (DEFAULT) */
  --bg-body: #06090f;
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-elevated: #162036;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.35);
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #8b5cf6 100%);
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --grad-accent: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --grad-dark: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(10, 15, 29, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: #06b6d4;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(6, 182, 212, 0.4);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;

  /* Text Colors */
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #38bdf8;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.3);
  --shadow-glow-indigo: 0 0 25px rgba(99, 102, 241, 0.3);

  /* Sizing */
  --max-width: 1400px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================== */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-primary: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-elevated: #ffffff;

  --text-pure: #0f172a;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-accent: #0284c7;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-card: rgba(0, 0, 0, 0.08);
  --border-card-hover: rgba(6, 182, 212, 0.5);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.2);
}

[data-theme="light"] body::before {
  background: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .bg-grid-pattern {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--accent-cyan);
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mobile-drawer {
  background: #ffffff;
}

/* RTL Typography & Direction overrides */
[dir="rtl"] {
  font-family: var(--font-arabic);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .brand-wordmark {
  font-family: var(--font-arabic);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Atmosphere Grid & Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 95%);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text-muted); font-size: 1.05rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   IMAGE STANDARDIZATION ACROSS ENTIRE SITE (Uniform Dimensions)
   ========================================================================== */
.uniform-img-container,
.solution-preview-frame,
.bento-card-media {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-medium);
  background: #000000;
}

.uniform-img-container img,
.uniform-img-container svg,
.solution-preview-frame img,
.solution-preview-frame svg,
.bento-card-media img,
.bento-card-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth);
}

.bento-card:hover .uniform-img-container img,
.bento-card:hover .bento-card-media img,
.solution-showcase-card:hover .solution-preview-frame img,
.solution-showcase-card:hover .solution-preview-frame svg {
  transform: scale(1.03);
}

@media (min-width: 1024px) {
  .solution-preview-frame {
    height: 320px;
  }
}

/* Pill Eyebrow & Badges */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.eyebrow-badge.indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}
.eyebrow-badge.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}
.eyebrow-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Gradient Text */
.text-gradient {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
  color: #ffffff;
}

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.55);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-medium);
  backdrop-filter: blur(10px);
}
[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.4);
}
.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HEADER & NAVIGATION — PERFECT FLEXBOX LAYOUT (NO OVERLAP)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-fast);
}
.site-header.scrolled {
  background: rgba(6, 9, 15, 0.98);
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Brand Logo with 3D GIF */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  min-width: max-content;
  text-decoration: none;
}
.brand-logo-img {
  height: 44px;
  width: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  white-space: nowrap;
}
.brand-wordmark span {
  color: var(--accent-cyan);
}

/* Navigation Links */
.desktop-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-pure);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}
[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1050;
}
[dir="rtl"] .nav-dropdown {
  left: auto;
  right: 0;
}
.nav-item-dropdown:hover .nav-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.dropdown-link:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  padding-left: 1.1rem;
}
[dir="rtl"] .dropdown-link:hover {
  padding-left: 0.85rem;
  padding-right: 1.1rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme Toggle Button (Light / Dark) */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}
[data-theme="light"] .theme-toggle-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.theme-toggle-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
  transform: rotate(15deg);
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
}
[data-theme="light"] .lang-selector {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}
.lang-btn.active {
  background: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-medium);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2000;
  transition: right var(--transition-smooth);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}
[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border-medium);
  transition: left var(--transition-smooth);
}
.mobile-drawer.open { right: 0; }
[dir="rtl"] .mobile-drawer.open { left: 0; }
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
}
.drawer-backdrop.open { display: block; }

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
}
.bento-card:hover {
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3), var(--shadow-glow-cyan);
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.bento-card:hover::before { opacity: 1; }

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

/* ==========================================================================
   3D HERO AVATAR & TALKING CHARACTER COMPONENT
   ========================================================================== */
.hero-avatar-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero-avatar-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #000;
  height: 290px;
}
.hero-avatar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-avatar-voice-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}
.audio-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.audio-bars span {
  width: 3px;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: audioAnim 1.2s ease-in-out infinite alternate;
}
.audio-bars span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.audio-bars span:nth-child(3) { animation-delay: 0.4s; height: 80%; }
.audio-bars span:nth-child(4) { animation-delay: 0.1s; height: 40%; }
@keyframes audioAnim {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero-two-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-two-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 780px;
}
.hero-stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Sections Global */
.section {
  padding: 5.5rem 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}
.section-header.text-left {
  text-align: left;
  margin-left: 0;
}
[dir="rtl"] .section-header.text-left {
  text-align: right;
  margin-right: 0;
}
.section-title { margin-bottom: 1rem; }
.section-desc { font-size: 1.15rem; color: var(--text-muted); }

/* Feature & Service Cards */
.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}
.service-icon-box.indigo {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--accent-indigo);
}
.service-icon-box.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

/* Solutions Showcase Card */
.solution-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: all var(--transition-smooth);
}
.solution-showcase-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow-cyan);
}

/* Product Tag Pills */
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.775rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
[data-theme="light"] .tag-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
[dir="rtl"] .tag-pill {
  margin-right: 0;
  margin-left: 0.4rem;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
[dir="rtl"] .form-group { text-align: right; }
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-pure);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer {
  background: #04070c;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  margin-top: 5rem;
  transition: background 0.3s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-pure);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a { color: var(--text-muted); font-size: 0.925rem; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-contact-item i { color: var(--accent-cyan); margin-top: 0.25rem; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Floating WhatsApp Quick Action */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
[dir="rtl"] .floating-whatsapp { right: auto; left: 2rem; }
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 900px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 1500;
}
.cookie-banner.show { display: flex; }

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .nav-menu { gap: 0.9rem; }
  .nav-link { font-size: 0.85rem; }
  .btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .solution-showcase-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats-band { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .floating-whatsapp { bottom: 1rem; right: 1rem; width: 50px; height: 50px; font-size: 1.5rem; }
  [dir="rtl"] .floating-whatsapp { left: 1rem; right: auto; }
}


/* ==========================================================================
   LIVING EXPERTISE CARDS (PREMIUM BESPOKE HUMAN DESIGN)
   ========================================================================== */

.expertise-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.06);
}

/* Subtle top ambient indicator bar */
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent, var(--accent-cyan)), transparent 80%);
  opacity: 0.6;
  transition: opacity 0.3s ease, height 0.3s ease;
}

/* Background subtle ambient radial glow */
.expertise-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-glow, rgba(56, 189, 248, 0.12)), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15), 0 0 25px -5px var(--card-glow, rgba(56, 189, 248, 0.12));
}

.expertise-card:hover::before {
  opacity: 1;
  height: 4px;
}

.expertise-card:hover::after {
  transform: translate(10%, -10%) scale(1.4);
  opacity: 1;
}

/* Themes colors per expertise */
.expertise-card.card-dev {
  --card-accent: #0284c7;
  --card-glow: rgba(2, 132, 199, 0.14);
}
.expertise-card.card-ai {
  --card-accent: #8b5cf6;
  --card-glow: rgba(139, 92, 246, 0.14);
}
.expertise-card.card-ind {
  --card-accent: #10b981;
  --card-glow: rgba(16, 185, 129, 0.14);
}
.expertise-card.card-mkt {
  --card-accent: #f59e0b;
  --card-glow: rgba(245, 158, 11, 0.14);
}
.expertise-card.card-cons {
  --card-accent: #3b82f6;
  --card-glow: rgba(59, 130, 246, 0.14);
}

/* Card Header: Icon + Live Status */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Dynamic Glowing Icon Pod */
.living-icon-pod {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--pod-bg, rgba(6, 182, 212, 0.1));
  border: 1px solid var(--pod-border, rgba(6, 182, 212, 0.25));
  color: var(--pod-color, var(--accent-cyan));
  box-shadow: 0 4px 15px -3px var(--pod-shadow, rgba(6, 182, 212, 0.15));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.expertise-card:hover .living-icon-pod {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 22px -3px var(--pod-shadow, rgba(6, 182, 212, 0.3));
}

.living-icon-pod.cyan {
  --pod-bg: rgba(6, 182, 212, 0.12);
  --pod-border: rgba(6, 182, 212, 0.3);
  --pod-color: #0284c7;
  --pod-shadow: rgba(6, 182, 212, 0.2);
}
.living-icon-pod.purple {
  --pod-bg: rgba(139, 92, 246, 0.12);
  --pod-border: rgba(139, 92, 246, 0.3);
  --pod-color: #7c3aed;
  --pod-shadow: rgba(139, 92, 246, 0.2);
}
.living-icon-pod.emerald {
  --pod-bg: rgba(16, 185, 129, 0.12);
  --pod-border: rgba(16, 185, 129, 0.3);
  --pod-color: #059669;
  --pod-shadow: rgba(16, 185, 129, 0.2);
}
.living-icon-pod.amber {
  --pod-bg: rgba(245, 158, 11, 0.12);
  --pod-border: rgba(245, 158, 11, 0.3);
  --pod-color: #d97706;
  --pod-shadow: rgba(245, 158, 11, 0.2);
}
.living-icon-pod.blue {
  --pod-bg: rgba(59, 130, 246, 0.12);
  --pod-border: rgba(59, 130, 246, 0.3);
  --pod-color: #2563eb;
  --pod-shadow: rgba(59, 130, 246, 0.2);
}

/* Pulsing Heartbeat Operational Metric */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--pill-bg, rgba(15, 23, 42, 0.04));
  border: 1px solid var(--pill-border, rgba(15, 23, 42, 0.08));
  color: var(--pill-color, var(--text-muted));
  transition: all 0.3s ease;
}

.live-status-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent-cyan));
  box-shadow: 0 0 8px var(--dot-color, var(--accent-cyan));
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-status-pill.cyan {
  --dot-color: #0284c7;
  --pill-color: #0284c7;
  --pill-bg: rgba(2, 132, 199, 0.08);
  --pill-border: rgba(2, 132, 199, 0.2);
}
.live-status-pill.purple {
  --dot-color: #7c3aed;
  --pill-color: #7c3aed;
  --pill-bg: rgba(124, 58, 237, 0.08);
  --pill-border: rgba(124, 58, 237, 0.2);
}
.live-status-pill.emerald {
  --dot-color: #059669;
  --pill-color: #059669;
  --pill-bg: rgba(5, 150, 105, 0.08);
  --pill-border: rgba(5, 150, 105, 0.2);
}
.live-status-pill.amber {
  --dot-color: #d97706;
  --pill-color: #d97706;
  --pill-bg: rgba(217, 119, 6, 0.08);
  --pill-border: rgba(217, 119, 6, 0.2);
}
.live-status-pill.blue {
  --dot-color: #2563eb;
  --pill-color: #2563eb;
  --pill-bg: rgba(37, 99, 235, 0.08);
  --pill-border: rgba(37, 99, 235, 0.2);
}

/* Card Body Content */
.card-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-pure);
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.expertise-card:hover .card-title {
  color: var(--card-accent, var(--accent-cyan));
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Modern Interactive Tech Chips */
.tech-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  transition: all 0.25s ease;
}

.tech-chip i {
  font-size: 0.85rem;
  color: var(--card-accent, var(--accent-cyan));
  opacity: 0.85;
}

.tech-chip:hover {
  border-color: var(--card-accent, var(--accent-cyan));
  background: var(--bg-card);
  transform: translateY(-2px);
  color: var(--text-pure);
}

/* Living Action CTA */
.card-action-row {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.card-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-pure);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-cta-link .cta-arrow {
  font-size: 0.85rem;
  color: var(--card-accent, var(--accent-cyan));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-card:hover .card-cta-link {
  color: var(--card-accent, var(--accent-cyan));
}

.expertise-card:hover .card-cta-link .cta-arrow {
  transform: translateX(6px);
}

/* RTL Support for Living Cards */
[dir="rtl"] .expertise-card::before {
  background: linear-gradient(-90deg, var(--card-accent, var(--accent-cyan)), transparent 80%);
}
[dir="rtl"] .expertise-card::after {
  right: auto;
  left: 0;
  transform: translate(-20%, -20%) scale(1);
}
[dir="rtl"] .expertise-card:hover::after {
  transform: translate(-10%, -10%) scale(1.4);
}
[dir="rtl"] .card-cta-link .cta-arrow {
  transform: rotate(180deg);
}
[dir="rtl"] .expertise-card:hover .card-cta-link .cta-arrow {
  transform: rotate(180deg) translateX(6px);
}

/* Light Theme Adjustments */
[data-theme="light"] .expertise-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .expertise-card:hover {
  background: #ffffff;
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 22px 45px -12px rgba(15, 23, 42, 0.12), 0 0 30px -5px var(--card-glow, rgba(2, 132, 199, 0.15));
}
[data-theme="light"] .tech-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}
[data-theme="light"] .tech-chip:hover {
  background: #ffffff;
  border-color: var(--card-accent, var(--accent-cyan));
  color: #0f172a;
}
[data-theme="light"] .card-desc {
  color: #475569;
}
[data-theme="light"] .card-title {
  color: #0f172a;
}
[data-theme="light"] .card-action-row {
  border-top-color: rgba(15, 23, 42, 0.06);
}


/* ==========================================================================
   FUTURISTIC LIVING CARDS & HUD ANIMATIONS
   High-Caliber Engineering, Operational Intelligence & Partner Trust
   ========================================================================== */

/* Keyframe Animations */
@keyframes scanBarSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes radarPing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes starShimmer {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4)); }
  50% { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9)); }
}

/* Base Futuristic Card */
.futuristic-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82) 0%, rgba(9, 14, 26, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              background 0.4s ease;
  z-index: 1;
}

.futuristic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

/* Card Themes */
.futuristic-card[data-card-theme="cyan"] {
  --card-accent: #06b6d4;
  --card-glow: rgba(6, 182, 212, 0.28);
  --card-light-bg: rgba(6, 182, 212, 0.08);
}
.futuristic-card[data-card-theme="indigo"] {
  --card-accent: #6366f1;
  --card-glow: rgba(99, 102, 241, 0.28);
  --card-light-bg: rgba(99, 102, 241, 0.08);
}
.futuristic-card[data-card-theme="emerald"] {
  --card-accent: #10b981;
  --card-glow: rgba(16, 185, 129, 0.28);
  --card-light-bg: rgba(16, 185, 129, 0.08);
}
.futuristic-card[data-card-theme="amber"] {
  --card-accent: #f59e0b;
  --card-glow: rgba(245, 158, 11, 0.28);
  --card-light-bg: rgba(245, 158, 11, 0.08);
}
.futuristic-card[data-card-theme="purple"] {
  --card-accent: #a855f7;
  --card-glow: rgba(168, 85, 247, 0.28);
  --card-light-bg: rgba(168, 85, 247, 0.08);
}

/* Hover Physics */
.futuristic-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 
              0 0 35px var(--card-glow, rgba(6, 182, 212, 0.25)),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Top Cyber Scan Bar */
.cyber-scan-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--card-accent, var(--accent-cyan)) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.futuristic-card:hover .cyber-scan-bar {
  opacity: 1;
  animation: scanBarSweep 2.2s infinite linear;
}

/* Cyber Bracket Corner Accents */
.cyber-bracket {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.cyber-bracket.top-right {
  top: 10px;
  right: 10px;
  border-top: 2px solid var(--card-accent, var(--accent-cyan));
  border-right: 2px solid var(--card-accent, var(--accent-cyan));
}
.cyber-bracket.bottom-left {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid var(--card-accent, var(--accent-cyan));
  border-left: 2px solid var(--card-accent, var(--accent-cyan));
}
.futuristic-card:hover .cyber-bracket {
  opacity: 1;
}

/* SECTION 1: Living Expertise Cards */
.card-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--card-accent, var(--accent-cyan));
  transition: all 0.3s ease;
}

.service-icon-box .icon-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 18px;
  border: 1px solid var(--card-accent, var(--accent-cyan));
  opacity: 0;
  pointer-events: none;
}

.futuristic-card:hover .service-icon-box {
  background: var(--card-light-bg, rgba(6, 182, 212, 0.12));
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 0 20px var(--card-glow, rgba(6, 182, 212, 0.3));
}

.futuristic-card:hover .service-icon-box .icon-pulse-ring {
  animation: radarPing 2s infinite ease-out;
}

.card-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace, ui-monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 0 8px var(--card-accent, var(--accent-cyan));
}
.telemetry-dot.pulse {
  animation: pulseDot 1.5s infinite;
}

.card-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.tech-chip i {
  font-size: 0.75rem;
  color: var(--card-accent, var(--accent-cyan));
  opacity: 0.8;
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-accent, var(--accent-cyan));
  color: var(--text-pure);
  transform: translateY(-2px);
}

.card-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
}

.cyber-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--card-accent, var(--accent-cyan));
  text-decoration: none;
  transition: all 0.25s ease;
}

.cyber-action-link i {
  transition: transform 0.25s ease;
}

.futuristic-card:hover .cyber-action-link i {
  transform: translateX(5px);
}

.card-index-indicator {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* SECTION 2: Bento Mission Control Cards with HUD Overlay */
.bento-showcase-card {
  padding: 1.85rem;
}

.cyber-image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 1.25rem;
  aspect-ratio: 16/9.5;
  background: #020617;
}

.cyber-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.futuristic-card:hover .cyber-zoom-img {
  transform: scale(1.06);
}

.hud-telemetry-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.hud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(10, 15, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.hud-metrics-readout {
  display: flex;
  gap: 8px;
}

.hud-metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10, 15, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hud-metric-item .hud-lbl {
  font-family: monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
  font-weight: 600;
}

.hud-metric-item .hud-val {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--card-accent, var(--accent-cyan));
  font-weight: 800;
}

.cyber-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}

/* SECTION 3: Futuristic Executive Testimonials */
.testimonial-cyber-card {
  padding: 2.2rem 2rem;
  position: relative;
}

.hologram-quote-watermark {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--card-accent, var(--accent-cyan));
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.futuristic-card:hover .hologram-quote-watermark {
  opacity: 0.18;
  transform: translateY(-4px) scale(1.05);
}

.testi-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.star-rating-shimmer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.92rem;
  animation: starShimmer 4s infinite ease-in-out;
}

.star-rating-shimmer .score-badge {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

.partner-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.testi-quote {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testi-impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--card-accent, var(--accent-cyan));
}

.testi-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
}

.author-avatar-cyber {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-accent, var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--card-accent, var(--accent-cyan));
}

.author-avatar-cyber .avatar-orbit {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px dashed var(--card-accent, var(--accent-cyan));
  opacity: 0.5;
  animation: orbitSpin 12s infinite linear;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  color: var(--text-pure);
  font-weight: 700;
}

.author-org {
  font-size: 0.82rem;
  color: var(--card-accent, var(--accent-cyan));
}

/* ==========================================================================
   LIGHT MODE ADAPTATIONS FOR FUTURISTIC CARDS
   ========================================================================== */
[data-theme="light"] .futuristic-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .futuristic-card:hover {
  background: #ffffff;
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 22px 45px -10px rgba(15, 23, 42, 0.14), 
              0 0 30px var(--card-glow, rgba(6, 182, 212, 0.2));
}

[data-theme="light"] .card-top-header .service-icon-box {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .card-telemetry-badge {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

[data-theme="light"] .tech-chip {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .tech-chip:hover {
  background: #ffffff;
  border-color: var(--card-accent, var(--accent-cyan));
  color: #0f172a;
}

[data-theme="light"] .card-action-row,
[data-theme="light"] .testi-author-row {
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .testi-quote {
  color: #334155;
}

[data-theme="light"] .testi-impact-pill {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .author-avatar-cyber {
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .cyber-image-frame {
  border-color: rgba(15, 23, 42, 0.12);
}


/* ==========================================================================
   SECTOR-SPECIFIC ICON ANIMATIONS & FUTURISTIC INDUSTRY CARDS
   Manufacture 4.0, Automobile & Aéronautique, Logistics, Education, Finance
   ========================================================================== */

/* Keyframes for Sector Animations */
@keyframes gearSpin360 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes machinePulseGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.9)); }
}

@keyframes aeroTakeoff {
  0%, 100% { transform: translate(0, 0) rotate(-15deg); }
  50% { transform: translate(3px, -4px) rotate(-18deg); }
}

@keyframes autoDrivePulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@keyframes truckSuspension {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes radarWaveEmit {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes capFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-3deg); }
}

@keyframes atomOrbitRevolve {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shieldLaserScan {
  0% { top: 0%; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Enhanced Sector Icon Pod */
.sector-icon-pod {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--card-accent, var(--accent-cyan));
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.futuristic-card:hover .sector-icon-pod {
  background: var(--card-light-bg, rgba(6, 182, 212, 0.12));
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 0 25px var(--card-glow, rgba(6, 182, 212, 0.35));
  transform: translateY(-2px) scale(1.05);
}

/* Micro Badge Attached to Pod */
.pod-micro-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #090e1a;
  border: 1.5px solid var(--card-accent, var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--card-accent, var(--accent-cyan));
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 1. SECTEUR MANUFACTURE 4.0 */
.sector-pod-manufacture .primary-icon {
  animation: machinePulseGlow 3s infinite ease-in-out;
}
.sector-pod-manufacture .pod-micro-icon i {
  animation: gearSpin360 8s linear infinite;
}
.futuristic-card:hover .sector-pod-manufacture .pod-micro-icon i {
  animation: gearSpin360 2s linear infinite;
}

/* 2. SECTEUR AUTOMOBILE & AÉRONAUTIQUE */
.sector-pod-aero-auto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.sector-pod-aero-auto .aero-plane {
  font-size: 1.15rem;
  color: #38bdf8;
  animation: aeroTakeoff 3s infinite ease-in-out;
  transform-origin: center;
}
.sector-pod-aero-auto .auto-car {
  font-size: 0.95rem;
  color: #818cf8;
  margin-top: 10px;
  margin-left: -4px;
  animation: autoDrivePulse 2s infinite ease-in-out;
}
.futuristic-card:hover .sector-pod-aero-auto .aero-plane {
  transform: translate(6px, -8px) scale(1.15) rotate(-22deg);
  filter: drop-shadow(0 0 8px #38bdf8);
}
.futuristic-card:hover .sector-pod-aero-auto .auto-car {
  transform: translateX(4px);
  filter: drop-shadow(0 0 6px #818cf8);
}

/* 3. SECTEUR LOGISTIQUE & SUPPLY CHAIN */
.sector-pod-logistics .primary-icon {
  animation: truckSuspension 2.5s infinite ease-in-out;
}
.sector-pod-logistics .pod-micro-icon i {
  animation: radarWaveEmit 2s infinite ease-out;
}
.futuristic-card:hover .sector-pod-logistics .primary-icon {
  transform: translateX(3px);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

/* 4. SECTEUR ÉDUCATION & FORMATION */
.sector-pod-education .primary-icon {
  animation: capFloat 3.5s infinite ease-in-out;
}
.sector-pod-education .pod-micro-icon i {
  animation: atomOrbitRevolve 6s linear infinite;
}
.futuristic-card:hover .sector-pod-education .primary-icon {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 0 10px #f59e0b);
}

/* 5. SECTEUR SERVICES, FINANCE & B2B */
.sector-pod-finance {
  position: relative;
  overflow: hidden;
}
.sector-pod-finance .shield-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  animation: shieldLaserScan 2.5s infinite ease-in-out;
  pointer-events: none;
}
.futuristic-card:hover .sector-pod-finance .primary-icon {
  filter: drop-shadow(0 0 8px #10b981);
  transform: scale(1.1);
}


/* Cookie Modal & Switch Styles */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal-box {
  background: #0b101d;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}
.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.15);
  transition: .3s;
  border-radius: 22px;
}
.cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .cookie-switch-slider {
  background-color: var(--accent-cyan);
}
input:checked + .cookie-switch-slider:before {
  transform: translateX(18px);
}

/* ==============================================================================
   ACCESSIBILITY ENHANCEMENTS (WCAG AA - Focus Styles & Navigation)
   ============================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-cyan) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25) !important;
}

/* Ensure mobile drawer is non-focusable when closed */
.mobile-drawer[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.active[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}


/* ==============================================================================
   LIGHT MODE CONTRAST & BLUE TEXT READABILITY (WCAG AA / AAA)
   ============================================================================== */
[data-theme="light"] {
  --accent-cyan: #0284c7; /* Vibrant readable ocean sapphire with 5.5:1 contrast */
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-indigo: #4338ca;
  --accent-indigo-glow: rgba(67, 56, 202, 0.2);
  --text-accent: #0284c7;
  --border-focus: #0284c7;
}

[data-theme="light"] [style*="color: var(--accent-cyan)"],
[data-theme="light"] .text-accent,
[data-theme="light"] a[style*="color: var(--accent-cyan)"] {
  color: #0369a1 !important; /* Deep sapphire blue */
}

[data-theme="light"] [style*="color: var(--accent-indigo)"] {
  color: #3730a3 !important;
}

[data-theme="light"] [style*="color: var(--accent-emerald)"] {
  color: #047857 !important;
}

[data-theme="light"] [style*="color: var(--accent-amber)"] {
  color: #b45309 !important;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #4338ca 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .eyebrow-badge {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0369a1 !important;
}

[data-theme="light"] .eyebrow-badge.indigo {
  background: rgba(67, 56, 202, 0.08) !important;
  border-color: rgba(67, 56, 202, 0.25) !important;
  color: #3730a3 !important;
}

[data-theme="light"] .eyebrow-badge.emerald {
  background: rgba(4, 120, 87, 0.08) !important;
  border-color: rgba(4, 120, 87, 0.25) !important;
  color: #047857 !important;
}

/* ==============================================================================
   ENHANCED COMPONENTS: 'COMMENT SE DÉROULE VOTRE PROJET ?' (4 STEPS)
   ============================================================================== */
.step-flow-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(9, 14, 26, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.step-flow-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 25px var(--card-glow, rgba(6, 182, 212, 0.2));
}

.step-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.step-num-pill {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--card-accent, var(--accent-cyan));
}

.step-icon-pod {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--card-accent, var(--accent-cyan));
}

.step-delay-badge {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--card-accent, var(--accent-cyan));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Light mode for step cards */
[data-theme="light"] .step-flow-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .step-flow-card:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 18px 36px -10px rgba(15, 23, 42, 0.12), 0 0 20px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .step-num-pill {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0284c7;
}

[data-theme="light"] .step-icon-pod {
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(2, 132, 199, 0.2);
  color: #0284c7;
}

[data-theme="light"] .step-delay-badge {
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #0369a1 !important;
}

/* ==============================================================================
   ENHANCED COMPONENTS: 'DES RÉSULTATS CONCRETS SUR LE TERRAIN' (CASE STUDIES)
   ============================================================================== */
.case-study-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 14, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-gradient, var(--grad-accent));
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.case-kpi-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.case-kpi-item {
  text-align: center;
}

.case-kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  display: block;
  line-height: 1.2;
}

.case-kpi-lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-content-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.case-content-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.case-content-list li i {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.case-footer-client {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Light mode for case studies */
[data-theme="light"] .case-study-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .case-study-card:hover {
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .case-kpi-bar {
  background: rgba(2, 132, 199, 0.04);
  border-color: rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .case-kpi-val {
  color: #0284c7 !important;
}

[data-theme="light"] .case-kpi-lbl {
  color: #475569;
}

[data-theme="light"] .case-content-list {
  color: #334155;
}

[data-theme="light"] .case-content-list strong {
  color: #0f172a;
}

[data-theme="light"] .case-footer-client {
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #64748b;
}

/* ==============================================================================
   HOLOGRAPHIC AI 3D AVATAR MODAL & VOICE INTERACTION SYSTEM
   ============================================================================== */
.hero-avatar-card.interactive-avatar-trigger {
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.hero-avatar-card.interactive-avatar-trigger:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.3);
}
.avatar-direct-speech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 0.75rem;
  animation: pulse-border 2.5s infinite;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}
@keyframes pulse-border {
  0%, 100% { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
  50% { border-color: rgba(56, 189, 248, 1); box-shadow: 0 0 22px rgba(56, 189, 248, 0.45); }
}

/* Modal Overlay */
.ai-avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem;
}
.avatar-modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 16, 32, 0.96) 0%, rgba(2, 6, 18, 0.99) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1;
}
.avatar-modal-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
  z-index: 2;
  opacity: 0.6;
}

/* Modal HUD Container (Grand Show Format) */
.avatar-modal-hud-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 920px;
  background: rgba(10, 16, 32, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 2.25rem;
  color: #fff;
  animation: modal-cyber-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modal-cyber-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* HUD Header */
.avatar-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}
.avatar-hud-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.avatar-hud-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
}
.avatar-hud-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot-anim 1.5s infinite;
}
.avatar-hud-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.avatar-hud-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Hologram Stage (Grand Show) */
.avatar-hologram-stage.grand-show {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 430px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-figure-wrap.grand-format {
  position: relative;
  width: 720px;
  max-width: 95vw;
  height: 405px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 2px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.35), 0 20px 45px rgba(0,0,0,0.85), inset 0 0 35px rgba(56, 189, 248, 0.2);
}
.avatar-hologram-img.grand {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.avatar-hologram-img.head-down {
  transform: scale(0.94) translateY(24px) perspective(700px) rotateX(22deg);
  filter: brightness(0.8) contrast(1.15);
}
.avatar-hologram-img.head-up {
  transform: scale(1.02) translateY(-4px) perspective(600px) rotateX(0deg);
  filter: brightness(1.15) contrast(1.05) drop-shadow(0 0 35px rgba(56, 189, 248, 0.7));
}
.avatar-hologram-img.avatar-speaking-glow {
  filter: brightness(1.25) contrast(1.1) drop-shadow(0 0 50px rgba(56, 189, 248, 0.9));
  transform: scale(1.04);
}

/* Awakening Energy Flash Overlay */
.avatar-awakening-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.85) 0%, rgba(99, 102, 241, 0.9) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 8;
}
.avatar-awakening-flash.flash-active {
  animation: awakening-flash-anim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes awakening-flash-anim {
  0% { opacity: 0; transform: scale(0.8); }
  25% { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Laser Scan Bar */
.avatar-laser-scan-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
  box-shadow: 0 0 15px #38bdf8;
  z-index: 7;
  animation: laser-sweep 3.5s ease-in-out infinite alternate;
}
@keyframes laser-sweep {
  0% { top: 0%; opacity: 0.2; }
  50% { opacity: 1; }
  100% { top: 96%; opacity: 0.2; }
}

/* Hologram Corner HUD Brackets */
.holo-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #38bdf8;
  border-style: solid;
  pointer-events: none;
  z-index: 6;
}
.holo-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.holo-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.holo-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.holo-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* Flanking Equalizer Bars for Show */
.avatar-flank-eq {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 120px;
  padding: 0 1.25rem;
}
.avatar-flank-eq span {
  width: 4px;
  background: linear-gradient(to top, rgba(2, 132, 199, 0.2), #38bdf8);
  border-radius: 4px;
  animation: eq-bounce 1.4s ease-in-out infinite alternate;
}
.avatar-flank-eq span:nth-child(1) { height: 35px; animation-delay: 0.1s; }
.avatar-flank-eq span:nth-child(2) { height: 75px; animation-delay: 0.3s; }
.avatar-flank-eq span:nth-child(3) { height: 110px; animation-delay: 0.2s; }
.avatar-flank-eq span:nth-child(4) { height: 60px; animation-delay: 0.4s; }
.avatar-flank-eq span:nth-child(5) { height: 40px; animation-delay: 0.15s; }
@keyframes eq-bounce {
  0% { transform: scaleY(0.3); opacity: 0.3; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Real-time Avatar State Badge */
.avatar-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

/* Hologram Rings */
.hologram-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hologram-ring-outer {
  width: 620px;
  height: 340px;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 50%;
  animation: spin-cw 30s linear infinite;
}
.hologram-ring-inner {
  width: 570px;
  height: 310px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50%;
  animation: spin-ccw 22s linear infinite;
}
@keyframes spin-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-ccw { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

/* Audio Wave Rings around Avatar */
.avatar-speech-wave-rings {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  pointer-events: none;
  display: none;
}
.avatar-speech-wave-rings.active {
  display: block;
}
.avatar-speech-wave-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.6);
  animation: wave-expand 2s infinite ease-out;
  opacity: 0;
}
.avatar-speech-wave-rings span:nth-child(2) { animation-delay: 0.6s; }
.avatar-speech-wave-rings span:nth-child(3) { animation-delay: 1.2s; }
@keyframes wave-expand {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Form Styles */
.avatar-stage-title {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.avatar-stage-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.avatar-lead-form {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
}
.avatar-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.avatar-input-group label {
  display: block;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.avatar-input-group label i {
  color: var(--accent-cyan);
  margin-right: 4px;
}
.avatar-cyber-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.avatar-cyber-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 1);
}
.avatar-cyber-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.9rem;
}
.avatar-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Voice Stage */
.avatar-session-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: #e2e8f0;
}
.avatar-voice-status-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #38bdf8;
  font-weight: 600;
}
.avatar-radar-blip {
  width: 9px;
  height: 9px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-dot-anim 1.2s infinite;
}

/* Microphone Center & Timer */
.avatar-mic-center {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 2rem auto 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-mic-btn {
  position: relative;
  z-index: 5;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #4338ca 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(2, 132, 199, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.avatar-mic-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.8);
}
.avatar-mic-btn.recording {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-color: #fca5a5;
  box-shadow: 0 0 45px rgba(239, 68, 68, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  animation: mic-record-pulse 1s infinite alternate;
}
@keyframes mic-record-pulse {
  from { transform: scale(1); box-shadow: 0 0 35px rgba(239, 68, 68, 0.6); }
  to { transform: scale(1.08); box-shadow: 0 0 60px rgba(239, 68, 68, 0.95); }
}

/* SVG Countdown Ring */
.avatar-timer-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.avatar-timer-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}
.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}
.timer-progress {
  fill: none;
  stroke: #ef4444;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.avatar-timer-number {
  position: absolute;
  top: -24px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.avatar-mic-instruction {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 640px) {
  .avatar-modal-hud-container {
    padding: 1.5rem;
  }
  .avatar-form-grid {
    grid-template-columns: 1fr;
  }
  .avatar-hologram-stage {
    width: 200px;
    height: 200px;
  }
  .avatar-figure-wrap, .avatar-hologram-img {
    width: 145px;
    height: 145px;
  }
}


/* ==========================================================================
   ADAPTATEUR D'AFFICHAGE MULTI-ÉCRANS (PC · TABLETTE · SMARTPHONE)
   Boutons d'adaptation d'affichage & Responsive Design Haute Visibilité
   ========================================================================== */

/* BARRE FLOTTANTE DE CONTRÔLE D'AFFICHAGE */
.device-adapter-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 16, 32, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.2);
  border-radius: 9999px;
  padding: 6px 12px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

[dir="rtl"] .device-adapter-bar {
  left: auto;
  right: 24px;
}

.device-adapter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-adapter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan, #38bdf8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 4px 0 6px;
  white-space: nowrap;
}

[dir="rtl"] .device-adapter-label {
  padding: 0 6px 0 4px;
}

.device-adapter-buttons {
  display: flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.7);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.device-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.device-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(59, 130, 246, 0.35));
  border-color: rgba(56, 189, 248, 0.8);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.35);
}

.device-btn i {
  font-size: 0.88rem;
}

.device-adapter-toggle {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.device-adapter-toggle:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.device-adapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 9px;
  border-radius: 9999px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  white-space: nowrap;
}

.device-adapter-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* État Réduit (Bouton Bulle Flottante) */
.device-adapter-bar.collapsed {
  padding: 8px 14px;
}
.device-adapter-bar.collapsed .device-adapter-label,
.device-adapter-bar.collapsed .device-adapter-buttons,
.device-adapter-bar.collapsed .device-adapter-badge {
  display: none !important;
}
.device-adapter-mini-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--accent-cyan, #38bdf8);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.device-adapter-bar.collapsed .device-adapter-mini-btn {
  display: flex !important;
}

/* CADRE DE SIMULATION D'APPAREIL (SUR ÉCRAN PC) */
html.device-simulated {
  background-color: #030712 !important;
  min-height: 100vh !important;
}

html.device-simulated body {
  position: relative !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), 0 0 0 12px #0f172a, 0 0 0 14px rgba(56, 189, 248, 0.4) !important;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin 0.35s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: var(--bg-body, #0a0f1d) !important;
}

/* Mode Tablette (768px - 820px Format iPad) */
body.device-mode-tablet {
  max-width: 820px !important;
  width: 820px !important;
  margin: 20px auto 80px auto !important;
  border-radius: 32px !important;
  overflow-x: hidden !important;
  min-height: 90vh !important;
}

/* Mode Smartphone (390px - 410px Format Mobile) */
body.device-mode-smartphone {
  max-width: 410px !important;
  width: 410px !important;
  margin: 16px auto 80px auto !important;
  border-radius: 40px !important;
  overflow-x: hidden !important;
  min-height: 85vh !important;
}

body.device-mode-smartphone::before {
  content: "";
  display: block;
  width: 120px;
  height: 20px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 99999;
}

/* ==========================================================================
   RÈGLES D'AFFICHAGE TABLETTE (768px - 1024px et body.device-mode-tablet)
   ========================================================================== */

@media (max-width: 1024px) {
  .site-header { padding: 0.75rem 1.25rem; }
  .desktop-nav { display: none !important; }
  .mobile-toggle { display: flex !important; }
  
  .hero-two-columns {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
    text-align: center;
  }
  .hero-content {
    align-items: center !important;
    text-align: center !important;
    max-width: 680px !important;
    margin: 0 auto !important;
  }
  .hero-actions {
    justify-content: center !important;
  }
  .avatar-hero-card {
    max-width: 460px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .hero-stats-band {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  .col-12, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 {
    grid-column: span 1 !important;
  }
  .col-12, .col-8 {
    grid-column: span 2 !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .solution-showcase-card {
    grid-template-columns: 1fr !important;
  }
  .solution-preview-frame {
    height: 280px !important;
  }
}

/* Règles pour la simulation Tablette sur grand écran */
body.device-mode-tablet .site-header { padding: 0.75rem 1.25rem; }
body.device-mode-tablet .desktop-nav { display: none !important; }
body.device-mode-tablet .mobile-toggle { display: flex !important; }
body.device-mode-tablet .hero-two-columns {
  grid-template-columns: 1fr !important;
  gap: 2.25rem !important;
  text-align: center;
}
body.device-mode-tablet .hero-content {
  align-items: center !important;
  text-align: center !important;
  max-width: 680px !important;
  margin: 0 auto !important;
}
body.device-mode-tablet .hero-actions {
  justify-content: center !important;
}
body.device-mode-tablet .avatar-hero-card {
  max-width: 460px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
body.device-mode-tablet .hero-stats-band {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}
body.device-mode-tablet .bento-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}
body.device-mode-tablet .col-12,
body.device-mode-tablet .col-8,
body.device-mode-tablet .col-7,
body.device-mode-tablet .col-6,
body.device-mode-tablet .col-5,
body.device-mode-tablet .col-4,
body.device-mode-tablet .col-3 {
  grid-column: span 1 !important;
}
body.device-mode-tablet .col-12,
body.device-mode-tablet .col-8 {
  grid-column: span 2 !important;
}
body.device-mode-tablet .footer-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2.5rem !important;
}
body.device-mode-tablet .contact-grid {
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
}
body.device-mode-tablet .solution-showcase-card {
  grid-template-columns: 1fr !important;
}

/* ==========================================================================
   RÈGLES D'AFFICHAGE SMARTPHONE (≤ 767px et body.device-mode-smartphone)
   ========================================================================== */

@media (max-width: 767px) {
  /* Fluid Container sans dépassement latéral */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Header compact */
  .site-header {
    padding: 0.6rem 1rem !important;
  }
  .brand-logo-img {
    max-height: 36px !important;
  }
  .header-actions {
    gap: 0.4rem !important;
  }
  .lang-switcher {
    padding: 2px !important;
  }
  .lang-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 3rem 0 2rem 0 !important;
  }
  .hero-two-columns {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    text-align: center !important;
  }
  .hero-content {
    align-items: center !important;
    text-align: center !important;
    gap: 1.15rem !important;
  }
  .eyebrow-badge {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  h1, .hero-h1, .section-title {
    font-size: clamp(1.75rem, 6vw, 2.2rem) !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
  }
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .hero-actions .btn,
  .hero-actions a {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }
  .hero-trust-cndp,
  .hero-trust-tags {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: center !important;
    font-size: 0.8rem !important;
  }

  /* Carte Avatar Hero */
  .avatar-hero-card {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 1.25rem !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }
  .avatar-hero-speech {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .avatar-meta-row {
    font-size: 0.75rem !important;
  }

  /* Bande de statistiques */
  .hero-stats-band {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-top: 2.25rem !important;
    padding-top: 1.75rem !important;
  }
  .stat-item {
    text-align: center !important;
  }
  .stat-number {
    font-size: 1.85rem !important;
  }
  .stat-label {
    font-size: 0.75rem !important;
  }

  /* Bento Grids & Cards : 1 Colonne Complète */
  .bento-grid,
  .expertise-grid,
  .solutions-grid,
  .industries-grid,
  .testimonials-grid,
  .ojt-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .bento-card,
  .expertise-card,
  .solution-card,
  .industry-card,
  .testimonial-card,
  .ojt-card,
  .col-12, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 {
    grid-column: span 1 !important;
    padding: 1.35rem 1.15rem !important;
    border-radius: 18px !important;
  }
  .solution-showcase-card {
    grid-template-columns: 1fr !important;
    padding: 1.25rem !important;
  }
  .solution-preview-frame {
    height: 200px !important;
  }

  /* Modale Avatar 3D & Page Avatar sur Smartphone */
  .avatar-cockpit-header {
    padding: 0.75rem 1rem !important;
  }
  .avatar-interactive-card {
    padding: 1.25rem !important;
    margin-top: 1rem !important;
    border-radius: 18px !important;
  }
  .avatar-hologram-stage {
    width: 170px !important;
    height: 170px !important;
  }
  .avatar-figure-wrap, .avatar-hologram-img {
    width: 130px !important;
    height: 130px !important;
  }
  .avatar-mic-center {
    width: 100px !important;
    height: 100px !important;
    margin: 1.25rem auto !important;
  }
  .avatar-mic-btn {
    width: 72px !important;
    height: 72px !important;
    font-size: 1.5rem !important;
  }
  .avatar-form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .avatar-interactive-title {
    font-size: 1.15rem !important;
  }

  /* Formulaires et Boutons Contact */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-form-card, .contact-info-card {
    padding: 1.35rem 1.15rem !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  .footer-col, .footer-brand {
    align-items: center !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  /* WhatsApp Flottant positionné au-dessus de la barre d'adaptation */
  .floating-whatsapp {
    bottom: 85px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.35rem !important;
  }
  [dir="rtl"] .floating-whatsapp {
    left: 16px !important;
    right: auto !important;
  }

  /* Barre d'adaptation sur petit écran physique */
  .device-adapter-bar {
    bottom: 12px;
    left: 12px;
    padding: 4px 8px;
    gap: 6px;
  }
  [dir="rtl"] .device-adapter-bar {
    right: 12px;
    left: auto;
  }
  .device-adapter-label {
    display: none;
  }
  .device-btn {
    padding: 5px 9px;
    font-size: 0.75rem;
  }
  .device-btn .d-txt {
    display: none;
  }
  .device-adapter-badge {
    display: none;
  }
}

/* Règles pour la simulation Smartphone sur grand écran (body.device-mode-smartphone) */
body.device-mode-smartphone .container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.device-mode-smartphone .site-header {
  padding: 0.6rem 1rem !important;
}
body.device-mode-smartphone .desktop-nav {
  display: none !important;
}
body.device-mode-smartphone .mobile-toggle {
  display: flex !important;
}
body.device-mode-smartphone .brand-logo-img {
  max-height: 36px !important;
}
body.device-mode-smartphone .header-actions {
  gap: 0.4rem !important;
}
body.device-mode-smartphone .hero-section {
  padding: 2.5rem 0 2rem 0 !important;
}
body.device-mode-smartphone .hero-two-columns {
  grid-template-columns: 1fr !important;
  gap: 1.75rem !important;
  text-align: center !important;
}
body.device-mode-smartphone .hero-content {
  align-items: center !important;
  text-align: center !important;
  gap: 1.15rem !important;
}
body.device-mode-smartphone h1,
body.device-mode-smartphone .hero-h1,
body.device-mode-smartphone .section-title {
  font-size: 1.85rem !important;
  line-height: 1.25 !important;
}
body.device-mode-smartphone .hero-subtitle {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}
body.device-mode-smartphone .hero-actions {
  flex-direction: column !important;
  width: 100% !important;
  gap: 0.75rem !important;
}
body.device-mode-smartphone .hero-actions .btn,
body.device-mode-smartphone .hero-actions a {
  width: 100% !important;
  justify-content: center !important;
  padding: 0.85rem 1.25rem !important;
  font-size: 0.95rem !important;
  box-sizing: border-box !important;
}
body.device-mode-smartphone .avatar-hero-card {
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  padding: 1.25rem !important;
  box-sizing: border-box !important;
}
body.device-mode-smartphone .hero-stats-band {
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}
body.device-mode-smartphone .bento-grid,
body.device-mode-smartphone .expertise-grid,
body.device-mode-smartphone .solutions-grid,
body.device-mode-smartphone .industries-grid,
body.device-mode-smartphone .testimonials-grid,
body.device-mode-smartphone .ojt-grid {
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}
body.device-mode-smartphone .bento-card,
body.device-mode-smartphone .expertise-card,
body.device-mode-smartphone .solution-card,
body.device-mode-smartphone .industry-card,
body.device-mode-smartphone .testimonial-card,
body.device-mode-smartphone .ojt-card,
body.device-mode-smartphone .col-12,
body.device-mode-smartphone .col-8,
body.device-mode-smartphone .col-7,
body.device-mode-smartphone .col-6,
body.device-mode-smartphone .col-5,
body.device-mode-smartphone .col-4,
body.device-mode-smartphone .col-3 {
  grid-column: span 1 !important;
  padding: 1.35rem 1.15rem !important;
  border-radius: 18px !important;
}
body.device-mode-smartphone .solution-showcase-card {
  grid-template-columns: 1fr !important;
}
body.device-mode-smartphone .solution-preview-frame {
  height: 200px !important;
}
body.device-mode-smartphone .footer-grid {
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  text-align: center !important;
}
body.device-mode-smartphone .contact-grid {
  grid-template-columns: 1fr !important;
}
