/* ════════════════════════════════════════════════════════════════════
   lefelin — Pages collection (design Sérénité / éditorial crème)
   En-tête façon archive blog (breadcrumb + Fraunces + compteur), pilules
   de sous-collections, grille de cartes produit .lf-pcard (lf-product.css,
   body.lefelin), contenu SEO éditorial + FAQ <details> + cartes collections.
   Scope : .lf-collection / .lf-collection-content / .lf-collection-cards
   (classes lfc-*).
   ════════════════════════════════════════════════════════════════════ */
.lf-collection,
.lf-collection-content,
.lf-collection-cards,
.lf-allcat-rows {
  --lfb-paper: #fdf8ef;
  --lfb-paper-2: #f6ecdd;
  --lfb-card: #fffaf2;
  --lfb-ink: #2a2117;
  --lfb-ink-2: #473c2e;
  --lfb-muted: #8a7a63;
  --lfb-line: #ebddc8;
  --lfb-line-2: #e0cfb4;
  --lfc-accent: #b07a3c;
  --lfc-accent-deep: #7c5527;
  --lfb-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --lfb-sans: "Manrope", system-ui, sans-serif;
  --lfc-measure: 820px;
  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-collection,
section.lf-collection-content,
section.lf-collection-cards {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flow-root;
}
.lf-collection img,
.lf-collection-content img,
.lf-collection-cards img {
  display: block;
  max-width: 100%;
}
.lf-collection a,
.lf-collection-content a,
.lf-collection-cards a {
  color: inherit;
  text-decoration: none;
}
.lfc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 56px);
}
.lfc-narrow {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 56px);
}

/* ════════ EN-TÊTE ════════ */
.lf-collection .lfc-head {
  padding: clamp(44px, 5.5vw, 60px) 0 clamp(26px, 3vw, 38px);
  text-align: center;
}
.lf-collection .lfc-crumb {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--lfb-muted);
}
.lf-collection .lfc-crumb a:hover {
  color: var(--lfc-accent-deep);
}
.lf-collection .lfc-crumb svg {
  opacity: 0.6;
}
.lf-collection .lfc-crumb-here {
  color: var(--lfb-ink);
  white-space: nowrap;
}
.lf-collection .lfc-head-title {
  font-family: var(--lfb-serif);
  font-weight: 400;
  color: var(--lfb-ink);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: clamp(16px, 1.8vw, 22px) 0 0;
  text-wrap: balance;
}
.lf-collection .lfc-head-count {
  margin: clamp(14px, 1.6vw, 20px) 0 0;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lfb-muted);
}

/* pilules de sous-collections */
.lf-collection .lfc-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: clamp(24px, 2.8vw, 34px) auto 0;
}
.lf-collection .lfc-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.94rem;
  color: var(--lfb-ink);
  transition: all 0.22s;
}
.lf-collection .lfc-pill:hover {
  transform: translateY(-2px);
  border-color: var(--lfc-accent);
  box-shadow: 0 14px 30px -20px var(--lfc-accent);
  color: var(--lfc-accent-deep);
}
.lf-collection .lfc-pill.is-current {
  background: var(--lfc-accent);
  border-color: var(--lfc-accent);
  color: #fff;
}
.lf-collection .lfc-pill small {
  font-weight: 600;
  color: var(--lfb-muted);
  font-size: 0.8rem;
}
.lf-collection .lfc-pill.is-current small {
  color: rgba(255, 255, 255, 0.75);
}

/* ════════ BARRE D'OUTILS (tri) ════════ */
.lf-collection .lfc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--lfb-line-2);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.lf-collection .lfc-toolbar-count {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lfb-muted);
  text-transform: uppercase;
}
.lf-collection .lfc-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lfb-muted);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .lf-collection .lfc-toolbar {
    justify-content: flex-end;
  }
  .lf-collection .lfc-toolbar-count {
    display: none;
  }
}
.lf-collection .lfc-sort select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--lfb-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--lfb-ink);
  background: var(--lfb-card)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7a63' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: 1px solid var(--lfb-line-2);
  border-radius: 999px;
  padding: 10px 38px 10px 18px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lf-collection .lfc-sort select:hover,
