/* ============================================================
   DOUMÉ RH — Thème custom posé sur Vuexy / Bootstrap 4
   Reprend le design "export" : bordeaux ecclésiastique, neutres
   papier chauds, sidebar sombre, polices Crimson Pro / Inter /
   JetBrains Mono. Chargé EN DERNIER (après components.css).
   ============================================================ */


:root {
  /* — neutres chauds — */
  --paper:        oklch(0.992 0.004 60);
  --paper-2:      oklch(0.978 0.006 60);
  --paper-3:      oklch(0.962 0.008 60);
  --rule:         oklch(0.918 0.010 60);
  --rule-strong:  oklch(0.875 0.012 60);
  --ink-1:        oklch(0.18  0.020 50);
  --ink-2:        oklch(0.34  0.018 50);
  --ink-3:        oklch(0.52  0.014 50);
  --ink-4:        oklch(0.68  0.010 50);

  /* — accent bordeaux ecclésiastique — */
  --accent:       oklch(0.42 0.135 20);   /* ≈ #89202A */
  --accent-2:     oklch(0.36 0.125 20);
  --accent-soft:  oklch(0.95 0.025 20);
  --accent-ink:   oklch(0.30 0.110 20);

  /* — violet profond (secondaire) — */
  --plum:         oklch(0.42 0.090 320);
  --plum-soft:    oklch(0.95 0.020 320);

  /* — sémantiques — */
  --ok:    oklch(0.55 0.130 155); --ok-soft:   oklch(0.94 0.040 155);
  --warn:  oklch(0.65 0.130 65);  --warn-soft: oklch(0.95 0.040 75);
  --bad:   oklch(0.55 0.180 25);  --bad-soft:  oklch(0.95 0.040 25);
  --info:  oklch(0.55 0.110 240); --info-soft: oklch(0.95 0.030 240);

  /* — sidebar sombre chaude — */
  --nav-bg:       oklch(0.215 0.018 30);
  --nav-bg-2:     oklch(0.255 0.020 30);
  --nav-ink:      oklch(0.85  0.012 50);
  --nav-ink-mute: oklch(0.62  0.014 50);
  --nav-rule:     oklch(0.30  0.020 30);
  --nav-active:   oklch(0.55 0.150 20);

  /* — polices — */
  --font-ui:      'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif:   'Crimson Pro', Georgia, 'Times New Roman', serif;  /* hero auth / accents éditoriaux */
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ============================================================
   BASE / TYPOGRAPHIE
   ============================================================ */
body {
  font-family: var(--font-ui);
  color: var(--ink-2);
  background-color: var(--paper-3);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title, .brand-text, .section-label {
  font-family: var(--font-display) !important;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}
.card-title { font-weight: 600 !important; font-size: 1.15rem; }
.font-weight-bolder { font-weight: 700 !important; }
code, kbd, pre, samp, .mono, .text-monospace { font-family: var(--font-mono) !important; }

a, .text-primary { color: var(--accent) !important; }
.text-muted { color: var(--ink-3) !important; }

/* ============================================================
   SIDEBAR — sombre chaude (override Vuexy menu-light)
   ============================================================ */
.main-menu,
.main-menu.menu-light,
.main-menu.menu-light .navigation { background: var(--nav-bg); }
.main-menu.menu-light { color: var(--nav-ink); }

.main-menu .navbar-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-rule);
  padding-bottom: .5rem;
}
.main-menu .navbar-header .brand-text {
  color: oklch(0.97 0.005 60) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}
.main-menu .navbar-header .brand-logo svg path[style*="currentColor"],
.main-menu .navbar-header .brand-logo .text-primary { color: var(--accent) !important; fill: var(--accent) !important; }

