/********************* Ressources - START ***********************/
.ressources-filter {
    background: #3ac1d4;
    padding: 20px 0;
}

.ressources-filter .container {
    padding: 0 !important;
}

.ressources-filter .ressources-filter-inner:after {
    content: '';
    display: block;
    clear: both;
}

.ressources-filter .ressources-filter-inner {
    margin: 0;
}

.ressources-filter .nice-select {
    width: 100%;
    float: left;
    clear: none;
    margin: 5px 0;
    border: none;
}

.ressources-filter .nice-select > .current{
    width: calc(100% - 0px);
    overflow: hidden;
    display: block;
}

.ressources-filter .nice-select .list li:first-child {
    display: none;
}

.ressources-filter form.search-by-keyword {
    position: relative;
    float: left;
    width: 100%;
    margin: 5px 0;
}

.ressources-filter form.search-by-keyword input {
    width: 100%;
    border: none;
    border-radius: 4px;
    height: 42px;
    padding: 0 15px;
    background: transparent;
    border: 1px solid #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.ressources-filter form.search-by-keyword input::placeholder {
    color: #ffffff;
    font-weight: 300;
    font-size: 12px;
}

.ressources-filter form.search-by-keyword button {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 48px;
    cursor: pointer;
    background: #ffffff;
    border: none;
    color: #3ac1d4;
}

.ressources-filter form.search-by-keyword button i {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
    margin-top: 8px;
}

.ressources-filter form.search-by-keyword button i#et_search_icon::before {
    height: 18px;
    display: block !important;
    width: 18px;
    margin: auto;
    top: 0;
}

.ressources-list {
    margin: 25px 0 0;
}

@media(max-width:768px){
	.ressources-list .ressource {
		margin-bottom: 40px !important;
	}
	
	.ressources-list .ressource .ressource-img {
		height: auto !important;
		padding-bottom: 57%;
	}
}

.ressources-list-wrapper {
    min-height: 500px;
}

.ressources-list .ressource,
.ressource-sizer {
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid #46bbcc;
}

.ressources-list .ressource:hover .ressource-title {
    color: #3ac1d4;
}



.ressources-list .ressource .ressource-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin-top: 12px;
    padding: 0px 15px;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    min-height: 70px;
}


.ressources-list .ressource .ressource-after-title {
    padding: 10px 0;
    position: relative;
    margin-bottom: 16px;
    text-align: center;
}

.ressources-list .ressource .ressource-after-title:before,
.ressources-list .ressource .ressource-after-title:after {
    content: '';
    width: 100%;
    position: absolute;
    height: 1px;
    background: #d7d7d7;
    left: 0;
}

.ressource-source {
    color: #62d4b4;
}

.ressources-list .ressource .ressource-after-title:before {
    top: 0;
}

.ressources-list .ressource .ressource-after-title:after {
    bottom: 0;
}

.ressources-list .ressource .ressource-img {
    height: 200px;
    width: 100%;
    position: relative;
    background-size: cover;
	background-position: 100% 100%;
  	background-repeat: no-repeat;
}

.ressources-list .ressource .ressource-img .thumb-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(69 186 203 / 82%);
    color: white;
    opacity: 0;
    transition: all 0.3s;
}

.ressources-list .ressource .thumb-text,
 .ressources-list .ressource .et-pb-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 28px;
    text-align: center;
    font-weight: 600;
}

.ressources-list .ressource .thumb-text {
    font-size: 17px;
    top: 50px;
}

.ressources-list .ressource  .et-pb-icon {
    top: -35px;
    font-size: 30px;
}

.ressources-list .ressource .ressource-img img {
    display: block;
}

.ressources-list .ressource .ressource-thematique {
    font-size: 16px;
}

.ressources-list .ressource .ressource-sous-thematique {
    color: #3bc2d5;
}

.ressources-list .ressource a.ressource-cta {
    padding: 5px 15px;
    background: #3fc3d6;
    display: inline-block;
    color: white;
    border-radius: 50px;
    margin-top: 20px;
}


.ressources-list-wrapper .search-result-label {
    font-weight: 600;
    font-size: 23px;
    color: #3ac1d4;
    display: none;
}

.ressources-list-wrapper .empty-search-result {
    font-size: 20px;
    font-weight: 100;
    font-style: italic;
    color: #b5b5b5;
    display: none;
    margin-top: 15px;
}

.ressources-list-wrapper .container {
    padding-top: 40px !important;
}

.ressources-list .ressource .ressource-content {
    padding: 15px 15px 20px 15px;
}

.ressources-list .ressource .ressource-date {
    text-align: center;
}

a.tout-voir-btn {
    display: block;
    float: left;
    background: white;
    color: #3ac1d4;
    padding: 8px 0 6px;
    text-align: center;
    border-radius: 4px;
    margin: 5px 0;
    border: 1px solid white;
    width: 100%;
    transition: all 0.3s;
}

a.tout-voir-btn:hover {
    color: white;
    background: transparent;
}


