.messages-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    max-height: 40vh;
    overflow-y: scroll;
    max-width: 100%;
}

@media screen and (min-width: 1280px) {
    .messages-list {
        padding: 15px;
        max-width: 550px;
        max-height: 60vh;
    }
}

.message-item__close {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    height: 27px;
    width: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    font-size: 27px;
}

.message-item__close:hover {
    cursor: pointer;
}

.messages-list__item {
    position: relative;
    border-radius: 4px;
    padding: 24px;
    /*background: var(--secondary-gris-perle);*/
    background: var(--secondary-bleu-ciel);
}

.messages-list__item a {
    color: var(--primary-noir);
}

.messages-list__item a:hover {
    color: var(--primary-noir);
}

.messages-list__item.messages--error {
    background: var(--secondary-rose);
}

.messages-list__item.messages--success {
    background: var(--secondary-vert-pomme);
}

.messages-list__item.messages--warning {
    background: var(--secondary-jaune-formation);
}
