/* ================================================================
   BLOG ARCHIVE – herboristerie-ambre
   Design: luxe naturel marocain, palette beige/olive/vert/gold
   ================================================================ */

/* ── Variables locales ─────────────────────────────────────────── */
:root {
  --gold:        #c9a96e;
  --gold-light:  #f0e4cc;
  --olive:       #6b7c3f;
  --beige-warm:  #f7f4ee;
  --green-dark2: #263626;
}

/* ────────────────────────────────────────────────────────────────
   PAGE WRAPPER
──────────────────────────────────────────────────────────────── */
.blog-archive-page {
  background: var(--beige-light);
  min-height: 80vh;
}

/* ────────────────────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────────────────────── */
.ba-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ba-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #1e2e1e 0%, #3d5438 50%, #5c7a57 100%);
  z-index: 0;
}

.ba-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,169,110,.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(201,169,110,.12) 0%, transparent 50%);
}

.ba-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--beige-light));
}

.ba-hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 24px 100px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ba-hero-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,169,110,.15);
  border: 1px solid rgba(201,169,110,.3);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.ba-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.ba-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.ba-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.ba-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ba-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.ba-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.ba-stat-lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}

.ba-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
}

.ba-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.ba-hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}

/* ────────────────────────────────────────────────────────────────
   CATÉGORIES PILLS
──────────────────────────────────────────────────────────────── */
.ba-cats-section {
  padding: 32px 0 8px;
  background: var(--beige-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
}

.ba-cats-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ba-cats-scroll::-webkit-scrollbar { display: none; }

.ba-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 40px;
  border: 1.5px solid var(--border, #e0ddd6);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted, #6b6b5e);
  background: var(--white, #fff);
  white-space: nowrap;
  transition: all .25s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.ba-cat-pill:hover,
.ba-cat-pill.active {
  background: var(--green-primary, #4a6741);
  border-color: var(--green-primary, #4a6741);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,103,65,.25);
}

.ba-cat-pill-icon { font-size: 1rem; }

.ba-cat-count {
  background: rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .7rem;
  font-weight: 600;
}

.ba-cat-pill.active .ba-cat-count { background: rgba(255,255,255,.2); }

/* ────────────────────────────────────────────────────────────────
   SECTION HEADER
──────────────────────────────────────────────────────────────── */
.ba-posts-section {
  padding: 56px 0 80px;
}

.ba-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.ba-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--green-dark, #2f3e2f);
  white-space: nowrap;
}

.ba-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border, #e0ddd6), transparent);
}

/* ────────────────────────────────────────────────────────────────
   GRILLE ARTICLES
──────────────────────────────────────────────────────────────── */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* La première carte occupe toute la largeur */
.ba-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 420px;
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  background: var(--white, #fff);
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  transition: box-shadow .3s ease, transform .3s ease;
}

.ba-card--featured:hover {
  box-shadow: 0 8px 48px rgba(0,0,0,.14);
  transform: translateY(-3px);
}

.ba-card--featured .ba-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.ba-card--featured .ba-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.ba-card--featured:hover .ba-card-img { transform: scale(1.04); }

.ba-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,46,30,.25), transparent);
}

.ba-card--featured .ba-card-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white, #fff);
}

/* Cartes standard */
.ba-card--standard {
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  background: var(--white, #fff);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: box-shadow .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
}

.ba-card--standard:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
}

.ba-card--standard .ba-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.ba-card--standard .ba-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.ba-card--standard:hover .ba-card-img { transform: scale(1.06); }

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

/* Éléments communs */
.ba-card-img--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--beige, #f5f5f0), #e8e4db);
}

.ba-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,.92);
  color: var(--green-primary, #4a6741);
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.ba-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-muted, #6b6b5e);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ba-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--green-dark, #2f3e2f);
  line-height: 1.3;
  margin-bottom: 10px;
}

.ba-card--featured .ba-card-title { font-size: 1.55rem; }

