/* Récupération de l'image de fond */
body {
    background-image: url('fond.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    /*font-family: 'Arial', sans-serif;*/
    display: flex;
    flex-direction: column;
    height: 100vh; /* Prendre toute la hauteur de l'écran */
}

h1 {
    text-align: center;
    color: white;
    margin-top: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Bloc 1 : Messages */
#bloc1 {
    flex: 70%; /* 70% de la hauteur de l'écran */
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 15px;
    font-size: 1.1em;
    max-width: 90%;
    margin: 10px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#lastlast {
    display: none;
}

/* Bloc 2 : Saisie du message */
#bloc2 {
    flex: 15%; /* 15% de la hauteur de l'écran */
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}
.message-form{
    text-align: center;
}
.message-input {
    background-color: transparent;
    text-align: center;
    width: 80%; /* 90% de la largeur de l'écran */
    backdrop-filter: blur(10px);
    height: 100px;
    padding: 10px;
    font-size: 1.2em;
    border-radius: 10px;
    border: none;
    color: black;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);*/
    resize: none;
    outline: none;
}

/* Bloc 3 : Boutons */
#bloc3 {
    flex: 15%; /* 15% de la hauteur de l'écran */
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.send-button, .exit-button {
    margin: 5px;
    width: 30%; /* 90% de la largeur de l'écran */
    padding: 15px;
    background-color: transparent;
    backdrop-filter: blur(1px);
    color: #007cad;
    font-size: 1.1em;
    border: 2px 2px 2px #007cad;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.send-button:hover {
    background-color: #007cad;
    color: white;
}

.exit-button {
    background-color: #f44336;
}

.exit-button:hover {
    background-color: #e53935;
}

/* Réactivité sur les petits écrans */
@media (max-width: 1000px) {
    /* Ajustement de la taille des éléments pour les petits écrans */
    /*h1 {*/
        /*font-size: 2em;*/
    /*}*/

    .message-input {
        width: 100%;
        height: 80px;
        font-size: 1em;
    }

    .send-button, .exit-button {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }
}

/*@media (max-width: 480px) {*/
    /* Ajustements supplémentaires pour les très petits écrans (comme les téléphones portables) */
    /*h1 {*/
        /*font-size: 1.5em;*/
    /*}*/

    /*.message-input {*/
        /*width: 100%;*/
        /*height: 60px;*/
    /*}*/

    /*.send-button, .exit-button {*/
        /*width: 100%;*/
        /*padding: 10px;*/
        /*font-size: 0.9em;*/
    /*}*/
/*}*/