/* ==========================================================================
   Accueil — « Nos événements du moment » (#current-events)
   Cartes : photo 16/9 avec halo de couleur, pavé date, line-up ; inclinaison 3D au survol.
   Le balisage des cartes vient de createEventCard() dans js/main.js.
   ========================================================================== */
#current-events {
  --hev-text: #f5f4f1;
  --hev-muted: rgba(245, 244, 241, 0.62);
  --hev-faint: rgba(245, 244, 241, 0.4);
  --hev-line: rgba(245, 244, 241, 0.09);
  --hev-gold: #c6a66a;
  --hev-gold-hi: #d4b984;
  --hev-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  background: #050505 !important;
}
#current-events, #current-events * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; }
#current-events > .container { max-width: 1180px !important; margin: 0 auto !important; padding-left: 24px !important; padding-right: 24px !important; }

/* En-tête */
#current-events .hev-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
  text-align: left !important;
}
#current-events .hev-head-copy { max-width: 640px; }
.hev-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hev-gold); }
.hev-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--hev-gold); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.18); }
#current-events .current-events-title {
  margin: 0 0 10px !important;
  font-size: clamp(2rem, 4.2vw, 3.1rem) !important;
  font-weight: 800 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  text-align: left !important;
  text-transform: none !important;
  color: var(--hev-text) !important;
}
#current-events .current-events-subtitle { margin: 0 !important; font-size: 15.5px !important; line-height: 1.6 !important; text-align: left !important; color: var(--hev-muted) !important; }
.hev-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 244, 241, 0.16);
  color: var(--hev-text) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.hev-all svg { width: 16px; height: 16px; color: var(--hev-gold); transition: transform 0.2s var(--hev-ease); }
.hev-all:hover { border-color: rgba(198, 166, 106, 0.6); background: rgba(198, 166, 106, 0.06); }
.hev-all:hover svg { transform: translateX(3px); }

/* Filtres */
#current-events .current-events-filter { display: flex !important; justify-content: flex-start !important; margin: 0 0 28px !important; padding: 0 !important; }
#current-events .current-events-filter-rail { margin-left: 0 !important; margin-right: auto !important; }

/* Grille */
#current-events .current-events-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 44px 28px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Carte : halo de couleur de l'affiche, photo 16/9, pavé date, reflet et inclinaison 3D au survol (js/main.js) */
#current-events .current-event-card {
  position: relative !important;
  display: block !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
  isolation: isolate;
  outline: none;
  color: inherit;
}
#current-events .current-event-card::before { display: none !important; }
#current-events .current-event-card:hover,
#current-events .current-event-card:focus-visible { box-shadow: none !important; outline: none; }

/* Halo : copie floue de l'affiche qui teinte le fond autour de la photo */
#current-events .current-event-ambient {
  position: absolute;
  z-index: -1;
  top: 7%;
  left: 7%;
  width: 86%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  opacity: 0.55;
  filter: blur(34px) saturate(1.8);
  transform: translateZ(0) scale(0.96);
  transition: opacity 0.6s var(--hev-ease), transform 0.6s var(--hev-ease);
  pointer-events: none;
}
#current-events .current-event-ambient img,
#current-events .current-event-ambient picture { display: block; width: 100%; height: 100%; object-fit: cover; }
#current-events .current-event-card:hover .current-event-ambient,
#current-events .current-event-card:focus-visible .current-event-ambient { opacity: 0.9; transform: translateZ(0) scale(1.1); }

#current-events .current-event-main {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: perspective(1100px) rotateX(var(--ce-rx, 0deg)) rotateY(var(--ce-ry, 0deg)) translateY(var(--ce-lift, 0px));
  transition: transform 0.7s var(--hev-ease);
  will-change: transform;
}
#current-events .current-event-card:hover .current-event-main,
#current-events .current-event-card:focus-visible .current-event-main { --ce-lift: -6px; }
#current-events .current-event-card.is-tilting .current-event-main { transition: transform 0.14s linear; }

/* Photo */
#current-events .current-event-image {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  background: #151514 !important;
  box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.95);
  transform: translateZ(0);
}
#current-events .current-event-image-inner {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: none !important;
}
#current-events .current-event-image-inner img,
#current-events .current-event-image-inner picture {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 1.1s var(--hev-ease), filter 0.6s ease !important;
}
/* Affiche entière (jamais recadrée), centrée sur un fond flouté tiré de la même image */
#current-events .current-event-image-inner img,
#current-events .current-event-image-inner picture img {
  object-fit: contain !important;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.65));
}
#current-events .current-event-image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
#current-events .current-event-image-bg img,
#current-events .current-event-image-bg picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.5) brightness(0.55);
  transform: scale(1.25);
  transition: transform 1.2s var(--hev-ease), filter 0.6s ease;
}
#current-events .current-event-image-inner { z-index: 1; }
#current-events .current-event-card:hover .current-event-image-inner img,
#current-events .current-event-card:focus-visible .current-event-image-inner img { transform: scale(1.04) !important; }
#current-events .current-event-card:hover .current-event-image-bg img { transform: scale(1.35); filter: blur(26px) saturate(1.7) brightness(0.65); }
#current-events .current-event-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0) 34%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 34%);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.1);
  transition: box-shadow 0.4s ease;
}
#current-events .current-event-card:hover .current-event-image::after,
#current-events .current-event-card:focus-visible .current-event-image::after { box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.55); }

