/* GENERAL */
*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body{
    background-color: #f5f5f5;
}

/* HEADER */
.header-background {
    background-color: #fff; 
    height: 70px; 
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 7px 7%;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    justify-content: space-between;
    z-index: 1000;
}

header .none{
    display: none;
}

header .logo{
    font-weight: bolder;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    transition: transform .3s;
}

header .logo:hover{
    transform: scale(1.0150);
    color: #68C4BA;
}

header img{
    width: 80px;
    height: 80px;
}

header .navbar ul{
    list-style: none;
}

header p{
    padding: 15px 20px;
    background-color: #CC0006;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

header p:hover{
    background-color: #aa1114;
    transform: translateY(-1px);
}

header p a{
    color: #fff;
}

header p a i{
    margin-left: 10px;
}

header .navbar ul li{
    position: relative;
    float: left;
}

header .navbar ul li a{
    font-size: 15px;
    font-weight: 500;
    padding: 15px;
    display: block;
    text-transform: uppercase;
    color: #000000;
}

header .navbar ul li a:hover{
    color: #1b1b1b;
    text-decoration: underline;
}

header .navbar ul li i{
    color: #000000;
    font-size: 15px;
    margin-left: 5px;
}

header .navbar ul li ul{
    position: absolute;
    left: 0;
    width: 200px;
    background-color: #FFFFFF;
    display: none;
    border: #000000;
}

header .navbar ul li ul li{
    width: 100%;
}

header .navbar ul li ul li a{
    font-size: 13px;
    color: #381E0C;
}

header .navbar ul li ul li a:hover{
    text-decoration: underline;
}

header .navbar ul li ul li ul{
    left: 200px;
    top: 0;
}

header .navbar ul li:focus-within > ul, header .navbar ul li:hover > ul{
    display: initial;
}

#menu-bar{
    display: none;
}

header label{
    font-size: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: none;
}

header .icons a i{ 
    color: #000000;
    font-size: 20px;
    margin-left: 10px;
}

/* MAIN IMAGE */
#main-image{
    margin-top: 105px;
}

#main-image .ban{
    text-align: center;
    height: 600px;
    margin: 75px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(img/image-bardage.png
    );
    background-position: center;
    background-size: cover;
    padding: 100px;
}

/* CHARPENTES */
#charpentes h1{
    font-size: 50px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

/* INFO charpentes */
#info-charpentes{
    padding: 60px 10%;
    display: flex;
    align-items: center;
}

.charpentes-content{
    display: flex;
    justify-content: space-between;
}

.charpentes-content .right{
    width: 40%;
}

.charpentes-content .right h1{
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
}

.charpentes-content .right p{
    color: #999;
    font-size: 14px;
}

.charpentes-content .left{
    width: 50%;
    height: 450px;
}

.charpentes-content .left img{
    height: 100%;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* IMAGES charpentes */
#grid .main{
    position: relative;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    justify-content: space-between;
    gap: 50px;
    padding: 0 150px;
}

#grid .main img{
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

/* COLLABORATEURS */
#collaborateurs-charpentes{
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* DEVIS */
#devis-couverture p{
    text-align: center;
    font-weight: 100;
    margin-bottom: 80px;
}

#devis-couverture p a{
    color: black;
    font-weight: 100;
    text-decoration: underline;
}

#devis-couverture p a:hover{
    color: #CC0006;
}

