.sidebar > section:last-child, .main > section.resource-single {
    padding-bottom: 2.25em;
}

.preheader {
    /* background-image: url("mosaic.png");
	background-position: 4px */
    background-color: #fff
}

#footer .copyright {
    /* background-image: url("mosaic.png");
	background-position: 4px 4px */
    display: none
}

.spotlights > article {
    border: 0;
}

.button.special {
    border: 0 !important;
}


#header > nav > ul > li span {
    display: block;
    height: inherit;
    line-height: inherit;
    padding: 0 1em;
    margin: 0 1em;
}

nav#nav {
    width: 100%;
    justify-content: space-between;
}

.nav-lang {
    background-color: #2a6859;
    padding: 4px;
    height: 40px;
    line-height: 40px;
    right: 10px;
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 15px;
}

.nav-aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header .nav-lang a {
    border-bottom: 1px solid transparent;
}

#header .nav-lang a:hover {

    border-color: #fff !important;
}

nav.breadcrumb {
    padding: 0.3rem 1rem;
}




.home img{
    max-width: 100%;
}

.organizations-list .organization, .trainings-list .training {

    border: 1px solid rgba(144, 144, 144, 0.25);
    margin: 15px auto;
    padding: 15px;
}

.bootstrap-tagsinput .tag {
    margin-right: 2px;
    color: white;
    background-color: teal;
    padding: 2px 11px;
    border-radius: 6px;
    vertical-align: middle;
    display: inline-block;
}

.document-row {
    margin-top: 15px;
    border: 1px solid black;
    display: inline-block;
    padding: 15px;
    vertical-align: top;
    margin-right: 15px;
    box-shadow: 0px 0px 4px 4px #cecece;
}

.g-recaptcha {
    margin: 15px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.g-recaptcha-error {
    margin: 5px auto;
    color: red;
}

.search-form-criteria {
    border: 1px solid #cecece;
    margin: 15px auto;
    padding: 15px;
}

.search-ressources-results {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.search-ressources-results a {
    border: 0;
}

.search-ressources-results .category-card, .search-ressources-results .organization-card {
    margin: 5px;
    width: 250px;
    border: 1px solid rgba(0, 0, 0, .125);
    padding: 10px 15px;
}

.resources-list .resource-card {
    position: relative;
    margin: 10px;
    /*display: flex;*/
    justify-content: space-between;
    flex-direction: column;
}

.resources-list .resource-card p, .resources-list .resource-card h3 {
    margin-bottom: 0.5rem;
}

.resources-list .resource-card:hover {
    box-shadow: 0 0.3rem 0.9rem rgb(19, 138, 134);
}

.post-featured-image {
    height: 400px;
    background-size: cover
}

.bootstrap-tagsinput {
    background: none;
    border: none;
    box-shadow: none;
    display: block;
}

.bootstrap-tagsinput .tag {
    margin-bottom: 10px;
}

.resource-card {
    border: 1px solid rgba(144, 144, 144, 0.25);
    margin: 15px auto;
    padding: 15px;
}

.resource-single p {
    margin-bottom: 0.5rem;
}

.resource-single-resources .preview-document {
    margin-right: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.resource-single-resources .preview-document a {
    margin-left: 10px;
}

/* pop in */

#popin-wrapper {
    display: none;
    transition: all 3s;
}

#popin {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;

}

#popin > .container {
    background-color: white;
    padding: 35px 50px;
    border: 1px solid #cecece;
    z-index: 10510;
    position: relative;
}

#popin .popin-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#popin-wrapper .overlay {
    transition: all 3s;
    z-index: 10500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
}

.alert {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    position: relative;
    margin: 0 auto 3em;
    max-width: 84em;
    width: calc(100% - 4em);
    box-shadow: 15px 15px 15px rgba(50, 50, 50, 0.2);
    padding: 1.5rem;
    background-color: #4cb776;
    color: white;
}

.alert-danger {
    background-color: #df5350;

}

.alert .close {
    height: 1.2em;
    line-height: 1.2em;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.3em;
    border: 1px solid #fff;
    width: 1.3rem;
    text-align: center;
    cursor: pointer;
    color: #fff;
}

.pagination-training-step {
    display: flex;
    justify-content: center;
}

.pagination {
    margin: 2.5rem auto;
    text-align: center;
}

.resources-list, .organizations-list, .trainings-list {
    display: grid;
    grid-gap: 10px;
    grid-auto-rows: minmax(100px, auto);
}

.search-ressources-results .organization-card h4 {
    text-align: center;
}

.search-ressources-results .organization-card {
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}


.search-ressources-results .resource-card{
    max-width: 400px;
}


.search-ressources-results .resource-card h3 {
    font-size: 1.2em;
    margin-bottom: 1em;
}

#page-search .sidebar{
    width:30% ;
}

.partner-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    margin-top: 5px;
}

.organizations-list .partner-title img{
    max-width: 120px;
}

.organizations-list .partner-title h2{
    margin: 0;
    font-size: 1.5em;
}



.partner-single .partner-title img{
    max-width: 150px;
}



.partner{
    padding: 0 25px;
    border: 1px solid grey;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.partner-link{
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}
.partner-info p {
    margin: 15px 0 5px;
}

.container-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}


.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.resource-picture-wrapper{
    position: relative;
}

.resource-link {
    position: absolute;
    top: 0;
    left: 0;
    /*background-color: rgba(255,255,255,0.7);*/
    bottom: 0;
    right: 0;
    text-align: center;
    color: white;
    justify-content: center;
    display: flex;
    align-items: center;
}



#form-resource .form-group{
    margin-top: 1rem;
}

#form-resource .form-group label{
    margin-bottom: 0.5rem;
}

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

    .resources-list, .organizations-list, .trainings-list {
        grid-template-columns: repeat(3, 1fr);
    }



}

@media screen and (max-width: 768px) {
    .resources-list, .organizations-list, .trainings-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .resources-list, .organizations-list, .trainings-list {
        grid-template-columns: repeat(1, 1fr);
    }
}