:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Additional theme tokens */
  --color-surface-secondary: rgba(var(--color-brown-600-rgb), 0.02);
  --color-text-muted: rgba(var(--color-slate-500-rgb), 0.8);
  --color-accent: var(--color-teal-500);
  --color-accent-dark: var(--color-teal-600);
  --color-success-dark: var(--color-teal-600);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --color-border: rgba(var(--color-brown-600-rgb), 0.15);

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-accent: var(--color-teal-300);
    --color-accent-dark: var(--color-teal-400);
    --color-success-dark: var(--color-teal-400);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-accent: var(--color-teal-300);
  --color-accent-dark: var(--color-teal-400);
  --color-success-dark: var(--color-teal-400);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(33, 128, 141, 1) 0%, rgba(26, 104, 115, 1) 100%);
  color: rgba(252, 252, 249, 1);
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn--primary:hover {
  background: linear-gradient(135deg, rgba(29, 116, 128, 1) 0%, rgba(26, 104, 115, 1) 100%);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
  color: white;
}

.btn--primary:active {
  background: linear-gradient(135deg, rgba(26, 104, 115, 1) 0%, rgba(26, 104, 115, 1) 100%);
  transform: translateY(0);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* FleetZen Landing Page 2025 - Revolutionary UX */

/* CSS Variables */
:root {
  /* Color System */
  --color-bg: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-surface-secondary: #F5F2ED;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-accent: #14B8A6;
  --color-border: #E5E7EB;
  --color-border-light: #D1D5DB;
  
  /* Dark Mode Colors */
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-surface-secondary: #334155;
  --dark-text: #f8fafc;
  --dark-text-muted: #94a3b8;
  --dark-border: #475569;
  --dark-border-light: #64748b;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 800;
  
  /* Spacing & Layout */
  --container-max-width: 1200px;
  --bento-gap: 12px;
  --bento-radius: 16px;
  --section-padding: 60px;
  --section-padding-mobile: 40px;
  
  /* Animation */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --elastic-ease: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.12);
  --glow-accent: 0 0 20px rgba(20, 184, 166, 0.3);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-bg: var(--dark-bg);
  --color-surface: var(--dark-surface);
  --color-surface-secondary: var(--dark-surface-secondary);
  --color-text: var(--dark-text);
  --color-text-muted: var(--dark-text-muted);
  --color-border: var(--dark-border);
  --color-border-light: var(--dark-border-light);
  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(148, 163, 184, 0.2);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .container {
    padding: 0 12px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  /* Contact + Calendly grid: gestion déplacée dans index.html pour éviter les conflits */
  .quick-contact-form { height: auto !important; }
  .calendar-card { overflow: hidden; }
  .calendly-inline-widget,
  .calendly-inline-widget > div,
  .calendly-inline-widget iframe {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* iPhone XR et tailles similaires */
@media (max-width: 414px) {
  .container {
    padding: 0 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  
  html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Force tous les éléments à rester dans les limites */
  .container, section, div, p, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Grilles et flex optimisés */
  .hero__bento, .timeline-container {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 8px !important;
  }
  
  /* Hero section mobile optimisé */
  .hero__bento {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .hero__block {
    padding: 20px !important;
  }
  
  .hero__title {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
  
  /* Timeline mobile optimisé */
  .timeline-container {
    padding: 16px 8px !important;
  }
  
  .timeline-card {
    padding: 16px !important;
    margin: 0 !important;
  }
  
  .timeline-content {
    margin-left: 60px !important;
  }
  
  /* Cards générales */
  .card, .glass-card {
    padding: 16px !important;
    margin: 0 4px !important;
  }
  
  /* FAQ mobile optimisé iPhone XR */
  .faq-section {
    padding: 35px 0 !important;
  }
  
  .faq__accordion {
    margin: 0 8px !important;
    max-width: none !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }
  
  .faq-column {
    gap: 12px !important;
  }
  
  .faq-item {
    margin-bottom: 0 !important;
    border-radius: 16px !important;
  }
  
  .faq-question {
    padding: 13px 14px 3px 14px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    min-height: 34px !important;
  }
  
  .faq-question span {
    padding-right: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .faq-icon {
    width: 20px !important;
    height: 20px !important;
  }
  
  .faq-content {
    padding: 0 16px 12px 16px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  
  .faq-item.active .faq-answer {
    grid-template-rows: 1fr !important;
  }
  
  .faq__header {
    margin-bottom: 32px !important;
    padding: 0 16px !important;
  }
  
  .faq__header .section-title {
    font-size: 28px !important;
    margin-bottom: 12px !important;
  }
  
  .faq__header .section-subtitle {
    font-size: 15px !important;
    margin-bottom: 0 !important;
  }
  
  /* Header navigation optimisé iPhone XR */
  .header {
    padding: 8px 0 !important;
  }
  
  .nav {
    padding: 12px 16px !important;
    gap: 8px 12px !important;
  }
  
  .nav__logo {
    font-size: 24px !important;
  }
  
  .nav__mobile-toggle .theme-toggle {
    width: 28px !important;
    height: 28px !important;
  }
  
  .nav__mobile-phone, .nav__mobile-email {
    font-size: 13px !important;
  }
  
  .nav__mobile-client .btn, .nav__mobile-rdv .btn {
    padding: 6px 10px !important;
    font-size: 10px !important;
    min-width: 70px !important;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 20px;
    margin: 0 auto;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border-light);
  box-shadow: var(--shadow-subtle);
}

.btn--primary:hover {
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-surface-secondary);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.btn--large {
  padding: 18px 36px;
  font-size: 18px;
  border-radius: 16px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 16px 0;
}

.header.scrolled {
  padding: 8px 0;
  background: rgba(var(--color-brown-600-rgb), 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(var(--color-brown-600-rgb), 0.2);
}

.header.scrolled .nav__logo {
  font-size: 18px;
  transition: font-size 0.3s ease;
}

.header.scrolled .nav__logo-sub {
  font-size: 11px;
  transition: font-size 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.nav__logo {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.nav__logo-sub {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  font-size: 0.61em;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__phone, .nav__email {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text) !important;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Masquer les éléments mobiles sur desktop */
.nav__mobile-toggle,
.nav__mobile-phone,
.nav__mobile-client,
.nav__mobile-email,
.nav__mobile-rdv {
  display: none;
}

.nav__phone:hover, .nav__email:hover {
  color: var(--color-accent) !important;
}

/* Force correct colors in dark mode - Remove all backgrounds */
[data-theme="dark"] .nav__phone,
[data-theme="dark"] .nav__email {
  color: #e2e8f0 !important;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .nav__phone:hover,
[data-theme="dark"] .nav__email:hover {
  color: #f1f5f9 !important;
  background: none !important;
  background-color: transparent !important;
}

/* Theme Toggle */
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

/* MOBILE HEADER OPTIMIZATIONS - UNIQUEMENT MOBILE */
@media (max-width: 768px) {
  /* Masquer le layout desktop sur mobile */
  .nav__actions {
    display: none !important;
  }
  
  /* Afficher les éléments mobiles */
  .nav__mobile-toggle,
  .nav__mobile-phone,
  .nav__mobile-client,
  .nav__mobile-email,
  .nav__mobile-rdv {
    display: block;
  }
  
  /* Compensation padding pour header fixe sur mobile */
  .hero {
    padding-top: 140px; /* Compense la hauteur du header mobile 3 lignes */
  }
  
  /* Layout mobile principal - 3 lignes professionnelles */
  .header {
    padding: 12px 0;
  }
  
  .nav {
    padding: 16px 16px 16px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto; /* 3 lignes */
    gap: 10px 20px; /* Espacement vertical uniforme */
    align-items: center; /* Alignement centré sur chaque ligne */
  }
  
  /* LIGNE 1 - Logo + Toggle */
  .nav__brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  
  .nav__logo {
    font-size: 28px; /* Logo agrandi */
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    margin: 0;
  }
  
  .nav__logo-sub {
    font-size: 0.58em;
  }
  
  /* Toggle en ligne 1 droite */
  .nav__mobile-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end; /* Extrême droite */
  }
  
  .nav__mobile-toggle .theme-toggle {
    width: 32px; /* Plus petit */
    height: 32px;
    font-size: 14px;
    border-width: 1.5px;
  }
  
  /* LIGNE 2 - Téléphone + Espace Client */
  .nav__mobile-phone {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px; /* Taille lisible */
    font-weight: var(--font-weight-medium);
    color: var(--color-text) !important;
    text-decoration: none;
    align-self: center;
  }
  
  .nav__mobile-client {
    grid-column: 2;
    grid-row: 2;
    justify-self: end; /* Aligné droite */
    align-self: center;
  }
  
  /* LIGNE 3 - Email + Prendre RDV */
  .nav__mobile-email {
    grid-column: 1;
    grid-row: 3;
    font-size: 15px; /* Taille lisible */
    font-weight: var(--font-weight-medium);
    color: var(--color-text) !important;
    text-decoration: none;
    align-self: center;
  }
  
  .nav__mobile-rdv {
    grid-column: 2;
    grid-row: 3;
    justify-self: end; /* Aligné droite */
    align-self: center;
  }
  
  /* Style des boutons mobile - optimisé pour layout 3 lignes */
  .nav__mobile-client .btn,
  .nav__mobile-rdv .btn {
    padding: 8px 14px;
    font-size: 11px;
    min-width: 88px;
    height: auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    line-height: 1.3;
    font-weight: var(--font-weight-medium);
  }
  
  /* Espace Client - style discret */
  .nav__mobile-client .btn--secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
  }
  
  /* Prendre RDV - bouton principal contrasté */
  .nav__mobile-rdv .btn--primary {
    background: var(--color-accent);
    color: white;
    border: 1.5px solid var(--color-accent);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
  }
  
  /* Header compact au scroll - layout 3 lignes conservé, icônes à droite */
  .header--compact {
    padding: 8px 0;
  }
  
  .header--compact .nav {
    padding: 12px 12px 12px 16px;
    gap: 8px 16px; /* Gap réduit pour version compacte */
  }
  
  .header--compact .nav__logo {
    font-size: 22px; /* Logo réduit en mode compact */
  }
  
  .header--compact .nav__logo-sub {
    font-size: 0.55em;
  }
  
  .header--compact .nav__mobile-phone,
  .header--compact .nav__mobile-email {
    font-size: 13px; /* Coordonnées légèrement réduites */
  }
  
  .header--compact .nav__mobile-toggle .theme-toggle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  /* Transformation des boutons en icônes au scroll */
  .header--compact .nav__mobile-client .btn,
  .header--compact .nav__mobile-rdv .btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    font-size: 13px;
    min-width: auto;
    overflow: hidden;
    text-indent: -9999px;
    position: relative;
  }
  
  .header--compact .nav__mobile-client .btn:before,
  .header--compact .nav__mobile-rdv .btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-size: 13px;
  }
  
  .header--compact .nav__mobile-client .btn--secondary:before {
    content: '👤'; /* Espace Client en icône */
  }
  
  .header--compact .nav__mobile-rdv .btn--primary:before {
    content: '📅'; /* Prendre RDV en icône */
  }
}

/* SEO Content - Masqué visuellement mais visible pour Google */
.seo-content {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  font-size: 16px;
  line-height: 1.6;
}

.seo-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.seo-content p {
  margin-bottom: 16px;
  color: #333;
}

.seo-content ul {
  list-style: disc;
  margin-left: 20px;
  color: #333;
}

.seo-content li {
  margin-bottom: 8px;
}

/* Hero Section - Bento Layout */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 var(--section-padding);
  position: relative;
}

.hero__bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--bento-gap);
  width: 100%;
}

.hero__block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--bento-radius);
  padding: 2px;
  position: relative;
  transition: var(--transition-smooth);
}

.hero__block--main {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.hero__block--stats {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__block--visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
}

.hero__title {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.hero__baseline {
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero__baseline span {
  display: inline-block;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: slideInRight 0.8s var(--elastic-ease) 0.5s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 40px 0;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--bento-radius);
  padding: 24px;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  border-radius: var(--bento-radius) var(--bento-radius) 0 0;
}

.stats-card {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.live-counter {
  margin-bottom: 20px;
  position: relative;
  padding: 10px 0;
}

.counter-value {
  font-size: 36px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  display: block;
  position: relative;
}

.counter-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.counter-pulse {
  position: absolute;
  top: 0;
  right: -10px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.trust-badge__icon {
  font-size: 16px;
}

/* Floating Cards */
.floating-card {
  position: relative;
  transition: var(--transition-smooth);
}

.floating-card:hover {
  transform: translateY(-8px) scale(1.02) rotate(1deg);
  box-shadow: var(--shadow-large);
}

.hero__visual {
  width: 100%;
  height: 100%;
}

.visual-placeholder {
  background: linear-gradient(135deg, #F5F1EB, #E8E4DE);
  border: 2px solid #D4CFC8;
  border-radius: var(--bento-radius);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(42, 155, 171, 0.1);
}

.visual-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.visual-image {
  width: 100%;
  height: 100%;
  border-radius: var(--bento-radius);
  object-fit: fill;
  transition: var(--transition-smooth);
}

.floating-card:hover .visual-image {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1) contrast(1.1);
}

/* Animation continue pour attirer l'attention */
.visual-image {
  animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes subtleFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-8px) rotate(1deg); 
  }
}

/* Animation plus marquée au hover */
.floating-card:hover .visual-image {
  animation: none;
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  filter: blur(30px);
  z-index: 1;
}

/* Services Section */
.services {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

@media (min-width: 1024px) {
  .services {
    padding-top: 30px;
  }
}

.services__bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--bento-gap);
  perspective: 1000px;
}

/* Desktop: 4 colonnes sur une ligne */
@media (min-width: 1200px) {
  .services__bento {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--bento-radius);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  border-radius: var(--bento-radius) var(--bento-radius) 0 0;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02) rotate(1deg);
  border-color: var(--color-accent);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  background: var(--color-surface-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-accent);
  position: relative;
  transition: var(--transition-smooth);
}

.icon-3d {
  transform-style: preserve-3d;
}

.service-card:hover .icon-3d {
  transform: rotateY(15deg) rotateX(5deg);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.1);
}

.service-card__title {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 16px;
  color: var(--color-text);
}

.service-card__description {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-card__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .service-card__glow {
  opacity: 0.05;
}

/* Social proof elements retirés */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
}

/* Process Timeline */
.process-timeline {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-secondary) 100%);
  transform: scale(0.85);
  transform-origin: center;
  margin: -40px 0;
}

.process__header {
  text-align: center;
  margin-bottom: 60px;
}

/* Styles par défaut comme pour la FAQ */

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, 
    var(--color-accent) 0%, 
    rgba(var(--color-success-rgb), 0.3) 100%);
  border-radius: 2px;
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  margin-bottom: 60px;
  opacity: 0.6;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-step.active {
  opacity: 1;
}

