/* ============================================
   Rental management landing page
   (/gestion-locative-particulier)
   Uses the shared design tokens from base.css.
   Reading page with one card grid: the text column is capped for legibility,
   the grid is allowed the full container width.
   ============================================ */

.rm-page {
    max-width: 900px;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */

.rm-hero {
    text-align: center;
    margin-bottom: var(--pm-space-8);
}

.rm-hero h1 {
    color: var(--pm-dark);
    font-weight: 700;
    margin-bottom: var(--pm-space-4);
}

.rm-hero__lead {
    color: var(--pm-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

/* ----------------------------------------
   Sections
   ---------------------------------------- */

.rm-section {
    margin-bottom: var(--pm-space-8);
}

.rm-section h2 {
    color: var(--pm-dark);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    padding-bottom: var(--pm-space-3);
    margin-bottom: var(--pm-space-4);
    border-bottom: 1.5px solid var(--pm-border-light, #dee2e6);
}

.rm-section p {
    color: var(--pm-dark);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--pm-space-4);
}

.rm-section a {
    color: var(--pm-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rm-list {
    margin-bottom: var(--pm-space-4);
    padding-left: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.rm-list li {
    margin-bottom: var(--pm-space-2);
}

/* ----------------------------------------
   Task cards
   ---------------------------------------- */

.rm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--pm-space-5);
    margin-bottom: var(--pm-space-5);
}

.rm-card {
    background: var(--pm-surface-1, #fff);
    border: 1.5px solid var(--pm-border-light, #dee2e6);
    border-radius: var(--pm-radius-lg);
    padding: var(--pm-space-5);
    transition: border-color 150ms ease;
}

.rm-card:hover {
    border-color: var(--pm-primary);
}

.rm-card h3 {
    display: flex;
    align-items: center;
    gap: var(--pm-space-3);
    color: var(--pm-dark);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--pm-space-3);
}

.rm-card h3 i {
    color: var(--pm-primary);
    font-size: 0.9375rem;
}

.rm-card p {
    color: var(--pm-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
}

.rm-more {
    text-align: center;
}

/* ----------------------------------------
   CTA
   ---------------------------------------- */

.rm-cta {
    background: var(--pm-surface-2, #f8f9fa);
    border: 1.5px solid var(--pm-border-light, #dee2e6);
    border-radius: var(--pm-radius-lg);
    padding: var(--pm-space-6);
    text-align: center;
}

.rm-cta h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--pm-space-3);
}

.rm-cta p {
    color: var(--pm-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto var(--pm-space-5);
}

.rm-cta .pm-btn {
    margin: 0 var(--pm-space-2) var(--pm-space-2);
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */

@media (max-width: 576px) {
    .rm-grid {
        grid-template-columns: 1fr;
    }

    .rm-section p,
    .rm-list {
        font-size: 1rem;
    }

    .rm-section h2 {
        font-size: 1.3125rem;
    }
}
