
#carousel-dynamic-home .carousel-inner {
  height: 550px;
  overflow: hidden;
}

#carousel-dynamic-home .carousel-item {
  height: 100%;
}

#carousel-dynamic-home .carousel-item a {
  display: block;
  height: 100%;
}

#carousel-dynamic-home .carousel-item img {
  width: 100%;
  height: 100%;
  //object-fit: cover;
  object-position: center;
}

#home {
  margin-top: 4rem;

  .title-content {
    margin: 20px 10px;
    border-top: 1px solid #333;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;

    a {
      color: black;

      position: relative;
      text-decoration: none;

      h2 {
        font-size: 2rem;
        font-weight: 500;
        // font-family: "Dosis";
        position: relative;
        top: -20px;
        left: 50%;
        z-index: 5;
        background-color: white;
        width: max-content;
        padding: 0 30px;
        transform: translateX(-50%);
      }
    }
  }

  #blocksmhome-row {
    padding-bottom: 2rem;

    #blocksmhome-content {
      max-width: 1620px;
      margin: auto;
      // padding: 0 15px;
      display: flex;
      flex-wrap: wrap;
      font-size: 35px;
      text-transform: uppercase;
      font-family: clearly, sans-serif;

      > .col-sm-6 {
        width: 50%;
      }

      a {
        color: #333;
        display: block;
        position: relative;
        overflow: hidden;
        text-decoration: none;
      }

      p {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 2;
        margin: 0;
        padding: 15px;
        transform: translate(-50%, -50%);
        background-color: rgba(234, 234, 234, 0.9);
        font-size: 25px;
        line-height: 25px;
        font-weight: bold;
        text-align: center;
      }

      img {
        width: 100%;
        height: auto;
        transition: transform 0.4s;
      }
    }

    
    #blocksmhome-tissuland {
      padding: 0 4px 0 10px;
    }

    #blocksmhome-content > .col-sm-6:last-child {
      display: flex;
    }

    #blocksmhome-ideascatalogues,
    #blocksmhome-salonsshow {
      width: 50%;
    }

    #blocksmhome-ideascatalogues {
      padding: 0 2px 0 0;
    }

    #blocksmhome-salonsshow {
      padding: 0 1px 0 0;
    }

    #blocksmhome-ideas,
    #blocksmhome-show,
    #blocksmhome-salonsshow {
      overflow: hidden;
    }

    #blocksmhome-show {
      margin-top: 4px;
    }

    #blocksmhome-ideas:hover img,
    #blocksmhome-show:hover img,
    #blocksmhome-salonsshow:hover img {
      transform: scale(1.1);
    }

    @media (max-width: 991px) {
      #blocksmhome-content p {
        font-size: 20px;
        line-height: 20px;
      }
    }

    @media (max-width: 767px) {
      #blocksmhome-content > .col-sm-6,
      #blocksmhome-ideascatalogues,
      #blocksmhome-salonsshow {
        width: 100%;
      }

      #blocksmhome-content > .col-sm-6:last-child {
        flex-direction: column;
      }

      #blocksmhome-tissuland {
        margin-bottom: 4px;
        padding: 0;
      }

      #blocksmhome-ideascatalogues,
      #blocksmhome-salonsshow {
        padding: 0;
      }

      #blocksmhome-salonsshow {
        margin-top: 4px;
      }
    }
  }


  .columns-container {
    background: transparent url("https://www.rubanstore.com/themes/rubanstore/css/../img/separation-bas.png") repeat-x left bottom;
  }

  #columns-container-who {
    background: white;
    padding: 30px 0;
    text-align: left;
    width: 88vw;
    margin: 0 auto;

    #columns-who.container {
      // max-width: 1170px;
      margin: 0 auto;
      padding-left: 15px;
      padding-right: 15px;
      
    }

    .row {
      display: flex;
      flex-wrap: wrap;
      margin-left: -15px;
      margin-right: -15px;
      padding-left: 15px;
      padding-right: 15px;
    }

    .col-md-6,
    .col-sm-12,
    .col-xs-6,
    .col-sm-4,
    .col-md-2 {
      position: relative;
      min-height: 1px;
      padding-left: 15px;
      padding-right: 15px;
    }

    .col-md-6 {
      width: 50%;
    }

    sup {
      color: #777;
    }

    h1,
    h2 {
      font-family: clearly, open-sans, sans-serif;
      font-weight: bold;
      line-height: 1.1;
    }

    h1 {
      font-size: 30px;
      margin-top: 0;
      margin-bottom: 0;
      color: black;
    }

    h2 {
      font-size: 20px;
      margin-top: 0;
      display: inline-block;
      font-style: italic;
      padding-left: 5px;
      color: #777;
    }

    .underline {
      display: inline-block;
      width: 30px;
      color: #af9012;
      border: 3px solid;
    }

    p {
      margin: 0 0 9px;
      font-size: 1.1em;
      line-height: 1.3em;
    }

    #after-title {
      margin-top: 50px;
    }

    .paragraph-who,
    .service-bold,
    .service-detail {
      color: black;
    }

    .paragraph-who {
      margin-bottom: 20px;
    }

    .img-ambiance {
      display: block;
      max-width: 100%;
      height: auto;
    }

    #img-ambiance-1 {
      position: relative;
      width: auto;
      float: right;
      top: -2px;
      left: 55px;
    }

    #img-ambiance-2 {
      position: absolute;
      width: 45%;
      top: 238px;
      left: 170px;
    }

    #img-ambiance-3 {
      position: absolute;
      width: 43%;
      top: 373px;
      left: 389px;
    }

    .service-bold {
      font-weight: bold;
      font-size: 1.5em;
      margin-bottom: 0;
      padding-top: 10px;
    }

    .service-detail {
      font-size: 1em;
      line-height: 1.2em;
      margin-bottom: 5px;
    }

    #row-service img {
      max-height: 50px;
    }
  }

  #row-service {
    text-align: center;
    margin-top: 150px;

    .col-md-2 {
      width: 16.66667%;
    }

    a {
      color: #777;
      text-decoration: none;
    }

    p:first-child {
      color: #b9a15f;
      font-size: 30px;
      margin: -10px;
    }

    h2 {
      margin-bottom: 35px;
      text-transform: uppercase;
      font-size: 25px;
    }
  }

  @media (max-width: 1362px) {
    #columns-container-who {
      #img-ambiance-1 {
        left: 27px;
      }

      #img-ambiance-2 {
        left: 100px;
      }

      #img-ambiance-3 {
        left: 319px;
      }
    }
  }

  @media (max-width: 1199px) {
    #columns-container-who {
      #img-ambiance-1 {
        left: 23px;
      }

      #img-ambiance-2 {
        left: 33px;
      }

      #img-ambiance-3 {
        left: 234px;
      }
    }
  }

  @media (max-width: 991px) {
    #columns-container-who {
      .col-md-6,
      .col-sm-12,
      .col-xs-6,
      .col-sm-4,
      .col-md-2 {
        width: 50%;
      }

      .img-ambiance {
        display: none;
      }

      #row-service div {
        height: 160px;
      }
    }

    #row-service {
      margin-top: 23px;
    }
  }

  @media (max-width: 767px) {
    #columns-container-who {
      .col-md-6,
      .col-sm-12 {
        width: 100%;
      }

      .col-xs-6,
      .col-sm-4,
      .col-md-2 {
        width: 50%;
      }
    }
  }

  @media (max-width: 479px) {
    #columns-container-who {
      h2 {
        font-size: 15px;
      }

      h1 {
        font-size: 29px;
      }

      #after-title {
        margin-top: 35px;
      }

      .service-bold {
        font-size: 0.8em;
      }

      .service-detail {
        font-size: 0.6em;
      }
    }

    #row-service {
      margin-top: 23px;

      .col-xs-6,
      .col-sm-4,
      .col-md-2 {
        height: 65px;
      }
    }
  }
}