/*
===========================================
NETWORKIT DESIGN SYSTEM 2024
Modern, Beautiful & Engaging
===========================================
*/

/* ===== VARIABLES CSS MODERNES ===== */
:root {
  /* === PALETTE DE COULEURS OPTIMISÉE === */
  
  /* Couleurs primaires - Sophistiquées */
  --color-quantum-blue: #0ea5e9;        /* Bleu moderne et vibrant */
  --color-quantum-blue-dark: #0284c7;   /* Bleu profond */
  --color-quantum-blue-light: #38bdf8;  /* Bleu clair */
  --color-quantum-blue-50: #eff6ff;     /* Très clair pour surfaces */
  
  /* Couleurs secondaires - Tech élégant */
  --color-emerald: #10b981;             /* Vert tech moderne */
  --color-emerald-dark: #059669;        /* Vert foncé */
  --color-emerald-light: #34d399;       /* Vert clair */
  --color-emerald-50: #ecfdf5;          /* Très clair */
  
  /* Couleurs accent - Premium */
  --color-purple: #8b5cf6;              /* Violet premium */
  --color-purple-dark: #7c3aed;         /* Violet foncé */
  --color-purple-light: #a78bfa;        /* Violet clair */
  
  /* Neutres modernes - Hiérarchie parfaite */
  --color-slate-900: #0f172a;           /* Noir doux */
  --color-slate-800: #1e293b;           /* Très foncé */
  --color-slate-700: #334155;           /* Foncé */
  --color-slate-600: #475569;           /* Moyen foncé */
  --color-slate-500: #64748b;           /* Moyen */
  --color-slate-400: #94a3b8;           /* Moyen clair */
  --color-slate-300: #cbd5e1;           /* Clair */
  --color-slate-200: #e2e8f0;           /* Très clair */
  --color-slate-100: #f1f5f9;           /* Ultra clair */
  --color-slate-50: #f8fafc;            /* Presque blanc */
  
  /* Surfaces et backgrounds */
  --color-white: #ffffff;
  --color-surface-primary: #ffffff;
  --color-surface-secondary: #f8fafc;
  --color-surface-elevated: #ffffff;
  --color-surface-overlay: rgba(15, 23, 42, 0.9);
  
  /* États sémantiques */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* === TYPOGRAPHIE MODERNE === */
  
  /* Famille de polices */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  /* Échelle typographique harmonique (1.25 - Major Third) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  
  /* Poids de police */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Hauteurs de ligne optimisées */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* === ESPACEMENT HARMONIQUE (Système 8pt) === */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-32: 8rem;        /* 128px */
  
  /* === RAYONS DE BORDURE MODERNES === */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 0.25rem;  /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* === OMBRES SOPHISTIQUÉES === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Ombres colorées NetworkIT */
  --shadow-quantum-blue: 0 10px 15px -3px rgba(14, 165, 233, 0.2), 0 4px 6px -2px rgba(14, 165, 233, 0.1);
  --shadow-emerald: 0 10px 15px -3px rgba(16, 185, 129, 0.2), 0 4px 6px -2px rgba(16, 185, 129, 0.1);
  
  /* === TRANSITIONS FLUIDES === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === Z-INDEX SCALE === */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  
  /* === LARGEURS MAXIMALES === */
  --max-w-xs: 20rem;
  --max-w-sm: 24rem;
  --max-w-md: 28rem;
  --max-w-lg: 32rem;
  --max-w-xl: 36rem;
  --max-w-2xl: 42rem;
  --max-w-3xl: 48rem;
  --max-w-4xl: 56rem;
  --max-w-5xl: 64rem;
  --max-w-6xl: 72rem;
  --max-w-7xl: 80rem;
  --max-w-full: 100%;
  
  /* === HEADER & LAYOUT === */
  --header-height: 4rem;
}

/* ===== RESET ET BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-slate-900);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* === TYPOGRAPHIE MODERNE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-slate-900);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.05em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-slate-700);
  line-height: var(--leading-relaxed);
}

.lead {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  color: var(--color-slate-600);
  line-height: var(--leading-relaxed);
}

/* === LIENS MODERNES === */
a {
  color: var(--color-quantum-blue);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-quantum-blue-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-quantum-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === CONTENEURS === */
.container {
  width: 100%;
  max-width: var(--max-w-7xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* === SECTIONS MODERNES === */
.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

.section-xl {
  padding: var(--space-32) 0;
}

/* === GRILLES MODERNES === */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === CARTES MODERNES === */
.card {
  background: var(--color-surface-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--color-slate-200);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-elevated:hover {
  box-shadow: var(--shadow-xl);
}

/* === HEADER MODERNE === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  z-index: var(--z-50);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w-7xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* === NAVIGATION MODERNE === */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-slate-700);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-quantum-blue);
  background: var(--color-quantum-blue-50);
}

.nav-link.active {
  color: var(--color-quantum-blue);
  background: var(--color-quantum-blue-50);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --section: var(--space-16);
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
}

/* === UTILITAIRES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-slate-900 { color: var(--color-slate-900); }
.text-slate-700 { color: var(--color-slate-700); }
.text-slate-600 { color: var(--color-slate-600); }
.text-slate-500 { color: var(--color-slate-500); }

.bg-white { background-color: var(--color-white); }
.bg-slate-50 { background-color: var(--color-slate-50); }
.bg-slate-100 { background-color: var(--color-slate-100); }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-base { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }