/**
 * CSS Variables for Fondation pour la promotion des droits website
 * Defines a consistent color scheme and styling variables
 */

:root {
  /* Primary Colors */
  --primary-color: #1E5AA8;       /* Primary blue color */
  --primary-dark: #0F3B75;        /* Darker blue for hover states */
  --primary-light: #4178C3;       /* Lighter blue for accents */
  
  /* Secondary Colors */
  --secondary-color: #E27D23;     /* Orange accent color */
  --secondary-dark: #C45E08;      /* Darker orange for hover states */
  --secondary-light: #F5A45F;     /* Lighter orange for subtle backgrounds */
  
  /* Neutral Colors */
  --neutral-dark: #2E3A4F;        /* Almost black for text */
  --neutral-medium: #5A6982;      /* Medium gray for secondary text */
  --neutral-light: #E8ECF2;       /* Light gray for backgrounds */
  --neutral-white: #FFFFFF;       /* White */
  
  /* Status Colors */
  --success: #28A745;             /* Green for success messages */
  --warning: #FFC107;             /* Yellow for warnings */
  --danger: #DC3545;              /* Red for errors */
  --info: #17A2B8;                /* Teal for info messages */
  
  /* Typography */
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;        /* 12px */
  --font-size-sm: 0.875rem;       /* 14px */
  --font-size-md: 1rem;           /* 16px - Base */
  --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 */
  
  /* Spacing */
  --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 */
  
  /* Border Radius */
  --radius-sm: 0.125rem;          /* 2px */
  --radius-md: 0.25rem;           /* 4px */
  --radius-lg: 0.5rem;            /* 8px */
  --radius-full: 9999px;          /* Fully rounded */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Z-index layers */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* Primary Colors */
  --bs-primary: #0d6efd;
  --bs-primary-rgb: 13, 110, 253;
  --bs-primary-light: #4d94ff;
  --bs-primary-light-rgb: 77, 148, 255;
  --bs-primary-dark: #0a58ca;
  --bs-primary-dark-rgb: 10, 88, 202;
  
  /* Secondary Colors */
  --bs-secondary: #6c757d;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-secondary-light: #8c959e;
  --bs-secondary-light-rgb: 140, 149, 158;
  --bs-secondary-dark: #495057;
  --bs-secondary-dark-rgb: 73, 80, 87;
  
  /* Success Colors */
  --bs-success: #198754;
  --bs-success-rgb: 25, 135, 84;
  --bs-success-light: #28a745;
  --bs-success-light-rgb: 40, 167, 69;
  --bs-success-dark: #157347;
  --bs-success-dark-rgb: 21, 115, 71;
  
  /* Danger Colors */
  --bs-danger: #dc3545;
  --bs-danger-rgb: 220, 53, 69;
  --bs-danger-light: #e35d6a;
  --bs-danger-light-rgb: 227, 93, 106;
  --bs-danger-dark: #b02a37;
  --bs-danger-dark-rgb: 176, 42, 55;
  
  /* Warning Colors */
  --bs-warning: #ffc107;
  --bs-warning-rgb: 255, 193, 7;
  --bs-warning-light: #ffca2c;
  --bs-warning-light-rgb: 255, 202, 44;
  --bs-warning-dark: #d39e00;
  --bs-warning-dark-rgb: 211, 158, 0;
  
  /* Info Colors */
  --bs-info: #0dcaf0;
  --bs-info-rgb: 13, 202, 240;
  --bs-info-light: #39d4f3;
  --bs-info-light-rgb: 57, 212, 243;
  --bs-info-dark: #0aa1c0;
  --bs-info-dark-rgb: 10, 161, 192;
  
  /* Neutral Colors */
  --bs-light: #f8f9fa;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark: #212529;
  --bs-dark-rgb: 33, 37, 41;
  
  /* Gray Scale */
  --bs-white: #fff;
  --bs-white-rgb: 255, 255, 255;
  --bs-black: #000;
  --bs-black-rgb: 0, 0, 0;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  
  /* Semantic Colors */
  --color-text-primary: var(--bs-dark);
  --color-text-secondary: var(--bs-gray-700);
  --color-text-muted: var(--bs-gray-600);
  --color-text-light: var(--bs-white);
  
  --color-background-primary: var(--bs-white);
  --color-background-secondary: var(--bs-gray-100);
  --color-background-tertiary: var(--bs-gray-200);
  --color-background-accent: var(--bs-primary-light);
  
  /* Shadows */
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-focus: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-pill: 50rem;
  --border-radius-circle: 50%;
  
  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.5rem;
  --spacing-6: 2rem;
  --spacing-7: 2.5rem;
  --spacing-8: 3rem;
  --spacing-9: 4rem;
  --spacing-10: 5rem;
  
  /* Typography */
  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-loose: 1.75;
  
  /* Z-index scale */
  --z-index-offcanvas-backdrop: 1040;
  --z-index-offcanvas: 1045;
  --z-index-modal-backdrop: 1050;
  --z-index-modal: 1055;
  --z-index-popover: 1070;
  --z-index-tooltip: 1080;
  --z-index-toast: 1090;
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  
  /* Container Max Widths */
  --container-max-width-sm: 540px;
  --container-max-width-md: 720px;
  --container-max-width-lg: 960px;
  --container-max-width-xl: 1140px;
  --container-max-width-xxl: 1320px;
  
  /* Form Controls */
  --input-height: 2.5rem;
  --input-padding-x: 0.75rem;
  --input-padding-y: 0.375rem;
  --input-border-width: 1px;
  --input-border-radius: 0.375rem;
  --input-border-color: var(--bs-gray-400);
  --input-focus-border-color: #86b7fe;
  --input-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  --input-placeholder-color: var(--bs-gray-500);
  
  /* Custom Theme Elements */
  --header-height: 4rem;
  --footer-background: var(--bs-gray-800);
  --card-border-radius: var(--border-radius-lg);
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 70px;
  
  /* Resource Categories */
  --category-thematique-bg: #e3f2fd;
  --category-thematique-color: #0d47a1;
  --category-loi-bg: #e8f5e9;
  --category-loi-color: #1b5e20;
  --category-etude-bg: #fff8e1;
  --category-etude-color: #ff6f00;
  --category-multimedia-bg: #f3e5f5;
  --category-multimedia-color: #6a1b9a;
} 