.lf-collection .lfc-sort select:focus {
  border-color: var(--lfc-accent);
  outline: none;
  box-shadow: 0 10px 24px -18px var(--lfc-accent);
}

/* ════════ GRILLE PRODUITS ════════ */
.lf-collection .lfc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 26px);
  padding-bottom: clamp(36px, 4.5vw, 54px);
}
@media (max-width: 1080px) {
  .lf-collection .lfc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .lf-collection .lfc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* navigation collection → collection (pilules) : crossfade fluide entre les
   pages au lieu du flash blanc (View Transitions, repli silencieux sinon) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
}

/* état de chargement pendant la navigation pilules (AJAX) */
html.lfc-nav-loading #MainContent {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* état de chargement pendant le tri AJAX */
.lf-collection .lfc-grid,
.lf-collection .lfc-pagination {
  transition: opacity 0.2s;
}
.lf-collection.is-sorting .lfc-grid,
.lf-collection.is-sorting .lfc-pagination {
  opacity: 0.4;
  pointer-events: none;
}

/* apparition en cascade des cartes */
@keyframes lfc-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.lf-collection .lfc-grid > * {
  animation: lfc-pop 0.5s cubic-bezier(0.3, 0.7, 0.4, 1) both;
}
.lf-collection .lfc-grid > *:nth-child(1) { animation-delay: 0.03s; }
.lf-collection .lfc-grid > *:nth-child(2) { animation-delay: 0.08s; }
.lf-collection .lfc-grid > *:nth-child(3) { animation-delay: 0.13s; }
.lf-collection .lfc-grid > *:nth-child(4) { animation-delay: 0.18s; }
.lf-collection .lfc-grid > *:nth-child(5) { animation-delay: 0.23s; }
.lf-collection .lfc-grid > *:nth-child(6) { animation-delay: 0.28s; }
.lf-collection .lfc-grid > *:nth-child(7) { animation-delay: 0.33s; }
.lf-collection .lfc-grid > *:nth-child(8) { animation-delay: 0.38s; }
.lf-collection .lfc-grid > *:nth-child(n + 9) { animation-delay: 0.42s; }

/* re-tri AJAX : cascade raccourcie (réactivité avant tout) */
.lf-collection .lfc-grid--swap > * { animation-duration: 0.3s; }
.lf-collection .lfc-grid--swap > *:nth-child(1) { animation-delay: 0s; }
.lf-collection .lfc-grid--swap > *:nth-child(2) { animation-delay: 0.03s; }
.lf-collection .lfc-grid--swap > *:nth-child(3) { animation-delay: 0.06s; }
.lf-collection .lfc-grid--swap > *:nth-child(4) { animation-delay: 0.09s; }
.lf-collection .lfc-grid--swap > *:nth-child(5) { animation-delay: 0.12s; }
.lf-collection .lfc-grid--swap > *:nth-child(6) { animation-delay: 0.15s; }
.lf-collection .lfc-grid--swap > *:nth-child(7) { animation-delay: 0.18s; }
.lf-collection .lfc-grid--swap > *:nth-child(8) { animation-delay: 0.21s; }
.lf-collection .lfc-grid--swap > *:nth-child(n + 9) { animation-delay: 0.24s; }

/* ════════ PAGINATION ════════ */
.lf-collection .lfc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-bottom: clamp(44px, 5.5vw, 60px);
}
.lf-collection .lfc-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--lfb-line-2);
  background: var(--lfb-card);
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--lfb-ink);
  transition: all 0.2s;
}
.lf-collection .lfc-page-btn:hover {
  transform: translateY(-2px);
  border-color: var(--lfc-accent);
  color: var(--lfc-accent-deep);
  box-shadow: 0 14px 30px -20px var(--lfc-accent);
}
.lf-collection .lfc-page-btn.is-current {
  background: var(--lfc-accent);
  border-color: var(--lfc-accent);
  color: #fff;
}
.lf-collection .lfc-page-gap {
  color: var(--lfb-muted);
  font-weight: 700;
}

