: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;

  /* 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-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-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;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::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: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.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 */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* 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 */
/* Import du système de design */
: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;

  /* Dark Mode Theme Colors */
  --primary-dark: #0f0f0f;
  --secondary-dark: #1a1a1a;
  --accent-dark: #2d2d2d;
  --surface-dark: rgba(255, 255, 255, 0.05);
  --surface-light: rgba(255, 255, 255, 0.1);
  --surface-medium: rgba(255, 255, 255, 0.15);
  
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  
  --text-primary-dark: #ffffff;
  --text-secondary-dark: #cccccc;
  --text-muted-dark: #999999;

  /* Light Mode Theme Colors */
  --primary-light-bg: #ffffff;
  --secondary-light-bg: #f8fafc;
  --accent-light: #e2e8f0;
  --text-primary-light: #1a202c;
  --text-secondary-light: #4a5568;

  /* Background color tokens (Dark Mode) */
  --color-bg-1: rgba(29, 78, 216, 0.15);
  --color-bg-2: rgba(180, 83, 9, 0.15);
  --color-bg-3: rgba(21, 128, 61, 0.15);
  --color-bg-4: rgba(185, 28, 28, 0.15);
  --color-bg-5: rgba(107, 33, 168, 0.15);
  --color-bg-6: rgba(194, 65, 12, 0.15);
  --color-bg-7: rgba(190, 24, 93, 0.15);
  --color-bg-8: rgba(8, 145, 178, 0.15);

  /* Semantic Color Tokens */
  --color-background: var(--primary-dark);
  --color-surface: var(--secondary-dark);
  --color-text: var(--text-primary-dark);
  --color-text-secondary: var(--text-secondary-dark);
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-active: #1d4ed8;
  --color-secondary: var(--surface-light);
  --color-secondary-hover: var(--surface-medium);
  --color-secondary-active: rgba(255, 255, 255, 0.2);
  --color-border: rgba(255, 255, 255, 0.2);
  --color-btn-primary-text: var(--color-white);
  --color-card-border: rgba(255, 255, 255, 0.1);
  --color-card-border-inner: rgba(255, 255, 255, 0.05);
  --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-focus-ring: rgba(59, 130, 246, 0.4);

  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 48px;
  --font-size-5xl: 64px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-base: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.19), 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);

  /* Animation */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-backdrop: blur(10px);
}

/* Light Mode */
[data-theme="light"] {
  --color-background: var(--primary-light-bg);
  --color-surface: var(--secondary-light-bg);
  --color-text: var(--text-primary-light);
  --color-text-secondary: var(--text-secondary-light);
  --color-border: rgba(0, 0, 0, 0.1);
  --color-card-border: rgba(0, 0, 0, 0.05);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* Light mode background colors */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  --color-bg-2: rgba(245, 158, 11, 0.08);
  --color-bg-3: rgba(34, 197, 94, 0.08);
  --color-bg-4: rgba(239, 68, 68, 0.08);
  --color-bg-5: rgba(147, 51, 234, 0.08);
  --color-bg-6: rgba(249, 115, 22, 0.08);
  --color-bg-7: rgba(236, 72, 153, 0.08);
  --color-bg-8: rgba(6, 182, 212, 0.08);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all var(--duration-normal) var(--ease-standard);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

.header.scrolled {
  background: rgba(15, 15, 15, 0.95);
  box-shadow: var(--shadow-lg);
}

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

.navbar-brand {
  display: flex;
  align-items: center;  /* Centre verticalement */
  gap: 12px;           /* Espace entre logo et texte */  
}

.brand-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  margin: 0;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.brand-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

.nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-base);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--duration-normal) var(--ease-standard);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  backdrop-filter: var(--glass-backdrop);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--color-secondary-hover);
  transform: scale(1.1);
}

.theme-icon {
  font-size: var(--font-size-lg);
  transition: all var(--duration-normal) var(--ease-standard);
  position: absolute;
}

