* {
    margin: 0;
    padding: 0;
}
body {
    /*background: #f0f0f0;*/
}
/* a, a:focus, a:hover {
    color: white;
    text-decoration: none;
    cursor: pointer;
    outline: 0!important;
    font-weight: bold;
} */
#hexGrid {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  list-style-type: none;
  padding-top: 20px;
}
.hb .monbadge{
    color: #fff;
    text-align: center;
    top : 3%
}

.hex {
  position: relative;
  visibility:hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hex::after{
  content:'';
  display:block;
  padding-bottom: 86.602%;  /* =  100 / tan(60) * 1.5 */
}
.hexIn{
  position: absolute;
  width:96%;
  padding-bottom: 110.851%; /* =  width / sin(60) */
  margin:0 2%;
  overflow: hidden;
  visibility: hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
  -webkit-transform: rotate3d(0,0,1,-60deg) skewY(30deg);
      -ms-transform: rotate3d(0,0,1,-60deg) skewY(30deg);
          transform: rotate3d(0,0,1,-60deg) skewY(30deg);
}
.hexIn * {
  position: absolute;
  visibility: visible;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hexLink {
    cursor : pointer;
    display:block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #fff;
    overflow: hidden;
    -webkit-transform: skewY(-30deg) rotate3d(0,0,1,60deg);
        -ms-transform: skewY(-30deg) rotate3d(0,0,1,60deg);
            transform: skewY(-30deg) rotate3d(0,0,1,60deg);
}

/*** HEX CONTENT **********************************************************************/
.hex img {
  left: -100%;
  right: -100%;
  width: auto;
  height: 100%;
  margin: 0 auto;
  -webkit-transform: rotate3d(0,0,0,0deg);
      -ms-transform: rotate3d(0,0,0,0deg);
          transform: rotate3d(0,0,0,0deg);
}
.hex .hb {
    left: -100%;
    right: -100%;
    width: auto;
    height: 95%;
    /* height: 100%; */
     margin: 25% auto;
    -webkit-transform: rotate3d(0,0,0,0deg);
    -ms-transform: rotate3d(0,0,0,0deg);
    transform: rotate3d(0,0,0,0deg);
}

/*_____*/
.hex .icon, .hex .title {
    width: 100%;
    padding: 12% 32%;
    box-sizing: border-box;
    background-color: #278bcb;
    font-weight: 300;
}
.hex .icon {
    bottom: 0px;
    padding-top: 50%;
    padding-bottom: 20px;
    font-size: 1.5em;
    z-index: 1;
}
.hex .icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 45%;
  width: 10%;
  text-align: center;
  border-bottom: 2px solid #fff;
}
.hex .title {
    top: 12%;
    padding-bottom: 50%;
    padding-top: 3%;
}
/*_____*/

.hex h1, .hex p {
  width: 100%;
  padding: 5%;
  box-sizing:border-box;
  /* background-color: #8fc1e2; */
  font-weight: 300;
  -webkit-transition:  -webkit-transform .2s ease-out, opacity .3s ease-out;
          transition:          transform .2s ease-out, opacity .3s ease-out;
}
.hex h1 {
  font-weight: bold;
  bottom: 65%;
  padding-top:50%;
  font-size: 1.3em;
  z-index: 1;
  margin : 0;
  -webkit-transform:translate3d(0,-100%,0);
      -ms-transform:translate3d(0,-100%,0);
          transform:translate3d(0,-100%,0);
}
.hex h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 45%;
  width: 10%;
  text-align: center;
  border-bottom: 1px solid #fff;
}
.hex p {
  top: 35%;
  padding-bottom:50%;
  -webkit-transform:translate3d(0,100%,0);
      -ms-transform:translate3d(0,100%,0);
          transform:translate3d(0,100%,0);
}


/*** HOVER EFFECT  **********************************************************************/
.hexLink:hover h1, .hexLink:focus h1, .hexLink:active h1,
.hexLink:hover p, .hexLink:focus p .hexLink:active p{
  
  -webkit-transform:translate3d(0,0,0);
      -ms-transform:translate3d(0,0,0);
          transform:translate3d(0,0,0);
}

/*.hexLink h1, 
.hexLink p {
  
  -webkit-transform:translate3d(0,0,0);
      -ms-transform:translate3d(0,0,0);
          transform:translate3d(0,0,0);
}*/

.hexLink:hover h1, .hexLink:focus h1, .hexLink:active h1,
.hexLink:hover p, .hexLink:focus p .hexLink:active p{
  
  color : white;
}