.ressources-list-wrapper .nice-select .option {
    padding-left: 10px;
    padding-right: 10px;

}

.ressources-list .ressource a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}


.ressources-list .ressource:hover .ressource-img .thumb-content {
    opacity: 1;
}

.ressources-list .ressource:hover {
    box-shadow: 0px 0px 26px #9c9c9c;
}

@media (min-width: 768px) {
    .ressources-list {
        margin: 25px -15px 0;
    }

    .ressources-list .ressource,
    .ressource-sizer {
        width: calc(100%/3 - 30px);
        margin: 0 15px 35px 15px;
       
    }
    .ressources-filter .nice-select {
        margin: 0 5px;
    }

    .ressources-filter .nice-select.filter-thematique{
        width: calc(32% - 10px);
    }

    .ressources-filter .nice-select.filter-sous-thematique{
        width: calc(20% - 10px);
    }

    .ressources-filter .nice-select.filter-type-ressource{
        width: calc(20% - 10px);
    }

    .ressources-filter form.search-by-keyword {
        position: relative;
        float: left;
        width: calc(20% - 10px);
        margin: 0 5px;
    }

    .ressources-filter .ressources-filter-inner {
        margin: 0 -5px;
    }

    a.tout-voir-btn {
        width: calc(8% - 10px);
        margin: 0;
        margin-right: 4px;
    }
}

/********************* Ressources - END ***********************/

/********************* Ateliers - START ***********************/
.ateliers-filter {
    text-align: center;
    justify-content: center;
    display: flex;
}

.ateliers-filter button {
    background: transparent;
    border: 1px solid #c1c1c1;
    font-size: 15px;
    padding: 0px 15px;
    margin-left: -1px;
    color: #676767;
    cursor: pointer;
}

.ateliers-filter button:first-child {
    border-radius: 5px 0 0 5px;
}

.ateliers-filter button.is-active {
    background: #00afc8;
    color: #ffffff;
}

.ateliers-filter:after {
    content: '';
    display: block;
    clear: both;
}

.ateliers-filter .nice-select {
    margin: 5px 0;
    display: inline-block;
    clear: none;
    float: none;
}


.ateliers-filter .nice-select {
    border-radius: 0 5px 5px 0;
    border: solid 1px #c1c1c1;
    box-sizing: border-box;
    clear: both;
    cursor: pointer;
    display: block;
    float: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: normal;
    height: 35px;
    line-height: 35px;
    outline: none;
    padding-left: 30px;
    padding-right: 60px;
    position: relative;
    text-align: left !important;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
    width: auto;
    margin-left: -1px !important;
}

.ateliers-filter .nice-select:after {
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    content: '';
    display: block;
    height: 6px;
    margin-top: -5px;
    pointer-events: none;
    position: absolute;
    right: 22px;
    top: 50%;
    -webkit-transform-origin: 66% 66%;
    -ms-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transform: rotate(
            45deg
    );
    -ms-transform: rotate(45deg);
    transform: rotate(
            45deg
    );
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    width: 6px;
}

.ateliers-filter .nice-select.is-active {
    background: #36c0d4;
    color: white;
}

.ateliers-filter .nice-select.is-active:after {
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
}


.ateliers-filter .nice-select .list {
    width: max-content;
    background-color: #ffffff;
    min-width: 100%;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgb(68 68 68 / 11%);
    box-sizing: border-box;
    margin-top: 1px;
}

.ateliers-filter .nice-select .option {
    cursor: pointer;
    font-weight: 500;
    line-height: 30px;
    list-style: none;
    min-height: auto;
    outline: none;
    padding-left: 18px;
    padding-right: 29px;
    text-align: left;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    color: #8c8c8c;
}

.nice-select .option.selected {
	font-weight:normal;
	color:#3ac1d4;
}

.ateliers-list {
    margin: 25px 0;
}

.ateliers-list .atelier,
.atelier-sizer {
    width: 100%;
    margin: 0;
    padding-bottom: 0px;
}

.ateliers-list-wrapper .search-result-label {
    font-weight: 600;
    font-size: 23px;
    color: #3ac1d4;
    display: none;
}

.ateliers-list-wrapper {
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.ateliers-list-wrapper .empty-search-result {
    font-size: 20px;
    font-weight: 100;
    font-style: italic;
    color: #b5b5b5;
    display: none;
    margin-top: 15px;
}

.ateliers-list .atelier {
    position: relative;
    box-shadow: 0px 0px 26px transparent;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid #46bbcc;
    margin-bottom: 50px;

}

.ateliers-list .atelier:hover {
    box-shadow: 0px 0px 26px #9c9c9c;
}

.ateliers-list .atelier .atelier-img {
    padding-bottom: 71%;
    background-size: cover;
    background-position: center;
    height: 0;
    position: relative;
}

.ateliers-list .atelier .atelier-img .thumb-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(69 186 203 / 82%);
    color: white;
    opacity: 0;
    transition: all 0.3s;
}