[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

[data-theme="light"] .sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

[data-theme="light"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
  border-radius: var(--radius-sm);
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

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

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-4) 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-standard);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    width: 100%;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--glow {
  box-shadow: var(--shadow-glow);
}

.btn--glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
}

.btn--glass:hover {
  background: var(--color-secondary-hover);
  transform: translateY(-2px);
}

.btn--full-width {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-gradient);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-standard);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(147, 51, 234, 0.3) 0%, transparent 50%);
}

.hero-bg-2 {
  background: radial-gradient(circle at 40% 80%, rgba(34, 197, 94, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.3) 0%, transparent 50%);
}

.hero-bg-3 {
  background: radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-20) var(--space-4);
}

.hero-title {
  font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: heroTitleIn 1s var(--ease-back) 0.5s both;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
  animation: heroSubtitleIn 1s var(--ease-back) 0.7s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: heroActionsIn 1s var(--ease-back) 0.9s both;
}

.hero-nav {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 3;
  gap: 300px; /* espace de 40px entre les deux boutons */
  bottom: calc(var(--space-8) - 15px); /* abaisse de 10px sous sa position d’origine */

}

.hero-nav-btn {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  font-size: var(--font-size-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

.hero-nav-btn:hover {
  background: var(--color-secondary-hover);
  transform: scale(1.1);
}

.hero-indicators {
  display: flex;
  gap: var(--space-2);
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
}

.hero-indicator.active {
  background: var(--color-white);
  box-shadow: 0 0 10px var(--color-white);
}

.floating-stats {
  position: absolute;
  right: var(--space-8);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  z-index: 3;
}

.stat-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  text-align: center;
  min-width: 140px;
  transition: all var(--duration-normal) var(--ease-standard);
  animation: floatUp 3s ease-in-out infinite;
}

.stat-glass:nth-child(2) { animation-delay: -0.5s; }
.stat-glass:nth-child(3) { animation-delay: -1s; }
.stat-glass:nth-child(4) { animation-delay: -1.5s; }

.stat-glass:hover {
  background: var(--color-secondary-hover);
  transform: scale(1.1);
}

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
  .floating-stats {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: var(--space-8);
    flex-wrap: wrap;
  }
}

/* Sections communes */
section {
  padding: var(--space-24) 0;
  position: relative;
}

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

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-section {
  background: var(--color-bg-1);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: var(--space-8);
}


.service-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.service-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-gradient);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-standard);
}

.service-glass-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-glass-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

.service-glass-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.service-glass-card p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.service-features {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.feature-tag {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* About Section */

/* Décalage de la section “À Propos” sous le header */
.about-section {
  margin-top: 2rem; /* Ajustez cette valeur selon l’espacement souhaité */
}

.about-section {
  background: var(--color-bg-3);
  position: relative;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-cards {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.about-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-standard);
}

.about-glass-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.about-glass-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
}

.about-glass-card p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.value-bubble {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-md);
}

.company-info-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  height: fit-content;
  position: sticky;
  top: var(--space-24);
}

.company-info-glass h3 {
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.info-value {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .company-info-glass {
    position: static;
  }
}

/* Formations Section */
.formations-section {
  background: var(--color-bg-5);
  position: relative;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: var(--space-8);
}

.formation-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.formation-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: all var(--duration-normal) var(--ease-standard);
}

.formation-glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

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

.formation-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.formation-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.formation-glass-card h3 {
  color: var(--color-text);
  font-size: var(--font-size-xl);
  margin: 0;
}

.formation-glass-card p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.formation-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.meta-icon {
  font-size: var(--font-size-base);
}

/* Décalage de la section “Formations” sous le header */
.formations-section {
  margin-top: 2rem; /* Ajustez cette valeur selon l’espacement souhaité */
}



/* Testimonials Section */
.testimonials-section {
  background: var(--color-bg-7);
  position: relative;
}

.testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50px);
  transition: all var(--duration-slow) var(--ease-standard);
}

.testimonial-glass-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.testimonial-text {
  font-size: var(--font-size-lg);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-4);
}

