/* =============================================================================
   Accueil marketplace (index.php) — design system 2026-11, jetons de dah-2026.css.
   Recherche sous le Hero · bandeau de confiance · collections · partenaires · charte · espace pro.
   ============================================================================= */

body.dh-home { background: var(--dh-paper) !important; }
.dh-home .hs-kicker { color: var(--dh-sand); }

/* ---------- Moteur de recherche : carte qui chevauche le bas du Hero ---------- */
/* Le Hero garde sa mise en page : on lui ajoute seulement la place que la carte de recherche recouvre. */
.hx-in { padding-bottom: calc(clamp(24px, 4vh, 40px) + 60px); }
@media (max-width: 600px) { .hx-in { padding-bottom: 28px; } }
.hm-search-wrap { position: relative; z-index: 3; width: var(--dh-wrap); margin: -56px auto 0; }
.hm-search { background: #fff; border-radius: var(--dh-radius-lg); box-shadow: 0 24px 60px -20px rgba(16,63,53,.28), 0 2px 6px rgba(16,63,53,.06);
  padding: 20px clamp(16px, 2.4vw, 28px) 16px; border: 1px solid var(--dh-line); }
.hm-search-t { font-size: clamp(20px, 2vw, 26px); margin: 0 0 12px; color: var(--dh-brand-deep); }
.hm-tabs { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0 0 14px; padding: 0; }
.hm-tab { position: relative; cursor: pointer; }
.hm-tab input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hm-tab span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: 14.5px;
  color: var(--dh-text); background: var(--dh-paper); box-shadow: inset 0 0 0 1px var(--dh-line); transition: background var(--dh-ease), color var(--dh-ease); }
.hm-tab span small { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(16,63,53,.08); }
.hm-tab input:checked + span { background: var(--dh-brand-deep); color: #fff; box-shadow: none; }
.hm-tab input:checked + span small { background: rgba(255,255,255,.18); }
.hm-tab input:focus-visible + span { outline: 2px solid var(--dh-brand); outline-offset: 2px; }
.hm-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.hm-f { display: grid; gap: 5px; min-width: 0; }
.hm-f[hidden] { display: none; }
.hm-f label { font-size: 12.5px; font-weight: 700; color: var(--dh-text); }
.hm-f select, .hm-f input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; border: 1px solid var(--dh-line); border-radius: var(--dh-radius-md);
  background: #fff; color: var(--dh-text); font: inherit; font-size: 15px; }
.hm-f select:focus, .hm-f input:focus { outline: none; border-color: var(--dh-brand); box-shadow: 0 0 0 3px rgba(33,107,85,.18); }
.hm-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--dh-radius-md);
  background: var(--dh-brand-deep); color: #fff; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background var(--dh-ease); }
.hm-go:hover { background: var(--dh-brand); }
.hm-more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 13.5px; }
.hm-more a { color: var(--dh-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(33,107,85,.35); }
.hm-more a:hover { text-decoration-color: currentColor; }

/* ---------- Bandeau de confiance ---------- */
.hm-trust { width: var(--dh-wrap); margin: clamp(28px, 4vw, 44px) auto 0; }
.hm-trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-trust li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.hm-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--dh-brand-deep);
  box-shadow: inset 0 0 0 1px var(--dh-gold); }
.hm-trust b { display: block; font-size: 15px; color: var(--dh-text); margin-bottom: 3px; }
.hm-trust span { font-size: 13.5px; line-height: 1.5; color: var(--dh-muted); }

/* ---------- Collections ---------- */
.hm-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.hm-col { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--dh-line); border-radius: var(--dh-radius-lg); overflow: hidden;
  color: var(--dh-text); text-decoration: none; box-shadow: var(--dh-shadow-card); transition: transform var(--dh-ease), box-shadow var(--dh-ease); }
