/*
Theme Name: Action Santé Mondiale
Description: This is a custom child theme for Salient
Theme URI:
Author: Florian Perrier <contact@florianperrier.com>
Author URI:  https://www.florianperrier.com
Template: salient
Version: 2.11.0


vert :          #0f7c60
vert foncé :    #007c55
orange :        #ef5113
*/


/* TITLE */
/*body h1,
.nectar-animated-title .nectar-animated-title-inner .wrap >* {
    color: #000000;
    text-transform: uppercase;
    background-color:#ef5113;
    box-shadow: 1em 0 0#ef5113, -1em 0 0 #ef5113;
    box-decoration-break: clone;
}*/
.bg-pad {
    padding: 0px 20px;
    color: #000000;
    background: #ef5113;
    display: inline;
    text-transform: uppercase;
    line-height: 40px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


body h2 {
    color: #ef5113;
    text-transform: uppercase;
    text-align: left;
}

body .bottom-line h1:after,
body .bottom-line h2:after,
body .bottom-line h3:after,
body h3.bottom-line::after,
.sidebar-opinion .widget > h4:after {
    content: '';
    display: block;
    height: 3px;
    width: 30px;
    position: relative;
    left: 3px;
    margin: 11px 0 20px;
    background-color: #ef5113;
}

body .bottom-line-center h1:after,
body .bottom-line-center h2:after,
body .bottom-line-center h3:after {
    margin-left: auto;
    margin-right: auto;
}


body h3 {
    color: #000000;
    text-align: left;
}

body .bottom-line h3:after {
    content: '';
    display: block;
    height: 2px;
    width: 20px;
    position: relative;
    left: 1px;
    margin: 8px 0 20px;
    background-color: #ef5113;
}

.main-content a {
    text-decoration: underline;
}


/* HELPERS */
.row .col img {
    margin-bottom: 0;
}


.position-absolute {
    position: absolute !important;
}

.end-0 {
    right: 0 !important;
}


/* LIST */
.nectar-fancy-ul ul li {
    margin-bottom: 5px;
}

.nectar-fancy-ul ul li .icon-default-style[class^="icon-"] {
    font-size: 26px;
}


/* BUTTON */
a.nectar-button {
    text-decoration: none;

}

a.nectar-button.medium {
    font-size: 12px;
}

#sidebar .nectar-button.medium {
    padding-left: 35px;
    padding-right: 20px;
}

body.material .nectar-button.jumbo:not([class*="see-through"]) {
    padding: 23px 40px;
}

.nectar-cta .link_wrap {
    padding: 10px 25px;
}

.nectar-button.position-absolute {
    position: relative !important;
}


/* TABS */
.tabbed[data-style="minimal"] >ul li:not(.cta-button) a {
    text-decoration: none;
}


/* TWITTER FEED */
.ctf.ctf-regular-style .ctf-item {
	background-color: transparent !important;
}

.ctf a {
    text-decoration: none;
}


/* PAGINATION */
#pagination a {
    text-decoration: none;
}

/* TAG CLOUD */
#sidebar .widget .tagcloud a {
    line-height: 1.2;
}

#sidebar .widget .tagcloud a.tag-link-position-1 {
    font-size: 26px !important;
}

#sidebar .widget .tagcloud a.tag-link-position-2 {
    font-size: 22px !important;
}

#sidebar .widget .tagcloud a.tag-link-position-3 {
    font-size: 18px !important;
}

#sidebar .widget .tagcloud a.tag-link-position-4 {
    font-size: 14px !important;
}

#sidebar .widget .tagcloud a.tag-link-position-5 {
    font-size: 11px !important;
}


/* COMMON CLASS */
.meta-nature-wrap,
.post-cause-wrap {
    margin-bottom: 5px;
}

