div{
    /*width: 51%;*/
    margin: auto;
    text-align: center; 
    color:#27322B;
}

#sec_intro{
    height: 90vh;
    padding-top: 3vh;
}

#intro_content{
    position: relative;
    display: grid;
    grid-template-areas: 


                        "a . . ."
                        "a b b b"
                        "a b b b"
                        "c b b b ";
    height: 100%;
    width: 100%;
}

h1{
    font-size: calc(6vw - calc(calc(6vw - 13vh) / 2));
    margin: 0;
    margin-bottom: 5vh;
}

h2{
    width: 50%;
    margin: auto;
    margin-top: 5vh;
    margin-bottom: 10vh;
}

#titre{
    grid-area: a;
    text-align: left;
    line-height: 1.2;
    margin-left: 4vh;
}
#btn_pres{
    grid-area: c;
    font-size: 22px;
    text-decoration: none;
    color: #067302;
    border: 1px solid #067302;
    padding: 15px;
    margin-left: 4vh;
    border-radius: 10px;
    position: absolute;
    transition: all 1s;
    overflow: hidden;
}

#btn_pres::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #067302;
    border: 2px solid #067302;
    transition: all 0.6s;
    z-index: -1;
    transform: translateX(-100%);

}
  
#btn_pres:hover::before {
    transform: translateX(0);
}
#btn_pres:hover {
    color: #fff;
}


#group{
    display: flex;
    margin: auto;
    width: 16vw;
}
#intro{
    grid-area: b;
}
#txt_intro{
    font-size: calc(1.15vw - calc(calc(1.15vw - 2.4vh) / 2));
    margin-right: 7vh;

}
.inter{
    padding-top: 3vh;
    padding-bottom: 3vh;
}

.contact{
    background-color: #a5d1a96b;
    font-size: 19px;
    position:  relative;
    z-index: 100;
    margin-bottom: -2.3vh;
}

.green{
    background-color: #a5d1a96b;
    width: 100%;
    position: relative;
    z-index: 100;
}

.green_inv{
    background: linear-gradient(to top, #fff, #a5d1a96b);
    width: 100%;
    position: relative;
    z-index: 100;
}

#sec_metiers{
    padding-top: 1vh;
    padding-bottom: 8vh;
    position: relative;
}

#metiers{
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}


#metiers div img{
    display: flex;
    margin: auto;
}

#metiers div{
    display: grid;
    grid-template-rows: 2fr 1fr;
    height: 90%;
    width: 70%;
    padding: 2vh;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #fff;
    position: relative;
}

#metiers div:hover{
    cursor: pointer;
    background-color: rgb(233, 232, 232);
}

.voir::after{
    content: '';
    background-image: url('./images/fleche_droite.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 1vh;
    right: 2vh;
}

#plus_1::after, #plus_2::after{
    content: '+';
    position: absolute;
    bottom: 1vh;
    right: 2vh;
}

#ouvrier{
    width: 140px;
}
#suivi{
    height: 218px;
}

#fiche{
    height: 170px;
}

#man{
    width: 160px;
}



#web{
    width: 51%;
}


#grid_X3{
    width: 70%;
    display: grid;
    grid-template-areas:
                    "a b"
                    ". b";
    column-gap: 7vh;
    margin-bottom: 5vh;
}


#link_X3{
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 15px;
    padding-right: 2vh;
    padding-left: 2vh;
    padding-bottom: 2vh;
    background-color: #fff;
    grid-area: b;
}

#txt_X3{
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 15px;
    padding: 2vh;
    background-color: #fff;
    text-align: justify;
    height: max-content;
    grid-area: a;
}

#txt_X3_a, #txt_X3_b{
    padding: 0;
    margin: 0;
}

#txt_X3_a::before, #txt_X3_b::before{
    content: '';
    background-image: url("./images/puce_rouge.png");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-flex;
    width: 13px;
    height: 13px;
    margin-right: 10px;
}



#link_X3 a{
    display: block;
    text-decoration: none;
    color: #fff;
    background-color: #067302;
    padding: 1vh;
    border-radius: 5px;
    margin-top: 1vh;

}

#web{
    width: 100%;
    margin-bottom: 7vh;
}