.author-info h4 {
  color: var(--color-text);
  margin: 0;
  font-size: var(--font-size-lg);
}

.author-program {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.rating {
  color: #fbbf24;
  font-size: var(--font-size-lg);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.testimonial-nav-btn {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
}

.testimonial-nav-btn.active {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

/* Contact Section */
.contact-section {
  background: var(--color-bg-8);
  position: relative;
  padding: var(--space-24) 0;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 70%, rgba(6,182,212,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(59,130,246,0.1) 0%, transparent 50%);
}

/* Cartes de contact alignées en ligne */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
  position: relative;
  z-index: 1;
}

/* Structure de la carte : icône en haut, centré */
.contact-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  transition: transform var(--duration-normal) var(--ease-standard),
              box-shadow var(--duration-normal) var(--ease-standard);
}

.contact-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Cercle transparent autour de l'icône, bordure uniquement, taille 100px */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: transparent;
  color: var(--color-primary);
  font-size: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  margin-bottom: var(--space-6);
}


/* Titre et texte centrés */
.contact-glass-card h4 {
  margin: 0 var(--space-0) var(--space-2);
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.contact-glass-card p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Formulaire en dessous des cartes */
.contact-form-container {
  margin-top: var(--space-24);
  position: relative;
  z-index: 1;
}

.contact-form-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-glass h3 {
  margin: 0 0 var(--space-8);
  text-align: center;
  color: var(--color-text);
}

/* Grille deux colonnes pour le formulaire */
.contact-form-glass .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

/* Chaque champ occupe 100% de sa colonne */
.contact-form-glass .form-group {
  width: 100%;
}

/* Champ message pleine largeur */
.contact-form-glass .form-group.full-width {
  grid-column: 1 / -1;
}

/* Bouton sous la grille en pleine largeur du formulaire */
.contact-form-glass .btn--full-width {
  width: 100%;
  margin-top: var(--space-4);
}

/* Styles de formulaire */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.glass-input {
  width: 100%;
  padding: var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition: border-color var(--duration-normal) var(--ease-standard),
              box-shadow var(--duration-normal) var(--ease-standard);
}

.glass-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

/* Style pour le select */
.contact-form-glass select.glass-input {
  padding: var(--space-4);
}

.error-message {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
  display: block;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
  .contact-form-glass .form-grid {
    grid-template-columns: 1fr;
  }
}


/* Bouton WhatsApp fixe - initialement caché */
.whatsapp-fixed {
  position: fixed;
  bottom: 140px;
  right: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 999;
  
  /* Initialement caché comme scroll-to-top */
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all var(--duration-normal) var(--ease-standard);
}

/* État visible du WhatsApp (géré par JavaScript) */
.whatsapp-fixed.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;   
  height: 80px;  
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.whatsapp-fixed i.fab.fa-whatsapp {
  font-size: 32px; 
  color: #ffffff;
}

.whatsapp-tooltip {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-right: var(--space-2);
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-tooltip {
    display: none;
  }
  
  .whatsapp-fixed {
    bottom: 120px;
  }
  
  .whatsapp-fixed a {
    width: 60px;
    height: 60px;
  }
  
  .whatsapp-fixed i.fab.fa-whatsapp {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .whatsapp-fixed {
    bottom: 100px;
    right: var(--space-4);
  }
}




/* Footer */
.footer {
  background: var(--primary-dark);
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: var(--space-12) 0 var(--space-6);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}

.footer-brand h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-2xl);
}

.footer-brand p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.footer-contact p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-column h4 {
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-2);
}

.footer-column a {
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) var(--ease-standard);
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-6);
  text-align: center;
  color: var(--color-text-secondary);
}

.footer-bottom p {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-4);
  transition: all var(--duration-normal) var(--ease-standard);
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-glass-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-glass);
  animation: modalSlideIn var(--duration-normal) var(--ease-bounce);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--font-size-xl);
  transition: all var(--duration-normal) var(--ease-standard);
}

.modal-close:hover {
  background: var(--color-error);
  color: var(--color-white);
}

