/* ============================================================================
   COMMON.CSS - Propulse WEB
   Fichier CSS principal partagé - Formulaire client + Dashboard admin
   ============================================================================ */

/* ============================================================================
   1. GOOGLE FONTS IMPORT
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================================================
   2. CSS VARIABLES - Design System
   ============================================================================ */
:root {
  /* Couleurs - Primaire & Neutres */
  --primary: #FF9D00;
  --primary-hover: #E88D00;
  --primary-light: rgba(255, 157, 0, 0.1);
  --primary-glow: rgba(255, 157, 0, 0.4);
  --primary-glow-strong: rgba(255, 157, 0, 0.6);

  /* Fonds */
  --bg-dark: #0A0A0A;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --bg-input: #151515;
  --bg-light: #FFFFFF;

  /* Texte */
  --text-primary: #F5F5F5;
  --text-secondary: #AAAAAA;
  --text-muted: #666666;
  --text-dark: #1A1A1A;

  /* Bordures */
  --border: #2A2A2A;
  --border-focus: #FF9D00;

  /* États */
  --success: #4CAF50;
  --success-bg: rgba(76, 175, 80, 0.1);
  --error: #F44336;
  --error-bg: rgba(244, 67, 54, 0.1);
  --warning: #FF9D00;
  --warning-bg: rgba(255, 157, 0, 0.1);
  --info: #2196F3;
  --info-bg: rgba(33, 150, 243, 0.1);

  /* Espacements */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typographie */
  --font-family: 'Poppins', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 50px;
  --radius-round: 50%;

  /* Ombres */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-glow-strong: 0 0 30px var(--primary-glow-strong);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s ease;

  /* ---- ALIAS : Couleurs (préfixe --color-) ---- */
  --color-primary: var(--primary);
  --color-primary-light: var(--primary-light);
  --color-primary-dark: var(--primary-hover);
  --color-accent: var(--primary);
  --color-secondary: var(--text-secondary);
  --color-secondary-dark: var(--text-muted);
  --color-success: var(--success);
  --color-error: var(--error);
  --color-text: var(--text-primary);
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-bg: var(--bg-dark);
  --color-bg-base: var(--bg-dark);
  --color-bg-dark: var(--bg-dark);
  --color-bg-light: #151515;
  --color-bg-lighter: #1E1E1E;
  --color-bg-secondary: #111111;
  --color-border: var(--border);
  --color-card: var(--bg-card);
  --color-card-bg: var(--bg-card);

  /* ---- ALIAS : Espacements (préfixe --spacing-) ---- */
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;

  /* ---- ALIAS : Typographie (préfixe --text-) ---- */
  --text-2xs: 0.625rem;
  --text-xs: var(--font-size-xs);
  --text-sm: var(--font-size-sm);
  --text-base: var(--font-size-base);
  --text-lg: var(--font-size-lg);
  --text-xl: var(--font-size-xl);
  --text-2xl: var(--font-size-2xl);
  --text-3xl: var(--font-size-3xl);
  --font-size-l: 1.125rem;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ---- ALIAS : Divers ---- */
  --border-radius: var(--radius-md);

  /* ---- Admin : Variables spécifiques ---- */
  --admin-sidebar-width: 260px;
  --admin-sidebar-bg: var(--bg-card);
  --admin-sidebar-border: var(--border);
  --admin-link-active-color: var(--primary);
  --admin-link-hover-color: var(--primary-light);
  --admin-login-card-width: 400px;
  --admin-login-card-radius: var(--radius-lg);
  --admin-page-header-height: 60px;
  --admin-agent-list-width: 300px;
  --admin-stats-gap: 16px;
}

/* ============================================================================
   3. RESET CSS & BOX SIZING
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Reset éléments standards */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ============================================================================
   4. TYPOGRAPHIE
   ============================================================================ */
h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: 1.5;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 500;
  line-height: 1.5;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Liens */
a {
  color: var(--primary);
}

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

/* Classes utilitaires texte */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--success);
}

.text-error {
  color: var(--error);
}

.text-warning {
  color: var(--warning);
}

