/**
 * Variables CSS globales - Mortel Dîner
 * Thème Art Déco (noir/jaune/or)
 */

:root {
  /* === COULEURS === */

  /* Couleurs principales */
  --color-primary: #f4c430;        /* Jaune doré */
  --color-primary-dark: #d4af37;   /* Or foncé */
  --color-primary-light: #ffd700;  /* Or clair */

  /* Couleurs de fond */
  --color-bg: #1a1a1a;             /* Noir profond */
  --color-bg-light: #2a2a2a;       /* Gris foncé */
  --color-bg-lighter: #3a3a3a;     /* Gris moyen */

  /* Couleurs de texte */
  --color-text: #fef9e7;           /* Crème */
  --color-text-muted: #c4b89e;     /* Crème foncé */
  --color-text-dark: #1a1a1a;      /* Noir (pour fond clair) */

  /* Couleurs des rôles */
  --color-murderer: #8b0000;       /* Rouge sang */
  --color-victim: #1a1a1a;         /* Noir */
  --color-innocent: #228b22;       /* Vert forêt */
  --color-commissioner: #1e3a8a;   /* Bleu marine */

  /* Couleurs de statut */
  --color-success: #228b22;        /* Vert */
  --color-warning: #ff8c00;        /* Orange */
  --color-danger: #dc143c;         /* Rouge vif */
  --color-info: #4169e1;           /* Bleu royal */

  /* Bordures et ombres */
  --color-border: #d4af37;         /* Or */
  --color-border-light: #ffd700;   /* Or clair */
  --color-shadow: rgba(0, 0, 0, 0.5);

  /* === TYPOGRAPHIE === */

  /* Polices */
  --font-title: 'TT Modernoir', 'Playfair Display', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Tailles de police */
  --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: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  /* Poids de police */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Hauteur de ligne */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* === ESPACEMENTS === */

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

  /* === BORDURES === */

  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 4px;

  --border-radius-sm: 0.25rem;   /* 4px */
  --border-radius-md: 0.5rem;    /* 8px */
  --border-radius-lg: 1rem;      /* 16px */
  --border-radius-xl: 1.5rem;    /* 24px */
  --border-radius-full: 9999px;  /* Cercle */

  /* === OMBRES === */

  --shadow-sm: 0 1px 2px 0 var(--color-shadow);
  --shadow-md: 0 4px 6px -1px var(--color-shadow);
  --shadow-lg: 0 10px 15px -3px var(--color-shadow);
  --shadow-xl: 0 20px 25px -5px var(--color-shadow);
  --shadow-2xl: 0 25px 50px -12px var(--color-shadow);

  /* Ombre dorée (pour effet Art Déco) */
  --shadow-gold: 0 0 20px rgba(244, 196, 48, 0.3);
  --shadow-gold-strong: 0 0 30px rgba(244, 196, 48, 0.6);

  /* === TRANSITIONS === */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* === DIMENSIONS === */

  /* Largeurs */
  --width-xs: 20rem;    /* 320px */
  --width-sm: 24rem;    /* 384px */
  --width-md: 28rem;    /* 448px */
  --width-lg: 32rem;    /* 512px */
  --width-xl: 36rem;    /* 576px */
  --width-2xl: 42rem;   /* 672px */
  --width-full: 100%;

  /* Hauteurs */
  --height-xs: 2rem;    /* 32px */
  --height-sm: 2.5rem;  /* 40px */
  --height-md: 3rem;    /* 48px */
  --height-lg: 3.5rem;  /* 56px */
  --height-xl: 4rem;    /* 64px */

  /* === Z-INDEX === */

  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* === BREAKPOINTS (pour référence, utilisés en media queries) === */

  /* sm: 640px */
  /* md: 768px */
  /* lg: 1024px */
  /* xl: 1280px */
  /* 2xl: 1536px */
}

/* === POLICES WEB === */

@font-face {
  font-family: 'TT Modernoir';
  src: url('../assets/fonts/TT_Modernoir_Trial_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Modernoir';
  src: url('../assets/fonts/TT_Modernoir_Trial_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Modernoir';
  src: url('../assets/fonts/TT_Modernoir_Trial_Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Modernoir';
  src: url('../assets/fonts/TT_Modernoir_Trial_DemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Modernoir';
  src: url('../assets/fonts/TT_Modernoir_Trial_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* === CLASSES UTILITAIRES === */

/* Couleurs de rôle */
.role-murderer { color: var(--color-murderer); }
.role-victim { color: var(--color-victim); }
.role-innocent { color: var(--color-innocent); }
.role-commissioner { color: var(--color-commissioner); }

.bg-murderer { background-color: var(--color-murderer); }
.bg-victim { background-color: var(--color-victim); }
.bg-innocent { background-color: var(--color-innocent); }
.bg-commissioner { background-color: var(--color-commissioner); }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}

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

.animate-fadeIn {
  animation: fadeIn var(--transition-base);
}

.animate-slideIn {
  animation: slideIn var(--transition-base);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-shake {
  animation: shake 0.5s;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}
