@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-index{
    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-index .titre{
    padding-top : 9vh;
    margin : auto;
    margin-bottom:0px;
}


.titre-page-index .titre .bouton .contact{
    font-weight :bold;
    color: White;
    background-color: var(--primary);
    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-index .titre .bouton .contact:hover{
    color: White;
    background-color: var(--secondary);
}

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

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

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

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

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

}

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

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

.titre-page-index 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;
}

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

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

.element-bandeau span{
    color : var(--primary);
}

/* competences  */

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

.competences{
    justify-content : center;
    width: min(1200px, 90%);
    margin: 0 auto;
    padding-bottom: 50px;
}

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

.competences .grille-carte{
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(420px,1fr));
    gap:30px;
}

.competences .contour-carte{
    width: 100%;
    position : relative;
    perspective : 1000px;
    perspective-origin : top;
}

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

.competences .carte{
    display : grid ;
    width : 100%;
    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{
    grid-area: 1 / 1;
    min-height: 100%;
    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: var(--secondary);
    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: var(--primary);
}

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

.competences .carte-verso{
    background-color: var(--secondary);
    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: var(--primary);
    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: var(--primary);
    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 : var(--primary);
}

/* localisation */
.localisation p{
    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;
} */

/* petit telephone  */
@media (max-width:480px){

    .competences .contour-carte{
        height:360px;
    }

    .competences .carte-recto h3{
        font-size:20px;
    }

    .competences .carte-recto p{
        font-size:14px;
    }

}

/* tablette */
@media (max-width: 992px){

    .competences .grille-carte{
        grid-template-columns: 1fr;
    }

    .competences .contour-carte{
        height: 260px;
    }

}

@media (max-width:768px){

    .competences{
        width:95%;
    }

    .competences h2{
        padding:30px 10px;
        font-size:28px;
    }

    .competences .contour-carte{
        height:320px;
    }

    .competences .carte-recto h3{
        font-size:22px;
        margin:20px;
    }

    .competences .carte-recto p{
        margin:0 20px;
        font-size:15px;
        line-height:1.5;
    }

    .competences .carte-recto .arrow-icon{
        right:20px;
        bottom:20px;
    }

}



@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;
        align-items: center;
    }
    

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

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

    .competences .carte-verso{
        width : 100%;
        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;
    }

}