/* ════════ CONTENU ÉDITORIAL ════════ */
.lf-collection-content {
  padding: clamp(36px, 4.5vw, 54px) 0;
}
.lf-collection-content + .lf-collection-content {
  padding-top: 0;
}
.lf-collection-content .lfc-sec-head {
  max-width: var(--lfc-measure);
  margin: 0 auto clamp(18px, 2vw, 26px);
}
.lf-collection-content .lfc-eyebrow {
  display: block;
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lfc-accent);
}
.lf-collection-content .lfc-sec-head h2 {
  position: relative;
  font-family: var(--lfb-serif);
  font-weight: 400;
  color: var(--lfb-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  padding-top: 14px;
  text-wrap: balance;
}
.lf-collection-content .lfc-sec-head h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--lfc-accent);
}
.lf-collection-content .lfc-text {
  max-width: var(--lfc-measure);
  margin: 0 auto;
}
.lf-collection-content .lfc-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--lfb-ink-2);
  margin: 0 0 1.1em;
}
.lf-collection-content .lfc-text > :last-child {
  margin-bottom: 0;
}
.lf-collection-content .lfc-text strong {
  font-weight: 700;
  color: var(--lfb-ink);
}
.lf-collection-content .lfc-text a {
  color: var(--lfc-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lf-collection-content .lfc-text ul:not([class]) {
  list-style: none;
  margin: 0 0 1.1em;
  padding: 0;
}
.lf-collection-content .lfc-text ul:not([class]) > li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.lf-collection-content .lfc-text ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lfc-accent);
  box-shadow: 0 0 0 4px rgba(176, 122, 60, 0.16);
}
.lf-collection-content .lfc-text ol:not([class]) {
  list-style: none;
  counter-reset: lfc-ol;
  margin: 0 0 1.1em;
  padding: 0;
}
.lf-collection-content .lfc-text ol:not([class]) > li {
  position: relative;
  counter-increment: lfc-ol;
  padding-left: 44px;
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.lf-collection-content .lfc-text ol:not([class]) > li::before {
  content: counter(lfc-ol);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lfb-line-2);
  border-radius: 9px;
  background: var(--lfb-card);
  font-family: var(--lfb-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lfc-accent-deep);
}

/* figure */
.lf-collection-content .lfc-figure {
  max-width: 940px;
  margin: clamp(22px, 2.6vw, 32px) auto;
  padding: 0 clamp(22px, 5vw, 56px);
}
@media (min-width: 1052px) {
  .lf-collection-content .lfc-figure {
    padding: 0;
  }
}
.lf-collection-content .lfc-figure img {
  width: 100%;
  aspect-ratio: 1456 / 720;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--lfb-line-2);
}

/* FAQ accordéon natif <details> */
.lf-collection-content .lfc-faq {
  max-width: var(--lfc-measure);
  margin: 0 auto;
}
.lf-collection-content .lfc-qa {
  border-bottom: 1px solid var(--lfb-line);
}
.lf-collection-content .lfc-qa:first-of-type {
  border-top: 1px solid var(--lfb-line);
}
.lf-collection-content .lfc-qa summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  cursor: pointer;
  font-family: var(--lfb-serif);
  font-weight: 500;
  font-size: 1.16rem;
  line-height: 1.3;
  color: var(--lfb-ink);
  transition: color 0.2s;
}
.lf-collection-content .lfc-qa summary::-webkit-details-marker {
  display: none;
}
.lf-collection-content .lfc-qa summary:hover {
  color: var(--lfc-accent-deep);
}
.lf-collection-content .lfc-qa summary::after {
  content: "+";
  flex: none;
  align-self: center;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lfb-line-2);
  border-radius: 50%;
  background: var(--lfb-card);
  font-family: var(--lfb-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lfc-accent-deep);
  transition: transform 0.25s ease-in-out, background 0.2s;
}
.lf-collection-content .lfc-qa[open] summary::after {
  transform: rotate(45deg);
  background: var(--lfb-paper-2);
}
.lf-collection-content .lfc-qa-a {
  padding: 0 36px 20px 2px;
}
.lf-collection-content .lfc-qa-a p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--lfb-ink-2);
  margin: 0 0 0.9em;
}
.lf-collection-content .lfc-qa-a > :last-child {
  margin-bottom: 0;
}
.lf-collection-content .lfc-qa-a strong {
  font-weight: 700;
  color: var(--lfb-ink);
}

