/* ==========================================================================
   Recherche — search.html + js/search-v2.js
   ========================================================================== */

.srx {
  --srx-surface: #0e0e0d;
  --srx-surface-2: #151513;
  --srx-line: rgba(245, 244, 241, 0.08);
  --srx-line-2: rgba(245, 244, 241, 0.14);
  --srx-text: #f5f4f1;
  --srx-muted: rgba(245, 244, 241, 0.62);
  --srx-faint: rgba(245, 244, 241, 0.42);
  --srx-gold: #c6a66a;
  --srx-gold-hover: #d4b984;
  position: relative;
  min-height: 70vh;
  padding: 5.5rem 0 0 !important;
  background: #050505 !important;
  color: var(--srx-text);
  overflow: visible !important;
  overflow-x: clip !important;
}
.srx, .srx * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
.srx::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -200px;
  width: 1100px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(198, 166, 106, 0.14), transparent);
  pointer-events: none;
}
.srx a { color: inherit; text-decoration: none; }
.srx-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 1.5rem 24px 5rem; }

/* ——— Hero + champ ——— */
.srx-hero { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; transition: margin 0.3s; }
.srx-eyebrow { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--srx-gold); }
.srx-title {
  margin: 0 0 1.5rem !important;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  color: var(--srx-text) !important;
}
body.srx-has-q .srx-hero { margin-bottom: 1.75rem; }
body.srx-has-q .srx-eyebrow,
body.srx-has-q .srx-title { display: none; }

.srx-form { margin: 0; }
.srx-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  border-radius: 999px;
  border: 1px solid var(--srx-line-2);
  background: var(--srx-surface);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.srx-field:focus-within { border-color: rgba(198, 166, 106, 0.65); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.12), 0 30px 60px -36px rgba(0, 0, 0, 0.9); }
.srx-field-ico { position: absolute; left: 24px; width: 20px; height: 20px; color: var(--srx-gold); pointer-events: none; }
.srx-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 96px 0 58px;
  border: 0;
  background: transparent;
  color: var(--srx-text);
  font-size: 17px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.srx-field input::placeholder { color: var(--srx-faint); font-weight: 500; }
.srx-field input::-webkit-search-cancel-button { display: none; }
.srx-clear {
  position: absolute;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--srx-text);
  cursor: pointer;
}
.srx-clear[hidden] { display: none; }
.srx-clear svg { width: 14px; height: 14px; }
.srx-kbd {
  position: absolute;
  right: 20px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid var(--srx-line-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--srx-faint);
  pointer-events: none;
}
.srx-field:focus-within .srx-kbd,
.srx-clear:not([hidden]) ~ .srx-kbd { display: none; }

/* ——— Sections ——— */
.srx-sec { margin: 0 0 2.5rem !important; padding: 0 !important; min-height: 0 !important; opacity: 1 !important; transform: none !important; background: none !important; border: 0 !important; }
.srx-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.srx-sec-head h2 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--srx-text) !important;
}
.srx-more { font-size: 13.5px; font-weight: 700; color: var(--srx-gold) !important; }
.srx-more:hover { color: var(--srx-gold-hover) !important; }
.srx-count { margin: 0 0 1.5rem; font-size: 14px; color: var(--srx-muted); }
.srx mark { background: rgba(198, 166, 106, 0.22); color: inherit; border-radius: 4px; padding: 0 2px; }

/* Pastilles */
.srx-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.srx-quick--center { justify-content: center; }
.srx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--srx-line-2);
  background: transparent;
  color: var(--srx-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.srx-pill:hover { border-color: rgba(245, 244, 241, 0.32); background: rgba(255, 255, 255, 0.04); }
.srx-pill--gold { border-color: var(--srx-gold); background: var(--srx-gold); color: #0b0a08 !important; }
.srx-pill--gold:hover { background: var(--srx-gold-hover); border-color: var(--srx-gold-hover); }
.srx-live { width: 7px; height: 7px; border-radius: 50%; background: #0b0a08; display: inline-block; animation: srx-blink 1.6s ease-in-out infinite; }
@keyframes srx-blink { 50% { opacity: 0.3; } }

/* Villes */
.srx-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.srx-city {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 140px;
  padding: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--srx-surface-2);
  isolation: isolate;
}
.srx-city-bg { position: absolute; inset: 0; z-index: -1; }
.srx-city-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) brightness(0.55); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.srx-city-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(5, 5, 5, 0.85)); }
.srx-city:hover .srx-city-bg img { transform: scale(1.06); }
.srx-city-copy strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.srx-city-copy em { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--srx-gold); }

