/* Page « Ils cherchent dans le secteur » (maquettes Recherches-v1 et Recherches-mobile-v1, 17/10/2026). Le commun
   (en-tête, barre de filtres, carte, bande charbon) est dans biens-commun.css. */

.dbh-rc-tete-bt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin: 18px 0 0; }
.dbh-rc-tete-bt .dbh-lien { font-size: 15px; }

/* ── Carte des secteurs (colonne collante) et fiches de recherche ───────── */
.dbh-rc-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; padding-top: 34px; }
.dbh-rc-carte-col { position: sticky; top: calc(var(--dbh-haut, 0px) + 84px); }
.dbh-rc-carte { aspect-ratio: 5 / 4.4; }
.dbh-rc-fermer-carte { display: none !important; }
.dbh-rc-top { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--dbh-trait2); }
.dbh-rc-top:empty { display: none; }
.dbh-rc-top-t { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--dbh-encre); }
.dbh-rc-top-l { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 100px; gap: 12px; align-items: center; padding: 5px 0; font-size: 14px; }
.dbh-rc-top-l > span:first-child { color: var(--dbh-texte); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbh-rc-top-l > span:last-child { font-size: 13px; color: var(--dbh-gris); text-align: right; }
.dbh-barre-c { height: 6px; border-radius: 999px; background: var(--dbh-trait2); overflow: hidden; }
.dbh-barre-c i { display: block; height: 100%; background: var(--dbh-action); border-radius: 999px; }
.dbh-rc-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dbh-rech { display: flex; flex-direction: column; padding: 22px 22px 18px; background: #fff; border: 1px solid #E4E6E7; border-radius: 4px; transition: border-color .3s, box-shadow .4s; }
.dbh-rech:hover { border-color: var(--dbh-trait); box-shadow: 0 18px 40px rgba(23,25,27,.08); }
.dbh-rech-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.dbh-rech-type { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--dbh-gris); }
.dbh-rech-type .dbh-ic { color: var(--dbh-action); }
.dbh-rech-ref { font-size: 12px; font-weight: 600; color: #A9AEB2; }
.dbh-s h2.dbh-rech-t, .dbh-rech-t { margin: 0 0 14px; font-family: var(--dbh-titre); font-weight: 360; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; color: var(--dbh-encre); text-transform: none; }
.dbh-rl { display: grid; grid-template-columns: 22px 70px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; margin: 0; padding: 9px 0; border-top: 1px solid var(--dbh-trait2); font-size: 15px; }
.dbh-rl .dbh-ic { color: var(--dbh-gris2); align-self: center; }
.dbh-rl span { font-size: 13px; font-weight: 600; color: var(--dbh-gris2); }
.dbh-rl b { font-weight: 700; color: var(--dbh-encre); }
.dbh-rl small { grid-column: 3; display: block; font-size: 12px; color: var(--dbh-gris2); line-height: 1.4; }
.dbh-rech-crit { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 2px; border-top: 1px solid var(--dbh-trait2); }
.dbh-rech-crit span { display: inline-flex; align-items: center; padding: 3px 9px; background: #F7F7F6; border: 1px solid #E4E6E7; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--dbh-texte); }
.dbh-rech-pied { margin-top: auto; padding-top: 14px; }
.dbh-jai { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 46px; padding: 0 14px; background: #fff; border: 1px solid var(--dbh-encre); border-radius: 4px; font-size: 15px; font-weight: 700;
  color: var(--dbh-encre) !important; text-decoration: none !important; box-sizing: border-box; transition: background .3s, color .3s; }
.dbh-jai:hover { background: var(--dbh-encre); color: #fff !important; }
.dbh-rc-aucun { margin-top: 0; padding: 44px 40px; background: #F7F7F6; border-radius: 4px; }
.dbh-rc > .dbh-rc-aucun { margin-top: 34px; }

/* ── Comment ça se passe ────────────────────────────────────────────────── */
.dbh-rc-comment .uk-container { padding-top: 0; padding-bottom: 68px; }
.dbh-s.dbh-rc-comment .dbh-rc-comment-g { margin-left: 0; padding: 56px 64px; background: var(--dbh-mineral); border-radius: 4px; }
.dbh-s.dbh-rc-comment .dbh-rc-comment-g > * { padding-left: 0; }
.dbh-s.dbh-rc-comment .dbh-rc-comment-g > * + * { padding-left: 64px; }
.dbh-s.dbh-rc-comment .dbh-t { font-size: clamp(30px, 2.9vw, 40px); margin-bottom: 16px; }
.dbh-rc-etape { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--dbh-trait); }
.dbh-rc-etape.is-derniere { border-bottom: 1px solid var(--dbh-trait); }
.dbh-rc-etape p { margin: 0; }
.dbh-rc-etape strong { color: var(--dbh-encre); }
.dbh-rc-n { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--dbh-action); font-family: var(--dbh-titre); font-weight: 300; font-size: 20px; color: var(--dbh-action); box-sizing: border-box; }

/* ── « Vous avez ce bien ? » : en bas de page sans script, dans une fenêtre avec ── */
.dbh-rc-form { max-width: 620px; margin: 72px auto 0; padding: 30px 32px 28px; background: #fff; border: 1px solid #E4E6E7; border-radius: 4px; box-sizing: border-box; }
.dbh-rc-dialog { width: min(620px, calc(100% - 40px)); max-width: none; max-height: calc(100% - 60px); padding: 0; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 30px 80px rgba(23,25,27,.3); overflow-y: auto; color: var(--dbh-texte); font-family: Manrope, Arial, sans-serif; }
.dbh-rc-dialog::backdrop { background: rgba(23,25,27,.55); }
.dbh-rc-dialog[open] { animation: dbh-fondu .3s ease both; }
.dbh-rc-form.is-fenetre { margin: 0; border: 0; max-width: none; }
.dbh-rc-form-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.dbh-rc-form .dbh-k { margin: 0 0 2px; font-family: var(--dbh-script); font-size: 24px; line-height: 1.1; color: var(--dbh-action); }
.dbh-rc-form h2.dbh-t, .dbh-rc-form .dbh-t { margin: 0; font-family: var(--dbh-titre); font-weight: 360; font-size: 30px; line-height: 1.06; letter-spacing: -.02em; color: var(--dbh-encre); }
.dbh-pr-rappel { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 12px 14px; background: #F7F7F6; border-left: 2px solid var(--dbh-action); border-radius: 4px; font-size: 14px; line-height: 1.45; }
.dbh-pr-rappel strong { color: var(--dbh-encre); }
.dbh-pr-rappel [data-rappel-s] { color: var(--dbh-gris); }
.dbh-pr-intro { margin: 0 0 16px; font-size: 15px; }
.dbh-pr-lib { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--dbh-encre); }
.dbh-pr-types .wpcf7-radio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.dbh-pr-types .wpcf7-list-item { margin: 0; }
.dbh-pr-types label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 70px; padding: 8px 4px; background: #fff; border: 1px solid var(--dbh-trait); border-radius: 4px;
  font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--dbh-texte); text-align: center; cursor: pointer; transition: border-color .25s, box-shadow .25s, background .25s; box-sizing: border-box; }
.dbh-pr-types label .dbh-ic { color: var(--dbh-gris2); }
.dbh-pr-types label:hover { border-color: var(--dbh-encre); }
.dbh-pr-types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dbh-pr-types .is-on label, .dbh-pr-types label:has(input:checked) { border-color: var(--dbh-action); box-shadow: inset 0 0 0 1px var(--dbh-action); background: #FDF8F6; color: var(--dbh-encre); }
.dbh-pr-types .is-on .dbh-ic, .dbh-pr-types label:has(input:checked) .dbh-ic { color: var(--dbh-action); }
.dbh-pr-types label:has(input:focus-visible) { outline: 2px solid var(--dbh-action); outline-offset: 2px; }
.dbh-pr-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 12px; }

@media (max-width: 959px) {
  .dbh-rc-tete-bt { flex-direction: column; align-items: stretch; gap: 6px; }
  .dbh-rc-tete-bt .dbh-bouton { justify-content: space-between; }
  .dbh-rc-g { display: block; padding-top: 12px; }
  .dbh-rc-carte-col { display: none; }
  .dbh-rc.is-carte-m .dbh-rc-carte-col { position: fixed; inset: 0; z-index: 9980; display: flex; flex-direction: column; padding: 0; background: #fff; animation: dbh-fondu .3s ease both; }
  .dbh-rc.is-carte-m .dbh-rc-carte { flex: 1; aspect-ratio: auto; border: 0; border-radius: 0; }
  .dbh-rc.is-carte-m .dbh-rc-fermer-carte { display: inline-flex !important; position: absolute; right: 12px; top: 12px; z-index: 5; box-shadow: 0 6px 16px rgba(23,25,27,.14); }
  .dbh-rc.is-carte-m .dbh-legende { position: absolute; left: 10px; right: 10px; bottom: 24px; z-index: 2; margin: 0; padding: 4px 8px; background: rgba(255,255,255,.92); border-radius: 4px; font-size: 12px; pointer-events: none; }
  .dbh-rc.is-carte-m .dbh-rc-top { display: none; }
  .dbh-rc-liste { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dbh-rech { padding: 18px 16px 16px; }
  .dbh-rech-t, .dbh-s h2.dbh-rech-t { font-size: 23px; }
  .dbh-rl { grid-template-columns: 20px 62px minmax(0, 1fr); font-size: 14px; }
  .dbh-rc-aucun { padding: 28px 20px; }
  .dbh-rc-comment .uk-container { padding-bottom: 50px; }
  .dbh-s.dbh-rc-comment .dbh-rc-comment-g { padding: 28px 20px 24px; }
  .dbh-s.dbh-rc-comment .dbh-rc-comment-g > * + * { padding-left: 0; }
  .dbh-s.dbh-rc-comment .dbh-t { font-size: 28px; }
  .dbh-rc-etape { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; font-size: 15px; }
  .dbh-rc-form { margin-top: 40px; padding: 20px 20px 28px; }
  .dbh-rc-dialog { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; }
  .dbh-pr-types .wpcf7-radio { gap: 6px; }
}