.ba-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.ba-card-title a:hover { color: var(--green-primary, #4a6741); }

.ba-card-excerpt {
  font-size: .875rem;
  color: var(--text-muted, #6b6b5e);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.ba-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-primary, #4a6741);
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
  margin-top: auto;
}

.ba-card-link:hover {
  gap: 10px;
  color: var(--green-dark, #2f3e2f);
}

/* ────────────────────────────────────────────────────────────────
   PAGINATION
──────────────────────────────────────────────────────────────── */
.ba-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.ba-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted, #6b6b5e);
  border: 1.5px solid var(--border, #e0ddd6);
  background: var(--white, #fff);
  text-decoration: none;
  justify-content: center;
  transition: all .2s ease;
}

.ba-pagination .page-numbers:hover,
.ba-pagination .page-numbers.current {
  background: var(--green-primary, #4a6741);
  border-color: var(--green-primary, #4a6741);
  color: #fff;
}

.ba-pagination .prev, .ba-pagination .next { padding: 0 18px; }

/* ────────────────────────────────────────────────────────────────
   ÉTAT VIDE
──────────────────────────────────────────────────────────────── */
.ba-empty {
  text-align: center;
  padding: 80px 24px;
}

.ba-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.ba-empty h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--green-dark, #2f3e2f); margin-bottom: 8px; }
.ba-empty p  { color: var(--text-muted, #6b6b5e); margin-bottom: 24px; }

/* ────────────────────────────────────────────────────────────────
   NEWSLETTER ARCHIVE
──────────────────────────────────────────────────────────────── */
.ba-newsletter {
  background: linear-gradient(135deg, #1e2e1e 0%, #3d5438 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.ba-newsletter::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.12), transparent 70%);
}

.ba-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ba-nl-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #c9a96e);
  margin-bottom: 12px;
}

.ba-nl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.ba-nl-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.ba-nl-input-wrap {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 12px;
}

.ba-nl-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 24px;
  font-size: .9rem;
  color: #fff;
  outline: none;
}

.ba-nl-input::placeholder { color: rgba(255,255,255,.45); }

.ba-nl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold, #c9a96e);
  border: none;
  padding: 16px 24px;
  color: #1e2e1e;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
  border-radius: 0 50px 50px 0;
}

.ba-nl-btn:hover { background: #b8926a; }

.ba-nl-privacy {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}

.ba-nl-msg {
  margin-top: 10px;
  font-size: .85rem;
  padding: 8px 14px;
  border-radius: 8px;
}

.ba-nl-msg.success { background: rgba(74,103,65,.3); color: #a8d4a8; }
.ba-nl-msg.error   { background: rgba(200,60,60,.2); color: #ffaaaa; }

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-card--featured { grid-template-columns: 1fr; min-height: auto; }
  .ba-card--featured .ba-card-img-wrap { height: 280px; }
  .ba-card--featured .ba-card-body { padding: 28px; }
}

@media (max-width: 768px) {
  .ba-hero { min-height: 360px; }
  .ba-hero-inner { padding: 60px 24px 80px; }
  .ba-hero-title { font-size: 1.8rem; }
  .ba-stat { padding: 0 16px; }
  .ba-stat-num { font-size: 1.4rem; }
  .ba-newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-card--featured { grid-column: 1; }
  .ba-cats-section { position: static; }
  .ba-nl-input-wrap { flex-direction: column; border-radius: 16px; }
  .ba-nl-btn { border-radius: 0 0 16px 16px; justify-content: center; }
}

/* ================================================================
   BLOG ARCHIVE – RTL
   ================================================================ */

html[dir="rtl"] .ba-page,
html[data-dir="rtl"] .ba-page,
body.dir-rtl .ba-page                   { direction: rtl; }

html[dir="rtl"] .ba-hero-inner,
html[data-dir="rtl"] .ba-hero-inner,
body.dir-rtl .ba-hero-inner             { direction: rtl; }

html[dir="rtl"] .ba-stats,
html[data-dir="rtl"] .ba-stats,
body.dir-rtl .ba-stats                  { flex-direction: row-reverse; }

html[dir="rtl"] .ba-grid,
html[data-dir="rtl"] .ba-grid,
body.dir-rtl .ba-grid                   { direction: rtl; }

html[dir="rtl"] .ba-card-body,
html[data-dir="rtl"] .ba-card-body,
body.dir-rtl .ba-card-body              { text-align: right; }

html[dir="rtl"] .ba-card--featured .ba-card-body,
html[data-dir="rtl"] .ba-card--featured .ba-card-body,
body.dir-rtl .ba-card--featured .ba-card-body { text-align: right; }

html[dir="rtl"] .ba-card-link,
html[data-dir="rtl"] .ba-card-link,
body.dir-rtl .ba-card-link              { flex-direction: row-reverse; }

html[dir="rtl"] .ba-cats-section,
html[data-dir="rtl"] .ba-cats-section,
body.dir-rtl .ba-cats-section           { direction: rtl; }

html[dir="rtl"] .ba-cats-scroll,
html[data-dir="rtl"] .ba-cats-scroll,
body.dir-rtl .ba-cats-scroll            { direction: rtl; }

html[dir="rtl"] .ba-newsletter-section,
html[data-dir="rtl"] .ba-newsletter-section,
body.dir-rtl .ba-newsletter-section     { direction: rtl; }

html[dir="rtl"] .ba-nl-input-wrap,
html[data-dir="rtl"] .ba-nl-input-wrap,
body.dir-rtl .ba-nl-input-wrap          { flex-direction: row-reverse; }

html[dir="rtl"] .ba-nl-btn,
html[data-dir="rtl"] .ba-nl-btn,
body.dir-rtl .ba-nl-btn                 { border-radius: 50px 0 0 50px; }

html[dir="rtl"] .ba-pagination,
html[data-dir="rtl"] .ba-pagination,
body.dir-rtl .ba-pagination             { direction: rtl; }