/* Enrollment Form */
.enrollment-container h2 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
  text-align: center;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepSlideIn var(--duration-normal) var(--ease-standard);
}

.form-step h3 {
  color: var(--color-text);
  margin-bottom: var(--space-6);
  text-align: center;
}

.form-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  margin-top: var(--space-8);
}


/* Mise à jour du scroll-to-top pour ajuster la position */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--font-size-lg);
  z-index: 1000; /* Au-dessus du WhatsApp */
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.scroll-to-top.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

/* Responsive — masque le texte sur petits écrans */
@media (max-width: 768px) {
  .whatsapp-tooltip {
    display: none;
  }
  
  .whatsapp-fixed {
    bottom: 120px; /* Ajustement pour mobile */
  }
  
  .whatsapp-fixed a {
    width: 60px;
    height: 60px;
  }
  
  .whatsapp-fixed i.fab.fa-whatsapp {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .whatsapp-fixed {
    bottom: 100px;
    right: var(--space-4);
  }
}


/* Hero Section - Fullscreen slider */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;  /* Couvre toute la hauteur de la page */
  width: 100vw;   /* Couvre toute la largeur de la page */
  padding-top: 300px;
}
/* Tablette : header plus petit, donc moins de padding-top */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 240px; /* 80px header + 160px espace */
  }
}

/* Mobile paysage : header encore plus petit */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 180px; /* 60px header + 120px espace */
  }
}

/* Mobile portrait : header minimal */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 140px; /* 60px header + 80px espace */
  }
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;  /* Hauteur pleine écran */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Images de fond pour chaque slide */
.hero-bg-1 {
  background-image: url('images/cuisine1.jpg');
}

.hero-bg-2 {
  background-image: url('images/cuisine2.jpg');  
}

.hero-bg-3 {
  background-image: url('images/chef2.jpg');
}
.hero-bg-4 {
  background-image: url('images/fete5.jpg');
}

.hero-bg-6 {
  background-image: url('images/fete2.jpg');
}

/* Overlay sombre pour lisibilité du texte */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}



.testimonials-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 3rem;
}

.testimonials-slider {
    flex: 2;
}

.testimonials-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .testimonials-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .testimonials-stats {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}


/*slides apropos*/
.company-gallery {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.company-gallery:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.company-gallery h3 {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    transform: translateX(30px);
}

.gallery-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.05);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.gallery-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-indicators {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.gallery-indicator.active {
    background: #00a8ff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.gallery-indicator.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid #00a8ff;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .gallery-slider {
        height: 220px;
    }
    
    .company-gallery {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .company-gallery h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .gallery-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .gallery-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Animation d'entrée pour la galerie */
.company-gallery {
    animation: slideUp 0.6s ease-out;
}

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

.company-gallery {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 500px;
    height: 510px;
    
    /* DESCENDRE LA GALERIE */
    margin-top: 180px; /* Ajuste cette valeur selon tes besoins */
    
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


/* Navigation principale */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

/* Texte de la marque à gauche */
.navbar-brand-left {
    flex-shrink: 0;
}

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

.brand-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color, #007bff);
    margin: 0;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    font-weight: 500;
    margin-top: -2px;
}

/* Menu au centre */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    flex-grow: 1;
    justify-content: center;
}

/* Contrôles à droite avec logo */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* ===== HEADER ET CONTAINER ===== */
.header .container {
  padding-left: 0 !important;
}

/* ===== NAVBAR BRAND (Logo + Texte) ===== */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 40px;                /* Espace entre logo et titre */
  margin-left: -90px;       /* Décale tout à gauche */
}

/* ===== LOGO ARRONDI À GAUCHE ===== */
.logo-img-rounded {
  height: 70px;           /* Grande taille */
  width: 70px;            /* Grande taille */
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border: 2px solid #1e90ff;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin: 0;
}


.logo-img-rounded:hover {
  transform: scale(1.06);
}

