/**
 * Thème ResaPlus — charte claire violette.
 * Activé sur <html class="theme-resaplus">. L'accueil conserve la grille d'icônes.
 */
html.theme-resaplus {
  --rp-brand: #5850df;
  --rp-hover: #4338ca;
  --rp-dark: #3d36b8;
  --rp-deep: #312e81;
  --rp-ink: #1e1b4b;
  --rp-soft: #eeedfd;
  --rp-softer: #f6f5fe;
  --rp-line: #c9c6f5;
  --rp-rgb: 88, 80, 223;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #172136;
  --muted: #69758a;
  --brand: var(--rp-brand);
  --brand-light: rgba(var(--rp-rgb), 0.28);
  --brand-hover: rgba(var(--rp-rgb), 0.1);
  --dark: var(--rp-dark);
  --dark-mid: var(--rp-brand);
  --border: #e3e7ef;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(23, 33, 54, 0.06);
  --font: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  --board-font: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  --board-bg: #f6f8fc;
  --board-panel: #ffffff;
  --board-text: #172136;
  --board-muted: #69758a;
  --board-border: #e3e7ef;
  --board-accent: var(--rp-brand);
  --board-accent-soft: rgba(var(--rp-rgb), 0.12);
  --board-dark: var(--rp-ink);
  color-scheme: light;
}

html.theme-resaplus body {
  font-family: var(--font);
}

html.theme-resaplus a:not(.btn) {
  color: var(--rp-hover);
}

html.theme-resaplus a.btn--primary,
html.theme-resaplus a.btn--accent,
html.theme-resaplus .btn--primary,
html.theme-resaplus .btn--accent {
  background: var(--rp-brand);
  color: #fff;
  border-color: var(--rp-brand);
}

html.theme-resaplus a.btn--primary:hover,
html.theme-resaplus a.btn--accent:hover,
html.theme-resaplus .btn--primary:hover,
html.theme-resaplus .btn--accent:hover {
  color: #fff;
  text-decoration: none;
}

html.theme-resaplus a.btn--ghost,
html.theme-resaplus .btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #e3e7ef;
  box-shadow: none;
}

html.theme-resaplus a.btn--danger,
html.theme-resaplus .btn--danger {
  background: #fff;
  color: #b42318;
  border: 1px solid #fecaca;
}

html.theme-resaplus :focus-visible {
  outline: 3px solid #8e87ef;
  outline-offset: 2px;
}

html.theme-resaplus .btn {
  border-radius: 10px;
}

html.theme-resaplus .btn--primary {
  background: var(--rp-brand);
}

html.theme-resaplus .btn--primary:hover {
  filter: brightness(1.06);
}

html.theme-resaplus .alert--success {
  background: #eefdf4;
  border-color: #bbf7d0;
  color: #166534;
}

html.theme-resaplus .app-table th {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8791a4;
}

html.theme-resaplus .app-table tbody tr:hover {
  background: #f8f8ff;
}

html.theme-resaplus .note {
  background: #fff;
  border-radius: 14px;
}

html.theme-resaplus .ged-grant-fields .form-checkbox-group__option:has(input:checked) {
  background: rgba(var(--rp-rgb), 0.08);
}