/* ════════ CARTES SOUS-COLLECTIONS ════════ */
.lf-collection-cards {
  padding: clamp(36px, 4.5vw, 54px) 0;
}
.lf-collection-cards .lfc-cards-head {
  max-width: var(--lfc-measure);
  margin: 0 auto clamp(22px, 2.6vw, 32px);
}
.lf-collection-cards .lfc-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
@media (max-width: 1080px) {
  .lf-collection-cards .lfc-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .lf-collection-cards .lfc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lf-collection-cards .lfc-ccard {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--lfb-line-2);
  background: var(--lfb-paper-2);
  aspect-ratio: 4 / 5;
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.4, 1), box-shadow 0.28s, border-color 0.28s;
}
.lf-collection-cards .lfc-ccard:hover {
  transform: translateY(-5px);
  border-color: var(--lfc-accent);
  box-shadow: 0 26px 48px -30px color-mix(in oklab, var(--lfc-accent), #000 10%);
}
.lf-collection-cards .lfc-ccard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.lf-collection-cards .lfc-ccard:hover img {
  transform: scale(1.05);
}
.lf-collection-cards .lfc-ccard-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(28, 18, 6, 0.72));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lf-collection-cards .lfc-ccard-label b {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  text-wrap: balance;
}
.lf-collection-cards .lfc-ccard-label svg {
  flex: none;
  transition: transform 0.2s;
}
.lf-collection-cards .lfc-ccard:hover .lfc-ccard-label svg {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .lf-collection *,
  .lf-collection-content *,
  .lf-collection-cards * {
    animation: none !important;
    transition: none !important;
  }
}

/* ════════ Page « Tous les produits » (/collections/all) ════════
   Contenu SEO centré et cohérent avec l'en-tête de page (lf-allcat). */
