div#selectionContainer {
    position: fixed;
    display: flex;
    flex-direction: column ;
    width: 250px;
    height: 100vh;
    background-color: white;
    right: 0;
    top: calc(100% - 68px);
    z-index: 3000;
    box-shadow: 0px 0px 7px rgb(132, 132, 132);
    transition: all 0.5s;
}

div#selectionContainer.active {
    top: 0;
}


div#toogleSelection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex: 0 0 75px;
    border-bottom: 1px solid #CCC;
}

div#toogleSelection:hover {
    background-color: #EFEFEF;
    color: black;
}

div#selectionContainer.active div#toogleSelection i {
    transform: rotate(180deg);
}


div#toogleSelection span#selectCounter {
    font-size: 0.8em;
}


div#selectionContainer div#selectionImage {
    flex: 1;
    overflow: auto;
    display: grid;
    grid-template-rows: repeat(3, 30%);
    gap: 15px;
    padding-top: 15px;
}


div#selectionContainer div#selectionImage div.selectImage {
    display:flex;
    flex: 0;
    align-items: center;
    justify-content: center;
}

div#selectionContainer div#selectionImage div.selectImage div.selectImageContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 100%;
    background-color: #EFEFEF;
    height: 100%;
    padding: 2px;
    position: relative;

}

div#selectionContainer div#selectionImage div.selectImage div.selectImageContainer i {
    position: absolute;
    font-size: 15px;
    top: -10px;
    right: -10px;
    background-color: #e12f1d;
    color: white;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}


div#selectionContainer div#selectionImage div.selectImage div.selectImageContainer i:hover {
    transform: scale(1.2);
    background-color: #bc3324;
}


div#selectionContainer div#selectionImage div.selectImage div.selectImageContainer img {
    max-width: 100%;
    max-height: 100%;
}



div#selectionContainer div#selectionValidation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 75px;
}

span#btnVoter {
    display: flex;
    padding: 10px 30px;
    border-radius: 10px;
    background-color: rgb(28, 168, 28);
    color:white;
    cursor: pointer;
}


span#btnVoter:hover {
    background-color: rgb(6, 113, 6);
}








/*
*****************************
    Conteneur d'image
*****************************
*/
div#imgContainer {
    width: 80%;
    margin: 100px auto 50px auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 50px;
    grid-auto-rows: minmax(300px, auto);
    align-items: center;
    justify-items: center;
}

div#imgContainer div {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: all 0.5s;    
}

div#imgContainer div::after {
    position: absolute;
    display: flex;
    content: 'AGRANDIR';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    color: white; 
    font-size: 14px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
}

div#imgContainer div:hover {
    transform: scale(1.04);
    border-radius: 0px;
}

div#imgContainer div:hover::after {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}









/*
*****************************
    Modal Agrandi
*****************************
*/
dialog#dialoguePhotoOriginale {
    background-color: transparent;
    border: none !important;
    outline: none;
    width: 100%;
    padding: 0;
}

dialog#dialoguePhotoOriginale::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}
  


div#dialogContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    margin: auto;
    height: calc(100vh - 40px);
    overflow: hidden;
    position: relative;
}

div#dialogImageContent {
    max-height: 80%;
    max-width: 100%;
    position: relative;
}

div#dialogImageContent i{
    position: absolute;
    font-size: 15px;
    top: -10px;
    right: -10px;
    background-color: #e12f1d;
    color: white;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

div#dialogImageContent i:hover {
    transform: scale(1.2);
    background-color: #bc3324;
}

div#dialogImageContent img {
    max-height: 100%;
    max-width: 100%;
    box-shadow: 0px 0px 2px white;
    z-index: 1500;
}


dialog[open] {
    animation: fadein 0.5s ease-in forwards;
}
  
@keyframes fadein {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Bouton sous image */

span#selectImage {
    background-color: #2f86c8;
    color: white;
    cursor: pointer;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}


span#selectImage:hover {
    background-color: #0869b2;
}

span#imageSelected {
    background-color: #2e9d2c;
    color: white;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

span#fullSelectImage {
    background-color: rgb(255, 115, 0);
    color: white;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
    display: none;
}



@media  (max-width: 1300px) {
    div#imgContainer {
        width: 90%;
    }
}

@media (max-width: 992px) {
    
}

@media (max-width: 768px) {
    div#imgContainer {
        width: 95%;
        margin-bottom: 275px;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 25px;
        grid-auto-rows: minmax(100px, auto);
        align-items: center;
        justify-items: center;
    }
}

@media (max-width: 576px) {
    div#selectionContainer {
        width: 100%;
    }


    div#dialogImageContent i{
        right: 0px;
    }
  

}
