/* ════════════════════════════════════════════════════════════════════
   lefelin — Hub du blog (« Les meilleurs blogs pour et sur les chats »)
   Maquette : Blog - Accueil Le Félin.html — palette papier, Fraunces +
   Manrope, couleur de catégorie par bloc via --ct / --ct-deep.
   Scope : .lf-blog-hub (classes lfh-*). Palette alignée fiche produit (v2).
   ════════════════════════════════════════════════════════════════════ */
.lf-blog-hub {
  --lfb-paper: #faf5eb; /* beige clair aligné fiche produit (demande Matthieu) */
  --lfb-paper-2: #f6ecdd;
  --lfb-card: #fffaf2;
  --lfb-ink: #2a2117;
  --lfb-ink-2: #473c2e;
  --lfb-muted: #8a7a63;
  --lfb-line: #ebddc8;
  --lfb-line-2: #e0cfb4;
  --lfb-beige-deep: #f1e8d8; /* beige foncé aligné bandeaux fiche produit */
  --lfb-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --lfb-sans: "Manrope", system-ui, sans-serif;
  font-family: var(--lfb-sans);
  font-size: 16px;
  background: var(--lfb-paper);
  color: var(--lfb-ink-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
section.lf-blog-hub {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flow-root;
}
.lf-blog-hub img {
  display: block;
  max-width: 100%;
}
.lf-blog-hub a {
  color: inherit;
  text-decoration: none;
}
.lf-blog-hub .lfh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 52px);
}

/* ════════ HERO / INTRO ════════ */
.lf-blog-hub .lfh-hero {
  padding: clamp(44px, 5.5vw, 60px) 0;
  text-align: center;
  /* bloc H1 en beige foncé (demande Matthieu : alternance foncé/clair/foncé
     en partant du hero — les blocs catégories suivent via deep_bg) */
  background: var(--lfb-beige-deep);
}
.lf-blog-hub .lfh-brandmark {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--lfb-sans);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b07a3c;
}
.lf-blog-hub .lfh-hero-title {
  font-family: var(--lfb-serif);
  font-weight: 400;
  color: var(--lfb-ink);
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: clamp(16px, 1.8vw, 22px) auto 0;
  text-wrap: balance;
  max-width: 15ch;
}
.lf-blog-hub .lfh-hero-lede {
  max-width: 54ch;
  margin: clamp(20px, 2.4vw, 28px) auto 0;
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  line-height: 1.62;
  color: var(--lfb-ink-2);
  font-weight: 500;
  text-wrap: pretty;
}
.lf-blog-hub .lfh-hero-lede p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.lf-blog-hub .lfh-hero-lede b,
.lf-blog-hub .lfh-hero-lede strong {
  font-weight: 700;
  color: var(--lfb-ink);
}

/* puces de navigation par catégorie (optionnelles) */
.lf-blog-hub .lfh-cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: clamp(28px, 3.4vw, 42px) auto 0;
}
.lf-blog-hub .lfh-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--lfb-line-2);
  background: var(--lfb-card);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--lfb-ink);
  transition: all 0.22s;
}
.lf-blog-hub .lfh-cat-pill:hover {
  transform: translateY(-2px);
  border-color: var(--pc);
  box-shadow: 0 14px 30px -20px var(--pc);
  color: var(--pc-deep);
}
.lf-blog-hub .lfh-cat-pill small {
  font-weight: 600;
  color: var(--lfb-muted);
  font-size: 0.82rem;
}

/* ════════ SECTION DE CATÉGORIE ════════ */
.lf-blog-hub .lfh-cat {
  padding: clamp(44px, 5.5vw, 60px) 0;
  position: relative;
}
.lf-blog-hub .lfh-cat--deep {
  background: var(--lfb-beige-deep);
}
.lf-blog-hub .lfh-cat--deep + .lfh-cat--deep {
  border-top: 1px solid var(--lfb-line-2);
}