/* espacement vertical des blocs (bat la règle section.lf-collection-content{padding:0}) */
.lf-allcat.lf-collection-content,
.lf-allcat.lf-collection-cards {
  padding-top: clamp(30px, 3.4vw, 44px);
  padding-bottom: clamp(30px, 3.4vw, 44px);
}
.lf-allcat .lfc-sec-head,
.lf-allcat .lfc-cards-head {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.lf-allcat .lfc-sec-head h2::before {
  left: 50%;
  transform: translateX(-50%);
}
.lf-allcat .lfc-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.lf-allcat .lfc-faq {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* rangées par catégorie (carrousels) sur /collections/all */
.lf-allcat-rows {
  display: flow-root;
  padding: clamp(20px, 2.4vw, 32px) 0;
}
.lf-allcat-rows .lfa-row {
  padding: clamp(24px, 2.8vw, 38px) 0;
}
.lf-allcat-rows .lfa-row + .lfa-row {
  border-top: 1px solid var(--lfb-line);
}
.lf-allcat-rows .lfa-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 2vw, 22px);
}
.lf-allcat-rows .lfa-row-title {
  font-family: var(--lfb-serif);
  font-weight: 400;
  color: var(--lfb-ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
  text-wrap: balance;
}
.lf-allcat-rows .lfa-row-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.lf-allcat-rows .lfa-row-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--lfc-accent-deep);
}
.lf-allcat-rows .lfa-row-link small {
  font-weight: 700;
  color: var(--lfb-muted);
}
.lf-allcat-rows .lfa-row-link svg {
  transition: transform 0.2s;
}
.lf-allcat-rows .lfa-row-link:hover svg {
  transform: translateX(4px);
}
.lf-allcat-rows .lfa-arrows {
  display: flex;
  gap: 8px;
}
.lf-allcat-rows .lfa-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--lfb-line-2);
  background: var(--lfb-card);
  color: var(--lfc-accent-deep);
  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-allcat-rows .lfa-arrow:hover:not(:disabled) {
  border-color: var(--lfc-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px var(--lfc-accent);
}
.lf-allcat-rows .lfa-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}
.lf-allcat-rows .lfa-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 6px;
}
.lf-allcat-rows .lfa-track::-webkit-scrollbar {
  display: none;
}
.lf-allcat-rows .lfa-track > .lf-pcard {
  flex: 0 0 auto;
  width: 212px;
  scroll-snap-align: start;
}
@media (max-width: 760px) {
  .lf-allcat-rows .lfa-arrows {
    display: none;
  }
  .lf-allcat-rows .lfa-track {
    margin-right: calc(-1 * clamp(22px, 5vw, 56px));
    padding-right: clamp(22px, 5vw, 56px);
  }
}
@media (max-width: 600px) {
  .lf-allcat-rows .lfa-track > .lf-pcard {
    width: 45vw;
  }
  .lf-allcat-rows .lfa-row-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   HABILLAGE des sections Minimog d'origine sous la grille (template
   collection.lf-v2*) : on garde la DISPOSITION d'origine, on ne change
   que la peau — polices (Fraunces/Manrope), couleurs d'encre, images
   arrondies. Scope : body .template-collection.lefelin.
   ════════════════════════════════════════════════════════════════════ */
body#m-theme.template-collection.lefelin {
  background-color: #fdf8ef;
}
/* les sections Minimog peignent un fond blanc (m-gradient m-color-default) :
   on les rend transparentes pour laisser le crème du body */
.template-collection.lefelin #MainContent .m-gradient.m-color-default {
  background: transparent;
}

/* titres de sections → Fraunces */
.template-collection.lefelin .m-richtext__title,
.template-collection.lefelin .m-section__heading {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #2a2117;
}

/* textes courants → Manrope, encre douce */
.template-collection.lefelin .m-richtext__description,
.template-collection.lefelin .m-section__description,
.template-collection.lefelin .m-collapsible--content .rte,
.template-collection.lefelin .article-card__excerpt {
  font-family: "Manrope", system-ui, sans-serif;
  color: #473c2e;
}

/* images → coins arrondis + liseré (toutes les sections d'images des
   templates : hero, cartes-images, lookbook/shop-this-look, articles) */
.template-collection.lefelin .m-hero__bg,
.template-collection.lefelin .m-image-card__inner,
.template-collection.lefelin .m-stl-card__image-wrapper,
.template-collection.lefelin .m-lookbook-card__image,
.template-collection.lefelin .article-card__image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e0cfb4;
}
.template-collection.lefelin .m-hero__bg img,
.template-collection.lefelin .m-image-card__img,
.template-collection.lefelin .m-stl-card__image-wrapper img,
.template-collection.lefelin .m-stl-card__image-wrapper .m-image,
.template-collection.lefelin .m-lookbook-card__image img,
.template-collection.lefelin .article-card__image-wrapper img {
  border-radius: inherit;
}

/* images cliquables : zoom doux au survol (retour Matthieu 12 juin :
   l'animation d'origine avait disparu avec l'habillage). Le clip est
   assuré par overflow:hidden sur les wrappers arrondis ci-dessus. */