/*** HEXAGON SIZING AND EVEN ROW INDENTATION *****************************************************************/
@media screen and (min-width:1550px) { /* <- 5-4  hexagons per row */
  #hexGrid{
    padding-bottom: 4.4%
  }
  .hex {
    width: 20%; /* = 100 / 5 */
  }
  .hex:nth-child(9n+6){ /* first hexagon of even rows */
    margin-left:10%;  /* = width of .hex / 2  to indent even rows */
  }
  .hex .icon {
    font-size: 100px;
  }
  .hex p {
    font-size: 20px;
  }
  .show-mobile{
      display : none;
  }
  [class^="pi-"]:before, [class*="pi-"]:before {
    font-size: 110px !important;
  }
  .hex .title {
    top: 5%;
  }
}

@media screen and (max-width: 1550px) and  (min-width:1326px) { /*mon ordi*/
  .description {
      position: relative;
      font-size: 16px;
  }

    #hexGrid{
      padding-bottom: 4.4%
    }
    .hex {
      width: 20%; /* = 100 / 5 */
    }
    .hex:nth-child(9n+6){ /* first hexagon of even rows */
      margin-left:10%;  /* = width of .hex / 2  to indent even rows */
    }
    .hex .icon {
      font-size: 85px;
      bottom: 7%;
    }
    .hex p {
      font-size: 20px;
    }
    .show-mobile{
        display : none;
    }
    [class^="pi-"]:before, [class*="pi-"]:before {
      font-size: 90px !important;
    }
    .hex .title {
      top: 0%;
    }
    .hb .monbadge {
      top: 0%;
    }
    .hex h1 {
     bottom: 75%;
    }
    .hex p {
      top: 25%;
    }
    h1.bdcColor {
      padding-bottom: 1% !important;
      font-size: 1.4em;
    }

}

@media screen and (max-width: 1325px) and  (min-width:1201px) { /*mon ordi*/
  .description {
      position: relative;
      font-size: 16px;
  }

    #hexGrid{
      padding-bottom: 4.4%
    }
    .hex {
      width: 20%; /* = 100 / 5 */
    }
    .hex:nth-child(9n+6){ /* first hexagon of even rows */
      margin-left:10%;  /* = width of .hex / 2  to indent even rows */
    }
    .hex .icon {
      font-size: 40px;
      bottom: 7%;
    }
    .hex p {
      font-size: 20px;
    }
    .show-mobile{
        display : none;
    }
    [class^="pi-"]:before, [class*="pi-"]:before {
      font-size: 90px !important;
    }
    .hex .title {
      top: 0%;
    }
    .hb .monbadge {
      top: 0%;
    }
    .hex h1 {
     bottom: 75%;
    }
    .hex p {
      top: 25%;
    }
    h1.bdcColor {
      padding-bottom: 1% !important;
    }

}


@media screen and (max-width: 1200px) and (min-width:901px) { /* <- 4-3  hexagons per row */
  #hexGrid{
    padding-bottom: 5.5%
  }
  .hex {
    width: 25%; /* = 100 / 4 */
  }
  .hex:nth-child(10n+5){ /* first hexagon of even rows */
    margin-left:12.5%;  /* = width of .hex / 2  to indent even rows */
  }
  .hex:nth-child(10n+8){ /* first hexagon of even rows */
    margin-left:25%;  /* = width of .hex / 2  to indent even rows */
  }
  .hex p {
    font-size: 13px;
  }
  .hb .title {
    font-size: 17px !important;
  }
  .show-mobile{
      display : none;
  }
  h1.bdcColor {
      padding-bottom: 1% !important;
    }
}

@media screen and (max-width: 900px) and (min-width:601px) { /* <- 3-2  hexagons per row */
  #hexGrid{
    padding-bottom: 7.4%
  }
  .hex {
    width: 33.333%; /* = 100 / 3 */
  }
  .hex:nth-child(5n+4){ /* first hexagon of even rows */
    margin-left:16.666%;  /* = width of .hex / 2  to indent even rows */
  }
  .show-mobile{
      display : block;
  }
   .hex h1 {
     bottom: 75%;
     font-size: 1.2em;
    }
    .hex p {
      top: 25%;
    }
    h1.bdcColor {
      padding-bottom: 1% !important;
    }
    .statistic-box .number {
        font-size: 1.5em;
        line-height: 1;
        padding: 9px 0 0;
    }
    #container-client .statistic-box>div {
      height: inherit;
    }
    #container-client h2 {
      font-size: 1.4em;
    }
    
}

