/*
 * LINKER Hugo Base - Custom CSS
 * Note: TailwindCSS est chargé via CDN dans head.html
 * Ce fichier est pour les styles custom additionnels si nécessaire
 */

/* Prose styling pour le contenu markdown */
.prose {
  max-width: 65ch;
}

.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: 4px solid;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: normal;
}

/* Drop cap — première lettre du premier paragraphe */
[itemprop="articleBody"] > p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.75rem;
  margin-top: 0.15rem;
  color: #0891b2;
  font-family: 'Lora', serif;
}

/* TOC smooth scroll offset */
[itemprop="articleBody"] h2,
[itemprop="articleBody"] h3 {
  scroll-margin-top: 6rem;
}

/* Reading progress bar */
#reading-progress {
  pointer-events: none;
}

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

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states pour accessibilité */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Transitions globales */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

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

  .prose {
    max-width: 100%;
  }
}