.meta-nature {
    /* display: inline-block;
    background-color: #0f7c60;
    color: #ffffff;
    padding: 3px 10px;
    margin-bottom: 5px;*/
    font-size: 10px;
    padding: 3px 10px;
    color: #ffffff;
    background:#0f7c60;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.post-cause-item a,
.post-cause-item a:hover,
.post-cause-item a:focus {
    color: #ef5113 !important;
    font-size: 14px;
    line-height: 16px;
    text-decoration: none;
}

.post-cause-item a:hover,
.post-cause-item a:focus {
    text-decoration: underline;
}

/* TESTIMONIALS */
.nectar_single_testimonial {
    padding-left: 40px;
    border-left: 3px solid  #0f7c60;
}

.nectar_single_testimonial[data-style="bold"] p {
    font-size: 22px;
    line-height: 26px;

    position: relative;
    padding-top: 50px;
}

.quote {
    display: inline-block;
    position: absolute;
}

.open-quote {
    top: 0;
    left: 0;
}

.close-quote {
    bottom: -45px;
    right: 0;
}

/* FOOTER */
#footer-outer .row {
    padding: 40px 0 25px;
}

#footer-outer #footer-widgets .widget h4 {
    text-transform: uppercase;
}

#footer-outer .widget.widget_text .row {
    padding: 0;
}

#footer-outer #ctf .ctf-header {
    border-bottom: none;
}


body[data-form-style="minimal"] #footer-outer #footer-widgets .col input[type=text],
body[data-form-style="minimal"] #footer-outer #footer-widgets .col input[type=email],
body[data-form-style="minimal"] #footer-outer #footer-widgets .col textarea {
    background: #ffffff;
    color: #000000;
    margin-bottom: 5px;
    padding: 10px;
}

body[data-form-style="minimal"] #footer-outer #footer-widgets .col .wpcf7-submit {
    background-color: #ffffff !important;
    font-size: 13px;
    color: #0f7c60;
    padding: 9px 15px;
    text-transform: uppercase;
}

body[data-form-style="minimal"] #footer-outer #footer-widgets .col .wpcf7-not-valid-tip {
    background: transparent;
    color: white;
    margin-bottom: 5px;
    box-shadow: none;
}

body[data-form-style="minimal"] #footer-outer #footer-widgets .col .wpcf7-response-output {
    color: #ffffff;
    border: none;
    background: none;
    padding: 0;
    margin: 10px 0 0
}


/* PAGE SUBMENU */
.page-submenu li {
    margin: 0 30px 0 30px;
}

body .page-submenu li a {
    opacity: 1;
    text-transform: uppercase;
}


/* SIDEBAR */
body.page-template-page-sidebar-php .main-content >.row >.post-area,
body.page-template-page-sidebar-php .main-content >.row >#sidebar,
body.page-template-page-left-sidebar-php .main-content >.row >.post-area,
body.page-template-page-left-sidebar-php .main-content >.row >#sidebar {
    margin-top: 0;
}

#sidebar .widget:first-child {
    margin-bottom: 0;
}

#sidebar .widget > h2,
#sidebar .widget > h3,
#sidebar .widget > h4 {
    display: none;
}

#sidebar .textwidget {
    position: relative;
}

#sidebar .textwidget a {
    text-decoration: none;
}

#sidebar .textwidget h3,
#sidebar.sidebar-opinion .widget > h4 {
    display: block;
    color: #ef5113;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

#sidebar.sidebar-opinion .widget > h4 {
    font-family: Exo;
    font-size: 24px !important;
    line-height: 28px !important;
    font-weight: 700;
    opacity: 1;
}

#sidebar .nectar-button {
    position: absolute;
    display: inline-block;
    right: 0px;
}

#sidebar .nectar-post-grid-wrap,
.sidebar-opinion .widget:not(:nth-child(2)) > div {
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(31, 35, 35, 0.1);
    border-radius: 5px;
    padding: 30px 15px; /* padding-top & padding-bottom overriden in VC */
    margin-bottom: 50px !important;
}

.sidebar-content-action {
    background-color: #f3fff8;
}

/* SIDEBAR / Opinions */
.sidebar-opinion .widget > div > h4 {
    color: #007c55;
    font-weight: bold;
    font-size: 21px !important;
    line-height: 1.2 !important;
    opacity: 1;
}

/* SIDEBAR / NEWS */
#sidebar .nectar_widget > li {
    border-bottom: 1px solid #dddddd;
    display: flex;
    margin-bottom: 15px;
    min-height: 55px;
    padding-top: 0;
    padding-bottom: 15px;
}

