@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

body {
    padding:0;
    margin:0;
    font-family: 'Inter', sans-serif;
}

h1{
    font-size : 50px;
}

h2{
    margin : auto;
    padding : 50px;
    font-size: 32px;
}

p{
    line-height: 1.3;
    font-size : 16px;
}

.titre-page{
    background : url("/img/maison.jpg");
    background-size: cover;
    background-position:top;
    background-repeat: no-repeat;
    text-align :center;
    width : 100%;
    height : auto;
    padding-top : 0vh;
    padding-bottom : 30px;
}

.titre-page .titre{
    padding-top : 9vh;
    margin : auto;
    margin-bottom:0px;
}


.titre-page .titre .bouton .contact{
    font-weight :bold;
    color: White;
    background-color: #185090;
    border: none;
    border-radius: 20px;
    padding : 10px 20px 10px 20px;
    font-size:medium;
    outline : none;
    cursor :pointer;
    transition : background-color 0.5s;
    margin-top : 20px;
}

.titre-page .titre .bouton .contact:hover{
    color: White;
    background-color: #FD8736;
}

.titre-page h1{
    font-family : 'Montserrat';
    font-size : 64px;
    margin-bottom: 0px;
}

.titre-page h1, .titre-page h2, .titre-page h3{
    position: relative;
    isolation : isolate;
}

.titre-page h1::after, .titre-page h2::after, .titre-page h3::after{
    position:absolute;
    inset: 0;
    opacity: 0.6;
    content:'';
    z-index:-1;
    background-color: white;
}

.titre-page hr{
    border : 1px solid #fff8e1;
    border-radius : 25px;
    text-align: center;
    width: 15%;
}

.titre-page h2{
    margin : 0px;
    font-family : 'Montserrat';
    font-family: 32px;
    padding : 5px;

}

.titre-page p{
    margin: auto;
    width : 40%;
}

.titre-page p{
    margin: auto;
    width : 40%;
    position: relative;
    isolation : isolate;
}

.titre-page p::after{
    position:absolute;
    inset: 0;
    opacity: 0.6;
    content:'';
    z-index:-1;
    background-color: white;
}

/* bandeau */

.contour-bandeau{
    background-color : white;
}

.bandeau{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 80%;
    margin : auto;
}

.element-bandeau{
    display: flex;
    flex-direction: row;
    padding : 25px;
    font-size : 20px;
    color : #FD8736;
    font-weight: bold;
    align-items: center;
}

.element-bandeau .text{
    margin-left : 10px;
    display: flex;
    flex-direction: column;
}

.element-bandeau span{
    color : #185090;
}

/* competences  */

.services{
    background-color: #fff8e1;
    margin-top:0px;
    padding-bottom:50px;
    border : 1px solid #fff8e1  ;
}

.competences{
    justify-content : space-between;
    width: 80%;
    margin : auto;
    margin-left : 5%;
    padding-bottom:50px;
}

.competences h2{
    text-align : center;
    padding : 50px;
}

.competences .grille-carte{
    display : grid; 
    grid-template-columns : 46% 46%;
    grid-template-rows : 50% 50%;
    grid-gap : 11%;
}

.competences .contour-carte{
    width : 600px;
    height : 210px;
    position : relative;
    min-height : 230px;
    perspective : 1000px;
    perspective-origin : top;
}

.competences .contour-carte:hover .carte{
    transform : rotateY(180deg);
}

.competences .carte{
    position : relative; 
    height : 100%;
    transform-style : preserve-3d;
    transition:transform 0.8s cubic-bezier(0.86,0,0.07,1);
    color: white;
    font-weight: bold;
    
}

.competences .carte-recto, .carte-verso{
    position :absolute;
    height : 100%;
    width :100%;
    border-radius : 8px;
    backface-visibility: hidden; /*cacher la face opposé*/
    -webkit-backdrop-visibility : hidden; /*compatibilité chrome et safari*/
    padding-bottom : 10px;
}

.competences .carte-recto{
    background-color: #FD8736;
    display:flex;
    flex-direction: column;
}

.competences .carte-recto h3{
    margin-top :20px;
    margin-right : 0px; 
    margin-left :20px;
    font-size : 25px;
}

.competences .carte-recto p{
    margin-left :30px;
    margin-right: 30px;
    margin-top:0px;    

    font-weight: lighter;
    text-align : justify;
}

