/* Club Boissy — Event detail WOW premium */
body.view-event,
.bclub-ed {
  --bclub-terra: #c5381c;
  --bclub-terra-dark: #9e3116;
  --bclub-lime: #b8cf4b;
  --bclub-cta: #04b404;
  --bclub-cta-dark: #038a03;
  --bclub-ink: #252525;
  --bclub-muted: #6a635c;
  --bclub-paper: #ffffff;
  --bclub-sand: #f4eee7;
  --bclub-mat: #ebe3d8;
  --bclub-line: #ddd4c8;
  --bclub-font: "Poppins", system-ui, sans-serif;
}

body.view-event {
  background: var(--bclub-sand);
}

body.view-event #sp-main-body {
  background: var(--bclub-sand);
}

/* Masque le bandeau Helix "Actualités" / titre de menu parasite */
body.view-event #sp-subheader,
body.view-event #sp-title,
body.view-event .sp-page-title {
  display: none !important;
}

.bclub-ed {
  font-family: var(--bclub-font);
  color: var(--bclub-ink);
}

.bclub-ed__shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.bclub-ed__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bclub-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bclub-ed__back:hover {
  color: var(--bclub-terra);
  text-decoration: none;
}

/* Hero éditorial : flyer + intro */
.bclub-ed__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.75rem;
  align-items: stretch;
  margin: 0 0 1.75rem;
  animation: bclub-ed-rise 0.55s ease both;
}

.bclub-ed__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 380px;
  height: 100%;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, #faf7f2 0%, var(--bclub-mat) 100%);
  border: 1px solid var(--bclub-line);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(37, 37, 37, 0.08);
  overflow: hidden;
}

.bclub-ed__stage--empty {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(184, 207, 75, 0.22), transparent 55%),
    var(--bclub-mat);
}

.bclub-ed__flyer,
.bclub-ed img.eb-event-large-image,
.bclub-ed img.eb-thumb-left {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: min(72vh, 560px) !important;
  margin: 0 auto !important;
  float: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(37, 37, 37, 0.06),
    0 18px 36px rgba(37, 37, 37, 0.16);
  background: transparent;
}

.bclub-ed__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem 1.6rem 1.65rem;
  background: var(--bclub-paper);
  border: 1px solid var(--bclub-line);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(37, 37, 37, 0.07);
  animation: bclub-ed-rise 0.65s ease 0.08s both;
}

.bclub-ed__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bclub-muted);
}

.bclub-ed__date {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--bclub-terra);
  line-height: 1.4;
}

.bclub-ed__title,
.bclub-ed .eb-page-heading {
  margin: 0.15rem 0 0 !important;
  padding: 0 !important;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--bclub-ink) !important;
}

.bclub-ed__title #pop-print,
.bclub-ed .eb-page-heading #pop-print {
  display: none !important;
}

.bclub-ed__price {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bclub-terra);
  text-transform: capitalize;
}

.bclub-ed__location {
  margin: 0.15rem 0 0;
  color: var(--bclub-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.bclub-ed__location a {
  color: var(--bclub-muted);
  text-decoration: none;
}

.bclub-ed__location a:hover {
  color: var(--bclub-terra);
  text-decoration: underline;
}

/* Panels */
.bclub-ed__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bclub-ed__panel {
  margin: 0;
  padding: 1.35rem 1.45rem 1.5rem;
  background: var(--bclub-paper);
  border: 1px solid var(--bclub-line);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(37, 37, 37, 0.05);
  animation: bclub-ed-rise 0.55s ease 0.14s both;
}

.bclub-ed__panel-mark {
  width: 2.2rem;
  height: 0.22rem;
  margin: 0 0 0.75rem;
  border-radius: 999px;
  background: var(--bclub-lime);
}

.bclub-ed__panel-title,
.bclub-ed #eb-event-properties-heading,
.bclub-ed .eb-horizontal-plugin-header {
  margin: 0 0 1rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--bclub-ink) !important;
}

.bclub-ed__prose {
  color: var(--bclub-ink);
  font-size: 1rem;
  line-height: 1.65;
}

.bclub-ed__prose img {
  max-width: 100% !important;
  height: auto !important;
}

.bclub-ed__prose table {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.bclub-ed__prose table td {
  width: auto !important;
}

/* Properties table → premium key/value */
.bclub-ed__props .table,
.bclub-ed #eb-event-info .table {
  width: 100%;
  margin: 0;
  border: 0 !important;
  background: transparent;
}

.bclub-ed__props .table > tbody > tr > td,
.bclub-ed #eb-event-info .table > tbody > tr > td {
  border: 0 !important;
  border-bottom: 1px solid var(--bclub-line) !important;
  padding: 0.85rem 0.15rem !important;
  background: transparent !important;
  vertical-align: top;
}

