.modal {
    position: absolute;
    display: none;
    flex-direction: row;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0.5;

}
.messaging{
    
}

/* ******************************************* ERROR ******************************** */

.error-background-modal{
    /* Arrière plan sombre partiellement oppaque pour mettre en valeur le modal */
    /* width 100% et height 100% */
    position : absolute;
    display : flex;
    flex-direction: row;
    z-index : 1001;
    top : 0;
    left : 0;
    width : 100%;
    height : 100%;
    background-color :  rgba(0,0,0,0.5);
}
.error-modal {
    /* modal centré max-width 50% et mini-width 400px */
    /* parent de 2 enfants : 1 img et 1 text de gauche à droite */
    position: absolute; /* Ajouté - positionnement absolu */
    background-color: white;
    display: flex;
    flex-direction: column;    
    z-index: 101;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    min-width: 400px;
    max-width: 50%;
    height: 50%;
    min-height: 220px;
    max-height: 50%;
    border-radius: 5px;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
    text-align: center;
    overflow: auto;
}
.error-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #f44336;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    height: 40px;
    padding-left: 40px;
}
.error-btn-close {
    display: flex;
    top: 0; /* Aligné au haut du parent */
    right: 0; /* Aligné à droite du parent */
    z-index: 102; /* Assure qu'il est au-dessus des autres éléments */
    background-color: transparent; /* Bouton transparent */
    border: none; /* Pas de bordure */
    font-size: 1.5em; /* Taille de la croix */
    cursor: pointer; /* Style du curseur */
    margin: 0 5px 0 0;
}

.error-content {
    padding: 0 10px;
    display: flex;
    flex-direction: row;
    height: 100%;
}
.error-img-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 10px;
    width: 100px;
}
.error-img-container img{
    width: 100%;
    height: auto;

}
.error-content p{
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    color: black;
    justify-content: center;
    align-items: start;
}
.error-footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #f44336;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    height: 40px;
}
.error-footer p{
    margin: 0;
}


