/*------------------------------------------------------------------------------------------------------------------------------------
Styles du contenu des popups
------------------------------------------------------------------------------------------------------------------------------------*/



/* Style général des popup
-----------------------------------------------------------------------*/

#popup_list{
    position: fixed;
    z-index: 12;
    top: 3em;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1em;
    width: auto;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}


#popup_list .close_all_popup{
    display: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 0.9em;
}

#popup_list .close_all_popup.visible{
    display: block;
    margin-right: 2em;
}



.popup_alert{
    display: none;
}

.popup_alert:is(.error, .success){
    width: max-content;
    display:none;
}

.popup_alert.visible:is(.error, .success){
    display: flex;
    margin: 1em;
    animation: popupAnimation 0.5s ease-out forwards;
}

@keyframes popupAnimation {
    0%{
        transform: translateX(110%);
    }
    50%{
        transform: translateX(-5%);
    }
    100%{
        transform: translateX(0);
    }
}



.popup_alert.visible:is(.recap){
    display: flex;
}

.popup_alert:is(.error, .success) .popup_content{
    width: max-content;
    position: relative;
}

.popup_alert:is(.error, .success) .popup_content .content_container{
    width: 35em;
    max-width: 80vw;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2em;
    background: white;
}

.popup_alert:is(.error, .success) .popup_content .content_container>*{
    max-width: 100%;
}

.popup_alert.error .popup_content .content_container{
    background: #ffb0b0;
    color: #cb0303;
}

.popup_alert.success .popup_content .content_container,
.popup_alert.success .popup_content .closing.closing_cross>i{
    background: #b0d992;
    color: green;
}


.popup_alert:is(.error, .success) .popup_content .content_container .content{
    font-size:0.9em;
}


.popup_alert:is(.error, .success) .closing.closing_cross{
    width: 1em;
}

.popup_alert.success .popup_content .closing.closing_cross>i{
    background: green;
}

.popup_alert.error .popup_content .closing.closing_cross>i{
    background: #bd0707;
}


.popup_alert.success .popup_title{
    color: green;
}

.popup_alert.error .popup_title{
    color: #bd0707;
}

.popup_alert.success .popup_content .content_container .content{
    color: green;
}

.popup_alert.error .popup_content .content_container .content{
    color: #bd0707;
}




.popup_alert .popup_subtitle{
    margin: 1.5em 0;
    font-size: 0.9em;
    color: black;
}

.popup_alert .popup_title{
    font-size: 1.1em;
}






.popup_alert.recap{
    position: fixed;
    top:0%;
    left:0%;
    width: 100vw;
    height: 100vh;
    background: #00000080;
    display:none;
    z-index: 9;
    backdrop-filter: blur(2px);
}



.popup_alert.recap .popup_content{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    min-width: 25em;
    max-width: 90vw;
    min-height: 10em;
    max-height:60vh;
    overflow:auto;
    background: white;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}



.popup_alert.recap .popup_content .content_container{
    height: 100%;
    width:100%;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    padding:2em;
    margin:auto
}


.popup_alert.recap .popup_content .content_container>div{
    width: 100%;
}


.popup_alert.recap .popup_content .content_container .content{
    width: 100%;
    font-size:1.25em;
}




.popup_alert.recap .popup_title{
    width: 100%;
    font-size:1.25em;
    margin-bottom: 2rem;
}




.popup_alert.error .access_denied_text{
    color: #bd0707;
    font-size: 1.25em;
    width: 100%;
    text-align: center;
}



.popup_alert :is(.action_button, .cancel_button){
    margin-top: 2em;
    font-size: 0.9em;
}

