/* ── Shell (sidebar + contenu) ─────────────────────────────────────── */
.partner-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Barre latérale ────────────────────────────────────────────────── */
.partner-sidebar {
    width: 256px;
    min-width: 256px;
    background: #1a2035;
    color: #c8cfe8;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand .brand-sub {
    font-size: .7rem;
    font-weight: 400;
    color: #7d8bb5;
    display: block;
    margin-top: .1rem;
}

.sidebar-nav {
    flex: 1;
    padding: .75rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1.25rem;
    color: #c8cfe8;
    text-decoration: none;
    border-radius: 0;
    transition: background .15s, color .15s;
    font-size: .9rem;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar-link .badge {
    margin-left: auto;
    font-size: .7rem;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Zone principale ───────────────────────────────────────────────── */
.partner-content {
    flex: 1;
    background: #f4f6fb;
    padding: 2rem;
    overflow-y: auto;
}

/* ── Page header ───────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* ── Cartes ─────────────────────────────────────────────────────────── */
.stat-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

/* ── Table ──────────────────────────────────────────────────────────── */
.table-partner {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.table-partner thead th {
    background: #f8f9fc;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem 1rem;
}

.table-partner tbody td {
    padding: .75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f1f5;
}

.table-partner tbody tr:last-child td {
    border-bottom: none;
}

.table-partner tbody tr:hover {
    background: #f8f9ff;
    cursor: pointer;
}

/* ── Badges statuts ─────────────────────────────────────────────────── */
.status-badge {
    padding: .25rem .65rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    display: inline-block;
}

/* ── Formulaire souscription ────────────────────────────────────────── */
.sub-form-card {
    background: #fff;
    border-radius: .75rem;
    padding: 2rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.sub-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

/* ── Login / Register ───────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2035 0%, #243056 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    padding: 2.5rem;
}

.auth-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a2035;
    text-align: center;
    margin-bottom: .25rem;
}

.auth-sub {
    text-align: center;
    color: #6b7280;
    font-size: .85rem;
    margin-bottom: 1.75rem;
}

/* ── Filtres ─────────────────────────────────────────────────────────── */
.filter-bar {
    background: #fff;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    margin-bottom: 1.25rem;
}

.notification-list {
    display: grid;
    gap: .75rem;
}

.notification-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.notification-row.is-unread {
    border-left: 4px solid #1d4ed8;
}

.notification-row.is-read {
    opacity: .74;
}

.notification-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 1.2rem;
}

.notification-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

.notification-main p {
    margin: .25rem 0 .45rem;
    color: #4b5563;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    color: #6b7280;
    font-size: .78rem;
}

.notification-actions {
    display: flex;
    gap: .4rem;
}

@media (max-width: 640px) {
    .notification-row {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .notification-actions {
        grid-column: 2;
    }
}
