/* =============================================================================
   Les Senteurs de Laury - Main CSS
   Point d'entrée unique pour tous les styles
   ============================================================================= */

/* Base - Variables, Reset, Typography */
@import url('./base/variables.css');
@import url('./base/base.css');
@import url('./base/utilities.css');

/* Components - Header, Hero, Sections, Cards, Footer */
@import url('./components/components.css');

/* =============================================================================
   Custom Overrides
   Styles spécifiques au site
   ============================================================================= */

/* Animations d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Stagger animations */
.stagger > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Prose styling for article content */
.prose {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.prose > * + * {
  margin-top: var(--space-6);
}

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose blockquote {
  padding-left: var(--space-6);
  border-left: 4px solid var(--color-primary);
  font-style: italic;
  color: var(--color-text-muted);
}

.prose img {
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.prose ul,
.prose ol {
  padding-left: var(--space-8);
}

.prose li {
  margin-bottom: var(--space-2);
}

/* Special background pattern */
.bg-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(124, 45, 65, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(202, 138, 4, 0.03) 0%, transparent 50%);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* Skip link accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-surface);
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }
}
