/* ========================================
   BLOG — utilise les variables de styles.css
   (charger styles.css AVANT blog.css)
   ======================================== */

.blog-hero {
  background: var(--bg-light);
  padding: 60px 0 40px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.2rem;
  color: var(--navy-header);
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Fil d'Ariane */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--navy-header);
  text-decoration: none;
}

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

/* Grille d'articles */
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.article-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-tag {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.article-card h2 {
  font-size: 1.2rem;
  color: var(--navy-header);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 14px;
}

.article-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.8;
}

/* ========================================
   PAGE ARTICLE
   ======================================== */

.article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 40px 20px;
  text-align: center;
}

.article-header .article-tag {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.article-header h1 {
  font-size: 2.1rem;
  color: var(--navy-header);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-cover {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 40px;
}

.article-cover img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px 60px;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.article-body h2 {
  color: var(--navy-header);
  font-size: 1.5rem;
  margin: 40px 0 18px;
}

.article-body h3 {
  color: var(--navy-header);
  font-size: 1.2rem;
  margin: 30px 0 14px;
}

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

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

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

.article-body a {
  color: var(--green-primary);
  font-weight: 600;
}

/* Photos dans le corps d'article */
.article-body figure {
  margin: 32px 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Deux photos côte à côte */
.article-body .figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.article-body .figure-pair figure {
  margin: 0;
}

/* Bloc CTA en fin d'article (cohérent avec le site) */
.article-cta {
  max-width: 760px;
  margin: 50px auto 0;
  padding: 32px 40px;
  background: var(--bg-light);
  border-left: 4px solid var(--orange-primary);
  border-radius: 8px;
  text-align: center;
}

.article-cta h3 {
  color: var(--navy-header);
  margin-bottom: 12px;
}

.article-cta p {
  color: var(--text-light);
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .article-header h1 {
    font-size: 1.6rem;
  }
  .article-body .figure-pair {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    padding: 30px 20px 60px;
  }
  .article-header,
  .article-body,
  .article-cover {
    padding-left: 20px;
    padding-right: 20px;
  }
}
