/* === Haras de l'Olympe — Custom Styles === */

html { scroll-behavior: smooth; }

/* --- Header states --- */
.header-top {
  background: transparent;
}
.header-top .header-text-color {
  color: #fff;
}

.header-scrolled {
  background: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.header-scrolled .header-text-color {
  color: #fefae0;
}

/* --- Prose content --- */
.prose { max-width: 68ch; }
.prose h2 {
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(212, 163, 115, 0.25);
}
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }

/* --- Blockquote elevated --- */
.prose blockquote {
  position: relative;
  border-left: none;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem 1.5rem 3.25rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: #57534e;
  background: linear-gradient(135deg, rgba(212,163,115,0.08), rgba(212,163,115,0.04));
  border: 1px solid rgba(212,163,115,0.15);
}
.prose blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(to bottom, #d4a373, #c08b5c);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose img {
  border-radius: 0.75rem;
}

/* --- Article body drop cap --- */
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  line-height: 0.8;
  padding-right: 0.12em;
  padding-top: 0.07em;
  color: #1b4332;
  font-weight: 700;
}

/* --- Line clamp --- */
.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; }

/* --- Focus & transitions --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #d4a373;
  outline-offset: 2px;
}
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

/* --- Hero parallax --- */
.hero-parallax {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}
@media (max-width: 768px) {
  .hero-parallax { background-attachment: scroll; }
}

/* --- Article card hover --- */
.article-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 67, 50, 0.12);
}

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