/* Structure générale */

body {
    background: var(--rsaff-bg);
    color: var(--rsaff-text);
}

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

/* Sidebar */

.rsaff-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--rsaff-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.rsaff-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 30px;
}

.rsaff-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--rsaff-primary);
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.rsaff-brand-name {
    font-size: 22px;
    font-weight: 700;
}

.rsaff-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rsaff-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.rsaff-nav-link:hover {
    background: #263447;
    color: white;
}

.rsaff-nav-link.active {
    background: #10b98120;
    color: #34d399;
}

/* Contenu principal */

.rsaff-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Navbar */

.rsaff-navbar {
    height: 76px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--rsaff-surface);
    border-bottom: 1px solid var(--rsaff-border);
}

.rsaff-navbar-title {
    font-size: 18px;
    font-weight: 700;
}

.rsaff-navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Zone centrale */

.rsaff-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px;
}

/* Navigation mobile */

.rsaff-mobile-nav {
    display: none;
}

/* Responsive */

@media (max-width: 991px) {

    .rsaff-sidebar {
        display: none;
    }

    .rsaff-navbar {
        height: 64px;
        min-height: 64px;
        padding: 0 16px;
    }

    .rsaff-content {
        padding: 20px 16px 100px;
    }

    .rsaff-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        align-items: center;
        justify-content: space-around;
        background: var(--rsaff-surface);
        border-top: 1px solid var(--rsaff-border);
        z-index: 1000;
    }

    .rsaff-mobile-nav a {
        color: var(--rsaff-muted);
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
    }

    .rsaff-mobile-add {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--rsaff-primary);
        color: white !important;
        border-radius: 14px;
        font-size: 28px !important;
        margin-top: -25px;
        box-shadow: 0 6px 20px #10b98140;
    }
}