/*
 * Réflexologue Angers — Custom CSS
 * Palette : Primary #059669 · Secondary #047857 · Accent #6366f1
 * Fonts   : Lora (headings) · Inter (body)
 * WCAG AA minimum sur tous les textes
 */

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

/* Sélection de texte brandée */
::selection {
  background-color: #059669;
  color: #ffffff;
}

/* ---- FOCUS ACCESSIBILITÉ ---------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---- HEADER SCROLL SHADOW --------------------------------- */
.site-header {
  transition: box-shadow 0.2s ease;
}

/* ---- NAV TABS -------------------------------------------- */
.nav-tab {
  position: relative;
}
.nav-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: #059669;
  transition: left 0.25s ease, right 0.25s ease;
  border-radius: 1px;
}
.nav-tab:hover::after,
.nav-tab[aria-current="page"]::after {
  left: 8px;
  right: 8px;
}

/* ---- HERO ------------------------------------------------- */
.hero-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---- CARDS LIFT ------------------------------------------ */
.bienfait-card,
.rubrique-card,
.article-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.bienfait-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.1);
}

.rubrique-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.12);
}

.article-card:hover {
  transform: translateY(-2px);
}

/* ---- SECTION DIVIDER (wave) ------------------------------- */
.wave-divider {
  display: block;
  line-height: 0;
  overflow: hidden;
}

/* ---- PROSE ----------------------------------------------- */
.prose {
  max-width: 70ch;
}

.prose h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: #374151;
}

/* Liens prose : secondary pour contraste AA sur fond blanc */
.prose a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #059669;
  text-decoration-thickness: 2px;
}

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

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  color: #374151;
  line-height: 1.75;
}

.prose strong {
  color: #111827;
  font-weight: 700;
}

/* Blockquote : fond vert très pâle, bordure primary */
.prose blockquote {
  border-left: 4px solid #059669;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  background: #f0fdf4;
  border-radius: 0 0.75rem 0.75rem 0;
  color: #166534;
  font-style: normal;
}

.prose blockquote strong {
  color: #14532d;
}

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

.prose img {
  border-radius: 0.75rem;
  margin: 2rem 0;
  width: 100%;
  height: auto;
}

.prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0;
}

/* ---- TABLES ---------------------------------------------- */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose thead tr {
  border-bottom: 2px solid #d1fae5;
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #064e3b;
  background: #f0fdf4;
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

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

@media (max-width: 640px) {
  .prose th,
  .prose td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ---- BADGE CATÉGORIE ------------------------------------- */
/* Utilise text-secondary (#047857, contrast 5:1) pour les petits textes */
.category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
  background-color: rgba(5, 150, 105, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

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

/* ---- PAGINATION ------------------------------------------ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.pagination li {
  list-style: none;
}

.pagination a,
.pagination .active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination a {
  color: #374151;
  background: #f3f4f6;
  transition: background 0.2s, color 0.2s;
}

.pagination a:hover {
  background: #d1fae5;
  color: #047857;
}

.pagination .active {
  color: #ffffff;
  background: #059669;
  font-weight: 700;
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---- RELATED ARTICLES ------------------------------------- */
.related-card {
  transition: box-shadow 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ---- PRINT ----------------------------------------------- */
@media print {
  .site-header,
  footer,
  nav {
    display: none !important;
  }

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