/**
* Theme Name: MyTheme
 */

/* Définir le style CSS principal (font-face, menu, body etc.) */


a {
    color: #c0c4a4;
}

a:hover {
    color: #B6BB94FF;
}

a, a:visited {
    color: #c0c4a4;
    text-decoration: none;
    outline: 0;

}
h1{
    font-family: Lato, serif;
    line-height: 1.2;
    color: #292929;
    font-weight: 300;
    text-transform: uppercase;
}
/* ----------------
   Contenu
 ---------------- */
.pageContent{
    margin-bottom: 3em;
}
@media screen and (min-width: 992px){

}
@media screen and (min-width: 768px) and (max-width: 992px){

}
@media screen and (max-width: 768px){

}


/* ----------------
   Menu
 ---------------- */

.menu {
    border-bottom: 4px solid #f0f0f0;
}
.logo{
    margin-top: 1.1em;
    margin-bottom: 1.1em;
}

#menu_mobile>i{
    font-size: 2em;
    color: #918170;
}

/* Boutons */
#navbar_main{
    padding: 0;
}
#navbar_main>.container-fluid, li.nav-item{
    height: 100%;
}
ul.navbar-nav{
    margin: 0;
    height: 100%;
}
.nav-link{
    height: 100%;
    padding-top: 2.5em;
}
.nav-item.active{
    border-bottom: 3px solid #918170;
}

/* Canvas Menu Mobile */
body.offcanvas-active{
    overflow:hidden;
}
.offcanvas-header{ display:none; }
.screen-darken{
    height: 100%;
    width:0%;
    z-index: 30;
    position: fixed;
    top: 0;
    right: 0;
    opacity:0;
    visibility:hidden;
    /*background-color: rgba(34, 34, 34, 0.6);*/
    background-color: rgba(255, 255, 255, 0.95);
    transition:opacity .2s linear, visibility 0.2s, width 2s ease-in;
}

.screen-darken.active{
    z-index:10;
    transition:opacity .3s ease, width 0s;
    opacity:1;
    width:100%;
    visibility:visible;
}
a.nav-link{
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    color: #777 !important;
    font-weight: bold;
    font-size: 0.8em;
}
a.nav-link:hover{
    color: #918170 !important;
}
li.nav-item:hover{
    background-color:#F0F0F0 ;
}

/* Dopdown */
.dropdown-menu{
    border: 4px solid #f0f0f0;
}
.dropdown-item{
    padding: 0;
    margin: 0.3em 1em;
    border-bottom: 1px solid #cccccc;
    width: calc(100% - 1em); /* 100% du conteneur (li) moins la taille de la marge */
    color: #777 !important;
    padding-bottom: 0.5em;
}
.dropdown-item:hover{
    color: #918170 !important;
    background: none;
}

/* ============ Hover CSS sur le dropdown ============ */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu{ display: none; }
    .navbar .nav-item:hover .nav-link{   }
    .navbar .nav-item:hover .dropdown-menu{ display: block; }
    .navbar .nav-item .dropdown-menu{ margin-top:0; }
}

/* ============ mobile view ============ */
@media all and (max-width: 991px) {

    .offcanvas-header{ display:block; }

    .mobile-offcanvas{
        visibility: hidden;
        transform:translateX(-100%);
        border-radius:0;
        display:block;
        position: fixed;
        top: 0; left:0;
        height: 100%;
        z-index: 1200;
        width:80%;
        overflow-y: scroll;
        overflow-x: hidden;
        transition: visibility .3s ease-in-out, transform .3s ease-in-out;
    }

    .mobile-offcanvas.show{
        visibility: visible;
        transform: translateX(0);
    }
    .mobile-offcanvas .container, .mobile-offcanvas .container-fluid{
        display: block;
    }

    ul.navbar-nav{
        height: initial;
    }

    /* Dans le menu mobile pas d'affichage de sous menu car lien direct vers la page d'entité*/
    .dropdown-toggle::after {
        display: none;
    }
    .navbar .nav-item:hover .dropdown-menu{ display: none; }

}


/* ----------------
    Scroll Back to TOP
 ---------------- */
#scroll {
    position:fixed;
    right:10px;
    bottom:20px;
    cursor:pointer;
    width:40px;
    height:40px;
    background: rgba(145,129,112,0.81);
    text-indent:-9999px;
    display:none;
    z-index: 100;
    border-radius: 4px;
}
#scroll span {
    position:absolute;
    top:50%;
    left:50%;
    margin-left:-8px;
    margin-top:-12px;
    height:0;
    width:0;
    border:8px solid transparent;
    border-bottom-color:#ffffff;
    transition: all 150ms linear;
}
#scroll:hover {
    opacity: 0.8;
}

/* ----------------
     Footer
 ---------------- */
footer {
    width: 100%;
    padding: 2em 0 2em 0;
    background: #e9e9e9;
    /*border-top: 6px solid #e9e9e9;*/
}
.footer-navi{
    text-align: center;
    line-height: 38px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #9B9B9B;
    text-transform: capitalize;
}
.footer-navi a {
    color: #a9b2b4;
    margin: 0 4px;
}