/* en-têtes de section */
.main-menu.menu-light .navigation .navigation-header,
.main-menu.menu-light .navigation .navigation-header span {
  color: var(--nav-ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-family: var(--font-ui) !important;
}
.main-menu.menu-light .navigation .navigation-header i { color: var(--nav-ink-mute); }

/* liens */
.main-menu.menu-light .navigation li a { color: var(--nav-ink); }
.main-menu.menu-light .navigation > li > a i,
.main-menu.menu-light .navigation > li > a svg { color: var(--nav-ink-mute); }

/* hover */
.main-menu.menu-light .navigation > li > a:hover,
.main-menu.menu-light .navigation li.nav-item a:hover {
  background: var(--nav-bg-2);
  color: oklch(0.96 0.008 60);
  border-radius: 6px;
}

/* groupe ouvert */
.main-menu.menu-light .navigation > li.open:not(.menu-item-closing) > a,
.main-menu.menu-light .navigation > li.sidebar-group-active > a {
  background: var(--nav-bg-2);
  color: oklch(0.96 0.008 60);
}

/* sous-menus */
.main-menu.menu-light .navigation li.has-sub > ul,
.main-menu.menu-light .navigation .menu-content,
.main-menu.menu-light .navigation .menu-content > li > a {
  background: transparent;
  color: var(--nav-ink-mute);
}
.main-menu.menu-light .navigation .menu-content > li > a:hover { color: oklch(0.96 0.008 60); }

/* item actif (garde le dégradé bordeaux) */
.main-menu.menu-light .navigation > li.active > a {
  background: linear-gradient(118deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 0 10px 1px oklch(0.42 0.135 20 / 0.5) !important;
  color: #fff !important;
}
.main-menu.menu-light .navigation > li .active { background: var(--nav-bg-2); }
.main-menu.menu-light .navigation > li .active > a { color: oklch(0.97 0.01 60); }

/* scrollbar ombre */
.main-menu .shadow-bottom {
  background: linear-gradient(var(--nav-bg) 44%, oklch(0.215 0.018 30 / 0.51) 73%, oklch(0.215 0.018 30 / 0));
}
.bordered-layout .main-menu { border-right: 1px solid var(--nav-rule); }

/* toggle */
.main-menu .modern-nav-toggle i,
.main-menu .modern-nav-toggle svg { color: var(--accent) !important; }

/* ============================================================
   NAVBAR (header flottant) — clair & chaud
   ============================================================ */
.header-navbar.floating-nav {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2, 0 2px 8px oklch(0.18 0.02 50 / 0.06));
}
.header-navbar .navbar-nav .nav-link { color: var(--ink-2); }
.header-navbar .navbar-nav .nav-link i.ficon { color: var(--ink-2); }
.header-navbar .user-name { color: var(--ink-1); font-weight: 600; }
.header-navbar .user-status { color: var(--ink-3); }

/* ============================================================
   CARTES & SURFACES
   ============================================================ */
.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 2px oklch(0.18 0.02 50 / 0.05);
}
.content-wrapper { background: var(--paper-3); }
hr, .dropdown-divider { border-color: var(--rule); }
.dropdown-menu {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px -8px oklch(0.18 0.02 50 / 0.18);
}
.dropdown-item { color: var(--ink-2); }
.dropdown-item:hover { background: var(--paper-3); color: var(--ink-1); }

/* ============================================================
   BOUTONS bordeaux (le primaire est déjà remplacé globalement,
   on raffine juste le rendu)
   ============================================================ */
.btn-primary {
  border-color: var(--accent);
  background-color: var(--accent);
  box-shadow: 0 4px 12px -4px oklch(0.42 0.135 20 / 0.5);
}
.btn-primary:hover { background-color: var(--accent-2) !important; border-color: var(--accent-2) !important; }
.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.btn-outline-primary:hover { background-color: var(--accent); color: #fff; }
.btn-flat-primary, .btn-relief-primary { color: var(--accent); }

/* badges clairs */
.badge-light-primary { background-color: var(--accent-soft); color: var(--accent-ink); }
.badge-primary { background-color: var(--accent); }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-control {
  border-color: var(--rule-strong);
  color: var(--ink-1);
  background: var(--paper);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.42 0.135 20 / 0.12);
}
.custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--accent);
  background-color: var(--accent);
}

/* ============================================================
   TABLES
   ============================================================ */
