/* Le Relais des Producteurs — Styles custom
 * Complement TailwindCSS CDN
 * ----------------------------------------------------- */

/* Scroll reveal animation — visible by default for SEO bots, animated via JS */
[data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].will-reveal {
  opacity: 0;
  transform: translateY(24px);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(27, 67, 50, 0.45) 0%,
    rgba(27, 67, 50, 0.65) 50%,
    rgba(27, 67, 50, 0.85) 100%
  );
}

/* Prose enhancements */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.125rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
  border-left: 3px solid;
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
}
.prose img {
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Article prose — drop cap on first paragraph */
.article-prose > p:first-of-type::first-letter {
  float: left;
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  line-height: 0.8;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  color: #2d6a4f;
  font-weight: 700;
}

/* Article prose — decorative accent line under H2 */
.article-prose h2 {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d4a37340;
}

/* Article prose — first paragraph slightly larger */
.article-prose > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #374151;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.12);
}

/* Focus visible */
a:focus-visible, button:focus-visible {
  outline: 2px solid #2d6a4f;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Selection color */
::selection {
  background-color: #d4a373;
  color: #1b4332;
}

/* Print */
@media print {
  header, footer, nav, [data-reveal] { display: none !important; }
  .prose { max-width: 100%; }
}
