/* doc-project | public/assets/css/layout.css | structure header, main, footer, navigation auth et messages flash */
.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem var(--space-page);
}

.site-header {
    background: rgba(255, 248, 241, 0.92);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.site-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.7rem;
    font-weight: 850;
    text-decoration: none;
}

.site-brand__mark {
    align-items: center;
    background: var(--color-primary);
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 0.8rem;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.site-nav,
.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.site-nav a,
.site-footer a {
    color: var(--color-muted);
    font-weight: 700;
    text-decoration: none;
}

.site-main {
    padding: var(--space-page);
}

.site-footer {
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
}

.nav-logout {
    margin: 0;
}

.nav-logout button {
    background: transparent;
    border: 0;
    color: var(--color-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.flash {
    border-radius: var(--radius-md);
    font-weight: 800;
    margin: 0 auto 1rem;
    max-width: 920px;
    padding: 1rem;
}

.flash--success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.flash--error {
    background: #ffe3e3;
    color: #8a1f1f;
}

.flash--warning {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}