/* homefacetsearch v3 (2026-11-02) — home finder, category filters, product back link. */
.hfs3, .hfs-filter, .hfs-back {
  --hfs-ink: #1d2427; --hfs-muted: #5c6870; --hfs-line: #dfe6e8; --hfs-soft: #f3f6f7;
  --hfs-teal: #147886; --hfs-deep: #0f5f6b; --hfs-hover: #0b4952; --hfs-tint: #eaf6f8; --hfs-accent: #1ba5b8;
  font-family: Rubik, "Noto Sans", sans-serif; color: var(--hfs-ink);
}
.hfs3 .sr-only, .hfs-filter .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Home finder ---------- */
.hfs3 { margin: 18px 0; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(12,38,44,.06), 0 10px 28px rgba(12,38,44,.06); padding: 20px 26px 18px; }
.hfs3-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hfs3-title { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.01em; text-transform: none; color: var(--hfs-ink); }
.hfs3-modes { margin-left: auto; display: flex; gap: 2px; padding: 3px; background: #eef2f3; border-radius: 10px; }
.hfs3-modes button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: #3d4a50; cursor: pointer; }
.hfs3-modes button:hover { color: var(--hfs-teal); }
.hfs3-modes button[aria-selected=true] { background: #fff; color: var(--hfs-deep); box-shadow: 0 1px 2px rgba(12,38,44,.12); }
.hfs3-modes button:focus-visible, .hfs3-cta:focus-visible, .hfs3-fld:focus-visible { outline: 2px solid var(--hfs-accent); outline-offset: 2px; }
.hfs3-pane[hidden] { display: none; }
.hfs3-row { display: flex; align-items: center; gap: 20px; }
.hfs3-sentence { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hfs3-part { display: contents; }
.hfs3-part[hidden] { display: none; }
.hfs3-say { font-size: 18px; color: #3d4a50; white-space: nowrap; }
.hfs3-fld { height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid #cfd8db; border-radius: 9px; background: #f7fafb; font: inherit; font-size: 17px; font-weight: 500; color: var(--hfs-deep); max-width: 100%; }
.hfs3-fld:focus { border-color: var(--hfs-accent); background: #fff; box-shadow: 0 0 0 3px rgba(27,165,184,.18); outline: none; }
.hfs3-fld::placeholder { color: #8a979c; font-weight: 400; }
select.hfs3-fld { padding-right: 30px; }
.hfs3-num { width: 104px; text-align: center; }
.hfs3-num--s { width: 72px; }
.hfs3-num--l { width: 150px; }
.hfs3-tol { font-size: 15px; }
.hfs3-ref { flex: 1; height: 50px; background: #fff; color: var(--hfs-ink); font-weight: 400; }
.hfs3-cta { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--hfs-deep); color: #fff !important; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.hfs3-cta:hover { background: var(--hfs-hover); }
.hfs3-cta.is-loading { opacity: .75; }
.hfs3-status { margin: 12px 0 0; font-size: 13.5px; color: var(--hfs-muted); line-height: 1.5; }
.hfs3-status b { color: var(--hfs-ink); font-weight: 500; }
.hfs3-status a { color: var(--hfs-teal); font-weight: 500; }
.hfs3-hint { color: var(--hfs-muted); }
.hfs3-ex { border: 0; background: #eef2f3; border-radius: 999px; height: 30px; padding: 0 12px; margin: 0 2px; font: inherit; font-size: 13px; color: var(--hfs-ink); cursor: pointer; }
.hfs3-ex:hover { background: #dff0f3; color: var(--hfs-deep); }
@media (max-width: 991px) {
  .hfs3 { padding: 18px 16px 16px; border-radius: 12px; }
  .hfs3-head { margin-bottom: 14px; }
  .hfs3-title { font-size: 19px; }
  .hfs3-modes { margin-left: 0; width: 100%; }
  .hfs3-modes button { flex: 1; padding: 0 6px; height: 40px; }
  .hfs3-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .hfs3-sentence { gap: 8px; }
  .hfs3-say { font-size: 15px; }
  .hfs3-fld { height: 48px; font-size: 16px; }
  select.hfs3-fld { width: 100%; }
  .hfs3-num { width: 110px; }
  .hfs3-cta { justify-content: center; height: 52px; }
}

/* ---------- Category filter panel ---------- */
.hfs-filter { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(12,38,44,.06); margin-bottom: 20px; position: relative; }
.hfs-filter.is-loading .hfs-filter-sheet { opacity: .6; pointer-events: none; transition: opacity .15s; }
.hfs-filter-open { display: none; }
.hfs-filter-sheet { padding: 18px 18px 8px; }
.hfs-filter-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; }
.hfs-filter-title { font-size: 17px; font-weight: 500; }
.hfs-filter-title small { font-size: 13px; color: var(--hfs-muted); font-weight: 400; margin-left: 4px; }
.hfs-clear { margin-left: auto; font-size: 13px; color: var(--hfs-teal) !important; }
.hfs-filter-close, .hfs-filter-foot { display: none; }
.hfs-pills { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
.hfs-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px 4px 12px; border-radius: 999px; background: var(--hfs-tint); color: var(--hfs-deep) !important; font-size: 13px; font-weight: 500; text-decoration: none !important; line-height: 1.3; }
.hfs-pill:hover { background: #cfeef3; }
.hfs-group { padding: 16px 0; border-top: 1px solid #eef2f3; }
.hfs-group-title { font-size: 14px; font-weight: 500; margin: 0 0 10px; color: var(--hfs-ink); }
.hfs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hfs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 11px; border: 1px solid #cfd8db; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--hfs-ink) !important; text-decoration: none !important; line-height: 1.25; }
.hfs-chip small { font-size: 12px; font-weight: 400; color: var(--hfs-muted); }
a.hfs-chip:hover { border-color: var(--hfs-accent); color: var(--hfs-deep) !important; }
.hfs-chip.is-on { background: var(--hfs-deep); border-color: var(--hfs-deep); color: #fff !important; }
.hfs-chip.is-on small { color: #cfeef3; }
.hfs-chip.is-zero { color: #9aa6ab !important; border-style: dashed; }
.hfs-chip.is-extra { display: none; }
.hfs-group.show-all .hfs-chip.is-extra { display: inline-flex; }
.hfs-more { border: 0; background: none; padding: 10px 0 0; font: inherit; font-size: 13px; color: var(--hfs-teal); cursor: pointer; }
.hfs-num-row { display: flex; gap: 6px; }
.hfs-num-row input { flex: 1; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 12px; border: 1px solid #cfd8db; border-radius: 9px; font: inherit; font-size: 15px; color: var(--hfs-ink); background: #fff; }
.hfs-num-row input:focus { border-color: var(--hfs-accent); box-shadow: 0 0 0 3px rgba(27,165,184,.18); outline: none; }
.hfs-num-go { width: 42px; height: 42px; flex: none; border: 0; border-radius: 9px; background: var(--hfs-deep); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hfs-num-go:hover { background: var(--hfs-hover); }
.hfs-tol { display: flex; gap: 2px; padding: 3px; background: #eef2f3; border-radius: 8px; margin-top: 8px; }
.hfs-seg { flex: 1; height: 32px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: #3d4a50; cursor: pointer; }
.hfs-seg.is-on { background: #fff; color: var(--hfs-deep); box-shadow: 0 1px 2px rgba(12,38,44,.12); }
.hfs-range { display: block; margin-top: 8px; font-size: 12.5px; color: var(--hfs-muted); line-height: 1.45; }
.hfs-mini { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--hfs-teal) !important; }
.hfs-common { padding: 14px 0 10px; border-top: 1px solid #eef2f3; font-size: 13px; color: var(--hfs-muted); line-height: 1.6; }
.hfs-common b { display: block; color: var(--hfs-ink); font-weight: 500; }
.hfs-common span + span:before { content: " · "; }

@media (max-width: 991px) {
  .hfs-filter { background: transparent; box-shadow: none; margin: 0 0 12px; }
  .hfs-filter-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 1px solid var(--hfs-teal); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--hfs-deep); cursor: pointer; }
  .hfs-filter-open-total { color: var(--hfs-muted); font-weight: 400; font-size: 14px; }
  .hfs-filter-open-total:before { content: "· "; }
  .hfs-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hfs-deep); color: #fff; font-size: 12px; align-items: center; justify-content: center; }
  .hfs-filter-sheet { display: none; }
  .hfs-filter.is-open .hfs-filter-sheet { display: flex; flex-direction: column; position: fixed; z-index: 2000; left: 0; right: 0; bottom: 0; max-height: 86vh; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(12,38,44,.25); padding: 0; }
  .hfs-filter.is-open:before { content: ""; position: fixed; inset: 0; z-index: 1999; background: rgba(18,32,36,.45); }
  .hfs-filter.is-open .hfs-filter-head { padding: 14px 8px 12px 20px; border-bottom: 1px solid #eef2f3; align-items: center; }
  .hfs-filter.is-open .hfs-filter-close { display: flex; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; color: var(--hfs-ink); cursor: pointer; }
  .hfs-filter.is-open .hfs-clear { margin-left: auto; }
  .hfs-filter.is-open .hfs-pills, .hfs-filter.is-open .hfs-group, .hfs-filter.is-open .hfs-common { padding-left: 20px; padding-right: 20px; }
  .hfs-filter.is-open .hfs-pills { padding-top: 12px; }
  .hfs-filter.is-open .hfs-filter-sheet > .hfs-group:first-of-type { border-top: 0; }
  .hfs-filter.is-open .hfs-filter-sheet { overflow-y: auto; }
  .hfs-filter.is-open .hfs-filter-foot { display: block; position: sticky; bottom: 0; padding: 12px 16px 16px; background: #fff; border-top: 1px solid #eef2f3; margin-top: auto; }
  .hfs-filter-apply { width: 100%; height: 52px; border: 0; border-radius: 11px; background: var(--hfs-deep); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
  .hfs-chip { min-height: 40px; font-size: 14.5px; padding: 4px 14px; }
  body.hfs-lock { overflow: hidden; }
}

.hfs-dyn { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--hfs-deep); line-height: 1.45; }
.hfs-dyn:before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--hfs-accent); }

/* "Coupé sur mesure" product flag (made-to-measure / dynamicproduct) */
.product-flag .sur-mesure { position: absolute; left: 15px; bottom: 10px; z-index: 2; display: inline-block; padding: 0 12px; border-radius: 10px; background: #0f5f6b; color: #fff; font-size: 12px; font-weight: 500; line-height: 22px; white-space: nowrap; list-style: none; }
.product-flag .sur-mesure span { color: #fff; }
.product-flags .sur-mesure { display: inline-block; margin: 6px 0; padding: 2px 12px; border-radius: 10px; background: #0f5f6b; color: #fff; font-size: 13px; font-weight: 500; list-style: none; }

/* ---------- Product page back link ---------- */
.hfs-back { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; padding: 10px 14px; background: var(--hfs-tint); border-radius: 10px; font-size: 14px; }
.hfs-back a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--hfs-deep) !important; text-decoration: none !important; }
.hfs-back a:hover { color: var(--hfs-hover) !important; text-decoration: underline !important; }
.hfs-back span { color: var(--hfs-muted); }

/* v3.1.0 header-search notice (category page reached from the search bar) */
#notifications .alert-info a { color: #0a6e66; font-weight: 600; text-decoration: underline; }
#notifications .alert-info a:hover { color: #232323; }
