#bt-events-home {
  margin: 18px auto 0;
}

#bt-events-home[data-bt-events-moving="1"] {
  height: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}

#bt-events-home .bt-events-card {
  min-height: 220px;
  padding: 20px 22px;
  border: 1px solid #d3d3d3;
  background: #fff7f2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

#bt-events-home .bt-events-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid rgba(235, 89, 12, 0.22);
  padding-bottom: 10px;
}

#bt-events-home .bt-events-kicker {
  color: #f25a00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

#bt-events-home h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  text-transform: uppercase;
}

#bt-events-home h2 a {
  color: #4f4f4f;
  text-decoration: none;
}

#bt-events-home h2 a:hover,
#bt-events-home .bt-event-content h3 a:hover,
.bt-events-page a:hover,
.bt-event-detail a:hover {
  color: #f25a00;
  text-decoration: none;
}

#bt-events-home h2 {
  font-size: 21px;
  font-weight: 900;
  text-transform: uppercase;
}

#bt-events-home .bt-events-list {
  display: grid;
  gap: 10px;
}

#bt-events-home .bt-event-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#bt-events-home .bt-event-home-poster {
  display: none;
}

#bt-events-home .bt-event-item.has-poster {
  grid-template-columns: 54px 52px minmax(0, 1fr);
}

#bt-events-home .bt-event-item.has-poster .bt-event-home-poster {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid #d8d8d8;
  background: #fff;
  overflow: hidden;
}

#bt-events-home .bt-event-item.has-poster .bt-event-home-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bt-events-home .bt-event-date {
  display: flex;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #f25a00;
  background: linear-gradient(#ff7a21, #ed5200);
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.16);
}

#bt-events-home .bt-event-day {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

#bt-events-home .bt-event-month {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

#bt-events-home .bt-event-content h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

#bt-events-home .bt-event-content h3 a {
  color: #4f4f4f;
  text-decoration: none;
}

#bt-events-home .bt-event-when,
#bt-events-home .bt-event-place,
#bt-events-home .bt-event-description {
  margin: 0;
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.35;
}

#bt-events-home .bt-event-when {
  color: #ef5400;
  font-weight: 900;
}

#bt-events-home .bt-event-place {
  font-weight: 800;
}

#bt-events-home .bt-events-all,
.bt-event-link,
.bt-events-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  min-height: 35px;
  padding: 0 16px;
  border: 1px solid #d94b00;
  background: #f25a00 linear-gradient(#ff7a21, #ed5200 58%, #c74700);
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.16);
}

#czbannercmsblock .bt-events-placeholder {
  display: block !important;
  grid-area: event !important;
  min-height: 220px;
  width: 100% !important;
  float: none !important;
  clear: none !important;
}

#czbannercmsblock .bt-events-placeholder #bt-events-home {
  display: block !important;
  height: 100%;
  margin: 0 !important;
  overflow: visible;
  visibility: visible;
}

#czbannercmsblock .bt-events-placeholder #bt-events-home .bt-events-card {
  height: 100%;
}

.bt-events-page,
.bt-event-detail {
  box-sizing: border-box;
  max-width: 1120px;
  margin: 24px auto 34px;
  padding: 0;
  border: 1px solid #cfcfcf;
  background:
    linear-gradient(135deg, rgba(242, 90, 0, 0.08) 0 28%, transparent 28% 100%),
    #f4f4f4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  font-family: Roboto, Arial, sans-serif;
}

.bt-events-page *,
.bt-event-detail * {
  box-sizing: border-box;
}

.bt-event-detail > .bt-events-back {
  margin: 16px 0 18px 24px;
}

.bt-events-page-hero,
.bt-event-detail-hero {
  position: relative;
  min-height: 210px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(239, 79, 0, 0.96), rgba(255, 112, 24, 0.93)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 18px);
}

.bt-events-page-hero::after,
.bt-event-detail-hero::after {
  content: "AGENDA";
  position: absolute;
  right: -18px;
  bottom: -27px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 78px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.bt-events-hero-card,
.bt-event-detail-title {
  position: relative;
  z-index: 1;
  max-width: 540px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 247, 242, 0.94);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.bt-events-page .bt-events-kicker,
.bt-event-detail .bt-events-kicker {
  display: block;
  margin-bottom: 6px;
  color: #f25a00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bt-events-page-hero h1,
.bt-event-detail h1 {
  margin: 3px 0 8px;
  color: #4f4f4f;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.bt-events-page-hero p,
.bt-event-meta,
.bt-event-row-content p,
.bt-event-detail-text {
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.55;
}

.bt-events-page-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.bt-event-row {
  display: grid !important;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d6d6d6;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.11);
}

.bt-event-row-media {
  position: relative;
  min-height: 210px;
  border: 1px solid #d8d8d8;
  background: #f4f4f4;
  overflow: hidden;
}

.bt-events-page .bt-event-date {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 72px;
}

.bt-event-poster {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(239, 79, 0, 0.95), rgba(255, 112, 24, 0.92)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 18px);
}

.bt-event-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
}

