/* ==========================================================
   Aromes & Sens — Custom CSS
   TailwindCSS est charge via CDN dans head.html
   Ce fichier gere les styles non couverts par Tailwind
   ========================================================== */

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

/* Focus accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

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

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Selection */
::selection {
  background-color: rgba(5, 150, 105, 0.15);
  color: inherit;
}


/* --- Prose / Article content --- */
.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose p {
  margin-bottom: 1.15rem;
}
.prose ul,
.prose ol {
  margin-bottom: 1.15rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose blockquote {
  border-left-width: 3px;
  padding-left: 1.25rem;
  margin: 2rem 0;
}


/* --- Drop cap on first paragraph of article --- */
.article-content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.8;
  padding-right: 0.12em;
  padding-top: 0.08em;
  font-weight: 700;
  color: #059669;
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
}


/* --- Table of Contents sidebar --- */
.toc .toc-link {
  border-left: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.toc .toc-link:hover,
.toc .toc-link.text-primary {
  border-left-color: #059669;
}


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


/* --- Progress bar --- */
#progress-bar {
  will-change: width;
  pointer-events: none;
}


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