/* ==========================================================================
   Vaposud — Custom Styles
   TailwindCSS est le moteur principal (CDN). Ce fichier gere les animations,
   transitions, prose overrides et effets visuels que Tailwind CDN ne couvre pas.
   ========================================================================== */

/* --- Base typographique et rendu --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero overlay gradient --- */
.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(19, 78, 74, 0.78) 0%,
    rgba(15, 118, 110, 0.5) 45%,
    rgba(217, 119, 6, 0.18) 100%
  );
}

/* --- Navbar scroll effect --- */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-scrolled .nav-link {
  color: #374151 !important;
}

.nav-scrolled .nav-link:hover {
  color: #0f766e !important;
}

.nav-scrolled .nav-logo-text {
  color: #0f766e !important;
}

.nav-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.nav-transparent .nav-link:hover {
  color: #ffffff;
}

.nav-transparent .nav-logo-text {
  color: #ffffff;
}

/* --- Card hover --- */
.card-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- Image zoom on hover --- */
.img-zoom {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .img-zoom {
  transform: scale(1.04);
}

/* --- Fade in (IntersectionObserver) --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Prose — article content --- */
.prose-vaposud h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.prose-vaposud h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose-vaposud blockquote {
  border-left: 3px solid #0f766e;
  background-color: #f0fdfa;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
  font-style: normal;
}

.prose-vaposud blockquote p {
  margin: 0;
  color: #374151;
}

.prose-vaposud a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(15, 118, 110, 0.3);
  transition: text-decoration-color 0.2s;
}

.prose-vaposud a:hover {
  text-decoration-color: #0f766e;
}

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

/* --- Decorative separator --- */
.separator-accent {
  width: 3rem;
  height: 3px;
  background-color: #d97706;
  border: none;
  border-radius: 2px;
}

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

/* --- Print --- */
@media print {
  header, footer, nav, .no-print {
    display: none !important;
  }
}