.template-collection.lefelin a.m-image-card__img img,
.template-collection.lefelin .m-stl-card__image-wrapper img {
  transition: transform 0.65s cubic-bezier(0.15, 0.75, 0.5, 1);
  backface-visibility: hidden;
}
.template-collection.lefelin a.m-image-card__img:hover img,
.template-collection.lefelin .m-stl-card__image-wrapper:hover img {
  transform: scale(1.06) translateZ(0);
}

/* images lookbook cliquables : ancrage du lien étiré + curseur */
.template-collection.lefelin .m-stl-card__image-wrapper {
  position: relative;
}
.template-collection.lefelin .m-stl-card__image-wrapper .m-hidden-link {
  cursor: pointer;
}

/* titres des cartes lookbook / shop-this-look → Fraunces */
.template-collection.lefelin .m-stl-card__heading,
.template-collection.lefelin .m-lookbook-card__heading {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* cartes collections : titre en Fraunces, blanc sur photo (comme avant) */
.template-collection.lefelin .m-image-card__heading {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(20, 12, 2, 0.45);
}

/* FAQ repliable : questions en Fraunces, bordures crème, icône ocre,
   réponse ouverte resserrée (padding bas 25px au lieu de 40) */
.template-collection.lefelin .m-collapsible-section .m-collapsible--content__inner {
  padding-bottom: 25px;
}
.template-collection.lefelin .m-collapsible--button {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  color: #2a2117;
}
.template-collection.lefelin .m-collapsible,
.template-collection.lefelin .m-collapsible--button,
.template-collection.lefelin .m-collapsible--content {
  border-color: #e0cfb4;
}
.template-collection.lefelin .m-collapsible--icon {
  color: #7c5527;
}

/* cartes d'articles : titre Fraunces, méta/lien aux couleurs lefelin */
.template-collection.lefelin .article-card__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #2a2117;
}
.template-collection.lefelin .article-card__meta {
  color: #8a7a63;
}
.template-collection.lefelin .article-card__readmore {
  color: #7c5527;
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — passe mobile/tablette « hyper propre »
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* pilules : rangée scrollable bord à bord, sans retour à la ligne */
  .lf-collection .lfc-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding: 4px clamp(22px, 5vw, 56px) 8px;
    margin-left: calc(-1 * clamp(22px, 5vw, 56px));
    margin-right: calc(-1 * clamp(22px, 5vw, 56px));
  }
  .lf-collection .lfc-pills::-webkit-scrollbar {
    display: none;
  }
  .lf-collection .lfc-pill {
    flex: none;
    padding: 9px 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  /* tri : ligne pleine largeur, libellé à gauche, select extensible */
  .lf-collection .lfc-toolbar {
    justify-content: stretch;
  }
  .lf-collection .lfc-sort {
    width: 100%;
    justify-content: space-between;
  }
  .lf-collection .lfc-sort select {
    flex: 1;
    max-width: 240px;
    min-width: 0;
  }

  /* grille resserrée, cartes compactes */
  .lf-collection .lfc-grid {
    gap: 12px;
  }
  .template-collection.lefelin .lfc-grid .lf-pcard__body {
    padding: 12px 13px 14px;
    gap: 7px;
  }
  .template-collection.lefelin .lfc-grid .lf-pcard__title {
    font-size: 13.5px;
  }
  .template-collection.lefelin .lfc-grid .lf-pcard__price {
    font-size: 16px;
  }
  .template-collection.lefelin .lfc-grid .lf-pcard__arrow {
    width: 28px;
    height: 28px;
  }
  .template-collection.lefelin .lfc-grid .lf-pcard__rnum {
    font-size: 11.5px;
  }

  /* pagination compacte */
  .lf-collection .lfc-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  .lf-collection .lfc-page-btn {
    min-width: 40px;
    height: 40px;
  }

  /* en-tête : respiration réduite */
  .lf-collection .lfc-head {
    padding-top: 34px;
  }
}

