/* Hunawé — les filtres du catalogue : « Où » et « Quand », sous les pastilles d'activité.
   Ils reprennent le dessin des pastilles du site (.filter-pill) : même hauteur,
   même contour, et le fond nuit quand un choix est fait. */

.hw-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -5px 0 17px; scroll-margin-top: var(--hw-filtres-haut, 150px); }
.hw-filtres[hidden] { display: none; }

.hw-filtres .hw-filtre { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-height: 43px; margin: 0; padding: 0; border: 1px solid rgba(20, 36, 43, .14); border-radius: 999px; background: rgba(251, 250, 246, .7); color: rgba(20, 36, 43, .78); font-family: var(--sans, "Space Grotesk", Arial, sans-serif); font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.hw-filtres .hw-filtre:hover { border-color: var(--eau, #5D92B3); color: var(--encre, #14242B); }
/* Le cerne de clavier, seulement au clavier (pas après un choix à la souris ou au doigt). */
.hw-filtres .hw-filtre:has(select:focus-visible) { outline: 2px solid var(--feu, #D18D60); outline-offset: 2px; }
@supports not selector(:has(*)) { .hw-filtres .hw-filtre:focus-within { outline: 2px solid var(--feu, #D18D60); outline-offset: 2px; } }
/* Le petit mot manuscrit qui dit de quel choix il s'agit. */
.hw-filtre__nom { flex: none; padding: 0 0 2px 17px; color: var(--eau-texte, #3E6E8C); font-family: var(--main, "Caveat", cursive); font-size: 20px; font-weight: 600; line-height: 1; }
.hw-filtres .hw-filtre select { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; min-height: 41px; margin: 0; padding: 9px 38px 9px 9px; border: 0; border-radius: 999px; outline: 0; box-shadow: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%2314242B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 11px auto; color: inherit; font: inherit; text-overflow: ellipsis; cursor: pointer; }
.hw-filtres .hw-filtre select option, .hw-filtres .hw-filtre select optgroup { background: #fff; color: #14242B; font-weight: 400; }

/* Un choix est fait : la pastille passe en nuit, comme une pastille d'activité choisie. */
.hw-filtres .hw-filtre.est-actif { border-color: var(--nuit, #10232C); background: var(--nuit, #10232C); color: #fff; }
.hw-filtre.est-actif .hw-filtre__nom { color: var(--eau-2, #8EB8CE); }
.hw-filtres .hw-filtre.est-actif select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.hw-filtres button.hw-filtres__raz { min-height: 43px; margin: 0; padding: 8px 8px; border: 0; background: none; box-shadow: none; color: var(--eau-texte, #3E6E8C); font-family: var(--sans, "Space Grotesk", Arial, sans-serif); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; text-decoration: underline; text-decoration-color: rgba(93, 146, 179, .5); text-underline-offset: 4px; cursor: pointer; }
.hw-filtres button.hw-filtres__raz:hover { color: var(--encre, #14242B); text-decoration-color: currentColor; }
.hw-filtres button.hw-filtres__raz[hidden] { display: none; }

@media (max-width: 620px) {
  .hw-filtres { gap: 8px; margin-top: 2px; }
  .hw-filtres .hw-filtre { flex: 1 1 100%; }
  .hw-filtres .hw-filtre select { flex: 1 1 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-filtres .hw-filtre { transition: none; }
}

/* 1.61.9 — L'arrivée sur les cartes (#catalogue-sejours) laisse la place de l'en-tête du site */
[data-filter-count="aventures"], #catalogue-sejours { scroll-margin-top: var(--hw-filtres-haut, 150px); }
