/* ═══════════════════════════════════════════
   HITOKI — blog.css
   Charge APRES shared.css uniquement.
   Contient tout ce dont le blog a besoin.
   ═══════════════════════════════════════════ */

/* ── UTILITAIRES (uniquement ceux utilisés dans le blog) ── */

.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--night-soft); text-decoration: none;
  padding: 8px 14px; border-radius: 99px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--night); background: var(--peach-mid); }

.section-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}

/* ── HERO BLOG ── */
.blog-hero {
  padding: 120px 5% 56px;
  text-align: center;
}

.blog-hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.blog-hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--night);
  line-height: 1.15;
  margin: 12px 0 18px;
}

.blog-hero-title em {
  font-style: normal;
  color: var(--orange);
}

.blog-hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

/* ── CONTENEUR ── */
.blog-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── FILTRES ── */
.blog-filters-section {
  padding: 0 0 36px;
  border-bottom: 1px solid var(--peach-dark);
}

.blog-search-wrap {
  position: relative;
  max-width: 400px;
  margin: 0 auto 20px;
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.blog-search {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 99px;
  border: 1px solid var(--peach-dark);
  background: white;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--night);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 132, 95, 0.12);
}

.blog-search::placeholder { color: var(--muted); }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.blog-cat-btn {
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid var(--peach-dark);
  background: white;
  color: var(--night-soft);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
}

.blog-cat-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.blog-cat-btn--active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* ── GRILLE ── */
.blog-main {
  padding-top: 44px;
  padding-bottom: 80px;
}

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

/* ── CARD ARTICLE ── */
.blog-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--peach-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30, 26, 24, 0.07);
}

.blog-card--featured {
  grid-column: span 3;
  flex-direction: row;
  min-height: 260px;
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--peach-mid);
  display: block;
  flex-shrink: 0;
}

.blog-card--featured .blog-card-img {
  width: 42%;
  aspect-ratio: auto;
  height: 100%;
}

.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--peach-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.blog-card--featured .blog-card-img-placeholder {
  width: 42%;
  aspect-ratio: auto;
  height: 100%;
}

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

.blog-card--featured .blog-card-body {
  padding: 28px;
  justify-content: center;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-dark);
  background: var(--peach-mid);
  padding: 3px 10px;
  border-radius: 99px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--muted);
}

.blog-card-time {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.blog-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--night);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.blog-card--featured .blog-card-title {
  font-size: clamp(18px, 2.2vw, 24px);
}

.blog-card-desc {
  font-size: 13px;
  color: var(--night-soft);
  line-height: 1.65;
  flex: 1;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 6px;
  display: inline-block;
}

/* ── ETAT VIDE ── */
.blog-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 48px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card--featured {
    grid-column: span 2;
    flex-direction: column;
  }

  .blog-card--featured .blog-card-img,
  .blog-card--featured .blog-card-img-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .blog-hero {
    padding: 90px 5% 40px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card--featured {
    grid-column: span 1;
  }
}