/* Carrousel ——————————————————————— */
.carousel {
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  margin-block-start: auto;
  margin-block-end: 0.5rem;
  margin-inline: 0.5rem;
  position: relative;
}

.carousel-bg {
  background-color: var(--color-surface-lighter);
  border: 1px solid var(--color-border-light);
  padding: 0.5rem 0.75rem 1rem;
}

.carousel__track {
  display: flex;
  flex: 1 ;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__content-card {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel__flash-date {
  color: var(--color-accent);
  font-family: var(--ff-headings);
  font-variant-numeric: tabular-nums;
  font-weight: 300;
}

/* Points de navigation */
.carousel__bullet-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-block-start: 1rem;
  padding-block-start: 0.75rem;
  border-top: 1px solid var(--color-border-light);
}

.carousel__bullet {
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  height: 0.625rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease-out,
    transform 0.2s ease-out;
  width: 0.625rem;
}

.carousel__bullet:hover,
.carousel__bullet:focus {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

.carousel__bullet:focus {
  outline: 1px solid var(--color-primary);
  outline-offset: 2px;
}

.carousel__bullet.is-active {
  background-color: var(--color-accent);
  border: none;
}

/* Accessibilité */
.carousel__content-card:focus {
  outline: 1px solid var(--color-primary);
  outline-offset: -2px;
}

.carousel__content-card:target {
  scroll-margin-inline-start: 0;
}