/* DJs */
.srx-djs { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.srx-djs::-webkit-scrollbar { display: none; }
.srx-dj { flex: 0 0 auto; width: 112px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.srx-dj-photo {
  width: 96px;
  height: 96px;
  margin-bottom: 6px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--srx-surface-2);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.srx-dj:hover .srx-dj-photo { border-color: var(--srx-gold); transform: translateY(-2px); }
.srx-dj-photo img { width: 100%; height: 100%; object-fit: cover; }
.srx-dj-photo span { font-size: 1.8rem; font-weight: 800; color: var(--srx-gold); }
.srx-dj strong { font-size: 13.5px; font-weight: 700; color: var(--srx-text); line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srx-dj em { font-style: normal; font-size: 12px; color: var(--srx-faint); }

/* Clubs */
.srx-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.srx-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: var(--srx-surface);
  transition: background 0.2s;
}
.srx-row:hover { background: #141413; }
.srx-row-media { flex: 0 0 auto; width: 88px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--srx-surface-2); }
.srx-row-media img { width: 100%; height: 100%; object-fit: cover; }
.srx-row-media span { font-size: 1.3rem; font-weight: 800; color: var(--srx-gold); }
.srx-row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srx-row-body strong { font-size: 15px; font-weight: 700; color: var(--srx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srx-row-body em { font-style: normal; font-size: 13px; color: var(--srx-muted); }
.srx-row-chev { width: 18px; height: 18px; color: var(--srx-faint); flex: 0 0 auto; }

/* Soirées */
.srx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.srx-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--srx-surface);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s;
}
.srx-card:hover { transform: translateY(-4px); background: #131312; }
.srx-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--srx-surface-2); }
.srx-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.srx-date {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 48px;
  padding: 7px 0 6px;
  border-radius: 14px;
  background: rgba(8, 8, 7, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.srx-date strong { font-size: 18px; font-weight: 800; color: var(--srx-text); }
.srx-date em { margin-top: 3px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--srx-gold); }
.srx-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; padding: 15px 17px 17px; }
.srx-genre { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--srx-gold); }
.srx-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--srx-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srx-card-meta { font-size: 13px; color: var(--srx-muted); }
.srx-card-djs { font-size: 12.5px; color: var(--srx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--srx-line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--srx-muted);
}
.srx-card-foot strong { font-size: 12.5px; color: var(--srx-text); }

/* États */
.srx-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.srx-skeleton span {
  height: 260px;
  border-radius: 22px;
  background: linear-gradient(100deg, var(--srx-surface) 30%, #181816 50%, var(--srx-surface) 70%);
  background-size: 300% 100%;
  animation: srx-shimmer 1.4s linear infinite;
}
@keyframes srx-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.srx-empty {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  border-radius: 24px;
  border: 1px dashed var(--srx-line-2);
  background: linear-gradient(180deg, rgba(198, 166, 106, 0.05), transparent 60%), var(--srx-surface);
}
.srx-empty-ico { width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; display: grid; place-items: center; background: rgba(198, 166, 106, 0.1); color: var(--srx-gold); }
.srx-empty-ico svg { width: 24px; height: 24px; }
.srx-empty-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--srx-text); }
.srx-empty-text { margin: 0 0 18px; font-size: 14px; color: var(--srx-muted); }
.srx-try-label { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--srx-faint); }
.srx-btn { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--srx-gold); color: #0b0a08; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ——— Responsive ——— */
@media (max-width: 760px) {
  .srx-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .srx { padding-top: 4.75rem !important; }
  .srx-wrap { padding: 1rem 16px 5rem; }
  .srx-hero { text-align: left; margin-bottom: 2rem; }
  .srx-title { font-size: 2.3rem !important; margin-bottom: 1.1rem !important; }
  .srx-field { height: 56px; }
  .srx-field-ico { left: 18px; }
  .srx-field input { padding: 0 56px 0 48px; font-size: 16px; }
  .srx-kbd { display: none; }
  .srx-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .srx-city { height: 112px; padding: 12px; }
  .srx-city-copy strong { font-size: 1.05rem; }
  .srx-dj { width: 88px; }
  .srx-dj-photo { width: 76px; height: 76px; }
  .srx-grid, .srx-skeleton { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .srx-pill { height: 40px; padding: 0 15px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .srx-card, .srx-city-bg img { transition: none; }
  .srx-live, .srx-skeleton span { animation: none; }
}

/* En-tête standard du site (même rendu que l'agenda) */
body.srx-page { background: #050505; }
