:root{--wp--style--global--content-size : 1200px !important;}

.wp-block-columns{gap:6rem !important;}

.ft-offres{list-style:none; padding:0; display:flex; gap:2rem; flex-wrap:wrap;}
.ft-offres li{position:relative; display:block; margin:0; padding:40px 40px 60px; border-radius:10px; font-size:80%; background-color:var(--cl-light-gray); flex:0 0 calc(50% - 1rem);}
.ft-offres li.hover, .ft-offres li:hover{background-color:var(--cl-gray-text); color:var(--cl-white);}
.ft-offre-title{display:block; font-size:var(--size-h2); font-weight:500; margin-bottom:15px;}
.ft-offre-meta{margin-bottom:15px;}
.ft-offre-meta div{margin-bottom:10px;}
.ft-offre-meta i{margin-right:5px;}

.ft-offre-tags{display:flex; flex-wrap:wrap; justify-content:flex-start; gap:1rem; margin-bottom:15px;}
.ft-offre-tags span{display:block; width:max-content; background-color:var(--cl-dark-gray); color:var(--cl-white); padding:5px 10px; border-radius:10px;}

.ft-offre-link{display:block; width:max-content; margin-top:10px; color:var(--cl-white); padding:10px 20px; border-radius:10px; border:1px solid (var(--cl-red)); background-color:var(--cl-red); text-decoration:none;}
.page-int .ft-offre-link{color:var(--cl-white);}
/*.ft-offre-link{position:absolute; bottom:20px; left:40px; display:block; width:max-content; margin-top:10px; color:var(--cl-white); padding:10px 20px; border-radius:10px; border:1px solid (var(--cl-red)); background-color:var(--cl-red); text-decoration:none;}*/
a.ft-offre-link:visited, .page-int a.ft-offre-link:visited{color:var(--cl-white);}
.ft-offre-link:before{content:""; display:inline-block; vertical-align:middle; margin-right:10px; background:url(/wp-content/themes/emploi/images/arrow_white.svg) scroll no-repeat center / contain; width:12px; height:6px}
.ft-offre-link:after, .ft-offre-btn:after{content:""; position:absolute; inset:0; width:100%; height:100%; z-index:1;}
.ft-offre-link:focus:after, .ft-offre-btn:focus:after{outline:2px solid var(--cl-red); outline-offset:3px;}

.ft-offres li:hover .ft-offre-link, .ft-offres li.hover .ft-offre-link{background-color:var(--cl-white); color:var(--cl-red);}
.ft-offres li:hover .ft-offre-link:before, .ft-offres li.hover .ft-offre-link:before{background-image:url(/wp-content/themes/emploi/images/arrow_red.svg)}

/* #################### Colonne de filtres ####################*/

.filters-close{display:block; margin-bottom:30px; text-align:right; cursor:pointer;}
.filters-close:hover{color:var(--cl-red);}

.filter-type{display:flex; gap:1rem; flex-wrap:wrap;}
.filter-type input{position:absolute; opacity:0;}

.filter-type label{position:relative; display:inline-block; padding:2px 7px; border-radius:5px; cursor:pointer; cursor:pointer; font-size:var(--size-small); color:var(--cl-white); background-color:var(--cl-dark-gray)}
.filter-type label:hover, .filter-type input:checked + label{background-color:var(--cl-red);}
.filter-type label:after{content:""; position:absolute; inset:0; width:100%; height:100%; z-index:1; transition: outline-color 250ms linear, outline-width 250ms linear, outline-offset 250ms linear;}
.filter-type input:focus + label:after, .filter-type input:focus-visible + label:after{outline:2px solid var(--cl-red); outline-offset:3px;}

#commune:focus{outline:2px solid var(--cl-red); outline-offset:3px; border-color:var(--cl-gray-border)}

.filter-domains{display:flex; gap:1rem; flex-wrap:wrap; justify-content:flex-start;}
.filter-domains div{flex:0 0 100%;}
.filter-domains label{flex:0 0 100%; display:flex; gap:5px; font-size:var(--size-small); align-items:flex-start; line-height:1.2;}
.filter-domains label:before{content:""; display:flex; justify-content:center; align-items:center; font-size:var(--size-extra-small); width:10px; height:10px; border-radius:3px; border:1px solid var(--cl-dark-gray); margin-top:3px; flex-shrink:0;}
.offer-domain{position:absolute; opacity:0;}
.offer-domain:checked + label:before{content:"✔";}
.offer-domain:focus + label:before, .offer-domain:focus-visible + label:before{outline:2px solid var(--cl-red); outline-offset:3px;}

/* #################### Page dédiée à une offre ####################*/
.ft-single-offre__title{font-size:var(--size-h1); margin-bottom:15px;}
.ft-offre-btn{position:relative; display:block; width:max-content; max-width:100%; border:1px solid var(--cl-red); border-radius:10px; background-color:var(--cl-red); padding:10px 20px; color:var(--cl-white); text-decoration:none;}
.ft-offre-btn:before{content:"→"; display:inline-block; margin-right:5px;}
.ft-offre-btn:visited, .ft-offre-btn:active{color:var(--cl-white)}
.ft-offre-btn:hover, .ft-offre-btn:hover:visited, .ft-offre-btn:hover:active{background-color:var(--cl-white); color:var(--cl-red);}


.ft-single-offre-meta div{position:relative; padding-left:30px; margin-bottom:15px;}
.ft-single-offre-meta i{position:absolute; top:2px; left:0; color:var(--cl-red)}

select{display:block; width:100%; border:1px solid var(--cl-red); border-radius:10px; background-color:var(--cl-white); padding:10px 20px;}

@media all and (max-width:1199px){
    .wp-block-columns{gap:4rem !important;}

    .ft-offres li{padding:30px 30px 70px;}
    .ft-offre-title{font-size:180%;}
    .ft-offre-link{left:30px;}
}


@media all and (max-width:991px){
    .ft-offers-columns.wp-block-columns{gap:0 !important;}
    .ft-offers-columns .wp-block-column{flex:0 0 100% !important;}
    .ft-offers-columns .wp-block-column.filters-column{flex:0 0 0 !important; overflow:visible;}
    .filters-opener{display:flex;}
    .filters-container{position:fixed; top:0; right:-360px; background-color:var(--cl-light-gray); border-left:1px solid var(--cl-red); height:100vh; width:360px; transition:0.3s all ease 0s; z-index:99;}
    .filters-container-overflow{height:100vh; overflow:scroll; padding:30px; }
    #show_filters:checked + .filters-container{right:0;}
    #show_filters:checked + .filters-container .filters-opener{background-color:var(--cl-black); border-color:var(--cl-white); color:var(--cl-white); font-size:0;}
    #show_filters:checked + .filters-container .filters-opener:before{content:"×"; font-size:24px; background:none;}

}

@media all and (max-width:781px){
    .ft-offres li{padding:20px 20px 60px;}
    .ft-offre-title{font-size:160%;}
    .ft-offre-link{left:20px;}
}

@media all and (max-width:600px){
    .ft-offres li{flex:0 0 100%;}
    .filters-container-overflow{padding:30px 15px; font-size:80%;}
    .filters-container{right:-260px; width:260px;}

    .filter-type label, .filter-domains label{font-size:90%;}
}