/* Filtres - SELECT */
.cmg-filters-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: -140px;
    margin-bottom: 110px;
}

.cmg-filters-wrapper {
    position: relative;
    flex: 0 0 30%;
}

.cmg-filters {
    position: relative;
    padding-left: 0;
    text-align: center;
    border: none;
    box-shadow: 0px 4px 20px 0px rgb(57 57 57 / 13%);
    border-radius: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font-size: 1rem;
    color: #193A4B;
    font-weight: bold;
    width: 100%;
}

.cmg-filters-wrapper::after {
    content: "";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    font-size: 15px;
    line-height: 15px;
    height: 15px;
    width: 15px;
    position: absolute;
    top: calc(50% - 10px);
    right: 60px;
    text-align: center;
    color: #193A4B;
}

.cmg-filters::-ms-expand {
    display: none;
    /* supprimer la fléche par défaut en IE 10 et 11 */
}

.cmg-filter {
    list-style: none;
    margin: 10px;
}

.cmg-filter>button {
    background-color: #4CAF50;
    /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.select-hidden {
    display: none;
    visibility: hidden;
    padding-right: 10px;
}

.select {
    cursor: pointer;
    display: inline-block;
    position: relative;
    font-size: 16px;
    color: #193A4B;
    width: 100%;
    height: 50px;
}

.select-styled {
    border: none;
    box-shadow: 0px 4px 20px 0px rgb(57 57 57 / 13%);
    border-radius: 10px;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #fff;
    line-height: 50px;
    font-size: 1rem;
    color: #193A4B;
    font-weight: bold;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

.select-styled:hover {
    background-color: #e7e7e7;
}

.select-styled:active,
.select-styled.active {
    background-color: #e7e7e7;
}

.select-styled:active:after,
.select-styled.active:after {
    top: 9px;
    border-color: transparent transparent #fff transparent;
}

.select-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 20px 0px rgb(57 57 57 / 13%);
}

.select-options li {
    margin: 0;
    padding: 12px 0;
    text-indent: 15px;
    border-top: 1px solid #e7e7e7;
    -moz-transition: all 0.15s ease-in;
    -o-transition: all 0.15s ease-in;
    -webkit-transition: all 0.15s ease-in;
    transition: all 0.15s ease-in;
    background-color: white;
}

.select-options li:first-child {
    border: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.select-options li:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.select-options li:hover,
.select-options li.is-selected {
    color: #193A4B;
    background: #e7e7e7;
}

.select-options li[rel="hide"] {
    display: none;
}

/* breadcrumb */
.rank-math-breadcrumb {
    margin-bottom: 30px;
}

.rank-math-breadcrumb a,
.rank-math-breadcrumb span {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.rank-math-breadcrumb .separator {
    color: #019CB2;
}

/* Galerie */
.cmg-gallery {
    padding: 0;
    display: grid;
    width: 100%;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 3fr;
    grid-column-gap: 30px;
    grid-row-gap: 60px;
}

.cmg-card {
    height: 100%;
    list-style: none;
    width: 100%;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    border: none;
    box-shadow: 0px 4px 20px 0px rgb(57 57 57 / 13%);
}

.cmg-image-container {
    width: auto;
    height: 250px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
}

.cmg-image-container .cmg-category {
    font-weight: bold;
    font-size: 1rem;
    color: #193A4B;
}

.cmg-category {
    background-color: #EBF5EE;
    padding: 10px;
    width: fit-content;
    position: absolute;
    left: 0;
    top: 20px;

}

.cmg-info-container {
    padding: 10px 20px;
}

.cmg-info-container h3 {
    font-size: 1rem;
    text-transform: capitalize;
    color: #193A4B;
    font-weight: bold;
}

.cmg-info-container .date {
    font-style: italic;
    font-size: 14px;
}

/*.cmg-info-container .download {
    position: absolute;
    bottom: -20px;
    right: 2rem;
    background-color: #019cb2;
    border-color: #019cb2;
    color: white;
}*/

.cmg-card .download {
    position: absolute;
    bottom: -25px;
    right: 2rem;
    background-color: #019cb2;
    border-color: #019cb2;
    color: white;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #019cb2;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 3px;
    width: auto;
    -webkit-appearance: button;
    text-transform: none;
    line-height: 2;
    margin: 0;
    width: 50px;
    height: 50px;
}

.cmg-card .back {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: white;
}

.cmg-card:hover .back {
    display: block;
}

.cmg-info-container.back h3 {
    font-size: 1.2rem;
}

.cmg-info-container.back h4 {
    font-size: 1.2rem;
}

.cmg-category-eau {
    background-color: #A7DFE3;
}

.cmg-category-energie {
    background-color: #F2DD9A;
}

.cmg-category-biodiversite {
    background-color: #9CCBBC;
}

.cmg-category-default {
    background-color: #bebebe;
}

.cmg-image-container.front.word_background {
    background: #01549C;
    position: relative;
}

.cmg-image-container.front.excel_background {
    background: #1A7343;
    position: relative;
}

.cmg-image-container.front.zip_background {
    background: #bebebe;
    position: relative;
}

.cmg-image-container.front.word_background::after,
.cmg-image-container.front.excel_background::after,
.cmg-image-container.front.zip_background::after {
    content: "";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f1c2";
    font-size: 60px;
    line-height: 60px;
    height: 60px;
    width: 60px;
    position: absolute;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    text-align: center;
    color: white;
}

.cmg-image-container.front.word_background::after {
    content: "\f1c2";
}

.cmg-image-container.front.excel_background::after {
    content: "\f1c3";
}

.cmg-image-container.front.zip_background::after {
    content: "\f1c6";
}

#cmg-gallery-container {
    margin-bottom: 80px;
}

.cmg-pagination-container {
    margin-top: 60px;
    text-align: center;
    list-style-type: none;
}

.cmg-pagination-container li {
    display: inline-block;
}

.cmg-pagination-container li span,
.cmg-pagination-container li a {
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 38px;
    -moz-transition: all 0.15s ease-in;
    -o-transition: all 0.15s ease-in;
    -webkit-transition: all 0.15s ease-in;
    transition: all 0.15s ease-in;
    color: #193A4B;
}

.cmg-pagination-container li span.current {
    background: #019cb2;
    color: #fff;
}

.cmg-pagination-container li a:hover {
    background: #e7e7e7;
}