/* hassidout - recherche avancée. Mobile d'abord, bleu du site #0f4f97, densité maximale. */
/* Divi met 58 px au-dessus du contenu avec body:not(.et-tb) #main-content .container. */
body.hassidout-recherche-page:not(.et-tb) #main-content .container, body.hassidout-lieu-page:not(.et-tb) #main-content .container { padding-top: 14px; }
.hassidout-recherche-page #main-content .container:before, .hassidout-lieu-page #main-content .container:before { display: none; }
.hr { --hr-bleu: #0f4f97; --hr-fond: #f3f6fa; --hr-trait: #d5dde8; --hr-gris: #555; font-size: 15px; line-height: 1.4; color: #222; padding-bottom: 24px; }
.hr *, .hr *:before, .hr *:after { box-sizing: border-box; }
.hr-titre { font-size: 22px; font-weight: 700; color: var(--hr-bleu); margin: 0 0 8px; padding: 0; line-height: 1.2; }

.hr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; background: var(--hr-fond); border: 1px solid var(--hr-trait); border-radius: 8px; padding: 10px; margin: 0 0 10px; }
.hr-champ { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; position: relative; }
.hr-champ > span, .hr-champ > legend { font-size: 12px; font-weight: 600; color: var(--hr-bleu); margin: 0 0 2px; padding: 0; text-transform: uppercase; letter-spacing: .02em; }
.hr-mot, .hr-quartier, .hr-beth-habad, .hr-chaliah, .hr-annees { grid-column: 1 / -1; }
.hr-annees { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.hr-annees legend { grid-column: 1 / -1; }
.hr select, .hr input[type="search"], .hr input[type="text"] { width: 100%; height: 38px; padding: 0 8px; font-size: 16px; color: #222; background: #fff; border: 1px solid var(--hr-trait); border-radius: 6px; margin: 0; -webkit-appearance: none; appearance: none; }
.hr select { background-image: linear-gradient(45deg, transparent 50%, var(--hr-bleu) 50%), linear-gradient(135deg, var(--hr-bleu) 50%, transparent 50%); background-position: calc(100% - 13px) 16px, calc(100% - 8px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 22px; text-overflow: ellipsis; }
.hr select:disabled { opacity: .5; }
.hr select:focus, .hr input:focus { outline: 2px solid var(--hr-bleu); outline-offset: -1px; border-color: var(--hr-bleu); }
.hr-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.hr-bouton { flex: 1; height: 42px; background: var(--hr-bleu); color: #fff; border: 0; border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer; }
.hr-bouton:hover, .hr-bouton:focus { background: #0b3d75; }
.hr-effacer { color: var(--hr-bleu); font-size: 14px; text-decoration: underline; white-space: nowrap; }

/* Saisie assistée */
.hr-sug { position: absolute; z-index: 50; top: 100%; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--hr-bleu); border-radius: 6px; box-shadow: 0 6px 18px rgba(15, 79, 151, .18); max-height: 300px; overflow-y: auto; }
.hr-sug li { padding: 7px 10px; cursor: pointer; border-bottom: 1px solid #eef1f5; font-size: 15px; line-height: 1.25; list-style: none; }
.hr-sug li:last-child { border-bottom: 0; }
.hr-sug li[aria-selected="true"], .hr-sug li:hover { background: var(--hr-fond); }
.hr-sug b { color: var(--hr-bleu); font-weight: 700; }
.hr-sug small { display: block; color: var(--hr-gris); font-size: 12px; }
.hr-sug .hr-n { float: right; color: var(--hr-gris); font-size: 12px; margin-left: 6px; }

/* Résultats */
.hr-total { margin: 0 0 6px; padding: 0; font-size: 14px; color: var(--hr-gris); }
.hr-total strong { color: var(--hr-bleu); font-size: 16px; }
.hr-puces { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; padding: 0; list-style: none; }
.hr-puces li { list-style: none; margin: 0; padding: 0; }
.hr-puces a { display: inline-block; padding: 3px 9px; border-radius: 14px; background: var(--hr-bleu); color: #fff; font-size: 13px; line-height: 1.4; text-decoration: none; }
.hr-puces a span { margin-left: 3px; font-weight: 700; opacity: .85; }
.hr-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hr-trait); }
.hr-art { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hr-trait); }
.hr-lien { display: flex; gap: 10px; padding: 8px 0; color: inherit; text-decoration: none; }
.hr-lien:hover .hr-t, .hr-lien:focus .hr-t { text-decoration: underline; }
.hr-vignette { flex: 0 0 76px; width: 76px; height: 76px; object-fit: cover; border-radius: 5px; background: var(--hr-fond); display: block; }
.hr-sans { background: var(--hr-fond) linear-gradient(135deg, #e3eaf3, #f3f6fa); }
.hr-corps { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.hr-t { font-weight: 700; color: var(--hr-bleu); font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hr-meta { font-size: 12px; color: var(--hr-gris); }
.hr-ext { font-size: 13px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr-vide { padding: 16px 0; color: var(--hr-gris); }
.hr-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 12px 0 0; }
.hr-pages a, .hr-pages span { min-width: 36px; height: 36px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 14px; text-decoration: none; }
.hr-pages a { border: 1px solid var(--hr-trait); color: var(--hr-bleu); background: #fff; }
.hr-pages .hr-ici { background: var(--hr-bleu); color: #fff; font-weight: 700; }
.hr-pages .hr-ellipse { min-width: 16px; padding: 0; color: var(--hr-gris); }

/* Ordinateur : formulaire en colonne latérale collante, résultats à droite. */
@media (min-width: 900px) {
	.hr { display: grid; grid-template-columns: 320px 1fr; gap: 0 28px; align-items: start; }
	.hr-pays, .hr-ville, .hr-quartier, .hr-tri { grid-column: 1 / -1; }
	.hr-titre { grid-column: 1 / -1; font-size: 26px; margin-bottom: 12px; }
	.hr-form { position: sticky; top: 20px; margin: 0; }
	.hr-lien { padding: 10px 0; }
	.hr-vignette { flex-basis: 110px; width: 110px; height: 82px; }
	.hr-t { font-size: 17px; }
	.hr-ext { -webkit-line-clamp: 2; font-size: 14px; }
}

/* Pages lieu (/pays/, /ville/, /quartier/, /beth-habad/, /chaliah/) : une seule colonne, même liste que les résultats. */
.hr-lieu { display: block; }
.hr-surtitre { margin: 0 0 2px; padding: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--hr-gris); }
.hr-contexte { margin: 0 0 6px; padding: 0; font-size: 14px; color: var(--hr-gris); }
.hr-contexte a, .hr-affiner { color: var(--hr-bleu); }
.hr-affiner { font-size: 13px; text-decoration: underline; }

/* Page de résultats habituelle (?s=) : lien vers la recherche avancée. */
.hr-vers-avancee { margin: 0 0 10px; padding: 0; font-size: 14px; }
.hr-vers-avancee a { color: #0f4f97; text-decoration: underline; }
