/*
 * La Loop Besançon — Styles complémentaires
 * TailwindCSS chargé via CDN Play (head.html)
 */

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

/* ── Prose (contenu markdown) ── */
.prose {
  max-width: 65ch;
}

.prose > p:first-of-type::first-letter {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: #0891b2;
}

.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.4rem;
}

.prose blockquote {
  border-left: 3px solid;
  padding-left: 1.25rem;
  margin: 2rem 0;
}

.prose table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.prose table th {
  border-bottom: 2px solid #e5e7eb;
}

.prose table td {
  border-bottom: 1px solid #f3f4f6;
}

.prose table tr:last-child td {
  border-bottom: none;
}

/* ── 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 accessibility ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background-color: rgba(8, 145, 178, 0.15);
  color: inherit;
}

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