#sidebar .nectar_widget > li:last-child {
    border-bottom: none;
}

    /* THUMB */
    #sidebar .nectar_widget .post-thumb {
        width: 40%;
        align-self: center;
    }

    #sidebar .nectar_widget > li img {
        position: relative;
        -webkit-transform: none;
        transform: none;
        top: 0;
        display: inline-block;
        vertical-align: middle;
    }


    /* CONTENT */
    #sidebar .nectar_widget .post-content {
        padding-left: 0;
        width: 60%;
    }

    #sidebar .nectar_widget > li .meta-wrap {
        position: relative;
        -webkit-transform: none;
        transform: none;
        top: 0;
        display: inline-block;
        vertical-align: middle;
        padding-left: 10px;
    }

    #sidebar .nectar_widget > li .post-title,
    #sidebar .nectar_widget > li .post-date {
        margin-top: 5px;
        z-index: 10;
        position: relative;
        display: block;
    }

    #sidebar .nectar_widget > li .post-date {
        font-size: 12px;
        font-weight: normal;
    }


/* HOME PAGE */
.container-thematic .vc_column_container .wpb_wrapper {
    display: flex;
}

.container-thematic .vc_column_container .wpb_wrapper p {
    display: block;
    padding: 0;
}

.container-thematic .vc_column_container .wpb_wrapper p img {
    max-width: 80px;
    margin-right: 20px;
}

.container-thematic .vc_column_container .wpb_wrapper h3 {
    color: #0f7c60;
    font-size: 36px;
    line-height: 36px;
}


/* PAGE */

/* PORTFOLIO / CAMPAIGN SINGLE */
.page-template-page-fullwidth-with-title .main-content,
.page-template-page-sidebar .main-content,
.single-portfolio .main-content {
    padding-top: 75px;
    padding-bottom: 75px;
}


.single-portfolio .main-content .col {
    float: none;
}

    /* BACK TO THEMATIC LINK */
    .back-to-thematic {
        background-color: #0f7c60;
        color: #ffffff !important;
        font-size: 12px;
        position: absolute;
        padding: 5px 10px;
        top: -150px;
        left: 0;
        z-index: 99;
    }

    .back-to-thematic a {
        color: #ffffff !important;
        font-size: 12px;
        text-transform: uppercase;
    }


/* BLOG */
.page-template-template-blog-sidebar .main-content {
    padding-top: 75px;
}