.timeline-step:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: calc(50% + 40px);
  text-align: right;
}

.timeline-step:nth-child(odd) .timeline-content {
  margin-left: calc(50% + 40px);
  margin-right: 0;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 
    0 8px 25px rgba(var(--color-success-rgb), 0.3),
    0 0 0 8px var(--color-surface);
  transition: all 0.4s ease;
}

.timeline-step.active .timeline-dot {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 
    0 12px 35px rgba(var(--color-success-rgb), 0.4),
    0 0 0 8px var(--color-surface),
    0 0 0 12px rgba(var(--color-success-rgb), 0.2);
}

.timeline-dot-inner {
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.timeline-content {
  padding: 20px 0;
}

.timeline-card {
  padding: 24px;
  transition: all 0.4s ease;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.timeline-step.active .timeline-card {
  transform: translateY(-4px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.timeline-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.timeline-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.timeline-time {
  font-size: 15px;
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(var(--color-success-rgb), 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* Timeline Mobile */
@media (max-width: 768px) {
  .timeline-container {
    padding: 20px 16px;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-step:nth-child(even) .timeline-content,
  .timeline-step:nth-child(odd) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-dot {
    left: 30px;
    width: 40px;
    height: 40px;
  }
  
  .timeline-dot-inner {
    font-size: 14px;
  }
  
  .timeline-card {
    padding: 20px;
  }
  
  .timeline-icon {
    font-size: 24px;
  }
  
  .timeline-title {
    font-size: 18px;
  }
}

/* FAQ Section - Style Fojow inspiré */
.faq-section {
  padding: 60px 0;
  background: linear-gradient(135deg, 
    var(--color-surface) 0%, 
    rgba(var(--color-success-rgb), 0.03) 50%, 
    var(--color-surface-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(var(--color-success-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(var(--color-success-rgb), 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.faq__header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.faq__header .section-title {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.faq__accordion {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.faq-item {
  background: var(--color-surface);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.faq-item::before {
  content: none;
}

.faq-item.active::before { content: none; }

.faq-item:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
  background: var(--color-surface);
  border-color: rgba(var(--color-success-rgb), 0.25);
  transform: translateY(-4px);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 6px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  min-height: 42px;
}

.faq-question:hover {
  color: var(--color-text);
}

.faq-question span {
  flex-grow: 1;
  padding-right: 12px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text);
}

/* Make entire FAQ card clickable and focusable */
.faq-item:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

/* Hide small time badges under timeline cards */
.timeline-time { display: none !important; }

.faq-icon {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  transition: 
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  flex-shrink: 0;
  background: rgba(var(--color-success-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg) scale(1.1);
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--color-success-rgb), 0.3);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--color-surface);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer > * {
  overflow: hidden;
}

.faq-content {
  padding: 0 24px 16px 24px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 15px;
  border-top: 1px solid rgba(var(--color-success-rgb), 0.15);
  margin-top: -1px;
  opacity: 0;
  transform: translateY(-8px);
  transition: 
    opacity 0.3s ease 0.1s,
    transform 0.3s ease 0.1s;
}

.faq-item.active .faq-content {
  opacity: 1;
  transform: translateY(0);
}

.faq-content p {
  margin: 12px 0 0 0;
}

.faq-content strong {
  color: var(--color-accent);
  font-weight: 700;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}


/* FAQ Colonnes */
.faq-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* FAQ Responsive */
@media (max-width: 1024px) {
  .faq__accordion {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
  }
}

/* Global mobile spacing reduction */
@media (max-width: 768px) {
  :root {
    --section-padding: 40px;
  }
  
  .faq-section {
    padding: 40px 0;
  }
  
  .faq__accordion {
    margin: 0 16px;
    gap: 20px;
  }
  
  .faq-item {
    border-radius: 20px;
  }
  
  .faq-question {
    padding: 15px 16px 5px 16px;
    font-size: 15px;
    min-height: 38px;
  }
  
  .faq-question span {
    padding-right: 10px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .faq-icon {
    width: 24px;
    height: 24px;
  }
  
  .faq-content {
    padding: 0 20px 14px 20px;
    font-size: 14px;
  }
  
  .faq-item.active .faq-answer {
    grid-template-rows: 1fr;
  }
}

/* Trust Wall */
.trust-wall {
  padding: var(--section-padding) 0;
  position: relative;
  background: linear-gradient(135deg, var(--color-surface-secondary), var(--color-surface));
  overflow: hidden;
}

.trust-wall__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--bento-radius);
  padding: 48px;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.5) 30%, 
    rgba(255, 255, 255, 0.2) 70%, 
    transparent 100%);
  border-radius: var(--bento-radius) var(--bento-radius) 0 0;
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: radial-gradient(circle at 50% 0%, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%);
  border-radius: calc(var(--bento-radius) - 2px);
  pointer-events: none;
}

.trust-wall__center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 40px;
}

.status-message--top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
}

.live-stat {
  text-align: center;
  position: relative;
}

.stat-number {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-indicator {
  position: absolute;
  top: 5px;
  right: -5px;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.social-proof-ticker {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
  min-width: 300px;
}

.ticker-item {
  font-size: 14px;
  color: var(--color-text-muted);
  opacity: 0;
  position: absolute;
  left: 20px;
  right: 20px;
  transition: opacity 0.5s ease;
}

.status-message {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* Testimonials */
.testimonials-carousel {
  margin-bottom: 32px;
  position: relative;
  min-height: 200px;
}

.testimonial {
  display: none;
  text-align: center;
}

.testimonial.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.testimonial__stars {
  font-size: 20px;
  margin-bottom: 16px;
  animation: starGlow 2s ease infinite;
}

.testimonial__text {
  font-size: 20px;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
}

.author-info {
  text-align: left;
}

.author-info strong {
  display: block;
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.author-info span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}


.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 24px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translate(-50%, -50%) scale(1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(var(--color-success-rgb), 0.05);
  border: 1px solid rgba(var(--color-success-rgb), 0.1);
  border-radius: 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu-overlay.active .mobile-nav__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav__link:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav__link:hover {
  background: rgba(var(--color-success-rgb), 0.15);
  border-color: var(--color-accent);
  transform: translateX(8px);
}

.mobile-nav__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.mobile-nav__text {
  flex: 1;
}

.mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--color-success-rgb), 0.2);
}

@media (max-width: 768px) {
}

/* Advantages */
.advantages {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.advantage-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 24px 32px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.advantage-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  border-radius: 50px 50px 0 0;
}

.interactive-pill:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.pill-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-smooth);
  opacity: 0.1;
}

.interactive-pill:hover .pill-glow {
  width: 200px;
  height: 200px;
}

.pill-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.pill-title {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

/* Quote Form */
.quote-form {
  padding: var(--section-padding) 0;
  background: var(--color-surface-secondary);
}

.quote-form__header {
  text-align: center;
  margin-bottom: 48px;
}

.urgency-text {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  margin-right: 16px;
}

.response-timer {
  color: var(--color-text-muted);
  font-size: 14px;
}

.quote-form__content {
  max-width: 700px;
  margin: 0 auto;
}

/* Form Progress */
.form-progress {
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #0891b2);
  width: 33.33%;
  transition: width 0.5s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.step.active {
  opacity: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-smooth);
}

.step.active .step-number {
  background: var(--color-accent);
  color: white;
}

.step-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Gamified Form */
.gamified-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--bento-radius);
  padding: 40px;
  position: relative;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: slideInRight 0.3s ease;
}

.step-title {
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: 32px;
  text-align: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Checkbox Pills */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.checkbox-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
}

.checkbox-pill:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.checkbox-pill input:checked + .pill-content {
  color: var(--color-accent);
}

.checkbox-pill input:checked ~ .pill-checkmark {
  opacity: 1;
  transform: scale(1);
}

.pill-content {
  font-weight: var(--font-weight-medium);
  transition: var(--transition-smooth);
}

.pill-checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-bounce);
}

/* Field Validation */
.field-validation {
  margin-top: 8px;
  font-size: 14px;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-validation.success {
  color: #22c55e;
}

.field-validation.success::before {
  content: '✓';
  font-weight: bold;
}

.field-validation.error {
  color: #ef4444;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.btn--prev {
  background: var(--color-surface-secondary);
  border: 2px solid var(--color-border);
}

.btn--next, .btn--submit {
  position: relative;
  overflow: hidden;
}

.btn--submit {
  background: var(--color-accent);
  color: white;
  border: 2px solid var(--color-accent);
}

.btn--submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

/* Almost Done Message */
.almost-done {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  color: #92400e;
  padding: 12px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: var(--font-weight-medium);
  margin-bottom: 24px;
  animation: bounceIn 0.5s var(--elastic-ease);
}

/* Custom Checkbox */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.consent-checkbox input {
  position: absolute;
  opacity: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  flex-shrink: 0;
  position: relative;
  transition: var(--transition-smooth);
}

.consent-checkbox input:checked + .checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.consent-checkbox input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Form Success */
.form-success {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--bento-radius);
  padding: 48px;
  text-align: center;
  position: relative;
}

.success-animation {
  font-size: 64px;
  margin-bottom: 24px;
  animation: bounceIn 0.8s var(--elastic-ease);
}

.form-success h3 {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 60px 0 32px;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer__logo {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 8px;
}

.footer__logo-sub {
  font-weight: var(--font-weight-medium);
  opacity: 0.7;
}

[data-theme="light"] .footer__logo-sub {
  color: #1e293b !important;
}

[data-theme="dark"] .footer__logo-sub {
  color: white !important;
}

.footer__tagline {
  opacity: 0.8;
  margin-bottom: 0;
}

.footer__title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 16px;
  color: var(--color-text);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
}

.footer a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer a:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
  color: var(--color-accent);
}

/* Footer links inherit theme colors; no overrides needed */

/* Footer tagline colors */
[data-theme="light"] .footer__tagline {
  color: #1e293b !important;
}

[data-theme="dark"] .footer__tagline {
  color: white !important;
}

/* Client Portal Modal */
.client-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.client-modal {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

.client-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-modal-header h3 {
  margin: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.close-modal:hover {
  background: var(--color-accent);
  color: white;
}

.client-modal-body {
  padding: 24px;
  text-align: center;
}

.client-modal-body p {
  margin: 0 0 16px;
  color: var(--color-text);
}

.client-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(33, 128, 141, 0.3);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  transition: var(--transition-smooth);
  background: var(--color-background);
  color: var(--color-text);
}

.client-input:focus {
  outline: none;
  border-color: rgba(33, 128, 141, 1);
  box-shadow: 0 0 0 3px rgba(33, 128, 141, 0.1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cookie Consent Banner - Design discret */
/* Cookie Consent Banner - Version Compacte RGPD */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  padding: 12px 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-consent:not(.hidden) {
  transform: translateY(0);
}

.cookie-consent.hidden {
  transform: translateY(100%);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Vue principale compacte */
.cookie-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.cookie-inline-link {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
}

.cookie-inline-link:hover {
  color: var(--color-accent-dark);
}

.cookie-actions-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Boutons compacts */
.cookie-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  border: 1.5px solid;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cookie-btn--accept {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  min-width: 80px;
}

.cookie-btn--accept:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
  min-width: 60px;
}

.cookie-btn--reject:hover {
  background: var(--color-text-muted);
  color: white;
  transform: translateY(-1px);
}

.cookie-btn--customize {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn--customize:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.1);
}

.cookie-btn--save {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
  min-width: 80px;
}

.cookie-btn--save:hover {
  background: var(--color-success-dark);
  transform: translateY(-1px);
}

.cookie-btn--cancel {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
  min-width: 60px;
}

.cookie-btn--cancel:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* Panel de personnalisation */
.cookie-customize-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  animation: slideDown 0.3s ease-out;
}

.cookie-customize-panel.hidden {
  display: none;
}

.cookie-categories-compact {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cookie-category-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cookie-category-compact input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.cookie-category-compact input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-category-compact label {
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-category-compact label strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.cookie-required {
  color: var(--color-text-muted);
  font-size: 10px;
  font-style: italic;
}

.cookie-optional {
  color: var(--color-accent);
  font-size: 10px;
}

.cookie-actions-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Animation pour le panel */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Footer Cookie Button */
.footer-cookie-btn {
  background: none;
  border: none;
  color: var(--color-text);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  line-height: inherit;
  transition: color 0.2s ease;
  text-align: left;
  display: inline;
  box-shadow: none;
  outline: none;
}

.footer-cookie-btn:hover {
  color: var(--color-accent);
}

/* Responsive Design - Masquage Complet Mobile */
@media (max-width: 768px) {
  .cookie-consent {
    display: none !important;
  }
}


/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes starGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
  }
}

/* Scroll Animations */
[data-scroll-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--elastic-ease);
}

[data-scroll-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* 3D Tilt Effect */
[data-tilt] {
  transition: var(--transition-smooth);
  transform-style: preserve-3d;
}

/* Contact section responsive fixes */
.calendar-card { overflow: hidden; }

/* Styles contact-calendar déplacés dans index.html inline pour éviter conflits */
@media (max-width: 768px) {
  .calendly-inline-widget,
  .calendly-inline-widget > div,
  .calendly-inline-widget iframe {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero__bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .hero__block--main {
    grid-row: auto;
    order: 1;
  }
  
  .hero__block--stats {
    order: 2;
  }
  
  .hero__block--visual {
    order: 3;
  }
  
  
  .hero {
    padding-top: 15px;
  }
  
  .hero__cta {
    flex-direction: column;
  }
  
  .nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav__actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav__contact {
    order: -1;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 8px;
  }
  
  .trust-wall__stats {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 20px;
  }
  
  .status-message {
    justify-content: center;
    min-width: auto;
    width: fit-content;
  }
  
  /* Témoignages - avatars plus larges et plus ronds sur mobile */
  .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .testimonial__text {
    font-size: 18px;
    padding: 0 16px;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .form-navigation {
    flex-direction: column;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

/* Legal Page Styles */
.legal-content {
  padding: 80px 0 60px;
  background: var(--color-background);
}

.legal-page {
  max-width: 100%;
  margin: 0;
  background: var(--color-background);
  border-radius: 0;
  padding: 48px 0;
  box-shadow: none;
}

.legal-page h1 {
  color: var(--color-text);
  margin-bottom: 32px;
  text-align: center;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 16px;
}

.legal-section {
  margin-bottom: 32px;
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--bento-radius);
  box-shadow: var(--shadow-sm);
}

.legal-section h2 {
  color: var(--color-text);
  font-size: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
}

.legal-section p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--color-text);
}

.legal-section a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.legal-section a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.legal-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--color-text);
}

.legal-section h3 {
  color: var(--color-text);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  margin: 24px 0 12px 0;
}

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.footer-simple a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-simple a:hover {
  color: var(--color-primary-hover);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 24px;
    margin: 0 16px;
  }
  
  .footer-simple {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
