/* ### MAIN LAYOUT ### */
#main{
        margin: 0;
        padding-top: 140px;
}
.display-name{
        color: #f0f0f1;
}

/* ### BUTTON ### */
.btn{
        display: inline-flex;
        padding: 6px 16px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-radius: 0;
        text-transform: uppercase;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
}
.btn:hover,
.btn:focus,
.btn:active,
.btn:focus-visible{
        outline: 0;
        text-decoration: none;
        box-shadow: none;
}
.btn.small{
        padding: 4px 8px;
        text-transform: initial;
}
.btn.pink{
        background-color: var(--pink-color);
        color: var(--dark-pink-color);
}
.btn.dark-pink{
        background-color: var(--dark-pink-color);
        color: #fff;
}
.btn.green-blue{
        background-color: var(--green-blue-color);
        color: #fff;
}

/* ### SECTION ### */
.title-container {
        position: relative;
        display: flex;
        justify-content: center;
        background: var(--dark-pink-color);
        padding: 20px 0 24px 0;
}
.title-container h1 {
        position: relative;
        font-size: 36px;
        font-weight: 600;
        color: #fff;
        margin: 0;
}
.title-container h1::after{
        content: '';
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 100%;
        height: 4px;
        background-color: var(--pink-color);
}
.header-img {
        width: 100%;
        aspect-ratio: 4/1;
        object-fit: cover;
}
.default-section{
        position: relative;
        margin: 0 auto;
        max-width: var(--max-width-section);
        padding: 64px var(--margin-section);
}
.default-section-inner{
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 64px;
}
.facetwp-template,
.default-grid{
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        padding: 0;
        column-gap: 24px;
        row-gap: 24px;
        width: 100%;
}

/* ### POSTS GRID FIRST XL ### */
.facetwp-template .post-item {
        grid-column: 3 / span 4;
        grid-row: span 1;
}

.facetwp-template .post-item:first-child {
        grid-column: 3 / span 8;
}
.facetwp-template .post-item:first-of-type .post-infos{
        width: calc(50% - 24px);
}
.facetwp-template .post-item:first-of-type .post-img {
        aspect-ratio: 16/9;
}

.facetwp-template .post-item:nth-child(odd):not(:first-child) {
        grid-column: 7 / span 4;
}
.facetwp-template .post-item:nth-child(even):not(:first-child) {
        grid-column: 3 / span 4;
}

/* ### POST ITEM ### */
.post-item{
        position: relative;
        display: flex;
        flex-direction: column;
        row-gap: 8px;
}
.post-item .post-img-container{
        position: relative;
        width: 100%;
}
.post-item .post-img{
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
}
.post-item .post-tags{
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        flex-wrap: wrap;
        color: #fff;
        font-size: 14px;
}
.post-item .post-tags .post-tag{
        padding: 2px 10px;
        background-color: var(--pink-color);
        color: var(--dark-pink-color);
        font-size: 14px;
        text-transform: lowercase;
}
.post-item .post-tags .post-tag.dans-lhemicycle{
        background-color: var(--green-blue-color);
        color: #fff;
}
.post-item .post-tags .post-tag.votre-circonscription{
        background-color: var(--green-color);
        color: var(--dark-color);
}
.post-item .post-tags .post-tag.en-commission{
        background-color: var(--dark-pink-color);
        color: #fff;
}
.post-item .post-date{
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 2px 10px;
        background-color: var(--pink-color);
        color: var(--dark-color);
        font-size: 14px;
        font-weight: 700;
}
.post-item .post-infos{
        line-height: normal;
}
.post-item .post-title{
        display: inline;
        color: var(--green-blue-color);
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        text-transform: uppercase;
}
.post-item .post-desc{
        display: inline;
        color: var(--dark-color);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
}

/* ### BREADCRUMB ### */
.breadcrumbs-container {
        display: grid;
        column-gap: 24px;
        grid-template-columns: repeat(12, 1fr);
}
.breadcrumbs-container .breadcrumbs {
        grid-column: 3/11;
        margin-bottom: 16px;
}
.first-section.default-section .breadcrumbs {
        grid-column: 2/ 12;
}
.breadcrumbs,
.breadcrumbs-container .breadcrumbs,
.breadcrumbs-container .breadcrumbs a,
.breadcrumbs-container .breadcrumbs span {
        font-family: 'scandia-web';
        color: var(--dark-color);
}
.breadcrumbs a {
        text-decoration: underline;
}

/* ### CAROUSEL ### */
.medias-slider {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        margin: 0 auto;
}
.medias-slider .slides {
        position: relative;
        width: 100%;
        height: 100%;
}
.medias-slider .slide-item{
        position: absolute;
        width: 100%;
        height: 100%;
}

.medias-slider .slide {
        width: 100%;
        height: 100%;
        object-fit: cover;
}
.medias-slider .slide-item.active .slide{
        display: block;
}
.medias-slider .slide-item .caption{
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        display: none;
        width: 100%;
        font-size: 14px;
}
.medias-slider .slide-item.active .caption{
        display: block;
}