.competences .carte-recto .arrow-icon{
    position: absolute;
    right : 30px;
    bottom: 30px;
}

.competences .contour-carte:nth-child(2) .carte-recto{ /* une carte sur 2*/
    background-color: #185090;
}

.competences .contour-carte:nth-child(3) .carte-recto{ /* une carte sur 2*/
    background-color: #185090;
}

.competences .carte-verso{
    background-color: #FD8736;
    transform : rotateY(180deg);
    display: flex;
    justify-content:center;
    align-items: center;
}

.competences .carte-verso a{
    text-decoration: none;
}

.competences .contour-carte:nth-child(1) .carte-verso{ 
    background-image: url("/img/consiergerie.jpg");
    background-size: cover;
    background-position:center;
}

.competences .contour-carte:nth-child(2) .carte-verso{ 
    background-image: url("/img/menuiserie.jpg");
    background-size: cover;
    background-position:center;
}

.competences .contour-carte:nth-child(3) .carte-verso{ 
    background-image: url("/img/nettoyage.jpg");
    background-size: cover;
    background-position:center;
}

.competences .contour-carte:nth-child(4) .carte-verso{ 
    background-image: url("/img/couture.jpg");
    background-size: cover;
    background-position:center;
}

.competences .btn{
    font-weight :bold;
    color: #185090;
    background-color: #fff8e1;
    border: none;
    border-radius: 20px;
    padding : 10px 20px 10px 20px;
    font-size:medium;
    outline : none;
    cursor :pointer;
    transition : background-color 0.5s;
}


/* section FAQ */

.faq{
    width : 80%;
    height : auto;
    margin : auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom : 50px;
}

.faq .question{
    width : 100%;
    height : auto;
    margin :5px;
    color : white;
}

.faq .partie-visible{
    display : flex;
    justify-content: space-between;
    align-items: center;
    background-color: #185090;
    border-radius : 5px;
    position : relative; 
    z-index: 99;
    cursor : pointer;
}

.faq .partie-visible h3{
    margin-left : 10px;
    font-size : 22px;
}

.faq .partie-visible i{
    margin-right : 10px;
    cursor : pointer;
}

.faq .partie-cache{
    padding : 0px 15px;
    height : 0px;
    opacity : 0;
}

.faq .partie-cache p{
    line-height: 1.5;
    color : black;
    font-size : 18px;
}

.faq .partie-cache a{
    text-decoration : none;
    color : #185090;
}

/* localisation */
.localisation p{
    margin: auto;
    padding : 20px;
    text-align : center;
}

/* .carte{
    display : flex;
    flex-direction : row;
    margin-bottom: 10px;
    margin-left:10%;
    text-align : center;
}

.carte p{
    margin: auto 30px;
} */



@media screen and (max-width : 780px){
    h1{
        font-size : 32px;
    }

    h2{
        font-size : 25px;
        text-align : center;
        padding : 20px 0px 20px 0px;
    }

    nav{
        height : 13%;
    }

    nav .onglet {
        padding-top :0px;
        margin-top : 0px;
        padding-left : 0px;
        display: none;
    }

    .titre-page h1{
        font-size : 32px;
    }

    .titre-page h2{
        font-size : 25px;
    }


    .titre p{
        width : 80%;
    }

    .contour-bandeau{
        display : none;
    }

    .competences{
        width : 100%;
        height : auto;
    }

    .competences .grille-carte{
        width : 100%;
        display : flex;
        flex-wrap : wrap;
        flex-direction : column;
        padding-bottom : 50px;
    }

    .competences .contour-carte{
        width : 100%;
        height : 100%;
        /* margin : auto; */
        margin-bottom : 100px;
        min-height : 300px;
    }

    .competences .carte-recto{
        width : 100%;
        height : auto;
        margin-bottom : 20px;
        min-height : 300px;
    }

    .competences .carte-verso{
        width : 100%;
        /* height : auto; */
        margin-bottom : 20px;
        min-height : 300px;
    }

    .competences .carte-recto h2{
        margin-left : 20px;
    }

    .competences .carte-recto p{
        padding-bottom : 20px;
    }
    
    .localisation{
        width : 100%;
        text-align : center;
    }

    .localisation .titre{
        margin-left:0px;
    }

    .carte{
        flex-wrap : wrap;
        width : 80%;
    }

    .carte p{
        margin-top : 10px;
    }

}

