.quartiers-page {
    padding: 40px 0 80px;
}

.mi-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.quartiers-hero {
    margin-bottom: 32px;
}

.quartiers-hero__content {
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f5f1ea 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.quartiers-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.quartiers-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
}

.quartiers-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.88;
}

.quartiers-intro,
.quartiers-filters,
.quartiers-table-section,
.quartiers-profiles,
.quartiers-cta {
    margin-top: 28px;
}

.quartiers-intro__grid,
.quartiers-profiles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.quartiers-card,
.profile-card,
.quartiers-cta__box,
.quartiers-filters,
.quartiers-table-wrap {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.quartiers-card,
.profile-card {
    padding: 24px;
}

.quartiers-card h2,
.profile-card h3,
.quartiers-filters__header h2,
.quartiers-profiles h2,
.quartiers-cta__box h2 {
    margin-top: 0;
}

.quartiers-card p,
.profile-card p,
.quartiers-cta__box p {
    margin-bottom: 0;
    line-height: 1.7;
    opacity: 0.85;
}

.quartiers-filters {
    padding: 24px;
}

.quartiers-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.quartiers-reset {
    border: 0;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.8;
}

.quartiers-filters__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.filter-group select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    font-size: 15px;
}

.quartiers-table-wrap {
    overflow-x: auto;
    padding: 10px;
}

.quartiers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.quartiers-table th,
.quartiers-table td {
    padding: 16px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 15px;
    line-height: 1.55;
}

.quartiers-table th {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
}

.quartier-name {
    font-weight: 700;
    white-space: nowrap;
}

.quartiers-link {
    font-weight: 600;
    text-decoration: none;
}

.quartiers-empty {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff7f2;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.quartiers-cta__box {
    padding: 32px;
}

.quartiers-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.mi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mi-btn--primary {
    background: #111;
    color: #fff;
}

.mi-btn--secondary {
    background: #f3f0ea;
    color: #111;
}

.mi-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

@media (max-width: 1024px) {
    .quartiers-intro__grid,
    .quartiers-profiles__grid,
    .quartiers-filters__grid {
        grid-template-columns: 1fr;
    }

    .quartiers-hero__content {
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .mi-container {
        width: min(100% - 24px, 1280px);
    }

    .quartiers-page {
        padding: 24px 0 56px;
    }

    .quartiers-hero h1 {
        font-size: 34px;
    }

    .quartiers-hero p {
        font-size: 16px;
    }

    .quartiers-card,
    .profile-card,
    .quartiers-filters,
    .quartiers-cta__box {
        padding: 20px;
    }
}