@font-face {
    font-family: "didot";
    src: url('../fonts/didot/Didot-Regular.ttf') format('truetype');
}

@font-face {
    font-family: "didot-bold";
    src: url('../fonts/didot/Didot-Bold.otf') format('opentype');
}

@font-face {
    font-family: "playfair";
    src: url('../fonts/Playfair.ttf') format('opentype');
}


body {
    background-color: #fafae9;
    font-family: "playfair";
}

/***** Header ******/

header {
    position: fixed;
    /* Set the navbar to fixed position */
    top: 0;
    /* Position the navbar at the top of the page */
    width: 100%;
    /* Full width */
    background-color: #fafae9;
}

header {
    /* ligne contenant les images et le bouton menu sur tablette*/
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

header>a {
    /* le lien qui contient les 2 images */
    display: flex;
    align-content: center;
    padding: 20px;
}

#hamburger_toggle {
    /*cacher la checkbox*/
    display: none;
}

@media screen and (max-width: 900px) {

    #header-filler {
        padding-bottom: 104px;
    }

    .anchor {
        display: block;
        height: 104px;
        /*same height as header*/
        margin-top: -104px;
        /*same height as header*/
        visibility: hidden;
    }

    .logo {
        /* les deux images */
        height: 3.2em;
    }

    #page-content {
        /* pour que le reste de la page glisse pas en dessous du header */
        margin-top: 110px;
    }

    .hamburger {
        /*le label de la checkbox (les 3 traits)*/
        height: 45px;
        width: 45px;
        display: grid;
        grid-template-rows: repeat(3, 1fr);
        justify-items: center;
        padding: 20px;
    }

    .hamburger div {
        /*les traits du menu*/
        background-color: #39491f;
        position: relative;
        width: 40px;
        height: 5px;
        margin-top: 7px;
        -webkit-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }

    /*l'animation du click sur le label*/
    #hamburger_toggle:checked+.hamburger .top {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        margin-top: 22.5px;
    }

    #hamburger_toggle:checked+.hamburger .middle {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        margin-top: -5px;
    }

    #hamburger_toggle:checked+.hamburger .bottom {
        -webkit-transform: scale(0);
        transform: scale(0);
    }


    header>#hamburger_toggle:checked~nav {
        /* Modifier pour adapter la taille du menu au nombre d'entrées */
        height: 305px;
    }

    .line-break-mobile {
        width: 100%;
    }

    /* Menu */
    #menu {
        width: 100%;
        background-color: #39491f;
        margin: 0;
        padding: 0;
        display: grid;
        clear: both;
        text-align: center;
        height: 0px;
        overflow: hidden;
        transition: height .4s ease;
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    #menu a {
        text-decoration: none;
        color: #fafae9;
        margin: 0;
        padding: 12px;
        font-family: "didot-bold";
        font-size: 2em;
        letter-spacing: .1rem;
    }

    #menu a:first-child {
        padding-top: 24px;
    }

    #menu a:last-child {
        padding-bottom: 24px;
    }


    #menu a:hover {
        background-color: #fff;
        color: rgb(61, 61, 61);
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
}

@media screen and (min-width: 900px) {

    #header-filler {
        padding-bottom: 168px;
    }

    .anchor {
        display: block;
        height: 168px;
        /*same height as header*/
        margin-top: -168px;
        /*same height as header*/
        visibility: hidden;
    }

    .logo {
        /* les deux images */
        height: 8em;
    }

    #page-content {
        /* pour que le reste de la page glisse pas en dessous du header */
        margin-top: 190px;
    }

    #menu {
        display: flex;
        justify-content: space-around;
        margin-right: 20px;

    }

    #menu a {
        text-decoration: none;
        padding: 10px;
        font-family: 'didot-bold';
        font-weight: bolder;
        font-size: 1em;
        letter-spacing: .1rem;
        color: black;
    }
}




/**** BANNER *****/
#top {
    display: block;
    background: url("../../images/pic04.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    border-top: 1px solid rgba(0, 0, 0, 0);
    padding: 30px;
}

#banner {
    margin-top: 100px;
    margin-bottom: 100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    padding-bottom: 40px;
    /* background-color: #252122; */
    /* background-color: rgba(17, 16, 16, 0.91); */
    border-radius: 5px;
    max-width: 500px;
    font-size: 1.5em;


}

#banner h3 {
    color: #fafae9;
    font-weight: 600;
    font-size: 1.2em;
    margin: 10px 5px 30px 5px;
}

#banner a {
    color: #fafae9;
    padding: 0;
    margin: 30px;
    padding: 10px 30px;
    border: 1px solid #857d37;
    /* border-radius: 10px; */
    border-radius: calc(74 * .0625rem);
    text-decoration: none;
    font-size: 1.3em;

}

#banner a:hover {
    background-color: #fafae9;
    color: #000000
}

@media screen and (min-width: 900px) {
    #banner h3 {
        font-size: 1.6em;
        font-weight: 100;


    }

    #banner a {
        font-size: 1.8em;
        padding: 10px 70px;
    }
}

/**** SECTIONS ****/
section h2 {
    font-family: 'didot-bold';
    text-align: center;
    padding: 50px 0px 50px 0px;
    font-size: 2em;
    font-weight: 1000;
    color: #39491f;
}

section {
    padding-bottom: 80px;
}

/***** prestations ******/
.grid {
    display: grid;
    margin: auto;
    grid-gap: 3rem;
    grid-template-columns: repeat(1, 1fr);
    align-items: start;
    max-width: 300px;
}

.card__img {
    display: block;
    width: 100%;
    border-radius: 10px;
    /* height: 18rem; */
    /* object-fit: cover; */
}

.card__content {
    padding: 30px;
}

.card__header {
    font-size: 2em;
    color: #000;
    text-align: center;
}

@media screen and (min-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;

        /* max-width: 900px; */

    }

    .card__header {
        font-size: 1.5em;

    }
}

/***** contact ******/
.contact-section {
    background-color: #39491f;
    color: #fafae9;
}

.contact-section h2 {
    color: #fafae9;

}

ul.contact {
    /* max-width: 80%; */
    margin: auto;
    text-align: center;
    font-size: 2em;
}

ul.contact a {
    color: #b9b05e;
    /* color: #b95e5e; */
    font-size: 0.6em;
}

ul.contact li {
    padding-bottom: 30px;
}

ul.contact li h3 {
    font-weight: bold;
}

@media screen and (max-width: 900px) {
    ul.contact a {
        font-size: 0.7em;
    }
}