/* LMDD – pages catalogue (boutique, catégories). Chargée uniquement sur ces pages. Couleurs du logo : vert #035C11, rouge #C80C25. */
:root {
  --lmdd-green: #035C11; --lmdd-green-h: #024A0E; --lmdd-green-t: #1F7A2C; --lmdd-red: #C80C25; --lmdd-red-h: #A50A1E;
  --lmdd-tint: #F5F8F4; --lmdd-green-bg: #EDF6EE; --lmdd-line: #DFE7E0; --lmdd-text: #1B261D; --lmdd-muted: #56625A;
}
.lmdd-i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Fil d'Ariane */
.lmdd-bc { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; font-size: 13.5px; color: var(--lmdd-muted); }
.lmdd-bc a { color: var(--lmdd-muted); text-decoration: none; }
.lmdd-bc a:hover { color: var(--lmdd-green); text-decoration: underline; }
.lmdd-bc__sep { color: #A7B3A9; }

/* En-tête de catégorie */
.lmdd-cath.lmdd-cath { max-width: 860px; margin: 0; }
.lmdd-cath .lmdd-cath__title { margin: 0 0 14px; color: var(--lmdd-green); font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; }
.lmdd-cath .lmdd-cath__intro { margin: 0 0 16px; color: var(--lmdd-text); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }
.lmdd-cath__intro a { color: var(--lmdd-green); }
.lmdd-cath .lmdd-cath__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; font-size: 14.5px; color: var(--lmdd-muted); }
.lmdd-cath__count { font-weight: 700; color: var(--lmdd-green-t); }
.lmdd-cath__more { color: var(--lmdd-green); font-weight: 600; }

