/* Dark "chat du groupe" section of the home page. */
.chat-section {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}

.chat-section__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 69, .22), transparent 68%);
    filter: blur(70px);
    animation: mDrift2 25s ease-in-out infinite;
    pointer-events: none;
}

.chat-section__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 56px;
    align-items: center;
}

.chat-section__text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.chat-section .eyebrow {
    color: var(--coral-light);
}

.chat-section__lead {
    margin: 0;
    max-width: 480px;
    font: 400 18px/1.6 var(--font-sans);
    color: rgba(255, 255, 255, .78);
    text-wrap: pretty;
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    font: 600 13.5px/1 var(--font-sans);
}

/* Chat card: home-chat.js writes the messages one by one. */
.chat-card {
    width: 100%;
    max-width: 480px;
    min-height: 420px;
    justify-self: center;
    padding: 22px;
    border-radius: 28px;
    background: var(--paper);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.chat-card__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: bubbleIn .5s cubic-bezier(.2, .8, .2, 1) both;
}

.bubble-row.is-me {
    justify-content: flex-end;
}

.bubble-row__avatar {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    color: var(--white);
    font: 700 10.5px/30px var(--font-sans);
    text-align: center;
}

.bubble {
    max-width: 76%;
    padding: 11px 15px;
    border-radius: 15px 15px 15px 5px;
    background: var(--bubble-other);
    font: 400 15px/1.4 var(--font-sans);
}

.bubble-row.is-me .bubble {
    border-radius: 15px 15px 5px 15px;
    background: var(--ink);
    color: var(--white);
}

.chat-card__input {
    margin-top: 8px;
    height: 48px;
    padding: 0 6px 0 16px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    font: 400 14.5px/1 var(--font-sans);
    color: var(--placeholder);
}

.chat-card__send {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--coral);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 16px/1 var(--font-sans);
}
