/* STYLE HAUT DE PAGE V2 ============================================= */

.hpd-home-v2-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 36px;
    padding: 136px 0 24px 0;
    margin: auto;
    max-width: 1300px;  
}

.home_v2_slider {
    width: 704px;
    height: 548px;
    position: relative;
}

.home_v2_slider .slick-list.draggable {
    border-radius: 8px;
}

.home_v2_slider .home_v2_post_card {
    width: 100%;
    height: 100%;
    min-width: 704px;
    min-height: 548px;
    max-width: 704px;
    max-height: 548px;
    padding: 48px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
}

.home_v2_slider .home_v2_post_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 92, 126, 0) 0%, #001720 100%);
    border-radius: 8px;
    z-index: 1;
}

.home_v2_slider .home_v2_post_card h2 {
    color: #fff;
    max-width: 460px;
    font-size: 36px;
    font-weight: 700;
    z-index: 2;
}

.home_v2_slider .home_v2_post_card p {
    color: #5B97B2;
    border: 1px solid #5B97B2;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 16px;
    width: fit-content;
    z-index: 2;
}

.home_v2_slider .slick-dots {
    position: absolute;
    top: 28px;
    right: 32px;
    width: fit-content;
    height: fit-content;
    border: 1px solid #FFF;
    border-radius: 50px;
    padding: 2px 8px 0px 0px;
}

.home_v2_slider .slick-dots li {
    width: 12px;
}

.home_v2_slider .slick-dots li button:before {
    color: #97938E;
    opacity: 1;
    font-size:12px;
}

.home_v2_slider .slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}

.home_v2_card {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    padding: 5px 32px 5px 5px;
    border-radius: 8px;
    background-color: #FFFFFF;
}

.page-template-home_v2 .left-col-wrapper, .page-template-home_v2 .right-col-wrapper {
    width: 100%;
}

.home_v2_tagline {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 30px 52px;
    border-radius: 8px;
    background-color: #ECF5FC;
    position: relative;
    border: 1px solid #FFFFFF;
    text-align: center;
}

.home_v2_tagline h2 {
    font-size: 48px;
    color: #5B97B2;
    text-transform: initial;
    margin:0;
}

