/* Pour éviter les warnings @apply dans l'éditeur */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Variables personnalisées */
:root {
  --color-primary: #1e40af;
  --color-secondary: #dc2626;
  --color-accent: #059669;
  --color-gray: #6b7280;
}

/* Styles de base */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #111827;
  background-color: #f9fafb;
}

/* Container personnalisé */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 4rem;
  }
}

/* Cartes d'articles */
.article-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

/* Boutons */
.btn-primary {
  background-color: #2563eb;
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* Headers */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

/* Navigation */
.nav-link {
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.nav-link.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.hero-slide {
  position: relative;
  height: 25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-slide {
    height: 31.25rem;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
}

/* Newsletter */
.newsletter-section {
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #dbeafe;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-slide {
    height: 18.75rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
}

/* Styles personnalisés pour le prose */
.prose {
  max-width: none;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.625;
  color: #374151;
}

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1.5rem;
  font-style: italic;
  margin: 2rem 0;
  color: #6b7280;
}
