/**
 * ClickMe - Design System
 * Variables CSS et tokens de design
 */

:root {
  /* === Couleurs === */

  /* Fond & Surfaces */
  --color-bg-primary: #1A1410;
  --color-bg-secondary: #252018;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-hover: rgba(255, 255, 255, 0.08);

  /* Texte */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.85);
  --color-text-muted: rgba(255, 255, 255, 0.6);

  /* Accents */
  --color-accent-primary: #D97644;
  --color-accent-secondary: #C46638;
  --color-accent-tertiary: #B05A30;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #D97644, #C46638);
  --gradient-secondary: linear-gradient(135deg, #C46638, #B05A30);
  --gradient-bg: linear-gradient(180deg, #1A1410, #252018);

  /* États */
  --color-success: #6B8E23;
  --color-error: #E85D4A;
  --color-warning: #F0A84D;
  --color-info: #6CA3D9;

  /* === Spacing === */
  --spacing-xs: 0.5rem;
  /* 8px */
  --spacing-sm: 0.75rem;
  /* 12px */
  --spacing-md: 1rem;
  /* 16px */
  --spacing-lg: 1.5rem;
  /* 24px */
  --spacing-xl: 2rem;
  /* 32px */
  --spacing-2xl: 3rem;
  /* 48px */
  --spacing-3xl: 4rem;
  /* 64px */

  /* === Typography === */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 2rem;
  /* 32px */
  --font-size-4xl: 2.5rem;
  /* 40px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* === Borders & Radius === */
  --border-radius-sm: 0.375rem;
  /* 6px */
  --border-radius-md: 0.5rem;
  /* 8px */
  --border-radius-lg: 0.75rem;
  /* 12px */
  --border-radius-xl: 1rem;
  /* 16px */
  --border-radius-full: 9999px;

  --border-width: 1px;
  --border-width-thick: 2px;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow-primary: 0 0 30px rgba(217, 118, 68, 0.5);
  --shadow-glow-secondary: 0 0 30px rgba(196, 102, 56, 0.4);
  --shadow-glow-warm: 0 0 40px rgba(217, 118, 68, 0.35);

  /* === Glassmorphism === */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(217, 118, 68, 0.2);
  --glass-blur: 12px;

  /* === Animations === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* === Z-index === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1070;
}

/* === Animations Keyframes === */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

/* === Utility Classes === */

.animate-fade-in {
  animation: fadeIn var(--transition-base) var(--ease-out);
}

.animate-slide-up {
  animation: slideUp var(--transition-slow) var(--ease-out);
}

.animate-slide-down {
  animation: slideDown var(--transition-slow) var(--ease-out);
}

.animate-scale-in {
  animation: scaleIn var(--transition-base) var(--ease-out);
}

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

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--border-width) solid var(--glass-border);
}