/* ============================================================
   BLOG — Styles spécifiques au blog SEO
   ============================================================ */

/* --- Grille articles (index blog) --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Carte article --- */
.blog-card {
  display: block;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #16222F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image img {
  max-width: 55%;
  max-height: 60%;
  object-fit: contain;
}

.blog-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--gray-400, #9ca3af);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark, #0a1628);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-content p {
  font-size: 0.9rem;
  color: var(--gray-500, #6b7280);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal, #1E3D32);
}

.blog-card:hover .blog-card-link {
  text-decoration: underline;
}


/* --- Page article --- */
.article-wrapper {
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.article-cover-wrapper {
  width: 100%;
  height: 220px;
  background: #16222F;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.article-cover-wrapper img {
  max-width: 40%;
  max-height: 50%;
  object-fit: contain;
}

.article-chapeau {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gray-500, #6b7280);
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.article-date {
  font-size: 0.9rem;
  color: var(--gray-400, #9ca3af);
  margin-top: 0.5rem;
}

/* --- Contenu HTML de l'article (rendu TipTap) --- */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark, #0a1628);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark, #0a1628);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600, #4b5563);
  margin-bottom: 1.25rem;
}

.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600, #4b5563);
  margin-bottom: 0.4rem;
}

.article-body blockquote {
  border-left: 4px solid var(--teal, #1E3D32);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-500, #6b7280);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  margin: 1.5rem 0;
}

.article-body a {
  color: var(--teal, #1E3D32);
  font-weight: 600;
  text-decoration: underline;
}

.article-body a:hover {
  color: #162e25;
}

.article-body strong {
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}


/* --- Breadcrumb retour blog --- */
.blog-breadcrumb {
  margin-bottom: 1rem;
}

.blog-breadcrumb a {
  font-size: 0.9rem;
  color: var(--teal, #1E3D32);
  font-weight: 500;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}