.ateliers-list .atelier:hover .atelier-img .thumb-content {
    opacity: 1;
}

.ateliers-list .atelier a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.ateliers-list .atelier .thumb-text,
.ateliers-list .atelier .et-pb-icon
{
    position: absolute;
    top: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
}

.ateliers-list .atelier .et-pb-icon {
    top: -35px;
    font-size: 30px;
}

.ateliers-list .atelier .atelier-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin-top: 12px;
    padding: 0px 15px;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    min-height: 70px;
}

.ateliers-list .atelier .atelier-cat {
    text-align: center;
    color: #b9b9b9;
    padding: 10px 15px 15px 15px;
    border-bottom: 1px solid #e0e0e0;
}


.ateliers-list .atelier:hover .atelier-cat,
.ateliers-list .atelier:hover .atelier-title {
    color: #4cc7d9;
    font-weight: 700;
}

.ateliers-list .atelier .atelier-dates {
    height: 120px;
    padding: 10px;
    display: table;
    width: 100%;
}

.ateliers-list .atelier .atelier-dates ul {
    margin: 0;
    padding: 0;
    line-height: 20px;
    padding-left: 25px;
    display: table-cell;
    vertical-align: middle;
}


.custom-file {
    position: relative;
    display: inline-block;
    min-width: 100px;
    height: 46px;
    margin-bottom: 0;
    width: 100%;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 46px;
    margin: 0;
    opacity: 0;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 48px;
    padding:11px 15px;
    font-weight: 400 !important;
    line-height: 1.5;
    background-color: #00afc8;
    border: 2px solid #ffffff;
    border-radius: 25px;
    color: white !important;
    text-align: center;
    width: fit-content;
    min-width: 170px;
}

@media (min-width: 768px) {
    .ateliers-filter .nice-select {
        margin: 0;
    }

    .ateliers-list {
        margin: 25px -15px 0;
    }

    .ateliers-list .atelier,
    .atelier-sizer {
        width: calc(100%/3 - 30px);
        margin: 0 15px;
        margin-bottom: 50px;
    }
}


@media (max-width: 768px) {
	.nice-select.open .list {
	    width: 100%;
	}

	.ateliers-filter {
	    text-align: center;
	    justify-content: center;
	    display: block;
	}

	.ateliers-filter button:first-child {
	    border-radius: 5px 5px 0px 0px;
	}

	.ateliers-filter button {
	    background: transparent;
	    border: 1px solid #c1c1c1;
	    font-size: 15px;
	    padding: 11px 15px;
	    margin-top: -1px;
	    color: #676767;
	    cursor: pointer;
	    display: block;
	    width: 100%;
	}

	.ateliers-filter .nice-select {
	    border-radius: 0px 0px 5px 5px;
	    width: 100% !important;
	    margin-top: -1px;
	    text-align: center !important;
	    height: 44px;
	    margin-left: 0px !important;
	        padding: 3px 0px;
	}

	.ateliers-filter .nice-select .list {
	    width: max-content;
	    background-color: #ffffff;
	    min-width: 100%;
	    border-radius: 0;
	    box-shadow: 0 0 0 1px rgb(193 193 193);
	    box-sizing: border-box;
	    margin-top: 1px;
	}

	.ateliers-filter .nice-select .option {
	    padding-top: 5px;
	    padding-bottom: 5px;
	    text-align: center;
	}
}


/********************* Ateliers - END ***********************/


.fancybox-container {
    z-index: 9999999;
}

.nice-select .list {
    max-height: 400px;
    overflow: auto;
}

.nice-select .list::-webkit-scrollbar {
    width: 8px;
}

.nice-select .list::-webkit-scrollbar-track {
    background: #f7f7f7;
}

.nice-select .list::-webkit-scrollbar-thumb {
    background: #00afc8;
    border-radius: 0;
}

.nice-select .option {
    white-space: break-spaces;
    line-height: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: auto;
    min-height: auto;
    padding-right:25px;
}

/******************* single ressources ***********************/

.single-ressource .related-ressources {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
}

.single-ressource .ressources {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; 
    padding: 25px 0px;
}

.single-ressource .ressource-post--wrapper {
    position: relative;
    overflow: hidden;
    width: calc(33.333% - 1.5rem); 
    margin-bottom: 1.5rem; 
}

@media screen and (max-width: 576px) {
    .single-ressource .ressource-post--wrapper {
        width: 100%;
    }
}

.single-ressource .ressource-post--wrapper:hover {
    box-shadow: 0 6px 12px #444444;
}

.single-ressource .ressource-post--wrapper:hover .background-zoom {
    transform: scale(1.1); 
}


.single-ressource .ressource-post--thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.single-ressource .background-zoom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1; 
}

.single-ressource .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.single-ressource .ressource-title {
    color: #fff; 
    font-size: 1.5em; 
    text-align: left;
    margin: 0;
    position: absolute;
    bottom: 10px;
    left: 20px;
    z-index: 3;
}

