/* /recherche (lib/search-page.mjs, src/recherche.js): search form, list and map. Light, yellow accents, no black panels. */
.rch .rch-main { max-width: none; gap: 1.1rem; }
.rch .chapo { max-width: 46rem; }
.rch-form { background: var(--yellow); color: var(--yellow-ink); border-radius: 0.6rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.rch-ligne { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(6.5rem, 0.5fr); gap: 0.6rem; }
.rch-champ { display: flex; flex-direction: column; gap: 0.2rem; font: 700 0.95rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.rch-champ input, .rch-champ select { font: 400 1.1rem var(--body); text-transform: none; letter-spacing: 0; padding: 0.55rem 0.7rem; border: 2px solid var(--yellow-ink); border-radius: 0.4rem; background: #fff; color: #15181C; min-width: 0; width: 100%; box-sizing: border-box; }
.rch-aide { margin: 0; font-size: 0.95rem; }
.rch-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rch-form .chip { border-color: var(--yellow-ink); color: var(--yellow-ink); background: rgba(255,255,255,.55); }
.rch-form .chip.on { background: #fff; color: #15181C; box-shadow: inset 0 0 0 2px #15181C; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.rch-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.rch-carte-bloc { position: sticky; top: 0.8rem; order: 2; }
.rch-carte { height: min(72vh, 40rem); border-radius: 0.6rem; border: 2px solid var(--rule); background: #EEF0EA; }
.rch-carte-note { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.rch-resultats { min-width: 0; }
.rch-compte { margin: 0; font-weight: 700; }
.rch-titre { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 1rem 0 0; border-bottom: 0.2rem solid var(--yellow); padding-bottom: 0.2rem; }
.rch-jour ul { list-style: none; margin: 0; padding: 0; }
.rch-date { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0.9rem 0 0; color: var(--ink-soft); }
.rch-item { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.2rem 0.8rem; padding-block: 0.7rem; border-bottom: 1px solid var(--rule); }
.rch .prose li + li, .rch-main li + li { margin-top: 0; }
.rch-heure { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rch-heure small { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.rch-sans { color: var(--ink-soft); }
.rch-texte h3 { margin: 0; font-family: var(--body); font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.rch-texte p { margin: 0.1rem 0 0; font-size: 0.98rem; }
.rch-org { color: var(--ink-soft); }
.rch-meta { font-size: 0.9rem; color: var(--ink-soft); }
.rch-badge { display: inline-block; font: 600 0.8rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 0.05rem 0.5rem; }
.rch-km-badge { white-space: nowrap; font-weight: 700; }
.rch-vide { font-weight: 700; }
.rch-source { margin-top: 0.5rem; }
/* Map pins: one yellow disc per commune, the count inside. Leaflet sizes them from JavaScript (allowed by the CSP). */
.rch-pin { display: flex; align-items: center; justify-content: center; background: var(--yellow); color: #2A2204; border: 2px solid #2A2204; border-radius: 50%; font: 700 0.9rem var(--display); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.rch-pin span { line-height: 1; }
.rch-rayon { stroke: #C4122F; stroke-width: 2; fill: #F2C230; fill-opacity: 0.12; }
.rch-pop { margin: 0.3rem 0 0; padding-left: 1rem; font-size: 0.9rem; }
.rch-pop li + li { margin-top: 0.2rem; }
.leaflet-container { font-family: var(--body); }
@media (max-width: 52rem) {
  .rch-corps { grid-template-columns: minmax(0, 1fr); }
  .rch-carte-bloc { position: static; order: -1; }
  .rch-carte { height: 52vh; min-height: 16rem; }
}
@media (max-width: 34rem) {
  .rch-ligne { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .rch-q { grid-column: 1 / -1; }
  .rch-form { padding: 0.8rem; margin-inline: -0.25rem; }
}
/* A compact head on this page: the form is what people came for. */
.rch .panneau-seul { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.rch .rch-main h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
@media (max-width: 34rem) {
  .rch.wrap { gap: 1rem; padding-block-start: 0.8rem; }
  .rch .chapo { font-size: 1rem; }
  .rch-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -0.8rem; padding-inline: 0.8rem; padding-block: 0.15rem; }
  .rch-chips::-webkit-scrollbar { display: none; }
  .rch-chips .chip { flex: none; }
  .rch-champ input, .rch-champ select { font-size: 1rem; padding: 0.5rem 0.6rem; }
}
