.main-control {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: min(75vh);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 105%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;

  &:nth-child(1),
  &:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
  }

  &:nth-child(4) {
    left: 220px;
  }
  &:nth-child(5) {
    left: 440px;
  }
  &:nth-child(6) {
    left: 660px;
  }
  &:nth-child(7) {
    left: 880px;
  }
  &:nth-child(8) {
    left: 1100px;
    opacity: 0;
  }
}

.content {
  width: 90vw;
  height: 70vh;
  left: 5vw;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica, sans-serif;
  color: rgb(255, 255, 255);
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 1);
  opacity: 0;
  display: none;

  & .title {
    font-family: "arial-black";
    text-transform: uppercase;
    font-style: oblique;
    font-weight: bolder;
  }

  & .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 0.8rem;
    font-weight: bold;
  }

  & button {
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    border: 2px solid white;
    border-radius: 0.25rem;
    padding: 0.75rem;
    cursor: pointer;
  }
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav-ico {
  position: absolute;
  display: flex;
  justify-content: space-around;
  top: 90%;
  width: 170%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;

  & .btn-custom-p {
    background-color: rgba(255, 255, 255, 0.5);
    color: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(0, 0, 0, 0.6);
    margin: 0 0.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;

    &:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
  }

  & .arrow-ico {
    display: inline-flex;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s, color 0.3s;
  }
}

/* data-projets pour les items */

.item[data-projet="mon-site"] {
  background-image: url("/imgs/projets/projet-mon-site.webp");
}

.item[data-projet="home"] {
  background-image: url("/imgs/projets/projet-home.webp");
}

.item[data-projet="one-chat"] {
  background-image: url("/imgs/projets/projet-one-chat.webp");
}

.item[data-projet="r-tarot"] {
  background-image: url("/imgs/projets/projet-r-tarot.webp");
}

.item[data-projet="bagel"] {
  background-image: url("/imgs/projets/projet-bagel.webp");
}

.item[data-projet="isd"] {
  background-image: url("/imgs/projets/projet-isd.webp");
}

.item[data-z-index="1"] {
  z-index: 1;
}

.item[data-z-index="6"] {
  z-index: 6;
}

@media screen and (max-width: 767px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
  .content {
    & .title {
      font-size: 2.9vh;
    }
    & .description {
      font-size: 2.2vh;
    }
    & button {
      font-size: 2.8vh;
    }
  }
  .btn-view-custom {
    font-size: 2.8vh;
  }
  .item {
    width: 50.6vw;
    height: 70.4vw;

    &:nth-child(3) {
      left: 25%;
    }
    &:nth-child(4) {
      left: 99.8vw;
    }
    &:nth-child(5) {
      left: 110.4vw;
    }
    &:nth-child(6) {
      left: 140.2vw;
    }
    &:nth-child(7) {
      left: 170vw;
    }
    &:nth-child(8) {
      left: 210vw;
      opacity: 0;
    }
  }
  & .title {
    background-color: rgba(80, 80, 80, 0.6);
    border-radius: 10px;
  }

  & .description {
    background-color: rgba(80, 80, 80, 0.6);
    border-radius: 10px;
  }
}

@media screen and (max-width: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .content {
    & .title {
      font-size: 4.5vh;
    }
    & .description {
      font-size: 3.7vh;
    }
    & button {
      font-size: 3.4vh;
    }
  }
  .btn-view-custom {
    font-size: 3.45vh;
  }
  .nav-ico {
    top: 80%;
  }
  .item {
    width: 25.6vw;
    height: 35.4vw;
    top: 120%;

    &:nth-child(3) {
      left: 23%;
    }
    &:nth-child(4) {
      left: 50.8vw;
    }
    &:nth-child(5) {
      left: 110.6vw;
    }
    &:nth-child(6) {
      left: 140.4vw;
    }
    &:nth-child(7) {
      left: 170.2vw;
    }
    &:nth-child(8) {
      left: 210vw;
      opacity: 0;
    }
  }
  & .title {
    background-color: rgba(80, 80, 80, 0.6);
    border-radius: 10px;
  }

  & .description {
    background-color: rgba(80, 80, 80, 0.6);
    border-radius: 10px;
  }
}

