/* Composants SCI conservés ; le style général est défini dans app.css et public.css. */
.partner-callout_component{display:flex;align-items:flex-start;gap:16px;background:var(--color-brand-light);border:1px solid #d4e3e8;border-radius:var(--radius);padding:24px;margin-bottom:24px}.partner-callout_component strong{font-size:15px;font-weight:600}.partner-callout_component p{font-size:13px;line-height:1.7;color:#42585f;margin-top:8px}.partner-callout_icon{font-size:28px;color:var(--color-brand-dark)}.partner-group_component{padding:24px;margin-bottom:24px;min-width:0}.partner-totals_component{display:grid;grid-template-columns:1fr 1fr auto;gap:24px;padding:24px;background:#f5fafb;border-radius:12px;margin:24px 0}.partner-totals_component span{display:block;font-size:13px;color:var(--color-muted)}.partner-totals_component strong{display:block;font-size:28px;font-weight:600;letter-spacing:-.5px;margin-top:8px}.partner-totals_component p{font-size:13px;color:var(--color-muted);align-self:center}.partner-metrics_component{grid-template-columns:repeat(3,minmax(0,1fr))}.partner-layout_component{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:24px;align-items:start}.partner-statement_component,.partner-entry_component{padding:24px;min-width:0}.partner-entry_component .form_component{gap:16px}.partner-entry_component h2{margin-bottom:12px}.partner-entry_component label{font-size:13px;font-weight:600}.partner-entry_component .helptext{font-size:13px}.partner-entry_component .errorlist{font-size:13px}.partner-statement_component .table_component td{padding:16px 12px}.partner-statement_component .table_component th{padding:14px 12px}.partner-statement_component .table_component{min-width:660px}.partner-statement_component .privacy_note{line-height:1.7}.partner-statement_component details{margin-top:8px}.partner-statement_component .stack_form{padding:12px;background:#f5fafb;border-radius:12px}.partner-statement_component .stack_form label{display:grid;gap:6px}
@media(max-width:1100px){.partner-layout_component{grid-template-columns:1fr}.partner-entry_component{max-width:760px;width:100%}}
@media(max-width:850px){.partner-totals_component{grid-template-columns:1fr 1fr}.partner-totals_component p{grid-column:1/-1}.partner-totals_component strong{font-size:24px}.partner-metrics_component{grid-template-columns:1fr}}
@media(max-width:560px){.partner-group_component,.partner-statement_component,.partner-entry_component{padding:16px}.partner-totals_component{padding:16px;gap:20px}.partner-totals_component strong{font-size:20px}.partner-callout_component{padding:16px;gap:12px}.partner-callout_component p{font-size:13px}.partner-callout_icon{font-size:24px}.partner-group_component .section_heading{align-items:flex-start;gap:16px;flex-wrap:wrap}.partner-group_component h2{font-size:17px}.partner-entry_component .form_component .button{white-space:normal}}

/* Gestion locative : composants partagés avec les espaces LMNP et SCI. */
.rental_grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:1rem}.rental_tile,.rental_body{padding:1.5rem}.rental_tile{display:flex;flex-direction:column;gap:.75rem;min-width:0;overflow-wrap:anywhere}.rental_tile h2{font-size:16px;margin:0}.rental_metadata{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;font-size:13px}.rental_metadata dt{color:var(--color-text-muted,#64748b)}.rental_metadata dd{margin:0;overflow-wrap:anywhere}.rental_preline{white-space:pre-wrap;overflow-wrap:anywhere}.margin-bottom-medium{margin-bottom:1.5rem}.rental_body article+article{border-top:1px solid #e5e9f2;margin-top:1rem;padding-top:1rem}.rental_body fieldset{min-width:0}.form_component textarea{width:100%;box-sizing:border-box}

.rental_tile>.badge{align-self:flex-start}

/* Navigation hiérarchisée, utilisable au clavier sans JavaScript. */
.nav_group { min-width: 0; }
.nav_group > summary { cursor: pointer; padding: .8rem .75rem; font-weight: 650; border-radius: .6rem; color: var(--text-primary, #26364b); }
.nav_group > summary:hover { background: #edf3fc; }
.nav_group > summary:focus-visible { outline: 2px solid #426bd5; outline-offset: 2px; }
.nav_sublist { display: grid; gap: .15rem; margin-left: .65rem; padding-left: .45rem; border-left: 1px solid #dce5f2; }
.nav_sublist .nav_link { font-size: 13px; padding: .65rem .6rem; }
.nav_sublist .nav_group > summary { font-size: 13px; }

/* Essai Apple : surfaces calmes, hiérarchie lisible et retour immédiat au toucher.
   Limité à l'application et à l'écran pour préserver le site public et l'impression. */
@media screen {
  body[data-design=apple] {
    --color-brand: #0066cc;
    --color-brand-dark: #004f9e;
    --color-brand-light: #e9f2ff;
    --color-text: #1d1d1f;
    --color-muted: #606068;
    --color-border: #e4e4e9;
    --color-bg: #f5f5f7;
    --radius: 18px;
    --shadow: 0 3px 16px #1d1d1f05, 0 1px 3px #1d1d1f03;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
  }
  [data-design=apple] h1 { letter-spacing: -.035em; line-height: 1.12; font-weight: 700; }
  [data-design=apple] h2 { font-size: 17px; letter-spacing: -.02em; }
  [data-design=apple] h3 { letter-spacing: -.015em; }
  [data-design=apple] .sidebar_component {
    background: #ededf1f2;
    border-right-color: #dcdce3;
    padding-top: 2rem;
    backdrop-filter: blur(20px) saturate(130%);
  }
  [data-design=apple] .brand_mark { border-radius: .7rem; }
  [data-design=apple] .workspace_component {
    background: #ffffffa6;
    border-color: #ffffff;
    border-radius: 1rem;
    margin: 1.8rem 0 1rem;
  }
  [data-design=apple] .workspace_avatar { background: var(--color-brand-light); border: 0; border-radius: .65rem; }
  [data-design=apple] .sci-select_component { padding: .8rem .4rem 1.4rem; gap: .6rem; }
  [data-design=apple] .sci-select_component label { font-size: 13px; color: var(--color-muted); }
  [data-design=apple] .sci-select_component small { color: var(--color-muted); line-height: 1.5; }
  [data-design=apple] .nav_link,
  [data-design=apple] .nav_group > summary {
    min-height: 2.85rem;
    border-radius: .75rem;
    font-size: 13px;
    color: #42424a;
    transition: background-color 140ms ease, color 140ms ease;
  }
  [data-design=apple] .nav_group > summary { font-weight: 600; }
  [data-design=apple] .nav_sublist { border-left-color: #d4d4dc; }
  [data-design=apple] .nav_sublist .nav_link { font-size: 13px; }
  [data-design=apple] .nav_link:hover,
  [data-design=apple] .nav_group > summary:hover { background: #ffffffb3; }
  [data-design=apple] .nav_link.is-active {
    background: var(--color-brand);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 5px #0066cc1a;
  }
  [data-design=apple] .topbar_component {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f5f5f7e8;
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 0;
    box-shadow: 0 6px 18px #1d1d1f04;
    font-size: 13px;
  }
  [data-design=apple] .topbar_component strong { font-weight: 600; }
  [data-design=apple] .main_component { padding-top: 2.8rem; }
  [data-design=apple] .page_heading { margin-bottom: 2rem; }
  [data-design=apple] .page_heading .text-color-muted { font-size: 13px; }
  [data-design=apple] .eyebrow { font-size: 13px; letter-spacing: .09em; }
  [data-design=apple] .button {
    min-height: 2.85rem;
    border-radius: .8rem;
    padding: .65rem 1.1rem;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 140ms ease, transform 100ms ease-out;
  }
  [data-design=apple] .button.is-secondary { color: #414149; background: #fff; border-color: #dcdce3; }
  [data-design=apple] .button.is-secondary:hover { background: #f0f0f5; color: var(--color-brand-dark); }
  [data-design=apple] .button.is-small { min-height: 2.5rem; font-size: 13px; padding: .5rem .8rem; }
  [data-design=apple] .button.is-icon { min-height: 2.85rem; width: 2.85rem; padding: .5rem; }
  [data-design=apple] .button:active { transform: scale(.97); transition-duration: 0ms; }
  [data-design=apple] .nav_link:active,
  [data-design=apple] .nav_group > summary:active { background: #d8e5f6; color: #004f9e; transition-duration: 0ms; }
  [data-design=apple] :focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }
  [data-design=apple] input:not([type=checkbox]):not([type=radio]),
  [data-design=apple] select,
  [data-design=apple] textarea { border-color: #d5d5dd; border-radius: .7rem; min-height: 2.7rem; }
  [data-design=apple] .filter_component { border-radius: 1rem; padding: 1rem 1.2rem; gap: 1rem; box-shadow: var(--shadow); }
  [data-design=apple] .filter_component label,
  [data-design=apple] .filter_component select,
  [data-design=apple] .filter_component input { font-size: 13px; }
  [data-design=apple] .metric_component { padding: 1.6rem; }
  [data-design=apple] .metric_label { font-size: 13px; color: var(--color-muted); }
  [data-design=apple] .metric_value { font-weight: 700; letter-spacing: -.035em; white-space: normal; overflow-wrap: anywhere; }
  [data-design=apple] .metric_caption { font-size: 13px; line-height: 1.5; }
  [data-design=apple] .card_heading { padding: 1.6rem; }
  [data-design=apple] .table_component { font-size: 13px; }
  [data-design=apple] .table_component thead { background: #f5f5f7; color: var(--color-muted); font-size: 13px; }
  [data-design=apple] .table_component tbody tr:hover { background: #f5f8fc; }
  [data-design=apple] .trial_component { background: #ffffffa6; border-color: #fff; border-radius: 1rem; }
  [data-design=apple] .user_component { border-top-color: #d4d4dc; }
  [data-design=apple] .auth_card { border-radius: 1.5rem; box-shadow: var(--shadow); }
  [data-design=apple] .text-link { color: var(--color-brand); }
}
@media screen and (max-width: 1150px) {
  [data-design=apple] .metric_component { padding: 1.1rem; }
  [data-design=apple] .metric_label { font-size: 13px; }
}
@media screen and (max-width: 900px) {
  [data-design=apple] .sidebar_component { background: #ededf1; }
  [data-design=apple] .main_component { padding-top: 1.8rem; }
  [data-design=apple] .topbar_component > div:first-child { min-width: 0; }
  [data-design=apple] .topbar_component strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  [data-design=apple] .sidebar_close { top: .5rem; }
}
@media screen and (max-width: 650px) {
  [data-design=apple] .topbar_component > div:first-child > .text-color-muted,
  [data-design=apple] .breadcrumb_separator { display: none; }
  [data-design=apple] .topbar_component strong { font-size: 13px; }
  [data-design=apple] .metric_component { padding: 1.1rem; }
  [data-design=apple] .metric_caption { font-size: 13px; }
  [data-design=apple] .filter_component { padding: 1rem; }
}
/* Le retour de couleur reste présent quand l'utilisateur réduit le mouvement. */
@media screen and (prefers-reduced-motion: reduce) {
  [data-design=apple] .button:active { transform: none; }
}
@media screen and (prefers-reduced-transparency: reduce) {
  [data-design=apple] .sidebar_component { background: #ededf1; backdrop-filter: none; }
  [data-design=apple] .topbar_component { background: #f5f5f7; backdrop-filter: none; }
  [data-design=apple] .workspace_component,
  [data-design=apple] .trial_component { background: #fff; }
}
@media screen and (prefers-contrast: more) {
  body[data-design=apple] { --color-muted: #38383d; --color-border: #76767e; }
  [data-design=apple] .sidebar_component,
  [data-design=apple] .topbar_component { background: #fff; backdrop-filter: none; border: 1px solid #76767e; }
  [data-design=apple] .workspace_component,
  [data-design=apple] .trial_component,
  [data-design=apple] .button.is-secondary { background: #fff; border-color: #76767e; }
  [data-design=apple] input:not([type=checkbox]):not([type=radio]),
  [data-design=apple] select,
  [data-design=apple] textarea { border-color: #76767e; }
}

.sci-wizard_steps{display:flex;gap:1rem;list-style:none;padding:0;flex-wrap:wrap;margin-bottom:1.5rem}.sci-wizard_steps li{padding:.6rem 1rem;border-radius:.5rem;background:#edf2f6}.sci-wizard_steps [aria-current]{background:#0d5363;color:white}.sci-select_component{padding:1rem;display:grid;gap:.5rem}.sci-select_component select{width:100%;min-width:0}.sci-wizard_review{padding:1rem;background:#edf6fa;border-radius:.5rem;margin-bottom:1rem}

/* Menu propriétaire : rubriques directes et sous-menus natifs accessibles au clavier. */
@media screen {
  [data-design=apple] .sidebar_component.is-owner {
    width: 264px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-right-color: #e6ebf3;
    backdrop-filter: none;
  }
  .sidebar_component.is-owner ~ .main-wrapper { margin-left: 264px; }
  .sidebar_component.is-owner > .brand_component { min-height: 78px; padding: 18px 20px; border-bottom: 1px solid #edf0f6; flex-shrink: 0; }
  .sidebar_component.is-owner .brand_mark { background: #4268e5; box-shadow: 0 4px 10px #4268e520; }
  .sidebar_component.is-owner .brand_dot,
  .sidebar_component.is-owner .text-color-brand { color: #4268e5; }
  .sidebar_component.is-owner .workspace_component { background: #f7f9fd; border: 1px solid #e9edf5; border-radius: 10px; margin: 16px 16px 10px; padding: 10px; flex-shrink: 0; }
  .sidebar_component.is-owner .workspace_avatar { background: #eaf0ff; color: #4268e5; border-radius: 8px; }
  .sidebar_component.is-owner .sci-select_component { padding: 0 16px 14px; gap: 7px; flex-shrink: 0; }
  .sidebar_component.is-owner .sci-select_component label { font-size:13px; font-weight: 650; color: #69768e; }
  .sidebar_component.is-owner .sci-select_component select { min-height: 38px; padding: 8px; font-size: 13px; border: 1px solid #dfe5f0; border-radius: 9px; background: #fff; }
  .sidebar_component.is-owner .sci-select_component .button { justify-self: end; min-height: 28px; padding: 4px 10px; font-size:13px; }
  .sidebar_component.is-owner .nav_list { flex: 1; display: block; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 12px; margin: 0; scrollbar-width: thin; }
  .sidebar_component.is-owner .nav_label { margin: 12px 12px 10px; padding: 0; color: #7b879c; font-size:13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
  .sidebar_component.is-owner .nav_label.is-separated { border-top: 1px solid #e9edf5; margin-top: 18px; padding-top: 18px; }
  .sidebar_component.is-owner .nav_group { margin-bottom: 4px; }
  .sidebar_component.is-owner .nav_group > summary,
  .sidebar_component.is-owner .nav_list > .nav_link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #59677f; list-style: none; }
  .sidebar_component.is-owner .nav_group > summary::-webkit-details-marker { display: none; }
  .sidebar_component.is-owner .nav_group > summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-left: auto; flex-shrink: 0; }
  .sidebar_component.is-owner .nav_group[open] > summary::after { transform: rotate(45deg); }
  .sidebar_component.is-owner .nav_icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .sidebar_component.is-owner .nav_sublist { margin: 6px 0 10px 21px; padding-left: 12px; border-left-color: #e2e8f3; }
  .sidebar_component.is-owner .nav_sublist .nav_link { min-height: 36px; padding: 8px 10px; font-size: 13px; border-radius: 8px; color: #69768e; }
  .sidebar_component.is-owner .nav_link:hover,
  .sidebar_component.is-owner .nav_group > summary:hover { background: #f5f7fc; color: #304568; }
  .sidebar_component.is-owner .nav_link.is-active,
  .sidebar_component.is-owner .nav_group > summary.is-active { background: #edf2ff; color: #315bd6; font-weight: 650; box-shadow: none; }
  .sidebar_component.is-owner .nav_sublist .nav_link.is-active { background: transparent; color: #315bd6; }
  .sidebar_component.is-owner .nav_link:focus-visible,
  .sidebar_component.is-owner summary:focus-visible { outline: 2px solid #4268e5; outline-offset: -2px; }
  .sidebar_component.is-owner .sidebar_bottom { padding: 12px 16px 0; border-top: 1px solid #edf0f6; flex-shrink: 0; }
  .sidebar_component.is-owner .trial_component { padding: 10px 12px; margin: 0 0 10px; background: #f7f9fd; border: 1px solid #e9edf5; border-radius: 10px; }
  .sidebar_component.is-owner .trial_component p { font-size:13px; margin: 6px 0 8px; }
  .sidebar_component.is-owner .trial_component .button { min-height: 30px; padding: 5px 8px; font-size:13px; border-radius: 7px; }
  .sidebar_component.is-owner .user_component { padding: 12px 0; }
}
@media screen and (max-width: 900px) {
  [data-design=apple] .sidebar_component.is-owner { width: min(288px, calc(100vw - 24px)); }
  .sidebar_component.is-owner ~ .main-wrapper { margin-left: 0; }
  .sidebar_component.is-owner > .brand_component { padding-right: 48px; }
}
/* Les petits écrans peuvent faire défiler l'ensemble du menu sans masquer ses accès. */
@media screen and (max-height: 760px) {
  [data-design=apple] .sidebar_component.is-owner { overflow-y: auto; }
  .sidebar_component.is-owner .nav_list { flex: none; overflow: visible; }
}
@media screen and (prefers-contrast: more) {
  .sidebar_component.is-owner .nav_label,
  .sidebar_component.is-owner .nav_sublist .nav_link { color: #42424a; }
  .sidebar_component.is-owner .nav_group > summary.is-active,
  .sidebar_component.is-owner .nav_link.is-active { outline: 1px solid currentColor; outline-offset: -1px; }
}

/* Synthèse propriétaire : disposition et palette du modèle de gestion locative. */
@media screen {
  .dashboard_component { --summary-blue: #315ee8; --summary-muted: #758299; --summary-line: #e7ecf4; }
  .dashboard_component .page_heading { align-items: flex-start; flex-wrap: wrap; gap: 22px; margin-bottom: 23px; }
  .dashboard_component .summary_heading { flex: 1 1 430px; }
  .dashboard_component .eyebrow { color: var(--summary-blue); font-size:13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px; }
  .dashboard_component .page_heading h1 { font-size: 30px; line-height: 1.12; letter-spacing: -1.1px; margin-bottom: 9px; }
  .dashboard_component .page_heading .text-color-muted { color: var(--summary-muted); font-size: 13px; line-height: 1.6; margin-top: 0; }
  .dashboard_component .metrics_grid { gap: 15px; margin: 21px 0 20px; }
  .dashboard_component .metric_component { padding: 20px; min-height: 149px; border: 1px solid var(--summary-line); border-radius: 14px; background: #fff; box-shadow: 0 4px 16px #24345404; }
  .dashboard_component .metric_label { color: #6d7a8e; font-size: 13px; font-weight: 650; gap: 8px; }
  .dashboard_component .metric_icon { width: 35px; height: 35px; border-radius: 10px; background: #f0f4ff; color: #4a6ce0; flex-shrink: 0; }
  .summary_icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dashboard_component .metric_value { margin: 13px 0 7px; color: #203253; font-size: 28px; font-weight: 750; letter-spacing: -.8px; }
  .dashboard_component .metric_caption { margin: 0; color: var(--summary-muted); font-size:13px; line-height: 1.6; }
  .summary_success { color: #218365; }
  .summary_alert { color: #bd4858; }
  .dashboard_component .dashboard_grid { grid-template-columns: minmax(0,1.6fr) minmax(290px,1fr); align-items: start; gap: 18px; }
  .dashboard_component .card_component { border: 1px solid var(--summary-line); border-radius: 14px; box-shadow: 0 4px 16px #24345404; }
  .summary_chart-card, .summary_tasks-card { padding: 23px; min-width: 0; }
  .summary_section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
  .dashboard_component .summary_section-heading h2 { font-size: 16px; letter-spacing: -.3px; margin: 0; }
  .summary_section-heading p { color: var(--summary-muted); font-size: 13px; margin-top: 5px; }
  .summary_section-heading .text-link { color: var(--summary-blue); font-size: 13px; white-space: nowrap; }
  .summary_legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--summary-muted); font-size:13px; }
  .summary_legend span { display: flex; align-items: center; gap: 5px; }
  .summary_legend i { width: 8px; height: 8px; border-radius: 3px; background: #4e72e9; }
  .summary_legend .is-muted { background: #dae4fb; }
  .summary_chart { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: end; gap: 12px; width: 100%; height: 206px; }
  .summary_chart-month { min-width: 0; text-align: center; }
  .summary_chart-pair { height: 175px; border-bottom: 1px solid var(--summary-line); }
  .summary_chart-pair svg { display: block; width: 100%; max-width: 60px; height: 175px; margin-inline: auto; }
  .summary_bar { fill: #4e72e9; }
  .summary_bar.is-muted { fill: #dae4fb; }
  .summary_chart-month > span { display: block; padding-top: 9px; color: var(--summary-muted); font-size:13px; }
  .summary_chart-caption { color: var(--summary-muted); font-size:13px; line-height: 1.6; margin-top: 12px; }
  .summary_quick-actions { border-top: 1px solid var(--summary-line); margin-top: 22px; padding-top: 20px; }
  .summary_quick-actions .summary_section-heading { margin-bottom: 14px; }
  .summary_quick-list { display: flex; flex-wrap: wrap; gap: 9px; }
  .summary_quick { display: inline-flex; align-items: center; gap: 8px; padding: 12px 13px; border: 1px solid var(--summary-line); border-radius: 10px; font-size: 13px; font-weight: 650; color: #41516b; }
  .summary_quick:hover { border-color: #b6c7f2; background: #f8faff; }
  .summary_task { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid #eef1f5; }
  .summary_task:last-child { border-bottom: 0; padding-bottom: 0; }
  .summary_task-icon { width: 35px; height: 35px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: #fff5e6; color: #ad7022; }
  .summary_task-icon.is-alert { background: #fff0f1; color: #bd4858; }
  .summary_task-icon.is-blue { background: #edf3ff; color: #4d70dd; }
  .summary_task-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .summary_task-copy strong { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 3px; }
  .summary_task-copy p { color: var(--summary-muted); font-size:13px; line-height: 1.5; }
  .summary_task-arrow { display: grid; place-items: center; width: 32px; min-height: 32px; flex-shrink: 0; border-radius: 8px; background: #f6f8fc; color: #536b99; }
  .summary_task-arrow:hover { background: #edf2ff; color: var(--summary-blue); }
}
@media screen and (max-width: 1150px) {
  .dashboard_component .dashboard_grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 650px) {
  .dashboard_component .page_heading h1 { font-size: 28px; }
  .dashboard_component .summary_heading { flex-basis: 100%; }
  .dashboard_component .metrics_grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dashboard_component .metric_component { padding: 14px; min-height: 140px; }
  .dashboard_component .metric_label { flex-wrap: wrap; gap: 6px; }
  .dashboard_component .metric_value { font-size: 24px; }
  .summary_chart-card, .summary_tasks-card { padding: 18px; }
  .summary_chart-card > .summary_section-heading { flex-wrap: wrap; }
  .summary_task-arrow { width: 44px; min-height: 44px; }
}
@media screen and (prefers-contrast: more) {
  .dashboard_component { --summary-muted: #42424a; --summary-line: #76767e; }
}

/* Les onglets restent disponibles sur toutes les pages d'une même rubrique. */
.section-tabs_component{display:flex;gap:1.8rem;border-bottom:1px solid var(--color-border);margin-bottom:2rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.section-tabs_link{display:block;flex-shrink:0;padding:.5rem 0 1rem;white-space:nowrap;font-size:13px;color:var(--color-muted);border-bottom:2px solid transparent}
.section-tabs_link:hover{color:var(--color-brand)}
.section-tabs_link[aria-current]{color:var(--color-brand);border-bottom-color:var(--color-brand);font-weight:650}
@media(max-width:650px){.section-tabs_component{gap:1.2rem;margin-bottom:1.5rem}.section-tabs_link{min-height:44px}}
@media print{.section-tabs_component{display:none}}

/* Le filtre d'entité est commun à toutes les pages du compte propriétaire. */
.entity-filter_component{display:flex;justify-content:flex-end;margin-bottom:1.5rem}
/* Sélecteur d'entité placé dans la barre supérieure. */
.topbar_actions{min-width:0}
.entity-filter_form.is-topbar{align-items:center;gap:6px;min-width:0}
.entity-filter_form.is-topbar [hidden]{display:none}
[data-design=apple] .entity-filter_form.is-topbar select{width:230px;max-width:100%;min-height:34px;padding:6px 10px;background:#fff;border:1px solid #dae2f0;border-radius:10px;font-size:13px;color:#203253}
[data-design=apple] .entity-filter_form.is-topbar .button{min-height:34px;padding:6px 10px}
@media(max-width:900px){.topbar_component>div:first-child>span{display:none}}
@media(max-width:650px){.topbar_actions{gap:8px!important}[data-design=apple] .entity-filter_form.is-topbar select{width:150px;font-size:16px}}
.entity-filter_form{display:flex;align-items:flex-end;gap:8px;max-width:100%}
.entity-filter_field{display:grid;gap:5px;min-width:0}
.entity-filter_field label{color:var(--color-muted);font-size:13px;font-weight:650;letter-spacing:.65px;text-transform:uppercase}
[data-design=apple] .entity-filter_field select{width:246px;max-width:100%;min-height:40px;padding:9px 12px;background:#fff;border:1px solid #dae2f0;border-radius:10px;font-size:13px;color:#203253}
[data-design=apple] .entity-filter_form .button{min-height:40px;font-size:13px;padding:9px 12px;border-radius:10px}
@media(max-width:650px){.entity-filter_form:not(.is-topbar){width:100%}.entity-filter_field{flex:1}[data-design=apple] .entity-filter_field select{width:100%;font-size:16px}}
@media print{.entity-filter_component,.entity-filter_form{display:none}}

.theme-toggle_icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle_icon.is-sun{display:none}
[data-theme=dark] .theme-toggle_icon.is-moon{display:none}
[data-theme=dark] .theme-toggle_icon.is-sun{display:block}
/* Les couleurs sombres restent limitées à l'écran ; l'impression conserve son fond clair. */
@media screen {
  :root[data-theme=dark]{color-scheme:dark}
  body[data-design=apple][data-theme=dark]{
    --color-brand:#93b8ff;--color-brand-dark:#bfd3ff;--color-brand-light:#243958;
    --color-text:#e5ecf7;--color-muted:#aab8cd;--color-border:#344258;--color-bg:#111827;
    --color-green:#8cdbb8;--color-orange:#ffd393;--shadow:0 3px 16px #00000020;
    color:var(--color-text);background:var(--color-bg);
  }
  body[data-theme=dark] .portfolio_component{--portfolio-ink:#e5ecf7;--portfolio-muted:#aab8cd;--portfolio-line:#344258}
  body[data-theme=dark] .dashboard_component{--summary-blue:#93b8ff;--summary-muted:#aab8cd;--summary-line:#344258}
  body[data-theme=dark] .sidebar_component,
  body[data-theme=dark] .sidebar_component.is-owner,
  body[data-theme=dark] .topbar_component{background:#172133;border-color:var(--color-border);backdrop-filter:none}
  body[data-theme=dark] .card_component,
  body[data-theme=dark] .metric_component,
  body[data-theme=dark] .portfolio_panel,
  body[data-theme=dark] .portfolio_metric,
  body[data-theme=dark] .property_card,
  body[data-theme=dark] .auth_card,
  body[data-theme=dark] .tenant_card,
  body[data-theme=dark] .wizard_panel,
  body[data-theme=dark] .accounts_identity,
  body[data-theme=dark] .accounts_panel,
  body[data-theme=dark] .accounts_metrics article{background:#1c293c;border-color:var(--color-border);color:var(--color-text)}
  body[data-theme=dark] .workspace_component,
  body[data-theme=dark] .trial_component,
  body[data-theme=dark] .sidebar_component.is-owner .workspace_component,
  body[data-theme=dark] .sidebar_component.is-owner .trial_component,
  body[data-theme=dark] .filter_component,
  body[data-theme=dark] .portfolio_filters,
  body[data-theme=dark] .portfolio_tabs,
  body[data-theme=dark] .property_visual,
  body[data-theme=dark] .partner-totals_component,
  body[data-theme=dark] .wizard_steps li,
  body[data-theme=dark] .definition_grid{background:#202e43;border-color:var(--color-border);color:var(--color-text)}
  body[data-theme=dark] input:not([type=checkbox]):not([type=radio]),
  body[data-theme=dark] select,
  body[data-theme=dark] textarea,
  body[data-theme=dark] .entity-filter_form.is-topbar select,
  body[data-theme=dark] .entity-filter_field select{background:#111c2d;border-color:#43536d;color:var(--color-text)}
  body[data-theme=dark] input::placeholder,
  body[data-theme=dark] textarea::placeholder{color:#92a1b8}
  body[data-theme=dark] .button{background:#255bc7;border-color:#255bc7;color:#fff}
  body[data-theme=dark] .button:hover{background:#326ddd;border-color:#326ddd;color:#fff}
  body[data-theme=dark] .button.is-secondary,
  body[data-theme=dark] .button.is-icon,
  body[data-theme=dark] .summary_quick,
  body[data-theme=dark] .summary_task-arrow{background:#25364e;border-color:#43536d;color:var(--color-text)}
  body[data-theme=dark] .button.is-secondary:hover,
  body[data-theme=dark] .button.is-icon:hover,
  body[data-theme=dark] .summary_quick:hover,
  body[data-theme=dark] .summary_task-arrow:hover{background:#324765;color:#bfd3ff}
  body[data-theme=dark] .sidebar_component.is-owner .nav_link,
  body[data-theme=dark] .nav_link{color:#b6c4d9}
  body[data-theme=dark] .nav_link:hover,
  body[data-theme=dark] .sidebar_component.is-owner .nav_link:hover{background:#25364e;color:#e5ecf7}
  body[data-theme=dark] .nav_link.is-active,
  body[data-theme=dark] .sidebar_component.is-owner .nav_link.is-active,
  body[data-theme=dark] .portfolio_tabs a[aria-current],
  body[data-theme=dark] .portfolio_form-nav a[aria-current]{background:#263f64;color:#bfd3ff;box-shadow:none}
  body[data-theme=dark] .workspace_avatar,
  body[data-theme=dark] .sidebar_component.is-owner .workspace_avatar,
  body[data-theme=dark] .metric_icon,
  body[data-theme=dark] .summary_task-icon.is-blue{background:#263f64;color:#b6ceff}
  body[data-theme=dark] .dashboard_component .metric_value{color:var(--color-text)}
  body[data-theme=dark] .dashboard_component .metric_label,
  body[data-theme=dark] .summary_task-copy p,
  body[data-theme=dark] .nav_label,
  body[data-theme=dark] .sidebar_component.is-owner .nav_label{color:var(--color-muted)}
  body[data-theme=dark] .sidebar_component.is-owner .brand_component,
  body[data-theme=dark] .sidebar_component.is-owner .sidebar_bottom,
  body[data-theme=dark] .user_component,
  body[data-theme=dark] .summary_task,
  body[data-theme=dark] table td,
  body[data-theme=dark] table th{border-color:var(--color-border)}
  body[data-theme=dark] .table_component thead,
  body[data-theme=dark] .portfolio_table thead,
  body[data-theme=dark] thead th{background:#202e43;color:var(--color-muted)}
  body[data-theme=dark] .table_component tbody tr:hover,
  body[data-theme=dark] .portfolio_table tbody tr:hover{background:#25364e}
  body[data-theme=dark] .portfolio_table tbody tr:hover td{background:#25364e}
  body[data-theme=dark] .eyebrow,
  body[data-theme=dark] .text-color-brand,
  body[data-theme=dark] .sidebar_component.is-owner .text-color-brand{color:var(--color-brand)}
  body[data-theme=dark] .secure_label,
  body[data-theme=dark] .sidebar_component.is-owner .trial_component p{color:var(--color-muted)}
  body[data-theme=dark] .badge,
  body[data-theme=dark] .badge.is-neutral,
  body[data-theme=dark] .badge.is-purple,
  body[data-theme=dark] .message_component{background:#263f64;color:#c7d9ff;border-color:#43536d}
  body[data-theme=dark] .badge.is-green,
  body[data-theme=dark] .message_component.success{background:#1b4137;color:#9be5c2}
  body[data-theme=dark] .badge.is-orange,
  body[data-theme=dark] .message_component.warning,
  body[data-theme=dark] .summary_task-icon{background:#443622;color:#ffd393}
  body[data-theme=dark] .message_component.error,
  body[data-theme=dark] .summary_task-icon.is-alert,
  body[data-theme=dark] .badge.is-negative{background:#482c3b;color:#ffb3c1}
  body[data-theme=dark] .summary_success{color:#8cdbb8}
  body[data-theme=dark] .summary_alert{color:#ffb3c1}
  body[data-theme=dark] .summary_bar{fill:#819fff}
  body[data-theme=dark] .summary_bar.is-muted{fill:#3b5279}
  body[data-theme=dark] .summary_legend i{background:#819fff}
  body[data-theme=dark] .summary_legend .is-muted{background:#3b5279}
}

/* ---------- Harmonisation des rubriques (novembre 2026) ----------
   Règles communes : petit titre gris en capitales, indicateurs lisibles,
   barres de filtres alignées, onglets défilants signalés sur mobile. */
@media screen {
  /* Petit titre au-dessus du titre de page : même couleur et même casse partout. */
  [data-design=apple] .eyebrow { text-transform: uppercase; color: var(--color-muted); }
  [data-design=apple] .dashboard_component .eyebrow { color: var(--color-muted); }
  [data-design=apple] .eyebrow a { color: inherit; }

  /* Indicateurs des listes : libellé et légende au niveau de ceux du tableau de bord. */
  [data-design=apple] .portfolio_metric p { font-size: 13px; font-weight: 600; color: var(--color-muted); }
  [data-design=apple] .portfolio_metric span,
  [data-design=apple] .accounts_metrics small { font-size: 13px; line-height: 1.5; }
  [data-design=apple] .accounts_metrics span { font-size: 13px; font-weight: 600; }

  /* Barres de filtres : recherche extensible, champs bordés, bouton en bout de ligne. */
  [data-design=apple] form.filter_component { justify-content: flex-start; }
  [data-design=apple] form.filter_component input[type=search] { flex: 1 1 260px; max-width: 480px; }
  [data-design=apple] form.filter_component > div { flex: 1 1 auto; }
  [data-design=apple] form.filter_component select { border-color: var(--color-border); }
  [data-design=apple] form.filter_component > .button:last-child { margin-left: auto; }

  /* Documents : lien de partage sous le statut, révocation sans flèche de dépliage. */
  .document_share-link { display: block; margin-top: .2rem; }
  .document_revoke > summary { list-style: none; cursor: pointer; }
  .document_revoke > summary::-webkit-details-marker { display: none; }

  /* Graphique sans données : un message plutôt qu'une zone vide. */
  .summary_chart-empty { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 12px; background: var(--color-bg); color: var(--color-muted); font-size: 13px; }
  .summary_chart.is-empty { display: none; }

  /* Onglets plus larges que l'écran : fondu à droite pour signaler le défilement. */
  @media (max-width: 900px) { .section-tabs_component, .accounting2_tabs {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    padding-right: 32px;
  } }

  @media (max-width: 650px) {
    /* Sélecteur d'entité compact : une ligne, sans intitulé visible. */
    .entity-filter_component { margin-bottom: 1rem; }
    .entity-filter_form:not(.is-topbar) { align-items: center; }
    .entity-filter_field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
}

/* ---------- Échelle typographique ----------
   Texte courant 14 px, secondaire 13 px minimum ; titres 17 / 20 / 24 / 28 px.
   Seuls les intitulés en capitales espacées descendent à 12 px : à cette casse, ils se lisent comme du 13 px. */
@media screen {
  [data-design=apple] .eyebrow,
  [data-design=apple] .nav_label,
  [data-design=apple] .entity-filter_field label,
  [data-design=apple] .portfolio_table th,
  [data-design=apple] .table_component th { font-size: 12px; }
}

/* Tailles par rôle sur les composants communs, pour garder une hiérarchie nette. */
@media screen {
  body[data-design=apple] { font-size: 14px; }
  /* Texte courant, commandes et onglets : 14 px. */
  body[data-design=apple] main .button,
  body[data-design=apple] main input:not([type=checkbox]):not([type=radio]),
  body[data-design=apple] main select,
  body[data-design=apple] main textarea,
  body[data-design=apple] .section-tabs_link,
  body[data-design=apple] .portfolio_tabs a,
  body[data-design=apple] .accounting2_tabs a,
  body[data-design=apple] .table_component td,
  body[data-design=apple] .portfolio_table td,
  body[data-design=apple] .accounts_table-wrap td,
  body[data-design=apple] .card_component p,
  body[data-design=apple] .text-link,
  body[data-design=apple] .nav_link { font-size: 14px; }
  /* Nom principal d'une ligne : 15 px. */
  body[data-design=apple] .portfolio_name,
  body[data-design=apple] .table_component td > strong:first-child,
  body[data-design=apple] .portfolio_table td > strong:first-child { font-size: 15px; }
  /* Secondaire : 13 px. */
  body[data-design=apple] main .button.is-small,
  body[data-design=apple] main label,
  body[data-design=apple] .portfolio_count,
  body[data-design=apple] .portfolio_reset,
  body[data-design=apple] .portfolio_table td small,
  body[data-design=apple] .table_component td small,
  body[data-design=apple] .portfolio_subtitle,
  body[data-design=apple] .helptext,
  body[data-design=apple] .badge,
  body[data-design=apple] .portfolio_status,
  body[data-design=apple] .metric_caption { font-size: 13px; }
  @media (max-width: 650px) {
    /* Champs à 16 px : évite le zoom automatique d'iOS. */
    body[data-design=apple] main input:not([type=checkbox]):not([type=radio]),
    body[data-design=apple] main select,
    body[data-design=apple] main textarea { font-size: 16px; }
  }
}

/* Titre de page identique dans toutes les rubriques. */
@media screen {
  body[data-design=apple] main h1,
  body[data-design=apple] .portfolio_heading h1,
  body[data-design=apple] .accounting2_heading h1,
  body[data-design=apple] .accounts_heading h1,
  body[data-design=apple] .dashboard_component h1 { font-size: 32px; }
  @media (max-width: 650px) {
    body[data-design=apple] main h1,
    body[data-design=apple] .portfolio_heading h1,
    body[data-design=apple] .accounting2_heading h1,
    body[data-design=apple] .accounts_heading h1,
    body[data-design=apple] .dashboard_component h1 { font-size: 26px; }
  }
}
