/* ==========================================================================
   Page ville v3 — par-dessus city-v2.css (body.cty, enrichi par js/city-v2.js)
   Héros : affiche floutée en fond + éventail des 3 prochaines soirées.
   Agenda : lignes façon billetterie regroupées par jour (même langage que les pages club).
   ========================================================================== */
body.cty {
  --c3-surf: #0e0e0d;
  --c3-line: rgba(245, 244, 241, 0.08);
  --c3-line-2: rgba(245, 244, 241, 0.14);
  --c3-text: #f5f4f1;
  --c3-muted: rgba(245, 244, 241, 0.64);
  --c3-gold: #c6a66a;
  --c3-gold-hi: #e2c68f;
  --c3-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ——— Héros ——— */
body.cty .city-hero-premium { position: relative; isolation: isolate; overflow: hidden; min-height: min(86svh, 780px); display: flex; align-items: center; }
body.cty .city-hero-premium__media { position: absolute !important; inset: 0 !important; z-index: -1; }
body.cty .cty-hero-img { position: absolute; inset: 0; display: block !important; }
body.cty .cty-hero-bg {
  position: absolute; inset: -8%; width: 116% !important; height: 116% !important; object-fit: cover;
  filter: blur(48px) saturate(1.5) brightness(0.55) !important; opacity: 1 !important;
  animation: c3-drift 24s ease-in-out infinite alternate;
}
@keyframes c3-drift { to { transform: scale(1.12) translate(-2%, 1%); } }
body.cty .city-hero-premium__media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 70% at 20% 45%, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.8) 75%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, 0.25) 65%, #050505 100%);
}
body.cty .club-hero-premium__veil, body.cty .club-hero-premium__fade { display: none !important; }
/* Éventail des 3 prochaines affiches */
body.cty .cty-hero-fan {
  position: absolute; z-index: 2; top: 50%; right: max(24px, calc(50% - 600px)); width: min(40vw, 470px); aspect-ratio: 16 / 12;
  transform: translateY(-46%);
}
body.cty .cty-hero-fan img {
  position: absolute !important; left: 50%; top: 50%; width: 82% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 18px; opacity: 1 !important; filter: none !important;
  box-shadow: 0 0 0 1px rgba(245, 244, 241, 0.14), 0 30px 70px -25px rgba(0, 0, 0, 0.95);
  transition: transform 0.8s var(--c3-ease);
}
body.cty .cty-hero-fan img[style*="--i:0"] { z-index: 3; transform: translate(-50%, -50%) rotate(-3deg); }
body.cty .cty-hero-fan img[style*="--i:1"] { z-index: 2; transform: translate(-30%, -86%) rotate(6deg) scale(0.86); filter: brightness(0.75) !important; }
body.cty .cty-hero-fan img[style*="--i:2"] { z-index: 1; transform: translate(-72%, -14%) rotate(-11deg) scale(0.8); filter: brightness(0.6) !important; }
body.cty .city-hero-premium:hover .cty-hero-fan img[style*="--i:0"] { transform: translate(-50%, -52%) rotate(-1deg) scale(1.03); }
body.cty .city-hero-premium:hover .cty-hero-fan img[style*="--i:1"] { transform: translate(-22%, -92%) rotate(9deg) scale(0.86); }
body.cty .city-hero-premium:hover .cty-hero-fan img[style*="--i:2"] { transform: translate(-80%, -8%) rotate(-14deg) scale(0.8); }
body.cty .city-hero-premium__inner { position: relative; z-index: 3; width: 100%; max-width: 1240px !important; margin: 0 auto !important; padding: 0 24px !important; text-align: left !important; }
body.cty .city-hero-premium__inner > * { max-width: 600px; }
body.cty .city-hero-premium__line { font-size: clamp(3.2rem, 9vw, 7rem) !important; font-weight: 800 !important; letter-spacing: -0.05em !important; line-height: 0.95 !important; }
body.cty .city-hero-premium__accent {
  font-size: clamp(1.6rem, 3.6vw, 2.8rem) !important; font-weight: 800 !important; letter-spacing: -0.035em !important;
  background: linear-gradient(100deg, #fff4dc 0%, var(--c3-gold-hi) 35%, var(--c3-gold) 70%, #9a7a44 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
body.cty .city-hero-premium__desc { color: rgba(245, 244, 241, 0.74) !important; font-size: 16px !important; line-height: 1.7 !important; }

/* ——— Agenda : lignes par jour ——— */
body.cty #city-events-list { display: flex !important; flex-direction: column; gap: 10px; }
body.cty .cty-day {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 22px 4px 4px; padding: 0 0 10px;
  border-bottom: 1px solid var(--c3-line);
}
body.cty #city-events-list > .cty-day:first-child { margin-top: 0; }
body.cty .cty-day strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--c3-text); }
body.cty .cty-day span { font-size: 14px; font-weight: 600; color: var(--c3-muted); }
body.cty .cty-day em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--c3-gold); }
body.cty .cty-day.is-hot strong { color: var(--c3-gold-hi); }
body.cty .cty-day .cty-live { align-self: center; }

