main {
    margin: 80px 0 0;
}
div#home {
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
div#home .bx-wrapper {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    z-index: 0;
}
div#home .bx-viewport {
    display: block;
    width: 100%;
    height: 100% !important;
    z-index: 0;
}
div#home ul#carousel {
    position:absolute;
    top: 0;
    left: 0;
    height: 100% !important;
    z-index: 0;
    display: flex;
    align-items: center;
    padding: 0;
}
div#home ul#carousel li {
    height: 100% !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

h1 {
    position: relative;
    z-index: 9;
    width: 50%;
    height: 100%;
    margin: 0;
    padding: 100px;
    font-size: 3em;
    color: #2f3833;
    text-shadow: 5px 5px 15px rgba(0,0,0,0.9);
    text-shadow: 0 0 30px rgba(255,255,255,1.0);
}
h1 strong {
    display: block;
}
h1 a {
    display: inline-block;
    background: #c0512b;
    color: #fff;
    border-radius: 7px;
    padding: 0 30px;
    height: 70px;
    margin: 10px 0;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.9);
    font-weight: bolder;
}

.bx-controls-direction {
    z-index: 999;
}


div#services {
    background: #F8F2E9;
    margin: 0;
    padding: 100px;
}
div#services h2 {
    margin: 0 0 50px 0;
    color: #c0512b;
}
div#services ul {
    margin: 0; 
    padding: 0;
    width: auto;
    height: auto;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px 10px;
}
div#services ul li {
    line-height: 60px;
    vertical-align: middle;
    font-size: 1.5em;
}
div#services ul li:last-child {
    grid-column: span 2;  
}
div#services ul li span,
div#services ul li strong {
    display: inline-block;
    line-height: 60px;
    vertical-align: middle;
    margin: 0 5px;
}

.hexagon {
    display: inline-block;
    width: 72px;
    height: 60px;
    background-color: gray;
    position: relative;
    clip-path: polygon(
        25% 0%, 75% 0%,
        100% 50%, 75% 100%,
        25% 100%, 0% 50%
    );
}
.hexagon.green { background-color: #b3cc4e; }    /* Aménagement extérieur */
.hexagon.red { background-color: #d14c33; }      /* Enduit hydraulique */
.hexagon.gray { background-color: #666666; }     /* Rénovation */
.hexagon.orange { background-color: #e97d32; }   /* Pose de pavés */
.hexagon.dark { background-color: #333333; }     /* Façade pierre */

a.bouton {
    display: inline-block;
    background: #333333;
    text-decoration: none;
    margin: 20px 0;
    color: #fff;
    padding: 0 40px;
    height: 60px;
    line-height: 60px;
    border-radius: 18px;
    font-size: 1.5em;
    font-weight: 700;
    transition: 0.5s;
}
a.bouton:hover {
    background: #c0512b;
    transition: 0.5s;
}

div#realisations {
    background: #e9e4d6;
    margin: 0;
    padding: 100px;
}
div.realisations {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
    margin: 20px 0;
}
div.realisations div.realisation {
    height: 230px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
}
div.realisations div.realisation div.img {
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100%;
    transition: 0.5s;
}
div.realisations div.realisation:hover div.img {
    transform: scale(1.5);
    transition: 0.5s;
}

@media screen and (max-width: 1200px) {
    h1 {
        width: 75%;
    }
    div#services ul {
        grid-template-columns: repeat(2, 1fr);
    }
    div#services ul li:nth-last-child(-n + 2) {
        grid-column: span 2;
    }
}
@media screen and (max-width: 980px) {
    div#home {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    h1 {
        width: 100%;
        text-align: center;
        height: auto;
    }
}
@media screen and (max-width: 920px) {
    div#services ul li {
        font-size: 1em;
    }
    div.realisations {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 750px) {
    h1 a {
        height: 50px;
        line-height: 50px;
    }
    div#realisations h2,
    div#contact h2,
    div#services h2 {
        text-align: center;
    }
    div#services ul {
        display: block;
    }
    div#services ul li {
        margin: 15px 0;
    }
    div#services ul li span, div#services ul li strong {
        display: block;
        text-align: center;
        margin: 0 auto;
    }
    div#services ul li strong {
        line-height: 20px;
    }
    div.realisations {
        display: block;
    }
    div.realisations div.realisation {
        margin: 20px 0;
    }
    a.bouton {
        width: 100%;
        display: block;
        text-align: center;
    }
}
@media screen and (max-width: 680px) {
    h1 {
        font-size: 2em;
    }
}
@media screen and (max-width: 500px) {
    h1 {
        padding: 50px;
    }
    div#realisations {
        padding: 40px;
    }
    a.bouton {
        font-size: 1em;
        line-height: 20px;
        height: auto;
        padding: 15px;
    }
}