/* en-tête : eyebrow + compteur, badge-icône + titre, lien à droite */
.lf-blog-hub .lfh-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 clamp(28px, 3.4vw, 44px);
  padding-bottom: clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--lfb-line-2);
}
.lf-blog-hub .lfh-cat-lead {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
  min-width: 0;
}
.lf-blog-hub .lfh-cat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--lfb-sans);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lfb-ink-2);
}
.lf-blog-hub .lfh-cat-count {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lfb-muted);
  white-space: nowrap;
  padding-left: 10px;
  border-left: 1px solid var(--lfb-line-2);
}
.lf-blog-hub .lfh-cat-titlerow {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.5vw, 18px);
  min-width: 0;
}
.lf-blog-hub .lfh-cat-badge {
  width: clamp(42px, 4.4vw, 52px);
  height: clamp(42px, 4.4vw, 52px);
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ct);
  background: linear-gradient(
    150deg,
    color-mix(in oklab, var(--ct), #fff 12%),
    color-mix(in oklab, var(--ct), #000 26%)
  );
  box-shadow:
    0 11px 24px -14px var(--ct),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.lf-blog-hub .lfh-cat-badge svg {
  width: clamp(21px, 2.2vw, 25px);
  height: clamp(21px, 2.2vw, 25px);
}
.lf-blog-hub .lfh-cat-title {
  font-family: var(--lfb-serif);
  font-weight: 400;
  color: var(--lfb-ink);
  font-size: clamp(1.8rem, 2.9vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.lf-blog-hub .lfh-cat-link {
  flex: none;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--lfb-ink);
}
.lf-blog-hub .lfh-cat-link svg {
  transition: transform 0.2s;
}
.lf-blog-hub .lfh-cat-link:hover svg {
  transform: translateX(4px);
}
.lf-blog-hub .lfh-cat-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lf-blog-hub .lfh-cat-arrows {
  display: flex;
  gap: 8px;
}
.lf-blog-hub .lfh-cat-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--lfb-line-2);
  background: var(--lfb-card);
  color: var(--ct-deep, var(--lfb-ink));
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.lf-blog-hub .lfh-cat-arrow:hover:not(:disabled) {
  border-color: var(--ct);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px var(--ct);
}
.lf-blog-hub .lfh-cat-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 680px) {
  .lf-blog-hub .lfh-cat-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .lf-blog-hub .lfh-cat-tools {
    align-self: flex-start;
  }
  .lf-blog-hub .lfh-cat-arrows {
    display: none;
  }
}

/* carrousel d'articles (flèches + scroll-snap) */
.lf-blog-hub .lfh-cat-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.lf-blog-hub .lfh-cat-track::-webkit-scrollbar {
  display: none;
}
.lf-blog-hub .lfh-cat-track > .lfh-post {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}
@media (max-width: 920px) {
  .lf-blog-hub .lfh-cat-track > .lfh-post {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}
@media (max-width: 620px) {
  .lf-blog-hub .lfh-cat-track {
    gap: 16px;
  }
  .lf-blog-hub .lfh-cat-track > .lfh-post {
    flex: 0 0 86%;
  }
}

.lf-blog-hub .lfh-post {
  display: flex;
  flex-direction: column;
  background: var(--lfb-card);
  border: 1px solid var(--lfb-line-2);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 0.28s,
    border-color 0.28s;
}
.lf-blog-hub .lfh-post:hover {
  transform: translateY(-6px);
  border-color: var(--ct);
  box-shadow: 0 30px 56px -34px color-mix(in oklab, var(--ct), #000 10%);
}
.lf-blog-hub .lfh-post-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--lfb-paper-2);
}
.lf-blog-hub .lfh-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.lf-blog-hub .lfh-post:hover .lfh-post-media img {
  transform: scale(1.05);
}
.lf-blog-hub .lfh-post-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-block;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: color-mix(in srgb, var(--lfb-paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ct-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px -4px rgba(40, 30, 10, 0.4);
}
.lf-blog-hub .lfh-post-tag::before {
  content: "";
  display: inline-block;
  vertical-align: 1px;
  margin-right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--ct);
}
.lf-blog-hub .lfh-post-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lf-blog-hub .lfh-post-title {
  font-family: var(--lfb-serif);
  font-weight: 500;
  color: var(--lfb-ink);
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.lf-blog-hub .lfh-post-excerpt {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--lfb-muted);
  margin: 10px 0 0;
}
.lf-blog-hub .lfh-post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.lf-blog-hub .lfh-post-read {
  color: var(--lfb-muted);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lf-blog-hub .lfh-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ct-deep);
}
.lf-blog-hub .lfh-post-cta svg {
  transition: transform 0.2s;
}
.lf-blog-hub .lfh-post:hover .lfh-post-cta svg {
  transform: translateX(4px);
}

/* marge crème de bas de page (prolonge le fond de la dernière catégorie) */
.lf-blog-hub .lfh-page-end {
  height: clamp(44px, 5.5vw, 60px);
  background: var(--lfb-paper);
}
.lf-blog-hub .lfh-page-end--deep {
  background: var(--lfb-beige-deep);
}

@media (prefers-reduced-motion: reduce) {
  .lf-blog-hub * {
    animation: none !important;
    transition: none !important;
  }
}
