.hero-gradient {
  background: linear-gradient(180deg, #06041c, #310347, #310347);
}

.hero-gradient-reversed {
  background: linear-gradient(180deg, #06041c, #080530, #310347);
}

.hero-img,
.hero-img-background {
  width: 100%;
  height: 90%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-img {
  z-index: 2;
}
.hero-img-background {
  position: absolute;
  bottom: 50px;
  left: 25px;
  background-color: #ffd700;
  z-index: 1;
}

.box-shadow {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px,
    rgba(49, 0, 70, 0.35) 0px -2px 6px 0px inset;
}

button.relative {
  transition: all 0.3s ease;
}

button.relative:hover a {
  border-color: #ffd201;
}

button.relative:hover div {
  border-color: white;
}

.cards {
  position: relative;
  width: 100%;
  overflow: clip;
}

.card {
  position: relative;
  border-radius: 1rem;
  box-shadow: rgba(255, 210, 0, 0.55) 0px 5px 20px;
  font-size: 1.5rem;
  color: white;
  background-color: rgba(49, 3, 71, 0.85);
  backdrop-filter: blur(10.1px);
  -webkit-backdrop-filter: blur(10.1px);
}

#enseignement,
#infrastructure,
#evenements,
#partenariats {
  margin: auto;
  padding: 2rem;
  border-radius: 1rem;
  color: white;
  box-shadow: rgba(49, 3, 71, 0.35) 0px 5px 15px;
  background: rgba(49, 3, 71, 0.7);
  box-shadow: 0 8px 32px 0 rgba(49, 3, 71, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
}

.shadow-box-InOut {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px,
    rgba(49, 0, 70, 0.35) 0px -2px 6px 0px inset;
}

.shadow-box-InOut:hover {
  box-shadow: rgba(0, 0, 0, 0.35) 1px 7px 15px,
    rgba(49, 0, 70, 0.35) 0px -2px 6px 0px inset;
}

.button-border {
  transition: top 300ms ease-out, left 300ms ease-out;
}
.floating-border {
  border-top-color: #ffd201;
  border-right-color: #ffd201;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-width: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.floating-border-left {
  border-top-color: #ffd201;
  border-left-color: #ffd201;
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-width: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.slides-testimony {
  display: flex;
  --items: 1;
  --gap: 1rem;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: calc(var(--gap) * 0.5);
  margin: calc(var(--gap) * -0.5);
  scroll-padding-inline: calc(var(--gap) * 0.5);
  scrollbar-width: thin;
  scrollbar-color: #ffd201 #2a2a2a;
}

.slides-testimony::-webkit-scrollbar {
  height: 8px;
}

.slides-testimony::-webkit-scrollbar-track {
  background: #310347;
  border-radius: 4px;
}

.slides-testimony::-webkit-scrollbar-thumb {
  background-color: #310347;
  border-radius: 4px;
}

.slide-testimony {
  min-width: calc((100% - (var(--items) - 1) * var(--gap)) / var(--items));
  scroll-snap-align: start;
}

.slider {
  position: relative;
  width: 100%;
  height: 10rem;
  overflow: hidden;
  background-color: transparent;
}

.slider::before,
.slider::after {
  background: linear-gradient(
    to right,
    rgb(49, 0, 70) 0%,
    rgba(49, 0, 70, 0) 100%
  );
  content: "";
  height: 10rem;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slider .slide-track {
  animation: scroll 25s linear infinite;
  width: calc(250px * 14);
}

.slide-track {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.slide {
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: contain;
  height: 10rem;
  width: 250px;
  margin: 0 1rem;
}

@media (min-width: 1001px) and (pointer: fine) {
  .items {
    overflow: hidden;
  }
}

@media (max-width: 1000px) {
  .slides {
    padding: 1rem;
    margin: -1rem;
    scroll-padding-inline: 0;
  }
  .slide {
    scroll-snap-align: center;
    min-width: 250px;
  }
  .slide-navigation {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-img,
  .hero-img-background {
    width: 100%;
  }
  .hero-img-background {
    bottom: 40px;
    left: 15px;
  }
  .slider::before,
  .slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 0%);
  }
}

@media (max-width: 480px) {
  .hero-img-background {
    bottom: 25px;
    left: 10px;
  }
}

@media (min-width: 640px) {
  .slides-testimony {
    --items: 2;
  }
}

@media (min-width: 768px) {
  .slides-testimony {
    --items: 3;
  }
}

@media (min-width: 1024px) {
  .slides-testimony {
    --items: 4;
  }
}

.fade-in {
  animation: 300ms fade-in ease-in;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}