/* Ordinateur de bureau et plus */
@media (width > 1024px) {
  .content {
    & .title {
      font-size: 4.7vh;
    }
    & .description {
      font-size: 3.9vh;
    }
    & button {
      font-size: 3.9vh;
    }
  }
  .btn-view-custom {
    font-size: 4.7vh;
  }
  .item {
    width: 30vh;
    height: 48vh;

    &:nth-child(3) {
      left: 20%;
    }
    &:nth-child(4) {
      left: 35%;
    }
    &:nth-child(5) {
      left: 50%;
    }
    &:nth-child(6) {
      left: 65%;
    }
    &:nth-child(7) {
      left: 80%;
    }
    &:nth-child(8) {
      left: 95%;
      opacity: 0;
    }
  }

  .nav-ico {
    & .btn-custom-p {
      background-color: rgba(255, 255, 255, 0.5);
      color: rgba(0, 0, 0, 0.7);
      border: 2px solid rgba(0, 0, 0, 0.6);
      margin: 0.2vw;
      padding: 0.5vw;
      border-radius: 50%;
      font-size: 2vw;
      cursor: pointer;

      &:hover {
        background-color: rgba(196, 41, 41, 0.3);
      }
    }
  }
}

/* Tablette @media */

/* POUR ~ PIXEL 7 / IPHONE PAYSAGE */

@media screen and (min-width: 768px) and (max-width: 1000px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .content {
    & .title {
      font-size: 4.075vh;
    }
    & .description {
      font-size: 3.975vh;
    }
    & button {
      font-size: 3.575vh;
    }
  }
  .btn-view-custom {
    font-size: 4.075vh;
  }
  .item {
    width: 25.5vh;
    height: 41vh;

    &:nth-child(3) {
      left: 22%;
    }
    &:nth-child(4) {
      left: 37%;
    }
    &:nth-child(5) {
      left: 52%;
    }
    &:nth-child(6) {
      left: 67%;
    }
    &:nth-child(7) {
      left: 82%;
    }
    &:nth-child(8) {
      left: 97%;
      opacity: 0;
    }
  }

  .nav-ico {
    top: 78%;

    & .btn-custom-p {
      background-color: rgba(255, 255, 255, 0.5);
      color: rgba(0, 0, 0, 0.7);
      border: 2px solid rgba(0, 0, 0, 0.6);
      margin: 0.15vw;
      padding: 0.375vw;
      border-radius: 50%;
      font-size: 4vw;
      cursor: pointer;

      &:hover {
        background-color: rgba(196, 41, 41, 0.3);
      }
    }
  }
}

/* Pour les iPads en mode paysage */
@media screen and (min-width: 1001px) and (max-width: 1366px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .content {
    & .title {
      font-size: 4.175vh;
    }
    & .description {
      font-size: 3.575vh;
    }
    & button {
      font-size: 3.575vh;
    }
  }
  .btn-view-custom {
    font-size: 4.175vh;
  }
  .item {
    width: 25.5vh;
    height: 41vh;
    top: 110%;

    &:nth-child(3) {
      left: 20%;
    }
    &:nth-child(4) {
      left: 40%;
    }
    &:nth-child(5) {
      left: 60%;
    }
    &:nth-child(6) {
      left: 100%;
    }
    &:nth-child(7) {
      left: 122%;
    }
    &:nth-child(8) {
      left: 142%;
      opacity: 0;
    }
  }

  .nav-ico {
    top: 85%;
    & .btn-custom-p {
      background-color: rgba(255, 255, 255, 0.5);
      color: rgba(0, 0, 0, 0.7);
      border: 2px solid rgba(0, 0, 0, 0.6);
      margin: 0.15vw;
      padding: 0.375vw;
      border-radius: 50%;
      font-size: 4vw;
      cursor: pointer;

      &:hover {
        background-color: rgba(196, 41, 41, 0.3);
      }
    }
  }
}

/* Pour les iPads en mode portrait */
@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
  .content {
    & .title {
      font-size: 3.45vh;
    }
    & .description {
      font-size: 2.85vh;
    }
    & button {
      font-size: 2.85vh;
    }
  }
  .btn-view-custom {
    font-size: 2.45vh;
  }
  .item {
    width: 15vh;
    height: 24vh;
    top: 100%;
    &:nth-child(3) {
      left: 18%;
    }
    &:nth-child(4) {
      left: 40%;
    }
    &:nth-child(5) {
      left: 62%;
    }
    &:nth-child(6) {
      left: 104%;
    }
    &:nth-child(7) {
      left: 128%;
    }
    &:nth-child(8) {
      left: 150%;
      opacity: 0;
    }
  }

  .nav-ico {
    & .btn-custom-p {
      background-color: rgba(255, 255, 255, 0.5);
      color: rgba(0, 0, 0, 0.7);
      border: 2px solid rgba(0, 0, 0, 0.6);
      margin: 0.25vw;
      padding: 0.5vw;
      border-radius: 50%;
      font-size: 6vw;
      cursor: pointer;

      &:hover {
        background-color: rgba(196, 41, 41, 0.3);
      }
    }
  }
}