body.cty .club-event-card.cty-row {
  position: relative; isolation: isolate; display: grid !important; align-items: center;
  grid-template-columns: 76px 168px minmax(0, 1fr) auto; gap: 22px; height: auto !important;
  padding: 12px 14px 12px 12px !important; border-radius: 22px !important; overflow: hidden; border: 0 !important;
  background: var(--c3-surf) !important; box-shadow: inset 0 0 0 1px var(--c3-line) !important;
  transition: transform 0.35s var(--c3-ease), box-shadow 0.35s var(--c3-ease) !important;
}
body.cty .club-event-card.cty-row.cty-hide { display: none !important; }
body.cty .club-event-card.cty-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(60% 140% at 0% 50%, rgba(198, 166, 106, 0.12), transparent 70%);
}
body.cty .club-event-card.cty-row:hover { transform: translateX(4px) !important; box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.45), 0 24px 50px -30px rgba(198, 166, 106, 0.45) !important; }
body.cty .club-event-card.cty-row:hover::before { opacity: 1; }
body.cty .cty-row__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; min-height: 84px;
  border-radius: 16px; line-height: 1; text-align: center;
  background: linear-gradient(160deg, rgba(198, 166, 106, 0.18), rgba(198, 166, 106, 0.04)); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.3);
}
body.cty .cty-row__date b { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c3-gold); }
body.cty .cty-row__date strong { margin: 6px 0 5px; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--c3-text); }
body.cty .cty-row .club-event-card__media {
  position: relative !important; display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9;
  margin: 0 !important; padding: 0 !important; overflow: hidden; border-radius: 14px !important; background: #151514;
}
body.cty .cty-row .club-event-card__media::after { display: none !important; }
body.cty .cty-row .club-event-card__media img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; }
body.cty .cty-row:hover .club-event-card__media img { transform: scale(1.07); }
body.cty .cty-row .cty-rel {
  top: 6px !important; left: 6px !important; padding: 3px 8px !important; font-size: 10px !important;
}
body.cty .cty-row .club-event-card__body { display: grid !important; gap: 6px !important; min-width: 0; padding: 0 !important; margin: 0 !important; }
body.cty .cty-row .club-event-card__title {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0 !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -0.02em !important; color: var(--c3-text) !important;
}
body.cty .cty-row .club-event-card__date {
  display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important;
  font-size: 13px !important; font-weight: 600 !important; color: var(--c3-muted) !important; text-transform: none !important;
}
body.cty .cty-row .club-event-card__date::before {
  content: ''; width: 13px; height: 13px; flex: 0 0 auto; background: var(--c3-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.cty .cty-row .club-event-card__cta {
  position: static !important; display: inline-flex !important; align-items: center; gap: 8px; height: 46px !important; padding: 0 20px !important;
  margin: 0 !important; border-radius: 999px !important; border: 0 !important; white-space: nowrap;
  background: none !important; box-shadow: inset 0 0 0 1px var(--c3-line-2) !important;
  color: var(--c3-text) !important; font-size: 14px !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: 0 !important;
  transition: background 0.3s var(--c3-ease), color 0.3s, box-shadow 0.3s;
}
body.cty .cty-row .club-event-card__cta.cty-hidden { display: inline-flex !important; }
body.cty .cty-row .club-event-card__cta::after { content: '→'; color: var(--c3-gold); font-weight: 800; transition: transform 0.3s var(--c3-ease), color 0.3s; }
body.cty .cty-row:hover .club-event-card__cta {
  background: linear-gradient(135deg, var(--c3-gold-hi), var(--c3-gold)) !important; color: #0b0a08 !important;
  box-shadow: 0 14px 30px -12px rgba(198, 166, 106, 0.7) !important;
}
body.cty .cty-row:hover .club-event-card__cta::after { color: #0b0a08; transform: translateX(3px); }

/* ——— Archives : bande horizontale ——— */
body.cty #city-events-past {
  display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 270px; gap: 16px;
  overflow-x: auto; padding: 0 0 12px !important; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
body.cty #city-events-past .club-event-card { width: 100% !important; max-width: none !important; scroll-snap-align: start; }
body.cty #city-events-past .cty-extra { display: flex !important; }
body.cty #city-events-past .club-event-card__media img { filter: grayscale(0.5) brightness(0.85); transition: filter 0.5s; }
body.cty #city-events-past .club-event-card:hover .club-event-card__media img { filter: none; }

/* ——— DJs : noms qui ne sont pas de vrais DJs ——— */
body.cty .city-dj-card.cty-not-dj { display: none !important; }

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  body.cty .cty-hero-fan { display: none; }
  body.cty .city-hero-premium__inner > * { max-width: 680px; }
}
@media (max-width: 900px) {
  body.cty .club-event-card.cty-row { grid-template-columns: 64px 128px minmax(0, 1fr); gap: 16px; }
  body.cty .cty-row .club-event-card__cta { grid-column: 1 / -1; justify-content: center; height: 42px !important; }
}
@media (max-width: 560px) {
  body.cty .city-hero-premium { min-height: 0; }
  body.cty .club-event-card.cty-row { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 10px !important; border-radius: 20px !important; }
  body.cty .cty-row .club-event-card__media { grid-column: 1 / -1; grid-row: 1; }
  body.cty .cty-row__date { grid-row: 2; min-height: 72px; border-radius: 14px; }
  body.cty .cty-row__date strong { font-size: 24px; }
  body.cty .cty-row .club-event-card__body { grid-row: 2; }
  body.cty .cty-row .club-event-card__title { font-size: 16px !important; }
  body.cty .cty-row .club-event-card__cta { grid-row: 3; background: linear-gradient(135deg, var(--c3-gold-hi), var(--c3-gold)) !important; color: #0b0a08 !important; box-shadow: none !important; }
  body.cty .cty-row .club-event-card__cta::after { color: #0b0a08; }
  body.cty .club-event-card.cty-row:hover { transform: none !important; }
  body.cty .cty-day strong { font-size: 18px; }
  body.cty #city-events-past { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  body.cty .cty-hero-bg { animation: none; }
}

/* Les anciens styles du héros masquent les images et leur appliquent une animation de zoom */
body.cty .cty-hero-fan img { display: block !important; animation: none !important; }
body.cty .cty-hero-img > .cty-hero-bg { display: block !important; }
@media (max-width: 1024px) { body.cty .cty-hero-fan img { display: none !important; } }
body.cty.club-page .club-hero-premium .city-hero-premium__media .cty-hero-img .cty-hero-fan img,
body.cty.club-page .club-hero-premium .city-hero-premium__media .cty-hero-img img.cty-hero-bg { display: block !important; }
@media (max-width: 1024px) {
  body.cty.club-page .club-hero-premium .city-hero-premium__media .cty-hero-img .cty-hero-fan img { display: none !important; }
}

/* Annule la mise en page « affiche » de city-v2 (.cty-card) pour les lignes */
body.cty .club-event-card.cty-card.cty-row { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; }
body.cty .cty-card.cty-row .club-event-card__media { position: relative !important; inset: auto !important; aspect-ratio: 16 / 9 !important; height: auto !important; align-self: center; }
body.cty .cty-card.cty-row .club-event-card__media img { position: absolute !important; inset: 0 !important; height: 100% !important; }
body.cty .cty-card.cty-row .club-event-card__body { position: static !important; inset: auto !important; background: none !important; padding: 0 !important; }
body.cty .cty-card.cty-row .club-event-card__cta { position: static !important; inset: auto !important; }
body.cty .cty-card.cty-row .cty-row__date { align-self: center; height: 84px; }
body.cty .cty-card.cty-row .club-event-card__body { display: flex !important; flex-direction: column !important; justify-content: center !important; gap: 8px !important; height: auto !important; }
body.cty .cty-row .cty-rel { display: none !important; }
body.cty .cty-card.cty-row .club-event-card__cta { align-self: center !important; justify-self: end; }
@media (max-width: 900px) {
  body.cty .cty-card.cty-row .club-event-card__cta { justify-self: stretch !important; justify-content: center !important; }
}

/* ——— Prochain événement : carte cinéma ——— */
body.cty .city-spotlight-card.cty-spot {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important; align-items: center; gap: clamp(1.5rem, 4vw, 3rem) !important;
  padding: 14px clamp(1.25rem, 3vw, 2.5rem) 14px 14px !important; border-radius: 30px !important; border: 0 !important;
  background: #0b0b0a !important; box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.1), 0 40px 90px -45px rgba(0, 0, 0, 0.95) !important;
  transition: box-shadow 0.4s var(--c3-ease), transform 0.4s var(--c3-ease) !important;
}
body.cty .city-spotlight-card.cty-spot:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.5), 0 50px 100px -45px rgba(198, 166, 106, 0.45) !important; }
body.cty .cty-spot-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
body.cty .cty-spot-bg img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(50px) saturate(1.6) brightness(0.5); transform: scale(1.05); }
body.cty .cty-spot-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 10, 0.1) 0%, rgba(11, 11, 10, 0.55) 45%, rgba(11, 11, 10, 0.9) 100%);
}
body.cty .cty-spot .city-spotlight-card__media {
  position: relative !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; margin: 0 !important;
  overflow: hidden; border-radius: 20px !important; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(245, 244, 241, 0.12);
}
body.cty .cty-spot .city-spotlight-card__media img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 1s var(--c3-ease); }
body.cty .cty-spot:hover .city-spotlight-card__media img { transform: scale(1.05); }
body.cty .cty-spot .city-spotlight-card__body { display: grid !important; gap: 16px !important; padding: 0 !important; background: none !important; }
body.cty .cty-spot .city-kicker { display: inline-flex !important; align-items: center; gap: 9px; margin: 0 !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: 0.18em !important; text-transform: uppercase; color: var(--c3-gold) !important; }
body.cty .cty-spot .city-spotlight-card__title {
  margin: 0 !important; font-family: 'Montserrat', sans-serif !important; font-size: clamp(1.8rem, 3.4vw, 2.8rem) !important; font-weight: 800 !important;
  line-height: 1.05 !important; letter-spacing: -0.035em !important; text-transform: none !important; color: var(--c3-text) !important; text-wrap: balance;
}
body.cty .cty-spot-row { display: flex; align-items: center; gap: 16px; }
body.cty .cty-spot-date { min-height: 0 !important; height: 84px; width: 72px; flex: 0 0 auto; }
body.cty .cty-spot-info { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: rgba(245, 244, 241, 0.78); }
body.cty .cty-spot-info > span { display: inline-flex; align-items: center; gap: 8px; }
body.cty .cty-spot-info svg { width: 15px; height: 15px; color: var(--c3-gold); }
body.cty .cty-spot-count {
  justify-self: start; padding: 5px 11px; border-radius: 999px; background: rgba(95, 211, 141, 0.12);
  box-shadow: inset 0 0 0 1px rgba(95, 211, 141, 0.3); color: #7fdca4 !important; font-size: 12.5px !important; font-weight: 700 !important;
}
body.cty .cty-spot-count:empty { display: none; }
body.cty .cty-spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
body.cty .cty-spot-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.2); background: rgba(14, 14, 13, 0.4);
  color: var(--c3-text); font-size: 14.5px; font-weight: 700; white-space: nowrap;
}
body.cty .cty-spot-btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--c3-ease); }
body.cty .cty-spot-btn--gold { background: linear-gradient(135deg, var(--c3-gold-hi), var(--c3-gold)); color: #0b0a08; box-shadow: 0 16px 36px -14px rgba(198, 166, 106, 0.75); }
body.cty .cty-spot:hover .cty-spot-btn--gold svg { transform: translateX(3px); }
@media (max-width: 900px) {
  body.cty .city-spotlight-card.cty-spot { grid-template-columns: minmax(0, 1fr) !important; padding: 12px 12px 22px !important; gap: 20px !important; border-radius: 24px !important; }
  body.cty .cty-spot .city-spotlight-card__body { padding: 0 8px !important; }
  body.cty .cty-spot-actions .cty-spot-btn { flex: 1 1 auto; justify-content: center; }
}
