:root {
    --ink: #191d23;
    --ink-soft: #717884;
    --paper: #EFF1EC;
    --paper-raised: #FFFFFF;
    --message-blue: #5f68e1;
    --dark-msg-blue: #2552a5;
    --link-color: #005fe4;
    --lilac: #E8E3F5;
    --lilac-ink: #423B57;
    --gold: #D9B44A;
    --line: #2B3444;
    --font-body: 'Calibri', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: var(--paper);
    font-family: var(--font-body);
    color: var(--ink);
}

.app {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ---------- Sidebar ---------- */

#people {
    width: 280px;
    flex: 0 0 280px;
    background: var(--ink);
    color: #fff;
    padding: 28px 0 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px 24px;
    margin-bottom: -3vh;
}

.app-title__mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.app-title h1 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    letter-spacing: 0.01em;
}

.people-list {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 24px;
    gap: 2px;
}

.people-list1 {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 24px;
    gap: 2px;
}

.people-list2 {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 24px;
    gap: 2px;
}

.users {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.95rem;
    color: #D6DAE2;
}

.users1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.95rem;
    color: #D6DAE2;
}

.users2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.95rem;
    color: #D6DAE2;
}

.users:hover {
    background: rgba(255, 255, 255, 0.06);
}

.users1:hover {
    background: rgba(255, 255, 255, 0.06);
}

.users2:hover {
    background: rgba(255, 255, 255, 0.06);
}

.users--active {
    background: rgba(72, 138, 230, 0.14);
    color: #fff;
}

.users--active1 {
    background: rgba(72, 138, 230, 0.14);
    color: #fff;
}

.users--active2 {
    background: rgba(72, 138, 230, 0.14);
    color: #fff;
}

.users__avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--message-blue);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.users__avatar1 {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--message-blue);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.users__avatar2 {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--message-blue);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.users--active .users__avatar {
    background: var(--dark-msg-blue);
    color: var(--ink);
}

.users--active1 .users__avatar1 {
    background: var(--dark-msg-blue);
    color: var(--ink);
}

.users--active2 .users__avatar2 {
    background: var(--dark-msg-blue);
    color: var(--ink);
}

.users__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users__name1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users__name2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Chat area ---------- */

.chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 6vw;
    overflow-y: auto;
}

#erreur {
    color: #B3413E;
    font-size: 0.9rem;
    margin: 8px 8px 8px;
}

#erreur:empty {
    display: none;
}

#message-container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 55vw;
    width: 100%;
    flex: 1;
}

.self, .other {
    display: flex;
    max-width: 78%;
}

.self {
    align-self: flex-end;
    justify-content: flex-end;
}

.other {
    align-self: flex-start;
    justify-content: flex-start;
}

.msg {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 45vw;
}

.self .msg {
    background: var(--message-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.other .msg {
    background: var(--lilac);
    color: var(--lilac-ink);
    border-bottom-left-radius: 4px;
}

.msg p {
    margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .app {
        flex-direction: column;
    }

    #people {
        width: 100%;
        flex: 0 0 auto;
        max-height: 40vh;
        padding-top: 16px;
    }

    .chat {
        padding: 20px 5vw;
    }

    .self, .other {
        max-width: 90%;
    }
}

input {
  max-width: 200vw;
  padding: 0.875rem;
  font-size: 1rem;
  border: 1.5px solid #000;
  border-radius: 0.5rem;
  box-shadow: 2.5px 3px 0 #000;
  outline: none;
  transition: ease 0.25s;
}

input:focus {
  box-shadow: 5.5px 7px 0 black;
}
.input {
  max-width: 200vw;
  padding: 0.9rem;
  font-size: 1rem;
  border: 1.5px solid #000;
  border-radius: 0.5rem;
  box-shadow: 2.5px 3px 0 #000;
  outline: none;
  transition: ease 0.25s;
}

.input:focus {
  box-shadow: 5.5px 7px 0 black;
}


* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: var(--paper);
    font-family: var(--font-body);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.all {
    background: #fff;
    padding: 2vw 1.5vw;
    border-radius: 2px;
    box-shadow: 0 1vw 2vw rgba(27, 36, 48, 0.08);
    width: 300px;
    text-align: center;
}

.all h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
    margin: 0 0 1vw;
}

.creds {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
}


.submit {
    margin: 0.5vw 0 0;
    padding: 0.5vw 0.6vw;
    background: var(--message-blue);
    color: #fff;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.submit:hover {
    background: var(--dark-msg-blue);
}

a {
    display: inline-block;
    margin-top: 1vw;
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-decoration: none;
}

a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

#profile-name {
    position: absolute;
    text-align: center;
    top: 10%;
}

#reste{
    display: flex;
}

textarea {
    margin-top: -2vh;
    width: 213%;
    height: 37vh;
    border: 3px solid #11122b;
    font-size: 1.5rem;
    font-family: inherit;
    color: inherit;
    padding: 1.5rem 2rem;
    transition: all 0.3s;
}

#message-bar {
    list-style: none;
    margin: 0;
    padding: 1vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
    flex: 1;
    height: 6vh;
}




#ctxMenu{
    display:none;
    z-index:100;
}
menu {
    position:absolute;
    display:block;
    left:0px;
    top:0px;
    height:20px;
    width:20px;
    padding:0;
    margin:0;
    border:1px solid;
    background-color:white;
    font-weight:normal;
    white-space:nowrap;
}
menu:hover{
    background-color:#eef;
    font-weight:bold;
}
menu:hover > menu{
    display:block;
}
menu > menu{
    display:none;
    position:relative;
    top:-20px;
    left:100%;
    width:55px;
}
menu[title]:before{
    content:attr(title);
}
menu:not([title]):before{
    content:"\2630";
}
