/* =====================================================
   ATRADIS - Variables & Design Tokens
   ===================================================== */

:root {
  /* Couleurs Primaires */
  --color-primary: #FA3B00;        /* Orange Primaire */
  --color-primary-dark: #C73A10;
  --color-primary-light: #F5653A;
  
  /* Couleurs Secondaires */
  --color-secondary: #4B2F8C;      /* Violet */
  --color-secondary-dark: #341D5C;
  --color-secondary-light: #6B4FB3;
  
  /* Couleurs Neutres */
  --color-black: #1A1A1A;
  --color-dark-gray: #333333;
  --color-gray: #666666;
  --color-light-gray: #F5F5F5;
  --color-white: #FFFFFF;
  
  /* Couleurs Sémantiques */
  --color-success: #27AE60;
  --color-error: #E74C3C;
  --color-warning: #F39C12;
  --color-info: #3498DB;
  
  /* Typographie */
  --font-primary: 'Montserrat', sans-serif;    /* Titres */
  --font-secondary: 'Poppins', sans-serif;     /* Texte courant */
  --font-mono: 'Courier New', monospace;
  
  /* Tailles de police */
  --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: 28px;
  --font-size-4xl: 32px;
  --font-size-5xl: 40px;
  --font-size-6xl: 50px;
  
  /* Poids de police */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Espacements */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 48px;
  
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 1000;
  --z-tooltip: 1100;
}

/* =====================================================
   RESET CSS
   ===================================================== */

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

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

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

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); }

/* Listes */
ul, ol {
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-sm);
}

/* Liens */
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary-light);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Formulaires */
input, textarea, select, button {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  border: none;
}

input, textarea, select {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 76, 31, 0.1);
}

/* Boutons */
button {
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-semibold);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-xl);
}

th, td {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: var(--color-light-gray);
  font-weight: var(--font-weight-semibold);
}

tr:hover {
  background-color: var(--color-light-gray);
}
