:root {
    --bg: #f4f6fb;
    --sidebar-bg: #ffffff;
    --primary: #5b6cff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: Inter, system-ui, sans-serif;
}

.ers-app {
    display: flex;
    height: 100vh;
}

.ers-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 16px;
}

.ers-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.ers-logo {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.ers-nav-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

    .ers-nav-item.active {
        background: var(--primary);
        color: white;
    }

.ers-content {
    flex: 1;
    padding: 24px;
}

/* Page publique */
.ers-public {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* ===== Page d'accueil ===== */

.ers-public {
    background: var(--bg);
    color: var(--text);
}

    .ers-public h1 {
        font-size: 2.4rem;
        font-weight: 600;
        margin-bottom: 16px;
    }

    .ers-public h2 {
        margin-top: 64px;
        margin-bottom: 16px;
        font-weight: 600;
    }

    .ers-public p {
        color: var(--muted);
        line-height: 1.7;
        max-width: 800px;
    }

    /* Blocs Gutenberg */
    .ers-public .wp-block-group {
        margin-bottom: 48px;
    }

    .ers-public .wp-block-columns {
        margin-top: 32px;
    }

    /* Boutons */
    .ers-public .wp-block-button__link {
        background: var(--primary);
        color: #fff;
        border-radius: 10px;
        padding: 12px 22px;
        font-weight: 500;
    }

        .ers-public .wp-block-button__link:hover {
            opacity: 0.9;
        }

    .ers-public .wp-block-group.is-style-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 32px;
    }

