/*
Theme Name: FAO
Template: Divi
*/

/* ------------------------------------------------------- */


/***** Sommaire réalisations *****/
#page-container .nos-realisations h2 {
    text-transform: inherit;
    font-weight: 400;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media(max-width: 980px) {
    #page-container .nos-realisations h2 {
        width: 100% !important;
    }
}

#page-container .nos-realisations .realisations-filter .et_pb_de_mach_filter_posts {
    background-color: #F3F3F6;
    padding: 1rem;
}

#page-container .nos-realisations .realisations-filter .et_pb_contact_field_options_list {
    background-color: #F3F3F6;
}

#page-container .nos-realisations .realisations-filter .et_pb_contact_field_options_title {
    font-family: 'Interstate', sans-serif;
    position: relative;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 29px;
    color: #0B0842;
}

#page-container .et_pb_contact_field_options_title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    background-color: #E11F1D;
    height: 4px;
    width: 45px;
}

#page-container .nos-realisations .realisations-filter .et_pb_contact_field .checkmark,
#page-container .realisations-homepage .checkmark {
    width: 20px;
    height: 20px;
    top: 10px;
    background-color: transparent !important;
    border: 1px solid #0B0842;
}

#page-container .realisations-homepage .divi-radio-tick_box .checkmark, .et-db #et-boc .et-l .et_pb_contact_field .checkmark {
    width: 20px !important;
    height: 20px !important;
}

#page-container .realisations-homepage .divi-radio-tick_box .checkmark:after {
    left: 6px !important;
    top: 4px !important;
    width: 4px !important;
    height: 7px !important;
}

#page-container .realisations-homepage .divi-radio-tick_box .checkmark, .et-db #et-boc .et-l .et_pb_contact_field .checkmark {
    background-color: #eee !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
}

.et-db #page-container #et-boc .realisations-homepage .et_pb_contact_field_radio:first-child label {
    padding-left: 20px;
}

#page-container .realisations-homepage .divi-filter-item span.et_pb_contact_field_radio {
    margin-left: 8px !important;
}

#page-container .nos-realisations .realisations-filter .et_pb_contact_field input:checked~.checkmark,
.et-db #page-container .realisations-homepage input:checked~.checkmark {
    background-color: #E11F1D !important;
    border-color: transparent;
}

#page-container .nos-realisations .realisations-filter .et_pb_contact_field .checkmark::after,
#page-container .realisations-homepage .checkmark::after {
    top: 1px;
    left: 5px;
}

#page-container .nos-realisations .realisations-filter .radio-label {
    font-family: 'DINPro';
    color: #0B0842;
    font-size: 18px;
    line-height: 32px;
}

#page-container .nos-realisations .realisations-list .et_pb_column {
    position: relative;
    transition: all .3s ease;
}

#page-container .nos-realisations .realisations-list .et_pb_de_mach_thumbnail {
    margin-bottom: 0;
}

#page-container .nos-realisations .realisations-list .et_pb_de_mach_title {
    padding: 1rem;
    background-color: #F3F3F6;
}

#page-container .nos-realisations .realisations-list h3 {
    font-size: 24px;
    line-height: 29px;
    text-transform: inherit;
    text-align: center;
    font-weight: 400;
}

#page-container .wrapper-realisation .et_pb_column:hover .more {
    display: block;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#page-container .wrapper-realisation .et_pb_column:hover .more a {
    border: none !important;
    padding: 0 1rem !important;
    color: #0B0842 !important;
}

#page-container .wrapper-realisation .et_pb_column:hover .more:hover a {
    color: #fff !important;
}

#page-container .wrapper-realisation .more {
    display: none;
}

#page-container .wrapper-realisation .et_pb_column {
    position: relative;
}

#page-container .wrapper-realisation .tags-categories {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    text-align: center;
    padding: 1rem .5rem;
    margin-bottom: 0;
    width: 100%;
    border-bottom: #E11F1D 3px solid;
    display: none;
}

#page-container .wrapper-realisation .et_pb_column:hover .tags-categories {
    display: block;
}

#page-container .wrapper-realisation .tags-categories .dmach-acf-item-content {
    justify-content: center;
}

#page-container .wrapper-realisation .et_pb_column:hover .tags-categories p {
    color: #fff !important;
    font-weight: 500;
}

