/* ============================================================
   BLOG — styles (s'appuie sur les variables de style.css)
   ============================================================ */

/* Décale le contenu sous le header fixe */
.blog-page {
  padding-top: 90px;
}

/* Offset header fixe pour les pages secondaires (services, tarifs, etc.) */
.page-offset {
  padding-top: 84px;
}

/* ---------- HERO BLOG ---------- */
.blog-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.blog-hero .section-tag {
  display: inline-block;
  margin-bottom: 14px;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-600, #475569);
  font-size: 1.05rem;
}

/* ---------- GRILLE D'ARTICLES ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 30px 0 80px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
}

.post-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-cover .post-emoji {
  font-size: 3.4rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}
.post-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500, #64748b);
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--gray-900, #0f172a);
}
.post-card-excerpt {
  color: var(--gray-600, #475569);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.post-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f46e5;
  font-weight: 600;
  font-size: 0.95rem;
}
.post-card-readmore svg {
  width: 16px;
  height: 16px;
}

/* ---------- PAGE ARTICLE ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 0 70px;
}
.article-breadcrumb {
  font-size: 13px;
  color: var(--gray-500, #64748b);
  margin-bottom: 22px;
}
.article-breadcrumb a {
  color: #4f46e5;
  text-decoration: none;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.article-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--gray-900, #0f172a);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--gray-500, #64748b);
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.article-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gray-700, #334155);
}
.article-meta .author img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  margin-bottom: 36px;
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Corps de l'article — typographie de lecture */
.article-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--gray-700, #334155);
}
.article-content h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 42px 0 14px;
  color: var(--gray-900, #0f172a);
}
.article-content h3 {
  font-size: 1.25rem;
  margin: 30px 0 12px;
  color: var(--gray-900, #0f172a);
}
.article-content p {
  margin-bottom: 20px;
}
.article-content ul,
.article-content ol {
  margin: 0 0 22px 1.2em;
}
.article-content li {
  margin-bottom: 10px;
}
.article-content a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content strong {
  color: var(--gray-900, #0f172a);
}
.article-content blockquote {
  margin: 26px 0;
  padding: 16px 22px;
  border-left: 4px solid #6366f1;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--gray-700, #334155);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article-content th,
.article-content td {
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 10px 12px;
  text-align: left;
}
.article-content th {
  background: rgba(99, 102, 241, 0.08);
  font-weight: 700;
  color: var(--gray-900, #0f172a);
}

/* Encart CTA dans l'article */
.article-cta {
  margin: 40px 0;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  color: #fff;
  text-align: center;
}
.article-cta h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.article-cta p {
  margin: 0 0 18px;
  opacity: 0.92;
}
.article-cta .btn-whatsapp {
  max-width: 340px;
  margin: 0 auto;
}

/* ---------- LIKE / DISLIKE ---------- */
.reaction-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 40px 0 10px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: var(--gray-50, #f8fafc);
}
.reaction-bar .reaction-label {
  font-weight: 600;
  color: var(--gray-700, #334155);
  margin-right: auto;
}
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-700, #334155);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.reaction-btn svg {
  width: 18px;
  height: 18px;
}
.reaction-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}
.reaction-btn .count {
  font-variant-numeric: tabular-nums;
  min-width: 14px;
  text-align: center;
}
.reaction-btn.like.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #059669;
}
.reaction-btn.dislike.active {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}
.reaction-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* Navigation entre articles */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.article-nav a {
  flex: 1;
  min-width: 180px;
  padding: 16px 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  text-decoration: none;
  color: var(--gray-700, #334155);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.article-nav a:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
}
.article-nav span {
  display: block;
  font-size: 12px;
  color: var(--gray-500, #64748b);
  margin-bottom: 4px;
}
.article-nav strong {
  color: var(--gray-900, #0f172a);
}
.article-nav .next {
  text-align: right;
}

/* Articles liés */
.related {
  padding: 50px 0 80px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.related h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .blog-page { padding-top: 76px; }
  .reaction-bar { padding: 16px; }
  .reaction-bar .reaction-label { width: 100%; margin-bottom: 6px; }
}
