/* ============================================================
   Blog - Veterinaire Tours
   ============================================================ */

/* ── Layout article ────────────────────────────────────────── */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(70px + 2.5rem) 1.5rem 5rem;
  overflow-x: hidden;
}

/* ── Breadcrumb article (override global) ────────────────── */
.article-content .breadcrumb {
  background: transparent;
  border: none;
  padding: 0 0 1.1rem 0;
  margin-bottom: 0;
  font-size: .82rem;
  color: #8A96A3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
/* chemin groupé à gauche */
.article-content .breadcrumb .breadcrumb-path {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.article-content .breadcrumb a {
  color: #5E8AC7;
  text-decoration: none;
  transition: color .2s;
}
.article-content .breadcrumb a:hover { color: #1B4F8A; }
.article-content .breadcrumb span[aria-current="page"] {
  color: #4B5563;
  font-weight: 500;
}
/* tag dans breadcrumb = flottant droite, pas de margin-bottom */
.article-content .breadcrumb .article-tag {
  margin-bottom: 0;
  flex-shrink: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  min-width: 0;
}
.article-content {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-main {}

/* ── Aération contenu article ───────────────────────────── */
.article-content p {
  line-height: 1.85;
  margin-bottom: 1.25rem;
  color: #374151;
}
.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #EEF2F7;
}
.article-content h3 {
  margin-top: 1.75rem;
  margin-bottom: .75rem;
}
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.85;
}
.article-content li { margin-bottom: .4rem; }
.article-content table {
  margin: 1.5rem 0;
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-content img {
  max-width: 100%;
  height: auto;
}
.article-content .alert-box,
.article-content [class*="info-box"],
.article-content [class*="alert"] {
  margin: 1.5rem 0;
}
.article-content hr { margin: 2rem 0; border: none; border-top: 1px solid #EEF2F7; }

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

.sidebar-card {
  background: #fff;
  border: 1px solid #E8EDF4;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.sidebar-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: #1B4F8A;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #EEF2F7;
}

.sidebar-card p { font-size: .88rem; color: #6B7A8D; line-height: 1.6; margin-bottom: .75rem; }

.sidebar-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links li a {
  font-size: .88rem;
  color: #1B4F8A;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem 0;
  border-bottom: 1px solid #F0F4F8;
  transition: color .2s;
}
.sidebar-links li a::before { content: '→'; color: #2E9B6E; font-size: .8rem; }
.sidebar-links li a:hover { color: #2E9B6E; }

/* ── Article hero ───────────────────────────────────────── */
.article-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(135deg, #1B4F8A 0%, #2c7cbf 100%);
}

/* Offset breadcrumb-bar pour le header fixe */
.breadcrumb-bar + .article-hero,
.article-hero:first-of-type {
  /* géré via breadcrumb-bar padding-top ci-dessous */
}

/* Premier élément après le header fixe = breadcrumb-bar */
.header ~ .breadcrumb-bar {
  padding-top: calc(70px + 0.6rem);
}

.article-hero > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: transparent !important;
}

.article-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.article-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 760px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  flex-wrap: wrap;
}
.article-hero-meta strong { color: #fff; }

/* ── Image hero article ─────────────────────────────────────── */
.article-featured-img {
  width: 100%;
  margin: 1.5rem 0 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
}
.article-featured-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .article-featured-img img { height: 220px; }
}

/* ── Header article ────────────────────────────────────────── */
.article-header {
  margin-bottom: 1.5rem;
}

.article-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: #2E9B6E;
  border: 1.5px solid #2E9B6E;
  padding: .25rem .85rem;
  border-radius: 50px;
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: #6B7A8D;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.article-date,
.article-read-time {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.article-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #2C3E50;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-intro {
  font-size: 1.1rem;
  color: #6B7A8D;
  line-height: 1.75;
  border-left: 4px solid #2E9B6E;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

/* ── Table des matières ────────────────────────────────────── */
.toc-card {
  background: #F8F9FA;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2C3E50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  counter-reset: toc;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: #1B4F8A;
  padding: .3rem 0;
  border-bottom: 1px solid #E2E8F0;
  transition: color .2s, padding-left .2s;
  text-decoration: none;
}

.toc-link:last-child { border-bottom: none; }
.toc-link:hover { color: #2E9B6E; padding-left: .4rem; }
.toc-link::before {
  counter-increment: toc;
  content: counter(toc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #1B4F8A;
  color: white;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.toc-link.active::before { background: #2E9B6E; }

/* ── Prose — Contenu article ───────────────────────────────── */
.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: #2C3E50;
}

.prose h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1B4F8A;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #E2E8F0;
  position: relative;
}

.prose h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #2E9B6E;
}

.prose h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2E9B6E;
  margin: 2rem 0 .75rem;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 1.5rem 0 .5rem;
}

.prose p { margin-bottom: 1.25rem; }

.prose ul,
.prose ol {
  margin: 1rem 0 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.prose ul li { list-style: none; position: relative; padding-left: 1.5rem; }
.prose ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2E9B6E;
  font-weight: 700;
  font-size: .9rem;
}

.prose ol { counter-reset: ol-counter; }
.prose ol li {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  counter-increment: ol-counter;
}
.prose ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 22px;
  height: 22px;
  background: #1B4F8A;
  color: white;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose blockquote {
  border-left: 4px solid #2E9B6E;
  background: rgba(46, 155, 110, .06);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4a5568;
}

.prose blockquote strong {
  display: block;
  font-style: normal;
  color: #2E9B6E;
  font-size: .85rem;
  margin-top: .5rem;
}

.prose strong { color: #1B4F8A; font-weight: 700; }
.prose em { color: #4a5568; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}

.prose table th {
  background: #1B4F8A;
  color: white;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
}

.prose table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid #E2E8F0;
  color: #2C3E50;
}

.prose table tr:nth-child(even) td { background: #F8F9FA; }
.prose table tr:hover td { background: rgba(27, 79, 138, .03); }

.prose a {
  color: #1B4F8A;
  text-decoration: underline;
  text-decoration-color: rgba(27, 79, 138, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.prose a:hover { text-decoration-color: #1B4F8A; }

/* ── CTA inline dans article ───────────────────────────────── */
.cta-box-article {
  background: linear-gradient(135deg, rgba(27, 79, 138, .05), rgba(46, 155, 110, .05));
  border: 1px solid rgba(27, 79, 138, .15);
  border-left: 4px solid #E8622A;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-box-article-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cta-box-article-content { flex: 1; min-width: 200px; }

.cta-box-article-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #2C3E50;
  margin-bottom: .3rem;
}

.cta-box-article-text {
  font-size: .88rem;
  color: #6B7A8D;
  margin-bottom: 0;
}

/* ── Tags / Catégories ─────────────────────────────────────── */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  background: #F1F5F9;
  color: #6B7A8D;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}

.tag:hover {
  background: #1B4F8A;
  color: white;
}

.tag::before { content: '#'; color: #2E9B6E; font-weight: 800; }

/* ── Author box ────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: #F8F9FA;
  border-radius: 12px;
  margin: 3rem 0 2rem;
  border: 1px solid #E2E8F0;
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B4F8A, #2E9B6E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.author-info {}
.author-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #6B7A8D; font-weight: 700; }
.author-name { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 800; color: #2C3E50; margin: .2rem 0 .5rem; }
.author-bio { font-size: .88rem; color: #6B7A8D; line-height: 1.6; margin-bottom: 0; }

/* ── Articles liés ─────────────────────────────────────────── */
.related-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid #E2E8F0;
}

.related-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #2C3E50;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27, 79, 138, .12);
}

.related-card-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.related-card-body { padding: 1rem; }

.related-card-title {
  font-size: .88rem;
  font-weight: 700;
  color: #2C3E50;
  line-height: 1.4;
  margin-bottom: .5rem;
}

.related-card-link {
  font-size: .8rem;
  color: #1B4F8A;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ── Blog listing ──────────────────────────────────────────── */
.blog-listing-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  align-items: start;
}

.blog-listing-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-listing-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: transform .3s ease, box-shadow .3s ease;
}

.blog-listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(27, 79, 138, .12);
}

.blog-listing-img {
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.blog-listing-body { padding: 1.75rem; }

.blog-listing-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2C3E50;
  margin-bottom: .6rem;
  line-height: 1.35;
}

.blog-listing-excerpt {
  font-size: .9rem;
  color: #6B7A8D;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ── Sidebar blog ──────────────────────────────────────────── */
.sidebar-recent-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-recent-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E2E8F0;
}

.sidebar-recent-item:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-recent-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sidebar-recent-title {
  font-size: .85rem;
  font-weight: 700;
  color: #2C3E50;
  line-height: 1.4;
  margin-bottom: .3rem;
}

.sidebar-recent-date { font-size: .75rem; color: #6B7A8D; }

.sidebar-categories-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sidebar-category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .8rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: #2C3E50;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.sidebar-category-item:hover { background: #1B4F8A; color: white; }

.sidebar-category-count {
  background: #F1F5F9;
  color: #6B7A8D;
  padding: .15rem .5rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}

.sidebar-category-item:hover .sidebar-category-count { background: rgba(255,255,255,.2); color: white; }

/* ── Mobile responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .blog-listing-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .blog-listing-card { grid-template-columns: 1fr; }
  .blog-listing-img { min-height: 140px; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .cta-box-article { flex-direction: column; gap: 1rem; }
}