.text-info {
  color: var(--info);
}

/* ============================================================================
   5. BOUTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

/* Bouton primaire */
.btn--primary {
  background-color: var(--primary);
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

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

.btn--primary:active {
  transform: translateY(0);
}

/* Bouton secondaire */
.btn--secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
}

/* Bouton danger */
.btn--danger {
  background-color: var(--error);
  color: var(--bg-light);
  box-shadow: var(--shadow-md);
}

.btn--danger:hover {
  background-color: #E53935;
  transform: translateY(-2px);
}

.btn--danger:active {
  transform: translateY(0);
}

/* Bouton ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

/* Tailles boutons */
.btn--sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-xs);
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* État désactivé */
.btn:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================================
   6. CARTES
   ============================================================================ */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.card__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.card__body {
  padding: var(--space-lg);
}

.card__text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: var(--space-md);
}

/* Cartes statistiques */
.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: var(--font-size-2xl);
}

.stat-card__value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.stat-card__label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================================
   7. FORMULAIRES
   ============================================================================ */
.form-group {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.form-input,
.form-select,
.form-textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  background-color: rgba(255, 157, 0, 0.05);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0.6;
  cursor: not-allowed;
}

/* État erreur */
.form-input--error,
.form-input--error:focus {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px var(--error-bg);
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-family);
}

/* Hints & Erreurs */
.form-hint {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--error);
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Zone d'upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background-color: rgba(255, 157, 0, 0.02);
}

.upload-zone:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-zone.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-zone__icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.upload-zone__text {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.upload-zone__hint {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: var(--space-sm);
}

/* Checkboxes & Radios personnalisés */
.form-checkbox,
.form-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.form-checkbox input,
.form-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.form-checkbox .control,
.form-radio .control {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.form-radio .control {
  border-radius: var(--radius-round);
}

.form-checkbox input:checked + .control {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-checkbox input:checked + .control::after {
  content: '✓';
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
}

.form-radio input:checked + .control::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: var(--radius-round);
}

.form-checkbox input:focus + .control,
.form-radio input:focus + .control {
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-checkbox input:disabled + .control,
.form-radio input:disabled + .control {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================================
   8. TABLEAUX
   ============================================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);

}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
}

.table th {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================================
   9. MODALES
   ============================================================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal--open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn var(--transition-base);
}

.modal__content {
  position: relative;
  z-index: 1001;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn var(--transition-base);
  width: 90%;
}

.modal__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.modal__close:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal__body {
  padding: var(--space-lg);
}

.modal__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ============================================================================
   10. TOASTS / NOTIFICATIONS
   ============================================================================ */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  animation: slideInRight var(--transition-base);
  pointer-events: auto;
  min-width: 300px;
}

.toast--success {
  border-color: var(--success);
  background-color: var(--success-bg);
}

.toast--error {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.toast--warning {
  border-color: var(--warning);
  background-color: var(--warning-bg);
}

.toast--info {
  border-color: var(--info);
  background-color: var(--info-bg);
}

.toast__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.toast--success .toast__icon {
  color: var(--success);
}

.toast--error .toast__icon {
  color: var(--error);
}

.toast--warning .toast__icon {
  color: var(--warning);
}

.toast--info .toast__icon {
  color: var(--info);
}

.toast__content {
  flex: 1;
}

.toast__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.toast__message {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.toast__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition-base);
}

.toast__close:hover {
  color: var(--text-primary);
}

.toast.hide {
  animation: fadeOut var(--transition-base) forwards;
}

/* ============================================================================
   11. BADGES / STATUTS
   ============================================================================ */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge--nouveau {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge--en-cours {
  background-color: var(--warning-bg);
  color: var(--warning);
}

.badge--brief-complete {
  background-color: var(--success-bg);
  color: var(--success);
}

.badge--en-production {
  background-color: var(--info-bg);
  color: var(--info);
}

.badge--livre {
  background-color: var(--success);
  color: var(--text-dark);
  font-weight: 700;
}

/* ============================================================================
   12. ÉTAPES / PROGRESSION MULTI-STEP
   ============================================================================ */
.steps {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  position: relative;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.step__label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.step--active .step__number {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-dark);
  box-shadow: var(--shadow-glow);
}

.step--active .step__label {
  color: var(--primary);
  font-weight: 600;
}

.step--completed .step__number {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--text-dark);
}

