.carousel {
  width: 100%;
  min-width: 0;
  font-family: Arial, sans-serif;
}

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

.carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.carousel__title {
  margin: 0;
}

.carousel__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
}

.carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--blue-france-sun-113-625);

  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

[data-fr-theme="light" i] .carousel__button:hover:not(:disabled) {
  background-color: var(--grey-975-75-hover);
}

[data-fr-theme="light" i] .carousel__button:active:not(:disabled) {
  background-color: var(--grey-975-75-active);
}

.carousel__button:disabled {
  color: var(--grey-625-425);
  cursor: not-allowed;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__viewport {
  margin-inline: -1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  margin: 0;
  width: max-content;
  padding: 0 1.5rem;
  list-style: none;
}

.carousel__track > li {
  flex: 0 0 16.5rem;
  scroll-snap-align: center;
}

.carousel__image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__viewport {
    scroll-behavior: auto;
  }
}

/* Facultatif : retirer les marges et paddings du thème */
.carousel__track > li::marker {
  content: "";
}

.fr-card {
  position: relative
}

.card-footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem
}

.card-footer .fr-badge {
  margin: 0;
  align-self: flex-start;
}