html{scroll-behavior: smooth !important;}

body {
    position: relative;
}

#home {
    width: 40%;
    min-width: 700px;
    margin-left: auto;
    margin-right: auto;
    a {
      font-weight: 400;
      font-family: $Roboto-B;
    }
    h3 {
      margin-bottom: 1rem;
      + p {
        line-height: 1.5;
      }
    }
}

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: #964587!important;
}

.mCSB_scrollTools .mCSB_draggerRail {
    background-color: $bkg-d!important;
}

.section-content {
  .grav-youtube-wrapper {
    margin: 3rem 0;
  }
  p{
    text-align: center;
  }
    .block{
      width: 100%;
    }
    .content {
        width: 50%;
        margin: 70px auto;
    }
}

.sous-section {
    width: 100%;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: space-evenly;
        -ms-flex-pack: space-evenly;
            justify-content: space-evenly;
    h3 {
        @include filet;
    }
    & > section{
      .title{
        margin-bottom: 70px;
      }
    }
    .item{
      p{
        text-align: justify;
      }
    }
}

.blocks {
  width: 35%;
  margin-bottom: 50px;
  .title{
    margin-bottom: 10px;
  }
}

.item-etapes {
    position: relative;
    .title {
        @include triangle;
        pointer-events: none;
    }
    h4 {
        @include rotateH;
    }
    .content {
        overflow: hidden;
        position: relative;
        .txt {
          z-index: 2;
            display: -webkit-inline-box;
            display: -ms-inline-flexbox;
            display: inline-flex;
            -webkit-box-pack: center;
                -ms-flex-pack: center;
                    justify-content: center;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-direction: column;
                    flex-direction: column;
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0%;
            left: 0;
            background: transparent;
            -webkit-transform: scale(0.95);
                    transform: scale(0.95);
            -webkit-transition: background 0.5s ease, -webkit-transform 0.5s ease;
            transition: background 0.5s ease, -webkit-transform 0.5s ease;
            transition: transform 0.5s ease, background 0.5s ease;
            transition: transform 0.5s ease, background 0.5s ease, -webkit-transform 0.5s ease;
            .content{
              padding: 20px;
            }
            p, ul, li, a{
              color: transparent;
            }
            ul{
              margin-left: 20px;
              margin-bottom: 20px;
            }
            li{
              list-style: initial!important;
            }
        }
    }

    &:hover, &:focus, &:active {
        .txt {
            -webkit-transition: background 0.5s ease, -webkit-transform 0.5s ease;
            transition: background 0.5s ease, -webkit-transform 0.5s ease;
            transition: transform 0.5s ease, background 0.5s ease;
            transition: transform 0.5s ease, background 0.5s ease, -webkit-transform 0.5s ease;
            -webkit-transform: scale(1);
                    transform: scale(1);
            background: $blue;
            p, ul, li, a{
              color: white;
            }
            .content{
              overflow: auto;
            }
        }
    }
}

.arrow {
    @include arrow;
}

.no-gal {
    .section_n2 {
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-pack: space-evenly;
            -ms-flex-pack: space-evenly;
                justify-content: space-evenly;
    }
}

.galerie{
  h5{
    margin-bottom: 0;
  }
}

#start {
  margin: 0 50px;
    & > section{
      position: relative;
      margin-bottom: 150px;
      &:not(:first-child){
        margin-bottom: 150px;
      }
      &:last-child{
        margin-bottom: 0px!important;
      }
      h2 {
        position: relative;
        z-index: 2;
        text-wrap: nowrap;
        @include filet-b;
      }
      .sous-section{
        & > section{
          padding: 0 50px;
        }
      }
      #clients{
        .images {
            display: -webkit-inline-box;
            display: -ms-inline-flexbox;
            display: inline-flex;
            -ms-flex-wrap: wrap;
                flex-wrap: wrap;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            -webkit-box-pack: space-evenly;
                -ms-flex-pack: space-evenly;
                    justify-content: space-evenly;
            img {
                width: 15%;
                min-width: 150px;
                height: 100%;
                margin-bottom: 10px;
            }
        }
      }
    }

    .section:not(#home) {
        background: $section;

        & > .sous-section {
            section {
                width: 100%;
            }
        }
    }


    #contact {
      .sous-section{
        // flex-direction: row-reverse!important;
      }
        background: transparent!important;
        .blocks{
          display: -webkit-inline-box;
          display: -ms-inline-flexbox;
          display: inline-flex;
          -webkit-box-orient: vertical;
          -webkit-box-direction: reverse;
              -ms-flex-direction: column-reverse;
                  flex-direction: column-reverse;
          -webkit-box-pack: center;
              -ms-flex-pack: center;
                  justify-content: center;
          &:nth-of-type(1){
            -webkit-box-align: end;
                -ms-flex-align: end;
                    align-items: flex-end;
            p{
              text-align: right!important;
              img{
                width: 15px;
                margin-left: 5px;
              }
            }
          }
          &:nth-of-type(2){
            -webkit-box-align: start;
                -ms-flex-align: start;
                    align-items: flex-start;
          }
          .title{
            display: none;
          }
          .content{
            margin-top: 20px;
            p{
              margin-top: 5px;
            }
          }
          .images {
              width: 10%;
              min-width: 180px;
              height: auto;
              img{
              border-radius: 150px;
              }
          }
        }
        h2 {
            background: transparent!important;
        }
    }
}

#correction-de-textes {
  p:not(:first-of-type) {
    text-align: left;
    a {
      font-weight: bolder;
    }
    &:last-of-type {
      margin-top: 3rem;
      text-align: center;
    }
  }
  h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  ul {
    list-style: disc inside;
  }
}

#correction-des-textes + section {
  p {
    text-align: left;
  }
}

/* #cr�-ation-mise-en-page-impression {
  margin-bottom: 0px !important;
  .content {
    margin-bottom: 0;
  }
  h3 {
    margin-top: 50px;
    padding-top: 4rem;
    padding-bottom: 1rem;
  }
  h3, h3+p, h3+p+p {
    background-color: white;
    margin-left: -50%;
    margin-right: -50%;
    padding-left: 50%;
    padding-right: 50%;
    margin-bottom: 0;
  }
  h3+p {
    padding-bottom: 0.3rem;
  }
  h3+p+p {
    padding-top: 0.3rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, 
      transparent 0%, 
      transparent 40%, 
      black 40%, 
      black 60%, 
      transparent 60%, 
      transparent 100%);
    border-image-slice: 1;
  }
} */

#cr�-ation-mise-en-page-impression {
  margin-bottom: 0 !important;
  .section-content:first-of-type .block .content{
    margin-bottom: 2rem !important;
  }
}

#m�-thode {
  margin-bottom: 4rem!important;
  h2+.arrow+.content {
    display: none;
  }
  h2 {
    margin-bottom: 3rem;
  }
  #fiabilite {
    padding-top: 4rem;
    background-color: white;
    .title {
      display: none;
    }
    h3 {
      background-color: white;
      text-align: center;
      display: inline-block;
      &::after, &::before {
        content: none;
      }
      &+p {
        text-align: center;
      }
    }
    .content {
      p:last-of-type {
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: solid 1px black;
        margin-left: 25%;
        margin-right: 25%;
        text-align: center;
      }
    }
  }
}