/* ==========================================================================
   /{lang}/djs — annuaire des DJs (djs.html, body.djd-page + js/djs-directory.js)
   ========================================================================== */
body.djd-page {
  --djd-text: #f5f4f1;
  --djd-muted: rgba(245, 244, 241, 0.62);
  --djd-faint: rgba(245, 244, 241, 0.4);
  --djd-line: rgba(245, 244, 241, 0.09);
  --djd-gold: #c6a66a;
  --djd-gold-hi: #d4b984;
  --djd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --og-accent: #c6a66a;
  --og-accent-hover: #d4b984;
  --og-text: #ffffff;
  --og-muted: #9a9a9a;
  --og-border: rgba(255, 255, 255, 0.08);
  background: #050505 !important;
}
.djd, .djd * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
.djd a { text-decoration: none; }
.djd > section { margin: 0 !important; opacity: 1 !important; transform: none !important; filter: none !important; background: none; }
.djd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.djd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.djd .djd-hero {
  position: relative;
  overflow: hidden;
  padding: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 120px) 0 40px !important;
}
.djd .djd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 70% at 85% 0%, rgba(198, 166, 106, 0.16), transparent 70%),
    radial-gradient(rgba(245, 244, 241, 0.06) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  pointer-events: none;
}
.djd-hero .djd-wrap { position: relative; }
.djd-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--djd-gold); }
.djd-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--djd-gold); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.18); }
.djd-title {
  max-width: 820px;
  margin: 0 0 18px !important;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  color: var(--djd-text) !important;
}
.djd-accent { color: var(--djd-gold) !important; -webkit-text-fill-color: var(--djd-gold) !important; background: none !important; }
.djd-lead { max-width: 560px; margin: 0 0 18px; font-size: 16.5px; line-height: 1.65; color: var(--djd-muted); }
.djd-count { min-height: 1.4em; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--djd-gold); }

/* Barre d'outils */
.djd .djd-list { padding: 8px 0 80px !important; }
.djd-toolbar {
  position: sticky;
  top: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 66px);
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0 -10px 26px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(10, 10, 9, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--djd-line);
}
.djd-search {
  position: relative;
  flex: 0 0 280px;
  display: block;
}
.djd-search svg { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--djd-faint); pointer-events: none; }
.djd-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(245, 244, 241, 0.12);
  background: #0f0f0e;
  color: var(--djd-text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.djd-search input::placeholder { color: rgba(245, 244, 241, 0.32); }
.djd-search input:focus { border-color: rgba(198, 166, 106, 0.7); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.14); }
.djd-search:focus-within svg { color: var(--djd-gold); }
.djd-chips { flex: 1 1 0; min-width: 0; display: flex; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 24px; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.djd-chips::-webkit-scrollbar { display: none; }
.djd-chips button, .djd-sort button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.12);
  color: var(--djd-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.djd-chips button small { margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--djd-faint); }
