:root {
    --noir: #000;
    --rouge: #FF0000;
    --blanc: #FFF;
    --gris-clair: #f2f4f7;

    --noir: #262626;
    --orange: #EF7D00;
    --vert-drapeau: #3FA535;
    --vert: #0f7705;
    --vert-fonce: #023A05;
    --blanc: #FFF;
}



#page_galerie {
    position: relative;
}



#page_galerie .titre {
    flex-direction: column;
    justify-content: flex-start;
    /* align-items: flex-start; */
    padding: 10px 20px !important;

    display: inline-block;

    color: var(--noir);
    margin-top: 15px;
    margin-bottom: 25px;
    background-color: rgba(255, 208, 157, 0.2);
    border-radius: 4px;
}

#page_galerie .titre h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--noir);
}

#page_galerie .titre p {
    font-size: 15px;
    font-weight: 550;
    color: rgb(57, 57, 57);
}

#page_galerie .titre ul {
    position: relative;
    margin: 0;
    padding: 0;
}

#page_galerie .titre ul li a {
    font-size: 14px;
}

#page_galerie .liste {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#page_galerie .liste .item {
    position: relative;
    width: 31%;
    margin-bottom: 10px;
}

#page_galerie .liste .item a {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px 0 rgba(189, 189, 189, 0.2), 0 6px 20px 0 rgba(195, 148, 41, 0.11);
}

#page_galerie .liste .item a:hover {
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(189, 189, 189, 0.2), 0 6px 20px 0 rgba(223, 223, 223, 0.11);
}

#page_galerie .liste .item .inner {
    position: relative;
    width: 100%;
    height: 175px;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
}

#page_galerie .liste .item .inner .icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 45px;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--blanc);
    z-index: 3;
}

#page_galerie .liste .item .inner img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: ease all 0.3s;
}

#page_galerie .liste .item:hover .inner img {
    transform: scale(1.03);
}

#page_galerie .liste .item .caption {
    position: relative;
    padding: 10px 20px;
    height: 105px;
    overflow: hidden;
    /* border: 1px solid red; */
    width: 100%;
}

#page_galerie .liste .item .caption h2 {
    position: relative;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--noir);
    font-weight: 600;
}

#page_galerie .liste .item .caption h3 {
    position: relative;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
}

#page_galerie .liste .item .caption p {
    position: relative;
    font-size: 14px;
    color: #000;
}




#page_galerie .liste.photos_liste .item .inner .icon {
    position: absolute;
    top: 40%;
    right: 40%;
    width: 35px;
    height: 35px;
    font-size: 16px;
    color: var(--blanc);

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--noir);
    z-index: 3;
    opacity: 0.6;
}

#page_galerie .liste.photos_liste .item:hover .inner .icon {
    position: absolute;
    top: 40%;
    right: 40%;
    width: 35px;
    height: 35px;
    font-size: 16px;
    color: var(--blanc);

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--noir);
    z-index: 3;
    opacity: 0.99;
}

#page_galerie .liste.photos_liste .item a:hover {
    position: relative;
    box-shadow: 0 0 rgba(189, 189, 189, 0), 0 0 rgba(223, 223, 223, 0.0);
    background-color: rgba(189, 189, 189, 0);
}


@media screen and (max-width: 992px) {
    #page_galerie .titre h2 {
        font-size: 20px;
        font-weight: 600;
        color: var(--noir);
    }

    #page_galerie .titre p {
        font-size: 14px;
        font-weight: 550;
        color: rgb(57, 57, 57);
    }

    #page_galerie .liste .item {
        position: relative;
        width: 48%;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 560px) {
    #page_galerie .titre h2 {
        font-size: 18px;
        font-weight: 600;
    }

    #page_galerie .titre p {
        font-size: 13px;
        font-weight: 500;
    }

    #page_galerie .liste .item {
        position: relative;
        width: 100%;
        margin-bottom: 10px;
    }

    #page_galerie .liste.photos_liste .item {
        position: relative;
        width: 48%;
        margin-bottom: 10px;
    }

}

/**************       dark mode   ***********/
.dark-mode #page_galerie .liste .item a {
    box-shadow: 0 4px 8px 0 rgba(189, 189, 189, 0.01), 0 6px 20px 0 rgba(195, 148, 41, 0.081);
}

.dark-mode #page_galerie .titre h2,
.dark-mode #page_galerie .titre p,
.dark-mode #page_galerie .liste .item .inner .icon,
.dark-mode #page_galerie .liste .item .caption h2 {
    color: yellow !important;
}

.dark-mode #footer .section_two .content .items .image .annuaire section .links,
.dark-mode #footer .section_one .content .items .item.gouv_actu input {
    border: 1px solid yellow !important;
}

.dark-mode #footer .section_two .content .links_gouv {
    border-top: 1px solid yellow !important;
    border-bottom: 1px solid yellow !important;
}

.dark-mode #publication .items .item a {
    border-bottom: 2px solid yellow;
}

.dark-mode #dossiers_liste .items .inner .trait {
    background-color: yellow !important;
}

.dark-mode #page_galerie .titre {
    background-color: rgb(34, 34, 34) !important;
    background: rgb(44, 44, 44) !important;
}

.dark-mode #page_galerie .liste .item .inner .icon {
    background-color: #000 !important;
    background: #000 !important;
}