/* Hazzan Team Carousel — frontend */
.htc-carousel {
  --htc-page-gutter: clamp(24px, 4vw, 72px);
  --htc-side-padding: 0px;
  --htc-card-width: 300px;
  --htc-card-gap: clamp(38px, 5.2vw, 92px);
  --htc-image-height: calc(var(--htc-card-width) * 1.5);
  --htc-black: #050505;
  --htc-grey: #d9d9d9;
  --htc-visible: var(--htc-visible-desktop, 4);
  --htc-font-nav: inherit;
  --htc-font-name: inherit;
  --htc-font-role: inherit;
  --htc-font-details: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --htc-weight-nav: 700;
  --htc-weight-name: 800;
  --htc-weight-role: 700;
  --htc-weight-details: 500;
  --htc-linkedin-size: 22px;
  --htc-dot-bleed: clamp(48px, 8vw, 180px);
  --htc-balance-offset: 0px;
  --htc-balance-strength: 0;

  position: relative;
  width: 100%;
  background: #fff;
  color: var(--htc-black);
  overflow: hidden;
  padding: 42px 0 72px;
  box-sizing: border-box;
  outline: none;
}

.htc-carousel * {
  box-sizing: border-box;
}

.htc-carousel .htc-top {
  position: relative;
  width: calc(100% - (var(--htc-page-gutter) * 2));
  margin: 0 auto;
  padding-top: 28px;
  overflow: visible;
}

/* Dots de navigation aplatis : une ligne segmentée, sans espace entre les dots */
.htc-carousel .htc-dots,
.htc-carousel .htc-progress {
  position: absolute;
  top: 0;
  left: calc(0px - var(--htc-dot-bleed));
  display: flex;
  gap: 0;
  width: calc(100% + var(--htc-dot-bleed) + var(--htc-dot-bleed));
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.htc-carousel .htc-dot {
  position: relative;
  flex: 1 1 0;
  display: block;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.htc-carousel .htc-dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--htc-grey);
  transition: background 240ms ease, opacity 240ms ease;
}

.htc-carousel .htc-dot.is-active::before {
  background: var(--htc-black);
}

.htc-carousel .htc-dot:hover::before,
.htc-carousel .htc-dot:focus-visible::before {
  opacity: .55;
}

.htc-carousel .htc-dot:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* Compat ancien markup */
.htc-carousel .htc-progress-current {
  display: none;
}

.htc-carousel .htc-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 18px;
  padding: 0 64px;
}

.htc-carousel .htc-prev,
.htc-carousel .htc-next {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--htc-font-nav);
  font-size: 8px;
  line-height: 1;
  font-weight: var(--htc-weight-nav);
  letter-spacing: .62em;
  text-transform: uppercase;
  color: var(--htc-black);
  transition: opacity 180ms ease;
}

.htc-carousel .htc-prev:hover,
.htc-carousel .htc-next:hover {
  opacity: .55;
}

.htc-carousel .htc-prev:focus-visible,
.htc-carousel .htc-next:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.htc-carousel .htc-viewport {
  width: 100%;
  overflow: visible;
  margin-top: 70px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.htc-carousel .htc-viewport.is-dragging {
  cursor: grabbing;
}

.htc-carousel .htc-track {
  display: flex;
  align-items: flex-start;
  gap: var(--htc-card-gap);
  width: 100%;
  padding-left: var(--htc-side-padding);
  padding-right: var(--htc-side-padding);
  transform: translate3d(0, 0, 0);
  transition: transform 560ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.htc-carousel .htc-viewport.is-dragging .htc-track {
  transition: none;
}

.htc-carousel .htc-card {
  flex: 0 0 var(--htc-card-width);
  width: var(--htc-card-width);
}

.htc-carousel .htc-card.is-clone {
  pointer-events: none;
}

.htc-carousel .htc-photo-wrap {
  width: 100%;
  height: var(--htc-image-height);
  margin: 0 0 58px;
  background: #f4f4f4;
  overflow: hidden;
}

.htc-carousel .htc-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.htc-carousel .htc-photo-placeholder {
  background: linear-gradient(135deg, #eee, #fafafa);
}

.htc-carousel .htc-card-content {
  width: 100%;
}

.htc-carousel .htc-name {
  margin: 0 0 12px;
  font-family: var(--htc-font-name);
  font-size: clamp(14px, .9vw, 17px);
  line-height: 1.05;
  font-weight: var(--htc-weight-name);
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--htc-black);
}

.htc-carousel .htc-role {
  margin: 0 0 26px;
  font-family: var(--htc-font-role);
  font-size: 10px;
  line-height: 1.45;
  font-weight: var(--htc-weight-role);
  letter-spacing: .62em;
  text-transform: uppercase;
  color: var(--htc-black);
}

.htc-carousel .htc-details {
  margin: 0;
  font-family: var(--htc-font-details);
  font-size: 11px;
  line-height: 1.8;
  font-weight: var(--htc-weight-details);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--htc-black);
}

.htc-carousel .htc-details span {
  display: block;
}

.htc-carousel .htc-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--htc-linkedin-size);
  height: var(--htc-linkedin-size);
  margin-top: 26px;
  color: var(--htc-black);
  text-decoration: none;
}

.htc-carousel .htc-linkedin svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.htc-carousel .htc-linkedin:hover {
  opacity: .62;
}

.htc-empty {
  margin: 0;
  padding: 28px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .htc-carousel {
    --htc-visible: var(--htc-visible-tablet, 2);
    --htc-card-gap: 34px;
    --htc-side-padding: 0px;
    padding-top: 34px;
  }

  .htc-carousel .htc-top {
    width: calc(100% - 48px);
  }

  .htc-carousel .htc-nav {
    padding: 0;
  }

  .htc-carousel .htc-viewport {
    margin-top: 48px;
  }
}

@media (max-width: 640px) {
  .htc-carousel {
    --htc-visible: var(--htc-visible-mobile, 1);
    --htc-card-gap: 24px;
    --htc-side-padding: 0px;
    padding: 30px 0 54px;
  }

  .htc-carousel .htc-top {
    width: calc(100% - 40px);
    padding-top: 24px;
  }

  .htc-carousel .htc-prev,
  .htc-carousel .htc-next {
    font-size: 8px;
    letter-spacing: .36em;
  }

  .htc-carousel .htc-viewport {
    margin-top: 40px;
  }

  .htc-carousel .htc-photo-wrap {
    margin-bottom: 38px;
  }

  .htc-carousel .htc-role {
    letter-spacing: .42em;
  }
}