/* ===== TEXTE DE LA MARQUE ===== */
.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2b7cff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: #e9e9e9;
  font-weight: 500;
  margin: 0;
  line-height: 1;
}

/* ===== LOGO À DROITE (si utilisé) ===== */
.brand-logo-right {
  order: -1;
}

.logo-img-right {
  height: 45px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img-right:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }
  
  .navbar-brand {
    margin-left: -25px;     /* Moins d'écart sur mobile */
    gap: 12px;
  }
  
  .logo-img-rounded {
    height: 36px;
    width: 36px;
  }
  
  .logo-img-right {
    height: 35px;
  }
  
  .brand-title { 
    font-size: 1.2rem; 
  }
  
  .brand-subtitle { 
    font-size: 0.8rem; 
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    margin-left: -15px;
    gap: 8px;
  }
  
  .logo-img-rounded {
    height: 32px;
    width: 32px;
  }
  
  .logo-img-right {
    height: 30px;
  }
  
  .brand-title {
    font-size: 1rem;
  }
  
  .brand-subtitle {
    font-size: 0.7rem;
  }
}



/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;                    /* Hauteur fixe du header */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;                    /* Active Flexbox */
  align-items: center;              /* Centre verticalement le contenu */
  transition: all var(--duration-normal) var(--ease-standard);
}

/* Ajustements responsive */
@media (max-width: 768px) {
  .header {
    height: 80px;                   /* Hauteur réduite sur tablette */
  }
}

@media (max-width: 480px) {
  .header {
    height: 60px;                   /* Hauteur réduite sur mobile */
  }
}


/* Contenu de chaque carte de service aligné */
.service-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Image arrondie à côté du texte */
.service-icon-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* Texte des services */
.service-text h3 {
  margin: 0 0 8px;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
}

.service-text p {
  margin: 0 0 12px;
  color: var(--color-text-secondary);
}

.service-features {
  display: flex;
  gap: 8px;
}



/* Conteneur flex pour image + texte */
.testimonial-content-flex {
  display: flex;
  flex-direction: column;      /* empile verticalement */
  align-items: center;         /* centre horizontalement */
  gap: var(--space-6);
}

/* Image de l'apprenant */
.testimonial-img {
  width: 180px;                /* passe de 120px à 150px */
  height: 180px;               /* même hauteur */
  object-fit: cover;
  border-radius: 50%;          /* Forme circulaire */
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.2); /* Bordure subtile */
}


/* Wrapper texte */
.testimonial-text-wrapper {
  text-align: center;
  position: relative;
}

/* Icône de citation repositionnée */
.quote-icon {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);  /* centre l'icône */
  font-size: 3rem;
  color: rgba(255,255,255,0.2);
  z-index: 1;
}

/* Texte pour éviter recouvrement */
.testimonial-text {
  margin: var(--space-12) 0 var(--space-8) 0;
  font-style: italic;
  line-height: var(--line-height-relaxed);
  position: relative;
  z-index: 2;
}

/* Auteur et note alignés baseline */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-4);
}

/* Masquer les cards inactives par défaut */
.testimonial-glass-card {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-standard),
              visibility var(--duration-normal);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Affichage de la card active */
.testimonial-glass-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}



/* ===== FOOTER BRAND (Logo + Texte) - même style que header ===== */
.footer-brand {
  display: flex;
  flex-direction: column;    /* Empile verticalement logo, titre, texte, coordonnées */
  align-items: flex-start;
  margin-left: -90px;        /* Même décalage à gauche que .navbar-brand */
  gap: var(--space-4);       /* Espacement entre chaque bloc */
}

/* ===== LOGO ARRONDI ===== */
.footer-brand .logo-img-rounded {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border: 2px solid #1e90ff;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin: 0;
}
.footer-brand .logo-img-rounded:hover {
  transform: scale(1.06);
}

/* ===== TITRE ET SOUS-TITRE ===== */
.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
  margin-top: -80px;
}

.footer-brand .brand-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2b7cff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 1px;
}

