/* Force les blocs ACF en pleine largeur si le thème les contraint */
.section-rte-1-2026.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.rte-block-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body {
  overflow-x: hidden;
}

.flickity-slider {
  display: block !important;
}

:root {
  --rte-container-offset: 90px;
}

@media (min-width: 1340px) {
  :root {
    --rte-container-offset: calc((100vw - 1350px) / 2);
  }
}

.main-carousel-rte-2-2026 .carousel-cell:first-child {
  padding-left: var(--rte-container-offset);
  width: calc(25% + var(--rte-container-offset));
}

@media (max-width: 991px) {
  :root {
    --rte-container-offset: 40px;
  }

  .main-carousel-rte-2-2026 .carousel-cell:first-child {
    width: calc(30% + var(--rte-container-offset));
  }
}

@media (max-width: 767px) {
  :root {
    --rte-container-offset: 20px;
  }

  .main-carousel-rte-2-2026 .carousel-cell:first-child {
    width: calc(85% + var(--rte-container-offset));
  }
}

.main-carousel-rte-2-2026 .flickity-page-dots {
  display: none !important;
}

.rte2-progress-wrap {
  width: 38%;
  max-width: 480px;
  min-width: 320px;
  height: 2px;
  margin: 52px auto 0;
  background: #d4d4d4;
  position: relative;
  overflow: hidden;
}

.rte2-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
  background: #111;
  transform: translateX(0);
  transition: transform 0.08s linear;
}

@media (max-width: 767px) {
  .rte2-progress-wrap {
    width: calc(100% - 40px);
    min-width: 0;
    margin-top: 36px;
  }

  .rte2-progress-bar {
    width: 35%;
  }
}

.flickity-viewport:focus-visible,
.main-carousel-rte-2-2026:focus-visible {
  outline: none !important;
}

.wrapper-items-rte-3-2026 {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 0;
}

.block-item-rte-3-2026,
.rte3-spacer {
  flex: 0 0 33.333333%;
  box-sizing: border-box;
}

.block-item-rte-3-2026 {
  padding-left: 5px;
  padding-right: 5px;
}

.rte3-spacer {
  visibility: hidden;
  pointer-events: none;
}

.item-rte-3-2026 {
  transition: transform 0.35s ease, background-color 0.35s ease;
  transform: scale(1);
}

.item-rte-3-2026.active {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.6);
}

.arrow-slider-rte-3-2026 {
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.arrow-slider-rte-3-2026.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}

@media (max-width: 991px) {
  .block-item-rte-3-2026,
  .rte3-spacer {
    flex-basis: 60%;
  }

  .item-rte-3-2026.active {
    transform: scale(1.03);
  }
}

@media (max-width: 767px) {
  .block-item-rte-3-2026,
  .rte3-spacer {
    flex-basis: 86%;
  }

  .block-item-rte-3-2026 {
    padding-left: 6px;
    padding-right: 6px;
  }

  .item-rte-3-2026.active {
    transform: scale(1.02);
  }
}

@media (max-width: 479px) {
  .block-item-rte-3-2026,
  .rte3-spacer {
    flex-basis: 92%;
  }
}

.editor-styles-wrapper .wp-block[data-type^="acf/rte-"] {
  position: relative;
  padding-top: 44px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  margin-top: 24px;
  margin-bottom: 24px;
}

.editor-styles-wrapper .wp-block[data-type^="acf/rte-"]::before {
  content: attr(data-title);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}