.table th {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  color: var(--ink-3);
  border-color: var(--rule);
  background: var(--paper-3);
}
.table td { border-color: var(--rule); color: var(--ink-2); vertical-align: middle; }
.table-hover tbody tr:hover { background-color: var(--paper-3); }

/* avatars sémantiques */
.avatar.bg-light-primary { background: var(--accent-soft) !important; color: var(--accent-ink) !important; }

/* ============================================================
   AUTH (login bordeaux) — fond gauche ecclésiastique
   ============================================================ */
/* Panneau formulaire : crème légèrement plus soutenu pour faire ressortir la carte blanche. */
.auth-wrapper.auth-v2 .auth-bg { background-color: var(--paper-3); }
.auth-wrapper.auth-v2 {
  background: var(--paper-3);
}
.doume-auth-art {
  background: linear-gradient(155deg, oklch(0.36 0.105 22) 0%, oklch(0.27 0.060 22) 60%, oklch(0.20 0.030 30) 100%);
  position: relative;
  overflow: hidden;
}
.doume-auth-art::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 12%, oklch(0.55 0.150 22 / 0.55), transparent 45%),
    radial-gradient(circle at 8% 90%, oklch(0.40 0.110 320 / 0.35), transparent 45%);
  mix-blend-mode: screen; pointer-events: none;
}
/* Grain/vignette discret pour donner de la profondeur au dégradé (au lieu d'une croix fantôme). */
.doume-auth-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 60%, oklch(0.16 0.03 25 / 0.45) 100%),
    repeating-linear-gradient(0deg, oklch(1 0 0 / 0.014) 0 1px, transparent 1px 3px);
}
.doume-auth-art .auth-art-content { position: relative; z-index: 1; color: oklch(0.96 0.008 60); max-width: 560px; }
/* Hero en serif de marque (Crimson Pro) — uniquement sur l'art, pas sur les dashboards. */
.doume-auth-art .display-serif { font-family: var(--font-serif) !important; font-weight: 600; letter-spacing: -0.005em; }

/* — Eyebrow / hero / accroche — */
.auth-art-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; opacity: .72; }
.auth-art-title   { font-size: 2.6rem; line-height: 1.12; }
.auth-art-lead    { font-size: 1.05rem; line-height: 1.6; opacity: .84; max-width: 480px; }

/* — Lignes de confiance (remplacent le jargon dev) — */
.auth-art-features { display: grid; gap: 1.05rem; }
.auth-art-features li { display: flex; align-items: flex-start; gap: .85rem; }
.auth-art-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: oklch(1 0 0 / 0.10); border: 1px solid oklch(1 0 0 / 0.16);
  backdrop-filter: blur(2px);
}
.auth-art-ico i { width: 18px; height: 18px; color: oklch(0.97 0.01 60); }
.auth-art-feat { display: flex; flex-direction: column; line-height: 1.35; }
.auth-art-feat-t { font-weight: 600; font-size: .98rem; }
.auth-art-feat-s { font-size: .86rem; opacity: .7; }

/* — Pied de panneau — */
.auth-art-foot { opacity: .5; font-size: .8rem; border-top: 1px solid oklch(1 0 0 / 0.12); display: inline-block; }

/* — Carte formulaire flottante (geste premium type payme) — */
.auth-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-pop);
  padding: 2.1rem 1.9rem 1.6rem;
}
@media (max-width: 575.98px) {
  .auth-card { padding: 1.5rem 1.25rem 1.25rem; box-shadow: var(--shadow-2); }
}

/* — Entrée douce du panneau formulaire — */
@keyframes authEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-enter { animation: authEnter .5s cubic-bezier(.16, .84, .44, 1) both; }
@media (prefers-reduced-motion: reduce) { .auth-enter { animation: none; } }