.bclub-ed__props .table > tbody > tr:last-child > td,
.bclub-ed #eb-event-info .table > tbody > tr:last-child > td {
  border-bottom: 0 !important;
}

.bclub-ed .eb-event-property-label {
  width: 38%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bclub-muted);
}

.bclub-ed .eb-event-property-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bclub-ink);
}

/* Actions / CTA */
.bclub-ed__actions {
  margin-top: 0.85rem;
}

.bclub-ed__actions--bottom {
  margin: 0;
  padding: 1.2rem 1.35rem;
  background: var(--bclub-paper);
  border: 1px solid var(--bclub-line);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(37, 37, 37, 0.05);
}

.bclub-ed .eb-taskbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bclub-ed .eb-taskbar li {
  float: none !important;
  margin: 0 !important;
}

.bclub-ed .eb-taskbar a,
.bclub-ed .eb-taskbar .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bclub-ed .eb-taskbar .btn-primary,
.bclub-ed .eb-taskbar a.btn-primary {
  background: var(--bclub-cta) !important;
  border: 1px solid var(--bclub-cta) !important;
  color: #fff !important;
}

.bclub-ed .eb-taskbar .btn-primary:hover,
.bclub-ed .eb-taskbar a.btn-primary:hover {
  background: var(--bclub-cta-dark) !important;
  border-color: var(--bclub-cta-dark) !important;
}

.bclub-ed .eb-taskbar a.btn:not(.btn-primary),
.bclub-ed .eb-taskbar .btn:not(.btn-primary) {
  background: #fff !important;
  border: 1px solid var(--bclub-line) !important;
  color: var(--bclub-terra) !important;
}

.bclub-ed .eb-taskbar a.btn:not(.btn-primary):hover,
.bclub-ed .eb-taskbar .btn:not(.btn-primary):hover {
  border-color: var(--bclub-terra) !important;
  background: rgba(197, 56, 28, 0.06) !important;
}

.bclub-ed .eb-event-message,
.bclub-ed .alert,
.bclub-ed .text-info {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  background: var(--bclub-paper);
  border: 1px solid var(--bclub-line);
  color: var(--bclub-muted);
  font-size: 0.92rem;
}

.bclub-ed .img-polaroid {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@keyframes bclub-ed-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .bclub-ed__hero {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .bclub-ed__stage {
    min-height: 260px;
  }

  .bclub-ed__flyer,
  .bclub-ed img.eb-event-large-image {
    max-height: min(58vh, 420px) !important;
  }
}

@media (max-width: 640px) {
  .bclub-ed__shell {
    padding: 0.75rem 0 2.25rem;
  }

  .bclub-ed__intro,
  .bclub-ed__panel,
  .bclub-ed__actions--bottom {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .bclub-ed__stage {
    padding: 0.85rem;
  }

  .bclub-ed .eb-event-property-label,
  .bclub-ed .eb-event-property-value {
    display: block;
    width: 100%;
  }

  .bclub-ed .eb-event-property-label {
    margin-bottom: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bclub-ed__hero,
  .bclub-ed__intro,
  .bclub-ed__panel {
    animation: none;
  }
}
