.carrousel {
  padding: 2rem 0;
}

.carrousel-container {
  width: 100%;
  overflow: hidden;
}

.carrousel-list-container {
  width: 100%;
  position: relative;
  z-index: 49;
  pointer-events: none;
  border-radius: 20px;
}

.carrousel-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.carrousel-list {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  border-radius: 20px;
  transition: transform 0.3s;
}

.carrousel-item {
  border: var(--card-border);
  border-radius: 20px;
  pointer-events: auto;
  width: 100%;
  max-width: 376px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: grab;
  position: relative;
}

.carrousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff4757);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 100000;
}

.carrousel-item:hover::before {
    transform: scaleX(1);
}

.carrousel-item div {
  width: 100%;
  height: 500px;
}

.carrousel-item div img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 20px;
}


.carrousel-item .image-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.carrousel-item:hover .image-overlay {
    opacity: 1;
}

.carrousel-item .overlay-icon {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.carrousel-item:hover .overlay-icon {
    transform: scale(1);
}

.carrousel-buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrousel-buttons button {
  pointer-events: auto;
  z-index: 51;
  background-color: rgba(0, 0, 0);;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  &:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }
}