.bt-event-poster-empty span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.bt-event-row-content h2 {
  margin: 0 0 5px;
  min-height: 48px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.bt-event-row-content h2 a {
  color: #4f4f4f;
  text-decoration: none;
}

.bt-event-row-content p {
  margin: 0 0 8px;
}

.bt-event-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.bt-event-meta-grid span,
.bt-event-detail-infos div {
  border: 1px solid #dedede;
  background: #fff7f2;
  color: #4f4f4f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.bt-event-meta-grid span {
  padding: 7px 10px;
}

.bt-event-row .bt-event-link {
  margin-top: 8px;
}

.bt-event-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 24px;
  align-items: stretch;
}

.bt-event-detail-hero .bt-event-date {
  position: relative;
  z-index: 1;
  display: flex;
  width: 78px;
  min-width: 78px;
  min-height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #f25a00;
  background: linear-gradient(#ff7a21, #ed5200);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.16);
}

.bt-event-detail-hero .bt-event-day {
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.bt-event-detail-hero .bt-event-month {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.bt-event-detail-title {
  display: flex;
  min-height: 100%;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 26px 28px;
}

.bt-event-detail-title-head {
  display: flex;
  gap: 18px;
  align-items: center;
}

.bt-event-detail-hero-infos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bt-event-detail-hero-infos div {
  padding: 13px 14px;
  border: 1px solid rgba(242, 90, 0, 0.2);
  background: #fff;
}

.bt-event-detail-hero-infos span {
  display: block;
  margin-bottom: 4px;
  color: #f25a00;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bt-event-detail-hero-infos strong {
  display: block;
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.35;
}

.bt-event-detail-poster {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.bt-event-detail-poster a {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.bt-event-detail-poster a::after {
  content: "Agrandir";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  background: rgba(242, 90, 0, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bt-event-detail-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}

.bt-event-viewer-open,
.bt-event-viewer-open body {
  overflow: hidden;
}

.bt-event-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.86);
  cursor: zoom-out;
}

.bt-event-image-viewer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 820px);
  height: min(92vh, 1160px);
  cursor: default;
}

.bt-event-image-viewer__inner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.46);
}

.bt-event-image-viewer__close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.44);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  font-weight: 900;
  cursor: pointer;
}

.bt-event-image-viewer__close:hover,
.bt-event-image-viewer__close:focus {
  background: #f25a00;
  outline: none;
}

.bt-event-detail .bt-event-date,
.bt-events-page .bt-event-date {
  min-height: 72px;
}

.bt-event-detail-infos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 24px 0;
}

.bt-event-detail-infos div {
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bt-event-detail-infos span {
  display: block;
  margin-bottom: 4px;
  color: #f25a00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bt-event-detail-infos strong {
  display: block;
  color: #4f4f4f;
  font-size: 15px;
}

.bt-event-detail-text {
  margin: 24px;
  padding: 20px;
  border: 1px solid #d6d6d6;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bt-event-detail-text h2 {
  margin: 0 0 12px;
  color: #4f4f4f;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.bt-events-empty {
  margin: 24px;
  padding: 18px;
  border: 1px solid #e1e1e1;
  background: #fff;
}

@media (max-width: 991px) {
  .bt-events-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #bt-events-home .bt-events-card {
    padding: 16px;
  }

  #bt-events-home .bt-events-heading {
    display: block;
  }

  #bt-events-home h2 {
    margin-top: 3px;
    font-size: 19px;
  }

  .bt-events-page,
  .bt-event-detail {
    padding: 0;
  }

  .bt-events-page-hero,
  .bt-event-detail-hero {
    padding: 18px;
  }

  .bt-events-hero-card,
  .bt-event-detail-title {
    padding: 16px;
  }

  .bt-events-page-hero h1,
  .bt-event-detail h1 {
    font-size: 24px;
  }

  .bt-event-detail-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .bt-events-page-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .bt-event-row {
    gap: 14px;
    padding: 16px;
  }

  .bt-event-detail-infos {
    padding: 16px;
  }

  .bt-event-row .bt-event-date {
    width: 64px;
  }

  .bt-event-detail-hero {
    grid-template-columns: 1fr;
  }

  .bt-event-detail-poster {
    grid-column: auto;
  }

  .bt-event-detail-hero-infos {
    grid-template-columns: 1fr;
  }

  .bt-event-detail-title-head {
    align-items: flex-start;
  }

  .bt-event-detail-infos {
    grid-template-columns: 1fr;
  }

  .bt-event-detail-text {
    margin: 16px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  #bt-events-home .bt-event-item,
  #bt-events-home .bt-event-item.has-poster {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  #bt-events-home .bt-event-home-poster {
    display: none !important;
  }

  .bt-event-detail > .bt-events-back {
    margin: 14px 0 16px 16px;
  }

  .bt-event-detail-title-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bt-event-detail-hero .bt-event-date {
    width: 68px;
    min-width: 68px;
    min-height: 68px;
  }

  .bt-event-detail-poster img {
    max-height: none;
  }

  .bt-event-image-viewer {
    padding: 14px;
  }

  .bt-event-image-viewer__close {
    top: 10px;
    right: 10px;
  }
}