.footer-brand .brand-subtitle {
  font-size: 0.9rem;
  color: #e9e9e9;
  font-weight: 500;
  margin: 0;
  line-height: 1;
}

/* ===== DESCRIPTION ===== */
.footer-brand > p {
  margin: var(--space-4) 0;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===== COORDONNÉES ===== */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-contact p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-brand {
    margin-left: -25px;
    align-items: center;
    text-align: center;
  }
  .footer-brand .logo-img-rounded {
    height: 36px;
    width: 36px;
  }
  .footer-brand .brand-title {
    font-size: 1.2rem;
  }
  .footer-brand .brand-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-brand {
    margin-left: -15px;
    gap: 8px;
  }
  .footer-brand .logo-img-rounded {
    height: 32px;
    width: 32px;
  }
  .footer-brand .brand-title {
    font-size: 1rem;
  }
  .footer-brand .brand-subtitle {
    font-size: 0.7rem;
  }
}

/* Décalage horizontal de tout le contenu informatif sous le logo */
.footer-info {
  margin-left: 100px; /* Ajustez selon l’alignement souhaité */
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-brand {
    margin-left: -50px;    /* Réduit le décalage sur tablettes larges */
  }
  .footer-brand .logo-img-rounded {
    height: 56px;
    width: 56px;
  }
  .footer-brand .brand-text {
    margin-left: 16px;
  }
  .footer-brand > p,
  .footer-contact {
    margin-left: 16px;
  }
}

@media (max-width: 768px) {
  .footer-brand {
    margin-left: 0;        /* Centre sur mobiles portrait */
    align-items: center;
    text-align: center;
  }
  .footer-brand .logo-img-rounded {
    height: 48px;
    width: 48px;
  }
  .footer-brand .brand-text {
    margin-left: 0;
    gap: var(--space-2);
  }
  .footer-brand .brand-title {
    font-size: 1.3rem;
  }
  .footer-brand .brand-subtitle {
    font-size: 0.85rem;
  }
  .footer-brand > p,
  .footer-contact {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .footer-brand {
    gap: var(--space-2);
  }
  .footer-brand .logo-img-rounded {
    height: 40px;
    width: 40px;
  }
  .footer-brand .brand-title {
    font-size: 1.1rem;
  }
  .footer-brand .brand-subtitle {
    font-size: 0.75rem;
  }
  .footer-brand > p {
    margin: var(--space-3) 0 0;
  }
  .footer-contact {
    gap: var(--space-1);
  }
  .footer-contact p {
    font-size: 0.75rem;
  }
}


/* Réglage final des flèches Précédent/Suivant pour qu’elles soient collées au slider */
.testimonials-slider {
  position: relative;
}

.testimonials-controls {
  position: absolute;
  top: 55%;
  left: 300px;       /* 24px à l’intérieur du bord gauche */
  right: 300px;      /* 24px à l’intérieur du bord droit */
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.testimonial-prev-btn,
.testimonial-next-btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.testimonial-prev-btn:hover,
.testimonial-next-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}


/* ========================================
   CORRECTIONS RESPONSIVE MOBILE - ACCUEIL
   ======================================== */

/* Empêche le débordement horizontal uniquement sur mobile */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
}

/* ===== HERO SECTION - MOBILE ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 80px;
    width: 100vw;
    overflow: hidden;
  }

  .hero-slide {
    min-height: 100vh;
    width: 100vw;
  }

  .hero-content {
    padding: 100px 20px 140px;
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    word-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 32px;
    word-wrap: break-word;
  }

  /* Boutons empilés verticalement sur mobile */
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Masque les flèches de navigation sur mobile */
  .hero-nav {
    display: none !important;
  }

  /* Ajuste les indicateurs */
  .hero-indicators {
    bottom: 60px;
  }

  /* Stats flottantes */
  .floating-stats {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .stat-glass {
    min-width: 110px;
    padding: 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
}

/* ===== SERVICES SECTION - MOBILE ===== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .service-glass-card {
    padding: 24px 16px;
  }

  .service-card-content {
    flex-direction: column;
    text-align: center;
  }

  .service-icon-img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .service-features {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== NAVBAR - MOBILE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .navbar-brand {
    margin-left: 0;
    gap: 12px;
  }

  .logo-img-rounded {
    height: 40px;
    width: 40px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
  }
}

/* ===== CORRECTIONS SPÉCIFIQUES MOBILES TRÈS PETITS ===== */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 80px 16px 120px;
  }

  .stat-glass {
    min-width: 90px;
  }
}