/* — Champs généreux + anneau de focus bordeaux — */
.auth-login-form .form-control {
  height: calc(2.45rem + 2px);
  padding: .65rem .9rem;
  border-radius: var(--r-3);
  border-color: var(--rule-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-login-form .form-control::placeholder { color: var(--ink-4); }
.auth-login-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* L'œil de révélation (input-group-merge) suit l'état de focus du champ */
.auth-login-form .input-group-merge .input-group-text {
  background: var(--paper);
  border-color: var(--rule-strong);
  color: var(--ink-3);
  border-top-right-radius: var(--r-3);
  border-bottom-right-radius: var(--r-3);
  transition: color .15s ease, border-color .15s ease;
}
.auth-login-form .input-group-merge .input-group-text:hover,
.auth-login-form .input-group-merge .input-group-text:focus { color: var(--accent); outline: none; }
.auth-login-form .input-group-merge:focus-within .form-control,
.auth-login-form .input-group-merge:focus-within .input-group-text { border-color: var(--accent); }
.auth-login-form .input-group-merge:focus-within { border-radius: var(--r-3); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-login-form .input-group-merge:focus-within .form-control { box-shadow: none; }
.auth-login-form .input-group-text i { width: 16px; height: 16px; }

/* — CTA principal poli — */
.auth-login-form .btn-primary {
  padding: .7rem 1rem;
  font-weight: 600;
  border-radius: var(--r-3);
  box-shadow: 0 6px 16px -8px oklch(0.42 0.135 20 / 0.55);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.auth-login-form .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 22px -10px oklch(0.42 0.135 20 / 0.65); }
.auth-login-form .btn-primary:active { transform: translateY(0); }

/* — Exigences mot de passe (checklist live) — */
.pwd-reqs { list-style: none; padding: 0; margin: .4rem 0 .15rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; }
.pwd-reqs li { font-size: .76rem; color: var(--ink-4); display: flex; align-items: center; gap: 7px; transition: color .15s ease; }
.pwd-reqs li::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: var(--rule-strong); transition: background .15s ease, transform .15s ease; }
.pwd-reqs li.ok { color: var(--ok); }
.pwd-reqs li.ok::before { background: var(--ok); transform: scale(1.25); }

/* — Indicateur de correspondance — */
.pwd-match { font-size: .76rem; margin-top: .4rem; display: none; align-items: center; gap: 7px; }
.pwd-match.show { display: flex; }
.pwd-match.ok { color: var(--ok); }
.pwd-match.bad { color: var(--bad); }

/* — Avertissement Verr. Maj — */
.caps-hint { display: none; font-size: .74rem; color: var(--warn); margin-top: .35rem; align-items: center; gap: 7px; }
.caps-hint.show { display: flex; }

/* ============================================================
   FOOTER — propulsé par PAYME
   ============================================================ */
.footer { background: var(--paper-2); border-top: 1px solid var(--rule); }
.mutrx-mark {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 99px; background: var(--paper-3);
  border: 1px solid var(--rule); color: var(--ink-2); font-weight: 600;
  letter-spacing: .10em; font-size: .72rem;
}
/* L'ancien carré dégradé est remplacé par le vrai logo PayMe (.brand-ico). */
.footer .mutrx-mark::before { display: none; }
.brand-ico {
  height: 16px; width: auto;
  border-radius: 3px; vertical-align: middle; display: inline-block;
}

/* ============================================================
   DIVERS
   ============================================================ */
.divider .divider-text { color: var(--ink-4); font-size: .8rem; }
.bullet-primary { background-color: var(--accent); }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
.scroll-top { background: var(--accent) !important; }

/* ============================================================
   COMPOSANTS SIGNATURE — portés à l'identique du projet export
   (radii utilisés : r-3 8px, r-4 12px, r-5 16px)
   ============================================================ */
:root { --r-2: 6px; --r-3: 8px; --r-4: 12px; --r-5: 16px;
  --shadow-2: 0 1px 2px -1px oklch(0.18 0.020 50 / 0.08), 0 1px 1px oklch(0.18 0.020 50 / 0.04);
  --shadow-pop: 0 24px 56px -16px oklch(0.18 0.020 50 / 0.28), 0 8px 16px -8px oklch(0.18 0.020 50 / 0.12); }

.h-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-1); }
.tnum { font-variant-numeric: tabular-nums; }
.dmono { font-family: var(--font-mono); }

