/* ===== DESIGN SYSTEM NETWORKIT QUANTUM 2024 ===== */
/* Variables CSS modernes et cohérentes */

:root {
    /* Couleurs principales NetworkIT Quantum Superposition */
    --primary: #1e3a8a;           /* Bleu royal */
    --primary-dark: #0077BE;      /* Océan Profond */
    --primary-light: #00CE8A;     /* Émeraude Quantique */
    --primary-pale: #e6f9f4;      /* Émeraude très pâle */
    
    /* Couleurs Quantum Superposition */
    --secondary: #0a0a0a;         /* Void Quantique */
    --secondary-light: #1a1a1a;   /* Void léger */
    --tech: #00CE8A;              /* Émeraude Tech */
    --tech-dark: #00a66b;         /* Émeraude foncé */
    --innovation: #00B4D8;        /* Océan Innovation */
    
    /* Effets quantiques */
    --superposition: rgba(0, 180, 216, 0.6);  /* État quantique multiple */
    --distortion: rgba(0, 206, 138, 0.4);     /* Effet de distorsion */
    --entanglement: rgba(0, 119, 190, 0.3);   /* Intrication quantique */
    
    /* Système de gris */
    --text: #1a1a1a;              /* Texte principal */
    --text-secondary: #4a5568;     /* Texte secondaire */
    --text-light: #718096;         /* Texte tertiaire */
    --text-muted: #a0aec0;         /* Texte désactivé */
    
    /* Surfaces et backgrounds */
    --background: #ffffff;         /* Fond principal */
    --surface: #f7fafc;           /* Surface neutre */
    --surface-light: #ffffff;     /* Surface claire */
    --surface-dark: #0f1419;      /* Surface sombre */
    --surface-tech: #f0fffc;      /* Surface tech */
    
    /* Bordures et séparateurs */
    --border: #e2e8f0;            /* Bordure standard */
    --border-light: #f1f5f9;      /* Bordure claire */
    --border-tech: #b3f5ec;       /* Bordure tech */
    
    /* États et feedback */
    --success: #00CE8A;           /* Succès */
    --error: #e53e3e;             /* Erreur */
    --warning: #ed8936;           /* Attention */
    --info: #00B4D8;              /* Information */
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    
    /* Échelle typographique */
    --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 */
    
    /* Poids de police */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Espacements */
    --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 */
    --radius-sm: 0.125rem;    /* 2px */
    --radius: 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;    /* Cercle parfait */
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    --header-height: 80px;
}

/* Mode Nuit - Variables optimisées */
[data-theme="dark"] {
    --text: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-light: #a0aec0;
    --text-muted: #718096;
    
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #252525;
    --surface-dark: #000000;
    --surface-tech: rgba(0, 206, 138, 0.05);
    
    --border: #2d3748;
    --border-light: #1a202c;
    --border-tech: rgba(0, 206, 138, 0.3);
}/* ===== NAVIGATION COMPONENTS ===== */

/* Header moderne */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: transform var(--transition-normal), background var(--transition-normal);
}

/* Éviter l'espace blanc quand le header est masqué */
body.header-hidden main {
    padding-top: 0;
}

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

/* Logo */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    transition: color var(--transition-fast);
}

.nav-brand:hover {
    color: var(--primary);
}

/* Navigation principale */
.nav-modern {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: #1e3a8a;
    background: transparent;
}

.nav-link-modern svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link-modern svg {
    transform: rotate(180deg);
}

/* Dropdowns */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    pointer-events: none;
    z-index: 50;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: var(--space-2);
}

.dropdown-item {
    margin: 0;
}

.dropdown-item a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.dropdown-item a:hover {
    color: var(--primary);
    background: var(--surface);
}

/* Actions CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Bouton menu mobile */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mode nuit - Navigation */
[data-theme="dark"] .header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-brand {
    color: var(--text);
}

[data-theme="dark"] .nav-link-modern {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-link-modern:hover,
[data-theme="dark"] .nav-link-modern.active {
    color: #1e3a8a;
    background: transparent;
}

[data-theme="dark"] .dropdown {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-item a {
    color: var(--text-secondary);
}

[data-theme="dark"] .dropdown-item a:hover {
    color: var(--text);
    background: var(--surface-light);
}

[data-theme="dark"] .mobile-menu-btn span {
    background: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-modern {
        gap: var(--space-4);
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--background);
        flex-direction: column;
        padding: var(--space-8);
        gap: var(--space-6);
        transition: left var(--transition-normal);
        overflow-y: auto;
        border-top: 1px solid var(--border);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: var(--space-2);
        pointer-events: auto;
    }
    
    .nav-cta {
        margin-top: var(--space-8);
        flex-direction: column;
        align-items: stretch;
    }
}/* ===== BUTTON COMPONENTS ===== */

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-family);
    font-weight: var(--font-medium);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button sizes */
.btn-xs {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    line-height: 1.25;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    line-height: 1.25;
}

.btn-base {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    line-height: 1.5;
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    line-height: 1.5;
}

.btn-xl {
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-xl);
    line-height: 1.5;
}

/* Button variants */
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--surface);
    color: var(--text);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background: var(--tech-dark);
    border-color: var(--tech-dark);
    color: white;
}

.btn-error {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.btn-error:hover {
    background: #c53030;
    border-color: #c53030;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

.btn-warning:hover {
    background: #dd6b20;
    border-color: #dd6b20;
    color: white;
}

/* Button special variants */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--tech) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-quantum {
    background: linear-gradient(135deg, var(--primary) 0%, var(--innovation) 50%, var(--primary-light) 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-quantum::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-quantum:hover::before {
    left: 100%;
}

.btn-quantum:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.3);
}

/* Full width button */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Icon buttons */
.btn-icon {
    padding: var(--space-2);
    border-radius: var(--radius-full);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Button groups */
.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-radius: 0;
    border-right-width: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    border-right-width: 1px;
}

/* Theme toggle button */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition-fast);
}

/* Mode nuit - Buttons */
[data-theme="dark"] .btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .btn-ghost {
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-ghost:hover {
    background: var(--surface-light);
    color: var(--text);
}

[data-theme="dark"] .theme-toggle {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

/* Loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive buttons */
@media (max-width: 768px) {
    .btn-responsive {
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: var(--radius-lg);
        border-right-width: 1px;
        border-bottom-width: 0;
        margin-bottom: 1px;
    }
    
    .btn-group .btn:last-child {
        border-bottom-width: 1px;
        margin-bottom: 0;
    }
}/* ===== NETWORKIT APP CSS - ARCHITECTURE MODERNE ===== */

/* Imports des composants */
@import 'variables.css';
@import 'components/navigation.css';
@import 'components/buttons.css';

/* ===== BASE STYLES ===== */

/* Reset et base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: var(--font-normal);
    min-height: 100%;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography hiérarchique */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text);
}

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

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

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

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

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

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

p {
    margin-bottom: var(--space-4);
}

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

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

/* Layout Components */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Main content */
main {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
    transition: padding-top var(--transition-normal);
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: 100;
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.skip-to-content:focus {
    top: 6px;
    opacity: 1;
    transform: translateY(0);
}

/* Icon size utilities */
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }

/* Text and background utilities */
.text-white { color: white; }
.text-gray-900 { color: #1a202c; }
.text-primary-dark { color: var(--primary-dark); }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-transparent { background-color: transparent; }
.border-white { border-color: white; }
.border-white-30 { border-color: rgba(255, 255, 255, 0.3); }
.hover-bg-gray-50:hover { background-color: #f9fafb; }
.hover-bg-white-10:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Width utilities */
.w-full { width: 100%; }

/* Responsive utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
}