/* Connexion */
html.theme-resaplus body.layout-auth,
html.theme-resaplus body.layout-auth.flotte-auth {
  background:
    radial-gradient(ellipse 90% 60% at 12% 8%, rgba(var(--rp-rgb), 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 92%, rgba(49, 46, 129, 0.06), transparent 50%),
    linear-gradient(165deg, #f7f8fd 0%, #eef0f8 48%, #e7eaf6 100%);
}

html.theme-resaplus .flotte-auth-card,
html.theme-resaplus .auth-card {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(23, 33, 54, 0.08);
}

/* Menu latéral */
html.theme-resaplus body.layout-sidebar.layout-sidebar--tapcv {
  --module-bg: #f6f8fc;
  --module-panel: #ffffff;
  --module-text: #172136;
  --module-muted: #69758a;
  --module-border: #e3e7ef;
  --sb-bg: #ffffff;
  --sb-text: #526078;
  --sb-muted: #8791a4;
  --sb-accent: var(--rp-brand);
  --sb-accent-soft: rgba(var(--rp-rgb), 0.12);
  --sb-active-bg: var(--rp-soft);
  --sb-dark: var(--rp-deep);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__nav {
  width: 248px;
  background: #fff;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__section {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link {
  min-height: 40px;
  border-left-width: 0;
  border-radius: 10px;
  color: #526078;
  font-weight: 500;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link:hover {
  background: var(--rp-softer);
  color: #172136;
  box-shadow: none;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link.is-active {
  background: var(--rp-soft);
  color: var(--rp-brand);
  box-shadow: inset 3px 0 var(--rp-brand);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link.is-active .sidebar-app__ico {
  color: var(--rp-brand);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link--bureau {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-left-width: 1px;
  box-shadow: none;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link--bureau:hover {
  background: var(--rp-softer);
  border-color: #d9d6f7;
  color: var(--rp-deep);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__bureau-tag {
  background: var(--rp-soft);
  color: var(--rp-brand);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__avatar,
html.theme-resaplus .board-hub__avatar {
  background: var(--rp-brand);
  color: #fff;
  border-color: transparent;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__search {
  border-radius: 10px;
  background-color: #f6f8fc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2394a0b3' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__search:focus {
  outline: 2px solid rgba(var(--rp-rgb), 0.25);
  border-color: var(--rp-brand);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__notif-bell:hover,
html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__notif-bell.is-active {
  border-color: rgba(var(--rp-rgb), 0.35);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__content .card,
html.theme-resaplus .sidebar-app__content .panel,
html.theme-resaplus .list-panel,
html.theme-resaplus .module-list-panel {
  border-radius: 14px;
}

/* Accueil : icônes des applications */
html.theme-resaplus .board-hub__topbar {
  background: #fff;
  border-bottom-color: #e3e7ef;
}

html.theme-resaplus .board-hero {
  background: #fff;
  border-color: #e3e7ef;
  border-radius: 14px;
  box-shadow: none;
}

html.theme-resaplus .board-hero::after {
  background: radial-gradient(circle, rgba(var(--rp-rgb), 0.14) 0%, transparent 70%);
}

html.theme-resaplus .board-hero__eyebrow {
  color: #94a3b8;
  letter-spacing: 0.08em;
}

html.theme-resaplus .board-hero__icon {
  border-radius: 12px;
  background: var(--rp-soft);
  color: var(--rp-brand);
  border-color: rgba(var(--rp-rgb), 0.18);
}

html.theme-resaplus .board-hub__section-title {
  letter-spacing: 0.08em;
  color: #94a3b8;
}

html.theme-resaplus .board-module-card {
  align-items: center;
  border-radius: 14px;
  box-shadow: none;
  padding: 16px 16px 16px 18px;
}

html.theme-resaplus .board-module-card::before {
  width: 0;
}

html.theme-resaplus .board-module-card:hover {
  border-color: color-mix(in srgb, var(--module-accent, var(--rp-brand)) 40%, #e3e7ef);
  box-shadow: 0 8px 24px rgba(23, 33, 54, 0.06);
}

html.theme-resaplus .board-module-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

html.theme-resaplus .board-module-card__label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

html.theme-resaplus .board-hub__organize-link {
  border-radius: 10px;
}

html.theme-resaplus .app-board-fab {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 33, 54, 0.1);
}

html.theme-resaplus .app-board-fab__icon {
  border-radius: 8px;
  background: var(--rp-soft);
  color: var(--rp-brand);
}

/* Chrome plus proche de la maquette : marque en ligne, boutons compacts, cartes plates */
html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__brand {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas: "mark name" "mark sub";
  column-gap: 10px;
  row-gap: 0;
  align-items: center;
  padding: 16px 16px 14px;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__brand-link {
  display: contents;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__brand-logo,
html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__brand-mark {
  grid-area: mark;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__brand-name {
  grid-area: name;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #172136;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__brand-sub {
  grid-area: sub;
  margin: 1px 0 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__top {
  min-height: 64px;
  background: #fff;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #172136;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__search {
  border: 0;
  background-color: transparent;
  box-shadow: none;
  width: min(420px, 42vw);
}

html.theme-resaplus .module-toolbar__actions .btn,
html.theme-resaplus .page-panel__head .btn,
html.theme-resaplus .immo-dash-intro .btn,
html.theme-resaplus .immo-empty-state .btn {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: none;
}

html.theme-resaplus .module-list-panel,
html.theme-resaplus .sidebar-app__content .card,
html.theme-resaplus .user-admin-edit-card {
  border-radius: 14px;
  box-shadow: none;
  background: #fff;
  border: 1px solid #e3e7ef;
}

html.theme-resaplus .module-list-panel .app-table th,
html.theme-resaplus .app-table th {
  background: #fff;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #eef1f6;
}

html.theme-resaplus .app-table td {
  border-bottom-color: #f1f4f9;
}

html.theme-resaplus .note,
html.theme-resaplus .site-legal-page-intro {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  color: #526078;
  box-shadow: none;
}

html.theme-resaplus .site-legal-page-intro strong {
  color: #172136;
}

html.theme-resaplus .site-legal-kpi {
  border-radius: 14px;
  box-shadow: none;
  border-color: #e3e7ef;
}

html.theme-resaplus .site-legal-kpi__value {
  color: #172136;
  font-weight: 700;
}

html.theme-resaplus .site-legal-kpi--link:hover {
  border-color: rgba(var(--rp-rgb), 0.35);
  box-shadow: 0 8px 24px rgba(23, 33, 54, 0.06);
}

html.theme-resaplus .site-legal-badge--main {
  background: var(--rp-soft);
  color: var(--rp-hover);
}

/* Gestion locative — portefeuille */
html.theme-resaplus body[data-module="portefeuille"] {
  --pine: var(--rp-hover);
  --pine-d: var(--rp-deep);
  --pine-soft: var(--rp-softer);
  --rose: var(--rp-brand);
  --focus: var(--rp-brand);
  --ink: #172136;
  --ink-2: #69758a;
  --line: #e3e7ef;
  --paper: #f6f8fc;
  --surface-2: #f8f8ff;
}

html.theme-resaplus body[data-module="portefeuille"] .res-banner {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  box-shadow: none;
}

html.theme-resaplus body[data-module="portefeuille"] .res-banner strong {
  color: #172136;
}

html.theme-resaplus body[data-module="portefeuille"] .gphotos-theme.is-on {
  background: var(--rp-soft);
  border-color: rgba(var(--rp-rgb), 0.35);
}

html.theme-resaplus body[data-module="portefeuille"] .gphotos-side,
html.theme-resaplus body[data-module="portefeuille"] .tbl {
  border-radius: 14px;
  box-shadow: none;
}

html.theme-resaplus body[data-module="portefeuille"] .solidbtn,
html.theme-resaplus body[data-module="portefeuille"] .iconbtn.primary,
html.theme-resaplus body[data-module="portefeuille"] .gport-lot-tab.on,
html.theme-resaplus body[data-module="portefeuille"] .preset.on {
  background: var(--rp-brand);
  border-color: var(--rp-brand);
  color: #fff;
}

html.theme-resaplus body[data-module="portefeuille"] .seg {
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  overflow: visible;
}

html.theme-resaplus body[data-module="portefeuille"] .seg button {
  border: 0;
  border-radius: 7px;
  color: #526078;
}

html.theme-resaplus body[data-module="portefeuille"] .seg button.on {
  background: var(--rp-soft);
  color: var(--rp-brand);
  font-weight: 600;
}

html.theme-resaplus body[data-module="portefeuille"] .minibtn {
  border-color: #d9d6f7;
  color: var(--rp-hover);
  background: var(--rp-softer);
}

html.theme-resaplus body[data-module="portefeuille"] .minibtn:hover {
  background: var(--rp-soft);
}

html.theme-resaplus body[data-module="portefeuille"] .trow.body.is-active,
html.theme-resaplus body[data-module="portefeuille"] .module-list-panel .app-table tbody tr.is-selected td {
  background: var(--rp-softer);
}

html.theme-resaplus body[data-module="portefeuille"] .trow.head {
  background: #fff;
  color: #94a3b8;
}

/* Prospection et suivi */
html.theme-resaplus body[data-module="locatif"] {
  --gloc-accent: var(--rp-brand);
  --gloc-accent-2: var(--rp-hover);
  --gloc-highlight: var(--rp-brand);
  --gloc-highlight-soft: rgba(var(--rp-rgb), 0.12);
  --gloc-ink: #172136;
  --gloc-ink-soft: #69758a;
  --gloc-line: #e3e7ef;
  --gloc-line-strong: #d5dbe6;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app table th {
  background: #f8f8ff;
  color: #8791a4;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .card,
html.theme-resaplus body[data-module="locatif"] .gloc-app .gloc-workspace-bar {
  border-radius: 14px;
  border-color: #e3e7ef;
  box-shadow: none;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .gloc-btn-primary,
html.theme-resaplus body[data-module="locatif"] .gloc-app .gloc-btn-terra,
html.theme-resaplus body[data-module="locatif"] .gloc-modal .gloc-btn-primary,
html.theme-resaplus body[data-module="locatif"] .gloc-modal .gloc-btn-terra {
  background: var(--rp-brand);
  color: #fff;
  border-radius: 8px;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .gloc-btn-danger,
html.theme-resaplus body[data-module="locatif"] .gloc-modal .gloc-btn-danger {
  background: #fff;
  color: #b42318;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .stat {
  box-shadow: none;
  border-color: #e3e7ef;
  border-radius: 14px;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .stat .n {
  color: #172136;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .field input:focus,
html.theme-resaplus body[data-module="locatif"] .gloc-app .field select:focus,
html.theme-resaplus body[data-module="locatif"] .gloc-app .field textarea:focus {
  border-color: var(--rp-brand);
  box-shadow: 0 0 0 3px rgba(var(--rp-rgb), 0.16);
}

/* Structure alignée sur la maquette : titre dans la page, menu plat, cartes sans ombre */
html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__main {
  background: #f6f8fc;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__top {
  background: transparent;
  border-bottom: 0;
  min-height: 0;
  padding-top: 22px;
  padding-bottom: 0;
  align-items: flex-end;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__title {
  font-family: Inter, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #172136;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__content {
  padding-top: 18px;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__search {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e3e7ef;
  background-color: #fff;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link {
  font-weight: 500;
  font-size: 14px;
  color: #526078;
  border-radius: 8px;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link--bureau {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-left: 3px solid var(--rp-brand);
  border-radius: 10px;
  box-shadow: none;
  color: var(--rp-deep);
  font-weight: 600;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link--bureau:hover {
  background: var(--rp-softer);
  border-color: var(--rp-brand);
  color: var(--rp-deep);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__link--bureau .sidebar-app__ico {
  color: var(--rp-brand);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__bureau-tag {
  display: inline-flex;
  background: var(--rp-soft);
  color: var(--rp-brand);
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__foot {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas: "avatar user" "logout logout";
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__avatar {
  grid-area: avatar;
  margin: 0;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__user {
  grid-area: user;
  margin: 0;
  min-width: 0;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__user strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__foot-link {
  grid-area: logout;
  justify-self: start;
  padding: 0;
  font-size: 12px;
  white-space: nowrap;
}

html.theme-resaplus .btn,
html.theme-resaplus body[data-module="locatif"] .gloc-app .gloc-btn,
html.theme-resaplus body[data-module="locatif"] .gloc-modal .gloc-btn {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

html.theme-resaplus #ws-delete,
html.theme-resaplus .gloc-workspace-bar .gloc-btn-danger,
html.theme-resaplus body[data-module="locatif"] .gloc-app .gloc-btn-danger.gloc-btn-sm {
  background: #fff;
  color: #334155;
  border: 1px solid #e3e7ef;
}

html.theme-resaplus #ws-delete:hover,
html.theme-resaplus .gloc-workspace-bar .gloc-btn-danger:hover {
  background: #f8f8ff;
  color: var(--rp-deep);
  border-color: #d9d6f7;
}

html.theme-resaplus body[data-module="locatif"] .sidebar-app__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.theme-resaplus body[data-module="locatif"] .gloc-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title tools"
    "content content";
  column-gap: 16px;
  align-items: end;
}

html.theme-resaplus body[data-module="locatif"] .gloc-topbar {
  grid-area: title;
  border: 0;
  margin: 0;
  padding: 0 0 18px;
}

html.theme-resaplus body[data-module="locatif"] .gloc-topbar h2,
html.theme-resaplus body[data-module="locatif"] .gloc-app .rep-group h4 {
  font-family: Inter, system-ui, sans-serif;
  color: #172136;
}

html.theme-resaplus body[data-module="locatif"] .gloc-topbar h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .rep-group h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

html.theme-resaplus body[data-module="locatif"] .gloc-workspace-bar {
  grid-area: tools;
  align-self: center;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  border: 0;
  justify-content: flex-end;
}

html.theme-resaplus body[data-module="locatif"] .gloc-content {
  grid-area: content;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .stat {
  box-shadow: none;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .stat .n {
  font-size: 28px;
  letter-spacing: -0.04em;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app table th {
  background: #fff;
  color: #94a3b8;
  font-weight: 600;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app tbody tr:hover {
  background: #f8f8ff;
}

html.theme-resaplus body[data-module="locatif"] .gloc-app .rep-comments td {
  background: #f8f8ff;
}

html.theme-resaplus body[data-module="locatif"] .gloc-modal .field label .req {
  color: var(--rp-brand);
}

html.theme-resaplus .board-hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 0 8px;
}

html.theme-resaplus .board-hero::after,
html.theme-resaplus .board-hero__icon {
  display: none;
}

html.theme-resaplus .board-hero__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

html.theme-resaplus .board-modules {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

html.theme-resaplus .board-module-card {
  flex-direction: column;
  align-items: flex-start;
  min-height: 138px;
  gap: 14px;
  padding: 16px;
}

html.theme-resaplus .board-module-card__arrow {
  display: none;
}

@media (max-width: 800px) {
  html.theme-resaplus .layout-sidebar--tapcv .sidebar-app__title {
    font-size: 22px;
  }

  html.theme-resaplus body[data-module="locatif"] .gloc-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "tools"
      "content";
  }

  html.theme-resaplus body[data-module="locatif"] .gloc-workspace-bar {
    justify-content: flex-start;
    margin-top: -8px;
  }
}

/* Gestion Prestige — le module a sa propre feuille, branchée ici sur la maquette */
html.theme-resaplus body[data-module="gestion"] .g3-page-content {
  --primary: var(--rp-brand);
  --primary-hover: var(--rp-hover);
  --primary-light: var(--rp-soft);
  --accent: var(--rp-brand);
  --text: #172136;
  --text-secondary: #69758a;
  --text-muted: #94a3b8;
  --border: #e3e7ef;
  --bg-main: transparent;
  --bg-card: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: none;
  --shadow-sm: none;
  --shadow-lg: none;
  font-family: Inter, system-ui, sans-serif;
  color: #172136;
}

html.theme-resaplus body[data-module="gestion"] .page-content {
  padding: 4px 0 32px;
}

html.theme-resaplus body[data-module="gestion"] .page-title,
html.theme-resaplus body[data-module="gestion"] .card-header h2,
html.theme-resaplus body[data-module="gestion"] .card-header h3 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #172136;
}

html.theme-resaplus body[data-module="gestion"] .page-title {
  font-size: 26px;
}

html.theme-resaplus body[data-module="gestion"] .breadcrumb,
html.theme-resaplus body[data-module="gestion"] .breadcrumb a {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

html.theme-resaplus body[data-module="gestion"] .card,
html.theme-resaplus body[data-module="gestion"] .stat-card {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  box-shadow: none;
}

html.theme-resaplus body[data-module="gestion"] .card:hover,
html.theme-resaplus body[data-module="gestion"] .stat-card:hover {
  box-shadow: none;
  border-color: #d9d6f7;
}

html.theme-resaplus body[data-module="gestion"] .stat-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

html.theme-resaplus body[data-module="gestion"] .stat-card .value {
  letter-spacing: -0.04em;
  color: #172136;
}

html.theme-resaplus body[data-module="gestion"] .stat-card .stat-icon {
  border-radius: 12px;
}

html.theme-resaplus body[data-module="gestion"] .stat-card .stat-icon.primary {
  background: var(--rp-soft);
  color: var(--rp-brand);
}

html.theme-resaplus body[data-module="gestion"] .data-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

html.theme-resaplus body[data-module="gestion"] .data-table tbody tr:hover {
  background: #f8f8ff;
}

html.theme-resaplus body[data-module="gestion"] .g3-page-content .btn,
html.theme-resaplus body[data-module="gestion"] .g3-page-content a.btn {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

html.theme-resaplus body[data-module="gestion"] .g3-page-content .btn-primary,
html.theme-resaplus body[data-module="gestion"] .g3-page-content a.btn-primary {
  background: var(--rp-brand);
  border-color: var(--rp-brand);
  color: #fff;
}

html.theme-resaplus body[data-module="gestion"] .g3-page-content .btn-primary:hover,
html.theme-resaplus body[data-module="gestion"] .g3-page-content a.btn-primary:hover {
  background: var(--rp-hover);
  color: #fff;
}

html.theme-resaplus body[data-module="gestion"] .g3-page-content .btn-secondary {
  background: #fff;
  border: 1px solid #e3e7ef;
  color: #334155;
}

html.theme-resaplus body[data-module="gestion"] .g3-page-content a:not(.btn) {
  color: var(--rp-hover);
}

html.theme-resaplus body[data-module="gestion"] .g3-bureau-fab,
html.theme-resaplus body[data-module="gestion"] .btn-bureau {
  background: #fff;
  border: 1px solid #e3e7ef;
  color: #172136;
  box-shadow: none;
}

html.theme-resaplus body[data-module="gestion"] .g3-bureau-fab__icon {
  background: var(--rp-brand);
  box-shadow: none;
}

/* Portefeuille — la carte sombre et la barre brune ne collent pas à la charte claire */
html.theme-resaplus body[data-module="portefeuille"] .kpi.accent {
  background: #fff;
  border-color: #e3e7ef;
}

html.theme-resaplus body[data-module="portefeuille"] .kpi.accent .lab,
html.theme-resaplus body[data-module="portefeuille"] .kpi.accent .sub {
  color: #69758a;
}

html.theme-resaplus body[data-module="portefeuille"] .kpi.accent .val {
  color: var(--rp-brand);
}

html.theme-resaplus body[data-module="portefeuille"] .kpi .val {
  font-family: Inter, system-ui, sans-serif;
  color: #172136;
}

html.theme-resaplus body[data-module="portefeuille"] .kpi.accent .val {
  color: var(--rp-brand);
}

html.theme-resaplus body[data-module="portefeuille"] .occbar {
  background: #f1f5f9;
}

html.theme-resaplus body[data-module="portefeuille"] #occLoue,
html.theme-resaplus body[data-module="portefeuille"] .dot--loue {
  background: var(--rp-brand);
}

html.theme-resaplus body[data-module="portefeuille"] #occLibre,
html.theme-resaplus body[data-module="portefeuille"] .dot--libre {
  background: #cbd5e1;
}

html.theme-resaplus body[data-module="portefeuille"] .chip.loue,
html.theme-resaplus body[data-module="portefeuille"] .statusbtn.on.loue {
  background: var(--rp-soft);
  color: var(--rp-hover);
  border-color: var(--rp-line);
}

html.theme-resaplus body[data-module="portefeuille"] .chip.libre,
html.theme-resaplus body[data-module="portefeuille"] .statusbtn.on.libre {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

html.theme-resaplus body[data-module="portefeuille"] .iconbtn.primary:hover {
  background: var(--rp-hover);
  border-color: var(--rp-hover);
}