/* FOOTER */
footer .content-footer .top-footer{
    background-color: #D9D9D9;
    padding: 40px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .content-footer .top-footer .icon{
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px;
    gap: 10px;
}

footer .content-footer .top-footer .icon a i{
    font-size: 20px;
    color: #fff;
    padding: 10px;
    background-color: #CC0006;
    transition: transform 0.2s ease;
    border-radius: 30px;
}

footer .content-footer .top-footer .icon a i:hover{
    background-color: #aa1114;
    transform: translateY(-1px);
}

footer .content-footer .top-footer img{
    width: 160px;
}

footer .content-footer .top-footer .top02{
    flex-direction: column;
    text-align: center;
}

footer .content-footer .top-footer .top02 p{
    padding: 15px 20px;
    background-color: #CC0006;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 10px;
}

footer .content-footer .top-footer .top02 p:hover{
    background-color: #aa1114;
    transform: translateY(-1px);
}

footer .content-footer .top-footer .top02 p a{
    color: #fff;
}

footer .content-footer .top-footer .top02 p a i{
    margin-left: 10px;
}

footer .content-footer .bottom-footer{
    background-color: #CC0006;
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
}

footer .content-footer .bottom-footer a{
    color: #FFFFFF;
    font-size: 14px;
}

footer .content-footer .bottom-footer a:hover{
    text-decoration: underline;
}

footer .content-footer .bottom-footer p{
    color: #FFFFFF;
}

@media(max-width:1100px){
    header {
        padding: 25px 7%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header .none{
        font-size: 25px;
        color: #000000;
        display: initial;
    }
    
    header label {
        display: initial;
    }
    
    header .logo {
        font-size: 28px;
    }
    
    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, .1);
        display: none;
    }
    
    header .navbar ul li {
        width: 100%;
    }
    
    header .navbar ul li ul {
        position: relative;
        width: 100%;
    }
    
    header .navbar ul li ul li a {
        color: #000000;
        font-size: 11px;
    }
    
    header .navbar ul li ul li ul {
        width: 100%;
        left: 0;
    }
    
    label i {
        color: #000000;
        font-size: 30px;
    }
    
    #menu-bar:checked ~ .navbar {
        display: initial;
    }

    header p{ 
        display: none;
    }

    /* MAIN IMAGE */
    #main-image{
        margin-top: 140px;
    }

    #main-image .ban{
        height: 500px;
    }

    /* charpentes */
    #charpentes h1{
        font-size: 45px;
    }

    /* INFOS charpentes */
    #info-charpentes{
        padding: 20px 10%;
        display: flex;
        align-items: center;
    }
    
    .charpentes-content{
        flex-direction: column;
    }
    
    .charpentes-content .right{
        width: 100%;
    }
    
    .charpentes-content .right h1{
        font-size: 28px;
        font-weight: 500;
        margin-bottom: 30px;
    }
    
    .charpentes-content .right p{
        color: #999;
        font-size: 14px;
        text-align: center;
    }
    
    .charpentes-content .left{
        width: 100%;
        height: 450px;
        margin-bottom: 40px;
    }
    
    .charpentes-content .left img{
        height: 100%;
        width: 100%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    /* IMAGES charpentes */
    #grid .main{
        position: relative;
        align-items: center;
        margin-top: 40px;
        margin-bottom: 25px;
        width: 100%;
        display: grid;
        justify-content: center;
        gap: 50px;
        padding: 0 40px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 140px));
    }
    
    #grid .main img{
        width: 200px;
        height: 140px;
        object-fit: cover;
        object-position: center;
    }

    /* FOOTER */
    footer .content-footer .top-footer{
        flex-direction: column;
        gap: 40px;
    }
}

@media(max-width:500px){
    /* MAIN IMAGE */
    #main-image .ban{
        height: 400px;
    }

    /* INFOS charpentes */
    #info-charpentes{
        padding: 20px;
        display: flex;
        align-items: center;
    }

    .charpentes-content .left img{
        height: 100%;
        width: 100%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    /* charpentes */
    #charpentes{
        padding: 0px 20px;
    }

    #charpentes h1{
        font-size: 35px;
    }

    /* IMAGES charpentes */
    #grid .main{
        position: relative;
        align-items: center;
        margin-top: 40px;
        margin-bottom: 25px;
        width: 100%;
        display: grid;
        justify-content: center;
        gap: 50px;
        padding: 0px;
        grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
    }

    #grid .main img{
        width: 260px;
        height: 260px;
        object-fit: cover;
        object-position: center;
    }

    /* FOOTER */
    footer .content-footer .bottom-footer a{
        font-size: 11px;
    }

    footer .content-footer .bottom-footer p{
        font-size: 11px;
    }
}