.rjc-event-explorer {
  --rjce-ink: #081c49;
  --rjce-paper: #f5f0e7;
  --rjce-garnet: #a72f42;
  --rjce-gold: #d5aa55;
  width: 100%;
  margin: clamp(3rem, 8vw, 6rem) 0 1rem;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(8, 28, 73, .2);
  color: var(--rjce-ink);
}

.rjc-event-explorer__header {
  display: grid;
  gap: .45rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rjc-event-explorer__eyebrow,
.rjc-event-explorer .rjc-explorer-card__meta {
  font-family: inherit;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rjc-event-explorer__eyebrow {
  color: var(--rjce-garnet);
}

.rjc-event-explorer__header h2 {
  margin: 0;
  color: var(--rjce-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.rjc-event-explorer__header p {
  margin: .35rem 0 0;
  color: #506078;
  font-size: clamp(.96rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.rjc-event-explorer__group + .rjc-event-explorer__group {
  margin-top: clamp(2.25rem, 5vw, 4rem);
}

.rjc-event-explorer__group > h3 {
  margin: 0 0 1rem;
  color: var(--rjce-ink);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -.015em;
}

.rjc-event-companion-shell {
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.rjc-event-companion-shell .rjc-agenda-companion {
  margin: 0;
}

body.home #agenda .rjc-event-status {
  display: none !important;
}

body.home #agenda .rjc-home-agenda__venue {
  margin: .7rem 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
}

body.home #agenda .rjc-home-agenda__venue::before {
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  margin-right: .55rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, .45);
  content: "";
}

/* Notre Sélection du moment — slider éditorial compact */
body.post-type-archive-rjc_event .rjc-agenda-spotlight {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.45rem) 0 clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(213, 170, 85, .2), transparent 25%),
    linear-gradient(135deg, #071747 0%, #0d245f 62%, #40182b 100%);
  box-shadow: 0 30px 70px rgba(7, 23, 71, .22);
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight::before {
  position: absolute;
  z-index: -1;
  top: -11rem;
  right: -8rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 4.5rem rgba(255, 255, 255, .025);
  content: "";
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__heading {
  position: relative;
  z-index: 2;
  align-items: end;
  padding: 0 clamp(1.25rem, 3vw, 2.6rem) clamp(.9rem, 2vw, 1.3rem);
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__heading .rjc-kicker {
  margin-bottom: .55rem;
  color: #d5aa55;
  letter-spacing: .19em;
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__heading h2 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.25vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__controls {
  display: flex;
  align-items: center;
  gap: .55rem;
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__controls button {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: .95rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__controls button:hover,
body.post-type-archive-rjc_event .rjc-agenda-spotlight__controls button:focus-visible {
  color: #071747;
  background: #d5aa55;
  transform: translateY(-2px);
}

body.post-type-archive-rjc_event .rjc-riviera-slider-count {
  min-width: 4.6rem;
  color: rgba(255, 255, 255, .72);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: right;
}

body.post-type-archive-rjc_event .rjc-riviera-slider-toggle {
  font-size: .72rem;
  letter-spacing: -.08em;
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__track {
  grid-auto-columns: calc(100% - clamp(7rem, 22vw, 17rem));
  gap: clamp(.85rem, 2vw, 1.4rem);
  padding: 0 clamp(1.25rem, 3vw, 2.6rem) .8rem;
  scroll-padding-left: clamp(1.25rem, 3vw, 2.6rem);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.post-type-archive-rjc_event .rjc-agenda-spotlight__track::-webkit-scrollbar {
  display: none;
}

body.post-type-archive-rjc_event .rjc-spotlight-card,
body.post-type-archive-rjc_event .rjc-spotlight-card--text-only {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: clamp(235px, 27vw, 305px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.15rem;
  background:
    linear-gradient(115deg, rgba(7, 23, 71, .1), rgba(7, 23, 71, .72)),
    linear-gradient(135deg, #a72f42, #071747 76%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .24);
  scroll-snap-align: start;
}

body.post-type-archive-rjc_event .rjc-spotlight-card:nth-child(2) {
  background:
    linear-gradient(115deg, rgba(7, 23, 71, .04), rgba(7, 23, 71, .74)),
    linear-gradient(135deg, #d5aa55, #a72f42 55%, #071747 100%);
}

body.post-type-archive-rjc_event .rjc-spotlight-card:nth-child(3) {
  background:
    linear-gradient(115deg, rgba(7, 23, 71, .05), rgba(7, 23, 71, .76)),
    linear-gradient(135deg, #244891, #071747 64%, #a72f42 100%);
}

body.post-type-archive-rjc_event .rjc-spotlight-card::after {
  position: absolute;
  z-index: -1;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: -1.15rem;
  color: rgba(255, 255, 255, .08);
  content: "01";
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: .75;
}

body.post-type-archive-rjc_event .rjc-spotlight-card:nth-child(2)::after {
  content: "02";
}

body.post-type-archive-rjc_event .rjc-spotlight-card:nth-child(3)::after {
  content: "03";
}

body.post-type-archive-rjc_event .rjc-spotlight-card__body,
body.post-type-archive-rjc_event .rjc-spotlight-card--text-only .rjc-spotlight-card__body {
  display: flex;
  min-height: clamp(235px, 27vw, 305px);
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 2.7vw, 2.25rem);
  color: #fff;
  background: transparent;
}

body.post-type-archive-rjc_event .rjc-spotlight-card__labels span {
  display: inline-flex;
  padding: .45rem .65rem;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: .58rem;
  letter-spacing: .16em;
}

body.post-type-archive-rjc_event .rjc-spotlight-card time {
  margin-top: auto;
  color: #f0d89c;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.post-type-archive-rjc_event .rjc-spotlight-card h3 {
  max-width: 18ch;
  margin: .75rem 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body.post-type-archive-rjc_event .rjc-spotlight-card__venue {
  margin: .9rem 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
}

body.post-type-archive-rjc_event .rjc-spotlight-card__body > a {
  margin-top: 1.35rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .58);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  body.post-type-archive-rjc_event .rjc-agenda-spotlight {
    border-radius: .9rem;
  }

  body.post-type-archive-rjc_event .rjc-agenda-spotlight__heading {
    align-items: flex-end;
  }

  body.post-type-archive-rjc_event .rjc-agenda-spotlight__heading h2 {
    max-width: 13ch;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  body.post-type-archive-rjc_event .rjc-agenda-spotlight__controls button {
    width: 2.35rem;
    height: 2.35rem;
  }

  body.post-type-archive-rjc_event .rjc-riviera-slider-count {
    display: none;
  }

  body.post-type-archive-rjc_event .rjc-agenda-spotlight__track {
    grid-auto-columns: 82%;
  }

  body.post-type-archive-rjc_event .rjc-spotlight-card,
  body.post-type-archive-rjc_event .rjc-spotlight-card--text-only,
  body.post-type-archive-rjc_event .rjc-spotlight-card__body,
  body.post-type-archive-rjc_event .rjc-spotlight-card--text-only .rjc-spotlight-card__body {
    min-height: 270px;
  }

  body.post-type-archive-rjc_event .rjc-spotlight-card h3 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

.rjc-explorer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.rjc-explorer-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 14px 38px rgba(8, 28, 73, .12);
}

.rjc-explorer-card a {
  display: flex;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.rjc-explorer-card__media {
  display: block;
  flex: 0 0 38%;
  min-height: 10.5rem;
  overflow: hidden;
}

.rjc-explorer-card__image {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .45s ease;
}

.rjc-explorer-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.45rem);
}

.rjc-explorer-card__body strong {
  display: block;
  margin-top: .65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.rjc-explorer-card__arrow {
  display: block;
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: .82rem;
  font-style: normal;
  font-weight: 800;
}

.rjc-explorer-card__excerpt {
  display: -webkit-box;
  margin-top: .7rem;
  overflow: hidden;
  font-size: .86rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rjc-explorer-card:nth-child(3n + 1) {
  background: var(--rjce-ink);
  color: #fff;
}

.rjc-explorer-card:nth-child(3n + 2) {
  background: var(--rjce-garnet);
  color: #fff;
}

.rjc-explorer-card:nth-child(3n) {
  background: var(--rjce-gold);
  color: var(--rjce-ink);
}

.rjc-explorer-card--no-media::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: .45rem;
  background: rgba(255, 255, 255, .34);
  content: "";
}

.rjc-explorer-card:nth-child(3n).rjc-explorer-card--no-media::before {
  background: rgba(8, 28, 73, .28);
}

.rjc-explorer-card a:hover .rjc-explorer-card__image,
.rjc-explorer-card a:focus-visible .rjc-explorer-card__image {
  transform: scale(1.04);
}

.rjc-explorer-card a:focus-visible,
.rjc-explorer-entity:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

@media (max-width: 760px) {
  .rjc-explorer-grid {
    grid-template-columns: 1fr;
  }

  .rjc-explorer-card__media {
    flex-basis: 34%;
    min-height: 9.5rem;
  }
}

@media (max-width: 480px) {
  .rjc-event-explorer {
    margin-top: 3.25rem;
  }

  .rjc-explorer-card a {
    flex-direction: column;
  }

  .rjc-explorer-card__media {
    flex-basis: auto;
    height: 11rem;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rjc-explorer-card__image {
    transition: none;
  }
}
