/*
 * Serrurier Durand — Custom CSS
 * Palette : Ardoise #334155 / Cuivre #b45309 / Sable #faf8f5
 * Fonts : DM Serif Display (headings) / DM Sans (body)
 * TailwindCSS via CDN — ce fichier couvre les overrides
 */

/* ------------------------------------------------
   Typography — Prose styling for markdown content
   ------------------------------------------------ */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #e5e7eb;
}

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

/* Blockquote premium — carte avec bordure accent */
.prose blockquote {
  position: relative;
  background: #faf8f5;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #b45309;
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.5rem 3.25rem;
  margin: 2rem 0;
  font-style: normal;
}

.prose blockquote::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 1.5rem;
  width: 1.125rem;
  height: 1.125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b45309' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.prose blockquote p {
  color: #475569;
  margin-bottom: 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Table styling */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.prose thead th {
  background: #1e293b;
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1rem;
  text-align: left;
}

.prose thead th:first-child {
  border-radius: 0.5rem 0 0 0;
}

.prose thead th:last-child {
  border-radius: 0 0.5rem 0 0;
}

.prose tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.prose tbody tr:hover {
  background: #faf8f5;
}

/* Listes avec marqueurs accent */
.prose ul > li::marker {
  color: #b45309;
}

.prose ol > li::marker {
  color: #b45309;
  font-weight: 600;
}

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

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

::selection {
  background: #b45309;
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}

a, button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

img {
  image-rendering: auto;
}

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