.medias-slider .dots {
        position: absolute;
        right: 16px;
        bottom: 16px;
        display: flex;
        column-gap: 8px;
        text-align: center;
}
.medias-slider .dot {
        display: inline-block;
        width: 16px;
        height: 16px;
        background-color: transparent;
        border: 1px solid #fff;
        border-radius: 50%;
        cursor: pointer;
}

.dot.active {
        background-color: #fff;
}

/* ### SLIDER POSTS ### */
.slider-posts {
        position: relative;
        width: 100%;
}
.slider-track-container {
        overflow: hidden;
}

.slider-posts .slider-track {
        display: flex;
        column-gap: 24px;
        transition: transform 0.5s ease;
        will-change: transform;
}
.slider-posts .slider-track .post-item {
        flex: 0 0 calc((100% - 48px) / 3);
        box-sizing: border-box;
}
.slider-posts .slider-arrows {
        position: absolute;
        top: 0;
        left: 0;
        aspect-ratio: 20/5;
        width: 100%;
}
.slider-posts .slider-arrow {
        position: absolute;
        top: 50%;
        display: none;
        align-items: center;
        transform: translateY(-50%);
        background: #00bfa6;
        color: white;
        padding: 12px 14px 12px 16px;
        cursor: pointer;
        border-radius: 50px;
        z-index: 2;
}
.slider-posts .slider-arrow.prev.active,
.slider-posts .slider-arrow.next.active {
       display: flex;
}
.slider-posts .slider-arrow.prev {
        left: -15px;
        padding: 12px 16px 12px 14px;
}
.slider-posts .slider-arrow.next {
        right: -20px;
}
.slider-posts .slider-arrow.prev svg {
        transform: rotate(180deg);
}

/* ### MODAL NEWSLETTER ### */
.modal-content {
        border: 0;
        border-radius: 0;
}
.modal-header {
        padding: 20px 24px 24px 24px;
        border: 0;
}
.modal-footer {
        padding: 12px 24px 20px 24px;
        border: 0;
}
.modal-body {
        padding: 12px 24px 24px;
}
.modal-title {
        position: relative;
        display: inline-flex;
        align-self: start;
        color: var(--dark-pink-color);
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
}
.modal-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 4px;
        background-color: var(--pink-color);
}
.sib_signup_box_inside_1 {
        display: flex;
        flex-direction: column;
        row-gap: 24px;
}
.row-form-newsletter {
        display: flex;
        flex-direction: column;
}
.row-form-newsletter label {
        display: none;
}
.row-form-newsletter textarea,
.row-form-newsletter input {
        padding: 8px 16px;
        background: rgb(255 126 192 / 20%);
        border: 0;
        color: var(--dark-pink-color);
        width: 100%;
}
.row-form-newsletter textarea:focus-visible,
.row-form-newsletter input:focus-visible{
        outline: none;
}
.row-form-newsletter textarea::placeholder,
.row-form-newsletter input::placeholder {
        color: var(--pink-color);
}
.sib_msg_disp{
        display: none;
}
.modal-body p{
        margin: 0;
}
.modal-body .btn{
        text-transform: lowercase;
        margin: 0;
        width: 100%;
}

@media (max-width: 1440px) {

}

@media (max-width: 1200px) {
        :root{
                --max-width-section : 1200px;
                --margin-section : 40px
        }
}

@media (max-width: 992px) {
        :root{
                --max-width-section : 992px;
                --margin-section : 32px
        }

        .facetwp-template .post-item:first-child {
                grid-column: 2 / span 10;
        }
        .facetwp-template .post-item:nth-child(odd):not(:first-child) {
                grid-column: 7 / span 5;
        }
        .facetwp-template .post-item:nth-child(even):not(:first-child) {
                grid-column: 2 / span 5;
        }
        .breadcrumbs-container .breadcrumbs {
                grid-column: 2/12;
        }

        .facetwp-template .post-item:first-of-type .post-infos {
                width: calc(75% - 24px);
        }
}

@media (max-width: 768px) {
        :root{
                --max-width-section : 768px;
                --margin-section : 24px
        }

        .title-container h1{
                font-size: 28px;
        }

        .default-section {
                padding: 72px var(--margin-section);
        }

        .facetwp-template .post-item:first-child {
                grid-column: 1 / span 12;
        }
        .facetwp-template .post-item:nth-child(odd):not(:first-child) {
                grid-column: 7 / span 6;
        }
        .facetwp-template .post-item:nth-child(even):not(:first-child) {
                grid-column: 1 / span 6;
        }
        .breadcrumbs-container .breadcrumbs {
                grid-column: 1/13;
        }

        .facetwp-template .post-item:first-of-type .post-infos {
                width: 100%;
        }
}

@media (max-width: 576px) {
        :root{
                --max-width-section : 576px;
                --margin-section : 16px
        }

        .facetwp-template .post-item:nth-child(odd):not(:first-child),
        .facetwp-template .post-item:nth-child(even):not(:first-child){
                grid-column: 1 / span 12;
        }
        .facetwp-template .post-item:first-of-type .post-img {
                aspect-ratio: 4/3;
        }
}