#discussion {
    flex: 1;
    margin: 0.5rem auto;
    padding: 2rem 1rem 2rem 1rem;
    border-radius: 15px;
    width: calc(100% - 3rem);
    background-color: var(--fond2);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* zone de message */
#zoneMessages {
    max-height: 35vh;
    overflow: auto;
}

/* zone de saisie */
#discussion form {
    margin-top: 2rem;
    padding: 0.5rem;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    display: flex;
    align-items: center;
}

#discussion form textarea {
    flex: 1;
    width: 8rem;
    border: none;
    background: transparent;
    color: #000;
    font-size: 1rem;
    padding: 0.6rem;
}

#discussion form textarea::placeholder {
    color: #999;
}

#discussion button[type="image"] svg {
    fill: #000;
}

.message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    font-family: 'Lato', sans-serif;
}

.suggestion {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

/* décallage des suggestions */
.suggestion>* {
    animation-delay: 0.4s;
}

/* affichage en douceur */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invite {
    justify-content: end;
}

.invite>svg,
.hote>svg {
    border: 1.5px solid;
    border-radius: 50%;
    min-width: 44px;
    width: 44px;
    height: 44px;
}

.invite p,
.hote p {
    position: relative;
    max-width: 75%;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    min-width: 140px;
    line-height: 1.5;
    transition: background 0.3s;
    font-size: large;
    text-align: left;
}

.invite p {
    margin-right: 1rem;
    border: 1.5px solid;
    background: var(--fond3);
    color: var(--trait3);
}

.hote p {
    margin-left: 1rem;
    border: 1.5px solid;
    background: rgba(128, 128, 128, 0.05);
    color: inherit;
}

.invite em,
.hote em {
    letter-spacing: 0.07rem;
}

.hote em {
    padding-left: 1rem;
}

.quiMessage {
    display: block;
    font-size: smaller;
}

/* encoche message */
.invite p::before,
.hote p::before {
    content: "";
    position: absolute;
    top: calc(100% - 22px);
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.invite p::before {
    right: -16px;
    border-left-color: var(--trait1);
}

.hote p::before {
    left: -16px;
    border-right-color: var(--trait1);
}

/* indication message en préparation */
.messagePreparation {
    display: inline-flex;
    align-items: center;
}

.messagePreparation span {
    margin: 3px;
    width: 12px;
    height: 12px;
    background: #c4c8f0;
    color: inherit;
    border-radius: 50%;
    animation: blink 1.2s infinite ease-in-out;
}

.messagePreparation span:nth-child(2) {
    animation-delay: 0.2s;
}

.messagePreparation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0.2;
    }

    40% {
        opacity: 1;
    }
}