.hm-col figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dh-sand-soft); }
.hm-col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-col-b { display: grid; gap: 4px; padding: 16px 18px 18px; }
.hm-col-b b { font-family: var(--dh-serif); font-weight: 500; font-size: 22px; line-height: 1.15; color: var(--dh-brand-deep); }
.hm-col-b small { color: var(--dh-muted); font-size: 14px; line-height: 1.45; }
.hm-col-b em { font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--dh-brand); margin-top: 6px; }

/* ---------- Partenaires ---------- */
.hm-orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-org { display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; padding: 24px; border-radius: var(--dh-radius-lg); background: #fff;
  border: 1px solid var(--dh-line); color: var(--dh-text); text-decoration: none; box-shadow: var(--dh-shadow-card); transition: transform var(--dh-ease), box-shadow var(--dh-ease); }
.hm-org b { font-family: var(--dh-serif); font-weight: 500; font-size: 24px; color: var(--dh-brand-deep); }
.hm-org span { color: var(--dh-muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.hm-org em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--dh-brand); }

@media (hover: hover) {
  .hm-col:hover, .hm-org:hover { transform: translateY(-4px); box-shadow: var(--dh-shadow-hover); }
}

/* ---------- Charte éthique ---------- */
.hm-charte { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding: clamp(24px, 4vw, 48px);
  border-radius: var(--dh-radius-lg); background: var(--dh-sand-soft); }
.hm-charte-l { list-style: none; counter-reset: ch; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-charte-l li { counter-increment: ch; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--dh-radius-md); background: #fff;
  font-weight: 600; font-size: 14.5px; color: var(--dh-text); }
.hm-charte-l li::before { content: counter(ch, decimal-leading-zero); font-family: var(--dh-serif); font-size: 18px; color: var(--dh-sand); min-width: 26px; }

/* ---------- Espace professionnel ---------- */
.hm-pro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); padding: clamp(28px, 4.5vw, 56px); border-radius: var(--dh-radius-lg);
  background: var(--dh-brand-deep); color: #fff; }
.hm-pro h2 { color: #fff; }
.hm-pro .hs-kicker { color: var(--dh-gold); }
.hm-pro .hs-sub { color: rgba(255,255,255,.78); }
.hm-pro-l { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.hm-pro-l li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; color: rgba(255,255,255,.92); }
.hm-pro-l li svg { flex-shrink: 0; margin-top: 2px; color: var(--dh-gold); }
.hm-pro-vis { margin: 22px 0 0; padding: 16px 18px; border-radius: var(--dh-radius-md); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(197,163,106,.45); }
.hm-pro-vis b { display: block; color: var(--dh-gold); font-size: 15px; margin-bottom: 4px; }
.hm-pro-vis p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.86); }
.hm-pro-vis a { color: #fff; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dh-gold); }
.hm-pro-go { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hm-pro-go > a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 16px 18px; border-radius: var(--dh-radius-md);
  background: #fff; color: var(--dh-text); text-decoration: none; transition: transform var(--dh-ease); }
.hm-pro-go > a b { font-size: 16px; }
.hm-pro-go > a small { grid-column: 1; color: var(--dh-muted); font-size: 13px; }
.hm-pro-go > a svg { grid-row: 1 / span 2; grid-column: 2; color: var(--dh-brand); }
.hm-pro-go > a:hover { transform: translateX(3px); }
.hm-pro-go p { margin: 4px 0 0; }
.hm-pro-more { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dh-gold); }
.hm-pro :focus-visible { outline-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hm-trust ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hm-charte, .hm-pro { grid-template-columns: 1fr; }
  .hm-orgs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hm-search-wrap { margin-top: 16px; }
  .hm-search { padding: 16px 14px 14px; }
  .hm-fields { grid-template-columns: 1fr; }
  .hm-trust ul, .hm-charte-l, .hm-pro-l { grid-template-columns: 1fr; }
  .hm-tab span { padding: 8px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-col, .hm-org, .hm-pro-go > a { transition: none; }
  .hm-col:hover, .hm-org:hover, .hm-pro-go > a:hover { transform: none; }
}