.djd-chips button:hover, .djd-sort button:hover { color: var(--djd-text); box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.26); }
.djd-chips button.is-on { background: var(--djd-text); color: #0b0a08; box-shadow: none; }
.djd-chips button.is-on small { color: rgba(11, 10, 8, 0.55); }
.djd-sort { flex: 0 0 auto; display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.12); }
.djd-sort button { height: 34px; box-shadow: none; }
.djd-sort button.is-on { background: var(--djd-gold); color: #0b0a08; }
.djd-chips button:focus-visible, .djd-sort button:focus-visible { outline: 2px solid var(--djd-gold); outline-offset: 2px; }

/* Grille */
.djd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.djd-fallback { display: block; padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--djd-line); color: var(--djd-text) !important; font-weight: 700; }
.djd-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--djd-text) !important;
  animation: djdIn 0.6s var(--djd-ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes djdIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.djd-photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #121211;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.06);
  transition: box-shadow 0.3s, transform 0.4s var(--djd-ease);
}
.djd-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1) contrast(1.06) brightness(0.88);
  transform: scale(1.02);
  transition: filter 0.55s var(--djd-ease), transform 0.8s var(--djd-ease);
}
.djd-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 5, 0.55), transparent 40%); pointer-events: none; }
.djd-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; color: rgba(198, 166, 106, 0.5); }
.djd-dates {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 9, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.14);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--djd-text);
}
.djd-card:hover .djd-photo, .djd-card:focus-visible .djd-photo { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.5), 0 26px 50px -30px rgba(198, 166, 106, 0.55); }
.djd-card:hover .djd-photo img, .djd-card:focus-visible .djd-photo img { filter: none; transform: scale(1.07); }
.djd-card:focus-visible { outline: none; }
.djd-info { display: grid; gap: 5px; padding: 0 4px; }
.djd-name { font-size: 16.5px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.djd-card:hover .djd-name { color: var(--djd-gold-hi); }
.djd-next { display: flex; align-items: center; gap: 7px; overflow: hidden; font-size: 12.5px; font-weight: 600; color: var(--djd-muted); white-space: nowrap; text-overflow: ellipsis; }
.djd-next i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #7fcf9a; box-shadow: 0 0 0 3px rgba(127, 207, 154, 0.18); }

.djd-empty { padding: 56px 20px; border-radius: 24px; text-align: center; box-shadow: inset 0 0 0 1px var(--djd-line); }
.djd-empty[hidden] { display: none; }
.djd-empty p { margin: 0 0 16px; font-size: 15px; color: var(--djd-muted); }
.djd-empty button { height: 42px; padding: 0 20px; border: 1px solid rgba(198, 166, 106, 0.5); border-radius: 999px; background: none; color: var(--djd-gold); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.djd-empty button:hover { background: var(--djd-gold); color: #0b0a08; }

/* Appel final */
.djd .djd-cta { padding: 0 0 100px !important; }
.djd-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: 28px;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(198, 166, 106, 0.2), transparent 60%),
    linear-gradient(180deg, #11110f, #0a0a09);
  box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.22);
}
.djd-cta-card h2 { margin: 0 0 8px !important; font-size: clamp(1.5rem, 2.6vw, 2rem) !important; font-weight: 800 !important; letter-spacing: -0.03em !important; text-transform: none !important; color: var(--djd-text) !important; }
.djd-cta-card p { margin: 0; font-size: 15px; color: var(--djd-muted); }
.djd-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--djd-gold);
  color: #0b0a08 !important;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 16px 34px -16px rgba(198, 166, 106, 0.75);
  transition: background 0.2s, transform 0.2s;
}
.djd-cta-btn svg { width: 18px; height: 18px; }
.djd-cta-btn:hover { background: var(--djd-gold-hi); transform: translateY(-1px); }

/* Responsive */
@media (max-width: 1024px) {
  .djd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .djd .djd-hero { padding: calc(max(0.65rem, env(safe-area-inset-top, 0px)) + 92px) 0 24px !important; }
  .djd-wrap { padding: 0 16px; }
  .djd-toolbar { top: calc(max(0.65rem, env(safe-area-inset-top, 0px)) + 62px); margin: 0 -6px 20px; padding: 8px; border-radius: 20px; }
  .djd-toolbar { flex-wrap: wrap; }
  .djd-search { flex: 1 1 0; min-width: 0; max-width: none; }
  .djd-sort { order: 1; }
  .djd-chips { order: 2; flex: 1 1 100%; min-width: 0; }
  .djd-search input { height: 42px; }
  .djd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .djd-photo { border-radius: 18px; }
  .djd-name { font-size: 15px; }
  .djd-next { font-size: 11.5px; }
  .djd-photo img { filter: none; }
  .djd-cta-card { flex-direction: column; align-items: stretch; text-align: center; padding: 30px 22px; }
  .djd-cta-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .djd-card { animation: none; }
}