/* ───── Texte SEO de la collection (bas de page, rendu page 1 uniquement) ───── */
.lf-collection .lfc-desc {
  max-width: 820px;
  margin: 56px auto 8px;
  padding: 38px 30px 30px;
  background: var(--lfb-card);
  border: 1px solid var(--lfb-line);
  border-radius: 18px;
  color: var(--lfb-ink-2);
  font-size: 15.5px;
  line-height: 1.75;
}
.lf-collection .lfc-desc h2,
.lf-collection .lfc-desc h3 {
  font-family: var(--lfb-serif);
  font-weight: 500;
  color: var(--lfb-ink);
  line-height: 1.25;
  margin: 1.4em 0 0.55em;
}
.lf-collection .lfc-desc h2 { font-size: 26px; }
.lf-collection .lfc-desc h3 { font-size: 20px; }
.lf-collection .lfc-desc h2:first-child { margin-top: 0; }
.lf-collection .lfc-desc p { margin: 0 0 1em; }
.lf-collection .lfc-desc strong { color: var(--lfb-ink); font-weight: 600; }
.lf-collection .lfc-desc a { color: #8a5a28; text-decoration: underline; text-underline-offset: 2px; }
.lf-collection .lfc-desc ul,
.lf-collection .lfc-desc ol { margin: 0 0 1em; padding-left: 1.3em; }
.lf-collection .lfc-desc li { margin: 0 0 0.4em; }
@media (max-width: 749px) {
  .lf-collection .lfc-desc { margin-top: 38px; padding: 26px 18px 20px; font-size: 15px; }
  .lf-collection .lfc-desc h2 { font-size: 22px; }
  .lf-collection .lfc-desc h3 { font-size: 18px; }
}


/* ── Filtres par tags (lfc-filters) ─────────────────────────────── */
.lf-collection .lfc-filters {
  margin: clamp(18px, 2vw, 26px) auto 0;
  padding: 14px 18px 8px;
  border: 1px solid var(--lfb-line);
  border-radius: 16px;
  background: var(--lfb-card);
  text-align: left;
}
.lf-collection .lfc-filters-title {
  display: block;
  font-family: var(--lfb-serif);
  font-size: 1.05rem;
  color: var(--lfb-ink);
  margin-bottom: 8px;
}
.lf-collection .lfc-fgroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 6px 0;
  border-top: 1px dashed var(--lfb-line);
}
.lf-collection .lfc-fgroup-name {
  flex: 0 0 96px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lfb-muted);
}
.lf-collection .lfc-fgroup-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-collection .lfc-fpill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--lfb-line-2);
  background: var(--lfb-paper);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lfb-ink);
  transition: all 0.18s;
}
.lf-collection .lfc-fpill:hover { border-color: var(--lfc-accent); color: var(--lfc-accent-deep); }
.lf-collection .lfc-fpill.is-on { background: var(--lfc-accent); border-color: var(--lfc-accent); color: #fff; }
.lf-collection .lfc-fclear {
  display: inline-block;
  margin: 8px 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--lfc-accent-deep);
  text-decoration: underline;
}
@media (max-width: 640px) {
  .lf-collection .lfc-fgroup-name { flex-basis: 100%; }
}