.home_v2_tagline:before {
    color: #e4392f;
    content: url(https://www.uimmlyon.com/wp-content/themes/kn/img/quote.svg);
    width: 36px;
    position: absolute;
    top:-12px;
    left:30px;
}

.home_v2_tagline:after {
    color: #e4392f;
    content: url(https://www.uimmlyon.com/wp-content/themes/kn/img/quote.svg);
    width: 36px;
    -webkit-transform: translateY(-20px) scaleX(-1);
    transform: translateY(-20px) scaleX(-1);
    position: absolute;
    bottom:-32px;
    right:30px;
}

.home_v2_card_1 {
    /* margin: 20px 0; */
    margin: 35px 0 20px 0;
}

.home_v2_card img {
    width: 150px;
    height: 150px;
    border-radius: 4px;
}

.home_v2_card_content {
    width: 100%;
}

.home_v2_card_content h3 {
    font-size: 14px;
    color: #5B97B2;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
    font-family: 'Titillium Web', sans-serif;
}

.home_v2_card_content p {
    font-size: 18px;
    color: #002E3F;
    font-weight: 600;
    margin: 4px 0 0 0;
    font-family: 'Titillium Web', sans-serif;
}

.home_v2_card_content a {
    display:flex;
    justify-content: end;
    font-size: 12px;
    font-weight: 700;
    margin: 16px 0 0 0;
    font-family: 'Titillium Web', sans-serif;
}

/* responsive en dessous de 1300 column */
@media (max-width: 1300px) {
    .hpd-home-v2-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home_v2_slider {
        width: 600px;
    }

    .home_v2_slider .home_v2_post_card h2 {
        font-size: 32px;
        max-width: 90vw;
    }

    .home_v2_slider .home_v2_post_card {
        width: 100%;
        min-width: 600px;
        max-width: 600px;
    }

    .home_v2_tagline h2 {
        font-size: 38px;
    }

    .home_v2_card_content p {
        font-size: 16px;
    }
}

@media (max-width: 1079px) {
    .hpd-home-v2-wrapper {
        flex-direction: column-reverse;
        padding-top: 50px;
    }

    .home_v2_slider {
        width: calc(100vw - 40px);
    }

    .home_v2_slider .home_v2_post_card {
        max-width: 90vw;
        min-width: unset;
        padding: 20px;
    }

}

/* STYLE AGENDA V2 ================================================ */

.home .bloc_listeCPT.evenement,
.page-template-home_v2 .bloc_listeCPT.evenement {
    font-family: 'Titillium Web', sans-serif;
    color:#5B97B2;
}

.home .bloc_listeCPT.evenement h2,
.page-template-home_v2 .bloc_listeCPT.evenement h2 {
    text-align: center;
    font-size: 44px;
    font-family: 'Titillium Web', sans-serif;
    color:  #002E3F;
    position: relative;
}

.home .bloc_listeCPT.evenement h2::after,
.page-template-home_v2 .bloc_listeCPT.evenement h2::after {
    background: linear-gradient(to right, #e4392f 50%, #005c7e 50%);
    height: 1px;
    bottom: -15px;
    content: "";
    left: 50%;
    position: absolute;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 100px;
}

.home  .bloc_listeCPT.evenement .agenda-container,
.page-template-home_v2 .bloc_listeCPT.evenement .agenda-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.home .bloc_listeCPT.evenement .agenda-container .agenda-item .date,
.page-template-home_v2 .bloc_listeCPT.evenement .agenda-container .agenda-item .date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home .bloc_listeCPT.evenement .agenda-container .agenda-item .day,
.page-template-home_v2 .bloc_listeCPT.evenement .agenda-container .agenda-item .day {
    font-size: 80px;
    font-weight: 700;
    color: #005C7E;
    margin: 0;
}

.home .bloc_listeCPT.evenement .agenda-container .agenda-item .month,
.page-template-home_v2 .bloc_listeCPT.evenement .agenda-container .agenda-item .month {
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
}

.home .bloc_listeCPT.evenement .agenda-container .agenda-item .description h3,
.page-template-home_v2 .bloc_listeCPT.evenement .agenda-container .agenda-item .description h3 {
    font-size: 16px;
    margin-top: 16px;
    font-family: 'Titillium Web', sans-serif;
}

/* STYLE ACCOMPAGNEMENT V2 ======================================== */

.home .bloc_icons h2,
.page-template-home_v2 .bloc_icons h2 {
    text-align: center;
    font-size: 44px;
    font-family: 'Titillium Web', sans-serif;
    color:  #ffffff;
    position: relative;
}

.home .bloc_icons h2::after,
.page-template-home_v2 .bloc_icons h2::after {
    background: linear-gradient(to right, #e4392f 50%, #ffffff 50%);
    height: 1px;
    bottom: -15px;
    content: "";
    left: 50%;
    position: absolute;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 100px;
}


.home .bloc_icons.white_bg h2,
.page-template-home_v2 .bloc_icons.white_bg h2 {
    text-align: center;
    font-size: 44px;
    font-family: 'Titillium Web', sans-serif;
    color:  #005C7E;
    position: relative;
}

.home .bloc_icons.white_bg h2::after,
.page-template-home_v2 .bloc_icons.white_bg h2::after {
    background: linear-gradient(to right, #e4392f 50%, #005C7E 50%);
    height: 1px;
    bottom: -15px;
    content: "";
    left: 50%;
    position: absolute;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 100px;
}

@media (max-width: 700px) {
    .home_v2_slider .home_v2_post_card h2 {
        font-size: 26px;
        min-width: unset;
    }

    .home .bloc_listeCPT.evenement h2,
    .page-template-home_v2 .bloc_listeCPT.evenement h2 {
        font-size: 26px;
    }

    .home .bloc_icons h2,
    .page-template-home_v2 .bloc_icons h2 {
        font-size: 26px;
    }

    .home_v2_card {
        padding: 15px 5px 15px 5px;
    }

    .home_v2_card_content a {
        text-align: left;
    }
}

/**************************************************************************/
/**************************************************************************/
/**************************************************************************/
/**************************************************************************/
/**************************************************************************/

#searchform {
    margin: 0;
}

.home,
.page-template-home_v2 {
    .bloc_listeCPT {
        .container {
            max-width: initial;
        }

        .posts-container {
            max-width: 1350px;
        }

        .agenda-container {
            gap: 24px 0;
            margin-top: 48px;
        }

        .agenda-item {
            border: 0;
            padding: 0 25px;

            @media (min-width: 480px) {
                padding: 0 12px;
                width: 50%;
            }

            @media (min-width: 768px) {
                flex: 1;
                padding: 0 6px;
                max-width: 270px;
            }

            @media (min-width: 992px) {
                padding: 0 12px;
            }

            @media (min-width: 1200px) {
                padding: 0 25px;
            }

            .date {
                border-bottom: 1px solid #ECF5FC;
                padding-bottom: 12px;
            }

            .conteneur {
                border-radius: 8px;
                border: 1px solid #5B97B2;
                display: flex;
                flex-direction: column;
                height: 100%;
                padding: 15px 20px 26px 20px;
                transition: all .3s;

                &:hover {
                    background: #5B97B2;
                    border-color: #5B97B2;

                    .date .day,
                    .date .month,
                    .description h3 span,
                    .moreview a {
                        color: #fff !important;
                    }

                    .description h3,
                    .horaire {
                        color:#002E3F;
                    }
                }
            }
        }

        .description {
            margin-bottom: 24px;
        }

        .moreview {
            margin-top: auto;

            a {
                display: block;
                font-size: 12px;
                font-weight: 700;
                text-align: right;
                text-transform: uppercase;
            }
        }
    }

    .bloc_icons {
        &.dark_bg {
            .para a {

                &::after {
                    bottom: 5px;
                    content: url(../img/fleche.svg);
                    pointer-events: none;
                    position: absolute;
                    right: 0;
                    -webkit-transform: translateX(100%);
                    transform: translateX(100%);
                    -webkit-transition: all 0.3s;
                    transition: all 0.3s;
                    width: 18px;
                    z-index: 2;
                }

                &::before {
                    border-bottom: 40px solid #e4392f;
                    border-left: 60px solid transparent;
                    bottom: 0;
                    content: '';
                    display: block;
                    pointer-events: none;
                    position: absolute;
                    right: 0;
                    -webkit-transform: translateX(100%);
                    transform: translateX(100%);
                    -webkit-transition: all 0.3s;
                    transition: all 0.3s;
                    z-index: 1;
                }
            }
        }

        .container {
            margin: 0 auto;
            max-width: 1300px;
        }

        .bloc_para {
            display: flex;
            flex-wrap: wrap;
        }

        .para {
            margin: 0;
            padding: 10px;
            width: 100%;

            @media (min-width: 576px) { width: 50%; }
            @media (min-width: 768px) { width: calc(100% / 3); }
            @media (min-width: 1200px) { width: 25%; }

            a {
                border-radius: 4px;
                box-shadow: 0 0 30px rgba(0,0,0,.16);
                display: block;
                height: 100%;
                padding: 40px;
                position: relative;
                transition: all .3s;
                overflow: hidden;                

                &:hover {
                    background: #fff;

                    h4 {
                        color: #e4392f;
                    }

                    img {
                        -webkit-filter: invert(62%) sepia(78%) saturate(1709%) hue-rotate(339deg) brightness(96%) contrast(99%);
                                filter: invert(62%) sepia(78%) saturate(1709%) hue-rotate(339deg) brightness(96%) contrast(99%);
                    }

                    &::before,
                    &::after {
                        transform: none;
                    }

                    &::after {
                        right: 7px;
                    }
                }
            }

            h4 {
                align-items: center;
                color: #fff;
                display: flex;
                flex-direction: column;
                font-size: 16px;
                font-weight: 700;
                min-height: 48px;
                justify-content: center;
                line-height: 24px;
                margin-bottom: 0;
                margin-top: 14px;
                text-transform: uppercase;
            }

            img {
                height: 80px;
                object-fit: scale-down;
                width: 80px;
            }

            &:hover {
                img {
                    background: none !important;
                }
            }
        }
        &.white_bg {
            background: none !important;

            .container {
                max-width: none;
            }
            
            .bloc_para {
                flex-wrap: wrap;
                justify-content: center;
            }

            .para {
                background: none;
                max-width: 160px;

                @media (min-width: 1200px) {
                    flex: 1;
                }

                a {
                    border-radius: 0;
                    box-shadow: none;
                    padding: 10px;

                    h4 {
                        color: #005C7E;
                    }
                }

                img {
                    aspect-ratio: 1/1;
                    background: #5B97B2;
                    border-radius: 100%;
                    height: 110px;
                    object-fit: scale-down;
                    width: 110px;
                }

                h4 {
                    font-size: 14px;
                }

                a:hover {
                    h4 { color: #e4392f ;}
                    img { background: #005C7E !important; -webkit-filter: none !important; filter: none !important; }
                }
            }
        }
    }

    .bloc_fresque {
        min-height: 400px;
        position: relative;

        .container {
            background: rgba(0, 46, 63, .66);
            border-radius: 4px;
            color: #fff;
            font-size: 11px;
            line-height: 16px;
            max-width: calc(100% - 24px);
            padding: 10px 16px;
            position: absolute;
            right: 20px;
            top: 20px;
            width: 400px;
        }
    }

    .logos_slider {
        padding: 22px 0 50px;
        position: relative;
        z-index: 2;

        .container {
            max-width: initial;
        }

        h2 {
            background: #ecf5fc;
            border-radius: 80px;
            color: #002E3F;
            font-size: 12px;
            line-height: 1;
            margin: 0 auto;
            padding: 13px 24px;
            transform: translateY(-40px);
            width: max-content;
        }

        .slick-arrow {
            display: none !important;
        }

        img {
            border-radius: 8px;
            box-shadow: none;
        }
    }
}

.home .newsletter {
    display: none!important;
}

.home .agenda-item a.bouton {
    display: none!important;
}