/* ============================================
   JHL.ma — Main Stylesheet
   Variables, Reset, Typographie, Utilities
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors - Light Mode Professional avec Plus de Bleu */
  --color-primary: #FFFFFF;
  --color-secondary: #EFF6FF;
  --color-accent: #1E40AF;
  --color-accent-soft: #3B82F6;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-card: #FFFFFF;
  --color-border: rgba(30, 64, 175, 0.15);
  --color-pink: #FFE5F0;
  --color-pink-soft: #FFD6E8;
  --color-blue-light: #DBEAFE;
  --color-blue-medium: #BFDBFE;
  --color-blue-sky: #93C5FD;
  
  /* Gradients - Dominance Bleu */
  --gradient-bg: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  --gradient-accent: linear-gradient(90deg, #1E40AF, #3B82F6);
  --gradient-mesh: radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  --gradient-pink-blue: linear-gradient(135deg, #FFE5F0 0%, #BFDBFE 50%, #EFF6FF 100%);
  --gradient-blue-pink: linear-gradient(135deg, #DBEAFE 0%, #FFE5F0 50%, #EFF6FF 100%);
  --gradient-pink-white: linear-gradient(180deg, #FFE5F0 0%, #EFF6FF 100%);
  --gradient-blue-white: linear-gradient(180deg, #DBEAFE 0%, #EFF6FF 100%);
  --gradient-blue-strong: linear-gradient(135deg, #3B82F6 0%, #1E40AF 50%, #1E3A8A 100%);
  --gradient-blue-soft: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 50%, #60A5FA 100%);
  --gradient-mesh-colorful: radial-gradient(circle at 10% 20%, rgba(147, 197, 253, 0.7) 0%, transparent 45%),
                            radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.5) 0%, transparent 45%),
                            radial-gradient(circle at 50% 50%, rgba(239, 246, 255, 0.9) 0%, transparent 50%);
  
  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Font Sizes */
  --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 */
  
  /* Spacing */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-24: 6rem;        /* 96px */
  --space-32: 8rem;        /* 128px */
  
  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-cursor: 500;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-primary);
  overflow-x: hidden;
}

/* Subtle pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231F2937' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: var(--z-base);
}

section {
  position: relative;
  padding: var(--space-24) 0;
  overflow: hidden;
}

/* ============================================
   ACCENT UTILITIES
   ============================================ */
.accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--color-text-muted);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --container-padding: var(--space-4);
    --space-24: 4rem;
    --space-32: 6rem;
  }
  
  section {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-3);
    --space-24: 3rem;
  }
  
  section {
    padding: var(--space-12) 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

::-moz-selection {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

/* ============================================
   SCROLLBAR (Webkit browsers)
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-soft);
}
