.havven-svc-cards {
  position: relative;
  box-sizing: border-box;
  overflow: visible;
}

.havven-svc-cards-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.havven-svc-cards-header--arrows-right {
  justify-content: flex-end;
}

.havven-svc-cards-header--arrows-left {
  justify-content: flex-start;
}

.havven-svc-cards-header-spacer {
  flex: 1;
  min-width: 0;
}

.havven-svc-cards-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.havven-svc-cards-arrow {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease,
    opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-appearance: none;
  appearance: none;
}

.havven-svc-cards-arrow:hover {
  background-color: rgba(255, 200, 154, 0.35);
  border-color: rgba(255, 200, 154, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 200, 154, 0.35);
  transform: scale(1.06);
}

.havven-svc-cards-arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.havven-svc-cards-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.havven-svc-cards__viewport {
  box-sizing: border-box;
  overflow: visible;
}

/* Pas de clip ici : masquer le débordement côté conteneur Elementor (Advanced → Overflow). */
.havven-svc-cards-swiper.swiper {
  position: relative;
  width: 100%;
  overflow: visible;
  padding-bottom: 4px;
}

.havven-svc-cards-swiper .swiper-wrapper {
  align-items: stretch;
}

.havven-svc-cards-swiper .swiper-slide {
  height: auto;
  width: auto;
  box-sizing: border-box;
}

.havven-svc-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.havven-svc-cards--flexible .havven-svc-card {
  width: 100%;
  max-width: none;
}

.havven-svc-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  /* repli si aucune hauteur Elementor */
  min-height: 500px;
}

.havven-svc-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.35);
}

.havven-svc-card__media img,
.havven-svc-card__media picture,
.havven-svc-card__media figure {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.havven-svc-card__media figure {
  margin: 0;
  height: 100%;
}

.havven-svc-card__media img {
  transition: transform 0.55s ease;
}

.havven-svc-card:hover .havven-svc-card__media img {
  transform: scale(1.05);
}

.havven-svc-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.3) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.havven-svc-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
}

.havven-svc-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 200, 154, 0.18);
  border: 1px solid rgba(255, 200, 154, 0.4);
  margin-bottom: 0.875rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.havven-svc-card__icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.havven-svc-card__title {
  margin: 0 0 0.375rem;
  color: #fff;
}

.havven-svc-card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  line-height: 1.45;
}

.havven-svc-card__text p {
  margin: 0 0 0.5em;
}

.havven-svc-card__text p:last-child {
  margin-bottom: 0;
}

.havven-svc-cards-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.75rem;
  position: relative;
  z-index: 2;
}

.havven-svc-cards-pagination .swiper-pagination-bullet {
  margin: 0 !important;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  opacity: 1 !important;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.havven-svc-cards-pagination .swiper-pagination-bullet:hover {
  background-color: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

.havven-svc-cards-pagination .swiper-pagination-bullet-active {
  background-color: #ffc89a !important;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 200, 154, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.2);
}
