/* ============================================
   BLOG — Listing & articles
   ============================================ */

/* ---- LISTING ---- */

.blog-hero {
  text-align: center;
  padding: 80px 56px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: clamp(36px, 3.8vw, 54px);
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 100px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 16px 48px var(--shadow-normal);
  transform: translateY(-4px);
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  background: var(--grey-50);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carte témoignage : photo de la personne + badge play vidéo */
.blog-card-img-testimonial {
  position: relative;
  background: var(--bg-subtle);
}

.blog-card-img-testimonial img {
  object-position: center top;
}

.blog-card-play {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.blog-card-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.blog-card-tag-testimonial {
  background: var(--accent-pastel);
  color: var(--accent-text);
  border-color: var(--accent-border);
}

.blog-card-author {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
  margin-top: -4px;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--manual-bg);
  color: var(--primary-light);
  border: 1px solid var(--manual-border);
  white-space: nowrap;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.blog-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- BREADCRUMBS ---- */

.breadcrumbs {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 56px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
}

/* ---- ARTICLE ---- */

.article-header {
  text-align: center;
  padding: 80px 56px 48px;
  max-width: 800px;
  margin: 0 auto;
}

.article-header h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  margin-bottom: 20px;
  line-height: 1.15;
}

.article-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 56px 100px;
  font-size: 17px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.8;
}

.article-content h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

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

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--accent-pastel);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--primary);
}

.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 32px 0;
}

.article-content a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--primary);
}

.article-content strong {
  font-weight: 600;
  color: var(--primary);
}

/* ---- CTA MID-ARTICLE ---- */

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  background: var(--primary);
  color: white;
  border-radius: 18px;
  padding: 32px 36px;
  margin: 44px 0;
  box-shadow: 0 14px 40px rgba(0, 57, 77, .15);
}

.cta-box-content h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin: 0 0 10px;
}

.cta-box-content p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
  line-height: 1.55;
  margin: 0;
}

.cta-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(244, 211, 94, .35);
  transition: background .15s, transform .15s;
}

.cta-box-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: var(--primary);
}

@media (min-width: 720px) {
  .cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
  .cta-box-content {
    flex: 1;
  }
  .cta-box-btn {
    flex-shrink: 0;
  }
}

/* ---- À LIRE AUSSI ---- */

.related-posts {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 56px 96px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.related-posts h2 {
  text-align: center;
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 32px;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.related-card:hover {
  box-shadow: 0 12px 36px var(--shadow-normal);
  transform: translateY(-3px);
}

.related-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.related-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.related-card-excerpt {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}

.related-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
}

/* ---- RESPONSIVE (blog) ---- */

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 64px;
    max-width: 640px;
  }

  .blog-hero {
    padding: 48px 20px 32px;
  }

  .article-header {
    padding: 48px 20px 32px;
  }

  .article-content {
    padding: 0 20px 64px;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .related-posts {
    padding: 24px 20px 64px;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
