/* ZLOTIA V24 — INTERFACE APP LUXE NOIR / OR
   Couche visuelle uniquement. Les IDs, vues, données et comportements restent inchangés. */
:root{
  --zl-night:#05080d;
  --zl-night-2:#09111c;
  --zl-panel:#0c1522;
  --zl-panel-2:#101c2b;
  --zl-panel-soft:#142235;
  --zl-gold:#e7b941;
  --zl-gold-2:#f8d878;
  --zl-gold-deep:#9f6b12;
  --zl-line:rgba(231,185,65,.22);
  --zl-line-soft:rgba(255,255,255,.08);
  --zl-text:#f8f4e8;
  --zl-muted:#aeb8c7;
  --zl-green:#46d98c;
  --zl-red:#ff6f7e;
  --zl-blue:#7fb3ff;
}

/* ===== STRUCTURE GÉNÉRALE ===== */
.software-layout.authenticated{
  min-height:100vh!important;
  color:var(--zl-text)!important;
  background:
    radial-gradient(circle at 88% -10%,rgba(231,185,65,.13),transparent 29%),
    radial-gradient(circle at 14% 105%,rgba(231,185,65,.08),transparent 30%),
    linear-gradient(145deg,#04070c 0%,#08111d 52%,#05080d 100%)!important;
}
.software-layout.authenticated .main-content{
  background:transparent!important;
}
.software-layout.authenticated .page-content{
  color:var(--zl-text)!important;
  background:transparent!important;
}
.software-layout.authenticated .page-content::before{
  opacity:.8;
  background-image:
    linear-gradient(rgba(231,185,65,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(231,185,65,.025) 1px,transparent 1px)!important;
}
.software-layout.authenticated .app-view{
  color:var(--zl-text);
}
.software-layout.authenticated h1,
.software-layout.authenticated h2,
.software-layout.authenticated h3,
.software-layout.authenticated h4,
.software-layout.authenticated h5,
.software-layout.authenticated strong{
  color:var(--zl-text)!important;
}
.software-layout.authenticated p,
.software-layout.authenticated small,
.software-layout.authenticated .view-description,
.software-layout.authenticated .content-card-header p,
.software-layout.authenticated .panel-title p{
  color:var(--zl-muted)!important;
}
.software-layout.authenticated .eyebrow{
  color:var(--zl-gold-2)!important;
  letter-spacing:.13em;
}

/* ===== SIDEBAR ===== */
.software-layout.authenticated .sidebar{
  border-right:1px solid var(--zl-line)!important;
  color:var(--zl-text)!important;
  background:
    radial-gradient(circle at 30% 0%,rgba(231,185,65,.10),transparent 24%),
    linear-gradient(180deg,#05080d 0%,#09111b 58%,#060a10 100%)!important;
  box-shadow:18px 0 48px rgba(0,0,0,.28)!important;
}
.software-layout.authenticated .sidebar-header{
  border-bottom:1px solid var(--zl-line-soft)!important;
  background:rgba(4,8,13,.76)!important;
}
.software-layout.authenticated .brand,
.software-layout.authenticated .brand-name,
.software-layout.authenticated .brand-name b{
  color:var(--zl-gold-2)!important;
}
.software-layout.authenticated .brand-logo{
  filter:drop-shadow(0 0 12px rgba(231,185,65,.24));
}
.software-layout.authenticated .navigation-search{
  border:1px solid var(--zl-line)!important;
  background:rgba(255,255,255,.035)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
}
.software-layout.authenticated .navigation-search input{
  color:var(--zl-text)!important;
  background:transparent!important;
}
.software-layout.authenticated .navigation-search input::placeholder{
  color:#78869a!important;
}
.software-layout.authenticated .navigation-search-hint{
  color:#758399!important;
}
.software-layout.authenticated .navigation-group{
  border-color:rgba(231,185,65,.12)!important;
}
.software-layout.authenticated .navigation-group-toggle{
  color:#dce4ef!important;
  background:transparent!important;
}
.software-layout.authenticated .navigation-group-toggle:hover{
  background:rgba(231,185,65,.07)!important;
}
.software-layout.authenticated .navigation-group-toggle b{
  color:#f6f2e8!important;
}
.software-layout.authenticated .navigation-group-toggle small{
  color:#7f8ca0!important;
}
.software-layout.authenticated .navigation-group-icon{
  color:var(--zl-gold-2)!important;
  border-color:rgba(231,185,65,.24)!important;
  background:rgba(231,185,65,.08)!important;
}
.software-layout.authenticated .navigation-link{
  color:#bbc5d3!important;
  border:1px solid transparent!important;
  background:transparent!important;
}
.software-layout.authenticated .navigation-link:hover{
  color:#fff!important;
  border-color:rgba(231,185,65,.16)!important;
  background:rgba(231,185,65,.07)!important;
}
.software-layout.authenticated .navigation-link.active{
  color:#171108!important;
  border-color:rgba(255,231,158,.55)!important;
  background:linear-gradient(135deg,#f9dd86 0%,#dfad37 58%,#b87c16 100%)!important;
  box-shadow:0 9px 22px rgba(183,124,22,.20),inset 0 1px 0 rgba(255,255,255,.6)!important;
}
.software-layout.authenticated .navigation-link.active span,
.software-layout.authenticated .navigation-link.active .navigation-icon{
  color:#171108!important;
}
.software-layout.authenticated .navigation-badge{
  color:#f5d570!important;
  border-color:rgba(231,185,65,.24)!important;
  background:rgba(231,185,65,.08)!important;
}
.software-layout.authenticated .navigation-link.active .navigation-badge{
  color:#171108!important;
  background:rgba(255,255,255,.34)!important;
}
.software-layout.authenticated .sidebar-footer,
.software-layout.authenticated .sidebar-plan,
.software-layout.authenticated .sidebar-profile{
  border-color:var(--zl-line-soft)!important;
  background:rgba(255,255,255,.025)!important;
}
.software-layout.authenticated .sidebar-profile span,
.software-layout.authenticated .sidebar-profile b{
  color:#f5f2e9!important;
}

/* ===== TOPBAR ===== */
.software-layout.authenticated .topbar{
  border-bottom:1px solid rgba(231,185,65,.15)!important;
  background:rgba(5,8,13,.82)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.software-layout.authenticated .topbar h1,
.software-layout.authenticated .topbar strong,
.software-layout.authenticated .topbar-title{
  color:#fff!important;
}
.software-layout.authenticated .topbar p,
.software-layout.authenticated .topbar small{
  color:#8e9bad!important;
}
.software-layout.authenticated .topbar-menu-button,
.software-layout.authenticated .topbar-utility-button,
.software-layout.authenticated .close-sidebar{
  color:#f7d66e!important;
  border-color:rgba(231,185,65,.22)!important;
  background:rgba(231,185,65,.06)!important;
}
.software-layout.authenticated .topbar-menu-button:hover,
.software-layout.authenticated .topbar-utility-button:hover,
.software-layout.authenticated .close-sidebar:hover{
  background:rgba(231,185,65,.12)!important;
}

/* ===== CARTES / PANNEAUX ===== */
.software-layout.authenticated .content-card,
.software-layout.authenticated .statistic-card,
.software-layout.authenticated .form-panel,
.software-layout.authenticated .settings-card,
.software-layout.authenticated .security-card,
.software-layout.authenticated .copilot-card,
.software-layout.authenticated .copilot-money-card,
.software-layout.authenticated .copilot-month-card,
.software-layout.authenticated .copilot-recap-card,
.software-layout.authenticated .copilot-learning-card,
.software-layout.authenticated .enterprise-card,
.software-layout.authenticated .enterprise-tool-card,
.software-layout.authenticated .enterprise-direction-card,
.software-layout.authenticated .plus-card,
.software-layout.authenticated .map-card,
.software-layout.authenticated .map-nearby-card,
.software-layout.authenticated .surface-measure-card,
.software-layout.authenticated .surface-result-card,
.software-layout.authenticated .trade-result-card,
.software-layout.authenticated .offer-simulator-card,
.software-layout.authenticated .weather-summary-card,
.software-layout.authenticated .weather-forecast-card,
.software-layout.authenticated .material-checklist-card,
.software-layout.authenticated .call-client-card,
.software-layout.authenticated .call-price-card,
.software-layout.authenticated .cashflow-balance-card,
.software-layout.authenticated .cashflow-forecast-card{
  color:var(--zl-text)!important;
  border:1px solid rgba(231,185,65,.15)!important;
  background:
    linear-gradient(145deg,rgba(18,31,47,.94),rgba(9,17,28,.96))!important;
  box-shadow:0 18px 42px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.software-layout.authenticated .content-card:hover,
.software-layout.authenticated .statistic-card:hover{
  border-color:rgba(231,185,65,.28)!important;
}
.software-layout.authenticated .content-card-header,
.software-layout.authenticated .panel-heading{
  border-color:rgba(255,255,255,.07)!important;
}
.software-layout.authenticated .panel-icon,
.software-layout.authenticated .statistic-icon,
.software-layout.authenticated .empty-icon{
  color:var(--zl-gold-2)!important;
  border-color:rgba(231,185,65,.22)!important;
  background:rgba(231,185,65,.08)!important;
}
.software-layout.authenticated .trust-score-badge,
.software-layout.authenticated .status-badge,
.software-layout.authenticated .plan-badge{
  border-color:rgba(231,185,65,.24)!important;
}

/* ===== DASHBOARD LUXE ===== */
.software-layout.authenticated #dashboardView.dashboard-premium{
  --dashboard-ink:#fff;
}
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner{
  min-height:205px!important;
  border:1px solid rgba(231,185,65,.28)!important;
  background:
    radial-gradient(circle at 87% 12%,rgba(249,211,107,.18),transparent 24%),
    radial-gradient(circle at 17% 118%,rgba(231,185,65,.18),transparent 38%),
    linear-gradient(120deg,#070b12 0%,#101925 50%,#17150f 100%)!important;
  box-shadow:0 24px 54px rgba(0,0,0,.31),0 0 42px rgba(231,185,65,.05)!important;
}
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner h2 span{
  color:var(--zl-gold-2)!important;
}
.software-layout.authenticated #dashboardView.dashboard-premium .dashboard-orbit{
  border-color:rgba(231,185,65,.17)!important;
}
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card{
  background:linear-gradient(145deg,#101b2a,#09111c)!important;
}
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card::after{
  color:rgba(231,185,65,.50)!important;
}
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card span,
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card small{
  color:#8e9bad!important;
}
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card strong{
  color:#fff!important;
}
.software-layout.authenticated #dashboardView.dashboard-premium .business-insights,
.software-layout.authenticated #dashboardView.dashboard-premium .onboarding-card{
  background:linear-gradient(145deg,#111c2a,#0a121d)!important;
}
.software-layout.authenticated .zlotia-briefing-card{
  background:
    radial-gradient(circle at 100% 0%,rgba(231,185,65,.11),transparent 28%),
    linear-gradient(145deg,#0f1a29,#09111b)!important;
}
.software-layout.authenticated .insight-grid>div,
.software-layout.authenticated .onboarding-steps>* ,
.software-layout.authenticated .trust-checklist>*{
  border-color:rgba(231,185,65,.12)!important;
  background:rgba(255,255,255,.025)!important;
}
.software-layout.authenticated progress{
  accent-color:var(--zl-gold);
}

/* ===== BOUTONS ===== */
.software-layout.authenticated .button.primary,
.software-layout.authenticated .small-button,
.software-layout.authenticated button.primary{
  color:#151006!important;
  border-color:#e7b941!important;
  background:linear-gradient(135deg,#ffe697 0%,#e7b941 56%,#b67812 100%)!important;
  box-shadow:0 10px 24px rgba(190,131,20,.20),inset 0 1px 0 rgba(255,255,255,.65)!important;
}
.software-layout.authenticated .button.primary:hover,
.software-layout.authenticated .small-button:hover{
  filter:brightness(1.05);
}
.software-layout.authenticated .button.secondary,
.software-layout.authenticated .button.ghost,
.software-layout.authenticated .button.light,
.software-layout.authenticated .text-button,
.software-layout.authenticated .editor-toolbar-actions button{
  color:#f6d572!important;
  border-color:rgba(231,185,65,.26)!important;
  background:rgba(231,185,65,.055)!important;
}
.software-layout.authenticated .button.secondary:hover,
.software-layout.authenticated .button.ghost:hover,
.software-layout.authenticated .button.light:hover,
.software-layout.authenticated .text-button:hover{
  color:#fff2bd!important;
  background:rgba(231,185,65,.11)!important;
}
.software-layout.authenticated .quick-actions button{
  color:var(--zl-text)!important;
  border:1px solid rgba(231,185,65,.13)!important;
  background:rgba(255,255,255,.025)!important;
}
.software-layout.authenticated .quick-actions button:hover{
  border-color:rgba(231,185,65,.28)!important;
  background:rgba(231,185,65,.08)!important;
}
.software-layout.authenticated .quick-actions button>span{
  color:var(--zl-gold-2)!important;
}

/* ===== FORMULAIRES ===== */
.software-layout.authenticated input,
.software-layout.authenticated select,
.software-layout.authenticated textarea{
  color:#f5f7fa!important;
  border-color:rgba(231,185,65,.18)!important;
  background:#09131f!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
}
.software-layout.authenticated input::placeholder,
.software-layout.authenticated textarea::placeholder{
  color:#68778c!important;
}
.software-layout.authenticated input:focus,
.software-layout.authenticated select:focus,
.software-layout.authenticated textarea:focus{
  border-color:rgba(231,185,65,.65)!important;
  outline:3px solid rgba(231,185,65,.11)!important;
}
.software-layout.authenticated label,
.software-layout.authenticated legend{
  color:#d8dee8!important;
}
.software-layout.authenticated option{
  color:#f5f7fa;
  background:#0c1623;
}

/* ===== TABLEAUX ===== */
.software-layout.authenticated .table-wrapper{
  border-color:rgba(231,185,65,.12)!important;
  background:#0a131f!important;
}
.software-layout.authenticated .management-table{
  color:#dfe6ef!important;
}
.software-layout.authenticated .management-table thead,
.software-layout.authenticated .management-table th{
  color:#f2d77f!important;
  border-color:rgba(231,185,65,.14)!important;
  background:#101b2a!important;
}
.software-layout.authenticated .management-table td{
  color:#d8e0ea!important;
  border-color:rgba(255,255,255,.06)!important;
}
.software-layout.authenticated .management-table tbody tr:hover{
  background:rgba(231,185,65,.045)!important;
}
.software-layout.authenticated .empty-state{
  color:#9ba8ba!important;
}

/* ===== OUTILS, TIMELINES, LISTES ===== */
.software-layout.authenticated .document-list>* ,
.software-layout.authenticated .activity-list>* ,
.software-layout.authenticated .timeline-item,
.software-layout.authenticated .list-item,
.software-layout.authenticated .client-item,
.software-layout.authenticated .service-item{
  border-color:rgba(255,255,255,.07)!important;
}
.software-layout.authenticated .chip,
.software-layout.authenticated .filter-chip,
.software-layout.authenticated .tag{
  color:#f2d77f!important;
  border-color:rgba(231,185,65,.17)!important;
  background:rgba(231,185,65,.07)!important;
}

/* ===== MODALES APP ===== */
.software-layout.authenticated ~ .modal .modal-content,
body:has(.software-layout.authenticated) .modal-content{
  color:var(--zl-text)!important;
  border:1px solid rgba(231,185,65,.20)!important;
  background:linear-gradient(145deg,#101b29,#08111c)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.52)!important;
}
body:has(.software-layout.authenticated) .modal-header{
  border-color:rgba(255,255,255,.07)!important;
}
body:has(.software-layout.authenticated) .modal-close{
  color:#f5d779!important;
  background:rgba(231,185,65,.07)!important;
}

/* ===== AUTHENTIFICATION DANS LE MÊME UNIVERS ===== */
.auth-screen{
  color:var(--zl-text)!important;
  background:
    radial-gradient(circle at 12% 8%,rgba(231,185,65,.18),transparent 25%),
    radial-gradient(circle at 89% 92%,rgba(231,185,65,.10),transparent 28%),
    linear-gradient(145deg,#05080d,#0a1320 58%,#070a0f)!important;
}
.auth-screen::before,.auth-screen::after{
  border-color:rgba(231,185,65,.18)!important;
}
.auth-brand,.auth-brand b,.auth-onboarding h2,.auth-onboarding strong{
  color:#f8e2a0!important;
}
.auth-onboarding p,.auth-onboarding-footer{
  color:#aeb8c7!important;
}
.auth-onboarding-footer{
  border-color:rgba(231,185,65,.20)!important;
  background:rgba(231,185,65,.06)!important;
}
.auth-card{
  color:var(--zl-text)!important;
  border:1px solid rgba(231,185,65,.22)!important;
  background:linear-gradient(145deg,rgba(16,28,43,.97),rgba(8,16,26,.98))!important;
  box-shadow:0 30px 80px rgba(0,0,0,.40),0 0 42px rgba(231,185,65,.04)!important;
}
.auth-card h1,.auth-card h2,.auth-card label{color:#f8f4e8!important}
.auth-card p,.auth-inline-help,.auth-form-reassurance{color:#9da9ba!important}
.auth-card input{
  color:#fff!important;
  border-color:rgba(231,185,65,.20)!important;
  background:#07101a!important;
}
.auth-tab{
  color:#aab4c2!important;
  border-color:rgba(255,255,255,.07)!important;
  background:rgba(255,255,255,.025)!important;
}
.auth-tab.active{
  color:#171108!important;
  border-color:#e7b941!important;
  background:linear-gradient(135deg,#f9de88,#e7b941)!important;
}
.auth-back-button,.auth-text-button,.auth-password-toggle{
  color:#f0cd68!important;
}

/* ===== DOCUMENTS DESTINÉS À L'IMPRESSION : RESTENT BLANCS ===== */
.software-layout.authenticated .quote-paper,
.software-layout.authenticated .invoice-paper,
.software-layout.authenticated .report-paper,
.software-layout.authenticated .document-paper{
  color:#17243a!important;
  background:#fff!important;
  border-color:#e7e1d4!important;
}
.software-layout.authenticated .quote-paper h1,
.software-layout.authenticated .quote-paper h2,
.software-layout.authenticated .quote-paper h3,
.software-layout.authenticated .quote-paper strong,
.software-layout.authenticated .invoice-paper h1,
.software-layout.authenticated .invoice-paper h2,
.software-layout.authenticated .invoice-paper h3,
.software-layout.authenticated .invoice-paper strong{
  color:#17243a!important;
}
.software-layout.authenticated .quote-paper p,
.software-layout.authenticated .quote-paper small,
.software-layout.authenticated .invoice-paper p,
.software-layout.authenticated .invoice-paper small{
  color:#596273!important;
}

/* ===== MOBILE ===== */
@media(max-width:900px){
  .software-layout.authenticated .sidebar{
    box-shadow:24px 0 70px rgba(0,0,0,.50)!important;
  }
  .software-layout.authenticated .topbar{
    background:rgba(5,8,13,.94)!important;
  }
}
@media(max-width:600px){
  .software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner{
    min-height:0!important;
    background:linear-gradient(145deg,#0b1420,#17140d)!important;
  }
  .software-layout.authenticated .content-card,
  .software-layout.authenticated .statistic-card,
  .software-layout.authenticated .form-panel{
    border-radius:15px!important;
  }
}

/* ============================================================
   ZLOTIA V24.2 — CONTRASTE LUXE
   Les anciens blocs blancs de certains outils sont harmonisés
   avec l'interface noire/or pour éviter le jaune clair sur blanc.
============================================================ */
.software-layout.authenticated .client-card,
.software-layout.authenticated .service-card,
.software-layout.authenticated .onboarding-step,
.software-layout.authenticated .compliance-stats article,
.software-layout.authenticated .enterprise-kpi-grid div,
.software-layout.authenticated .enterprise-feature-list div,
.software-layout.authenticated .enterprise-audit-row,
.software-layout.authenticated .enterprise-architecture-grid div,
.software-layout.authenticated .enterprise-command-center,
.software-layout.authenticated .enterprise-list-row,
.software-layout.authenticated .enterprise-alert,
.software-layout.authenticated .memory-result,
.software-layout.authenticated .mission-control,
.software-layout.authenticated .quote-benchmark-grid div,
.software-layout.authenticated .material-composition>div,
.software-layout.authenticated .surface-intro,
.software-layout.authenticated .surface-measure-card,
.software-layout.authenticated .surface-result-card,
.software-layout.authenticated .surface-result-number,
.software-layout.authenticated .surface-estimate-details>div,
.software-layout.authenticated .zlotia-briefing-action,
.software-layout.authenticated #dashboardView.dashboard-premium .onboarding-card,
.software-layout.authenticated #dashboardView.dashboard-premium .quick-actions button,
.software-layout.authenticated #dashboardView.dashboard-premium .business-insights{
  color:var(--zl-text)!important;
  border-color:rgba(231,185,65,.16)!important;
  background:linear-gradient(145deg,#101b2a,#09111c)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16)!important;
}
.software-layout.authenticated .client-card *,
.software-layout.authenticated .service-card *,
.software-layout.authenticated .onboarding-step *,
.software-layout.authenticated .enterprise-kpi-grid div *,
.software-layout.authenticated .enterprise-feature-list div *,
.software-layout.authenticated .enterprise-audit-row *,
.software-layout.authenticated .enterprise-architecture-grid div *,
.software-layout.authenticated .enterprise-command-center *,
.software-layout.authenticated .enterprise-list-row *,
.software-layout.authenticated .enterprise-alert *,
.software-layout.authenticated .memory-result *,
.software-layout.authenticated .mission-control *,
.software-layout.authenticated .material-composition>div *,
.software-layout.authenticated .surface-intro *,
.software-layout.authenticated .surface-measure-card *,
.software-layout.authenticated .surface-result-card *,
.software-layout.authenticated .surface-result-number *,
.software-layout.authenticated .surface-estimate-details>div *,
.software-layout.authenticated .zlotia-briefing-action *{
  text-shadow:none!important;
}
.software-layout.authenticated .client-card p,
.software-layout.authenticated .service-card p,
.software-layout.authenticated .onboarding-step p,
.software-layout.authenticated .compliance-stats span,
.software-layout.authenticated .enterprise-kpi-grid small,
.software-layout.authenticated .enterprise-feature-list small,
.software-layout.authenticated .enterprise-audit-row small,
.software-layout.authenticated .enterprise-architecture-grid small,
.software-layout.authenticated .enterprise-command-center p,
.software-layout.authenticated .enterprise-list-row p,
.software-layout.authenticated .enterprise-alert p,
.software-layout.authenticated .memory-result p,
.software-layout.authenticated .mission-control small,
.software-layout.authenticated .surface-intro,
.software-layout.authenticated .surface-result-card small,
.software-layout.authenticated .surface-estimate-details small,
.software-layout.authenticated .zlotia-briefing-action small{
  color:#aeb8c7!important;
}
.software-layout.authenticated .client-card h3,
.software-layout.authenticated .service-card h3,
.software-layout.authenticated .onboarding-step strong,
.software-layout.authenticated .compliance-stats b,
.software-layout.authenticated .enterprise-kpi-grid b,
.software-layout.authenticated .enterprise-feature-list b,
.software-layout.authenticated .enterprise-audit-row b,
.software-layout.authenticated .enterprise-architecture-grid b,
.software-layout.authenticated .enterprise-command-center h3,
.software-layout.authenticated .enterprise-list-row strong,
.software-layout.authenticated .enterprise-alert strong,
.software-layout.authenticated .memory-result strong,
.software-layout.authenticated .mission-control b,
.software-layout.authenticated .surface-result-number strong,
.software-layout.authenticated .surface-estimate-details strong,
.software-layout.authenticated .zlotia-briefing-action strong{
  color:#f8f4e8!important;
}

/* Or lisible : réservé aux accents, jamais en jaune pâle sur fond blanc. */
.software-layout.authenticated .eyebrow,
.software-layout.authenticated .unit-choice-hint,
.software-layout.authenticated .status.credited,
.software-layout.authenticated .trust-score-badge,
.software-layout.authenticated .mission-control-heading>span{
  color:#f4cf69!important;
  border-color:rgba(231,185,65,.23)!important;
  background:rgba(231,185,65,.09)!important;
}

/* Les contrôles Focus sont eux aussi raccordés au thème quand l'app est ouverte. */
body:has(.software-layout.authenticated) .focus-drawer-tab,
body:has(.software-layout.authenticated) .focus-drawer-panel,
body:has(.software-layout.authenticated) .focus-player,
body:has(.software-layout.authenticated) .focus-track,
body:has(.software-layout.authenticated) .focus-music-empty{
  color:#f8f4e8!important;
  border-color:rgba(231,185,65,.25)!important;
  background:linear-gradient(145deg,#101b29,#08111c)!important;
}
body:has(.software-layout.authenticated) .focus-drawer-panel>p,
body:has(.software-layout.authenticated) .focus-track small,
body:has(.software-layout.authenticated) .focus-player-track strong{
  color:#aeb8c7!important;
}
body:has(.software-layout.authenticated) .focus-drawer-heading,
body:has(.software-layout.authenticated) .focus-player-track span{
  color:#f1c85c!important;
}
body:has(.software-layout.authenticated) .focus-drawer-controls button,
body:has(.software-layout.authenticated) .focus-player-library,
body:has(.software-layout.authenticated) .focus-drawer-heading button{
  color:#f4d36d!important;
  background:rgba(231,185,65,.09)!important;
}

@media(max-width:760px){
  body:has(.software-layout.authenticated) .focus-drawer{bottom:14px!important;right:8px!important}
  body:has(.software-layout.authenticated) .focus-drawer-tab{width:40px;height:40px;border:1px solid rgba(231,185,65,.35)!important;border-radius:50%!important;display:grid;place-items:center;padding:0!important;box-shadow:0 10px 26px rgba(0,0,0,.32)!important}
  body:has(.software-layout.authenticated) .focus-drawer-tab span{font-size:15px}
  body:has(.software-layout.authenticated) .focus-drawer-tab b{display:none!important}
  body:has(.software-layout.authenticated) .focus-drawer.is-open .focus-drawer-panel{width:min(230px,calc(100vw - 58px));border-right:1px solid rgba(231,185,65,.25)!important;border-radius:15px!important;margin-right:6px}
}


/* ============================================================
   ZLOTIA V24.3 — CORRECTION GLOBALE LISIBILITÉ / CONTRASTE
   Objectifs : zéro texte clair sur fond clair, devis lisible,
   panneaux homogènes noir/or et modales cohérentes.
============================================================ */

/* En-têtes de vues : l'ancienne couche blanche entrait en conflit avec
   les textes clairs du thème luxe. Ils passent définitivement en sombre. */
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row{
  color:var(--zl-text)!important;
  border-color:rgba(231,185,65,.28)!important;
  background:
    radial-gradient(circle at 94% 12%,rgba(231,185,65,.15),transparent 26%),
    linear-gradient(125deg,#111c2a 0%,#09121d 72%,#15120b 100%)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row::after{
  border-color:rgba(231,185,65,.15)!important;
  background:transparent!important;
}
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row h1,
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row h2,
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row h3,
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row strong{
  color:#fffaf0!important;
}
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row > div > p:not(.eyebrow),
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row small{
  color:#b6c1cf!important;
}
.software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row .eyebrow{
  color:#f4cf69!important;
  background:transparent!important;
}

/* Surfaces de travail historiquement claires : uniformisation avec le thème. */
.software-layout.authenticated .line-item,
.software-layout.authenticated .compliance-item,
.software-layout.authenticated .pipeline-card,
.software-layout.authenticated .client-note,
.software-layout.authenticated .client-discussion-preview,
.software-layout.authenticated .campaign-recipient-preview,
.software-layout.authenticated .cashflow-notice,
.software-layout.authenticated .call-offer-choice,
.software-layout.authenticated .intervention-guidance,
.software-layout.authenticated .intervention-card,
.software-layout.authenticated .intervention-insights article,
.software-layout.authenticated .weather-day-card,
.software-layout.authenticated .advice-card,
.software-layout.authenticated .security-checklist-grid>div,
.software-layout.authenticated .test-cleanup-card,
.software-layout.authenticated .feature-status,
.software-layout.authenticated .quote-locked-notice,
.software-layout.authenticated .operation-row,
.software-layout.authenticated .global-search-result,
.software-layout.authenticated .help-klyro-grid button,
.software-layout.authenticated .business-template-choices button,
.software-layout.authenticated .map-notice,
.software-layout.authenticated .map-summary>div,
.software-layout.authenticated .weather-day-metrics span,
.software-layout.authenticated .surface-capture-steps span,
.software-layout.authenticated .enterprise-client-next,
.software-layout.authenticated .role-preview span,
.software-layout.authenticated .team-preview span,
.software-layout.authenticated .workflow-steps span,
.software-layout.authenticated .quote-benchmark-grid div,
.software-layout.authenticated .pricing-card{
  color:var(--zl-text)!important;
  border-color:rgba(231,185,65,.16)!important;
  background:linear-gradient(145deg,#101b2a,#09111c)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.15)!important;
}

.software-layout.authenticated .intervention-guidance span,
.software-layout.authenticated .intervention-card p,
.software-layout.authenticated .intervention-card small,
.software-layout.authenticated .pipeline-card p,
.software-layout.authenticated .pipeline-card small,
.software-layout.authenticated .client-note,
.software-layout.authenticated .client-discussion-preview,
.software-layout.authenticated .campaign-recipient-preview,
.software-layout.authenticated .cashflow-notice,
.software-layout.authenticated .call-offer-choice p,
.software-layout.authenticated .call-offer-choice small,
.software-layout.authenticated .operation-row small,
.software-layout.authenticated .global-search-result small,
.software-layout.authenticated .help-klyro-grid button span,
.software-layout.authenticated .business-template-choices button span,
.software-layout.authenticated .map-notice,
.software-layout.authenticated .weather-day-card small,
.software-layout.authenticated .advice-card p,
.software-layout.authenticated .quote-benchmark-grid span{
  color:#aeb8c7!important;
}
.software-layout.authenticated .intervention-card h3,
.software-layout.authenticated .intervention-card strong,
.software-layout.authenticated .pipeline-card h3,
.software-layout.authenticated .pipeline-card strong,
.software-layout.authenticated .call-offer-choice strong,
.software-layout.authenticated .operation-row strong,
.software-layout.authenticated .global-search-result strong,
.software-layout.authenticated .help-klyro-grid button b,
.software-layout.authenticated .business-template-choices button b,
.software-layout.authenticated .weather-day-card strong,
.software-layout.authenticated .advice-card strong,
.software-layout.authenticated .quote-benchmark-grid b{
  color:#f8f4e8!important;
}

/* Création de devis : les lignes de prestation ne sont plus blanches. */
.software-layout.authenticated .quote-workspace .line-item{
  border:1px solid rgba(231,185,65,.16)!important;
  background:linear-gradient(145deg,#101b28,#0a1420)!important;
}
.software-layout.authenticated .quote-workspace .line-item label{
  color:#dce3ec!important;
}
.software-layout.authenticated .quote-workspace .remove-line{
  color:#ff9da7!important;
  border-color:rgba(255,111,126,.22)!important;
  background:rgba(255,111,126,.07)!important;
}
.software-layout.authenticated .quote-workspace .remove-line:hover{
  color:#ffd4d8!important;
  background:rgba(255,111,126,.14)!important;
}
.software-layout.authenticated .preview-label{
  color:#aeb8c7!important;
}

/* Modales / recherche / outils : pas de panneau blanc avec titres blancs. */
.software-layout.authenticated .modal-content,
.software-layout.authenticated .global-search-panel,
.software-layout.authenticated .help-klyro-panel{
  color:var(--zl-text)!important;
  border-color:rgba(231,185,65,.22)!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(231,185,65,.09),transparent 26%),
    linear-gradient(145deg,#111c2a,#08111c)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.48)!important;
}
.software-layout.authenticated .modal-header{
  border-color:rgba(231,185,65,.12)!important;
  background:rgba(11,20,31,.97)!important;
}
.software-layout.authenticated .modal-close{
  color:#f6d572!important;
  border-color:rgba(231,185,65,.20)!important;
  background:rgba(231,185,65,.07)!important;
}

/* Aides, textes secondaires et placeholders : contraste minimum renforcé. */
.software-layout.authenticated .form-help,
.software-layout.authenticated .modal-helper,
.software-layout.authenticated .muted,
.software-layout.authenticated .empty-state,
.software-layout.authenticated .hint,
.software-layout.authenticated .field-help{
  color:#9facbd!important;
}
.software-layout.authenticated input::placeholder,
.software-layout.authenticated textarea::placeholder{
  color:#8291a5!important;
  opacity:1!important;
}

/* Badges sémantiques : le texte reste lisible même si une ancienne règle claire subsiste. */
.software-layout.authenticated .status-pill,
.software-layout.authenticated .status,
.software-layout.authenticated .status-badge{
  border:1px solid rgba(231,185,65,.16);
}
.software-layout.authenticated .status-pill.attention,
.software-layout.authenticated .status.credited{
  color:#f5d477!important;
  background:rgba(231,185,65,.10)!important;
}
.software-layout.authenticated .status-pill.expired{
  color:#ff9da7!important;
  background:rgba(255,111,126,.10)!important;
}

/* Les documents destinés au client restent volontairement blancs et lisibles. */
.software-layout.authenticated .quote-paper,
.software-layout.authenticated .invoice-paper,
.software-layout.authenticated .report-paper,
.software-layout.authenticated .document-paper{
  color:#17243a!important;
  background:#fff!important;
}
.software-layout.authenticated .quote-paper *,
.software-layout.authenticated .invoice-paper *,
.software-layout.authenticated .report-paper *,
.software-layout.authenticated .document-paper *{
  text-shadow:none!important;
}
.software-layout.authenticated .quote-paper :is(h1,h2,h3,h4,h5,strong,label),
.software-layout.authenticated .invoice-paper :is(h1,h2,h3,h4,h5,strong,label),
.software-layout.authenticated .report-paper :is(h1,h2,h3,h4,h5,strong,label),
.software-layout.authenticated .document-paper :is(h1,h2,h3,h4,h5,strong,label){
  color:#17243a!important;
}
.software-layout.authenticated .quote-paper :is(p,small,span),
.software-layout.authenticated .invoice-paper :is(p,small,span),
.software-layout.authenticated .report-paper :is(p,small,span),
.software-layout.authenticated .document-paper :is(p,small,span){
  color:#596273!important;
}
.software-layout.authenticated .quote-paper .date-row,
.software-layout.authenticated .quote-paper .quote-notes{
  color:#354257!important;
  background:#f7f9fc!important;
}

@media(max-width:760px){
  .software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row{
    padding:15px 16px!important;
    border-radius:16px!important;
  }
  .software-layout.authenticated .app-view:not(#dashboardView) .view-heading-row h2{
    font-size:1.28rem!important;
  }
  .software-layout.authenticated .quote-workspace .line-item{
    grid-template-columns:1fr!important;
  }
  .software-layout.authenticated .quote-workspace .line-item .line-main,
  .software-layout.authenticated .quote-workspace .line-item label{
    grid-column:auto!important;
  }
}

/* ============================================================
   ZLOTIA V24.4 — DERNIERS CONTRASTES ÉDITEUR DE DEVIS
   Corrige les deux zones encore trop pâles visibles sur V24.3 :
   1) Mode express / modèles rapides
   2) Zlotia Repères
============================================================ */
.software-layout.authenticated .quick-templates > span{
  color:#c5cfdb!important;
}
.software-layout.authenticated .quick-templates button{
  color:#e9eef5!important;
  border-color:rgba(231,185,65,.42)!important;
  background:linear-gradient(145deg,#0f1a27,#09121d)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.software-layout.authenticated .quick-templates button:hover,
.software-layout.authenticated .quick-templates button:focus-visible{
  color:#fff7df!important;
  border-color:#e7b941!important;
  background:linear-gradient(145deg,#172536,#0d1824)!important;
  outline:none!important;
  box-shadow:0 0 0 3px rgba(231,185,65,.12)!important;
}
.software-layout.authenticated .quick-templates #openQuoteAssistantExpressBtn{
  color:#f3cd64!important;
}

.software-layout.authenticated .quote-benchmarks{
  color:var(--zl-text)!important;
  border-color:rgba(231,185,65,.24)!important;
  background:
    radial-gradient(circle at 92% 8%,rgba(231,185,65,.08),transparent 30%),
    linear-gradient(145deg,#101b29,#09121d)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
.software-layout.authenticated .quote-benchmarks h3{
  color:#f2ca5e!important;
}
.software-layout.authenticated .quote-benchmarks p{
  color:#b7c2d0!important;
}
.software-layout.authenticated .quote-benchmarks .quote-benchmark-grid div{
  color:#f8f4e8!important;
  border-color:rgba(231,185,65,.14)!important;
  background:#0a1420!important;
}
.software-layout.authenticated .quote-benchmarks .quote-benchmark-grid span{
  color:#b5c0ce!important;
}
.software-layout.authenticated .quote-benchmarks .quote-benchmark-grid b{
  color:#fffaf0!important;
}
