/**
 * Design System Inmac Wstore - Tokens CSS
 * 
 * Ce fichier contient tous les tokens CSS du design system.
 * À importer dans vos projets pour utiliser le design system.
 * 
 * Usage:
 *   <link rel="stylesheet" href="tokens.css">
 *   ou
 *   @import 'tokens.css';
 */

:root {
  /* ============================================
     BASE COLORS
     ============================================ */
  
  /* Brand (Primary) - Inmac x Bechtle / Accent Blue */
  --color-brand-25: #f5f7fe;
  --color-brand-50: #ebf0fd;
  --color-brand-100: #d0dafb;
  --color-brand-200: #a8b9f7;
  --color-brand-300: #7a94f0;
  --color-brand-400: #4d6ee9;
  --color-brand-500: #244ca7;
  --color-brand-600: #244ca7;
  --color-brand-700: #1e3d8f;
  --color-brand-800: #1a3580;
  --color-brand-900: #152a66;
  --color-brand-950: #0f1f4d;

  /* Gray (Accent) - Inmac x Bechtle */
  --color-gray-25: #fdfdfd;
  --color-gray-50: #f3f3f3;
  --color-gray-100: #e1e1e1;
  --color-gray-200: #d0d0d0;
  --color-gray-300: #b0b0b0;
  --color-gray-400: #757575;
  --color-gray-500: #757575;
  --color-gray-600: #4e4e4e;
  --color-gray-700: #4e4e4e;
  --color-gray-800: #3a3a3a;
  --color-gray-900: #252525;
  --color-gray-950: #0a0a0a;

  /* Base */
  --color-base-black: #000000;
  --color-base-white: #ffffff;
  --color-base-transparent: #ffffff00;

  /* Error palette - Inmac x Bechtle (Error Red) */
  --color-error-25: #fef5f5;
  --color-error-50: #fce9ea;
  --color-error-100: #f8d4d6;
  --color-error-200: #f0a8ac;
  --color-error-300: #e87d82;
  --color-error-400: #e05258;
  --color-error-500: #da1e28;
  --color-error-600: #da1e28;
  --color-error-700: #bf1a23;
  --color-error-800: #a3161e;
  --color-error-900: #871219;
  --color-error-950: #550c10;

  /* Warning palette - Inmac x Bechtle (Warning Orange) */
  --color-warning-25: #fef8f5;
  --color-warning-50: #fcf1e9;
  --color-warning-100: #f8e2d0;
  --color-warning-200: #f0c4a0;
  --color-warning-300: #e8a670;
  --color-warning-400: #e08940;
  --color-warning-500: #da6f1e;
  --color-warning-600: #da6f1e;
  --color-warning-700: #6d370f;
  --color-warning-800: #5c2f0d;
  --color-warning-900: #4a260b;
  --color-warning-950: #2e1707;

  /* Success palette - Inmac x Bechtle (Conversion Green) */
  --color-success-25: #f2faf5;
  --color-success-50: #e6f5ec;
  --color-success-100: #ccebd9;
  --color-success-200: #99d7b3;
  --color-success-300: #66c38d;
  --color-success-400: #33af67;
  --color-success-500: #187e4b;
  --color-success-600: #187e4b;
  --color-success-700: #13643c;
  --color-success-800: #075033;
  --color-success-900: #053d26;
  --color-success-950: #03291a;

  /* ============================================
     SEMANTIC TOKENS - TEXT
     ============================================ */
  
  --text-white: var(--color-base-white);
  --text-primary: var(--color-gray-900);
  --text-secondary: var(--color-gray-700);
  --text-secondary-hover: var(--color-gray-800);
  --text-tertiary: var(--color-gray-600);
  --text-tertiary-hover: var(--color-gray-700);
  --text-quaternary: var(--color-gray-500);
  --text-placeholder: var(--color-gray-400);
  --text-placeholder-subtle: var(--color-gray-300);
  --text-disabled: var(--color-gray-400);
  
  /* Brand text */
  --text-brand-secondary: var(--color-brand-600);
  --text-brand-secondary-hover: var(--color-brand-700);
  --text-brand-tertiary: var(--color-brand-500);
  
  /* Status text */
  --text-error-primary: var(--color-error-600);
  --text-warning-primary: var(--color-warning-600);
  --text-success-primary: var(--color-success-600);

  /* ============================================
     SEMANTIC TOKENS - BACKGROUND
     ============================================ */
  
  --bg-primary: var(--color-base-white);
  --bg-primary-hover: var(--color-gray-50);
  --bg-secondary: var(--color-gray-50);
  --bg-tertiary: var(--color-gray-100);
  --bg-quaternary: var(--color-gray-200);
  --bg-active: var(--color-gray-100);
  --bg-disabled: var(--color-gray-200);
  --bg-disabled-subtle: var(--color-gray-100);
  
  /* Brand backgrounds */
  --bg-brand-solid: var(--color-brand-600);
  --bg-brand-solid-hover: var(--color-brand-700);
  
  /* Status backgrounds */
  --bg-error-solid: var(--color-error-600);
  --bg-warning-solid: var(--color-warning-600);
  --bg-success-solid: var(--color-success-600);

  /* ============================================
     SEMANTIC TOKENS - FOREGROUND (ICONS)
     ============================================ */
  
  --fg-white: var(--color-base-white);
  --fg-quaternary: var(--color-gray-500);
  --fg-quaternary-hover: var(--color-gray-600);
  --fg-disabled: var(--color-gray-400);
  --fg-disabled-subtle: var(--color-gray-300);
  
  /* Status foreground */
  --fg-success-secondary: var(--color-success-500);
  --fg-error-secondary: var(--color-error-500);
  --fg-warning-secondary: var(--color-warning-500);
  --fg-brand-primary: var(--color-brand-500);

  /* ============================================
     SEMANTIC TOKENS - BORDER
     ============================================ */
  
  --border-primary: var(--color-gray-300);
  --border-secondary: var(--color-gray-200);
  --border-disabled: var(--color-gray-300);
  --border-disabled-subtle: var(--color-gray-200);
  
  /* Brand borders */
  --border-brand: var(--color-brand-500);
  
  /* Status borders */
  --border-error: var(--color-error-500);
  --border-warning: var(--color-warning-500);
  --border-success: var(--color-success-500);

  /* ============================================
     COMPONENT-SPECIFIC TOKENS
     ============================================ */
  
  /* Button tokens */
  --button-primary-icon: var(--color-base-white);
  --button-primary-icon-hover: var(--color-base-white);
  
  /* Slider tokens */
  --slider-handle-bg: var(--color-base-white);
  --slider-handle-border: var(--color-gray-300);
  
  /* Toggle tokens */
  --toggle-border: var(--color-gray-300);
  --toggle-slim-border-pressed: var(--color-brand-500);
  --toggle-slim-border-pressed-hover: var(--color-brand-600);
  --toggle-button-fg-disabled: var(--color-gray-400);

  /* ============================================
     SPACING
     ============================================ */
  
  --spacing-none: 0px;
  --spacing-xxs: 2px;
  --spacing-xs: 4px;
  --spacing-sm: 6px;
  --spacing-md: 8px;
  --spacing-lg: 12px;
  --spacing-xl: 16px;
  --spacing-2xl: 20px;
  --spacing-3xl: 24px;
  --spacing-4xl: 32px;
  --spacing-5xl: 40px;
  --spacing-6xl: 48px;
  --spacing-7xl: 64px;
  --spacing-8xl: 80px;
  --spacing-9xl: 96px;
  --spacing-10xl: 128px;
  --spacing-11xl: 160px;

  /* ============================================
     RADIUS
     ============================================ */
  
  --radius-none: 0px;
  --radius-1: 1px;
  --radius-xxs: 2px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-4xl: 24px;
  --radius-full: 9999px;

  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font families - Bechtle Pro (Figma node 1-418) */
  --font-family-display: "Bechtle Pro", sans-serif;
  --font-family-body: "Bechtle Pro", sans-serif;

  /* Font weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Display sizes */
  --font-size-display-2xl: 72px;
  --line-height-display-2xl: 90px;
  --font-size-display-xl: 60px;
  --line-height-display-xl: 72px;
  --font-size-display-lg: 48px;
  --line-height-display-lg: 60px;
  --font-size-display-md: 36px;
  --line-height-display-md: 44px;
  --font-size-display-sm: 30px;
  --line-height-display-sm: 38px;
  --font-size-display-xs: 24px;
  --line-height-display-xs: 32px;

  /* Text sizes */
  --font-size-text-xl: 20px;
  --line-height-text-xl: 30px;
  --font-size-text-lg: 18px;
  --line-height-text-lg: 28px;
  --font-size-text-md: 16px;
  --line-height-text-md: 24px;
  --font-size-text-sm: 14px;
  --line-height-text-sm: 20px;
  --font-size-text-xs: 12px;
  --line-height-text-xs: 18px;

  /* Semantic typography tokens */
  /* Labels - Text sm/Medium */
  --typo-label-size: var(--font-size-text-sm);
  --typo-label-height: var(--line-height-text-sm);
  --typo-label-weight: var(--font-weight-medium);
  
  /* Body text - Text md/Regular */
  --typo-body-size: var(--font-size-text-md);
  --typo-body-height: var(--line-height-text-md);
  --typo-body-weight: var(--font-weight-regular);
  
  /* Body small - Text sm/Regular */
  --typo-body-sm-size: var(--font-size-text-sm);
  --typo-body-sm-height: var(--line-height-text-sm);
  --typo-body-sm-weight: var(--font-weight-regular);
  
  /* Caption / Small text - Text xs/Medium */
  --typo-caption-size: var(--font-size-text-xs);
  --typo-caption-height: var(--line-height-text-xs);
  --typo-caption-weight: var(--font-weight-medium);
  
  /* Button text - Text sm/Semibold */
  --typo-button-size: var(--font-size-text-sm);
  --typo-button-height: var(--line-height-text-sm);
  --typo-button-weight: var(--font-weight-semibold);
  
  /* Input text - Text md/Regular */
  --typo-input-size: var(--font-size-text-md);
  --typo-input-height: var(--line-height-text-md);
  --typo-input-weight: var(--font-weight-regular);
  
  /* Input small - Text sm/Regular */
  --typo-input-sm-size: var(--font-size-text-sm);
  --typo-input-sm-height: var(--line-height-text-sm);
  --typo-input-sm-weight: var(--font-weight-regular);
  
  /* Supporting text / Hint - Text sm/Regular */
  --typo-supporting-size: var(--font-size-text-sm);
  --typo-supporting-height: var(--line-height-text-sm);
  --typo-supporting-weight: var(--font-weight-regular);
  
  /* Headings (Display) - Display lg/Medium */
  --typo-heading-lg-size: var(--font-size-display-lg);
  --typo-heading-lg-height: var(--line-height-display-lg);
  --typo-heading-lg-weight: var(--font-weight-medium);

  /* ============================================
     SHADOWS
     ============================================ */
  
  --shadow-xs: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  --shadow-sm: 0 1px 2px -1px rgba(10, 13, 18, 0.10),
               0 1px 3px 0 rgba(10, 13, 18, 0.10);
  --shadow-md: 0 2px 4px -2px rgba(10, 13, 18, 0.06),
               0 4px 6px -1px rgba(10, 13, 18, 0.10);
  --shadow-lg: 0 2px 2px -1px rgba(10, 13, 18, 0.04),
               0 4px 6px -2px rgba(10, 13, 18, 0.03),
               0 12px 16px -4px rgba(10, 13, 18, 0.08);
  --shadow-xl: 0 3px 3px -1.5px rgba(10, 13, 18, 0.04),
               0 8px 8px -4px rgba(10, 13, 18, 0.03),
               0 20px 24px -4px rgba(10, 13, 18, 0.08);
  --shadow-2xl: 0 4px 4px -2px rgba(10, 13, 18, 0.04),
                0 24px 48px -12px rgba(10, 13, 18, 0.18);
  --shadow-3xl: 0 5px 5px -2.5px rgba(10, 13, 18, 0.04),
                0 32px 64px -12px rgba(10, 13, 18, 0.14);

  /* ============================================
     FOCUS RINGS
     ============================================ */
  
  --focus-ring: #244ca7; /* brand-500 / Accent Blue */
  --focus-ring-error: #da1e28; /* error-500 */

  /* ============================================
     FIGMA — inmac x bechtle design system (node 4-2475)
     Source: https://www.figma.com/design/K7IROAP0fiWbjGkFcgE9fy/
     ============================================ */

  /* Couleurs BG Figma (alias ou nouvelles) */
  --color-figma-experience-green: #075033;   /* = success-800 */
  --color-figma-progressive-green: #23a96a;
  --color-figma-light-blue: #27c9d1;
  --color-figma-lime: #bbe53d;
  --color-figma-raspberry: #c34161;
  --color-figma-future-green: #2ffb95;
  --color-figma-purple: #644682;
  --color-figma-straight-blue: #244ca7;     /* = brand-500/600 */
  --color-figma-purple-muted: #f6f1fb;
  --color-figma-future-green-muted: #c1fed5;

  /* Typo Figma — body-short-02 (Bechtle Web, 16px) */
  --typo-figma-body-short-02-size: 16px;
  --typo-figma-body-short-02-height: 22px;
  --typo-figma-body-short-02-weight: 400;
  --typo-figma-body-short-02-bold-weight: 700;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing utilities */
.m-xxs { margin: var(--spacing-xxs); }
.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
.m-2xl { margin: var(--spacing-2xl); }
.m-3xl { margin: var(--spacing-3xl); }
.m-4xl { margin: var(--spacing-4xl); }

.p-xxs { padding: var(--spacing-xxs); }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-2xl { padding: var(--spacing-2xl); }
.p-3xl { padding: var(--spacing-3xl); }
.p-4xl { padding: var(--spacing-4xl); }

.gap-xxs { gap: var(--spacing-xxs); }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.gap-2xl { gap: var(--spacing-2xl); }

/* Radius utilities */
.r-none { border-radius: var(--radius-none); }
.r-xxs { border-radius: var(--radius-xxs); }
.r-xs { border-radius: var(--radius-xs); }
.r-sm { border-radius: var(--radius-sm); }
.r-md { border-radius: var(--radius-md); }
.r-lg { border-radius: var(--radius-lg); }
.r-xl { border-radius: var(--radius-xl); }
.r-2xl { border-radius: var(--radius-2xl); }
.r-3xl { border-radius: var(--radius-3xl); }
.r-4xl { border-radius: var(--radius-4xl); }
.r-full { border-radius: var(--radius-full); }

/* Focus ring utilities */
.focus-ring {
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--focus-ring);
}

.focus-ring--error {
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--focus-ring-error);
}

.focus-ring--shadow-xs {
  box-shadow: var(--shadow-xs), 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--focus-ring);
}

.focus-ring--shadow-sm {
  box-shadow: var(--shadow-sm), 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--focus-ring);
}
