/* Annuaire des associations : les couleurs héritent du thème quand c'est possible et se règlent ici. */
.fdbr-assoc {
  --fdbr-green: #1f4d3a;
  --fdbr-green-soft: #e3eee8;
  --fdbr-honey: #e0a21b;
  --fdbr-honey-ink: #4a3200;
  --fdbr-line: #dde3dc;
  --fdbr-muted: #5b6a62;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.fdbr-assoc [hidden] { display: none !important; }
.fdbr-assoc h2 { margin: 0; text-wrap: balance; }
.fdbr-assoc a { color: var(--fdbr-green); }
.fdbr-assoc :focus-visible { outline: 3px solid var(--fdbr-honey); outline-offset: 2px; }

.fdbr-learn { background: var(--fdbr-green); color: #f3f7f4; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fdbr-assoc .fdbr-learn h2, .fdbr-assoc .fdbr-learn p { color: #f3f7f4 !important; }
.fdbr-learn p { margin: 0; max-width: 65ch; opacity: .9; }
.fdbr-learn ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.fdbr-learn li { background: rgba(255, 255, 255, .12); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fdbr-learn li span { font-size: .9em; opacity: .9; }

.fdbr-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; top: 0; background: #fff; padding-block: 10px; z-index: 5; border-bottom: 1px solid var(--fdbr-line); }
.fdbr-tools input[type=search] { flex: 1 1 240px; min-width: 0; }
.fdbr-tools select { min-width: 0; }
.fdbr-chips { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.fdbr-chip { font: inherit; font-size: .9em; font-weight: 600; background: #fff; color: inherit; border: 1px solid var(--fdbr-line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.fdbr-chip[aria-pressed=true] { background: var(--fdbr-green); color: #fff; border-color: var(--fdbr-green); }
.fdbr-count { margin: 0; flex-basis: 100%; font-size: .9em; color: var(--fdbr-muted); }

.fdbr-sector { display: flex; flex-direction: column; gap: 12px; }
.fdbr-sector h2 { border-bottom: 2px solid var(--fdbr-honey); padding-bottom: 6px; }
.fdbr-sector h2 small { font-size: .6em; font-weight: 400; color: var(--fdbr-muted); }
.fdbr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.fdbr-fiche { background: #fff; border: 1px solid var(--fdbr-line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fdbr-fiche h3 { margin: 0; font-size: 1.1em; line-height: 1.25; display: flex; justify-content: space-between; gap: 8px; }
.fdbr-fiche h3 em { font-size: .7em; font-style: normal; font-weight: 600; color: var(--fdbr-muted); white-space: nowrap; }
.fdbr-commune { margin: 0; color: var(--fdbr-muted); font-size: .9em; }
.fdbr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fdbr-tag { font-size: .75em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; background: var(--fdbr-green-soft); color: var(--fdbr-green); }
.fdbr-tag.is-learn { background: var(--fdbr-honey); color: var(--fdbr-honey-ink); }
.fdbr-desc p { margin: 0; font-size: .95em; }
.fdbr-fiche details { margin-top: auto; font-size: .95em; }
.fdbr-fiche summary { cursor: pointer; font-weight: 700; color: var(--fdbr-green); }
.fdbr-fiche dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.fdbr-fiche dt { color: var(--fdbr-muted); }
.fdbr-fiche dd { margin: 0; overflow-wrap: anywhere; }
.fdbr-empty { color: var(--fdbr-muted); padding: 24px 0; }
