/* ==========================================================================
   Variables CSS personnalisées pour Osfria
   ========================================================================== */

:root {
  /* Couleurs principales */
  --osfria-primary: #3b82f6;
  --osfria-primary-dark: #2563eb;
  --osfria-secondary: #6366f1;
  --osfria-accent: #10b981;
  --osfria-dark: #1f2937;
  --osfria-light: #f8fafc;
  
  /* Gradients */
  --osfria-gradient: linear-gradient(135deg, var(--osfria-primary), var(--osfria-secondary));
  --osfria-gradient-light: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
  
  /* Typography */
  --osfria-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --osfria-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  /* Shadows */
  --osfria-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --osfria-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --osfria-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border radius */
  --osfria-radius: 0.75rem;
  --osfria-radius-lg: 1rem;
}

/* ==========================================================================
   Styles de base
   ========================================================================== */

body {
  font-family: var(--osfria-font-primary);
  line-height: 1.6;
  color: var(--osfria-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--osfria-font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* ==========================================================================
   Navigation personnalisée
   ========================================================================== */

.navbar-brand {
  font-family: var(--osfria-font-heading);
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--osfria-primary) !important;
}

.nav-link.active {
  color: var(--osfria-primary) !important;
  font-weight: 600;
}

/* ==========================================================================
   Boutons personnalisés
   ========================================================================== */

.btn-primary {
  background: var(--osfria-gradient);
  border: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--osfria-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--osfria-primary-dark), var(--osfria-secondary));
  transform: translateY(-1px);
  box-shadow: var(--osfria-shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--osfria-primary);
  color: var(--osfria-primary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--osfria-radius);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--osfria-primary);
  border-color: var(--osfria-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Cards et composants
   ========================================================================== */

.card {
  border: none;
  border-radius: var(--osfria-radius-lg);
  box-shadow: var(--osfria-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--osfria-shadow-lg);
}

.card-gradient {
  background: var(--osfria-gradient-light);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

/* ==========================================================================
   Sections et layout
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--osfria-gradient-light);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--osfria-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--osfria-gradient);
  border-radius: 2px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.text-gradient {
  background: var(--osfria-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-osfria {
  background: var(--osfria-gradient);
}

.bg-gradient-light {
  background: var(--osfria-gradient-light);
}

.shadow-osfria {
  box-shadow: var(--osfria-shadow-lg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    background-size: 15px 15px;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
} 