#page-container .wrapper-realisation .et_pb_column .et_pb_de_mach_thumbnail {
    position: relative;
}

#page-container .wrapper-realisation .et_pb_column .et_pb_de_mach_thumbnail a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(11, 8, 66, 0.6) !important;
    display: none;
}

#page-container .wrapper-realisation .et_pb_column:hover .et_pb_de_mach_thumbnail a::after {
    display: block !important;
    visibility: visible !important;
    z-index: 0;
}

#page-container .wrapper-realisation .et_pb_column:hover .et_pb_de_mach_title {
    background-color: #0B0842 !important;
}

#page-container .wrapper-realisation .et_pb_column:hover .et_pb_de_mach_title h3 {
    color: #fff !important;
}

.page-id-258.et-db #page-container #et-boc .realisations-list .et_pb_de_mach_title {
    height: 33%;
}

@media(max-width: 1320px) {
    .page-id-258.et-db #page-container #et-boc .realisations-list .et_pb_de_mach_title {
        height: 37%;
    }
}

@media(max-width: 1280px) {
    .page-id-258.et-db #page-container #et-boc .nos-realisations .et_pb_row_2 {
        display: flex;
        flex-direction: column;
    }

    .page-id-258.et-db #page-container #et-boc .nos-realisations .et_pb_row_2 .realisations-filter {
        width: 100%;
        margin-bottom: 2rem;
    }

    .page-id-258.et-db #page-container #et-boc .realisations-list {
        width: 100%;
    }

    .page-id-258.et-db #page-container #et-boc .realisations-list .et_pb_de_mach_title {
        height: 37%;
    }

    .page-id-258 #page-container .nos-realisations .realisations-list h3 {
        font-size: 22px;
    }

    .page-id-258 #page-container .nos-realisations .realisations-list .et_pb_de_mach_acf_item p {
        font-size: 15px;
    }

    .page-id-258 #page-container .wrapper-realisation .et_pb_column:hover .more {
        width: 90%;
    }

    .page-id-258 #page-container .wrapper-realisation .tags-categories {
        background-color: rgba(11, 8, 66, 0.8);
    }
}




/***** Page réalisations *****/
.realisations-template-default #page-container .cta-global {
    background-image: url('https://fao.fr/wp-content/uploads/2023/09/projet-fao.jpg');
    background-repeat: no-repeat;
    background-position: center;
}

.realisations-template-default #page-container #left-area {
    width: 100%;
    padding-right: 0;
}

.realisations-template-default .entry-content {
    position: relative;
    z-index: 1;
    padding: 0;
}

.realisations-template-default .post-meta {
    display: none;
}

.realisations-template-default #page-container p {
    font-family: 'DINPro';
}

/* Banner hero */
.realisations-template-default #page-container #fao_page-realisation--banner-hero {
    padding: 3rem 0;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero .et_pb_row {
    display: flex;
    padding: 0;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero .et_pb_column {
    display: flex;
    align-items: center;
    width: 50%;
}

.realisations-template-default #page-container .categories {
    display: flex;
    list-style-type: none;
    padding-bottom: .5rem;
    padding-left: 0;
}

.realisations-template-default #page-container .categories li {
    font-family: 'DINPro';
    font-size: 18px;
    line-height: 28px;
    color: #0B0842;
    display: flex;
    align-items: center;
}

.realisations-template-default #page-container .categories li::before {
    display: none !important;
}

.realisations-template-default #page-container .categories li::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    transform: rotate(300deg);
    background-color: #E11F1D;
    margin: 0 0.3rem;
}

.realisations-template-default #page-container .categories li:last-child::after {
    display: none;
}

.realisations-template-default #page-container h1 {
    font-size: 35px;
    line-height: 42px;
    margin-bottom: 1rem;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero p {
    width: 90%;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero .cta {
    margin-top: 2rem;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero .cta div {
    display: flex;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero h2 {
    font-size: 22px;
    line-height: 30px;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero h2::before,
.realisations-template-default #page-container #fao_page-realisation--banner-hero h2::after {
    display: none;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero .cta .btn {
    background-color: #E11F1D;
    color: #fff;
    font-size: 18px;
    transition: all .3s ease;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero .cta .btn:hover {
    box-shadow: 3px 3px 15px 3px #ddd;
}

.realisations-template-default #page-container #fao_page-realisation--banner-hero .cta .mail {
    margin-right: 1rem;
}


/* Page content */
.realisations-template-default #fao_page-realisation--content {
    background-color: #F3F3F6;
    width: 100%;
}

.realisations-template-default #fao_page-realisation--content .et_pb_row {
    width: 90%;
}




.realisations-template-default #others-articles .et_pb_row {
    display: flex;
    justify-content: space-between;
}

.realisations-template-default #others-articles .et_pb_row .article-wrapper {
    position: relative;
    width: 31%;
}

