body {
  overflow: hidden;
  background-image: url(/image/hp_image/degrade_bg.png);
  /*background-size: cover no-repeat;*/
  /*background: linear-gradient(#aebaba, #e9d2a6);*/
}
.container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background-color: #f5f5f5;
  box-shadow: 0 30px 50px #505050; /*dbdbdb*/
  border-radius: 20px;
  max-width: 90%;
  max-height: 90%;
}

.content {
  padding: 25px;
  background-color: #d8d8d8bf;
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
}

#slide {
  width: max-content;
  margin-top: 50px;
}
.item {
  width: 200px;
  height: 300px;
  /*background-position: 50% 50%;*/
  display: inline-block;
  transition: 0.5s;
  background-size: cover;
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
}
.item:nth-child(1),
.item:nth-child(2) {
  left: 0;
  top: 0;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
  box-shadow: none;
}
.item:nth-child(3) {
  left: 50%;
}
.item:nth-child(4) {
  left: calc(50% + 220px);
}
.item:nth-child(5) {
  left: calc(50% + 440px);
}
.item:nth-child(n + 6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 300px;
  text-align: left;
  color: #1c1c1c;
  transform: translate(0, -50%);
  display: none;
  font-family: system-ui;
}
.item:nth-child(2) .content {
  display: block;
  z-index: 11111;
}
.item .name {
  font-size: 40px;
  font-weight: bold;
  opacity: 0;
  animation: showcontent 0.5s ease-in-out 1 forwards;
}
.item .des {
  margin: 20px 0;
  opacity: 0;
  animation: showcontent 0.5s ease-in-out 0.3s 1 forwards;
}
.item button {
  /*padding:10px 20px;*/
  /*border:1px solid #555 ;*/
  opacity: 0;
  animation: showcontent 0.5s ease-in-out 0.6s 1 forwards;
  border-radius: 8px;
  background-color: #ffffffda;
  border: none;
  color: #000000;
  text-align: center;
  padding: 16px;
  transition: all 0.5s;
  cursor: pointer;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.7);
}

.item button:after {
  content: "»";
  position: absolute;
  opacity: 0;
  top: 16px;
  right: -20px;
  transition: 0.5s;
}

.item button:hover {
  padding-right: 24px;
  padding-left: 8px;
}

.item button:hover:after {
  opacity: 1;
  right: 10px;
}

@keyframes showcontent {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0);
  }
}
.buttons {
  position: absolute;
  right: 5%;
  bottom: 7.5%;
  z-index: 222222;
  text-align: center;
}
.buttons button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #555;
  transition: 0.5s;
  background-color: #dbdbdb;
  cursor: pointer;
}
.buttons button:hover {
  background-color: #d8d8d800;
}

#accueil {
  background-image: url(/image/hp_image/naccueil.png);
  background-position: 0px 100%;
}

#nous {
  background-image: url(/image/hp_image/nnous.png);
  background-position: 0 100%;
}

#budget {
  background-image: url(/image/hp_image/nbudget.png);
  background-position: 0 100%;
}

#nous_aider {
  background-image: url(/image/hp_image/nnous_aider.png);
  background-position: 0 100%;
}

#com {
  background-image: url(/image/hp_image/ncom.png);
  background-position: 0 100%;
}

#medias {
  background-image: url(/image/hp_image/nmedias.png);
  background-position: 50% 100%;
}

#trophy {
  background-image: url(/image/hp_image/n4L_trophy.png);
  background-position: 0 95%;
}

@media screen and (max-width: 1028px) {
  body {
    overflow: hidden;
  }

  .item {
    width: 50%;
    height: 25;
  }

  .item:nth-child(n + 6) {
    display: none;
    opacity: 0;
  }

  .item:nth-child(5) {
    left: calc(50% + 440px);
    display: none;
    opacity: 0;
  }

  .item:nth-child(4) {
    left: calc(50% + 440px);
    opacity: 0;
    display: none;
  }

  .item:nth-child(3) {
    right: 5%;
    left: auto;
    bottom: -5%;
    top: auto;
  }

  .item .content {
    top: 17.5%;
    left: calc(42.5% - 40%);
    width: 80%;
  }

  .item .name {
    font-size: 30px;
  }

  .item .des {
    margin: 5px 0;
  }

  .buttons button {
    background-color: #dbdbdb9b;
  }

  .buttons button:hover {
    background-color: #dbdbdb9b;
  }
}
