/* =====================================================
   ARTICLE BLOG — REFONTE DESIGN (CAT-BLOG-design Sous-LOT 1)
   Page article individuel : Hero immersif + Body 720px +
   Footer (tags + auteur) + CTA contextualisé + Connexes.
   ===================================================== */

.article-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb__sep { margin: 0 8px; color: #cbd5e1; }

/* ── ZONE 1 : HERO IMMERSIF ── */

.article-hero { margin-bottom: 40px; }

.article-hero__image {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt, #f8fafc);
}
.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 20px;
  color: #fff;
  background: var(--primary);
}
/* Badges univers thématiques (post LOT Article-univers-FK).
   Couleurs alignées sur les 9 univers du mega-menu CAT-9d-1. */
.article-badge--bebe-maternite           { background: #E91E63; }
.article-badge--sport-recup              { background: #FF6F00; }
.article-badge--soin-beaute              { background: #C2185B; }
.article-badge--cabinet-pro              { background: #1976D2; }
.article-badge--senior-autonomie         { background: #6D4C41; }
.article-badge--orthopedie-medicale      { background: #455A64; }
.article-badge--sante-des-doigts         { background: #00897B; }
.article-badge--pieds-podologie          { background: #8E24AA; }
.article-badge--complements-alimentaires { background: #388E3C; }

.article-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
  margin: 0 0 20px;
}

.article-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  border-left: 3px solid var(--primary);
  padding-left: 18px;
  font-weight: 400;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ── ZONE 2 : BODY ── */

.article-body {
  max-width: 720px;
  margin: 40px auto 60px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--primary-dark);
  margin: 2em 0 0.6em;
  line-height: 1.3;
}
.article-body h1 { font-size: 32px; }
.article-body h2 { font-size: 28px; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.article-body h3 { font-size: 22px; }
.article-body h4 { font-size: 19px; }
.article-body p  { margin: 0 0 1.2em; }
.article-body ul,
.article-body ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.article-body li { margin-bottom: 0.4em; }
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--primary-dark); }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 14px 24px;
  border-left: 4px solid var(--primary);
  background: var(--bg-alt, #f8fafc);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 8px 8px 0;
}
.article-body code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--bg-alt, #f1f5f9);
  border-radius: 4px;
}
.article-body pre {
  margin: 1.4em 0;
  padding: 18px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.article-body pre code { background: transparent; padding: 0; color: inherit; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.article-body th,
.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--bg-alt, #f8fafc);
  font-weight: 700;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.4em 0;
}

/* ── ZONE 3 : FOOTER ── */

.article-footer {
  max-width: 720px;
  margin: 0 auto 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.article-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.article-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-alt, #f8fafc);
  border-radius: 12px;
  margin-bottom: 32px;
}
.article-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-author__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}
.article-author__role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── ZONE 4 : CTA CONTEXTUALISÉ ── */

.article-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 24px;
  background: var(--cta-color, var(--primary));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.article-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.article-cta--cabinet-pro              { --cta-color: #1976D2; }
.article-cta--bebe-maternite           { --cta-color: #E91E63; }
.article-cta--complements-alimentaires { --cta-color: #388E3C; }
.article-cta--sport-recup              { --cta-color: #4CAF50; }
.article-cta--soin-beaute              { --cta-color: #FFAB91; }
.article-cta--orthopedie-medicale      { --cta-color: #455A64; }
.article-cta--senior-autonomie         { --cta-color: #795548; }
.article-cta--sante-des-doigts         { --cta-color: #9C27B0; }
.article-cta--pieds-podologie          { --cta-color: #FF9800; }

/* ── ZONE 5 : ARTICLES CONNEXES ── */

.article-related {
  background: var(--bg-alt, #f8fafc);
  padding: 60px 24px;
  margin-top: 0;
}
.article-related__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.article-related__title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--primary-dark);
  margin: 0 0 32px;
  text-align: center;
}

/* Responsive */
@media (max-width: 720px) {
  .article-page { padding: 20px 16px 0; }
  .article-hero__image { border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .article-body { font-size: 16.5px; line-height: 1.7; }
  .article-body h2 { font-size: 24px; }
  .article-body h3 { font-size: 20px; }
  .article-cta { padding: 16px 20px; font-size: 15px; }
  .article-related { padding: 48px 16px; }
}


/* =====================================================
   BLOG LIST PAGE — REFONTE (CAT-BLOG-design Sous-LOT 2)
   Hero sobre + filtres pills + featured + grille + pagination.
   Réutilise .article-card / .blog-grid définis dans style.css.
   ===================================================== */

/* ── ZONE 1 : HERO SOBRE ── */

.blog-hero {
  background: var(--bg);
  padding: 80px 24px;
  border-bottom: 1px solid var(--border);
}
.blog-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.blog-hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.blog-hero__title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary-dark);
  margin: 0 0 16px;
}
.blog-hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── ZONE 2 : FILTRES PILLS ── */

.blog-filters {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.blog-filters__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.blog-filters__pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.blog-filters__pills::-webkit-scrollbar { height: 6px; }
.blog-filters__pills::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.blog-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.blog-pill--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-pill--active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.blog-filters__active-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.blog-tag-active {
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.blog-tag-clear {
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 12px;
}
.blog-tag-clear:hover { color: var(--primary); }

/* ── ZONE 3 : ARTICLE FEATURED ── */

.blog-featured {
  padding: 48px 24px;
  background: var(--bg);
}
.blog-featured__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.blog-featured__card {
  display: grid;
  grid-template-columns: 60% 40%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(13, 35, 71, 0.06);
}
.blog-featured__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 35, 71, 0.12);
}

.blog-featured__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.blog-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-featured__card:hover .blog-featured__image img { transform: scale(1.04); }
.blog-featured__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; opacity: 0.35;
}

.blog-featured__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.blog-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--bg);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.blog-badge--featured {
  background: linear-gradient(135deg, #f5b542, #e8a838);
  color: #fff;
}
.blog-featured__title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary-dark);
  margin: 0 0 16px;
}
.blog-featured__lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-featured__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.blog-featured__cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-featured__card:hover .blog-featured__cta { gap: 10px; }

/* ── ZONE 4 : LISTE / GRILLE ── */

.blog-list {
  padding: 48px 24px;
}
.blog-list__inner {
  max-width: 1280px;
  margin: 0 auto;
}
/* On force 3 colonnes desktop pour le pattern magazine. */
.blog-list .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}
.article-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.3; color: #fff;
}

.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.blog-empty__icon { font-size: 64px; margin-bottom: 16px; }
.blog-empty__title {
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--primary-dark);
  margin: 0 0 12px;
}
.blog-empty__text { font-size: 15px; line-height: 1.6; }
.blog-empty__text a { color: var(--primary); text-decoration: underline; }

/* ── ZONE 5 : PAGINATION ── */

.blog-pagination {
  padding: 16px 24px 60px;
}
.blog-pagination__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.blog-pagination__link {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-pagination__link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-pagination__link--disabled {
  opacity: 0.4;
  pointer-events: none;
}
.blog-pagination__info {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── RESPONSIVE BLOG LIST ── */

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

@media (max-width: 768px) {
  .blog-hero { padding: 48px 20px; }
  .blog-featured { padding: 32px 16px; }
  .blog-featured__card { grid-template-columns: 1fr; }
  .blog-featured__content { padding: 24px; }
  .blog-list { padding: 32px 16px; }
}

@media (max-width: 640px) {
  .blog-list .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-pagination__inner {
    flex-direction: column;
    gap: 12px;
  }
}