#grid_web{
    width: 80%;
    display: grid;
    grid-template-areas:
                    ". a . . . b ."
                    "c c c . d d d"
                    "c c c . d d d"
                    ". . e e e . .";
    text-align: justify;
}

#txt_web_a{
    grid-area: c;
    width: 90%;
    margin: auto;
}

#txt_web_b{
    grid-area: d;
    width: 90%;
    margin: auto;
}

#page{
    grid-area: a;
    width: 79px;
}

#phone{
    grid-area: b;
    width: 79px;
}

#btn_web{
    grid-area: e;
    font-size: 19px;
    color: #fff;
    background-color: #992621;
    border-radius: 10px;
    padding: 5px;
    text-decoration: none;
    text-align: center;
    width: 50%;
    margin: auto;
}

main p{
    color:#27322B;
    padding-bottom: 5vh;

}

h4{
    color: #27322B;
    font-size: 20px;
}

h3{
    color: #27322B;
    font-size:33px;
}

.bouton{
    color: #fff;
    background-color: #067302;
    border-radius: 25px;
    padding: 10px;
    text-decoration: none;
    /*margin-top: -1em;*/
    transition: font-size 0.5s;
}

.bouton:hover{
    font-size: 20px;
    transition: 0.5s;
    margin: 0;
    position: relative;

}

#contact{
    margin-bottom: 5vh;
}
#contact p{
    padding: 1vh;
    margin:0;
}


#telephone::before{
    content: '';
    background-image: url('./images/tel_fixe.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-flex;
    width: 19px;
    height: 18px;
    margin-right: 10px;
    margin-bottom: -3px;

}


#titre_m{display: none}
#sage_m{
    display: none;
}



@media screen and (max-width: 860px){
    body{
        width: 100%;
        padding: 0;
        border-radius: 0px;
        font-size: 14px;
        
    }
    div{
        width: 90%;
        text-align: justify;
    }

    #sec_intro{
        height: auto;
    }

    #intro_content{
        grid-template-areas: 
                            "a"
                            "b"
                            "c";
    }
    h1{
        font-size:50px;
        margin: 0;
    }
    h2{
        margin-bottom: 4vh;
        text-align: center;
        width: 90%;
    }
    
    #titre{
        grid-area: a;
        text-align: left;
        line-height: 1.2;
        margin-left: 4vh;
        padding-bottom: 5vh;
        padding-top: 3vh;
    }

    #btn_pres{
        position: relative;
        margin: auto;
        margin-bottom: 2vh;
    }

    #group{
        width: 170px;
        display: flex;
        margin: auto;
        padding-bottom: 3vh;
    }
    #intro{
        grid-area: b;
    }
    #txt_intro{
        font-size: 15px;
        width: 90%;
        margin: auto;
    }

    
    #web{
        width: 85%;
    }

    h3{
        text-align: center;
    }

    #sage{
        display: none;
    }

    #contact{
        text-align: center;
    }

    #sage_m{
        width: 189px;
        display: block;
        margin: auto;
        padding-bottom: 3vh;
    }

    #grid_X3{
        width: 90%;
        grid-template-areas:
                        "a"
                        "b";
        row-gap: 4vh;
    }

    #metiers{
        width: 90%;
        grid-template-columns: 1fr;
        row-gap: 2vh;
    }
    
    #metiers div{
        height: 80%;
        text-align: center;
        border-radius: 10px;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        background-color: #fff;
    }

    .voir::after{
        width: 15px;
        height: 15px;
        bottom: 0.5vh;
        right: 1vh;
    }
    
    #plus_1::after, #plus_2::after{
        bottom: 0;
        right: 1.5vh;
    }

    .popup.active{
        grid-template-areas: 
                        "a"
                        "b"
                        "c";
        width: 80%;
        margin-left: -10%;
    }

    #tab_gestion{
        top: 25%;
        bottom:auto;
    }
    
    #gestion_grid{
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    
    #gestion_grid div{
        width: 100%;
        grid-template-rows: auto;
        margin-left: 0;
    }

    #gestion_a{
        border-right: none;
        padding-bottom: 2vh;
    }


    #grid_web{
        width: 100%;
        grid-template-areas: 
                            ". a ."
                            "c c c"
                            ". b ."
                            "d d d"
                            "e e e";
    }

    #grid_web img{
        padding-bottom: 2vh;
    }
}