/* Page « Les humoristes » : barre de recherche et de filtres, deux parties, badges, absence de résultat. */
[data-hum-archive] [hidden] { display: none !important; }

/* ---------- Barre : recherche + filtres sur une ligne quand la place le permet ---------- */
.hum-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; margin-bottom: 18px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.hum-search { position: relative; flex: 1 1 280px; min-width: 0; align-self: stretch; display: flex; align-items: flex-end; }
.hum-search input { width: 100%; min-height: 48px; padding: 12px 46px 12px 44px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--heading); font: inherit; }
.hum-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.hum-search-ico { position: absolute; left: 15px; bottom: 14px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hum-clear { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--heading) 10%, transparent); color: var(--heading); font: 700 15px/1 var(--sans); cursor: pointer; }
.hum-clear:hover { background: color-mix(in srgb, var(--red) 35%, transparent); }
.hum-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; flex: 2 1 520px; }
.hum-field { display: grid; gap: 5px; flex: 1 1 150px; min-width: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hum-field select { min-height: 48px; width: 100%; padding: 10px 36px 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--heading); font: 400 15px/1.2 var(--sans); text-transform: none; letter-spacing: 0; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hum-reset { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--red) 70%, transparent); background: transparent; color: var(--heading); font: 700 14px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.hum-reset:hover { background: color-mix(in srgb, var(--red) 18%, transparent); }
.hum-toggle { display: none; }
.hum-archive :is(input, select, button, .artist):focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 70%, transparent); }
.hum-archive .artist:focus-visible { border-radius: var(--radius); }

.hum-count { margin: 0 0 28px; font-weight: 700; color: var(--muted); }

/* ---------- Les deux parties ---------- */
.hum-part + .hum-part { margin-top: clamp(48px, 7vw, 80px); }
.hum-part-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 26px; }
.hum-part-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0; }
.hum-part-head h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--red); border-radius: 3px; margin-top: 12px; }
.hum-part-sub { margin: 0; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
/* la grille garde des cartes de taille normale même quand il reste peu de résultats */
.hum-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 0; }

/* ---------- Petite ligne « édition » et badges sous le nom ---------- */
.artist-meta { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.artist-more { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--heading) 10%, transparent); color: var(--heading); }
.artist-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge-prize { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--heading); }
.badge-prize::before { content: '★'; color: var(--red); font-size: 11px; }
.badge-prize.public::before { content: '♥'; }
.badge-prize.finalist { border-color: var(--line-strong); background: transparent; color: var(--text); }
.badge-prize.finalist::before { content: '✦'; color: var(--muted); }

/* ---------- Aucun résultat ---------- */
.hum-empty { text-align: center; padding: clamp(32px, 6vw, 56px) 20px; border-radius: 22px; border: 1px dashed var(--line-strong); background: var(--card); }
.hum-empty svg { width: 46px; height: 46px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; margin-bottom: 10px; }
.hum-empty-title { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); color: var(--heading); margin: 0 0 8px; }
.hum-empty p { margin: 0 0 22px; color: var(--muted); }

/* ---------- Téléphone : filtres repliés derrière « Filtrer » ---------- */
@media (max-width: 760px) {
  .hum-bar { padding: 12px; gap: 10px; }
  .hum-search { flex: 1 1 0; }
  .hum-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--input-bg); color: var(--heading); font: 700 15px/1 var(--sans); cursor: pointer; }
  .hum-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .hum-toggle[aria-expanded=true] { border-color: var(--red); }
  .hum-toggle-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; }
  .hum-filters { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; }
  .hum-filters.is-open { display: flex; }
  .hum-field { flex: none; }
  .hum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* « Dernière édition » : cartes à leur taille normale, sans cadre autour */
.hum-latest .hum-grid { display: flex; flex-wrap: wrap; gap: 22px; }
.hum-latest .artist { width: 200px; }
@media (max-width: 760px) { .hum-latest .hum-grid { gap: 14px; } .hum-latest .artist { width: calc(50% - 7px); } }