/* ── Carte produit : rupture + caractéristiques ──────────────────── */
.lf-pcard__soon {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(42, 33, 23, 0.82);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.lf-pcard.is-soon .lf-pcard__img { opacity: 0.55; }
.lf-pcard__spec { font-size: 0.8rem; color: var(--lfb-muted, #8a7a63); margin-top: -4px; }

/* ── Tableau comparatif (lfc-compare) ────────────────────────────── */
.lfc-compare { padding: clamp(28px, 4vw, 56px) 0; }
.lfc-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--lfb-line); border-radius: 14px; background: var(--lfb-card); }
.lfc-compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.lfc-compare-table caption { caption-side: bottom; text-align: left; font-size: 0.8rem; color: var(--lfb-muted); padding: 10px 14px; }
.lfc-compare-table th, .lfc-compare-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--lfb-line); vertical-align: top; }
.lfc-compare-table thead th { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lfb-muted); background: var(--lfb-paper-2); }
.lfc-compare-table tbody th { font-weight: 700; color: var(--lfb-ink); }
.lfc-compare-table tbody th a { color: inherit; text-decoration: underline; text-decoration-color: var(--lfb-line-2); text-underline-offset: 3px; }
.lfc-compare-table tbody th a:hover { color: var(--lfc-accent-deep); text-decoration-color: currentColor; }
.lfc-compare-table tbody tr:last-child th, .lfc-compare-table tbody tr:last-child td { border-bottom: 0; }
.lfc-compare-price { white-space: nowrap; font-family: var(--lfb-serif); font-size: 1rem; color: var(--lfb-ink); }
.lfc-compare-note { font-size: 0.84rem; color: var(--lfb-muted); margin: 10px 0 0; }

/* ════════ Correctifs mise en page collections (29/09/2026) ════════
   Titres alignés sur la grille, typo homogène, respiration entre blocs,
   titres lisibles sur les cartes image. */

/* En-têtes Comparatif + Explorer : calés à gauche comme le reste de la page
   (avant : centrés dans 820px → retrait de ~174px par rapport au tableau). */
section.lfc-compare .lfc-sec-head,
section.lfc-compare .lfc-text,
section.lf-collection-cards .lfc-cards-head {
  margin-left: 0;
  margin-right: 0;
}
/* section.lf-collection-content{padding:0} (plus spécifique) annulait le
   padding de ces deux blocs → collés au contenu voisin. */
section.lfc-compare,
section.lf-collection-cards {
  padding: clamp(36px, 4.5vw, 56px) 0;
}
section.lfc-compare .lfc-text {
  margin-bottom: clamp(18px, 2vw, 26px);
  line-height: 1.65;
}

/* Explorer aussi : même surtitre + titre Fraunces que les autres blocs */
section.lf-collection-cards .lfc-cards-head {
  margin-bottom: clamp(12px, 1.4vw, 16px);
}
.lf-collection-cards .lfc-eyebrow {
  display: block;
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lfc-accent);
}
.lf-collection-cards .lfc-sec-head h2 {
  position: relative;
  font-family: var(--lfb-serif);
  font-weight: 400;
  color: var(--lfb-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  padding-top: 14px;
  text-wrap: balance;
}
.lf-collection-cards .lfc-sec-head h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--lfc-accent);
}
.lf-collection-cards .lfc-text {
  max-width: var(--lfc-measure);
  line-height: 1.65;
}
/* 6 cartes = 1 rangée (plus de carte orpheline sur desktop) */
@media (min-width: 1081px) {
  section.lf-collection-cards .lfc-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Sections natives (texte enrichi, cartes image, FAQ) sur les collections */
body.template-collection .m-rich-text .m-richtext {
  max-width: 880px;
}
body.template-collection .m-rich-text .m-richtext__title {
  margin-bottom: 0.6em;
}
body.template-collection .m-image-cards .m-section__header {
  max-width: 880px;
}
body.template-collection .m-image-cards .m-section-py {
  padding-bottom: max(var(--section-padding-bottom, 0px), 40px);
}
body.template-collection .m-rich-text .m-section-py {
  padding-top: max(var(--section-padding-top, 0px), 24px);
}
body.template-collection .m-collapsible-tabs .m-section-py,
body.template-collection [id*="collapsible"] .m-section-py {
  padding-top: max(var(--section-padding-top, 0px), 24px);
}

/* Titres sur les cartes image : taille raisonnable + voile pour la lisibilité */
body.template-collection .m-image-cards .m-image-card__inner {
  position: relative;
}
body.template-collection .m-image-cards .m-image-card__img::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(28, 18, 6, 0.62));
  pointer-events: none;
  border-radius: inherit;
}
body.template-collection .m-image-cards .m-image-card__heading {
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.15;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}