/* ===== FOOTER - RESPONSIVE MOBILE (MAJ TITRE & TEXTE) ===== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 16px;
  }

  /* Logo + titre alignés à gauche sur la même ligne */
  .footer .footer-brand {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .footer .footer-brand .logo-img-rounded {
    height: 50px;
    width: 50px;
    margin: 0;
  }

  /* Décalage du titre pour l’aligner avec "Formations" */
  .footer .footer-brand .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    margin: 0 0 0 -100px;       /* pousse le titre à gauche */
    gap: 4px;
  }

  .footer .footer-brand .brand-title {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.2;
  }

  .footer .footer-brand .brand-subtitle {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
  }

  /* Texte descriptif PLEIN GAUCHE - aligné avec "Formations" */
  .footer .footer-brand p {
    width: 100%;
    margin: 16px 0 0 -100px;     /* conserve le même décalage */
    padding: 0;
    font-size: 0.85rem;
    text-align: left;
  }

  /* Liens deux colonnes */
  .footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
  }

  .footer .footer-links .link-group {
    flex: 1 1 45%;
    text-align: left;
  }

  .footer .footer-links .link-group--support {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer .footer-links .link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .footer .footer-links .link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer .footer-links .link-group ul li {
    margin-bottom: 4px;
  }

  /* Bas de footer */
  .footer .footer-bottom {
    font-size: 0.8rem;
    margin-top: 24px;
    text-align: center;
  }
}




/* ===== ABOUT SECTION – RESPONSIVE MOBILE (MAJ COMPLÈTE) ===== */
@media (max-width: 768px) {
  /* Conteneur global de la section */
  .about-section {
    padding: 24px 0;           /* suppression du padding horizontal pour éviter tout débordement */
    display: block;
    box-sizing: border-box;
  }

  /* Titre principal */
  .about-section .section-title {
    font-size: 1.75rem;
    text-align: center;
    margin: 0 16px 16px;       /* marges latérales pour alignement avec le reste */
    box-sizing: border-box;
  }

  /* Texte d’intro ou slogan */
  .about-section .section-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    margin: 0 16px 24px;       /* marges latérales identiques */
    box-sizing: border-box;
  }

  /* Conteneurs de blocs (Mission, Vision, Valeurs...) */
  .about-section .info-block {
    background: var(--color-gray-200);
    padding: 16px;
    border-radius: 8px;
    margin: 0 16px 16px;       /* marges latérales et verticales */
    box-sizing: border-box;    /* inclut padding dans la largeur dispo */
  }

  /* En-tête de chaque bloc */
  .about-section .info-block h4 {
    font-size: 1.25rem;
    margin: 0 0 8px;
  }

  /* Paragraphe de chaque bloc */
  .about-section .info-block p {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
  }

  /* Badges "Nos Valeurs" */
  .about-section .info-block .value-badge {
    display: inline-block;
    padding: 12px 16px;        /* augmente la hauteur, réduit la largeur */
    margin: 4px 4px 0 0;
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 4px;
    background: var(--color-primary);
    color: #fff;
    box-sizing: border-box;
  }
}

/* Empêche tout débordement horizontal sur mobile */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  /* Force les colonnes à n’être qu’une seule pour la section About */
  .about-section .about-content {
    display: block;               /* annule la grid à deux colonnes */
  }
}


@media (max-width: 768px) {
  /* Aligne le titre “🏆 Nos Réalisations” à gauche */
  .realisations-section h3 {
    text-align: left;
    margin-left: 16px;  /* ajustez la valeur selon le besoin */
  }
}


