/*
 * Conversations éphémères du Comptoir — étape 0121.
 */

.ephemeral-hero,
.ephemeral-forum-card,
.ephemeral-context,
.ephemeral-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--accent-color) 11%, transparent),
            transparent 65%
        ),
        var(--surface-color);
    box-shadow: var(--shadow-sm);
}

.ephemeral-hero,
.ephemeral-forum-card,
.ephemeral-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
}

.ephemeral-hero {
    margin-bottom: 1.5rem;
}

.ephemeral-hero h1,
.ephemeral-forum-card h2,
.ephemeral-card h3 {
    margin: 0.25rem 0 0.5rem;
}

.ephemeral-hero p,
.ephemeral-forum-card p,
.ephemeral-card p {
    margin-bottom: 0;
}

.ephemeral-forum-card {
    margin-bottom: 1rem;
}

.ephemeral-forum-card__actions {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 0.4rem;
}

.ephemeral-forum-card__count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.ephemeral-section {
    margin-top: 2rem;
}

.ephemeral-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.ephemeral-section__heading h2 {
    margin: 0.2rem 0 0;
}

.ephemeral-section__heading > p {
    max-width: 34rem;
    margin: 0;
    color: var(--text-muted);
    text-align: right;
}

.ephemeral-list {
    display: grid;
    gap: 0.85rem;
}

.ephemeral-card--archived {
    background: var(--surface-color);
    box-shadow: none;
}

.ephemeral-card h3 a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.ephemeral-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 1rem 0;
    padding: 1rem 1.25rem;
}

.ephemeral-context strong {
    color: var(--accent-color);
}

@media (max-width: 720px) {
    .ephemeral-hero,
    .ephemeral-forum-card,
    .ephemeral-card,
    .ephemeral-section__heading {
        align-items: stretch;
        flex-direction: column;
        gap: 0.9rem;
    }

    .ephemeral-forum-card__actions {
        justify-items: stretch;
    }

    .ephemeral-section__heading > p {
        text-align: left;
    }

    .ephemeral-hero .button,
    .ephemeral-forum-card .button,
    .ephemeral-card .button {
        width: 100%;
        box-sizing: border-box;
    }
}
