.alert-message{
    top: 0;
    position: fixed;
    display: flex;
    justify-content: center;
    width: 100%;
    transition: top 1s ease-in-out;
    pointer-events: none;  /* permet aux clics de passer à travers */
    z-index: 9999999;
}
.alert-message * {  /* AntiBOOSTRAP*/
    text-align: initial !important;
    box-sizing: initial !important;
}
.alert-content{
    z-index: 100000000;
    position: relative;
    max-height: 350px;
    flex-direction: column;
    display: flex;
    transition: top 0.5s ease-in-out;
    top: 0;
    pointer-events: auto;  /* permet aux clics sur cette div */
}

.moved {
    animation: fade2 1s forwards ease;
    overflow-y: auto;
    scrollbar-width: thin; /* "auto" ou "thin" */
    scrollbar-color: #888 #f1f1f1; /* couleur de la barre de défilement et couleur de la piste */
}
.moved::-webkit-scrollbar {
    width: 10px; /* Largeur de la barre de défilement */
}

.moved::-webkit-scrollbar-track {
    background: #f1f1f1; /* Couleur de fond de la piste de la barre de défilement */
}

.moved::-webkit-scrollbar-thumb {
    background: #888; /* Couleur de la barre de défilement elle-même */
}

.moved::-webkit-scrollbar-thumb:hover {
    background: #555; /* Couleur de la barre de défilement au survol */
}
.message {
    z-index: 100000000;
    position: relative;
    top: 0;
    display: flex;
    justify-content: center;
    transition: top 0.5s ease;
    width: 100%;
    animation: fade 1s forwards ease;
    opacity: 0;
}
.message-img{
    width: 64px;
    margin:20px;
    padding-left: 20px;
}
.message-container{
    margin-top: 10px ;
    padding-top: 0;
    width: 600px;
    min-height: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
}
.close-msg{
    position: absolute;
    right: 20px;
    top: 20px;
    width: 20px;
    cursor: pointer;
}
.message-container:hover{
    background: #c0c0c0;
    transition: all 0.5s;
}
.success{
    background:#2acb05;
    color: white;
}
.info{
    background:#1673ff;
    color: white;
}
.warning{
    background:#ffad16;
    color: white;
}
.error{
    background: #fc3838;
    color: white;
}
.margtop{
    margin: 0px 0 0 0;
}
.message-text{
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.loading-bar {
    width: 600px;
    height: 4px;
    background: grey;
    position: absolute;
    bottom: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
}

.loading-bar::before {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    background: blue;
    animation: loading 5s linear forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes loading {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}
@keyframes fade2 {
    0% {
     top: -75px;

    }
    100%{
        top: 15px;
    }
}

@keyframes fade {
    0% {
        opacity: 0;

    }
    100% {
        opacity: 1;
    }
}
.fadeOut {
    animation-name: fadeOut;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
@media screen and (max-width: 1000px) {
    .alert-content{
        width: 100%;
    }
    .message-container{
        margin-top: 10px ;
        padding-top: 0;
        width: 90%;
        min-width: 90%;
        min-height: 40px;
        border-radius: 5px;
        display: flex;
        justify-content: start;
        align-items: center;
        position: relative;
    }
    .loading-bar {
        width: 90%;
    }
    .message-img{
        padding: 0;
        margin: 20px 0 20px 20px;
    }
}