/*
 Theme Name:     pnf
 Description:    Thème pour le site pnf
 Author:         Thomas Milan
 Template:       Divi
 Version:        1.0.0
*/

/* mobile menu items colors */
.et_mobile_menu .menu-item-has-children > a {
    background-color: transparent;
    font-weight: inherit;
}

/* mobile menu items colors */
.et_mobile_menu .current-menu-item > a {
    color: #128f33;
}

/* sub menu width */
#top-menu li li a {
    width: 320px;
    white-space: nowrap;
}

.nav li ul {
    width: 360px;
}

/* line-height on sub-menu items */
.nav li li {
    line-height: 1.8em;
}

/* left margin on block gallery content */
.blocks-gallery-grid {
    padding-left: 0 !important;
}

/* form message */
.et-pb-contact-message:not(:empty) {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin-bottom: 20px;
}

.et-pb-contact-message ul {
    margin-top: 10px;
    padding-bottom: 0;
}

.et-pb-contact-message ul:last-child {
    margin-top: 0;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.bottom-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.bottom-nav > li {
    width: 25% !important;
    margin-bottom: 15px !important;
    text-align: left !important;
}

.bottom-nav > li.menu-item-privacy-policy {
    width: 100% !important;
    flex: 1 !important;
    padding-right: 0 !important;
    text-align: center !important;
    padding-top: 15px;
    margin-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
    .bottom-nav > li {
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .bottom-nav > li {
        text-align: center !important;
        width: 100% !important;
    }
}

#cookie-notice .cn-button {
    background-color: #128f33 !important;
}

.mfp-image-holder .mfp-content {
    max-width: 60% !important;
}

/* Custom styles

@media (max-width: 980px) {
    .tm-services .et_pb_column_1_2 {
        width: 47.25% !important;
        margin-right: 5.5% !important;
    }
    .tm-services .et_pb_column_1_2:last-child {
        margin-right: 0 !important;
    }
}

.tm-services .et_pb_button_module_wrapper {
    height: 100%;
}

.tm-services .et_pb_button_module_wrapper > .et_pb_button {
    display: flex !important;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px !important;
} */

/* Main */
.tm-services .et_pb_column .et_pb_blurb {
    height: 100%;
    cursor: pointer;
    display: flex;
    position: relative;
    flex: 1;
}

/* Container */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    position: relative;
    flex: 1;
}

/* Image Container */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 150px;
    margin-bottom: 0;
    position: relative;
    flex: 1;
}

/* Image Wrap */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image .et_pb_image_wrap {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    flex: 1;
}

/* Image */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image .et_pb_image_wrap img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
}

/* Content */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_blurb_container {
    display: flex;
    height: 100%;
    position: relative;
    flex: 1;
}

/* Title */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_blurb_container .et_pb_blurb_description {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    position: relative;
    flex: 1;
}

/* Text */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_blurb_container .et_pb_blurb_description h4 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.25px;
    line-height: 1.5;
    padding-bottom: 0;
    position: relative;
}

/* More */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_blurb_container .et_pb_blurb_description p {
    text-align: center;
    font-weight: 900;
    font-size: 14px;
    margin-top: 10px;
    color: #128f33;
    position: relative;
}

/* NoWrap */
.tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_blurb_container .et_pb_blurb_description h4 span {
    white-space: nowrap;
    position: relative;
}

@media (max-width: 980px) {
    .tm-services .et_pb_column_1_2 {
        width: 47.25% !important;
        margin-right: 5.5% !important;
    }

    .tm-services .et_pb_column_1_2:last-child {
        margin-right: 0 !important;
    }

    .tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image {
        height: 100%;
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .tm-services .et_pb_column .et_pb_blurb {
        height: auto !important;
        max-height: max-content !important;
    }

    /* Container */
    .tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content {
        height: auto !important;
        max-height: max-content !important;
    }

    .tm-services .et_pb_column_1_5 {
        width: 100% !important;
        margin-right: 0% !important;
    }

    .tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image {
        height: 100%;
        max-height: 300px;
    }

    .tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_blurb_container {
        height: auto !important;
        max-height: max-content !important;
        display: block !important;
    }

    .tm-services .et_pb_column .et_pb_blurb .et_pb_blurb_content .et_pb_blurb_container .et_pb_blurb_description {
        height: auto !important;
        max-height: max-content !important;
        display: block !important;
    }
}