/* Reflet qui suit la souris */
#current-events .current-event-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at var(--ce-mx, 50%) var(--ce-my, 0%), rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 48%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#current-events .current-event-card:hover .current-event-glare { opacity: 1; }

/* Pavé date */
#current-events .current-event-image:has(.current-event-date-tile) .current-event-date-badge { display: none !important; }
#current-events .current-event-date-tile {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 7px 8px 8px;
  border-radius: 14px;
  background: rgba(10, 10, 9, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.16), 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  line-height: 1;
  text-align: center;
}
#current-events .cedt-wd { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; color: var(--hev-gold); }
#current-events .cedt-day { margin: 4px 0 3px; font-size: 24px; font-weight: 800; letter-spacing: -0.04em; color: var(--hev-text); }
#current-events .cedt-mo { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--hev-muted); }
#current-events .current-event-date-badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 3 !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(10, 10, 9, 0.55) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.16) !important;
  color: var(--hev-text) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

/* Badges Top event / Nouveau */
#current-events .current-event-badges {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  z-index: 3 !important;
  display: flex !important;
  gap: 6px !important;
}
#current-events .current-event-badge {
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8) !important;
}
#current-events .current-event-badge-top { background: linear-gradient(135deg, var(--hev-gold-hi), var(--hev-gold)) !important; color: #0b0a08 !important; }
#current-events .current-event-badge-new { background: rgba(245, 244, 241, 0.94) !important; color: #0b0a08 !important; }

/* Bouton Réserver sur la photo */
#current-events .current-event-cta {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hev-gold-hi), var(--hev-gold));
  color: #0b0a08;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px -10px rgba(198, 166, 106, 0.75);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.45s var(--hev-ease);
}
#current-events .current-event-cta svg { width: 15px; height: 15px; transition: transform 0.3s var(--hev-ease); }
#current-events .current-event-card:hover .current-event-cta,
#current-events .current-event-card:focus-visible .current-event-cta { opacity: 1; transform: none; }
#current-events .current-event-card:hover .current-event-cta svg { transform: translateX(2px); }

/* Infos sous la photo */
#current-events .current-event-info {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  align-content: start !important;
  flex: 1 1 auto !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 16px 4px 0 !important;
  background: none !important;
}
#current-events .current-event-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hev-gold);
}
#current-events .current-event-time::before {
  content: '';
  width: 12px;
  height: 12px;
  background: currentColor;
  -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' stroke-linejoin='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' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
#current-events .current-event-info-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
  color: var(--hev-text) !important;
  transition: color 0.3s ease;
}
#current-events .current-event-card:hover .current-event-info-title { color: #fff !important; }
#current-events .current-event-lineup {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(245, 244, 241, 0.82);
}
#current-events .current-event-lineup i { margin: 0 7px; font-style: normal; color: var(--hev-gold); }
#current-events .current-event-lineup span { color: var(--hev-faint); }
#current-events .current-event-info-venue {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  color: var(--hev-muted) !important;
}
#current-events .current-event-info-venue::before {
  content: '';
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: var(--hev-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' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%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' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
#current-events .current-event-info-venue span { overflow: hidden; text-overflow: ellipsis; }

/* Voir plus */
#current-events .current-events-load-more { margin-top: 36px !important; text-align: center; }
#current-events .load-more-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 50px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(198, 166, 106, 0.5) !important;
  background: transparent !important;
  color: var(--hev-gold) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s !important;
}
#current-events .load-more-button:hover { background: var(--hev-gold) !important; color: #0b0a08 !important; }

/* États vide / erreur / chargement */
#current-events .events-empty,
#current-events .events-error,
#current-events .events-loading { grid-column: 1 / -1; padding: 48px 20px; border-radius: 24px; text-align: center; color: var(--hev-muted); box-shadow: inset 0 0 0 1px var(--hev-line); }

/* Responsive */
@media (max-width: 1024px) {
  #current-events .current-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 36px 20px !important; }
}
@media (max-width: 640px) {
  #current-events > .container { padding-left: 16px !important; padding-right: 16px !important; }
  #current-events .hev-head { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; margin-bottom: 22px !important; }
  #current-events .current-events-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
  #current-events .current-event-image { border-radius: 18px !important; }
  #current-events .current-event-ambient { opacity: 0.45; }
  #current-events .current-event-info { padding-top: 14px !important; }
  #current-events .current-event-info-title { font-size: 18px !important; }
}
@media (hover: none) {
  #current-events .current-event-cta { opacity: 1; transform: none; height: 32px; padding: 0 12px 0 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #current-events .current-event-main,
  #current-events .current-event-ambient,
  #current-events .current-event-image-inner img,
  #current-events .current-event-cta { transition: none !important; transform: none !important; }
}
