/*
 * RapideContact.fr Design System
 * "French Authority" - Deep Navy + Vermillion + Pearl
 * Premium CTA: Purple (French regulation for surtaxed numbers)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors - French Authority System */
  --color-primary: #1B2559;        /* French Navy - deep, authoritative */
  --color-primary-hover: #2A3A7A;  /* Bright Navy - hover states */
  --color-primary-light: #ECEEFB;  /* Soft Lavender - backgrounds */
  --color-secondary: #0D1117;      /* Anthracite - headings, strong text */
  --color-accent: #DC3545;         /* Vermillion - urgency, French red */
  --color-accent-hover: #BB2D3B;   /* Deep Vermillion - hover */
  --color-accent-light: #FDE8EA;   /* Rose Mist - accent backgrounds */
  --color-alert: #E63946;          /* Bright Red */
  --color-success: #198754;        /* Forest Green */

  /* Premium CTA Colors - French regulation (separate from design system) */
  --color-premium: #7C3AED;        /* Purple - surtaxed number regulation */
  --color-premium-hover: #6D28D9;  /* Deep Purple */
  --color-premium-light: #F3E8FF;  /* Soft Purple bg */

  /* Backgrounds */
  --bg-primary: #F8F9FB;           /* Pearl - page bg */
  --bg-white: #FFFFFF;             /* Surface/cards */
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-gray-50: #F9FAFB;
  --bg-gray-100: #F1F3F5;

  /* Text Colors */
  --text-primary: #0D1117;
  --text-secondary: #57606A;
  --text-muted: #8B949E;
  --text-white: #FFFFFF;

  /* Border Colors */
  --border-light: rgba(13, 17, 23, 0.06);
  --border-medium: rgba(13, 17, 23, 0.12);
  --border-primary: rgba(27, 37, 89, 0.15);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', 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 */

  /* Spacing Scale */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows - tinted with navy */
  --shadow-sm: 0 2px 8px rgba(13, 17, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 17, 23, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 37, 89, 0.12);
  --shadow-xl: 0 20px 48px rgba(27, 37, 89, 0.18);

  /* Transitions */
  --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-base: 1;
  --z-dropdown: 10;
  --z-sticky: 50;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* Base Typography */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); font-weight: 800; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Buttons */
.btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--text-white);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(220, 53, 69, 0.25);
}

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

.btn-ghost:hover {
  background: rgba(27, 37, 89, 0.06);
}

/* Cards */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

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

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.9);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-french {
  background: linear-gradient(135deg, rgba(27, 37, 89, 0.08), rgba(27, 37, 89, 0.15));
  color: var(--color-primary);
  border: 1px solid rgba(27, 37, 89, 0.25);
}

.badge-european {
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.04), rgba(13, 17, 23, 0.08));
  color: var(--color-secondary);
  border: 1px solid rgba(13, 17, 23, 0.2);
}

.badge-international {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(25, 135, 84, 0.15));
  color: #0A6640;
  border: 1px solid rgba(25, 135, 84, 0.3);
}

.badge-alliance {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.7rem;
}

/* Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.nav-link {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(27, 37, 89, 0.04);
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(27, 37, 89, 0.08);
}

/* Forms */
.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  background: var(--bg-white);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 37, 89, 0.08);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Utility Classes */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-white { background-color: var(--bg-white); }

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.animate-fade-in {
  animation: fade-in 0.6s var(--transition-base) forwards;
}

.skeleton {
  background: linear-gradient(90deg, #F1F3F5 25%, #E5E7EB 50%, #F1F3F5 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-md);
}
