/* ============================================================
   CarePet — Article page CSS
   ============================================================ */

/* ── Article Layout ───────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 40px 0 64px;
}

/* ── Article header ───────────────────────────────────────── */
.article-header { margin-bottom: 32px; }

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-decoration: none;
}

.article-category:hover { background: #dcfce7; color: var(--green-dark); }

.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-400);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-author { color: var(--gray-700); font-weight: 500; }

.article-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 20px 0;
  padding-left: 16px;
  border-left: 3px solid var(--green);
  font-style: italic;
}

/* ── Article body ─────────────────────────────────────────── */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
}

.article-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  margin: 44px 0 16px;
  color: var(--gray-900);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
  position: relative;
}

.article-body h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.article-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--gray-900);
  padding-left: 12px;
  border-left: 3px solid var(--green);
}

.article-body h4 {
  font-size: 1rem;
  margin: 22px 0 8px;
  color: var(--gray-800);
  font-weight: 600;
}

.article-body p { margin-bottom: 16px; }

.article-body ul,
.article-body ol {
  margin: 0 0 16px 24px;
}

.article-body li { margin-bottom: 6px; }

.article-body ul li::marker { color: var(--green); }
.article-body ol li::marker { color: var(--green); font-weight: 600; }

.article-body strong { color: var(--gray-900); font-weight: 600; }

.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--green-dark); }

.article-body blockquote {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 15px;
  color: var(--gray-700);
}

.article-body blockquote p { margin: 0; }

/* ── Tables ───────────────────────────────────────────────── */
.article-body .table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 400px;
}

.article-body thead tr {
  background: linear-gradient(135deg, #1a7a4a, #22c55e);
}

.article-body th {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}

.article-body th:first-child { border-radius: 11px 0 0 0; }
.article-body th:last-child  { border-radius: 0 11px 0 0; }

.article-body td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
}

.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: #f0fdf4; }
.article-body tr:hover td { background: #dcfce7; transition: background .12s; }

/* Première colonne en gras (souvent le nom du produit) */
.article-body td:first-child { font-weight: 600; color: var(--gray-900); }

/* ── Table check marks ────────────────────────────────────── */
.article-body .check-yes { color: #0e9f6e; font-weight: 600; }
.article-body .check-no  { color: #e02424; }

/* ── Info boxes ───────────────────────────────────────────── */
.info-box {
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.info-box-icon { font-size: 20px; flex-shrink: 0; }

.info-box-green  { background: var(--green-light); border: 1px solid #bbf7d0; color: #166534; }
.info-box-orange { background: var(--orange-light); border: 1px solid #fed7aa; color: #9a3412; }
.info-box-blue   { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.info-box-amber  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── FAQ ──────────────────────────────────────────────────── */
.article-faq { margin-top: 48px; }

.article-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  transition: border-color .15s;
}

.faq-item:hover { border-color: var(--green); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-900);
  line-height: 1.4;
  gap: 12px;
}

.faq-arrow {
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
  transition: transform .2s;
  display: inline-block;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
  margin: 0 20px;
  padding-top: 14px;
}

.faq-item.open .faq-a { display: block; }

/* ── Sources / Author ─────────────────────────────────────── */
.article-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 15px; color: var(--gray-900); }
.author-role { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.author-bio  { font-size: 13px; color: var(--gray-600); margin-top: 6px; line-height: 1.5; }

/* ── Sidebar ──────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-panel-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

/* Table of contents */
.toc-list {
  list-style: none;
}

.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--gray-200);
  text-decoration: none;
  transition: all .12s;
  line-height: 1.4;
}

.toc-list a:hover { color: var(--green); border-left-color: var(--green); padding-left: 16px; }
.toc-list a.active { color: var(--green); border-left-color: var(--green); font-weight: 500; }

/* Sidebar partner card */
.sidebar-partner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
}

.sp-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sp-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-600);
}

.sp-feat-icon { color: var(--green); }

.sp-cta {
  display: block;
  text-align: center;
  background: var(--orange);
  color: var(--white);
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .12s;
}

.sp-cta:hover { background: var(--orange-dark); color: var(--white); }

.sp-disc { font-size: 10px; color: var(--gray-400); text-align: center; }

/* ── Related articles ─────────────────────────────────────── */
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-200); }

.related-articles h2 { font-size: 1.3rem; margin-bottom: 20px; }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all .12s;
}

.related-card:hover { border-color: var(--green); background: var(--green-light); }

.related-emoji { font-size: 28px; flex-shrink: 0; }

.related-card h4 { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--gray-900); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 600px) {
  .article-meta-bar { gap: 12px; }
  .article-header h1 { font-size: 1.6rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-author-box { flex-direction: column; text-align: center; }
}
