/* ============================================
   PEKEEP - MODERN THEME SYSTEM
   Design System avec variables CSS
   ============================================ */

:root {
    /* ========== COULEURS PRIMAIRES ========== */
    --primary-50: #f0f4ff;
    --primary-100: #e0e9ff;
    --primary-200: #c7d7fe;
    --primary-300: #a5bbfc;
    --primary-400: #8196f8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* ========== COULEURS TEMPYRE (Style Google) ========== */
    --tempyre-blue: #4285F4;
    --tempyre-red: #EA4335;
    --tempyre-yellow: #FBBC04;
    --tempyre-green: #34A853;

    /* Couleurs principales */
    --color-primary: var(--tempyre-blue);
    --color-primary-light: #7aa7f7;
    --color-primary-dark: #2a6bd9;
    --color-primary-gradient: var(--tempyre-blue);

    /* Couleurs secondaires Tempyre */
    --color-secondary: var(--tempyre-red);
    --color-tertiary: var(--tempyre-yellow);
    --color-quaternary: var(--tempyre-green);

    /* ========== COULEURS SECONDAIRES ========== */
    --secondary-50: #faf5ff;
    --secondary-100: #f3e8ff;
    --secondary-200: #e9d5ff;
    --secondary-300: #d8b4fe;
    --secondary-400: #c084fc;
    --secondary-500: #a855f7;
    --secondary-600: #9333ea;
    --secondary-700: #7e22ce;
    --secondary-800: #6b21a8;
    --secondary-900: #581c87;

    --color-secondary: var(--secondary-600);
    --color-secondary-light: var(--secondary-400);
    --color-secondary-dark: var(--secondary-800);

    /* ========== COULEURS ACCENT ========== */
    --accent-50: #fdf4ff;
    --accent-100: #fae8ff;
    --accent-200: #f5d0fe;
    --accent-300: #f0abfc;
    --accent-400: #e879f9;
    --accent-500: #d946ef;
    --accent-600: #c026d3;
    --accent-700: #a21caf;
    --accent-800: #86198f;
    --accent-900: #701a75;

    --color-accent: var(--accent-500);
    --color-accent-light: var(--accent-300);
    --color-accent-dark: var(--accent-700);

    /* ========== COULEURS SÉMANTIQUES ========== */
    /* Success (Vert) */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-300: #86efac;
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    --success-800: #166534;
    --success-900: #14532d;

    --color-success: var(--success-600);
    --color-success-light: var(--success-400);
    --color-success-dark: var(--success-800);
    --color-success-gradient: linear-gradient(135deg, #22c55e 0%, #10b981 100%);

    /* Warning (Orange) */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    --warning-800: #92400e;
    --warning-900: #78350f;

    --color-warning: var(--warning-500);
    --color-warning-light: var(--warning-300);
    --color-warning-dark: var(--warning-700);
    --color-warning-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);

    /* Danger (Rouge) */
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-200: #fecaca;
    --danger-300: #fca5a5;
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-900: #7f1d1d;

    --color-danger: var(--danger-600);
    --color-danger-light: var(--danger-400);
    --color-danger-dark: var(--danger-800);
    --color-danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    /* Info (Bleu) */
    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-200: #bfdbfe;
    --info-300: #93c5fd;
    --info-400: #60a5fa;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    --info-700: #1d4ed8;
    --info-800: #1e40af;
    --info-900: #1e3a8a;

    --color-info: var(--info-600);
    --color-info-light: var(--info-400);
    --color-info-dark: var(--info-800);
    --color-info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    /* ========== COULEURS NEUTRES ========== */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Couleurs de base */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Gris */
    --color-gray-50: var(--neutral-50);
    --color-gray-100: var(--neutral-100);
    --color-gray-200: var(--neutral-200);
    --color-gray-300: var(--neutral-300);
    --color-gray-400: var(--neutral-400);
    --color-gray-500: var(--neutral-500);
    --color-gray-600: var(--neutral-600);
    --color-gray-700: var(--neutral-700);
    --color-gray-800: var(--neutral-800);
    --color-gray-900: var(--neutral-900);

    /* ========== BACKGROUNDS ========== */
    --bg-primary: var(--color-white);
    --bg-secondary: var(--neutral-50);
    --bg-tertiary: var(--neutral-100);
    --bg-gradient: var(--tempyre-blue);
    --bg-gradient-light: var(--neutral-50);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(255, 255, 255, 0.9);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.1);

    /* ========== TEXTE ========== */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-tertiary: var(--neutral-400);
    --text-inverse: var(--color-white);
    --text-link: var(--color-primary);
    --text-link-hover: var(--primary-700);

    /* ========== BORDURES ========== */
    --border-color: var(--neutral-200);
    --border-color-light: var(--neutral-100);
    --border-color-dark: var(--neutral-300);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 24px;
    --border-radius-full: 9999px;

    /* ========== OMBRES ========== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Ombres colorées */
    --shadow-primary: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
    --shadow-primary-soft: 0 0 0 3px rgba(99, 102, 241, 0.1);
    --shadow-success: 0 10px 25px -5px rgba(34, 197, 94, 0.3);
    --shadow-warning: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
    --shadow-danger: 0 10px 25px -5px rgba(220, 38, 38, 0.3);

    /* ========== ESPACEMENTS ========== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;
    --spacing-4xl: 64px;

    /* ========== TYPOGRAPHIE ========== */
    --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, '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: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;

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

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

    /* ========== TRANSITIONS ========== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Cubic bezier curves */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ========== Z-INDEX ========== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ========== AUTRES ========== */
    --blur-sm: 4px;
    --blur-md: 8px;
    --blur-lg: 16px;
    --blur-xl: 24px;
    --blur-2xl: 40px;

    /* Opacité */
    --opacity-disabled: 0.5;
    --opacity-hover: 0.8;

    /* Container */
    --container-max-width: 1400px;
    --container-padding: var(--spacing-lg);

    /* ========== COULEURS VIBRANTES (Style Notion/Slack) ========== */
    /* Bleu vif */
    --vibrant-blue-50: #f0f9ff;
    --vibrant-blue-100: #e0f2fe;
    --vibrant-blue-200: #bae6fd;
    --vibrant-blue-300: #7dd3fc;
    --vibrant-blue-400: #38bdf8;
    --vibrant-blue-500: #0ea5e9;
    --vibrant-blue-600: #0284c7;
    --vibrant-blue-700: #0369a1;
    --vibrant-blue-800: #075985;
    --vibrant-blue-900: #0c4a6e;

    --color-vibrant-blue: var(--vibrant-blue-400);
    --color-vibrant-blue-light: var(--vibrant-blue-200);
    --color-vibrant-blue-dark: var(--vibrant-blue-600);

    /* Vert vif */
    --vibrant-green-50: #f0fdf4;
    --vibrant-green-100: #dcfce7;
    --vibrant-green-200: #bbf7d0;
    --vibrant-green-300: #86efac;
    --vibrant-green-400: #4ade80;
    --vibrant-green-500: #22c55e;
    --vibrant-green-600: #16a34a;
    --vibrant-green-700: #15803d;
    --vibrant-green-800: #166534;
    --vibrant-green-900: #14532d;

    --color-vibrant-green: var(--vibrant-green-400);
    --color-vibrant-green-light: var(--vibrant-green-200);
    --color-vibrant-green-dark: var(--vibrant-green-600);

    /* Violet/Purple vif */
    --vibrant-purple-50: #faf5ff;
    --vibrant-purple-100: #f3e8ff;
    --vibrant-purple-200: #e9d5ff;
    --vibrant-purple-300: #d8b4fe;
    --vibrant-purple-400: #c084fc;
    --vibrant-purple-500: #a855f7;
    --vibrant-purple-600: #9333ea;
    --vibrant-purple-700: #7e22ce;
    --vibrant-purple-800: #6b21a8;
    --vibrant-purple-900: #581c87;

    --color-vibrant-purple: var(--vibrant-purple-400);
    --color-vibrant-purple-light: var(--vibrant-purple-200);
    --color-vibrant-purple-dark: var(--vibrant-purple-600);

    /* Rose/Pink vif */
    --vibrant-pink-50: #fdf2f8;
    --vibrant-pink-100: #fce7f3;
    --vibrant-pink-200: #fbcfe8;
    --vibrant-pink-300: #f9a8d4;
    --vibrant-pink-400: #f472b6;
    --vibrant-pink-500: #ec4899;
    --vibrant-pink-600: #db2777;
    --vibrant-pink-700: #be185d;
    --vibrant-pink-800: #9f1239;
    --vibrant-pink-900: #831843;

    --color-vibrant-pink: var(--vibrant-pink-400);
    --color-vibrant-pink-light: var(--vibrant-pink-200);
    --color-vibrant-pink-dark: var(--vibrant-pink-600);

    /* Orange vif */
    --vibrant-orange-50: #fff7ed;
    --vibrant-orange-100: #ffedd5;
    --vibrant-orange-200: #fed7aa;
    --vibrant-orange-300: #fdba74;
    --vibrant-orange-400: #fb923c;
    --vibrant-orange-500: #f97316;
    --vibrant-orange-600: #ea580c;
    --vibrant-orange-700: #c2410c;
    --vibrant-orange-800: #9a3412;
    --vibrant-orange-900: #7c2d12;

    --color-vibrant-orange: var(--vibrant-orange-400);
    --color-vibrant-orange-light: var(--vibrant-orange-200);
    --color-vibrant-orange-dark: var(--vibrant-orange-600);

    /* Teal/Cyan vif */
    --vibrant-teal-50: #f0fdfa;
    --vibrant-teal-100: #ccfbf1;
    --vibrant-teal-200: #99f6e4;
    --vibrant-teal-300: #5eead4;
    --vibrant-teal-400: #2dd4bf;
    --vibrant-teal-500: #14b8a6;
    --vibrant-teal-600: #0d9488;
    --vibrant-teal-700: #0f766e;
    --vibrant-teal-800: #115e59;
    --vibrant-teal-900: #134e4a;

    --color-vibrant-teal: var(--vibrant-teal-400);
    --color-vibrant-teal-light: var(--vibrant-teal-200);
    --color-vibrant-teal-dark: var(--vibrant-teal-600);

    /* Rouge vif */
    --vibrant-red-50: #fef2f2;
    --vibrant-red-100: #fee2e2;
    --vibrant-red-200: #fecaca;
    --vibrant-red-300: #fca5a5;
    --vibrant-red-400: #f87171;
    --vibrant-red-500: #ef4444;
    --vibrant-red-600: #dc2626;
    --vibrant-red-700: #b91c1c;
    --vibrant-red-800: #991b1b;
    --vibrant-red-900: #7f1d1d;

    --color-vibrant-red: var(--vibrant-red-400);
    --color-vibrant-red-light: var(--vibrant-red-200);
    --color-vibrant-red-dark: var(--vibrant-red-600);

    /* Jaune vif */
    --vibrant-yellow-50: #fefce8;
    --vibrant-yellow-100: #fef9c3;
    --vibrant-yellow-200: #fef08a;
    --vibrant-yellow-300: #fde047;
    --vibrant-yellow-400: #facc15;
    --vibrant-yellow-500: #eab308;
    --vibrant-yellow-600: #ca8a04;
    --vibrant-yellow-700: #a16207;
    --vibrant-yellow-800: #854d0e;
    --vibrant-yellow-900: #713f12;

    --color-vibrant-yellow: var(--vibrant-yellow-400);
    --color-vibrant-yellow-light: var(--vibrant-yellow-200);
    --color-vibrant-yellow-dark: var(--vibrant-yellow-600);

    /* ========== GRADIENTS DYNAMIQUES ET COLORÉS ========== */
    /* Gradients Notion/Slack style - Multi-couleurs vibrantes */
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #0ea5e9 100%);
    --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-forest: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
    --gradient-fire: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-purple-dream: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
    --gradient-mint: linear-gradient(135deg, #2afadf 0%, #4c83ff 100%);
    --gradient-peachy: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-royal: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    --gradient-candy: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    --gradient-lush: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);

    /* Gradients avec 3 couleurs */
    --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #ec4899 50%, #f59e0b 100%);
    --gradient-cool: linear-gradient(135deg, #2dd4bf 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #f59e0b 100%);
    --gradient-nature: linear-gradient(135deg, #22c55e 0%, #0ea5e9 50%, #6366f1 100%);

    /* Gradients avec animation (pour hover) */
    --gradient-animated-1: linear-gradient(
        -45deg,
        #667eea,
        #ec4899,
        #f59e0b,
        #22c55e
    );

    /* Gradients de fond subtils */
    --gradient-bg-light-blue: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    --gradient-bg-light-purple: linear-gradient(135deg, #f3e8ff 0%, #fdf4ff 100%);
    --gradient-bg-light-green: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    --gradient-bg-light-pink: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
    --gradient-bg-light-orange: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);

    /* ========== OMBRES VIBRANTES (Notion style) ========== */
    --shadow-vibrant-blue: 0 10px 40px -5px rgba(14, 165, 233, 0.4);
    --shadow-vibrant-green: 0 10px 40px -5px rgba(34, 197, 94, 0.4);
    --shadow-vibrant-purple: 0 10px 40px -5px rgba(168, 85, 247, 0.4);
    --shadow-vibrant-pink: 0 10px 40px -5px rgba(236, 72, 153, 0.4);
    --shadow-vibrant-orange: 0 10px 40px -5px rgba(249, 115, 22, 0.4);

    /* ========== BACKGROUNDS GLASSMORPHISM COLORÉS ========== */
    --glass-blue: rgba(224, 242, 254, 0.7);
    --glass-purple: rgba(243, 232, 255, 0.7);
    --glass-green: rgba(220, 252, 231, 0.7);
    --glass-pink: rgba(252, 231, 243, 0.7);
    --glass-orange: rgba(255, 237, 213, 0.7);

    /* ========== PALETTES POUR CATÉGORIES / TAGS ========== */
    /* Palette 1 - Vibrant */
    --palette-1-color: var(--color-vibrant-blue);
    --palette-1-bg: var(--vibrant-blue-100);
    --palette-1-border: var(--vibrant-blue-300);

    /* Palette 2 - Success */
    --palette-2-color: var(--color-vibrant-green);
    --palette-2-bg: var(--vibrant-green-100);
    --palette-2-border: var(--vibrant-green-300);

    /* Palette 3 - Purple */
    --palette-3-color: var(--color-vibrant-purple);
    --palette-3-bg: var(--vibrant-purple-100);
    --palette-3-border: var(--vibrant-purple-300);

    /* Palette 4 - Pink */
    --palette-4-color: var(--color-vibrant-pink);
    --palette-4-bg: var(--vibrant-pink-100);
    --palette-4-border: var(--vibrant-pink-300);

    /* Palette 5 - Orange */
    --palette-5-color: var(--color-vibrant-orange);
    --palette-5-bg: var(--vibrant-orange-100);
    --palette-5-border: var(--vibrant-orange-300);

    /* Palette 6 - Teal */
    --palette-6-color: var(--color-vibrant-teal);
    --palette-6-bg: var(--vibrant-teal-100);
    --palette-6-border: var(--vibrant-teal-300);

    /* Palette 7 - Red */
    --palette-7-color: var(--color-vibrant-red);
    --palette-7-bg: var(--vibrant-red-100);
    --palette-7-border: var(--vibrant-red-300);

    /* Palette 8 - Yellow */
    --palette-8-color: var(--color-vibrant-yellow);
    --palette-8-bg: var(--vibrant-yellow-100);
    --palette-8-border: var(--vibrant-yellow-300);

    /* ========== ANIMATIONS SUPPLÉMENTAIRES ========== */
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ========== FILTRES ========== */
    --filter-blur-sm: blur(4px);
    --filter-blur-md: blur(8px);
    --filter-blur-lg: blur(16px);
    --filter-brightness-hover: brightness(1.1);
    --filter-grayscale: grayscale(100%);
    --filter-saturate: saturate(150%);
}

/* ========== DARK MODE (Préparé pour le futur) ========== */
@media (prefers-color-scheme: dark) {
    :root {
        /* À activer quand le dark mode sera implémenté */
        /* --bg-primary: var(--neutral-900);
        --bg-secondary: var(--neutral-800);
        --bg-tertiary: var(--neutral-700);
        --text-primary: var(--neutral-50);
        --text-secondary: var(--neutral-300);
        --text-tertiary: var(--neutral-500); */
    }
}