/* — segmented control — */
.seg { display: inline-flex; padding: 2px; background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r-3); }
.seg button { padding: 5px 12px; border: 0; background: transparent; border-radius: 5px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.seg button.active { background: var(--paper-2); color: var(--ink-1); box-shadow: var(--shadow-2); }

/* — KPI cards (export) — */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-4); position: relative; overflow: hidden; }
.kpi-label { font-size: 12px; color: var(--ink-3); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi-label svg { width: 14px; height: 14px; }
.kpi-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink-1); margin: 8px 0 6px; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi-value .unit { font-size: 16px; color: var(--ink-3); margin-left: 2px; font-family: var(--font-ui); }
.kpi-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; }
.kpi-trend svg { width: 11px; height: 11px; }
.kpi-trend--up { color: oklch(0.45 0.130 155); }
.kpi-trend--down { color: var(--bad); }
.kpi-spark { position: absolute; right: 16px; top: 16px; opacity: 0.55; }
.kpi-foot { font-size: 11.5px; color: var(--ink-4); }

/* — scrim / modal (export → .dmodal pour ne pas heurter Bootstrap) — */
.scrim { position: fixed; inset: 0; background: oklch(0.18 0.020 50 / 0.45); z-index: 1080; backdrop-filter: blur(2px); }
.dmodal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper-2); border-radius: var(--r-5); border: 1px solid var(--rule); box-shadow: var(--shadow-pop); z-index: 1085; width: min(720px, calc(100vw - 48px)); max-height: calc(100vh - 64px); display: flex; flex-direction: column; overflow: hidden; }
.dmodal--lg { width: min(960px, calc(100vw - 48px)); }
.dmodal-header { padding: 18px 24px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dmodal-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink-1); margin: 0; letter-spacing: -0.01em; }
.dmodal-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.dmodal-body { padding: 22px 24px; overflow: auto; flex: 1; }
.dmodal-foot { padding: 14px 24px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper-3); }
/* Modal contenant des date pickers : le calendrier flatpickr (mode static, ouverture
   vers le haut) doit pouvoir déborder du corps sans être rogné par overflow:auto. */
.dmodal--pickers, .dmodal--pickers .dmodal-body { overflow: visible; }
.dmodal--pickers .flatpickr-calendar { z-index: 1090; }

/* Carte-toggle (ex. « Autoriser les demi-parts ») : switch agrandi + bordeaux. */
.toggle-card { transition: border-color .15s, background-color .15s; }
.toggle-card:hover { border-color: var(--accent) !important; }
.toggle-switch { transform: scale(1.25); transform-origin: right center; cursor: pointer; }
.toggle-switch .custom-control-label { cursor: pointer; }
.toggle-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* — drawer (panneau droit) — */
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(720px, 100vw); background: var(--paper-2); border-left: 1px solid var(--rule); box-shadow: var(--shadow-pop); z-index: 1085; display: flex; flex-direction: column; animation: drawerIn .2s ease; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-header { padding: 20px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 24px 24px; }

/* — stepper — */
.stepper { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rule); background: var(--paper-3); }
.step { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; }
.step .num { width: 22px; height: 22px; border-radius: 99px; background: var(--paper); border: 1px solid var(--rule-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 11.5px; color: var(--ink-3); }
.step.active .num { background: var(--accent); color: #fff; border-color: var(--accent); }
.step.done .num { background: var(--ok); color: #fff; border-color: var(--ok); }
.step.active .label, .step.done .label { color: var(--ink-1); font-weight: 600; }
.step-sep { flex: 1; height: 1px; background: var(--rule-strong); max-width: 64px; }

/* — form grid / labels — */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; font-weight: 500; }
.field-hint { display: block; font-size: 11.5px; color: var(--ink-4); margin-top: 4px; }
.dform-control { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; width: 100%; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r-3); color: var(--ink-1); font-size: 13.5px; }
.dform-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.42 0.135 20 / 0.12); }
select.dform-control { height: 36px; }
/* Textarea : annule le height:36px / inline-flex de base → bloc plus haut et redimensionnable. */
textarea.dform-control { display: block; height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }

/* — definition list (export) — */
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13px; margin: 0; }
.dl dt { color: var(--ink-3); }
.dl dd { color: var(--ink-1); margin: 0; font-weight: 500; }

/* — tabs (export) — */
.dtabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); }
.dtab { padding: 9px 14px; font-size: 13px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.dtab:hover { color: var(--ink-1); }
.dtab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* — avatars (export) — */
.av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; flex: none; border: 1px solid oklch(0.88 0.030 20); letter-spacing: .02em; }
.av--lg { width: 48px; height: 48px; font-size: 15px; }
.av--xl { width: 72px; height: 72px; font-size: 22px; }
.av--plum { background: var(--plum-soft); color: oklch(0.34 0.080 320); border-color: oklch(0.86 0.030 320); }
.av--ink { background: oklch(0.92 0.010 60); color: var(--ink-1); border-color: var(--rule); }
.av--green { background: var(--ok-soft); color: oklch(0.36 0.110 155); border-color: oklch(0.86 0.050 155); }

/* — sub-card inside drawer/modal (mini) — */
.mini-card { padding: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-3); }
.mini-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; }

/* — drawer/modal close button — */
.icon-btn { width: 32px; height: 32px; border-radius: var(--r-2); border: 1px solid transparent; background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--paper-3); color: var(--ink-1); }

/* — progress mince (export) — */
.dprog { width: 100%; height: 6px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.dprog > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ============================================================
   MODE SOMBRE — remappe les variables "papier" du thème doumé
   sur la palette dark de Vuexy (#161D31 / #283046 / #3b4253).
   Le bordeaux (--accent) est conservé comme couleur de marque.
   ============================================================ */
body.dark-layout {
  --paper:        #283046;   /* surfaces / cartes */
  --paper-2:      #242b3d;
  --paper-3:      #161d31;   /* fond de page */
  --rule:         #3b4253;
  --rule-strong:  #444b60;

  --ink-1:        #d0d2d6;   /* titres */
  --ink-2:        #b4b7bd;   /* texte courant */
  --ink-3:        #9aa0b3;   /* texte atténué */
  --ink-4:        #676d7d;

  --accent-soft:  rgba(192, 101, 92, 0.18);
  --plum-soft:    rgba(168, 114, 154, 0.18);
  --ok-soft:      rgba(40, 199, 111, 0.16);
  --warn-soft:    rgba(255, 159, 67, 0.16);
  --bad-soft:     rgba(234, 84, 85, 0.16);
  --info-soft:    rgba(0, 207, 232, 0.16);
}

/* Le bordeaux est plus lumineux sur fond sombre pour rester lisible. */
body.dark-layout { --accent: #d06b62; --accent-ink: #e0958c; }
body.dark-layout a,
body.dark-layout .text-primary { color: #d06b62 !important; }

/* Surfaces Vuexy alignées sur les variables doumé. */
body.dark-layout .card,
body.dark-layout .kpi,
body.dark-layout .mini-card,
body.dark-layout .drawer,
body.dark-layout .dmodal,
body.dark-layout .header-navbar.floating-nav {
  background-color: var(--paper) !important;
  border-color: var(--rule) !important;
  color: var(--ink-2);
}
body.dark-layout .content-wrapper,
body.dark-layout .app-content { background-color: var(--paper-3); }

/* Textes / titres / sparkline-foot lisibles. */
body.dark-layout .card-title,
body.dark-layout .kpi-value,
body.dark-layout .content-header-title,
body.dark-layout .h-display { color: var(--ink-1) !important; }
body.dark-layout .text-muted,
body.dark-layout .kpi-foot,
body.dark-layout .kpi-label { color: var(--ink-3) !important; }

/* Filets / séparateurs. */
body.dark-layout hr,
body.dark-layout .dl dt,
body.dark-layout .dtabs { border-color: var(--rule) !important; }

/* Sélecteur de période. */
body.dark-layout .seg button { color: var(--ink-2); }
body.dark-layout .seg button.active { background: var(--accent); color: #fff; }