.post-area.featured_img_left .article-content-wrap {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.post-area.featured_img_left article .article-content-wrap .post-featured-img-wrap {
    position: relative;
    background: none;
    height: auto;
    margin-bottom: 5px;
}

.post-area.featured_img_left .article-content-wrap .post-featured-img-wrap a,
.post-area.featured_img_left .article-content-wrap .post-featured-img-wrap a span {
    position: relative;
}

.post-area.featured_img_left.span_12 .article-content-wrap .post-content-wrap {
    padding: 5% 3%;
    left: 0;
}

article.post .post-header h3 {
    font-size: 22px;
    line-height: 26px;
}

article.post .post-header h3 a {
    text-decoration: none;
}

.nectar-button-download {
    margin: 15px 0 0;
}


/* BLOG SINGLE */
.single-post h2 {
    font-size: 26px;
    line-height: 30px;
}


    /* PAGE OPINIONS */
    .page-template-template-opinions .main-content {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .page-template-template-opinions .bg-pad,
    .header-opinion .bg-pad {
        background-color: #ffffff;
        color: #000000;
        text-transform: none;
    }

    .page-template-template-opinions #blog {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .page-template-template-opinions .intro-text b,
    .page-template-template-opinions .intro-text strong {
        font-size: 24px;
        line-height: 1.2;
    }

    .page-template-template-opinions .nectar-post-grid-item {
        margin: 15px 0 !important;
        padding: 5px 5px ;
    }

    .page-template-template-opinions .nectar-post-grid-item:hover {
        background-color: #ffffff;
        box-shadow: 0 0 30px rgb(31 35 35 / 10%);
        border-radius: 5px;
    }

    .page-template-template-opinions .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item .content {
        margin-top: -40px;
        position: absolute;
        bottom: 30px;
    }

    .page-template-template-opinions .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item .content .content-inner {
        padding: 0;
    }

    .page-template-template-opinions .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item.post .content-inner .post-heading {
        padding: 5px 10px;
        background: #ffffff;
        display: inline-block;
        line-height: 1.8;
        max-width: 80%;
    }

    .page-template-template-opinions .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item .content .post-heading a {
        color: #ef5113;
    }

    .page-template-template-opinions .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item a > img {
        display: block;
    }


    /* SINGLE SERIES */
    body.single-post.material[data-bg-header="true"] .container-wrap {
        padding-top: 0 !important;
    }

    body.single-post[data-bg-header="true"] .container-wrap:not(.no-sidebar) > .main-content {
        padding-top: 75px;
        padding-bottom: 75px;
    }


        /* displaying opinions */
        .category-series .nectar-post-grid-item {
            margin: 15px 0 !important;
            padding: 5px 5px ;
        }

        .category-series .nectar-post-grid-item:hover {
            background-color: #ffffff;
            box-shadow: 0 0 30px rgb(31 35 35 / 10%);
            border-radius: 5px;
        }

        .category-series .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item.post .content-inner .post-heading {
            font-size: 26px;
            line-height: 1.2;
            quotes: "“" "”" "‘" "’";
        }

        .category-series .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item.post .content-inner .post-heading:before {
            content: open-quote;
        }

        .category-series .nectar-post-grid-wrap .nectar-post-grid .nectar-post-grid-item.post .content-inner .post-heading:after {
            content: close-quote;
        }

        /* tag list */
        .category-series .nectar-post-grid-wrap:not([data-style="content_overlaid"]) .nectar-post-grid-item .content .tag-list {
            margin-bottom: 20px;
        }

        .category-series .nectar-post-grid-wrap:not([data-style="content_overlaid"]) .nectar-post-grid-item .content .tag {
            color: #ef5113;
            font-weight: bold;
        }

        /* bottom block with image and author */
        .category-series .nectar-post-grid-wrap .nectar-post-grid-item .article-content-wrap {
            display: flex;
            align-items: center;
            flex-direction: row;
            margin-top: 20px;
        }

        .category-series .nectar-post-grid-wrap .nectar-post-grid-item .post-featured-img-wrap {
            position: relative;
            border-radius: 5px;
            background: none;
            height: auto;
            width: 15%;
        }

        .category-series .nectar-post-grid-wrap .nectar-post-grid-item .post-content-wrap {
            padding: 0 3%;
            width: 85%;
            position: relative;
            border-radius: 0 5px 5px 0;
            overflow: hidden;
        }

        .category-series .nectar-post-grid-wrap:not([data-style="content_overlaid"]) .nectar-post-grid-item .content .meta-excerpt {
            color: #007c55;
            font-weight: bold;
            max-width: 100%;
            width: 100%;
            margin-top: 0;
        }


/* SEARCH PAGE */
article.result .title a {
    text-decoration: none;
}

body.material #search-results .result .inner-wrap h2 {
    padding: 0 !important;
}



/* RESPONSIVE */
@media only screen and (min-width: 691px) {
    /* BUTTON */
    .nectar-button.position-absolute {
        position: absolute !important;
    }
}

@media only screen and (min-width: 1000px) {
    /* BLOG */
    .post-area.featured_img_left .article-content-wrap {
        flex-direction: row;
    }

    .post-area.featured_img_left .article-content-wrap .post-featured-img-wrap {
        height: auto;
    }

    .post-area.featured_img_left.span_12 .article-content-wrap .post-content-wrap {
        padding-top: 0;
    }


    /* PORTFOLIO / CAMPAIGN SINGLE */
    .single-portfolio .main-content .col {
        float: left;
    }
}


@media only screen and (min-width: 1300px) {
    .bg-pad {
        line-height: 62px;
    }

    /* PAGE */
    .container-title {
        min-height: 60px;
    }

    /* BLOG */
    .post-area.full-width-content .masonry-blog-item, .full-width-content .post-area .masonry-blog-item {
        width: 32%;
    }
}
