.journal-page {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.journal-header {
    margin-bottom: 20px;
}

.journal-header h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    color: #1b3a4d;
}

.journal-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

/* Zone d'écriture */
.journal-write-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}

.journal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.journal-form-top {
    display: flex;
    align-items: center;
}

.journal-date {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
    color: #334155;
    background: #f8fafc;
    font-family: inherit;
}

.journal-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    font-family: inherit;
    color: #1b3a4d;
    background: #fafcff;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.6;
    transition: border-color 0.15s;
}

.journal-textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: #fff;
}

.journal-form-actions {
    display: flex;
    justify-content: flex-end;
}

.journal-submit-btn {
    padding: 8px 20px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.journal-submit-btn:hover {
    background: #6d28d9;
}

/* Historique */
.journal-history {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.journal-entry {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border-left: 4px solid #a78bfa;
}

.journal-entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

.journal-entry-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6d28d9;
    text-transform: capitalize;
}

.journal-entry-author {
    font-size: 0.78rem;
    color: #94a3b8;
    font-style: italic;
}

.journal-entry-content {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.65;
    white-space: pre-wrap;
}

.journal-empty {
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    padding: 24px 0;
}

@media (max-width: 560px) {
    .journal-write-card {
        padding: 14px;
    }

    .journal-entry {
        padding: 14px;
    }
}
