/* ──────────────────────────────────────
   oshen.fr — Custom Styles
   Complements TailwindCSS CDN
   ────────────────────────────────────── */

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

/* Hero parallax-like depth */
.hero-cover {
  position: relative;
  overflow: hidden;
}

.hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 74, 110, 0.25) 0%,
    rgba(12, 74, 110, 0.55) 60%,
    rgba(12, 74, 110, 0.85) 100%
  );
  pointer-events: none;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Card hover lift */
.card-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.12);
}

/* Image zoom on hover */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Prose tuning */
.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.25rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 3px solid #0c4a6e;
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: #475569;
}

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

/* Scroll hint animation */
.scroll-hint {
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 6px); opacity: 0.9; }
}

/* Header scroll state */
.header-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

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

/* Separator line */
.sep {
  width: 48px;
  height: 2px;
  background: #d97706;
}

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