/*
 Theme Name:   CNRS MPDF
 Theme URI:    Soon
 Description:  Thème enfant du kit web cnrs destiné à la mpdf
 Author:       Factory02
 Author URI:   https://www.factory02.com/
 Template:     cnrswebkit
 Version:      0.1
*/


#site-header-menu #searchContainer {
    height: 64px !important;
}

#site-header-menu #searchContainer form {

    margin-top: 20px;

}

header.site-header #site-header-menu nav#site-navigation #menu-menu-principal {
    margin-right: 24px !important;
}

header.site-header #site-header-menu nav#secondary-navigation ul#menu-menu-secondaire {
    margin-top: 33px !important;
}

.homeSlider {
    width: calc(100% + 7.6923% * 2);
    margin-right: -7.6923%;
    margin-left: -7.6923%;
}

.homeSlider img {
    min-height: 300px;
    object-fit: cover;
}

header.site-header .site-header-main .site-branding {
    align-self: end;
}

header.site-header .site-header-main .site-branding .logo_mpdf {
    width: 10em;
    height: auto;
    object-fit: contain;
    padding-top: 1em;
}

header.site-header #site-header-menu {
    max-width: 100% !important;
}


body.page-template-homepage .entry-content .loop-contents-actualite article.type-actualite:hover header a, body.page-template-homepage .entry-content .loop-contents-actualite article.type-actualite:hover .entry-content {
    color: #123D60 !important;
}

body.home .linkMoreMPDF {
    color: #123D60;
    font-weight: 500;
    border-bottom: 1px dashed #123D60;
    box-shadow: none;
    padding-bottom: 10px;
}

body.home .linkMoreMPDF:hover {
    color: #0a0b0d;
    border-bottom: 1px dashed #0a0b0d;
}

body.page-template-template-rubrique article .post-thumbnail img {
    top: 0 !important;
}

body.page-template-template-rubrique article .post-thumbnail {
    height: 255px !important;
}

body.page-child article > p {
    margin: 0 0 60px 0 !important;
}

.homeSlider .caption {
    font-size: 1.4rem !important;
    line-height: 1.5;
    font-weight: bold;
}

.login h1 a {
    background-image: url("http://mpdf.dev.factory02.com/wp-content/themes/cnrswebkit/assets/img/cnrs-mpdf.svg");
}

.tweetFeed {
    border-top: 3px solid #123D60;
    /*margin-bottom: 4rem*/
}

.contact-infos, .nf-form-fields-required {
    margin: 0 0 50px 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}

li {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.1px;
    margin-bottom: .5em;
    list-style-position: inside;
}

.ctf-tweet-content{
    line-height: 1.5;
}

header.site-header #site-header-menu ul li a {
    /*white-space: nowrap;*/
}

/*Le bandeau cookie*/
.cookie-banner {
    box-sizing: border-box;
    line-height: 1.5;
    display: none;
    z-index: 20;
    position: fixed;
    bottom: 0;
    width: 100%;
    color: #fff;
    background: rgba(0, 0, 0, .8);
    text-align: center;
    padding: 2em .5em;
}

.cookie-banner a{
    color: #fff;
}

#ga-cancel-button, #ga-confirm-button{
    margin: 1em .5em;
    color: #fff;
    width: 15em;
    background: #123d60;
    transition: .2s ease-in-out;
}

#ga-cancel-button:hover, #ga-confirm-button:hover{
    background: #2477bb;
}

.cookie-active {
    display: block;
}

.make-your-choice{
    display: flex;
    justify-content: center;
}

.site{
    overflow: hidden;
}

@media screen and (min-width: 56.875em) {
    .content-area {
        float: none;
        margin: 0;
        width: 100%;
    }

    .homeSlider {
        width: calc(100% + 224px);
        margin: 0 -112px;
    }

    .site-header-main {
        justify-content: center;
    }
}


@media screen and (max-width: 1258px){

    #site-header-menu #searchContainer form {
        margin-top: 0;
        margin-bottom: 20px;
    }

    header.site-header .site-header-main .site-branding {
        margin: auto !important;
    }

    header.site-header #site-header-menu nav#secondary-navigation{
        margin: 0 !important;
    }
}

@media screen and (max-width: 910px) {
    #site-header-menu #searchContainer form #checkSearch:checked ~ #searchInput {
        width: calc(75vw - 69px) !important;
    }

    .homeSlider {
        margin-top: 4rem;
    }

    .homeSlider .caption {
        font-size: 1rem !important;
    }

    /*Retouches responsive sur liste des rubriques*/
    body.page-child article {
        margin: 0 !important;

    }

    body.page-child article > p {
        padding: 0 7.6% !important;
    }

    body.page-child article > .entry-content {
        padding: 60px 7.6% 0 !important;
    }

    body.page-child .voirAussi h2 {
        font-size: 20px !important;
    }

    /*Retouches sur menu*/

    header.site-header .site-header-main .site-branding {
        margin: 0 auto 0 7.6% !important;
    }

    header.site-header .site-header-main .site-branding .logo_mpdf {
        margin-bottom: 1em;
    }

    header.site-header #site-header-menu nav#secondary-navigation ul#menu-menu-secondaire {
        margin-top: 0 !important;
    }

    #site-header-menu #searchContainer, #site-header-menu #searchContainer form {

        margin-top: 5px !important;

    }

    header.site-header #site-header-menu {
        margin-top: 10px !important;
    }
}

