/* Page formation */
main {
    display: grid;
}

.wrapper1 {
    display: grid;
    grid-gap: 2px;
    align-items: center;
}

#forma1 {
    grid-column: 1;
    grid-row: 1;
    margin-top: 10rem;
    position: inherit;
    background-color: #15b5b0;
}

@media (max-width:800px) {
    #forma1 {
        padding-top:6rem;
    }
}

@media (min-width:800px) {
    #forma1 {
        padding-top:2rem;
    }
}

#forma1 p {
    color:white;
}

#forma1 .largecard {
  grid-column: 1;
  grid-row: 1;
  width: 75%;
  margin:2rem auto 2.5rem auto;
  padding: 2.5rem;
  background-image: linear-gradient(to bottom left, #ebeff0, #f2f6f9);
  border-radius: 2rem;
  gap: 1.5rem;
  display: grid;
  grid-template: 'title title' 'bar bar' 'content content' / 1fr auto;
  font-family: system-ui, sans-serif;
  box-shadow: 
    inset -2px 2px hsl(0 0 100% / 1),
    -1rem 1rem 2rem hsl(0 0 0 / .25) ;

 .title {
    font-size: 1.5rem;
    grid-area: title;
    align-self: end;
    text-transform: uppercase;
    font-weight: 500;
    word-break: break-word;
    color: #444447;
  }

  .content {
    grid-area: content;
  }
  .content p {
    line-height: 1.5rem;
  }
   p {
    color: #444447;
   }

  &::after {
    content: "";
    grid-area: bar;
    height: 2px;
    background-image: linear-gradient(90deg, #f9c141, #15b5b0);
  }

}

#forma1 h2 {
    grid-row: 1;
    grid-column: 1/2;
    color:white;
  }


@media (max-width:800px) {
    .image, #forma1 .largecard  {
        grid-column: 1;
        grid-row: 1;
    }

    .texte {
        grid-column: 1;
        grid-row: 2;
    }

}

@media (min-width:800px) {
    .image, #forma1 .largecard {
        grid-column: 1;
        grid-row: 1;
        width : 40VW;
    }

    .texte {
        grid-column: 2;
        grid-row: 1;
        width : 40VW;
    }
    
    #forma1 ul li {      
      width: 25%;
    }
}

#forma1 .image {
    position : relative;
    box-shadow: none;
}

#forma1 .image img {
    box-shadow: none;
    max-width : 100%;
    border-radius:1em;
}

#forma1 ul {
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    list-style: none;
    li {
      padding: 40px;
      transition: box-shadow .3s;

      &:hover {
        box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
        background-color: white;
      }

      &:hover p {
        color: #555;
      }
      &:hover h3 {
        color: #f9c141;
      }
      &:hover h3:after{
        width: 25px;
      }

      h3 {
        display: inline-block;
        font-size: 1.5rem;
        font-weight: 100;
        transition: color .3s;
        padding-top: 0;
        padding-bottom: 1rem;
        &:after {
          content: '';
          position: relative;
          left: 50%;
          top: 20px;
          transform: translateX(-50%);
          display: block;
          width: 40px;
          height: 1px;
          background: darken(#A2A2A2, 20%);
          transition: width .3s;
        }
      }
      p {
        text-align: left;
        line-height: 1.5rem;
        transition: color .3s;
      }
    }
  }

.button-fond-vert {
    grid-column: 2;
    grid-row: 1;
    width: 75%;
}

#pente1 .penteWB{
    grid-column: 1;
    grid-row: 2;
    position:relative;
}

#forma2 {
    grid-column: 1;
    grid-row: 3;
    background-color: white;
    position: inherit;
    width: 80%;
    margin-left:10%;
}

#forma1 h3, #forma3 p {
    color:white;
    line-height:1.5rem;
    margin-bottom: 1rem;
}

#forma1 p, #forma2 p {
    text-align: justify;
    text-justify: auto;
}

#pente2 .penteBW{
    grid-column: 1;
    grid-row: 4;
    position:relative;
}

#forma3 {
    grid-column: 1;
    grid-row: 5;
    background-color: #15b5b0;
}

#forma3 p {
    color:white;
    font-weight: 60;
}

@media (min-width:800px) {
    #forma3 .image {
        grid-column: 1;
        grid-row: 1;
        width : 35VW;
    }

    #forma3 .texte {
        grid-column: 2;
        grid-row: 1;
        width : 45VW;
    }
}


#forma3 img {
    box-shadow: none;
}


@keyframes display {
  0% {
    transform: translateX(200px);
    opacity: 0;
  }
  8% {
    transform: translateX(0);
    opacity: 1;
  }
  12% {
    transform: translateX(0);
    opacity: 1;
  }
  30% {
    transform: translateX(-300px);
    opacity: 0;
  }
  100% {
    transform: translateX(-200px);
    opacity: 0;
  }
}

.pic-ctn {
  position: relative;
  width: 300px;
  height: 260px;
  margin: auto;
  background-color:white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15%;
  mask-image: radial-gradient(white,white 70%,transparent);
}

.pic-ctn > img {
  position: absolute;
  opacity: 0;
  animation: display 12s infinite;
}

img:nth-child(2) {
  animation-delay: 2s;
}
img:nth-child(3) {
  animation-delay: 4s;
}
img:nth-child(4) {
  animation-delay: 6s;
}
img:nth-child(5) {
  animation-delay: 8s;
}
img:nth-child(6) {
  animation-delay: 10s;
}

#pente3 .penteBW{
    grid-column: 1;
    grid-row: 6;
    position:relative;
}

/* Restons en contact */
#contact {
    grid-column: 1;
    grid-row: 7;
    min-height: 480px;
    background-color: white;
}

#contact a {
    color:white;
}

#pente4 .penteWB{
    grid-column: 1;
    grid-row: 8;
    position:relative;
}

