/* Original card nodes, contents, backgrounds and click handlers remain intact. */
.rowhisto.hsx-ready, .histoire-slider.hsx-ready {
  --hsx-columns: 6;
  --hsx-gap: 24px;
  --hsx-accent: #2cb17e;
}
.hsx-ready > .row_col_wrap_12.hsx-track {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: flex-start !important;
  gap: var(--hsx-gap) !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hsx-ready > .row_col_wrap_12.hsx-track::-webkit-scrollbar { display: none; }
.hsx-ready > .row_col_wrap_12.hsx-track::before,
.hsx-ready > .row_col_wrap_12.hsx-track::after { display: none !important; }
.hsx-ready > .row_col_wrap_12.hsx-track > .wpb_column {
  flex: 0 0 calc((100% - (var(--hsx-columns) - 1) * var(--hsx-gap)) / var(--hsx-columns)) !important;
  width: calc((100% - (var(--hsx-columns) - 1) * var(--hsx-gap)) / var(--hsx-columns)) !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  scroll-snap-align: start;
}
.hsx-ready > .hsx-controls {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  clear: both;
}
.hsx-ready > .hsx-controls[hidden] { display: none !important; }
.hsx-controls .hsx-status {
  margin-right: 8px;
  color: #596675;
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.hsx-controls button.hsx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid var(--hsx-accent);
  border-radius: 50%;
  background: transparent;
  color: #246e55;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  transition: color 160ms, background-color 160ms, opacity 160ms;
}
.hsx-controls button.hsx-button:hover:not(:disabled) { background: var(--hsx-accent); color: #fff; }
.hsx-controls button.hsx-button:disabled { opacity: .32; cursor: default; }
.hsx-controls button.hsx-button:focus-visible,
.hsx-ready > .hsx-track:focus-visible { outline: 3px solid var(--hsx-accent); outline-offset: 3px; }
.hsx-button svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1299px) {
  .rowhisto.hsx-ready, .histoire-slider.hsx-ready { --hsx-columns: 4; }
}
@media (max-width: 999px) {
  .rowhisto.hsx-ready, .histoire-slider.hsx-ready { --hsx-columns: 2; --hsx-gap: 20px; }
}
@media (max-width: 640px) {
  .rowhisto.hsx-ready, .histoire-slider.hsx-ready { --hsx-columns: 1; --hsx-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hsx-controls button.hsx-button { transition: none; }
}