.step--completed .step__number::after {
  content: '✓';
  font-weight: 700;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 60px;
  right: -60px;
  height: 2px;
  background-color: var(--border);
  top: 20px;
  z-index: -1;
}

.step--active:not(:last-child)::after,
.step--completed:not(:last-child)::after {
  background-color: var(--primary);
}

/* ============================================================================
   13. LOADERS & SKELETONS
   ============================================================================ */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

.loader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: var(--radius-round);
  animation: spin 0.8s linear infinite;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: pulse 2s infinite;
  border-radius: var(--radius-md);
}

.skeleton--text {
  height: 16px;
  margin-bottom: var(--space-md);
}

.skeleton--circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
}

.skeleton--rect {
  height: 120px;
}

/* ============================================================================
   14. EMPTY STATE
   ============================================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state__mascot {
  font-size: 80px;
  margin-bottom: var(--space-lg);
}

.empty-state__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.empty-state__text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state__action {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   15. ANIMATIONS - KEYFRAMES
   ============================================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -200% 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: var(--shadow-glow);
  }
  50% {
    box-shadow: var(--shadow-glow-strong);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

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

/* ============================================================================
   16. PAGE CONTENT ANIMATION CASCADE
   ============================================================================ */
.page-content > * {
  animation: fadeInUp 0.5s ease both;
}

.page-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

.page-content > *:nth-child(2) {
  animation-delay: 0.1s;
}

.page-content > *:nth-child(3) {
  animation-delay: 0.15s;
}

.page-content > *:nth-child(4) {
  animation-delay: 0.2s;
}

.page-content > *:nth-child(5) {
  animation-delay: 0.25s;
}

/* ============================================================================
   17. UTILITY CLASSES
   ============================================================================ */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Alignements texte */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gaps */
.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* Margins top */
.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

/* Margins bottom */
.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

/* Margins vertical */
.my-xs {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.my-sm {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.my-md {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.my-lg {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.my-xl {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Paddings horizontal */
.px-md {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.px-lg {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.px-xl {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

/* Display flex helpers */
.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

/* ============================================================================
   18. RESPONSIVE - BREAKPOINTS
   ============================================================================ */

/* Mobile overrides (< 640px) - Default mobile-first */
@media (max-width: 639px) {
  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }

  h3 {
    font-size: var(--font-size-lg);
  }

  /* Modales fullscreen */
  .modal__content {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    border-radius: 0;
  }

  /* Masquer les mascotes sur mobile */
  .empty-state__mascot {
    font-size: 60px;
  }

  /* Tables scrollable */
  .table-wrapper {
    overflow-x: auto;
  }

  /* Formulaires full width */
  .form-group {
    width: 100%;
  }

  /* Toasts repositionnés */
  .toast-container {
    bottom: var(--space-lg);
    top: auto;
    right: var(--space-sm);
    left: var(--space-sm);
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

  /* Boutons full width sur mobile */
  .btn {
    width: 100%;
  }

  /* Steps en colonne mobile */
  .steps {
    flex-direction: column;
    gap: var(--space-md);
  }

  .step:not(:last-child)::after {
    left: 20px;
    right: auto;
    width: 2px;
    height: calc(100% + 16px);
    top: 40px;
  }

  /* Cards moins de padding */
  .card__header,
  .card__body,
  .card__footer {
    padding: var(--space-md);
  }
}

/* Tablet & up (>= 640px) */
@media (min-width: 640px) {
  /* Breakpoint tablet */
}

/* Tablet & up (>= 768px) */
@media (min-width: 768px) {
  /* Optimisations layout */
}

/* Desktop & up (>= 1024px) */
@media (min-width: 1024px) {
  /* Layouts complètes */
}

/* Large desktop (>= 1440px) */
@media (min-width: 1440px) {
  /* Espaces larges */
}
