* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ::::::::::::::::::MISE EN PAGE:::::::::::::::::::::::::::::::::::::::::::::::::::: */
/* ::::::::::::::::::POSITIONEMENT DES ELEMENTS::::::::::::::::::::::::::::::::::::::::: */
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */

body main {
  width: 100%;
  height: 970px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main > .titre-creations {
  color: #2b0f0f;
  margin-top: 30px;
  font-size: 4em;
}

.creation {
  width: 100%;
  height: 80%;
  /* h1 sorti de la section : on retire sa hauteur sous la section
     (margin-top 30px + 64px, soit 4em avec line-height 1) */
  margin-bottom: -94px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.creation .container {
  translate: 0px -20px;
  width: 80%;
  height: 80%;
}

.creation .container article {
  width: 175px;
  height: 235px;
  background-color: white;
  position: absolute;
  left: 50%;
  top: 10%;
  transition: 0.5s ease-in-out;
}

.creation .container article div {
  position: absolute;
  top: 20px;
  width: 100%;
  height: 75%;
  padding: 0 10px 0 10px;
  overflow: hidden;
}

.creation .container article div img {
  min-height: 100%;
  max-width: 100%;
  min-width: 100%;
  object-fit: contain;
}

.creation .container article h2 {
  position: relative;
  text-align: center;
  top: 82%;
  padding: 7px;
  font-size: 1.5rem;
}

.creation .container article p {
  padding: 7px 0px 0px 0px;
  background-color: white;
  display: none;
  flex-wrap: wrap;
  width: 100%;
  position: absolute;
  top: 310px;
  text-align: center;
}

.creation .container article:first-child {
  z-index: 10;
  transform: translate(-50%);
}

.creation .container article:nth-child(2) {
  z-index: 9;
  transform: translate(20%, -5%) rotate(50deg);
}

.creation .container article:nth-child(3) {
  z-index: 8;
  transform: translate(-120%, 20%) rotate(-20deg);
}

.creation .container article:nth-child(4) {
  z-index: 7;
  transform: translate(-160%, 50%) rotate(-40deg);
}

.creation .container article:nth-child(5) {
  z-index: 6;
  transform: translate(-60%, 80%) rotate(30deg);
}

.creation .container article:nth-child(6) {
  z-index: 6;
  transform: translate(40%, 80%) rotate(40deg);
}

.creation .container article:nth-child(7) {
  z-index: 5;
  transform: translate(-210%, 150%) rotate(-30deg);
}

.creation .container article:nth-child(8) {
  z-index: 4;
  transform: translate(40%, 150%) rotate(-40deg);
}

.creation .container article:nth-child(9) {
  z-index: 2;
  transform: translate(-130%, 190%) rotate(20deg);
}

.creation .container article:nth-child(10) {
  z-index: 5;
  transform: translate(-50%, 130%) rotate(-10deg);
}

.creation .container article:nth-child(11) {
  z-index: 1;
  transform: translate(-40%, 200%) rotate(10deg);
}

.creation .container article:nth-child(12) {
  z-index: 5;
  transform: translate(-190%, 90%) rotate(50deg);
}

.creation .container article:nth-child(13) {
  z-index: 5;
  transform: translate(70%, 20%) rotate(-40deg);
}

.creation .container article:nth-child(14) {
  z-index: 1;
  transform: translate(90%, 100%) rotate(60deg);
}

.creation .container article:last-child {
  z-index: 5;
  transform: translate(-140%, 130%) rotate(0deg);
}

body main button {
  position: relative;
  color: #fff;
  min-height: 61px;
  border-radius: 50px;
  bottom: -115px;
  cursor: pointer;
  margin-bottom: 115px;
}

body main button span {
  font-size: 2rem;
  position: relative;
}

body main button::before {
  content: "";
  position: absolute;
  border-radius: 50px;
  inset: 4px;
  background: #2b0f0f;
}

/* ::::::::::::::::::::::::CODE CLIC DE SOURIS::::::::::::::::::::::::::::::::::::: */
/* ::::::::::::::::::::::::APPARITION DU TEXTE::::::::::::::::::::::::::::::::::::::: */
/* ::::::::::::::::::::::::EFFET VISUEL DES POLAROID::::::::::::::::::::::::::::::: */

.polaroid:hover {
  box-shadow: 0px 0px 27px 9px rgba(214, 210, 210, 0.75);
  z-index: 30;
  width: 220px;
  height: 280px;
  transition: 0.5s;
}

.creation .container article.zoomPolaroid {
  display: block;
  transition: 1s;
  width: 350px;
  height: 341px;
}

.creation .container article.zoomPolaroid h2 {
  font-size: 30px;
}

.creation .container article.zoomPolaroid p {
  display: block;
  animation: 1.5s easein 1 normal none running;
  transform: translateY(25%);
  padding-bottom: 8px;
}

.creation .container article.zoomPolaroid:nth-child(1n + 0) {
  z-index: 50;
  transform: translateX(-50%) translateY(40%) rotate(0deg);
}

@keyframes easein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
/* ::::::::::::::::::::::::RESPONSIVE::::::::::::::::::::::::::::::::::::::: */
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
@media screen and (max-width: 1000px) {
  body main {
    height: 1000px;
  }
}

@media screen and (max-width: 900px) {
  body main {
    height: 750px;
  }

  .creation .container {
    min-height: 500px;
    height: 650px;
  }

  body main button {
    bottom: -60px;
  }

  .creation .container article:first-child {
    transform: translate(-30%);
  }

  .creation .container article:nth-child(2) {
    transform: translate(30%, -5%) rotate(40deg);
  }

  .creation .container article:nth-child(3) {
    transform: translate(-110%, 20%) rotate(-20deg);
  }

  .creation .container article:nth-child(4) {
    transform: translate(30%, 90%) rotate(40deg);
  }

  .creation .container article:nth-child(5) {
    transform: translate(-50%, 80%) rotate(30deg);
  }

  .creation .container article:nth-child(6) {
    transform: translate(60%, 30%) rotate(20deg);
  }

  .creation .container article:nth-child(7) {
    transform: translate(-140%, 50%) rotate(-50deg);
  }

  .creation .container article:nth-child(8) {
    display: none;
  }

  .creation .container article:nth-child(9) {
    display: none;
  }

  .creation .container article:nth-child(10) {
    display: none;
  }

  .creation .container article:nth-child(11) {
    display: none;
  }

  .creation .container article:nth-child(12) {
    display: none;
  }

  .creation .container article:nth-child(13) {
    display: none;
  }

  .creation .container article:nth-child(14) {
    display: none;
  }

  .creation .container article:last-child {
    display: none;
  }

  .creation .container article.zoomPolaroid:nth-child(1n + 0) {
    transform: translateX(-50%) translateY(10%) rotate(0deg);
  }
}

@media screen and (max-width: 640px) {
  body main {
    height: 926px;
  }

  main > .titre-creations {
    font-size: 3em;
  }

  .creation {
    /* 30px + 48px */
    margin-bottom: -78px;
  }

  .creation .container {
    translate: 0px 100px;
    min-height: 600px;
    height: 750px;
  }

  .creation .container article {
    width: 170px;
    height: 230px;
  }

  .creation .container article:first-child {
    z-index: 5;
    transform: translate(-80%, -45%) rotate(-20deg);
  }

  .creation .container article:nth-child(2) {
    z-index: 6;
    transform: translate(-80%, 10%) rotate(-20deg);
  }

  .creation .container article:nth-child(3) {
    z-index: 9;
    transform: translate(-80%, 90%) rotate(-20deg);
  }

  .creation .container article:nth-child(4) {
    z-index: 5;
    transform: translate(0%, -20%) rotate(-20deg);
  }

  .creation .container article:nth-child(5) {
    z-index: 7;
    transform: translate(-5%, 40%) rotate(-20deg);
  }

  .creation .container article:nth-child(6) {
    z-index: 10;
    transform: translate(-20%, 120%) rotate(-20deg);
  }

  .creation .container article:nth-child(7) {
    display: none;
  }

  body main button {
    bottom: -96px;
    margin-bottom: 0px;
  }

  .creation .container article.zoomPolaroid {
    display: block;
    transition: 1s;
    width: 250px;
    /* height: 310px; */
  }

  .creation .container article.zoomPolaroid p {
    display: block;
    animation: 1.5s easein 1 normal none running;
    transform: translateY(-40%);
    top: 360px;
  }

  .creation .container article.zoomPolaroid:nth-child(1n + 0) {
    z-index: 50;
    transform: translateX(-40%) translateY(10%) rotate(0deg);
  }
}

@media screen and (max-width: 400px) {
  body {
    height: 650px;
  }

  body main {
    height: 835px;
  }

  body main button {
    bottom: -60px;
  }

  .creation .container {
    translate: 0px 70px;
    min-height: 500px;
    height: 650px;
  }

  .creation .container article {
    width: 150px;
    height: 210px;
  }

  .creation .container article:first-child {
    transform: translate(-80%, -45%) rotate(-20deg);
  }

  .creation .container article:nth-child(2) {
    transform: translate(-80%, 10%) rotate(-20deg);
  }

  .creation .container article:nth-child(3) {
    transform: translate(-80%, 90%) rotate(-20deg);
  }

  .creation .container article:nth-child(4) {
    transform: translate(0%, -20%) rotate(-20deg);
  }

  .creation .container article:nth-child(5) {
    transform: translate(-5%, 40%) rotate(-20deg);
  }

  .creation .container article:nth-child(6) {
    transform: translate(-20%, 120%) rotate(-20deg);
  }

  .creation .container article.zoomPolaroid {
    transition: 1s;
    width: 260px;
    height: 320px;
  }

  .creation .container article.zoomPolaroid p {
    display: block;
    animation: 1.5s easein 1 normal none running;
    transform: translateY(-30%);
    top: 330px;
  }

  .creation .container article.zoomPolaroid:nth-child(1n + 0) {
    z-index: 50;
    transform: translateX(-50%) translateY(-20%) rotate(0deg);
  }
}

@media screen and (max-width: 320px) {
  body {
    height: 568px;
  }

  body main {
    height: 700px;
  }

  body main > .titre-creations {
    font-size: 2.5em;
    margin-top: 10px;
  }

  .creation {
    /* 10px + 40px */
    margin-bottom: -50px;
  }

  .creation .container {
    translate: 0px 40px;
    min-height: 400px;
    height: 560px;
  }

  .creation .container article h2 {
    font-size: 20px;
  }

  .creation .container article {
    width: 120px;
    height: 180px;
  }

  .creation .container article:first-child {
    transform: translate(-80%, -35%) rotate(-20deg);
  }

  .creation .container article:nth-child(2) {
    transform: translate(-80%, 20%) rotate(-20deg);
  }

  .creation .container article:nth-child(3) {
    transform: translate(-80%, 100%) rotate(-20deg);
  }

  .creation .container article:nth-child(4) {
    transform: translate(0%, -10%) rotate(-20deg);
  }

  .creation .container article:nth-child(5) {
    transform: translate(-5%, 30%) rotate(-20deg);
  }

  .creation .container article:nth-child(6) {
    transform: translate(0%, 110%) rotate(-20deg);
  }

  body main button {
    width: 200px;
    font-size: 1.5rem;
    bottom: -30px;
    margin-bottom: -100px;
  }

  .creation .container article.zoomPolaroid {
    transition: 1s;
    width: 260px;
    height: 320px;
  }

  .creation .container article.zoomPolaroid p {
    display: block;
    animation: 1.5s easein 1 normal none running;
    font-size: 14px;
  }

  .creation .container article.zoomPolaroid:nth-child(1n + 0) {
    z-index: 50;
    transform: translateX(-50%) translateY(-20%) rotate(0deg);
  }
}