:root {
    --zen-green: #2d5a27;
    --zen-brown: #5d4037;
    --zen-beige: #f5f5dc;
    --zen-white: #ffffff;
    --zen-ink: #212121;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
    background-image: url('images/Chene.jpeg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--zen-ink);
    line-height: 1.6;
}

/* header-container est transparent au layout flex du header */
.header-container {
    display: contents;
}

header {
    position: relative;
    z-index: 1;
    background: rgba(45, 90, 39, 0.92);
    color: #fff;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(6px);
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.header-titles {
    text-align: left;
}

.header-titles .chinese-text,
.header-titles span {
    display: block;
    font-family: "KaiTi", "STKaiti", serif;
    font-size: 1rem;
    opacity: .8;
    letter-spacing: .05em;
}

.header-titles h1 {
    margin: 0;
    font-size: 1.25rem;
    font-family: Georgia, serif;
    font-weight: 600;
}

nav {
    position: relative;
    z-index: 1;
    background: rgba(93, 64, 55, 0.88);
    padding: .55rem 1rem;
    display: flex;
    gap: 1.5rem;
    backdrop-filter: blur(4px);
}

nav a {
    color: #f5f5dc;
    text-decoration: none;
    font-size: .92rem;
    opacity: .85;
    transition: opacity .2s;
}

nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

main {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 2.5rem auto;
    padding: 0 1rem 3rem;
}

section, .card-section {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.22);
    border: 1px solid rgba(45,90,39,0.12);
}

h2 {
    color: var(--zen-green);
    font-size: 1.35rem;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e8e0d5;
}

h3 {
    color: var(--zen-brown);
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

p {
    color: #333;
    line-height: 1.7;
    margin-bottom: .6rem;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.22);
    border: 1px solid rgba(45,90,39,0.12);
}

.card h2 {
    color: var(--zen-green);
    font-size: 1.35rem;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e8e0d5;
}

.card h3 {
    color: var(--zen-green);
    margin-bottom: .4rem;
}

.card p { color: #333; line-height: 1.7; margin-bottom: .6rem; }

blockquote {
    border-left: 3px solid var(--zen-green);
    margin: 1rem 0;
    padding: .6rem 1rem;
    background: rgba(45,90,39,0.06);
    border-radius: 0 6px 6px 0;
    color: #444;
    font-style: italic;
}

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

.tag {
    background: rgba(45,90,39,0.12);
    color: var(--zen-green);
    border-radius: 20px;
    padding: .25rem .8rem;
    font-size: .82rem;
    font-weight: 600;
}

.chinese-text {
    font-family: "KaiTi", "STKaiti", serif;
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.2rem;
    background: rgba(45, 90, 39, 0.88);
    color: rgba(255,255,255,0.8);
    font-size: .85rem;
    backdrop-filter: blur(4px);
}

@media (max-width: 600px) {
    header { padding: 1rem; gap: .8rem; }
    main { padding: 0 .5rem 2rem; }
    section, .card { padding: 1.2rem 1rem; }
}