/* Raccourcis de catégories */
.lmdd-chips ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lmdd-chips li { margin: 0; }
.lmdd-chip.lmdd-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--lmdd-line); border-radius: 999px; background: #fff; color: var(--lmdd-text); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.lmdd-chip span { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--lmdd-green-bg); color: var(--lmdd-green-t); font-size: 12.5px; text-align: center; }
.lmdd-chip.lmdd-chip:hover { border-color: var(--lmdd-green); color: var(--lmdd-green); }
.lmdd-chip.lmdd-chip.is-on { border-color: var(--lmdd-green); background: var(--lmdd-green); color: #fff; }
.lmdd-chip.is-on span { background: rgba(255, 255, 255, .2); color: #fff; }

/* Barre au-dessus des produits */
.lmdd-shop__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.lmdd-shop__bar .woocommerce-result-count { margin: 0; float: none; color: var(--lmdd-muted); font-size: 14.5px; }
.lmdd-shop__bar .woocommerce-ordering { margin: 0; float: none; }
.lmdd-shop__bar .woocommerce-ordering select { min-height: 44px; padding: 8px 40px 8px 14px; border: 1px solid var(--lmdd-line); border-radius: 10px; background-color: #fff; color: var(--lmdd-text); font-size: 15px; }

/* Grille */
.lmdd-grid.lmdd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; margin: 0; padding: 0; list-style: none; }
.lmdd-card.lmdd-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--lmdd-line); border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.lmdd-card:hover { border-color: #C9D7CB; box-shadow: 0 14px 34px -18px rgba(1, 46, 8, .35); transform: translateY(-2px); }
.lmdd-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--lmdd-tint); }
.lmdd-card .lmdd-card__img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.lmdd-card__badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.lmdd-card__badge--devis { background: #FDF0D5; color: #8A4B00; }
.lmdd-card__badge--promo { background: var(--lmdd-red); color: #fff; }
.lmdd-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 16px 18px; }
.lmdd-card .lmdd-card__brand { margin: 0; color: var(--lmdd-green-t); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.lmdd-card .lmdd-card__title { display: -webkit-box; margin: 0; overflow: hidden; color: var(--lmdd-text); font-size: 16px; font-weight: 700; line-height: 1.35; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.lmdd-card__title a { color: inherit; text-decoration: none; }
/* Toute la carte est cliquable (le lien du titre la recouvre). */
.lmdd-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lmdd-card__title a:focus-visible { outline: none; }
.lmdd-card:focus-within { outline: 3px solid var(--lmdd-green); outline-offset: 2px; }
.lmdd-card .lmdd-card__rating { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--lmdd-muted); font-size: 12.5px; }
.lmdd-stars { position: relative; display: inline-block; width: 76px; height: 14px; background: linear-gradient(90deg, #E8A91B var(--r), #D9DED9 var(--r)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 14'%3E%3Cpath d='M7 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8L7 10.8 2.7 13.2l.9-4.8L0 5.1l4.9-.6zm15.5 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8-4.3-2.4-4.3 2.4.9-4.8-3.6-3.3 4.9-.6zm15.5 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8-4.3-2.4-4.3 2.4.9-4.8-3.6-3.3 4.9-.6zm15.5 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8-4.3-2.4-4.3 2.4.9-4.8-3.6-3.3 4.9-.6zM69 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8L69 10.8l-4.3 2.4.9-4.8L62 5.1l4.9-.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 14'%3E%3Cpath d='M7 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8L7 10.8 2.7 13.2l.9-4.8L0 5.1l4.9-.6zm15.5 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8-4.3-2.4-4.3 2.4.9-4.8-3.6-3.3 4.9-.6zm15.5 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8-4.3-2.4-4.3 2.4.9-4.8-3.6-3.3 4.9-.6zm15.5 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8-4.3-2.4-4.3 2.4.9-4.8-3.6-3.3 4.9-.6zM69 0l2.1 4.5 4.9.6-3.6 3.3.9 4.8L69 10.8l-4.3 2.4.9-4.8L62 5.1l4.9-.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lmdd-card .lmdd-card__price { margin: auto 0 0; padding-top: 6px; color: var(--lmdd-green); font-size: 18px; font-weight: 800; line-height: 1.3; }
.lmdd-card__price del { margin-right: 6px; color: var(--lmdd-muted); font-size: 14px; font-weight: 500; }
.lmdd-card__price ins { text-decoration: none; }
.lmdd-card .lmdd-card__price--devis { color: #8A4B00; font-size: 16px; }
.lmdd-card__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--lmdd-green); font-size: 14.5px; font-weight: 700; }
.lmdd-card__cta .lmdd-i { width: 1em; height: 1em; transition: transform .2s; }
.lmdd-card:hover .lmdd-card__cta .lmdd-i { transform: translateX(3px); }

/* Produits liés (fiche produit) */
.lmdd-related .lmdd-related__title { margin: 0 0 22px; color: var(--lmdd-green); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -.3px; }
.lmdd-related .lmdd-card__title { font-size: 15px; }

/* Pagination */
.lmdd-shop .woocommerce-pagination { margin: 36px 0 0; text-align: center; }
.lmdd-shop .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 6px; margin: 0; padding: 0; border: 0; }
.lmdd-shop .woocommerce-pagination ul.page-numbers li { border: 0; }
.lmdd-shop .woocommerce-pagination .page-numbers a, .lmdd-shop .woocommerce-pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--lmdd-line); border-radius: 10px; background: #fff; color: var(--lmdd-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.lmdd-shop .woocommerce-pagination .page-numbers a:hover { border-color: var(--lmdd-green); color: var(--lmdd-green); background: #fff; }
.lmdd-shop .woocommerce-pagination .page-numbers span.current { border-color: var(--lmdd-green); background: var(--lmdd-green); color: #fff; }
.lmdd-shop__empty { padding: 40px; border: 1px dashed var(--lmdd-line); border-radius: 16px; text-align: center; color: var(--lmdd-muted); }

/* Présentation complète de la catégorie : texte d'origine, mis en forme pour la lecture. */
.lmdd-catdesc { max-width: 820px; margin: 0 auto; scroll-margin-top: 120px; }
.lmdd-catdesc .lmdd-catdesc__eyebrow { margin: 0 0 18px; color: var(--lmdd-green-t); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.lmdd-catdesc__text { color: var(--lmdd-text); font-size: 17px; line-height: 1.7; }
.lmdd-catdesc__text > * { margin: 0 0 18px; }
.lmdd-catdesc__text h2, .lmdd-catdesc__text h3, .lmdd-catdesc__text h4 { margin: 0 0 16px; color: var(--lmdd-text); font-size: 19px; font-weight: 500; line-height: 1.6; letter-spacing: 0; }
.lmdd-catdesc__text h2 strong, .lmdd-catdesc__text h3 strong, .lmdd-catdesc__text h4 strong { color: var(--lmdd-green); font-weight: 700; }
/* Les descriptions d'origine enchaînent des phrases en titres : une bordure les regroupe en points clés lisibles. */
.lmdd-catdesc__text > h2 { padding-left: 18px; border-left: 3px solid var(--lmdd-green-bg); }
.lmdd-catdesc__text h2:first-child, .lmdd-catdesc__text h3:first-child, .lmdd-catdesc__text h4:first-child { margin-top: 0; }
.lmdd-catdesc__text strong { color: var(--lmdd-green-h); }
.lmdd-catdesc__text a { color: var(--lmdd-green); text-decoration: underline; text-underline-offset: 2px; }
.lmdd-catdesc__text img { max-width: 100%; height: auto; border-radius: 12px; }
.lmdd-catdesc__text ul, .lmdd-catdesc__text ol { padding-left: 22px; }

@media (max-width: 1024px) {
  .lmdd-grid.lmdd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
}
@media (max-width: 767px) {
  .lmdd-grid.lmdd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .lmdd-card__body { padding: 12px 12px 14px; gap: 4px; }
  .lmdd-card .lmdd-card__title { font-size: 14.5px; }
  .lmdd-card .lmdd-card__price { font-size: 16px; }
  .lmdd-card__price del { display: block; margin: 0; font-size: 12.5px; }
  .lmdd-card__cta { display: none; }
  .lmdd-card__badge { top: 8px; left: 8px; font-size: 11.5px; }
  .lmdd-chips ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .lmdd-chips ul::-webkit-scrollbar { display: none; }
  .lmdd-chip.lmdd-chip { white-space: nowrap; font-size: 14px; }
  .lmdd-shop__bar { flex-wrap: nowrap; margin-bottom: 16px; }
  .lmdd-shop__bar .woocommerce-result-count { font-size: 13px; }
  .lmdd-shop__bar .woocommerce-ordering select { max-width: 52vw; min-height: 40px; font-size: 14px; }
  .lmdd-cath .lmdd-cath__intro { font-size: 16.5px; }
  .lmdd-catdesc__text { font-size: 16px; }
  .lmdd-catdesc__text h2, .lmdd-catdesc__text h3, .lmdd-catdesc__text h4 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .lmdd-card, .lmdd-card__cta .lmdd-i { transition: none; }
  .lmdd-card:hover { transform: none; }
}