.realisations-template-default #others-articles .article-image {
    position: relative;
    height: 81%;
}

.realisations-template-default #others-articles .et_pb_row .article-wrapper:hover .article-image {
    height: 80%;
}

.realisations-template-default #others-articles img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realisations-template-default #others-articles .article-title {
    background-color: #F3F3F6;
    padding: 1rem .5rem;
    height: 20%;
}

.realisations-template-default #others-articles .article-wrapper:hover .article-title {
    background-color: #0B0842;
}

.realisations-template-default #others-articles .article-wrapper:hover .article-title h3 {
    color: #fff;
}

.realisations-template-default #others-articles .article-title h3 {
    font-family: "Interstate", sans-serif;
    text-transform: initial;
    font-weight: 400;
    text-align: center;
    font-size: 23px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.realisations-template-default #others-articles .article-categories,
.realisations-template-default #others-articles .more {
    display: none;
}


.realisations-template-default #others-articles .article-wrapper:hover .more {
    display: flex;
}


.realisations-template-default #others-articles .article-categories {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: #E11F1D 3px solid;
    z-index: 2;
}

.realisations-template-default #others-articles .article-categories span {
    font-weight: 500;
    font-size: 22px;
    color: #fff;
    margin: .5rem;
    width: max-content;
}

.realisations-template-default #others-articles .article-wrapper:hover .article-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.realisations-template-default #others-articles .more {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 8, 66, 0.7);
    z-index: 1;
    height: 81%;
    justify-content: center;
    align-items: center;
}

.realisations-template-default #others-articles .more span {
    position: relative;
    top: 25px;
}

@media(max-width: 1400px) {
    .realisations-template-default #others-articles {
        margin-bottom: 4rem;
    }

    .realisations-template-default #others-articles .article-title {
        height: 30%;
    }
}

@media(max-width: 1280px) {
    .realisations-template-default #page-container #fao_page-realisation--banner-hero .et_pb_row {
        flex-direction: column;
    }

    .realisations-template-default #page-container #fao_page-realisation--banner-hero .et_pb_column {
        width: 100%;
    }

    .realisations-template-default #page-container #fao_page-realisation--banner-hero .et_pb_column:first-child {
        margin-bottom: 2rem;
    }

    .realisations-template-default #page-container #fao_page-realisation--banner-hero h2 {
        margin-bottom: .5rem;   
    }

    .realisations-template-default #others-articles .article-wrapper .article-title h3 {
        font-size: 18px !important;
        line-height: 22px;
    }

    .realisations-template-default #others-articles .article-categories span {
        font-size: 16px !important;
        line-height: 10px;
    }
}

@media(max-width: 980px) {
    .realisations-template-default #others-articles .et_pb_row {
        flex-direction: column;
    }

    .realisations-template-default #others-articles .et_pb_row .article-wrapper {
        width: 100%;
        margin-bottom: 2rem;
    }

    .realisations-template-default #others-articles .more {
        height: 100%;
    }
}

@media(max-width: 660px) {
    .realisations-template-default #page-container .categories {
        display: flex;
        flex-wrap: wrap;
    }

    .realisations-template-default #page-container .categories li {
        font-size: 15px !important;
    }
}

@media(max-width: 600px) {
    .realisations-template-default #page-container #fao_page-realisation--banner-hero .cta div {
        display: flex;
        flex-direction: column;
    }

    .realisations-template-default #page-container #fao_page-realisation--banner-hero .cta div .mail {
        margin-bottom: 1rem;
    }

    .realisations-template-default #page-container #fao_page-realisation--banner-hero .cta div a {
        width: 70%;
        display: flex;
        justify-content: center;
    }
}

@media(max-width: 420px) {
    .realisations-template-default #page-container #fao_page-realisation--banner-hero .cta div a {
        width: 90% !important;
    }
}