/* ----------------------------------------------------------------
	Recherche de concerts (header) — remplace Ajax Search Pro
-----------------------------------------------------------------*/
.bbc-search {
  --bbc-search-accent: #a50a3c;   /* couleur des titres */
  --bbc-search-line: #c1c3ce;
  --bbc-search-muted: #6b6b75;
  --bbc-search-hover: #f1f1f3;
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 0 auto 12px;
  text-align: left;
}

.bbc-search__field {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid var(--bbc-search-line);
}

.bbc-search__box {
  position: relative;
  flex: 1;
  min-width: 0;
}

#search .search-form .bbc-search__input {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border: 0;
  padding: 10px 0;
  background: transparent;
}

/* Complétion grisée derrière le texte tapé */
.bbc-search__ghost {
  position: absolute;
  inset: 0;
  margin: 0;
  white-space: pre;
  overflow: hidden;
  color: var(--bbc-search-line);
  pointer-events: none;
}
.bbc-search__ghost-typed { color: transparent; }

.bbc-search__clear,
.bbc-search__submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #000;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.bbc-search__clear { font-size: 28px; }
.bbc-search__clear[hidden] { display: none; }
.bbc-search__clear:hover,
.bbc-search__submit:hover { background: var(--bbc-search-hover); }
.bbc-search__clear:focus-visible,
.bbc-search__submit:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Liste des résultats */
.bbc-search__list,
.bbc-search__empty {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e6e6ea;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.bbc-search__list {
  max-height: min(60vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  padding: 8px;
}
.bbc-search__list[hidden],
.bbc-search__empty[hidden] { display: none; }

.bbc-search__list a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}
.bbc-search__list [aria-selected="true"] a { background: var(--bbc-search-hover); }

.bbc-search__thumb {
  flex: none;
  width: 64px;
  height: 64px;
  background: var(--bbc-search-hover);
  overflow: hidden;
}
.bbc-search__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bbc-search__text { min-width: 0; padding-top: 2px; }

.bbc-search__title {
  display: block;
  color: var(--bbc-search-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.bbc-search__title mark {
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bbc-search__date {
  display: block;
  margin-top: 4px;
  color: var(--bbc-search-muted);
  font-size: 13px;
}

.bbc-search__empty {
  padding: 16px 18px;
  color: var(--bbc-search-muted);
  font-size: 15px;
}

@media (max-width: 991.98px) {
  .bbc-search__thumb { width: 48px; height: 48px; }
  .bbc-search__title { font-size: 15px; }
  .bbc-search__list { max-height: 55vh; }
}