@media screen and (max-width: 600px) { /* <- 2-1  hexagons per row */
  #hexGrid{
    padding-bottom: 11.2%
  }
  .hex {
    width: 33%; /* = 100 / 3 */
  }
  .hex:nth-child(5n+4){ /* first hexagon of even rows */
    margin-left: 16.5%;  /* = width of .hex / 2  to indent even rows */
  }
  .hex p {
      font-size: 10px;
    }
    .hex h1 {
      font-size: 12px;
    }   
    [class^="pi-"]:before, [class*="pi-"]:before {
        font-size: 33px !important;
    } 
    .hb .title {
        font-size: 11px !important;
    }
    .hex .icon {
      padding-bottom: 12px;
    }
    .show-mobile{
      display : block;
    }
    .hb .monbadge{
      display: none;
    }
    .hex p {
      top: 25%;
    }
    .hex h1 {
      bottom: 75%;
    }
    .hex .title {
        top: 9%;
    }
    h1.bdcColor {
      padding-bottom: 1% !important;
    }
  .statistic-box .number {
        font-size: 1.5em;
        line-height: 1;
        padding: 9px 0 0;
    }
    #container-client .statistic-box>div {
      height: inherit;
    }
    #container-client h2 {
      font-size: 1.4em;
    }
        /*-----------in progress-----------------*/
    .note {
      color: black;
      position: relative;
      width: 44%;
      height: 51px;
      padding: 4px;
      font-size: 9px;
      box-shadow: 0 10px 10px 2px rgba(0,0,0,0.3);
      display: block;
      margin: 0px auto 0 auto;
      text-align: center;
      border: 0;
    }
    .author {
      text-align: right;
      margin: 0px 5px 0px 0;
      font-size: 10px;
    }
    .note-contain {
      margin-top: 10px;
      height: inherit;
    }
    .remarque blockquote {
      margin: 20px 10px;
      line-height: 15px;
      border-left: 5px solid #ccc;
    }
    .remarque blockquote p {
      display: inline;
      font-size: 10px;
      line-height: 0.1;
      padding: 3px;
    }
    .remarque blockquote:before {
        color: #ccc;
        content: open-quote;
        font-size: 2em;
        line-height: 0.1em;
        vertical-align: -0.4em;
        text-align: justify;
    }
    .devis label {
        font-size: 11px;
    }
    .devis input, .devis textarea {
        font-size: 10px;
        padding: 0px 18px;
    }
    .devis input {
        height: 30px;
    }
    .btn-lg {
      font-size: 10px;
      padding: 5px 10px;
    }
    .devis .title {
      font-weight: 600;
      font-size: 1.0em;
    }
    
}

@media screen and (max-width: 400px) {
    #hexGrid {
        font-size: 13px;
    }
    .hex p {
      font-size: 7px;
    }
    .hex h1 {
      font-size: 10px;
    }
    [class^="pi-"]:before, [class*="pi-"]:before {
        font-size: 33px !important;
    }
    .hb .title {
        font-size: 11px !important;
    }
    .hex .icon {
      padding-bottom: 12px;
    }
    .show-mobile{
      display : block;
    }
    h1.bdcColor {
      padding-bottom: 1% !important;
    }
    /*-----------stats-----------------*/
    .statistic-box .number {
        font-size: 1.1em;
        line-height: 1;
        padding: 9px 0 0;
    }
    #container-client .statistic-box>div {
      height: inherit;

    }
    #container-client h2 {
      font-size: 1.1em;
    }
    #container-client .statistic-box .caption>div {
      font-size: 12px;
    }
    #container-client .statistic-box {
      margin: 0 0 9px;
    }
    /*-----------in progress-----------------*/
    .note {
      color: black;
      position: relative;
      width: 44%;
      height: 51px;
      padding: 4px;
      font-size: 9px;
      box-shadow: 0 10px 10px 2px rgba(0,0,0,0.3);
      display: block;
      margin: 0px auto 0 auto;
      text-align: center;
      border: 0;
    }
    .author {
      text-align: right;
      margin: 0px 5px 0px 0;
      font-size: 10px;
    }
    .note-contain {
      margin-top: 10px;
      height: inherit;
    }
    .remarque blockquote {
      margin: 20px 10px;
      line-height: 15px;
      border-left: 5px solid #ccc;
    }
    .remarque blockquote p {
      display: inline;
      font-size: 10px;
      line-height: 0.1;
      padding: 3px;
    }
    .remarque blockquote:before {
        color: #ccc;
        content: open-quote;
        font-size: 2em;
        line-height: 0.1em;
        vertical-align: -0.4em;
        text-align: justify;
    }
    .devis label {
        font-size: 11px;
    }
    .devis input, .devis textarea {
        font-size: 10px;
        padding: 0px 18px;
    }
    .devis input {
        height: 30px;
    }
    .btn-lg {
      font-size: 10px;
      padding: 5px 10px;
    }
    .devis .title {
      font-weight: 600;
      font-size: 1.0em;
    }
    
}