/* =========================
   COULEURS
========================= */

:root {
  --navy: #10213b;
  --navy-light: #1b3152;
  --blue: #2864eb;
  --blue-dark: #1649bf;
  --blue-light: #edf4ff;
  --document-accent: #41658f;
  --document-accent-light: #edf1f6;
  --background: #f3f6fa;
  --white: #ffffff;
  --text: #17243a;
  --muted: #6d7889;
  --border: #dde4ed;
  --green: #16825d;
  --green-light: #e8f7f1;
  --orange: #d97706;
  --orange-light: #fff4e5;
  --purple: #7446c8;
  --purple-light: #f2ebff;
  --red: #d14848;
  --red-light: #fff0f0;

  --sidebar-width: 255px;

  --shadow:
    0 15px 45px rgba(25, 46, 78, 0.1);
}


/* =========================
   RÉGLAGES GÉNÉRAUX
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--text);
  background: var(--background);

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
}

/* =========================
   PAGE D'ACCUEIL PUBLIQUE
========================= */

.landing-page.landing-v29 {
  min-height: 100vh;
  overflow: hidden;
  color: #17243a;
  background: #f6f8fc;
}

.landing-page.hidden { display: none; }

.landing-header,
.landing-hero,
.landing-section,
.landing-footer {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-v29 .landing-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.landing-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 9px 22px rgba(143, 104, 23, .22);
}

.landing-preview-logo-image {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.landing-v29 .landing-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2c6cf0, #7446c8);
  border-radius: 11px;
  font-style: italic;
  font-weight: 950;
}

.landing-header-actions,
.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-nav-link {
  color: #536176;
  font-size: .79rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-login,
.landing-text-link {
  border: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 750;
  text-decoration: none;
}

.landing-v29 .landing-button {
  min-height: 48px;
  padding: 0 21px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #2864eb, #6443c8);
  box-shadow: 0 10px 25px rgba(40, 100, 235, 0.22);
  font-size: .93rem;
  font-weight: 800;
}

.landing-button:hover { filter: brightness(1.06); }
.landing-button-small { min-height: 40px; padding: 0 16px; font-size: .8rem; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 72px;
  min-height: 580px;
  padding: 70px 0 88px;
}

.landing-eyebrow {
  margin: 0 0 14px;
  color: #416ee8;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.landing-copy h1,
.landing-section h2 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -.055em;
  line-height: 1.04;
}

.landing-copy h1 { max-width: 620px; font-size: clamp(2.6rem, 5.2vw, 4.5rem); }
.landing-section h2 { max-width: 650px; font-size: clamp(1.85rem, 3.2vw, 2.8rem); }

.landing-lead {
  max-width: 630px;
  margin: 24px 0 28px;
  color: #536176;
  font-size: 1.08rem;
  line-height: 1.7;
}

.landing-reassurance {
  margin: 20px 0 0;
  color: #748094;
  font-size: .78rem;
}

.landing-preview {
  padding: 19px;
  color: #e9efff;
  background: linear-gradient(145deg, #112646, #151f4d);
  border: 1px solid rgba(121, 167, 255, .26);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(19, 47, 94, .25);
  transform: rotate(2deg);
}

.landing-preview-top,
.landing-preview-list p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-preview-top { font-size: .78rem; font-weight: 750; }
.landing-preview-logo { display: grid; place-items: center; width: 28px; height: 28px; background: #4380ff; border-radius: 8px; font-style: italic; }
.landing-preview-status { margin-left: auto; padding: 5px 8px; color: #a7f0d4; background: rgba(22, 130, 93, .25); border-radius: 20px; font-size: .64rem; }

.landing-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.landing-preview-grid > div { display: grid; gap: 8px; padding: 16px; background: rgba(255,255,255,.075); border-radius: 13px; }
.landing-preview-grid small, .landing-preview-grid span { color: #a6b8db; font-size: .63rem; }
.landing-preview-grid strong { font-size: 1.28rem; }
.landing-preview-list { display: grid; gap: 8px; }
.landing-preview-list p { margin: 0; padding: 12px; background: rgba(255,255,255,.055); border-radius: 10px; font-size: .65rem; }
.landing-preview-list span { margin-left: auto; color: #b7c6e8; }
.landing-preview-list .paid { color: #9ce7ca; }
.landing-preview-list strong { min-width: 73px; text-align: right; font-size: .7rem; }

.landing-section { padding: 88px 0; }
.landing-section-heading { margin-bottom: 35px; }

.landing-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.landing-features article { min-height: 225px; padding: 24px; background: #fff; border: 1px solid #e2e8f3; border-radius: 16px; box-shadow: 0 10px 28px rgba(24, 48, 89, .04); }
.landing-features span { color: #5f75d9; font-size: .73rem; font-weight: 850; }
.landing-features h3 { margin: 28px 0 10px; color: var(--navy); font-size: 1rem; }
.landing-features p, .landing-pricing > div > p { color: #637086; font-size: .86rem; line-height: 1.6; }
.landing-seo-link { margin: 20px 0 0; text-align: center; }
.landing-seo-link a { color: #315dd2; font-size: .86rem; font-weight: 800; text-decoration: none; }

.landing-pricing { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 52px; }
.landing-price-card { display: grid; gap: 12px; padding: 31px; color: #fff; background: linear-gradient(145deg, #142e54, #273f8d); border-radius: 20px; box-shadow: 0 22px 55px rgba(20, 46, 84, .23); }
.landing-price-card p, .landing-price-card span { margin: 0; color: #c6d5ff; font-size: .8rem; }
.landing-price-card strong { font-size: 2.5rem; letter-spacing: -.06em; }
.landing-price-card strong small { font-size: .8rem; letter-spacing: normal; }
.landing-price-card .landing-button { margin-top: 12px; background: #fff; color: #234cae; box-shadow: none; }

.landing-faq { padding-top: 25px; }
.landing-faq details { padding: 19px 0; border-bottom: 1px solid #dce4ef; }
.landing-faq summary { color: var(--navy); font-weight: 800; cursor: pointer; }
.landing-faq p { max-width: 720px; margin: 13px 0 0; color: #5e6b80; line-height: 1.6; }

.landing-testimonial { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:42px; align-items:center; padding-top:54px; padding-bottom:54px; }
.landing-testimonial-intro > p:last-child { max-width:420px; margin:18px 0 0; color:#64748b; line-height:1.65; }
.landing-testimonial-card { position:relative; margin:0; padding:34px 36px 30px; overflow:hidden; color:var(--landing-ink, var(--navy)); background:#fff; border:1px solid #e0e7f1; border-radius:20px; box-shadow:0 18px 45px rgba(24,48,89,.07); }
.landing-testimonial-quote { position:absolute; top:-17px; right:25px; color:#d8ae4e; font-family:Georgia,serif; font-size:8rem; line-height:1; opacity:.22; }
.landing-testimonial-card blockquote { position:relative; z-index:1; margin:0; font-size:1.06rem; font-weight:650; letter-spacing:-.018em; line-height:1.72; }
.landing-testimonial-card figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:24px; padding-top:18px; border-top:1px solid #e8edf4; }
.landing-testimonial-card figcaption strong { color:var(--gold-deep, var(--navy)); font-size:.88rem; }
.landing-testimonial-card figcaption span { color:#778398; font-size:.8rem; }
.landing-public-reviews { display:grid; gap:16px; }
.landing-reviews-toggle{justify-self:start;margin-top:4px}.landing-testimonial .landing-reviews-toggle[hidden]{display:none}
.public-review-stars { position:relative; z-index:1; margin:0 0 12px; color:#c79318; font-size:1.05rem; letter-spacing:.12em; }
.help-klyro-actions { display:flex; gap:10px; margin-top:16px; }
.help-klyro-actions .button { flex:1; }
.review-modal-content { max-width:640px; }
.review-stars-field { margin:0; padding:0; border:0; }
.review-stars-field legend { margin-bottom:9px; color:var(--navy); font-size:.87rem; font-weight:800; }
.review-stars-input { direction:rtl; display:flex; justify-content:flex-end; width:max-content; }
.review-stars-input input { position:absolute; opacity:0; pointer-events:none; }
.review-stars-input label { cursor:pointer; color:#d9dfe9; font-size:2.1rem; line-height:1; transition:color .18s ease,transform .18s ease; }
.review-stars-input label:hover, .review-stars-input label:hover ~ label, .review-stars-input input:checked ~ label { color:#c79318; transform:translateY(-1px); }
.review-consent { display:flex; gap:9px; align-items:flex-start; color:#526174; font-size:.85rem; line-height:1.45; }
.review-consent input { width:auto; margin-top:3px; }
.view-heading-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.booking-links-card { margin-top:18px; }
.booking-modal-content { max-width:740px; }
.quote-benchmarks { margin:16px 0; padding:16px; border:1px solid #ebd9a9; border-radius:14px; background:linear-gradient(135deg,#fffdf7,#fff7e7); }
.quote-benchmarks[hidden] { display:none; }
.quote-benchmarks-header { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.quote-benchmarks h3 { margin:0; color:#62430d; font-size:.98rem; }
.quote-benchmarks p { margin:5px 0 0; color:#8b7041; font-size:.83rem; line-height:1.45; }
.quote-benchmark-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:13px; }
.quote-benchmark-grid div { padding:10px; border-radius:10px; background:#fff; border:1px solid #f0e3bf; }
.quote-benchmark-grid span { display:block; color:#8b7041; font-size:.72rem; }
.quote-benchmark-grid b { display:block; margin-top:3px; color:#41311b; font-size:1rem; }
.booking-link-row { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:14px 0; border-bottom:1px solid #eee4cf; }
.booking-link-row:last-child { border-bottom:0; }
.booking-link-row strong,.booking-link-row small { display:block; }
.booking-link-row small { margin-top:4px; color:#7c725f; }
@media (max-width:700px) { .view-heading-actions,.help-klyro-actions { width:100%; } .view-heading-actions .button,.help-klyro-actions .button { flex:1; } .quote-benchmark-grid { grid-template-columns:1fr; } .booking-link-row { align-items:flex-start; flex-direction:column; } }

.landing-guides {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 88px;
}

.landing-guide-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.landing-guide-links a { display: grid; gap: 8px; min-height: 135px; padding: 22px; color: var(--navy); background: #fff; border: 1px solid #e0e7f1; border-radius: 15px; text-decoration: none; }
.landing-guide-links b { font-size: .94rem; }
.landing-guide-links span { color: #657288; font-size: .78rem; line-height: 1.55; }

.landing-footer { display: flex; justify-content: space-between; gap: 18px; padding: 35px 0; color: #6c788b; border-top: 1px solid #dce4ef; font-size: .78rem; }
.landing-footer div { display: flex; flex-wrap: wrap; gap: 16px; }
.landing-footer a { color: inherit; text-decoration: none; }

.auth-back-button { margin: -6px 0 14px; padding: 0; border: 0; color: var(--blue-dark); background: transparent; font-size: .75rem; font-weight: 750; }

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}


/* =========================
   STRUCTURE DU LOGICIEL
========================= */

.software-layout {
  min-height: 100vh;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px clamp(22px, 3vw, 52px);
}


/* =========================
   MENU LATÉRAL
========================= */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;

  width: var(--sidebar-width);

  display: flex;
  flex-direction: column;

  color: #ffffff;
  background: var(--navy);

  min-width: 0;
  overflow: hidden;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar { width: 0; height: 0; }

.sidebar-header {
  min-height: 76px;
  padding: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  color: #ffffff;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.brand-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--blue);
  background: #ffffff;

  border-radius: 10px;

  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
}

.brand-name {
  font-size: 1rem;
  font-weight: 650;
}

.brand-name b {
  color: #72a2ff;
}

.close-sidebar {
  display: none;

  color: #ffffff;
  background: transparent;
  border: none;

  font-size: 1.6rem;
}

.sidebar-navigation {
  padding: 20px 12px;

  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-navigation::-webkit-scrollbar { width: 0; height: 0; }

.navigation-title {
  margin: 20px 12px 8px;

  color: #8191aa;

  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.navigation-title:first-child {
  margin-top: 0;
}

.navigation-link {
  position: relative;

  width: 100%;
  min-height: 43px;
  margin-bottom: 4px;
  padding: 9px 12px;

  display: flex;
  align-items: center;
  gap: 11px;

  color: #b9c5d8;
  background: transparent;

  border: none;
  border-radius: 9px;

  text-align: left;
  font-size: 0.84rem;
  font-weight: 650;

  transition:
    color 0.2s,
    background 0.2s;
}

.navigation-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.navigation-link.active {
  color: #ffffff;
  background: var(--blue);
}

.navigation-icon {
  width: 23px;

  display: grid;
  place-items: center;

  font-size: 1.05rem;
}

.navigation-badge {
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 6px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);

  border-radius: 20px;

  font-size: 0.66rem;
  font-weight: 800;
}

.navigation-plan-tag {
  margin-left: auto;
  padding: 3px 6px;
  color: #fff7df;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1;
}

.sidebar-bottom {
  padding: 12px;
  flex-shrink: 0;

  border-top:
    1px solid rgba(255, 255, 255, 0.1);
}

.subscription-summary {
  margin-bottom: 12px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  gap: 5px;

  background:
    linear-gradient(
      145deg,
      rgba(41, 100, 235, 0.25),
      rgba(41, 100, 235, 0.08)
    );

  border:
    1px solid rgba(111, 158, 255, 0.25);

  border-radius: 12px;
}

.subscription-summary > span {
  color: #8facdc;

  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.subscription-summary strong {
  font-size: 0.9rem;
}

.subscription-summary small {
  color: #a9b8ce;

  font-size: 0.68rem;
}

.subscription-summary button {
  margin-top: 8px;
  padding: 8px 10px;

  color: #ffffff;
  background: var(--blue);

  border: none;
  border-radius: 7px;

  font-size: 0.72rem;
  font-weight: 800;
}

.sidebar-profile {
  padding: 10px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--navy);
  background: #ffffff;

  border-radius: 50%;

  font-size: 0.8rem;
  font-weight: 900;
}

.sidebar-profile div:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.sidebar-profile strong {
  overflow: hidden;

  color: #ffffff;

  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 0.75rem;
}

.sidebar-profile span {
  color: #8fa0b8;

  font-size: 0.65rem;
}


/* =========================
   BARRE SUPÉRIEURE
========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;

  min-height: 76px;
  padding: 12px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: rgba(255, 255, 255, 0.97);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(8px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar h1 {
  margin: 2px 0 0;

  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.page-eyebrow {
  margin: 0;

  color: var(--blue);

  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.save-state {
  margin-right: 8px;

  color: var(--muted);

  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.mobile-menu-button {
  display: none;

  width: 40px;
  height: 40px;

  color: var(--text);
  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 9px;

  font-size: 1.2rem;
}


/* =========================
   BOUTONS
========================= */

.button {
  min-height: 40px;
  padding: 10px 16px;

  border: none;
  border-radius: 9px;

  font-size: 0.82rem;
  font-weight: 750;

  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--blue);

  box-shadow:
    0 7px 18px rgba(40, 100, 235, 0.22);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue);
  background: var(--blue-light);
}

.button.secondary:hover {
  background: #dce9ff;
}

.button.ghost {
  color: var(--text);
  background: #ffffff;

  border: 1px solid var(--border);
}

.button.ghost:hover {
  background: #f7f9fc;
}

.button.light {
  color: var(--blue);
  background: #ffffff;

  box-shadow:
    0 8px 20px rgba(15, 45, 100, 0.12);
}

.full-button {
  width: 100%;
}

.small-button {
  padding: 8px 11px;

  color: var(--blue);
  background: var(--blue-light);

  border: 1px solid #cfdcf4;
  border-radius: 8px;

  font-size: 0.75rem;
  font-weight: 800;
}

.small-button:hover {
  background: #dce9ff;
}

.text-button {
  padding: 5px;

  color: var(--blue);
  background: transparent;

  border: none;

  font-size: 0.75rem;
  font-weight: 750;
}

.text-button.danger {
  color: var(--red);
}


/* =========================
   AFFICHAGE DES PAGES
========================= */

.app-view {
  display: none;
}

.app-view.active {
  display: block;

  animation: viewArrival 0.22s ease-out;
}

@keyframes viewArrival {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   TABLEAU DE BORD
========================= */

.welcome-banner {
  margin-bottom: 22px;
  padding: 27px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 26%
    ),
    linear-gradient(
      130deg,
      var(--blue),
      #1746ae
    );

  border-radius: 16px;

  box-shadow:
    0 14px 35px rgba(40, 100, 235, 0.18);
}

.welcome-banner .eyebrow {
  color: #bed3ff;
}

.welcome-banner h2 {
  margin: 5px 0 7px;

  font-size: 1.45rem;
}

.welcome-banner p:last-child {
  max-width: 600px;
  margin: 0;

  color: #dce8ff;

  font-size: 0.85rem;
  line-height: 1.6;
}

.trust-card {
  margin-bottom: 22px;
}

.trust-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 7px 10px;
  color: #725219;
  background: #fff5d8;
  border: 1px solid #f0d48b;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}

.trust-score-badge.good {
  color: #1f6542;
  background: #e7f6ec;
  border-color: #bde3c8;
}

.trust-score-badge.complete {
  color: #ffffff;
  background: #16825d;
  border-color: #16825d;
}

.trust-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trust-check-item {
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  background: #fbfcff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.trust-check-item b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #8a5d12;
  background: #fff1cc;
  border-radius: 50%;
  font-size: .7rem;
}

.trust-check-item.done b {
  color: #ffffff;
  background: #16825d;
}

.trust-check-item strong,
.trust-check-item span {
  display: block;
}

.trust-check-item strong {
  margin-bottom: 3px;
  font-size: .78rem;
}

.trust-check-item span {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
}

.eyebrow {
  margin: 0;

  color: var(--blue);

  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.statistics-grid {
  margin-bottom: 22px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.statistic-card {
  min-height: 120px;
  padding: 19px;

  display: flex;
  align-items: flex-start;
  gap: 14px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 13px;

  box-shadow:
    0 4px 15px rgba(25, 45, 75, 0.04);
}

.statistic-icon {
  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 10px;

  font-size: 0.95rem;
  font-weight: 900;
}

.statistic-icon.blue {
  color: var(--blue);
  background: var(--blue-light);
}

.statistic-icon.green {
  color: var(--green);
  background: var(--green-light);
}

.statistic-icon.orange {
  color: var(--orange);
  background: var(--orange-light);
}

.statistic-icon.purple {
  color: var(--purple);
  background: var(--purple-light);
}

.statistic-card > div:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.statistic-card span {
  color: var(--muted);

  font-size: 0.72rem;
}

.statistic-card strong {
  margin: 8px 0 5px;

  color: var(--text);

  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.statistic-card small {
  color: #98a1af;

  font-size: 0.64rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}


/* =========================
   CARTES DE CONTENU
========================= */

.content-card {
  padding: 20px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow:
    0 4px 16px rgba(25, 45, 75, 0.04);
}

.content-card-header {
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.content-card-header h3 {
  margin: 0 0 4px;

  font-size: 0.95rem;
}

.content-card-header p {
  margin: 0;

  color: var(--muted);

  font-size: 0.72rem;
}


/* =========================
   ACTIONS RAPIDES
========================= */

.quick-actions {
  display: grid;
  gap: 9px;
}

.quick-actions button {
  width: 100%;
  padding: 11px;

  display: flex;
  align-items: center;
  gap: 11px;

  color: var(--text);
  background: #f8fafc;

  border: 1px solid transparent;
  border-radius: 10px;

  text-align: left;
}

.quick-actions button:hover {
  background: var(--blue-light);
  border-color: #d6e3fb;
}

.quick-actions button > span {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--blue);
  background: #ffffff;

  border-radius: 8px;

  font-weight: 900;
}

.quick-actions button div {
  display: flex;
  flex-direction: column;
}

.quick-actions strong {
  font-size: 0.75rem;
}

.quick-actions small {
  margin-top: 3px;

  color: var(--muted);

  font-size: 0.65rem;
}


/* =========================
   BARRES D’OUTILS
========================= */

.view-toolbar {
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.view-description {
  margin: 0;

  color: var(--muted);

  font-size: 0.82rem;
}

.search-box {
  width: min(380px, 100%);
  height: 42px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 9px;
}

.search-box span {
  color: #929dad;
}

.search-box input {
  height: 100%;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
}


/* =========================
   FORMULAIRES
========================= */

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-columns {
  grid-template-columns: 1fr 1fr;
}

.full-column {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;

  color: #45536a;

  font-size: 0.75rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 11px;

  color: var(--text);
  background: #fbfcfe;

  border: 1px solid #d5deea;
  border-radius: 8px;

  outline: none;

  font-size: 0.84rem;

  resize: vertical;
}

select {
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  background: #ffffff;
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(40, 100, 235, 0.1);
}


/* =========================
   TABLEAUX DE GESTION
========================= */

.table-wrapper {
  width: 100%;

  overflow-x: auto;
}

.management-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 0.78rem;
}

.management-table th {
  padding: 11px 12px;

  color: var(--muted);
  background: #f7f9fc;

  border-bottom: 1px solid var(--border);

  text-align: left;

  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.management-table td {
  padding: 13px 12px;

  border-bottom: 1px solid #edf0f4;

  vertical-align: middle;
}

.management-table tbody tr:hover {
  background: #fbfcff;
}

.management-table tbody tr:last-child td {
  border-bottom: none;
}


/* =========================
   STATUTS
========================= */

.status {
  width: fit-content;
  padding: 5px 9px;

  display: inline-flex;
  align-items: center;

  border-radius: 20px;

  font-size: 0.64rem;
  font-weight: 800;
}

.status.draft {
  color: #657184;
  background: #edf0f4;
}

.status.sent {
  color: var(--blue);
  background: var(--blue-light);
}

.status.accepted,
.status.paid {
  color: var(--green);
  background: var(--green-light);
}

.status.refused,
.status.late {
  color: var(--red);
  background: var(--red-light);
}

.status.pending {
  color: var(--orange);
  background: var(--orange-light);
}


/* =========================
   ÉTAT VIDE
========================= */

.empty-state {
  padding: 55px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.empty-icon {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  color: var(--blue);
  background: var(--blue-light);

  border-radius: 14px;

  font-size: 1.35rem;
}

.empty-state h3 {
  margin: 15px 0 6px;

  font-size: 0.95rem;
}

.empty-state p {
  max-width: 420px;
  margin: 0 0 17px;

  color: var(--muted);

  font-size: 0.75rem;
  line-height: 1.5;
}


/* =========================
   LISTE DES DOCUMENTS
========================= */

.document-list {
  display: grid;
}

/* Organisation d'entreprise — Zlotia Plus */
.organisation-hub { margin: 1.25rem 0 1.5rem; }
.organisation-tabs { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.organisation-tab { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .65rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }
.organisation-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.organisation-panel { display: none; }
.organisation-panel.active { display: block; }
.organisation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.organisation-list { display: grid; gap: .65rem; margin-top: 1rem; }
.organisation-row, .organisation-history-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .85rem; background: color-mix(in srgb, var(--surface) 88%, var(--primary) 4%); border: 1px solid var(--line); border-radius: .8rem; }
.organisation-row > div { display: grid; gap: .25rem; min-width: 0; }
.organisation-row > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.organisation-row small, .organisation-history-row small { display: block; color: var(--muted); line-height: 1.4; }
.organisation-history { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.organisation-history h4 { margin: 0; font-size: .95rem; }
.organisation-history-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; }
.organisation-history-row time { color: var(--muted); white-space: nowrap; font-size: .8rem; }

/* Documents & échéances — Zlotia Plus */
.compliance-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:28px 30px;border-radius:22px;color:#fff;background:linear-gradient(135deg,#173b61,#0d253f);margin-bottom:18px}.compliance-hero .eyebrow{color:#f1c96c}.compliance-hero h2{margin:5px 0 8px;font-size:1.7rem}.compliance-hero p{margin:0;color:#d9e5ef;max-width:650px}.compliance-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.compliance-stats article{padding:17px;border:1px solid #e6eaf0;border-radius:16px;background:#fff;display:grid;gap:5px}.compliance-stats span{font-size:.78rem;color:#647083}.compliance-stats b{font-size:1.55rem;color:#1f2d3d}.compliance-stats .is-valid{border-color:#bde7d2}.compliance-stats .is-valid b{color:#087a50}.compliance-stats .is-attention{border-color:#f1d493}.compliance-stats .is-attention b{color:#a66700}.compliance-stats .is-expired{border-color:#f3c0c0}.compliance-stats .is-expired b{color:#bb3434}.compliance-layout{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(390px,1.3fr);gap:18px;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid label{display:grid;gap:6px;color:#536174;font-size:.82rem;font-weight:700}.form-grid input,.form-grid select{min-width:0;padding:11px 12px;border:1px solid #dce3ea;border-radius:10px;background:#fff;color:#203040;font:inherit}.form-grid .form-full{grid-column:1/-1}.form-grid .check-field{display:flex;align-items:center;gap:9px}.form-grid .check-field input{width:auto}.form-actions{display:flex;justify-content:flex-end}.compliance-list{display:grid;gap:10px}.compliance-item{display:flex;justify-content:space-between;gap:16px;padding:15px;border:1px solid #e7ebf0;border-radius:14px;background:#fcfdff}.compliance-item-top{display:flex;gap:8px;align-items:center;font-size:.76rem;color:#6c7787}.compliance-item h4{margin:8px 0 4px;color:#253448}.compliance-item p{margin:0;color:#5b6777;font-size:.86rem}.compliance-item small{display:block;margin-top:7px;color:#687587}.compliance-file{display:block;margin-top:9px;font-size:.8rem;color:#617084}.status-pill{display:inline-flex;padding:4px 8px;border-radius:999px;font-weight:800}.status-pill.valid{background:#e4f7ed;color:#08734c}.status-pill.attention{background:#fff3d9;color:#a26300}.status-pill.expired{background:#fde8e8;color:#b62f2f}.compliance-item-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.text-button.danger{color:#b62f2f}.compliance-history{margin-top:0}@media(max-width:800px){.compliance-hero{align-items:flex-start;flex-direction:column}.compliance-stats{grid-template-columns:repeat(2,1fr)}.compliance-layout{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .form-full{grid-column:auto}.compliance-item{flex-direction:column}.compliance-item-actions{align-items:flex-start;flex-direction:row}}

.document-item {
  padding: 12px 4px;

  display: flex;
  align-items: center;
  gap: 12px;

  border-bottom: 1px solid #edf0f4;
}

.document-item:last-child {
  border-bottom: none;
}

.document-symbol {
  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--blue);
  background: var(--blue-light);

  border-radius: 8px;

  font-size: 0.8rem;
  font-weight: 900;
}

.document-details {
  min-width: 0;

  display: flex;
  flex-direction: column;

  flex: 1;
}

.document-details strong {
  font-size: 0.75rem;
}

.document-details span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 0.65rem;
}

.document-amount {
  font-size: 0.75rem;
  font-weight: 800;
}


/* =========================
   CLIENTS ET PRESTATIONS
========================= */

.clients-grid,
.services-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.client-card,
.service-card {
  padding: 18px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 12px;

  box-shadow:
    0 4px 14px rgba(25, 45, 75, 0.04);
}

.client-card-header,
.service-card-header {
  margin-bottom: 14px;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.client-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-avatar {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: #ffffff;
  background: var(--blue);

  border-radius: 10px;

  font-size: 0.8rem;
  font-weight: 900;
}

.client-identity strong,
.service-card strong {
  font-size: 0.83rem;
}

.client-card p,
.service-card p {
  margin: 5px 0;

  color: var(--muted);

  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 0;
}

.icon-button {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  color: var(--muted);
  background: transparent;

  border: none;
  border-radius: 7px;
}

.icon-button:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.icon-button.delete:hover {
  color: var(--red);
  background: var(--red-light);
}

.service-price {
  margin-top: 14px;

  color: var(--blue);

  font-size: 1.05rem;
  font-weight: 900;
}


/* =========================
   MESSAGE D’INFORMATION
========================= */

.information-banner {
  margin-bottom: 18px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 11px;

  color: #31527f;
  background: var(--blue-light);

  border: 1px solid #d3e1fa;
  border-radius: 10px;
}

.information-banner > span {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: #ffffff;
  background: var(--blue);

  border-radius: 50%;

  font-size: 0.75rem;
  font-weight: 900;
}

.information-banner p {
  margin: 0;

  font-size: 0.75rem;
  line-height: 1.5;
}

.document-kind {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status.credited {
  color: #815c17;
  background: #fff4d6;
}

.status.issued {
  color: #31527f;
  background: var(--blue-light);
}


/* =========================
   ÉDITEUR DU DEVIS
========================= */

.editor-toolbar {
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.editor-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-workspace {
  display: grid;

  grid-template-columns:
    minmax(400px, 0.8fr)
    minmax(540px, 1.2fr);

  align-items: start;
  gap: 25px;
}

.quote-form {
  display: grid;
  gap: 15px;
}

.form-panel {
  padding: 19px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 13px;

  box-shadow:
    0 4px 15px rgba(25, 45, 75, 0.04);
}

.onboarding-card {
  margin-bottom: 18px;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
}

.onboarding-step {
  width: 100%;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.onboarding-step span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 900;
}

.onboarding-step.done span {
  color: #0f8a4b;
  background: #dcfce7;
}

.onboarding-step strong,
.onboarding-step small {
  display: block;
}

.onboarding-step small {
  margin-top: 2px;
  color: var(--muted);
}

.onboarding-step b {
  color: var(--blue);
  font-size: .78rem;
}

.import-button {
  cursor: pointer;
}

.enterprise-hero {
  margin-bottom: 18px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #334155);
}

.enterprise-hero h2,
.enterprise-hero p {
  margin: 0;
}

.enterprise-hero h2 {
  margin-bottom: 8px;
}

.enterprise-hero > span {
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
  color: #dbeafe;
  background: rgba(255,255,255,.12);
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.enterprise-direction-card,
.enterprise-workflow {
  margin-bottom: 16px;
}

.enterprise-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.enterprise-kpi-grid div {
  padding: 14px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.enterprise-kpi-grid span,
.enterprise-kpi-grid small {
  color: var(--muted);
  font-size: .78rem;
}

.enterprise-kpi-grid strong {
  font-size: 1.35rem;
}

.enterprise-workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.enterprise-card {
  display: grid;
  gap: 14px;
}

.enterprise-feature-list {
  display: grid;
  gap: 10px;
}

.enterprise-feature-list div,
.enterprise-audit-row,
.enterprise-architecture-grid div {
  padding: 11px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}

.enterprise-feature-list span,
.enterprise-audit-row span,
.enterprise-audit-row small,
.enterprise-architecture-grid span {
  color: var(--muted);
  font-size: .8rem;
}

.enterprise-feature-list b,
.enterprise-architecture-grid b {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-light);
  font-size: .68rem;
}

.enterprise-audit-list {
  display: grid;
  gap: 8px;
}

.enterprise-architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.enterprise-command-center { margin: 20px 0; padding: 20px; border: 1px solid #c7d2fe; border-radius: 14px; background: linear-gradient(180deg,#f8faff,#fff); }
.enterprise-command-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.enterprise-tool-card { min-width:0; display:grid; align-content:start; gap:14px; }
.enterprise-tool-wide { grid-column:1/-1; }
.enterprise-inline-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.enterprise-inline-form label,.enterprise-stack-form { display:grid; gap:7px; }
.enterprise-stack-form { grid-template-columns:1fr 1fr; }
.enterprise-stack-form .button { grid-column:1/-1; }
.decision-result,.health-score-card { padding:14px; border-radius:11px; background:#eef2ff; }
.decision-result { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.decision-result div { display:grid; gap:4px; }
.decision-result span,.enterprise-ranked-list small,.enterprise-alert-list small,.executive-brief small { color:var(--muted); font-size:.78rem; }
.decision-result strong { font-size:1.12rem; }
.health-badge { padding:7px 11px; border-radius:999px; font-weight:800; color:#166534; background:#dcfce7; }
.health-score-card { display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center; }
.health-score-card strong { font-size:2rem; }
.health-meter { height:9px; overflow:hidden; border-radius:999px; background:#dbe4f0; }
.health-meter span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ef4444,#f59e0b,#22c55e); }
.enterprise-ranked-list,.enterprise-alert-list,.enterprise-search-results,.executive-brief { display:grid; gap:8px; }
.enterprise-list-row,.enterprise-alert,.memory-result { padding:10px; display:grid; gap:3px; border:1px solid var(--border); border-radius:9px; background:#fff; }
.enterprise-list-row { grid-template-columns:1fr auto; align-items:center; }
.enterprise-list-row small { grid-column:1/-1; }
.enterprise-alert[data-level="danger"] { border-color:#fecaca; background:#fff7f7; }
.enterprise-alert[data-level="warning"] { border-color:#fde68a; background:#fffdf2; }
.capacity-bars { display:grid; grid-template-columns:repeat(14,minmax(14px,1fr)); gap:4px; align-items:end; height:100px; padding-top:8px; }
.capacity-bars span { min-height:8px; border-radius:5px 5px 2px 2px; background:#6366f1; }
.appvista-partner-bubble { position:fixed; right:18px; bottom:18px; z-index:80; display:flex; align-items:center; gap:9px; padding:9px 13px 9px 9px; border:1px solid #dbeafe; border-radius:999px; color:#172033; background:rgba(255,255,255,.96); box-shadow:0 10px 28px rgba(15,23,42,.18); text-decoration:none; backdrop-filter:blur(10px); }
.appvista-partner-bubble:hover { transform:translateY(-2px); box-shadow:0 14px 34px rgba(15,23,42,.24); }
.appvista-partner-bubble > span:last-child { display:grid; line-height:1.08; }
.appvista-partner-bubble small { color:var(--muted); font-size:.66rem; }
.appvista-dot { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:#fff; font-weight:900; background:linear-gradient(135deg,#4f46e5,#0ea5e9); }

.role-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-preview span,
.team-preview span,
.workflow-steps span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.team-preview,
.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-steps span,
.approval-flow span {
  color: #fff;
  border-color: #334155;
  background: #334155;
}

.approval-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.approval-flow span {
  text-align: center;
}

.panel-title {
  margin-bottom: 17px;

  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.panel-icon {
  width: 31px;
  height: 31px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--blue);
  background: var(--blue-light);

  border-radius: 8px;

  font-size: 0.8rem;
  font-weight: 900;
}

.panel-title h2 {
  margin: 0 0 3px;

  font-size: 0.94rem;
}

.panel-title p {
  margin: 0;

  color: var(--muted);

  font-size: 0.7rem;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.panel-heading .panel-title {
  margin-bottom: 14px;
}


/* =========================
   PRESTATIONS DU DEVIS
========================= */

.line-items {
  display: grid;
  gap: 10px;
}

.line-item {
  padding: 10px;

  display: grid;

  grid-template-columns:
    minmax(130px, 1fr)
    62px
    95px
    32px;

  align-items: end;
  gap: 8px;

  background: #f8fafc;

  border-radius: 9px;
}

.line-item label {
  font-size: 0.66rem;
}

.remove-line {
  height: 38px;

  color: #98a2b0;
  background: transparent;

  border: none;
  border-radius: 7px;

  font-size: 1.15rem;
}

.remove-line:hover {
  color: var(--red);
  background: var(--red-light);
}


/* =========================
   INTERRUPTEUR TVA
========================= */

.toggle-row {
  position: relative;

  margin-top: 17px;

  display: flex;
  align-items: center;
  gap: 10px;

  cursor: pointer;
}

.toggle-row input {
  position: absolute;

  width: 1px;

  opacity: 0;
}

.toggle {
  position: relative;

  width: 38px;
  height: 22px;

  flex-shrink: 0;

  background: #cbd4df;

  border-radius: 12px;

  transition: 0.2s;
}

.toggle::after {
  content: "";

  position: absolute;
  top: 3px;
  left: 3px;

  width: 16px;
  height: 16px;

  background: #ffffff;

  border-radius: 50%;

  box-shadow:
    0 1px 4px rgba(50, 60, 80, 0.45);

  transition: 0.2s;
}

.toggle-row input:checked + .toggle {
  background: var(--blue);
}

.toggle-row input:checked + .toggle::after {
  transform: translateX(16px);
}


/* =========================
   APERÇU DU DEVIS
========================= */

.quote-preview-wrapper {
  position: sticky;
  top: 96px;
}

.preview-label {
  margin: 0 0 9px;

  color: #8792a2;

  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.quote-paper {
  position: relative;

  min-height: 790px;
  padding: 44px 47px 30px;

  overflow: hidden;

  background: #ffffff;

  box-shadow: var(--shadow);
}

.quote-topline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 7px;

  background: var(--document-accent);
}

.quote-header {
  padding-bottom: 32px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  border-bottom: 1px solid var(--border);
}

.quote-logo {
  max-width: 55%;

  display: flex;
  align-items: center;
  gap: 11px;
}

.quote-logo-box {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  overflow: hidden;

  color: #ffffff;
  background: var(--document-accent);

  border-radius: 9px;
}

.quote-logo-box img {
  width: 100%;
  height: 100%;

  display: none;

  background: #ffffff;

  object-fit: contain;
}

.quote-logo-box span {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  color: #ffffff;

  font-size: 1.1rem;
  font-weight: 900;
}

.quote-logo strong {
  overflow-wrap: anywhere;

  font-size: 0.95rem;
}

.quote-title {
  text-align: right;
}

.quote-title h2 {
  margin: 0;

  color: var(--text);

  font-size: 1.8rem;
  letter-spacing: 0.15em;
}

.quote-title p {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 0.68rem;
}

.quote-meta {
  padding: 27px 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}

.quote-meta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;

  color: #59677a;

  font-size: 0.68rem;
  line-height: 1.4;
}

.quote-meta small,
.quote-notes small {
  margin-bottom: 5px;

  color: var(--document-accent);

  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.quote-meta strong {
  color: var(--text);

  font-size: 0.8rem;
}

.date-row {
  margin-bottom: 24px;
  padding: 10px 12px;

  display: flex;
  gap: 28px;

  color: var(--muted);
  background: #f5f8fc;

  font-size: 0.65rem;
}

.date-row b {
  margin-left: 5px;

  color: var(--text);
}

.quote-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 0.69rem;
}

.quote-table th {
  padding: 10px;

  color: #ffffff;
  background: var(--document-accent);

  text-align: left;
  text-transform: uppercase;

  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.quote-table th:not(:first-child),
.quote-table td:not(:first-child) {
  text-align: right;
}

.quote-table td {
  padding: 12px 10px;

  border-bottom: 1px solid var(--border);
}

.quote-table td:first-child {
  font-weight: 650;
}

.totals {
  width: 50%;
  margin: 21px 0 14px auto;
}

.totals > div {
  padding: 7px 10px;

  display: flex;
  justify-content: space-between;
  gap: 15px;

  font-size: 0.68rem;
}

.totals .grand-total {
  margin-top: 6px;
  padding: 11px;

  color: #ffffff;
  background: var(--document-accent);

  border-radius: 5px;
}

.totals .grand-total strong {
  font-size: 0.92rem;
}

.vat-notice {
  color: var(--muted);

  text-align: right;
  font-size: 0.57rem;
}

.quote-notes {
  margin-top: 33px;
  padding: 14px;

  background: #f7f9fc;

  border-left: 3px solid var(--document-accent);
}

.quote-notes p {
  margin-bottom: 0;

  color: #59677a;

  white-space: pre-line;

  font-size: 0.65rem;
  line-height: 1.5;
}

.quote-footer {
  position: absolute;
  right: 47px;
  bottom: 25px;
  left: 47px;

  padding-top: 13px;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: #8792a2;

  border-top: 1px solid var(--border);

  font-size: 0.57rem;
}


/* =========================
   PARAMÈTRES ET LOGO
========================= */

.settings-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.settings-card {
  padding: 23px;
}

.document-color-picker {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.document-color-picker legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 750;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-options button {
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--swatch);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.color-options button:hover {
  transform: translateY(-2px);
}

.color-options button.active {
  box-shadow: 0 0 0 3px var(--text);
}

.document-color-picker small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.revenue-quarter-row td {
  color: var(--text);
  background: #f7f9fc;
  font-weight: 800;
}

.logo-upload {
  margin-bottom: 15px;

  display: grid;
  gap: 7px;
}

.logo-upload input {
  display: none;
}

.logo-upload span {
  width: fit-content;
  padding: 10px 15px;

  display: inline-flex;
  align-items: center;

  color: var(--blue);
  background: var(--blue-light);

  border: 1px solid #cfddf5;
  border-radius: 8px;

  font-size: 0.76rem;
  font-weight: 800;
}

.logo-upload span::before {
  content: "+";

  margin-right: 7px;

  font-size: 0.95rem;
  font-weight: 900;
}

.logo-upload span:hover {
  background: #dce9ff;
}

.current-logo-container {
  margin-bottom: 17px;
  padding: 11px;

  display: none;
  align-items: center;
  gap: 14px;

  background: #f8fafc;

  border-radius: 9px;
}

.current-logo-container img {
  width: 58px;
  height: 58px;

  padding: 4px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 8px;

  object-fit: contain;
}


/* =========================
   TARIFS ET ABONNEMENTS
========================= */

.subscription-heading {
  max-width: 650px;
  margin: 5px auto 30px;

  text-align: center;
}

.subscription-heading h2 {
  margin: 8px 0 10px;

  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.subscription-heading > p:last-child {
  margin: 0;

  color: var(--muted);

  font-size: 0.8rem;
  line-height: 1.6;
}

.pricing-grid {
  max-width: 1050px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.pricing-card {
  position: relative;

  padding: 25px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 15px;

  box-shadow:
    0 8px 25px rgba(25, 45, 75, 0.06);
}

.pricing-card.featured {
  border: 2px solid var(--blue);

  transform: translateY(-8px);

  box-shadow:
    0 18px 40px rgba(40, 100, 235, 0.14);
}

.recommended-label {
  position: absolute;
  top: -12px;
  left: 50%;

  padding: 5px 12px;

  color: #ffffff;
  background: var(--blue);

  border-radius: 20px;

  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.09em;

  transform: translateX(-50%);
}

.pricing-name {
  color: var(--blue);

  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 13px 0 7px;

  font-size: 1.7rem;
}

.pricing-card h3 small {
  color: var(--muted);

  font-size: 0.7rem;
  font-weight: 500;
}

.pricing-card > p {
  margin: 0;

  color: var(--muted);

  font-size: 0.75rem;
}

.pricing-card ul {
  min-height: 185px;
  margin: 22px 0;
  padding: 0;

  display: grid;
  align-content: start;
  gap: 11px;

  list-style: none;
}

.pricing-card li {
  position: relative;

  padding-left: 23px;

  color: #4e5b6e;

  font-size: 0.73rem;
}

.pricing-card li::before {
  content: "✓";

  position: absolute;
  left: 0;

  color: var(--green);

  font-weight: 900;
}


/* =========================
   PAIEMENTS
========================= */

.payments-statistics {
  grid-template-columns: repeat(2, 1fr);
}

.payment-item {
  padding: 13px 4px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  border-bottom: 1px solid #edf0f4;
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-information {
  display: flex;
  flex-direction: column;
}

.payment-information strong {
  font-size: 0.78rem;
}

.payment-information span {
  margin-top: 4px;

  color: var(--muted);

  font-size: 0.66rem;
}

.payment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-actions select,
.payment-actions input {
  width: auto;
  min-width: 115px;

  padding: 7px 9px;

  font-size: 0.7rem;
}


/* =========================
   MODALES
========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;

  background:
    rgba(9, 23, 43, 0.62);

  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1;

  width: min(500px, 100%);
  max-height: 90vh;
  padding: 23px;

  overflow-y: auto;

  background: #ffffff;

  border-radius: 15px;

  box-shadow:
    0 24px 70px rgba(5, 20, 45, 0.3);

  animation: modalArrival 0.2s ease-out;
}

@keyframes modalArrival {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  margin-bottom: 21px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.modal-header h2 {
  margin: 4px 0 0;

  font-size: 1.1rem;
}

.modal-close {
  width: 34px;
  height: 34px;

  color: var(--muted);
  background: #f5f7fa;

  border: none;
  border-radius: 8px;

  font-size: 1.2rem;
}

.modal-close:hover {
  color: var(--red);
  background: var(--red-light);
}

.modal-actions {
  margin-top: 22px;

  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

/* =========================
   ASSISTANT DEVIS PRO
========================= */

.assistant-button {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #d7aa43, #9b7017);
  box-shadow: 0 10px 22px rgba(143, 104, 23, .25);
}

.assistant-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #c89a32, #7f5b12);
}

.quote-assistant-modal-content { width: min(650px, 100%); }

.quote-assistant-intro {
  margin: -5px 0 19px;
  color: var(--muted);
  line-height: 1.55;
}

.quote-assistant-form { display: grid; gap: 15px; }
.quote-assistant-form .form-grid { gap: 15px; }

.quote-assistant-hint {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .assistant-button { width: 100%; }
}

/* La navigation système Android couvre le bas des webviews/PWA :
   on réserve une zone vide pour que le profil et la déconnexion restent cliquables. */
@media (max-width: 850px) {
  .software-layout.authenticated .sidebar-bottom {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* =========================
   TABLEAU DE BORD — MOBILE COMPACT
   Évite que l'accueil occupe tout le premier écran sur téléphone.
========================= */
@media (max-width: 600px) {
  #dashboardView .welcome-banner {
    margin-bottom: 14px;
    padding: 20px 18px;
    gap: 16px;
    border-radius: 14px;
  }

  #dashboardView .welcome-banner h2 {
    margin: 4px 0 8px;
    font-size: 1.55rem;
    line-height: 1.18;
  }

  #dashboardView .welcome-banner p:last-child {
    font-size: .8rem;
    line-height: 1.45;
  }

  #dashboardView .welcome-banner .button {
    min-height: 42px;
    padding: 10px 15px;
    font-size: .82rem;
  }

  #dashboardView .statistics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }

  #dashboardView .statistic-card {
    min-height: 108px;
    padding: 13px;
    gap: 10px;
    border-radius: 12px;
  }

  #dashboardView .statistic-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: .82rem;
  }

  #dashboardView .statistic-card span {
    font-size: .66rem;
    line-height: 1.25;
  }

  #dashboardView .statistic-card strong {
    margin: 6px 0 4px;
    font-size: 1.05rem;
  }

  #dashboardView .statistic-card small {
    font-size: .59rem;
    line-height: 1.25;
  }
}

.price-input {
  position: relative;
}

.price-input input {
  padding-right: 38px;
}

.price-input span {
  position: absolute;
  top: 50%;
  right: 13px;

  color: var(--muted);

  font-size: 0.8rem;
  font-weight: 800;

  transform: translateY(-50%);
}


/* =========================
   NOTIFICATION
========================= */

.toast {
  position: fixed;
  bottom: 25px;
  left: calc(
    50% + var(--sidebar-width) / 2
  );
  z-index: 200;

  padding: 11px 18px;

  color: #ffffff;
  background: var(--navy);

  border-radius: 9px;

  opacity: 0;
  pointer-events: none;

  font-size: 0.8rem;

  box-shadow:
    0 10px 30px rgba(10, 25, 50, 0.2);

  transform:
    translate(-50%, 20px);

  transition:
    opacity 0.25s,
    transform 0.25s;
}

.toast.show {
  opacity: 1;

  transform:
    translate(-50%, 0);
}


/* =========================
   ÉCRANS MOYENS
========================= */

@media (max-width: 1200px) {
  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-workspace {
    grid-template-columns: 1fr;
  }

  .quote-preview-wrapper {
    position: static;
  }

  .quote-paper {
    max-width: 760px;
    margin: auto;
  }
}


/* =========================
   TABLETTES ET TÉLÉPHONES
========================= */

@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);

    transition: transform 0.25s;
  }

  .sidebar.open {
    transform: translateX(0);

    box-shadow:
      15px 0 45px rgba(5, 20, 45, 0.25);
  }

  .close-sidebar,
  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .main-content {
    margin-left: 0;
  }

  .page-content {
    padding: 22px 16px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .toast {
    left: 50%;
  }

  .dashboard-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .trust-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    max-width: 600px;
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}


/* =========================
   PETITS TÉLÉPHONES
========================= */

@media (max-width: 600px) {
  /* Barre supérieure : une seule ligne, sans collision avec la barre système Android. */
  .topbar {
    min-height: 78px;
    padding: max(26px, calc(env(safe-area-inset-top) + 10px)) 12px 10px;
    align-items: center;
    gap: 8px;
  }

  .topbar-left {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
  }

  .mobile-menu-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .topbar .page-eyebrow,
  .topbar .save-state {
    display: none;
  }

  .topbar h1 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 0;
  }

  .topbar-actions .button {
    min-height: 42px;
    padding: 8px 10px;
    font-size: .68rem;
    line-height: 1.1;
  }

  .page-content {
    padding-top: 16px;
  }

  .welcome-banner {
    padding: 22px;

    align-items: flex-start;
    flex-direction: column;
  }

  .statistics-grid,
  .payments-statistics,
  .trust-checklist {
    grid-template-columns: 1fr;
  }

  .clients-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .view-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .view-toolbar > .button {
    width: 100%;
  }

  .form-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .full-column {
    grid-column: auto;
  }

  .editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .editor-toolbar-actions .button {
    padding: 9px 7px;

    font-size: 0.67rem;
  }

  .line-item {
    grid-template-columns:
      minmax(95px, 1fr)
      58px
      83px
      29px;
  }

  .quote-paper {
    min-height: 720px;
    padding: 32px 20px 25px;
  }

  .quote-title h2 {
    font-size: 1.25rem;
  }

  .quote-meta {
    gap: 18px;
  }

  .totals {
    width: 67%;
  }

  .quote-footer {
    right: 20px;
    left: 20px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================
   IMPRESSION ET PDF
========================= */

@media print {
  body {
    background: #ffffff;
  }

  .no-print,
  .sidebar,
  .topbar,
  .quote-form,
  .editor-toolbar,
  .preview-label {
    display: none !important;
  }

  .main-content {
    margin: 0;
  }

  .page-content {
    max-width: none;
    padding: 0;
  }

  .app-view {
    display: none !important;
  }

  #quoteEditorView {
    display: block !important;
  }

  .quote-workspace {
    display: block;
  }

  .quote-preview-wrapper {
    position: static;
  }

  .quote-paper {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 16mm 17mm 12mm;

    box-shadow: none;
  }

  .quote-footer {
    right: 17mm;
    bottom: 12mm;
    left: 17mm;
  }

  @page {
    size: A4;
    margin: 0;
  }
}

/* =========================
   ZLOTIA PLUS — PILOTAGE
========================= */

.navigation-title-pilotage { color: #a7b6ff; }
.navigation-link-pilotage { color: #eef1ff; background: rgba(112, 89, 143, .22); }
.navigation-link-pilotage:hover { background: rgba(112, 89, 143, .34); }

.pilotage-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 30px;
  color: #f8faff;
  background: #273247;
  border-radius: 16px;
}

.pilotage-hero h2 { margin: 6px 0 10px; color: inherit; font-size: 1.75rem; }
.pilotage-hero p:not(.eyebrow) { max-width: 630px; margin: 0; color: #d2d9e8; line-height: 1.6; }
.pilotage-hero .eyebrow { color: #b9c5ff; }
.pilotage-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pilotage-hero .button.light { color: #293550; background: #fff; }
.pilotage-hero .button.secondary { color: #fff; border-color: rgba(255,255,255,.38); background: transparent; }

.view-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.view-heading-row h2 { margin: 4px 0 8px; color: var(--text); font-size: 1.65rem; }
.view-heading-row > div > p:not(.eyebrow) { margin: 0; color: var(--muted); }

.pilotage-list { display: grid; gap: 0; }
.pilotage-row, .pilotage-prospect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.pilotage-row:last-child, .pilotage-prospect-row:last-child { border-bottom: 0; }
.pilotage-row-main { display: grid; min-width: 0; gap: 4px; flex: 1; }
.pilotage-row-main strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.pilotage-row-main small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.followup-kind { min-width: 58px; padding: 5px 7px; border-radius: 999px; color: #fff; font-size: .64rem; font-weight: 800; text-align: center; }
.followup-kind.invoice { background: #bd4d3f; }
.followup-kind.quote { background: #7b61ce; }
.followup-kind.task { background: #b07816; }
.followup-action { white-space: nowrap; }
.pilotage-date { color: var(--muted); font-size: .75rem; text-align: right; }
.pilotage-date.is-overdue { color: #b74242; font-weight: 750; }
.pilotage-row.is-done .pilotage-row-main { opacity: .55; text-decoration: line-through; }
.pilotage-check { position: relative; display: grid; width: 20px; height: 20px; flex: 0 0 20px; cursor: pointer; }
.pilotage-check input { position: absolute; opacity: 0; }
.pilotage-check span { width: 18px; height: 18px; border: 1px solid #b4bfd0; border-radius: 6px; }
.pilotage-check input:checked + span { border-color: #47765b; background: #47765b; }
.pilotage-check input:checked + span::after { display: block; color: #fff; content: "✓"; font-size: .72rem; font-weight: 900; line-height: 18px; text-align: center; }
.pilotage-calendar-icon, .pilotage-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: #5b4b9b; background: #f0edf8; border-radius: 9px; font-size: .94rem; font-weight: 800; }
.pilotage-avatar { color: #315a95; background: #eaf1fb; font-size: .68rem; }
.pilotage-empty { display: grid; gap: 6px; padding: 25px 0 10px; text-align: center; }
.pilotage-empty strong { color: var(--text); }
.pilotage-empty span { color: var(--muted); font-size: .82rem; }
.pilotage-search { max-width: 240px; }
.pilotage-status-select { width: 135px; padding: 8px 9px; font-size: .76rem; }
.pilotage-source { min-width: 105px; color: var(--muted); font-size: .74rem; }
.pilotage-row-actions { display: flex; justify-content: flex-end; gap: 7px; min-width: 130px; }

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(205px, 1fr));
  align-items: start;
  gap: 12px;
  min-width: max-content;
  padding-bottom: 8px;
}

.pipeline-board::before { display: none; }
#pipelineView { overflow-x: auto; }
.pipeline-column { min-height: 320px; overflow: hidden; background: #f4f6fa; border: 1px solid var(--border); border-radius: 12px; }
.pipeline-column > header { display: flex; align-items: center; justify-content: space-between; padding: 14px; color: var(--text); border-bottom: 1px solid var(--border); font-size: .8rem; }
.pipeline-column > header span { display: grid; min-width: 22px; height: 22px; place-items: center; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 50%; font-size: .68rem; }
.pipeline-column-content { display: grid; gap: 9px; padding: 10px; }
.pipeline-card { display: grid; gap: 7px; padding: 13px; background: #fff; border: 1px solid #e5e9f0; border-radius: 9px; box-shadow: 0 2px 5px rgba(25, 40, 65, .04); }
.pipeline-card strong { color: var(--text); font-size: .84rem; }
.pipeline-card span { color: var(--muted); font-size: .72rem; }
.pipeline-card small { color: #5b6890; font-size: .68rem; }
.pipeline-card > div { display: flex; gap: 7px; padding-top: 4px; }
.pipeline-card button { padding: 5px 7px; color: #4b4e93; background: #f0effb; border: 0; border-radius: 5px; font-size: .67rem; font-weight: 750; cursor: pointer; }
.pipeline-empty { margin: 22px 0; color: var(--muted); font-size: .72rem; text-align: center; }

.client-pilotage-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.client-pilotage-summary div { display: grid; gap: 3px; }
.client-pilotage-summary span { color: var(--muted); font-size: .65rem; }
.client-pilotage-summary b { overflow: hidden; color: var(--text); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.client-pilotage-actions { display: flex; gap: 12px; margin-top: 13px; }
.client-category { display: inline-flex; margin-top: 4px; padding: 4px 8px; color: #4c5493; background: #eff0fb; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.client-note { margin: 10px 0 0 !important; padding: 9px 10px; color: #586174 !important; background: #f7f8fb; border-left: 3px solid #c9cdef; border-radius: 5px; font-size: .73rem; line-height: 1.45; white-space: pre-line; }
.client-marketing-ok { display: inline-flex; margin: 8px 0 0 6px; padding: 4px 8px; color: #256041; background: #e7f5eb; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.client-discussion-preview { display: grid; gap: 4px; margin-top: 11px; padding: 10px; background: #f7f8fb; border-radius: 7px; }
.client-discussion-preview span { color: var(--muted); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.client-discussion-preview p { margin: 0 !important; color: #4b5668 !important; font-size: .73rem; }
.marketing-consent-field { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.marketing-consent-field input { width: auto; }
.plus-card { border-color: #5f4f9d; box-shadow: 0 16px 34px rgba(68, 51, 120, .14); }
.campaign-guidance { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 16px; color: #475163; background: #f2f5fa; border-left: 3px solid #6673b8; border-radius: 7px; font-size: .78rem; }
.campaign-guidance strong { color: var(--text); }
.campaign-list { display: grid; }
.campaign-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.campaign-row:last-child { border-bottom: 0; }
.campaign-row-main { display: grid; gap: 5px; min-width: 0; }
.campaign-row-main strong { color: var(--text); }
.campaign-row-main small, .campaign-row-main > span:last-child { color: var(--muted); font-size: .75rem; }
.campaign-status { width: max-content; padding: 4px 8px; border-radius: 999px; color: #536071; background: #edf0f4; font-size: .65rem; font-weight: 800; }
.campaign-status.scheduled { color: #5d4996; background: #efecfa; }
.campaign-status.sent { color: #216243; background: #e7f5eb; }
.campaign-recipient-preview { display: grid; gap: 4px; padding: 11px 13px; color: var(--muted); background: #f5f7fa; border-radius: 8px; font-size: .76rem; }
.campaign-recipient-preview strong { color: var(--text); }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 18px; }
.calculator-form-section{display:grid;gap:3px;padding:13px 14px;color:#5a4317;background:#fff7e2;border:1px solid #ead19a;border-radius:12px}.calculator-form-section strong{font-size:.83rem}.calculator-form-section span{color:#79633b;font-size:.74rem;line-height:1.4}.market-method{display:grid;gap:4px;padding:12px;border:1px solid #ead19a;border-radius:11px;color:#6c562d;background:#fffdf8;font-size:.76rem;line-height:1.4}.market-method strong{color:#4a3713;font-size:.75rem}
.calculator-result-card { display: grid; align-content: start; gap: 16px; background: #273247; }
.calculator-result-card .eyebrow, .calculator-result-card > small { color: #c7d3ed; }
.calculator-result-card > strong { color: #fff; font-size: 2.5rem; letter-spacing: -.06em; }
.profit-status { width: max-content; padding: 6px 9px; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.profit-status.neutral { color: #e0e6f0; background: rgba(255,255,255,.14); }
.profit-status.good { color: #dbfce7; background: rgba(31,138,81,.55); }
.profit-status.warning { color: #fff0bd; background: rgba(183,123,18,.65); }
.profit-status.bad { color: #ffe1e1; background: rgba(179,55,55,.65); }
.calculator-breakdown { display: grid; gap: 1px; overflow: hidden; border-radius: 9px; }
.calculator-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 12px; color: #dce5f5; background: rgba(255,255,255,.09); font-size: .8rem; }
.calculator-breakdown b { color: #fff; }
@media (max-width: 800px) { .calculator-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .campaign-row { align-items: flex-start; flex-direction: column; } }

.cashflow-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cashflow-notice { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 16px; color: #485669; background: #f2f5fa; border-left: 3px solid #5d70b8; border-radius: 8px; font-size: .78rem; line-height: 1.45; }
.cashflow-notice strong { color: var(--text); }
.cashflow-balance-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 27px 30px; color: #fff; background: linear-gradient(135deg, #26344b, #364d6a); border-radius: 15px; box-shadow: 0 14px 35px rgba(28, 48, 75, .15); }
.cashflow-balance-card > div { display: grid; gap: 6px; }
.cashflow-balance-card p { margin: 0; color: #c9d7ed; font-size: .78rem; font-weight: 750; }
.cashflow-balance-card strong { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.06em; }
.cashflow-balance-card span { color: #e7eefb; font-size: .88rem; font-weight: 750; }
.cashflow-balance-card small { color: #b8c7dd; font-size: .7rem; }
.cashflow-balance-icon { display: grid; width: 58px; height: 58px; place-items: center; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 17px; font-size: 1.65rem; font-weight: 850; }
.cashflow-statistics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statistic-icon.red { color: #b84d50; background: #fdebed; }
.cashflow-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr); gap: 18px; margin-bottom: 18px; }
.cashflow-chart { display: flex; align-items: end; justify-content: space-between; min-height: 232px; gap: 12px; padding: 17px 5px 0; border-bottom: 1px solid var(--border); }
.cashflow-chart-month { display: grid; flex: 1; min-width: 0; gap: 9px; text-align: center; }
.cashflow-chart-month small { color: var(--muted); font-size: .66rem; font-weight: 750; }
.cashflow-bars { height: 185px; display: flex; align-items: end; justify-content: center; gap: 5px; }
.cashflow-bar { width: min(22px, 36%); min-height: 4px; border-radius: 5px 5px 1px 1px; transition: height .2s ease; }
.cashflow-bar.income, .cashflow-legend.income { background: #4e9d70; }
.cashflow-bar.expense, .cashflow-legend.expense { background: #d05a60; }
.cashflow-legend { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; border-radius: 50%; }
.bank-transactions-list { display: grid; }
.bank-transaction-row { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bank-transaction-row:last-child { border-bottom: 0; }
.bank-transaction-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; font-weight: 900; }
.bank-transaction-icon.income { color: #266849; background: #e7f5eb; }
.bank-transaction-icon.expense { color: #b13e47; background: #fdebed; }
.bank-transaction-main { display: grid; flex: 1; min-width: 0; gap: 4px; }
.bank-transaction-main strong { overflow: hidden; color: var(--text); font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.bank-transaction-main small { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.bank-transaction-amount { min-width: 92px; font-size: .82rem; text-align: right; white-space: nowrap; }
.bank-transaction-amount.income { color: #28724d; }
.bank-transaction-amount.expense { color: #b54850; }
.cashflow-forecast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 18px; }
.cashflow-forecast-card { display: grid; gap: 7px; padding: 21px; background: #f3f6fb; border-color: #dfe6f1; }
.cashflow-forecast-card.salary { background: #edf7f0; border-color: #d5eadb; }
.cashflow-forecast-card > strong { color: #273247; font-size: 1.7rem; letter-spacing: -.04em; }
.cashflow-forecast-card > span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.price-just-result { display: grid !important; gap: 3px !important; padding: 13px !important; background: rgba(91, 91, 214, .34) !important; }
.price-just-result small { color: #dce5f5; font-size: .67rem; }
.offer-simulator-card { margin-top: 18px; }
.offer-simulator { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.offer-simulator-item { display: grid; gap: 6px; padding: 17px; border: 1px solid var(--border); border-radius: 10px; }
.offer-simulator-item.recommended { color: #fff; background: #4e5cc8; border-color: #4e5cc8; box-shadow: 0 10px 22px rgba(67, 81, 180, .2); }
.offer-simulator-item span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.offer-simulator-item strong { color: var(--text); font-size: 1.25rem; }
.offer-simulator-item small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.offer-simulator-item.recommended span, .offer-simulator-item.recommended strong, .offer-simulator-item.recommended small { color: #fff; }
.call-mode-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -4px 0 18px; padding: 27px 29px; color: #fff; background: linear-gradient(130deg, #263249, #285e73); border-radius: 15px; }
.call-mode-hero .eyebrow { color: #c3e8f1; }
.call-mode-hero h2 { margin: 7px 0; color: #fff; font-size: 1.65rem; }
.call-mode-hero p:not(.eyebrow) { max-width: 630px; margin: 0; color: #e0f2f7; font-size: .84rem; line-height: 1.5; }
.call-timer { display: grid; min-width: 120px; gap: 5px; padding: 15px 17px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.17); border-radius: 12px; text-align: center; }
.call-timer span { color: #d7eff6; font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.call-timer strong { color: #fff; font-size: 1.45rem; letter-spacing: .04em; }
.call-mode-notice { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 16px; color: #46596a; background: #eef6f8; border-left: 3px solid #418aa0; border-radius: 8px; font-size: .78rem; line-height: 1.45; }
.call-mode-notice strong { color: var(--text); }
.call-mode-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 18px; margin-bottom: 18px; }
.call-client-card, .call-price-card { min-height: 100%; }
.call-phone-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.call-phone-actions .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.call-phone-actions .button.disabled { opacity: .5; cursor: not-allowed; }
.call-price-result { display: grid; gap: 5px; margin-top: 19px; padding: 18px; background: #263249; border-radius: 11px; }
.call-price-result span, .call-price-result small { color: #c8d6ed; }
.call-price-result span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.call-price-result strong { color: #fff; font-size: 2rem; letter-spacing: -.05em; }
.call-price-result small { font-size: .72rem; line-height: 1.45; }
.call-offer-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.call-offer-choice { position: relative; display: grid; gap: 6px; min-height: 145px; padding: 18px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 11px; text-align: left; cursor: pointer; }
.call-offer-choice:hover { border-color: #6a79c9; }
.call-offer-choice.selected { color: #fff; background: #4e5cc8; border-color: #4e5cc8; box-shadow: 0 10px 24px rgba(66, 79, 177, .22); }
.call-offer-choice span { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.call-offer-choice strong { color: var(--text); font-size: 1.4rem; }
.call-offer-choice small { color: var(--muted); font-size: .72rem; line-height: 1.42; }
.call-offer-choice b { position: absolute; top: 10px; right: 10px; padding: 4px 6px; color: #fff; background: rgba(255,255,255,.2); border-radius: 999px; font-size: .6rem; }
.call-offer-choice.selected span, .call-offer-choice.selected strong, .call-offer-choice.selected small { color: #fff; }
.call-quote-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.call-quote-action small { color: var(--muted); font-size: .73rem; line-height: 1.4; }
.copilot-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: -4px 0 20px; padding: 27px 29px; color: #fff; background: linear-gradient(130deg, #263249, #4d5dc1); border-radius: 15px; }
.copilot-hero .eyebrow { color: #cbd5ff; }
.copilot-hero h2 { margin: 7px 0; color: #fff; font-size: 1.65rem; }
.copilot-hero p:not(.eyebrow) { max-width: 650px; margin: 0; color: #e2e7fb; font-size: .85rem; line-height: 1.5; }
.copilot-actions-grid, .copilot-insights-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 18px; }
.copilot-list { display: grid; }
.copilot-action { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 0; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--border); text-align: left; cursor: pointer; }
.copilot-action:last-child { border-bottom: 0; }
.copilot-action > span { display: grid; width: 26px; height: 26px; place-items: center; flex: 0 0 26px; color: #4d5dc1; background: #edf0ff; border-radius: 8px; font-weight: 900; }
.copilot-action.danger > span { color: #ad454d; background: #fdecee; }
.copilot-action.warning > span { color: #9a6812; background: #fff4d8; }
.copilot-action div { display: grid; flex: 1; gap: 4px; min-width: 0; }
.copilot-action strong { overflow: hidden; color: var(--text); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.copilot-action small, .copilot-muted { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.copilot-action > b { color: var(--muted); }
.copilot-big-number { display: block; margin: 9px 0 15px; color: var(--text); font-size: 1.5rem; letter-spacing: -.04em; }
.copilot-progress { height: 9px; overflow: hidden; background: #edf0f5; border-radius: 999px; }
.copilot-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #5870d9, #53a276); border-radius: inherit; transition: width .25s ease; }
.copilot-insight { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.copilot-insight:last-child { border-bottom: 0; }
.copilot-insight strong { color: var(--text); font-size: .82rem; }
.copilot-insight span { color: var(--muted); font-size: .74rem; line-height: 1.45; }
.client-value-list { display: grid; }
.client-value-row { display: grid; grid-template-columns: minmax(160px, 1.3fr) .7fr .7fr; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.client-value-row:last-child { border-bottom: 0; }
.client-value-row > div:first-child { display: grid; gap: 4px; min-width: 0; }
.client-value-row strong { overflow: hidden; color: var(--text); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.client-value-row small, .client-value-row span { color: var(--muted); font-size: .7rem; }
.client-value-row > div:not(:first-child) { display: grid; gap: 3px; text-align: right; }
.client-value-row b { color: #286b49; font-size: .8rem; }
.client-value-row b.is-pending { color: #9b6913; }
.intervention-guidance { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 16px; color: #4a596b; background: #f3f5f9; border-left: 3px solid #6b75bf; border-radius: 8px; font-size: .78rem; line-height: 1.45; }
.intervention-guidance strong { color: var(--text); }
.interventions-list { display: grid; gap: 12px; }
.intervention-card { display: flex; align-items: center; gap: 16px; padding: 17px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 12px rgba(30, 50, 76, .035); }
.intervention-date { display: grid; min-width: 92px; gap: 4px; padding-right: 16px; border-right: 1px solid var(--border); }
.intervention-date strong { color: var(--text); font-size: .75rem; }
.intervention-date span { color: #5065bc; font-size: .7rem; font-weight: 800; }
.intervention-main { display: grid; flex: 1; gap: 5px; min-width: 0; }
.intervention-main > strong { color: var(--text); }
.intervention-main > span, .intervention-main p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.intervention-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.view-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.intervention-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.intervention-insights article { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.intervention-insights span { color: var(--muted); font-size: .75rem; }
.intervention-insights strong { color: var(--text); font-size: 1.06rem; }
.intervention-client-costs { margin: 0 0 16px; }
.intervention-client-costs-list { display: grid; gap: 8px; }
.intervention-client-cost-row { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(3, auto); align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.intervention-client-cost-row:last-child { border-bottom: 0; }
.intervention-client-cost-row span { color: var(--muted); }
.intervention-client-cost-row b.positive { color: #11734f; }
.intervention-client-cost-row b.negative { color: #ad3343; }
.intervention-rich-card { align-items: flex-start; }
.intervention-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.intervention-tags b { padding: 4px 7px; border-radius: 7px; color: #5e6a7b; background: #f2f5f9; font-size: .67rem; font-weight: 700; }
.intervention-tags b.positive { color: #11734f; background: #e4f6ee; }
.intervention-tags b.negative { color: #aa3949; background: #fff0f2; }
.intervention-next-action { color: #4f60a6 !important; font-weight: 700; }
.intervention-proofs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.intervention-proofs img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid #dbe2ec; }
.intervention-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.intervention-checklist legend { padding: 0 5px; color: var(--text); font-size: .8rem; font-weight: 750; }
.intervention-checklist label { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: .77rem; }
.intervention-checklist input { width: auto; }
.profit-decision { margin: 10px 0 16px; padding: 10px; border-radius: 9px; font-size: .78rem; line-height: 1.4; }
.profit-decision.neutral { color: #617083; background: #f2f5f9; }
.profit-decision.good { color: #11734f; background: #e5f7ef; }
.profit-decision.warning { color: #9a5a12; background: #fff5dc; }
.profit-decision.bad { color: #ad3343; background: #fff0f2; }
@media (max-width: 800px) { .cashflow-layout { grid-template-columns: 1fr; } .cashflow-statistics { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .cashflow-forecast-grid, .copilot-actions-grid, .copilot-insights-grid, .call-mode-layout { grid-template-columns: 1fr; } .offer-simulator { grid-template-columns: 1fr; } .copilot-hero, .call-mode-hero { align-items: flex-start; flex-direction: column; } }
@media (max-width: 800px) { .enterprise-grid, .enterprise-workflow, .organisation-grid { grid-template-columns: 1fr; } .enterprise-hero { flex-direction: column; } .enterprise-kpi-grid, .enterprise-architecture-grid, .approval-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .organisation-row { flex-direction: column; } .organisation-row > div:last-child { justify-content: flex-start; } .organisation-history-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .enterprise-kpi-grid, .enterprise-architecture-grid, .approval-flow { grid-template-columns: 1fr; } }
@media (max-width:800px) { .enterprise-command-grid { grid-template-columns:1fr; } .enterprise-tool-wide { grid-column:auto; } .enterprise-inline-form { grid-template-columns:repeat(2,minmax(0,1fr)); } .decision-result { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .enterprise-command-center { padding:12px; } .enterprise-inline-form,.enterprise-stack-form,.decision-result { grid-template-columns:1fr; } .enterprise-stack-form .button { grid-column:auto; } .appvista-partner-bubble { right:10px; bottom:10px; } .appvista-partner-bubble > span:last-child { display:none; } }

/* =========================
   LANDING ZLOTIA V29 — 3D DYNAMIQUE
========================= */

.landing-page.landing-v29 {
  --hero-purple: #5847f5;
  --hero-purple-dark: #3725bf;
  --hero-cyan: #4cc9f0;
  background:
    radial-gradient(circle at 78% 12%, rgba(122, 92, 255, .10), transparent 28%),
    radial-gradient(circle at 92% 34%, rgba(76, 201, 240, .08), transparent 24%),
    #fff;
}

.landing-v29 .landing-header {
  position: relative;
  z-index: 20;
  min-height: 86px;
  border-bottom: 0;
}

.landing-v29 .landing-brand-mark {
  border-radius: 11px;
  background: linear-gradient(145deg, #6d5dfc, #4433dc);
  box-shadow: 0 9px 22px rgba(88, 71, 245, .22);
}

.landing-v29 .landing-button {
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 999px;
  background: #11131a;
  box-shadow: 0 12px 28px rgba(17, 19, 26, .16);
}

.landing-v29 .landing-button:hover { background: #292d38; }
.landing-v29 .landing-button-small { min-height: 42px; padding-inline: 18px; }

.landing-v29 .landing-hero {
  width: min(1280px, calc(100% - 40px));
  grid-template-columns: minmax(410px, .8fr) minmax(560px, 1.2fr);
  gap: 34px;
  min-height: 690px;
  padding: 54px 0 96px;
}

.landing-v29 .landing-copy { position: relative; z-index: 8; }
.landing-product-pill {
  width: max-content;
  margin-bottom: 28px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 26px rgba(31,41,55,.05);
  font-size: .7rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}
.landing-product-pill span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.landing-v29 .landing-copy .landing-eyebrow { color: var(--hero-purple); }
.landing-v29 .landing-copy h1 { max-width: 600px; color: #0b0d12; font-size: clamp(3rem, 5.25vw, 5rem); line-height: .98; letter-spacing: -.068em; }
.landing-v29 .landing-copy h1 em { color: var(--hero-purple); font-style: normal; }
.landing-v29 .landing-h1-keyword { display:block; max-width:520px; margin:0 0 13px; color:#88611b; font-size:clamp(.68rem,1.05vw,.88rem); font-weight:800; letter-spacing:.1em; line-height:1.35; text-transform:uppercase; }
.landing-metiers .landing-section-heading > p:last-child { max-width:690px; color:#687284; line-height:1.65; }
.landing-metier-links { grid-template-columns:repeat(4,1fr); }
.landing-v29 .landing-lead { max-width: 580px; margin-top: 28px; color: #566174; font-size: 1.04rem; }
.landing-text-link { font-weight: 800; }

.landing-visual-stage {
  position: relative;
  min-height: 590px;
  perspective: 1600px;
  isolation: isolate;
}
.landing-visual-stage::before {
  content: "";
  position: absolute;
  inset: 7% -8% 5% 3%;
  z-index: -3;
  border-radius: 48% 52% 46% 54%;
  background: radial-gradient(circle at 50% 50%, rgba(102, 80, 255, .17), rgba(102, 80, 255, .04) 50%, transparent 72%);
  filter: blur(5px);
}
.landing-orbit { position:absolute; z-index:-2; border:1px solid rgba(105, 83, 244, .15); border-radius:50%; transform:rotate(-15deg); }
.landing-orbit-one { width:560px; height:310px; right:0; top:105px; }
.landing-orbit-two { width:440px; height:510px; right:84px; top:30px; transform:rotate(34deg); }

.landing-dashboard-device {
  position: absolute;
  z-index: 3;
  width: min(660px, 92%);
  right: 1%;
  top: 91px;
  overflow: hidden;
  color: #1d2740;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 42px 80px rgba(39, 37, 94, .20), 0 12px 32px rgba(55, 45, 142, .10);
  transform: rotateY(-12deg) rotateX(5deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  animation: landingDeviceFloat 7s ease-in-out infinite;
  backdrop-filter: blur(16px);
}
.landing-device-shadow { position:absolute; width:540px; height:80px; right:30px; bottom:52px; border-radius:50%; background:rgba(43,36,110,.20); filter:blur(28px); transform:rotate(-3deg); }
.landing-device-bar { min-height:52px; padding:0 17px; display:flex; align-items:center; gap:9px; border-bottom:1px solid #edf0f7; background:rgba(255,255,255,.92); }
.landing-device-bar b { font-size:.78rem; }
.landing-device-dots { margin-left:auto; display:flex; gap:5px; }
.landing-device-dots i { width:5px; height:5px; border-radius:50%; background:#d4d9e6; }
.landing-device-body { display:grid; grid-template-columns:54px 1fr; min-height:390px; }
.landing-device-nav { padding:21px 13px; display:grid; align-content:start; gap:16px; border-right:1px solid #edf0f7; background:#fafbfe; }
.landing-device-nav i { width:25px; height:25px; border-radius:8px; background:#e9eaf4; }
.landing-device-nav i:first-child { background:linear-gradient(135deg,#6a56fa,#4d39dc); box-shadow:0 7px 14px rgba(88,71,245,.24); }
.landing-device-content { padding:21px; background:linear-gradient(180deg,#fbfbff,#f6f7fc); }
.landing-device-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.landing-device-heading > div { display:grid; gap:4px; }
.landing-device-heading small { color:#8a94a8; font-size:.55rem; }
.landing-device-heading strong { font-size:.92rem; }
.landing-device-heading > span { padding:5px 8px; color:#198754; border-radius:999px; background:#dcfce7; font-size:.51rem; font-weight:850; }
.landing-metric-row { margin:18px 0 14px; display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.landing-metric-row > div { padding:12px; display:grid; gap:5px; border:1px solid #e9ebf2; border-radius:11px; background:#fff; box-shadow:0 7px 18px rgba(49,46,129,.04); }
.landing-metric-row small,.landing-metric-row span { color:#8b94a6; font-size:.48rem; }
.landing-metric-row strong { font-size:.86rem; }
.landing-metric-row .trend-up { color:#16a66a; }
.landing-chart-card { padding:13px 14px 8px; border:1px solid #e9ebf2; border-radius:12px; background:#fff; }
.landing-chart-title { display:flex; justify-content:space-between; color:#7f899d; font-size:.5rem; }
.landing-chart-title b { color:#5b48ee; }
.landing-bars { height:102px; padding:14px 4px 0; display:flex; align-items:end; gap:9px; border-bottom:1px solid #eceef5; }
.landing-bars i { flex:1; height:var(--h); min-height:10px; border-radius:5px 5px 1px 1px; background:linear-gradient(180deg,#8a78ff,#5b48ee); box-shadow:0 5px 12px rgba(91,72,238,.12); }
.landing-action-row { margin-top:11px; padding:10px 12px; display:flex; align-items:center; gap:8px; border:1px solid #e9ebf2; border-radius:10px; background:#fff; }
.landing-action-row > span { display:grid; grid-template-columns:auto 1fr; gap:1px 7px; }
.landing-action-row > span i { grid-row:1/3; width:8px; height:8px; margin-top:6px; border-radius:50%; background:#f59e0b; }
.landing-action-row b { font-size:.56rem; }
.landing-action-row small { color:#929bad; font-size:.46rem; }
.landing-action-row button { margin-left:auto; padding:6px 8px; border:0; border-radius:6px; color:#fff; background:#5b48ee; font-size:.46rem; }

.landing-float-chip,.landing-floating-card {
  position:absolute;
  z-index:7;
  border:1px solid rgba(255,255,255,.88);
  background:rgba(255,255,255,.89);
  box-shadow:0 18px 38px rgba(48,40,119,.16);
  backdrop-filter:blur(14px);
}
.landing-float-chip { min-width:128px; padding:10px 12px; display:grid; grid-template-columns:auto 1fr; gap:2px 8px; border-radius:14px; }
.landing-float-chip > span { grid-row:1/3; width:28px; height:28px; display:grid; place-items:center; border-radius:9px; color:#fff; background:linear-gradient(145deg,#7664ff,#4c37d8); font-size:.72rem; font-weight:900; }
.landing-float-chip b { font-size:.62rem; }
.landing-float-chip small { color:#81899b; font-size:.5rem; }
.landing-chip-mail { left:-12px; top:112px; animation:landingChipFloat 5.5s ease-in-out infinite; }
.landing-chip-margin { right:-14px; top:55px; animation:landingChipFloat 6.2s ease-in-out -1.4s infinite; }
.landing-chip-weather { right:-7px; bottom:75px; animation:landingChipFloat 6.8s ease-in-out -.8s infinite; }
.landing-chip-weather > span { color:#a46100; background:#fff3c4; }
.landing-chip-margin > span { background:linear-gradient(145deg,#2dd4bf,#0f9f8f); }

.landing-floating-card { padding:14px; display:grid; gap:4px; border-radius:16px; }
.landing-card-quote { left:15px; bottom:62px; width:148px; transform:rotate(-8deg); animation:landingQuoteFloat 7s ease-in-out infinite; }
.landing-card-quote small { color:#7d879a; font-size:.5rem; letter-spacing:.14em; }
.landing-card-quote b { font-size:.68rem; }
.landing-card-quote span { margin:5px 0; font-size:1rem; font-weight:900; }
.landing-card-quote i { width:max-content; padding:4px 6px; color:#16825d; border-radius:999px; background:#dcfce7; font-size:.48rem; font-style:normal; font-weight:800; }
.landing-card-phone { right:67px; bottom:10px; width:112px; min-height:156px; padding:14px; border-radius:23px; color:#fff; background:linear-gradient(165deg,#201d46,#4936ce); transform:rotate(7deg); animation:landingPhoneFloat 7.8s ease-in-out -.9s infinite; }
.landing-card-phone .mini-k { width:24px; height:24px; display:grid; place-items:center; border-radius:8px; background:#6956f6; font-size:.62rem; font-weight:900; }
.landing-card-phone small { margin-top:10px; color:#bfc2e9; font-size:.48rem; }
.landing-card-phone b { font-size:.72rem; }
.landing-card-phone i { height:8px; margin-top:4px; border-radius:5px; background:rgba(255,255,255,.13); }
.landing-card-phone i:nth-last-child(1) { width:62%; }

.landing-v29 .landing-features article { position:relative; overflow:hidden; transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.landing-v29 .landing-features article::after { content:""; position:absolute; width:110px; height:110px; right:-52px; top:-54px; border-radius:50%; background:rgba(88,71,245,.06); transition:transform .35s ease; }
.landing-v29 .landing-features article:hover { border-color:#c7c1ff; box-shadow:0 20px 44px rgba(58,48,145,.10); transform:translateY(-7px) rotateX(2deg); }
.landing-v29 .landing-features article:hover::after { transform:scale(1.25); }

@keyframes landingDeviceFloat { 0%,100% { transform:rotateY(-12deg) rotateX(5deg) rotateZ(1.5deg) translateY(0); } 50% { transform:rotateY(-10deg) rotateX(4deg) rotateZ(.6deg) translateY(-12px); } }
@keyframes landingChipFloat { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-10px) rotate(1deg); } }
@keyframes landingQuoteFloat { 0%,100% { transform:translateY(0) rotate(-8deg); } 50% { transform:translateY(-12px) rotate(-5deg); } }
@keyframes landingPhoneFloat { 0%,100% { transform:translateY(0) rotate(7deg); } 50% { transform:translateY(-10px) rotate(4deg); } }

@media (max-width:1050px) {
  .landing-v29 .landing-hero { grid-template-columns:1fr; gap:20px; }
  .landing-copy { max-width:760px; padding-top:30px; }
  .landing-visual-stage { width:min(760px,100%); margin:0 auto; }
}

@media (max-width:700px) {
  .landing-header-actions .landing-nav-link { display:none; }
  .landing-v29 .landing-hero { width:min(100% - 28px,1280px); padding-top:28px; }
  .landing-v29 .landing-copy h1 { font-size:clamp(2.65rem,13vw,4rem); }
  .landing-hero-actions { align-items:flex-start; flex-direction:column; }
  .landing-visual-stage { min-height:470px; margin-top:12px; transform:scale(.92); transform-origin:top center; }
  .landing-dashboard-device { width:96%; right:-1%; top:80px; transform:rotateY(-5deg) rotateX(3deg) rotateZ(1deg); }
  .landing-device-body { grid-template-columns:38px 1fr; min-height:330px; }
  .landing-device-nav { padding-inline:7px; }
  .landing-device-nav i { width:23px; height:23px; }
  .landing-device-content { padding:14px; }
  .landing-metric-row { grid-template-columns:1fr 1fr; }
  .landing-metric-row > div:last-child { display:none; }
  .landing-chip-mail { left:-3px; top:42px; }
  .landing-chip-margin { right:-2px; top:18px; }
  .landing-chip-weather { display:none; }
  .landing-card-quote { left:0; bottom:8px; }
  .landing-card-phone { right:6px; bottom:-6px; }
}

@media (max-width:460px) {
  .landing-header { min-height:72px; }
  .landing-header-actions { gap:7px; }
  .landing-login { font-size:.73rem; }
  .landing-button-small { min-height:38px; padding-inline:12px; font-size:.7rem; }
  .landing-product-pill { margin-bottom:20px; font-size:.62rem; }
  .landing-visual-stage { min-height:410px; width:112%; margin-left:-6%; transform:scale(.82); }
  .landing-float-chip { min-width:110px; }
  .landing-device-shadow { bottom:30px; }
}

@media (prefers-reduced-motion:reduce) {
  .landing-dashboard-device,.landing-float-chip,.landing-floating-card { animation:none !important; }
  .landing-features article { transition:none; }
}
@media (max-width: 600px) { .cashflow-balance-card { padding: 22px; } .cashflow-balance-icon { width: 45px; height: 45px; } .bank-transaction-row { align-items: flex-start; flex-wrap: wrap; } .bank-transaction-main { min-width: calc(100% - 47px); } .bank-transaction-amount { margin-left: 45px; text-align: left; } .bank-transaction-row .text-button { margin-left: 45px; } .cashflow-chart { gap: 5px; } .cashflow-bars { gap: 3px; } .client-value-row { grid-template-columns: 1fr 1fr; gap: 9px; } .client-value-row > div:first-child { grid-column: 1 / -1; } .intervention-card { align-items: flex-start; flex-wrap: wrap; } .intervention-date { border-right: 0; border-bottom: 1px solid var(--border); width: 100%; padding: 0 0 9px; } .intervention-actions { width: 100%; } .call-offer-choices { grid-template-columns: 1fr; } .call-quote-action { align-items: flex-start; flex-direction: column; } .call-quote-action .button { width: 100%; text-align: center; } .intervention-insights, .intervention-checklist { grid-template-columns: 1fr; } .view-heading-actions { width: 100%; } .view-heading-actions .button { flex: 1; } .intervention-client-cost-row { grid-template-columns: 1fr 1fr; gap: 6px; } .intervention-client-cost-row strong { grid-column: 1 / -1; } }

@media (max-width: 800px) {
  .pilotage-hero, .view-heading-row { align-items: flex-start; flex-direction: column; }
  .pilotage-prospect-row { align-items: flex-start; flex-wrap: wrap; }
  .pilotage-prospect-row .pilotage-row-main { min-width: calc(100% - 50px); }
  .pilotage-row-actions { width: 100%; margin-left: 46px; justify-content: flex-start; }
  .pilotage-source { display: none; }
  .pipeline-board { grid-template-columns: repeat(6, 225px); }
}

@media (max-width: 600px) {
  .pilotage-hero { padding: 22px; }
  .pilotage-hero-actions, .pilotage-hero-actions .button { width: 100%; }
  .pilotage-hero-actions .button { text-align: center; }
  .pilotage-row { align-items: flex-start; flex-wrap: wrap; }
  .pilotage-row-main { min-width: calc(100% - 38px); }
  .pilotage-date { width: calc(100% - 34px); margin-left: 34px; text-align: left; }
  .pilotage-row .text-button.danger { margin-left: 34px; }
  .pilotage-search { max-width: none; width: 100%; }
  .pilotage-status-select { margin-left: 46px; }
  .client-pilotage-summary { grid-template-columns: 1fr; }
}

/* =========================
   LANDING ZLOTIA — VERSION SOBRE
========================= */

.landing-page {
  --landing-indigo: #4f46e5;
  --landing-indigo-dark: #3730a3;
  --landing-ink: #172033;
  --landing-muted: #64748b;
  --landing-border: #e2e8f0;
  color: var(--landing-ink);
  background: #f8fafc;
}

.landing-header,
.landing-hero,
.landing-section,
.landing-footer,
.landing-guides {
  width: min(1120px, calc(100% - 40px));
}

.landing-header {
  min-height: 76px;
  border-bottom: 1px solid var(--landing-border);
}

.landing-brand { color: var(--landing-ink); font-size: 1.15rem; }
.landing-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--landing-indigo);
  font-style: normal;
}

.landing-nav-link { color: #475569; }
.landing-nav-link:hover, .landing-text-link:hover { color: var(--landing-indigo-dark); }
.landing-login { color: #334155; font-size: .82rem; }

.landing-button {
  border-radius: 8px;
  background: var(--landing-indigo);
  box-shadow: none;
  transition: background .18s ease, transform .18s ease;
}

.landing-button:hover {
  background: var(--landing-indigo-dark);
  filter: none;
  transform: translateY(-1px);
}

.landing-hero {
  min-height: 540px;
  gap: 68px;
  padding: 70px 0 82px;
}

.landing-eyebrow { color: var(--landing-indigo); font-size: .68rem; }
.landing-copy h1, .landing-section h2 { color: var(--landing-ink); letter-spacing: -.045em; }
.landing-copy h1 { max-width: 650px; font-size: clamp(2.45rem, 4.8vw, 4.1rem); line-height: 1.08; }
.landing-lead { max-width: 570px; color: #475569; line-height: 1.68; }
.landing-text-link { color: #334155; font-size: .86rem; }
.landing-reassurance { color: #64748b; font-size: .78rem; }
.landing-reassurance span { margin-right: 5px; color: #15803d; font-weight: 900; }

.landing-preview {
  padding: 18px;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
  transform: none;
}

.landing-preview-top { padding-bottom: 15px; border-bottom: 1px solid #e8edf3; color: #334155; }
.landing-preview-logo { background: var(--landing-indigo); border-radius: 7px; font-style: normal; }
.landing-preview-status { color: #166534; background: #dcfce7; border-radius: 5px; }
.landing-preview-grid > div { background: #f8fafc; border: 1px solid #edf1f5; border-radius: 8px; }
.landing-preview-grid small, .landing-preview-grid span { color: #64748b; }
.landing-preview-list p { background: #ffffff; border: 1px solid #edf1f5; border-radius: 8px; }
.landing-preview-list span { color: #64748b; }
.landing-preview-list .paid { color: #15803d; }

.landing-section { padding: 76px 0; }
.landing-section-heading { margin-bottom: 30px; }
.landing-section h2 { max-width: 680px; }
.landing-seo-link { margin: 15px 0 0; text-align: left; }
.landing-seo-link a { color: var(--landing-indigo); }

.landing-features { gap: 12px; }
.landing-features article {
  min-height: 198px;
  padding: 22px;
  border: 1px solid var(--landing-border);
  border-radius: 10px;
  box-shadow: none;
}
.landing-features article:hover { border-color: #c7d2fe; }
.landing-features span { color: var(--landing-indigo); }
.landing-features h3 { margin-top: 23px; color: var(--landing-ink); }
.landing-features p, .landing-pricing > div > p { color: #64748b; }

.landing-pricing {
  margin-top: 12px;
  padding: 50px 0;
  border-top: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
}
.landing-price-card {
  padding: 27px;
  color: var(--landing-ink);
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 11px;
  box-shadow: none;
}
.landing-price-card p, .landing-price-card span { color: #64748b; }
.landing-price-card strong { color: var(--landing-ink); }
.landing-price-card .landing-button { background: var(--landing-indigo); color: #fff; }

.landing-faq details { border-color: var(--landing-border); }
.landing-faq summary { color: var(--landing-ink); }
.landing-faq p { color: #64748b; }

.landing-guides { padding: 68px 0 76px; }
.landing-guide-links { gap: 12px; }
.landing-guide-links a { min-height: 120px; border-color: var(--landing-border); border-radius: 10px; }
.landing-guide-links a:hover { border-color: #c7d2fe; }
.landing-guide-links span { color: #64748b; }
.landing-footer { border-color: var(--landing-border); color: #64748b; }

@media (max-width: 600px) {
  .landing-header, .landing-hero, .landing-section, .landing-footer, .landing-guides { width: min(100% - 32px, 1120px); }
  .landing-hero { gap: 36px; padding: 46px 0 58px; }
  .landing-copy h1 { font-size: 2.48rem; }
  .landing-reassurance { display: grid; gap: 6px; }
  .landing-section { padding: 56px 0; }
  .landing-pricing { padding: 38px 0; }
}


/* =========================
   CONNEXION ET INSCRIPTION
========================= */

.software-layout {
  display: none;
}

.software-layout.authenticated {
  display: block;
}

.auth-screen {
  min-height: 100vh;
  padding: 35px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;

  background:
    radial-gradient(circle at 15% 15%, rgba(40, 100, 235, 0.2), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(116, 70, 200, 0.16), transparent 32%),
    var(--navy);
}

.auth-screen.hidden {
  display: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;

  color: #ffffff;
  font-size: 1.05rem;
}

.auth-brand b {
  color: #79a7ff;
}

.auth-brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(143, 104, 23, .20);
}

.auth-brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  color: var(--blue);
  background: #ffffff;
  border-radius: 11px;

  font-weight: 900;
  font-style: italic;
}

.auth-card {
  width: min(440px, 100%);
  padding: 30px;

  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;

  box-shadow: 0 25px 70px rgba(3, 15, 35, 0.35);
}

.auth-heading {
  margin-bottom: 22px;
  text-align: center;
}

.auth-heading h1 {
  margin: 7px 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.auth-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-tabs {
  margin-bottom: 20px;
  padding: 4px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  background: #f1f4f8;
  border-radius: 10px;
}

.auth-tab {
  padding: 9px;

  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;

  font-size: 0.76rem;
  font-weight: 800;
}

.auth-tab.active {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(25, 45, 75, 0.08);
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form .button {
  margin-top: 5px;
}

.turnstile-slot {
  min-height: 0;
  display: flex;
  justify-content: center;
}

.turnstile-slot:empty {
  display: none;
}

.auth-tabs[hidden] {
  display: none;
}

.auth-text-button {
  padding: 4px;
  color: var(--blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.auth-text-button:hover {
  text-decoration: underline;
}

.auth-notice {
  margin: 18px 0 0;
  padding-top: 15px;

  color: #8b95a4;
  border-top: 1px solid var(--border);

  text-align: center;
  font-size: 0.65rem;
  line-height: 1.5;
}

.logout-button {
  width: 31px;
  height: 31px;
  margin-left: auto;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: #9fb0c8;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 8px;
}

.logout-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}


/* =========================
   TITRE ET DESCRIPTION
========================= */

.line-item {
  grid-template-columns:
    minmax(180px, 1fr)
    62px
    92px
    95px
    32px;
}

.quick-templates,
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 16px;
}

.quick-templates span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-templates button {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.saved-service-picker {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
}

.editor-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.editor-bottom-actions .button {
  flex: 1;
  min-width: 160px;
}

.klyro-control {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.klyro-control.warning { background: #fff5dc; color: #77520d; }
.klyro-control.ready { background: #e8f7ef; color: #176341; }
.klyro-control span { line-height: 1.45; }

.client-history-summary {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.client-history-summary span,
.client-history-summary small { color: var(--muted); }

.payment-amount-label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.payment-amount-label input { max-width: 120px; }
.backup-import { cursor: pointer; }

.quote-photos { display:grid; gap:10px; margin-top:16px; }
.quote-photo-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; }
.quote-photo-card { position:relative; display:grid; gap:5px; padding:7px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.quote-photo-card img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:7px; }
.quote-photo-card span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.68rem; }
.quote-photo-card button { position:absolute; top:3px; right:3px; width:24px; height:24px; border:0; border-radius:50%; color:white; background:#9b4545; cursor:pointer; }

.business-insights { margin-top: 22px; }
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.insight-grid > div {
  display: grid;
  gap: 6px;
  padding: 15px;
  border-radius: 12px;
  background: var(--background);
}
.insight-grid span, .revenue-limit span { color: var(--muted); font-size: .75rem; }
.insight-grid strong { font-size: 1.15rem; }
.revenue-limit { display: grid; gap: 8px; margin-top: 16px; }
.revenue-limit > div { display: flex; justify-content: space-between; gap: 12px; }
.revenue-limit progress { width: 100%; height: 12px; accent-color: var(--primary); }

.line-main {
  display: grid;
  gap: 8px;
}

.line-main textarea {
  min-height: 56px;
  font-size: 0.72rem;
}

.quote-line-title {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-weight: 750;
}

.quote-line-description {
  display: block;
  max-width: 310px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: pre-line;
}

.map-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 28px 30px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(122deg, #163a72, #386bd8 58%, #53b9a7);
}

.map-hero h2 { margin: 4px 0 8px; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.map-hero p { max-width: 650px; margin: 0; opacity: .9; }
.map-hero .eyebrow { color: #cfe2ff; }
.map-hero .button.light { flex: 0 0 auto; background: #fff; color: #1e4b99; }
.map-notice { display: flex; gap: 7px; align-items: baseline; margin-bottom: 18px; padding: 13px 16px; border: 1px solid #cddcf4; border-radius: 12px; color: #31547f; background: #f1f6ff; }
.map-layout { display: grid; grid-template-columns: minmax(300px, .94fr) minmax(360px, 1.06fr); gap: 20px; }
.map-transfer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map-help { display: block; margin-top: 14px; color: var(--muted); line-height: 1.45; }
.map-card { min-width: 0; }
.map-frame-wrap { position: relative; overflow: hidden; min-height: 365px; border: 1px solid #e2e8f2; border-radius: 14px; background: #f6f8fb; }
.map-frame-wrap iframe { display: block; width: 100%; min-height: 365px; border: 0; }
.map-frame-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 9px; color: #6d7a91; font-size: 2rem; text-align: center; }
.map-frame-empty span { font-size: .9rem; }
.map-frame-empty.hidden { display: none; }
.map-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.map-summary > div { display: grid; gap: 4px; padding: 13px; border-radius: 11px; background: #f5f8fc; }
.map-summary span { color: var(--muted); font-size: .78rem; }
.map-summary strong { color: #183b70; font-size: 1.12rem; }
.map-nearby-card { margin-top: 20px; }
.map-nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.map-nearby-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid #dfe7f4; border-radius: 13px; color: var(--text); text-decoration: none; background: #fbfcff; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.map-nearby-link:hover { border-color: #7fa5e8; box-shadow: 0 8px 20px #1a417314; transform: translateY(-2px); }
.map-nearby-link.disabled { cursor: not-allowed; opacity: .52; }
.map-nearby-link.disabled:hover { box-shadow: none; border-color: #dfe7f4; transform: none; }
.map-nearby-link > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.map-nearby-link b { font-size: .9rem; }
.map-nearby-link small { color: var(--muted); font-size: .75rem; line-height: 1.25; }
.map-nearby-link i { margin-left: auto; color: #3368bc; font-style: normal; }
.map-nearby-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; color: #1c5aa9; background: #eaf2ff; font-size: 1.3rem; }
.map-nearby-help { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }

.weather-hero {
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(125deg, #17436f, #3385c6 58%, #79c48c);
}

.weather-hero h2 {
  max-width: 800px;
  margin: 4px 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.weather-hero p {
  max-width: 760px;
  margin: 0;
  opacity: .92;
}

.weather-hero .eyebrow { color: #d9f2ff; }

.weather-layout {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(340px, 1.05fr);
  gap: 20px;
}

.weather-summary-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.weather-summary-card > strong {
  color: var(--navy);
  font-size: clamp(1.9rem, 5vw, 3.15rem);
  letter-spacing: -.04em;
}

.weather-summary-card > span {
  color: var(--muted);
  line-height: 1.45;
}

.weather-forecast-card { margin-top: 20px; }

.weather-forecast-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.weather-day-card {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(120px, .75fr) minmax(150px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dfe7f4;
  border-left-width: 5px;
  border-radius: 14px;
  background: #fff;
}

.weather-day-card.good { border-left-color: #16825d; }
.weather-day-card.warning { border-left-color: #c5821f; }
.weather-day-card.bad { border-left-color: #b23b47; }

.weather-day-date {
  display: grid;
  gap: 3px;
}

.weather-day-date > span {
  font-size: 1.65rem;
}

.weather-day-date strong,
.weather-day-advice b {
  color: var(--navy);
}

.weather-day-date small,
.weather-day-advice small,
.weather-day-advice p {
  color: var(--muted);
}

.weather-day-metrics {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: .82rem;
}

.weather-day-metrics span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f4f7fb;
}

.weather-day-advice {
  display: grid;
  gap: 4px;
}

.weather-day-advice p {
  margin: 0;
  line-height: 1.35;
}

.trade-tool-layout {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(340px, 1.05fr);
  gap: 20px;
}

.trade-result-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.trade-result-card > strong {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -.04em;
}

.trade-result-card > span {
  color: var(--muted);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.advice-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px #10213b0b;
}

.advice-card span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2454a6;
  background: #eef4ff;
  font-size: .72rem;
  font-weight: 800;
}

.advice-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.advice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.advice-disclaimer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  border-color: #f0d59b;
  color: #74531a;
  background: #fff8e8;
}

.urgent-hero {
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(125deg, #662b35, #b44855 55%, #e08d5d);
}

.urgent-hero h2 {
  margin: 4px 0 10px;
  max-width: 790px;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
}

.urgent-hero p {
  max-width: 730px;
  margin: 0;
  opacity: .92;
}

.urgent-hero .eyebrow {
  color: #ffe2d6;
}

.emergency-output {
  min-height: 240px;
  padding: 16px;
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  color: var(--text);
  background: #f8fafc;
  white-space: pre-wrap;
  line-height: 1.55;
}

.security-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(125deg, #10213b, #2454a6 58%, #16825d);
}

.security-hero h2 {
  max-width: 760px;
  margin: 4px 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
}

.security-hero p {
  max-width: 720px;
  margin: 0;
  opacity: .9;
}

.security-hero .eyebrow { color: #dbeafe; }

#securityScoreBadge {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #0d3b2b;
  background: #d7f8e9;
  font-size: .82rem;
  font-weight: 850;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.security-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.security-card small,
.security-card p {
  color: var(--muted);
  line-height: 1.45;
}

.danger-zone {
  border-color: #f0c4c4;
  background: #fffafa;
}

.button.danger {
  color: #fff;
  background: #9b4545;
}

.security-checklist {
  margin-top: 18px;
}

.security-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.security-checklist-grid > div {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  background: #f8fafc;
}

.security-checklist-grid strong {
  color: var(--navy);
}

.security-checklist-grid span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .landing-header,
  .landing-hero,
  .landing-section,
  .landing-footer {
    width: min(100% - 32px, 1140px);
    margin-left: auto;
    margin-right: auto;
  }

  .landing-header {
    min-height: 78px;
    align-items: flex-start;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: 14px;
  }

  .landing-brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .landing-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .landing-header-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .landing-nav-link { display: none; }

  .landing-login {
    flex: 0 0 auto;
    padding: 8px 6px;
    font-size: .78rem;
  }

  .landing-button-small {
    flex: 0 1 auto;
    min-height: 38px;
    max-width: 155px;
    padding: 0 12px;
    font-size: .72rem;
    line-height: 1.15;
    text-align: center;
  }

  .landing-hero { grid-template-columns: 1fr; gap: 42px; min-height: auto; padding: 42px 0 65px; }
  .landing-copy h1 { font-size: clamp(2.25rem, 13vw, 2.9rem); }
  .landing-lead { font-size: .98rem; }
  .landing-hero-actions { align-items: flex-start; flex-direction: column; }
  .landing-preview { transform: none; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-guide-links { grid-template-columns: 1fr; }
  .landing-metier-links { grid-template-columns:1fr; }
  .landing-features article { min-height: auto; }
  .landing-pricing { grid-template-columns: 1fr; gap: 28px; }
  .landing-section { padding: 62px 0; }
  .landing-footer { align-items: flex-start; flex-direction: column; }

  .auth-card {
    padding: 23px 18px;
  }

  .line-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .line-item .line-main { grid-column: 1 / -1; }
  .line-item .remove-line { justify-self: end; }

  .editor-toolbar-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-grid { grid-template-columns: 1fr; }
  .map-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-summary { grid-template-columns: 1fr; }
  .map-nearby-grid { grid-template-columns: 1fr; }
  .map-frame-wrap, .map-frame-wrap iframe { min-height: 290px; }
  .weather-layout { grid-template-columns: 1fr; }
  .weather-hero { padding: 24px; }
  .weather-forecast-list { grid-template-columns: 1fr; }
  .weather-day-card { grid-template-columns: 1fr; }
  .trade-tool-layout { grid-template-columns: 1fr; }
  .advice-grid { grid-template-columns: 1fr; }
  .urgent-hero { padding: 24px; }
  .security-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
  .security-grid { grid-template-columns: 1fr; }
  .security-checklist-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .landing-header {
    gap: 10px;
  }

  .landing-brand {
    font-size: 1.05rem;
  }

  .landing-header-actions {
    gap: 6px;
  }

  .landing-login {
    font-size: .73rem;
  }

  .landing-button-small {
    max-width: 128px;
    padding: 0 9px;
    font-size: .68rem;
  }
}

@media print {
  .auth-screen {
    display: none !important;
  }

  .software-layout {
    display: block !important;
  }
}

/* =========================
   LANDING ZLOTIA V30 — BLANC & OR
========================= */

.landing-page.landing-gold {
  --gold: #c79a32;
  --gold-deep: #8f6817;
  --gold-soft: rgba(199, 154, 50, .10);
  --gold-line: rgba(199, 154, 50, .28);
  color: var(--gold-deep);
  background:
    radial-gradient(circle at 78% 12%, rgba(199,154,50,.15), transparent 27%),
    radial-gradient(circle at 94% 38%, rgba(199,154,50,.08), transparent 25%),
    #fff;
}

.landing-gold .landing-header { border-color:var(--gold-line); }
.landing-gold .landing-brand,
.landing-gold .landing-nav-link,
.landing-gold .landing-login,
.landing-gold .landing-text-link,
.landing-gold .landing-copy h1,
.landing-gold .landing-copy h1 em,
.landing-gold .landing-section h2,
.landing-gold .landing-features h3,
.landing-gold .landing-faq summary,
.landing-gold .landing-guide-links a,
.landing-gold .landing-price-card strong { color:var(--gold-deep); }

.landing-gold .landing-brand-mark,
.landing-gold .landing-preview-logo,
.landing-gold .landing-button,
.landing-gold .landing-button:hover,
.landing-gold .landing-device-nav i:first-child,
.landing-gold .landing-float-chip > span,
.landing-gold .landing-chip-margin > span,
.landing-gold .landing-card-phone .mini-k,
.landing-gold .landing-action-row button {
  color:#fff;
  background:linear-gradient(145deg,#d8ae4e,#a87919);
  box-shadow:0 10px 24px rgba(143,104,23,.20);
}

.landing-gold .landing-product-pill,
.landing-gold .landing-product-pill span,
.landing-gold .landing-copy .landing-eyebrow,
.landing-gold .landing-eyebrow,
.landing-gold .landing-features > article > span,
.landing-gold .landing-seo-link a,
.landing-gold .landing-chart-title b,
.landing-gold .landing-metric-row .trend-up,
.landing-gold .landing-card-quote i,
.landing-gold .landing-device-heading > span,
.landing-gold .landing-reassurance span { color:var(--gold-deep); }

.landing-gold .landing-product-pill span,
.landing-gold .landing-action-row > span i {
  background:var(--gold);
  box-shadow:0 0 0 4px var(--gold-soft);
}

.landing-gold .landing-product-pill,
.landing-gold .landing-float-chip,
.landing-gold .landing-floating-card,
.landing-gold .landing-dashboard-device,
.landing-gold .landing-metric-row > div,
.landing-gold .landing-chart-card,
.landing-gold .landing-action-row,
.landing-gold .landing-features article,
.landing-gold .landing-price-card,
.landing-gold .landing-guide-links a {
  color:var(--gold-deep);
  border-color:var(--gold-line);
  background:#fff;
}

.landing-gold .landing-product-pill,
.landing-gold .landing-lead,
.landing-gold .landing-reassurance,
.landing-gold .landing-features p,
.landing-gold .landing-pricing > div > p,
.landing-gold .landing-price-card p,
.landing-gold .landing-price-card span,
.landing-gold .landing-faq p,
.landing-gold .landing-guide-links span,
.landing-gold .landing-footer,
.landing-gold .landing-device-heading small,
.landing-gold .landing-metric-row small,
.landing-gold .landing-metric-row span,
.landing-gold .landing-action-row small,
.landing-gold .landing-float-chip small,
.landing-gold .landing-card-quote small { color:rgba(143,104,23,.74); }

.landing-gold .landing-visual-stage::before {
  background:radial-gradient(circle at 50% 50%, rgba(199,154,50,.22), rgba(199,154,50,.06) 51%, transparent 73%);
}
.landing-gold .landing-orbit { border-color:rgba(199,154,50,.23); }
.landing-gold .landing-dashboard-device { box-shadow:0 42px 80px rgba(143,104,23,.18),0 12px 32px rgba(199,154,50,.11); }
.landing-gold .landing-float-chip,
.landing-gold .landing-floating-card { box-shadow:0 18px 38px rgba(143,104,23,.15); }
.landing-gold .landing-testimonial-card { border-color:var(--gold-line); box-shadow:0 18px 42px rgba(143,104,23,.11); }
.landing-gold .landing-testimonial-intro > p:last-child,
.landing-gold .landing-testimonial-card figcaption span { color:rgba(143,104,23,.74); }
.landing-gold .landing-device-shadow { background:rgba(143,104,23,.18); }
.landing-gold .landing-device-bar,
.landing-gold .landing-device-content,
.landing-gold .landing-device-nav { border-color:var(--gold-line); background:#fff; }
.landing-gold .landing-device-dots i,
.landing-gold .landing-device-nav i { background:var(--gold-soft); }
.landing-gold .landing-bars { border-color:var(--gold-line); }
.landing-gold .landing-bars i { background:linear-gradient(180deg,#e0bb61,#a87919); box-shadow:0 5px 12px rgba(143,104,23,.16); }
.landing-gold .landing-card-phone { color:#fff; border-color:rgba(199,154,50,.68); background:linear-gradient(160deg,#d6aa42,#8f6817); }
.landing-gold .landing-card-phone small { color:rgba(255,255,255,.76); }
.landing-gold .landing-card-phone i { background:rgba(255,255,255,.25); }
.landing-gold .landing-chip-weather > span { color:#fff; background:linear-gradient(145deg,#d8ae4e,#a87919); }
.landing-gold .landing-card-quote i,
.landing-gold .landing-device-heading > span { background:var(--gold-soft); }
.landing-gold .landing-features article::after { background:var(--gold-soft); }
.landing-gold .landing-features article:hover,
.landing-gold .landing-guide-links a:hover { border-color:var(--gold); box-shadow:0 20px 44px rgba(143,104,23,.10); }
.landing-gold .landing-price-card .landing-button { color:#fff; background:linear-gradient(145deg,#d8ae4e,#a87919); }
.landing-gold .landing-footer { border-color:var(--gold-line); }
.landing-gold .landing-pricing,
.landing-gold .landing-faq details { border-color:var(--gold-line); }

.landing-page.landing-gold:not(.hidden) ~ .appvista-partner-bubble {
  color:#8f6817;
  border-color:rgba(199,154,50,.32);
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 28px rgba(143,104,23,.16);
}
.landing-page.landing-gold:not(.hidden) ~ .appvista-partner-bubble .appvista-dot { color:#fff; background:linear-gradient(145deg,#d8ae4e,#a87919); }
.landing-page.landing-gold:not(.hidden) ~ .appvista-partner-bubble small { color:rgba(143,104,23,.72); }

/* =========================
   AUTHENTIFICATION V31 — BLANC & OR
========================= */

.auth-screen {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:#8f6817;
  background:
    radial-gradient(circle at 18% 20%, rgba(199,154,50,.18), transparent 26%),
    radial-gradient(circle at 86% 78%, rgba(199,154,50,.12), transparent 29%),
    #fff;
}
.auth-screen::before,
.auth-screen::after {
  content:"";
  position:absolute;
  z-index:-1;
  border:1px solid rgba(199,154,50,.24);
  border-radius:50%;
  pointer-events:none;
}
.auth-screen::before { width:520px; height:520px; left:-260px; top:-240px; box-shadow:0 0 80px rgba(199,154,50,.08) inset; }
.auth-screen::after { width:430px; height:430px; right:-215px; bottom:-215px; box-shadow:0 0 80px rgba(199,154,50,.07) inset; }
.auth-brand { color:#8f6817; }
.auth-brand b { color:#8f6817; }
.auth-brand-mark {
  color:#fff;
  background:linear-gradient(145deg,#d8ae4e,#a87919);
  border:1px solid rgba(199,154,50,.42);
  box-shadow:0 14px 30px rgba(143,104,23,.20);
  font-style:normal;
}
.auth-card {
  position:relative;
  color:#8f6817;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(199,154,50,.35);
  border-radius:24px;
  box-shadow:0 30px 75px rgba(143,104,23,.16);
  backdrop-filter:blur(18px);
}
.auth-card::before {
  content:"";
  position:absolute;
  width:92px;
  height:92px;
  right:-30px;
  top:-34px;
  z-index:-1;
  border-radius:28px;
  background:linear-gradient(145deg,rgba(216,174,78,.28),rgba(168,121,25,.08));
  transform:rotate(24deg);
}
.auth-back-button,.auth-heading h1,.auth-heading .eyebrow,.auth-text-button { color:#8f6817; }
.auth-heading > p:last-child,.auth-notice { color:rgba(143,104,23,.72); }
.auth-tabs { background:rgba(199,154,50,.10); border:1px solid rgba(199,154,50,.18); }
.auth-tab { color:rgba(143,104,23,.65); }
.auth-tab.active { color:#8f6817; background:#fff; box-shadow:0 6px 16px rgba(143,104,23,.12); }
.auth-form label { color:#8f6817; }
.auth-form input {
  color:#8f6817;
  caret-color:#c79a32;
  background:#fff;
  border-color:rgba(199,154,50,.32);
  box-shadow:none;
}
.auth-form input::placeholder { color:rgba(143,104,23,.42); }
.auth-form input:focus {
  border-color:#c79a32;
  box-shadow:0 0 0 4px rgba(199,154,50,.12);
  outline:none;
}
.auth-form .button.primary {
  color:#fff;
  background:linear-gradient(145deg,#d8ae4e,#a87919);
  border-color:transparent;
  box-shadow:0 13px 28px rgba(143,104,23,.20);
}
.auth-form .button.primary:hover { transform:translateY(-1px); box-shadow:0 17px 32px rgba(143,104,23,.24); }
.auth-notice { border-color:rgba(199,154,50,.24); }

@media (max-width:600px) {
  .auth-screen { padding:26px 16px; justify-content:flex-start; padding-top:max(34px,env(safe-area-inset-top)); }
  .auth-card { border-radius:19px; }
  .auth-screen::before { width:360px; height:360px; }
}

@media (prefers-reduced-motion:reduce) {
  .auth-form .button.primary { transition:none; }
}

/* =========================
   APPLICATION V32 — IDENTITÉ OR
========================= */

.software-layout.authenticated {
  --navy:#6f5114;
  --navy-light:#8f6817;
  --blue:#bd8e28;
  --blue-dark:#8f6817;
  --blue-light:#fff7e4;
  --purple:#bd8e28;
  --purple-light:#fff7e4;
  --document-accent:#bd8e28;
  --document-accent-light:#fff7e4;
  --background:#fcfaf5;
  --text:#43371f;
  --muted:#7d6c49;
  --border:#eadbb9;
  --shadow:0 15px 45px rgba(111,81,20,.10);
  color:var(--text);
  background:var(--background);
}

/* =========================
   V34 — 2FA & MIGRATION
========================= */

.auth-inline-help,
.migration-help {
  margin: 0;
  color: var(--muted-text, #6f6657);
  font-size: .86rem;
  line-height: 1.55;
}

.migration-card {
  grid-column: 1 / -1;
}

.test-cleanup-card {
  grid-column: 1 / -1;
  border-color: #eed6bd;
  background: #fffdf8;
}

.test-cleanup-help {
  max-width: 780px;
  margin: 2px 0 16px;
  color: var(--muted-text, #6f6657);
  font-size: .88rem;
  line-height: 1.55;
}

.migration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.migration-report {
  margin-top: 16px;
  padding: 14px 16px;
  color: #72561b;
  background: #fffaf0;
  border: 1px solid #c89b3c;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.55;
}

.feature-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #72561b;
  background: #fffaf0;
  border: 1px solid #c89b3c;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.feature-status.operational,
.feature-status.enabled {
  color: #fff;
  background: #9a741e;
}

.security-mfa-card {
  grid-column: span 2;
}

.security-mfa-card .content-card-header {
  align-items: flex-start;
}

.security-mfa-card #mfaIdlePanel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.security-mfa-card #mfaStatusText {
  flex-basis: 100%;
  margin: 0;
}

.mfa-enrollment {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  gap: 16px 22px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid #c89b3c;
  border-radius: 16px;
}

.mfa-enrollment[hidden] {
  display: none;
}

.mfa-enrollment img {
  grid-row: 1 / span 3;
  width: 100%;
  max-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid #c89b3c;
  border-radius: 12px;
}

.mfa-enrollment p,
.mfa-enrollment details {
  margin: 0;
}

.mfa-enrollment h4 {
  margin: 0;
  font-size: 1rem;
  color: #72561b;
}

.mfa-manual-setup {
  padding: 14px;
  border: 1px solid #c89b3c;
  border-radius: 12px;
  background: #fff6df;
}

.mfa-manual-setup p { margin: 7px 0 12px; }

.mfa-secret-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mfa-secret-row code {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.mfa-enrollment code {
  display: block;
  margin-top: 8px;
  padding: 9px;
  overflow-wrap: anywhere;
  color: #72561b;
  background: #fff;
  border: 1px solid #c89b3c;
  border-radius: 8px;
  user-select: all;
}

.mfa-code-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.mfa-code-form label {
  flex: 1 1 180px;
}

@media (max-width: 760px) {
  .security-mfa-card {
    grid-column: auto;
  }

  .mfa-enrollment {
    grid-template-columns: 1fr;
  }

  .mfa-enrollment img {
    grid-row: auto;
    justify-self: center;
  }

  .migration-actions > * {
    width: 100%;
    justify-content: center;
  }
}

.software-layout.authenticated .main-content { background:linear-gradient(180deg,#fff,#fcfaf5 42%); }
.software-layout.authenticated .sidebar {
  color:#fff;
  background:linear-gradient(180deg,#6f5114,#8f6817 55%,#5c420f);
  box-shadow:12px 0 35px rgba(111,81,20,.12);
}
.software-layout.authenticated .sidebar-header,
.software-layout.authenticated .sidebar-bottom { border-color:rgba(255,255,255,.18); }
.software-layout.authenticated .brand-mark { color:#8f6817; background:#fff; font-style:normal; box-shadow:0 8px 22px rgba(63,42,5,.18); }
.software-layout.authenticated .brand-name b { color:#fff; }
.software-layout.authenticated .navigation-title { color:rgba(255,255,255,.58); }
.software-layout.authenticated .navigation-link { color:rgba(255,255,255,.76); }
.software-layout.authenticated .navigation-link:hover { color:#fff; background:rgba(255,255,255,.11); }
.software-layout.authenticated .navigation-link.active { color:#8f6817; background:#fff; box-shadow:0 8px 22px rgba(63,42,5,.16); }
.software-layout.authenticated .navigation-link.active .navigation-badge { color:#fff; background:#bd8e28; }
.software-layout.authenticated .navigation-link.active .navigation-plan-tag { color:#8f6817; border-color:#e0c27e; background:#fff8e7; }
.software-layout.authenticated .navigation-link-pilotage { color:#fff; background:rgba(255,255,255,.10); }
.software-layout.authenticated .navigation-link-pilotage:hover { background:rgba(255,255,255,.17); }
.software-layout.authenticated .subscription-summary { border-color:rgba(255,255,255,.25); background:rgba(255,255,255,.10); }
.software-layout.authenticated .subscription-summary > span,
.software-layout.authenticated .subscription-summary small,
.software-layout.authenticated .sidebar-profile span { color:rgba(255,255,255,.68); }
.software-layout.authenticated .subscription-summary button { color:#8f6817; background:#fff; }
.software-layout.authenticated .profile-avatar { color:#8f6817; background:#fff; }
.software-layout.authenticated .sidebar-profile strong { color:#fff; }

.software-layout.authenticated .topbar {
  background:rgba(255,255,255,.94);
  border-color:#eadbb9;
  box-shadow:0 5px 22px rgba(111,81,20,.05);
}
.software-layout.authenticated .page-eyebrow { color:#a87919; }
.software-layout.authenticated .mobile-menu-button { color:#8f6817; border-color:#dfc991; background:#fff; }
.software-layout.authenticated .button.primary { color:#fff; background:linear-gradient(145deg,#d7aa43,#9b7017); box-shadow:0 8px 20px rgba(143,104,23,.20); }
.software-layout.authenticated .button.primary:hover { background:linear-gradient(145deg,#c89a32,#7f5b12); }
.software-layout.authenticated .button.secondary { color:#8f6817; background:#fff7e4; }
.software-layout.authenticated .button.secondary:hover { background:#f8e9bd; }
.software-layout.authenticated .button.ghost { color:#5f4819; border-color:#e6d4aa; background:#fff; }
.software-layout.authenticated .button.ghost:hover { background:#fffbf2; }
.software-layout.authenticated .button.light { color:#8f6817; background:#fff; }

.software-layout.authenticated .content-card,
.software-layout.authenticated .dashboard-card,
.software-layout.authenticated .stat-card,
.software-layout.authenticated .modal-content {
  border-color:#eadbb9;
  background:#fff;
  box-shadow:0 9px 28px rgba(111,81,20,.055);
}
.software-layout.authenticated input:not([type="checkbox"]):not([type="radio"]),
.software-layout.authenticated textarea,
.software-layout.authenticated select { color:#43371f; border-color:#dfcfaa; background:#fff; }
.software-layout.authenticated input:focus,
.software-layout.authenticated textarea:focus,
.software-layout.authenticated select:focus { border-color:#bd8e28; box-shadow:0 0 0 4px rgba(189,142,40,.11); outline:none; }
.software-layout.authenticated input::placeholder,
.software-layout.authenticated textarea::placeholder { color:rgba(125,108,73,.58); }

.software-layout.authenticated .enterprise-hero,
.software-layout.authenticated .pilotage-hero,
.software-layout.authenticated .cashflow-balance-card,
.software-layout.authenticated .call-mode-hero,
.software-layout.authenticated .copilot-hero,
.software-layout.authenticated .map-hero,
.software-layout.authenticated .weather-hero,
.software-layout.authenticated .security-hero {
  color:#fff;
  background:linear-gradient(135deg,#6f5114,#bd8e28 58%,#d7aa43);
  box-shadow:0 16px 36px rgba(111,81,20,.16);
}
.software-layout.authenticated .enterprise-hero p,
.software-layout.authenticated .pilotage-hero p:not(.eyebrow),
.software-layout.authenticated .cashflow-balance-card small,
.software-layout.authenticated .call-mode-hero p:not(.eyebrow),
.software-layout.authenticated .copilot-hero p:not(.eyebrow),
.software-layout.authenticated .map-hero p,
.software-layout.authenticated .weather-hero p,
.software-layout.authenticated .security-hero p { color:rgba(255,255,255,.88); }
.software-layout.authenticated .enterprise-hero .eyebrow,
.software-layout.authenticated .pilotage-hero .eyebrow,
.software-layout.authenticated .call-mode-hero .eyebrow,
.software-layout.authenticated .copilot-hero .eyebrow,
.software-layout.authenticated .map-hero .eyebrow,
.software-layout.authenticated .weather-hero .eyebrow,
.software-layout.authenticated .security-hero .eyebrow { color:#fff7db; }
.software-layout.authenticated .call-price-result { background:#6f5114; }
.software-layout.authenticated .copilot-action > span { color:#8f6817; background:#fff7e4; }
.software-layout.authenticated .copilot-progress span { background:linear-gradient(90deg,#a87919,#e1bd67); }

.software-layout.authenticated .enterprise-command-center { border-color:#dfc991; background:linear-gradient(180deg,#fffaf0,#fff); }
.software-layout.authenticated .enterprise-feature-list b,
.software-layout.authenticated .enterprise-architecture-grid b { color:#8f6817; background:#fff3d6; }
.software-layout.authenticated .appvista-dot { background:linear-gradient(145deg,#d8ae4e,#a87919); }

/* V81 — adoption, aide et recherche */
.topbar-utility-button{display:inline-flex;align-items:center;gap:6px;padding:10px 12px;border:1px solid #e4d3a9;border-radius:11px;color:#805d15;background:#fffdf8;font:inherit;font-size:.78rem;font-weight:750;cursor:pointer}
.quote-locked-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid #d8bc71;border-radius:13px;background:#fff7df;color:#5d481b}.quote-locked-notice div{display:grid;gap:4px}.quote-locked-notice span{font-size:.82rem;color:#806b3c}.quote-editor-locked .quote-form{opacity:.78}.quote-editor-locked .quote-form .quote-line-remove{display:none}
.operations-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.operations-kpis article{display:grid;gap:6px;padding:18px;border:1px solid #ead8ac;border-radius:15px;background:#fff}.operations-kpis span{color:#806b3c;font-size:.82rem}.operations-kpis strong{color:#493719;font-size:1.45rem}.operations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.operations-list{display:grid;gap:8px;margin-top:16px}.operation-row{display:grid;gap:3px;padding:11px;border:1px solid #eee0c0;border-radius:10px;background:#fffdf8}.operation-row span,.operation-row small{color:#756849;font-size:.8rem}@media(max-width:760px){.operations-kpis,.operations-grid{grid-template-columns:1fr}.quote-locked-notice{align-items:stretch;flex-direction:column}}
.topbar-utility-button:hover{background:#fff6df}.topbar-utility-button[hidden]{display:none!important}.toolbar-select{min-width:156px;padding:11px 34px 11px 12px;border:1px solid #e1cf9f;border-radius:10px;color:#5e4820;background:#fff;font:inherit;font-size:.82rem}.quote-row{cursor:pointer}.quote-row:hover td{background:#fff8e9}.document-item-button{width:100%;border:0;text-align:left;font:inherit;cursor:pointer}.document-item-button:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(91,67,18,.08)}.modal-helper{margin:0;color:#75684d;font-size:.84rem;line-height:1.5}.global-search-input{display:flex;align-items:center;gap:10px;margin:14px 0 8px;padding:0 14px;border:1px solid #dec895;border-radius:12px;color:#9b7017;background:#fff}.global-search-input input{width:100%;padding:14px 0;border:0!important;box-shadow:none!important;background:transparent!important}.global-search-results{display:grid;gap:8px;margin-top:16px;max-height:50vh;overflow:auto}.global-search-result{display:grid;grid-template-columns:86px 1fr;gap:3px;padding:12px;border:1px solid #eee0bd;border-radius:12px;text-align:left;color:#3f3420;background:#fff;cursor:pointer}.global-search-result:hover{border-color:#c49a3c;background:#fffaf0}.global-search-result span{grid-row:1/3;align-self:center;color:#94701f;font-size:.7rem;font-weight:800;text-transform:uppercase}.global-search-result b{font-size:.9rem}.global-search-result small{color:#7a705f}.global-search-empty{padding:20px;text-align:center;color:#85775e;border:1px dashed #e2cf9f;border-radius:12px}.help-klyro-grid,.business-template-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.help-klyro-grid button,.business-template-choices button{display:grid;gap:5px;padding:16px;border:1px solid #ead9b3;border-radius:12px;text-align:left;color:#4b3a19;background:#fffdf8;cursor:pointer}.help-klyro-grid button:hover,.business-template-choices button:hover{border-color:#c89e43;background:#fff6e2}.help-klyro-grid span,.business-template-choices span{color:#786b53;font-size:.8rem;line-height:1.4}.auth-confirmation-panel .auth-text-button{margin:2px 0 12px}.onboarding-step[data-open-business-template]{cursor:pointer}
@media(max-width:760px){.topbar-utility-button span{display:none}.topbar-utility-button{padding:9px 10px}.toolbar-select{width:100%;min-width:0}.help-klyro-grid,.business-template-choices{grid-template-columns:1fr}.global-search-result{grid-template-columns:70px 1fr}}
.software-layout.authenticated .map-notice { color:#6f5114; border-color:#dfc991; background:#fff8e8; }
.software-layout.authenticated .map-summary > div,
.software-layout.authenticated .weather-day-metrics span { background:#fffaf0; }
.software-layout.authenticated .map-summary strong,
.software-layout.authenticated .map-nearby-link i,
.software-layout.authenticated .map-nearby-icon { color:#8f6817; }
.software-layout.authenticated .map-nearby-icon,
.software-layout.authenticated .advice-card span { color:#8f6817; background:#fff3d6; }
.software-layout.authenticated .map-nearby-link:hover { border-color:#bd8e28; box-shadow:0 8px 20px rgba(111,81,20,.10); }

.software-layout.authenticated ~ .appvista-partner-bubble { color:#8f6817; border-color:rgba(199,154,50,.32); background:rgba(255,255,255,.96); box-shadow:0 10px 28px rgba(143,104,23,.16); }
.software-layout.authenticated ~ .appvista-partner-bubble .appvista-dot { background:linear-gradient(145deg,#d8ae4e,#a87919); }
.software-layout.authenticated ~ .appvista-partner-bubble small { color:rgba(143,104,23,.72); }

/* V52 UX : l’espace de travail garde toute sa largeur et les détails restent discrets. */
.software-layout.authenticated ~ .appvista-partner-bubble { display:none; }
.software-layout.authenticated ~ .legal-links { margin-left:var(--sidebar-width); }
.appvista-footer-link { color:var(--muted); font-size:.72rem; }
html, body { scrollbar-width:none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width:0; height:0; }

/* V113 — Mode focus : lecteur personnel, discret et persistant. */
.focus-music-trigger{color:#6c4d0d;background:linear-gradient(135deg,#fffdf8,#fff0c5)}
.focus-music-modal-content{max-width:620px}
.focus-upload-zone{display:grid;place-items:center;gap:6px;min-height:132px;margin:20px 0 12px;border:1.5px dashed #d5b36a;border-radius:16px;color:#6d5015;background:linear-gradient(135deg,#fffaf0,#fff5dc);cursor:pointer;transition:.2s ease}
.focus-upload-zone:hover{border-color:#aa7b18;transform:translateY(-1px);box-shadow:0 12px 28px rgba(135,95,18,.11)}
.focus-upload-zone span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:linear-gradient(135deg,#d7ad46,#946914);font-size:1.35rem}
.focus-upload-zone b{font-size:.94rem}.focus-upload-zone small,.focus-music-usage,.focus-music-rights{color:#75684d;font-size:.78rem;text-align:center}.focus-music-usage{margin:10px 0 12px}.focus-music-rights{margin:16px 0 0;line-height:1.45}.focus-music-library{display:grid;gap:8px;max-height:320px;overflow:auto}
.focus-track{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid #eadab7;border-radius:13px;background:#fffdf9}.focus-track.is-active{border-color:#bd8e29;background:#fff7e4}.focus-track div{display:grid;gap:3px;min-width:0}.focus-track strong{overflow:hidden;color:#473818;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem}.focus-track small{color:#86775a;font-size:.72rem}.focus-track-play,.focus-track-delete,.focus-player-toggle,.focus-player-skip,.focus-player-library{border:0;cursor:pointer;font:inherit}.focus-track-play{width:34px;height:34px;border-radius:10px;color:#fff;background:linear-gradient(135deg,#bd8d25,#8a6313);font-weight:800}.focus-track-delete{padding:7px 9px;border-radius:8px;color:#a63737;background:#fff2f0;font-size:.74rem;font-weight:750}.focus-music-empty{display:grid;gap:5px;padding:22px;border:1px dashed #ddc99b;border-radius:14px;color:#6d5d3d;background:#fffdf9;text-align:center}.focus-music-empty span{font-size:.8rem}
.focus-player{position:fixed;right:24px;bottom:22px;z-index:80;display:grid;grid-template-columns:42px minmax(130px,220px) 28px 28px 78px 32px;align-items:center;gap:8px;padding:9px 10px;border:1px solid rgba(206,168,82,.6);border-radius:18px;color:#3f321a;background:rgba(255,253,247,.96);box-shadow:0 18px 44px rgba(91,64,13,.22);backdrop-filter:blur(14px)}
#focusPlayer,#focusPlayer[hidden]{display:none!important}
.focus-player-toggle{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#fff;background:linear-gradient(135deg,#c99a2c,#8e6516);font-size:.9rem;font-weight:800}.focus-player-track{display:grid;gap:2px;min-width:0}.focus-player-track span{color:#9c751e;font-size:.58rem;font-weight:900;letter-spacing:.14em}.focus-player-track strong{overflow:hidden;color:#493719;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.focus-player-skip{width:26px;height:30px;border-radius:8px;color:#7d5d1b;background:transparent;font-size:1.5rem;line-height:1}.focus-player-skip:hover,.focus-player-library:hover{background:#fff0c8}.focus-player-volume{width:76px;accent-color:#a77a19}.focus-player-library{width:30px;height:30px;border-radius:9px;color:#8c6517;background:#fff3d4;font-size:1rem}
@media(max-width:760px){.focus-player{right:12px;bottom:76px;grid-template-columns:38px minmax(94px,1fr) 26px 26px 0 30px;max-width:calc(100vw - 24px);padding:8px}.focus-player-volume{display:none}.focus-player-toggle{width:36px;height:36px}.focus-player-track strong{font-size:.72rem}.focus-track{grid-template-columns:38px minmax(0,1fr) auto}.focus-upload-zone{min-height:118px}}

/* Guide interactif et tiroir Mode focus */
.klyro-guide-modal-content{max-width:720px}.klyro-guide-progress{display:grid;gap:8px;margin:18px 0}.klyro-guide-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;color:#6a604c;font-size:.78rem;font-weight:800}.klyro-guide-progress-track{height:8px;overflow:hidden;background:#eee5d2;border-radius:99px}.klyro-guide-progress-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#bd8d25,#e4bd62);transition:width .22s}.klyro-guide-steps{display:flex;gap:5px;overflow:auto;padding-bottom:8px}.klyro-guide-steps button{flex:0 0 30px;width:30px;height:30px;border:1px solid #e4d9c3;border-radius:99px;color:#7c6a48;background:#fff;font-size:.72rem;font-weight:850;cursor:pointer}.klyro-guide-steps button.is-current{color:#fff;background:#a7781b;border-color:#a7781b}.klyro-guide-steps button.is-complete{color:#417a50;background:#eef8ef;border-color:#b9d9bd}.klyro-guide-slide{min-height:230px;margin-top:10px;padding:24px;border:1px solid #ead8ac;border-radius:17px;background:linear-gradient(135deg,#fffdf8,#fff5df)}.klyro-guide-slide h3{margin:4px 0 9px;color:#463719;font-size:1.28rem}.klyro-guide-slide>p:not(.eyebrow){color:#685b41;line-height:1.58}.klyro-guide-slide ul{display:grid;gap:8px;margin:18px 0 0;padding-left:20px;color:#5b4b2c;font-size:.84rem;line-height:1.4}.klyro-guide-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.klyro-guide-actions .button:nth-child(2){margin-left:auto}.klyro-guide-finish{display:block;margin:14px auto 0;padding:0;border:0;color:#826e47;background:transparent;text-decoration:underline;font:inherit;font-size:.76rem;cursor:pointer}
.klyro-tour{position:fixed;inset:0;z-index:500;pointer-events:none}.klyro-tour-spotlight{position:fixed;border:2px solid #e7bd51;border-radius:14px;box-shadow:0 0 0 9999px rgba(17,30,52,.68),0 0 0 6px rgba(231,189,81,.2);transition:all .28s ease}.klyro-tour-tooltip{position:fixed;z-index:2;display:grid;gap:10px;padding:18px;border:1px solid #ead9ad;border-radius:17px;color:#493919;background:#fffdf8;box-shadow:0 22px 56px rgba(12,25,45,.28);pointer-events:auto}.klyro-tour-topline{display:flex;align-items:center;justify-content:space-between;color:#8d712d;font-size:.72rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.klyro-tour-topline button{width:30px;height:30px;border:0;border-radius:9px;color:#6a5834;background:#fff0cb;font-size:1.25rem;cursor:pointer}.klyro-tour-tooltip h3{margin:0;color:#403117;font-size:1.12rem}.klyro-tour-tooltip>p:not(.eyebrow){margin:0;color:#66583e;font-size:.86rem;line-height:1.55}.klyro-tour-tooltip ul{display:grid;gap:6px;margin:0;padding-left:18px;color:#594a2c;font-size:.78rem;line-height:1.4}.klyro-tour-actions{display:flex;justify-content:space-between;gap:10px;margin-top:3px}.klyro-tour-actions .button:first-child{min-width:44px}
.focus-drawer{position:fixed;right:0;top:50%;z-index:90;display:flex;align-items:stretch;transform:translateY(-50%)}.focus-drawer-tab{width:46px;border:1px solid #d9bb70;border-right:0;border-radius:14px 0 0 14px;color:#624916;background:linear-gradient(180deg,#fffaf0,#f7dfa2);box-shadow:0 12px 30px rgba(76,54,12,.18);cursor:pointer}.focus-drawer-tab span,.focus-drawer-tab b{display:block}.focus-drawer-tab b{margin-top:5px;writing-mode:vertical-rl;font-size:.69rem;letter-spacing:.08em}.focus-drawer-panel{width:0;overflow:hidden;display:grid;gap:11px;padding:0;color:#463719;background:#fffdf7;border:0;transition:width .22s,padding .22s}.focus-drawer.is-open .focus-drawer-panel{width:250px;padding:16px;border:1px solid #dfc47f;border-right:0;border-radius:16px 0 0 16px;box-shadow:0 14px 34px rgba(76,54,12,.2)}.focus-drawer-heading{display:flex;align-items:center;justify-content:space-between;color:#9a741e;font-size:.62rem;font-weight:900;letter-spacing:.12em}.focus-drawer-heading button{width:26px;height:26px;border:0;border-radius:8px;color:#745514;background:#fff1c9;font-size:1.3rem;cursor:pointer}.focus-drawer-panel>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem}.focus-drawer-panel>p{margin:0;color:#806e4b;font-size:.76rem}.focus-drawer-controls{display:grid;grid-template-columns:34px 1fr 34px;gap:8px}.focus-drawer-controls button{height:38px;border:0;border-radius:10px;color:#725217;background:#fff0c6;font-size:1.25rem;cursor:pointer}.focus-drawer-controls button:nth-child(2){color:#fff;background:linear-gradient(135deg,#c99a2c,#8e6516)}.focus-drawer-controls button:disabled{opacity:.45;cursor:not-allowed}.focus-drawer-panel input{width:100%;accent-color:#a77a19}.focus-drawer-panel .button{justify-content:center;font-size:.76rem}@media(max-width:760px){.focus-drawer{top:auto;bottom:90px;transform:none}.focus-drawer.is-open .focus-drawer-panel{width:220px}.klyro-tour-tooltip{max-height:calc(100vh - 24px);overflow:auto}.klyro-guide-actions{flex-wrap:wrap}.klyro-guide-actions .button:nth-child(2){order:3;width:100%;margin-left:0}}

.auth-confirmation-panel {
  display:grid;
  gap:13px;
  padding:12px 0 2px;
  text-align:center;
}
.auth-confirmation-panel[hidden] { display:none !important; }
.auth-confirmation-icon {
  width:54px;
  height:54px;
  margin:auto;
  display:grid;
  place-items:center;
  color:#8f6817;
  background:#fff5db;
  border:1px solid #ead19a;
  border-radius:17px;
  font-size:1.45rem;
}
.auth-confirmation-panel h2 { margin:3px 0 0; color:#3f3013; font-size:1.2rem; }
.auth-confirmation-panel p { margin:0; color:#665b45; line-height:1.55; }
.auth-confirmation-panel strong { color:#8f6817; overflow-wrap:anywhere; }

.landing-updates {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:27px 30px;
  border:1px solid #ead8a8;
  border-radius:18px;
  background:linear-gradient(105deg,#fffaf0,#fff 58%);
}
.landing-updates h2 { margin:5px 0 8px; color:#3e3017; font-size:1.35rem; }
.landing-updates p:last-child { max-width:680px; margin:0; color:#716249; line-height:1.55; }
.landing-updates .landing-button { flex:0 0 auto; }
@media (max-width:600px) { .landing-updates { align-items:flex-start; flex-direction:column; padding:22px 18px; gap:16px; } }

@media (max-width:850px) {
  .software-layout.authenticated ~ .legal-links { margin-left:0; }
}

/* Les couleurs métier restent volontaires : vert = validé/payé, orange = vigilance, rouge = erreur/retard. */

/* =========================
   V67 — EN-TÊTE TÉLÉPHONE RÉELLEMENT MINIMAL
   La barre système Android recouvre les webviews installées :
   on réserve donc volontairement sa hauteur et on ne garde que les 2 actions utiles.
========================= */
@media (max-width: 600px) {
  .software-layout.authenticated .topbar {
    min-height: 92px;
    padding: 38px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .software-layout.authenticated .topbar-left {
    flex: 0 0 auto;
  }

  .software-layout.authenticated .topbar-left > div,
  .software-layout.authenticated .topbar .save-state {
    display: none !important;
  }

  .software-layout.authenticated .mobile-menu-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.25rem;
  }

  .software-layout.authenticated .topbar-actions {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .software-layout.authenticated .topbar-actions .button {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .software-layout.authenticated .page-content {
    padding-top: 16px;
  }
}

/* =========================
   V115 — TABLEAU DE BORD PREMIUM
   Refonte visuelle uniquement : aucune donnée ni action métier ne change.
========================= */
.software-layout.authenticated #dashboardView.dashboard-premium { --dashboard-ink:#2d2518; }
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner { position:relative; isolation:isolate; overflow:hidden; min-height:182px; margin-bottom:24px; padding:32px 36px; border:1px solid rgba(255,255,255,.20); border-radius:22px; background:radial-gradient(circle at 88% 10%,rgba(255,255,255,.25),transparent 26%),radial-gradient(circle at 14% 112%,rgba(218,173,67,.36),transparent 38%),linear-gradient(118deg,#b78318 0%,#7c715b 39%,#1e4ca9 100%); box-shadow:0 18px 40px rgba(27,59,130,.20); }
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner > :not(.dashboard-orbit) { position:relative; z-index:1; }
.dashboard-orbit { position:absolute; z-index:0; border:1px solid rgba(255,255,255,.18); border-radius:50%; pointer-events:none; }
.dashboard-orbit-one { width:270px; height:270px; top:-152px; right:8%; }
.dashboard-orbit-two { width:150px; height:150px; bottom:-102px; right:25%; background:rgba(255,255,255,.06); }
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner .eyebrow { color:rgba(255,255,255,.79); font-size:.68rem; letter-spacing:.18em; }
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner h2 { max-width:620px; margin:7px 0 10px; color:#fff; font-size:clamp(1.85rem,3.1vw,2.75rem); line-height:1.06; letter-spacing:-.055em; }
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner h2 span { color:#fff4d6; }
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner p:last-child { max-width:560px; color:rgba(255,255,255,.88); font-size:.91rem; }
.software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner .button.light { min-height:48px; padding:12px 18px; color:#735313; border:1px solid rgba(255,255,255,.72); border-radius:13px; box-shadow:0 12px 24px rgba(34,40,70,.16); }
.software-layout.authenticated #dashboardView.dashboard-premium .statistics-grid { gap:18px; margin-bottom:24px; }
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card { position:relative; min-height:138px; padding:21px; align-items:center; gap:15px; overflow:hidden; border:1px solid #eee2c9; border-radius:18px; box-shadow:0 10px 28px rgba(76,59,24,.055); transition:transform .18s ease,box-shadow .18s ease; }
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card::after { content:"›"; position:absolute; top:17px; right:18px; color:#9c927d; font-size:1.45rem; font-weight:400; }
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card:hover { transform:translateY(-3px); box-shadow:0 16px 34px rgba(76,59,24,.11); }
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-icon { width:46px; height:46px; border-radius:14px; font-size:1.08rem; }
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card span { color:#786b54; font-size:.76rem; font-weight:700; }
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card strong { margin:8px 0 5px; color:var(--dashboard-ink); font-size:1.55rem; letter-spacing:-.045em; }
.software-layout.authenticated #dashboardView.dashboard-premium .statistic-card small { color:#9a8f7b; font-size:.68rem; }
.software-layout.authenticated #dashboardView.dashboard-premium .content-card { padding:23px; border-color:#eee2c9; border-radius:18px; box-shadow:0 10px 28px rgba(76,59,24,.045); }
.software-layout.authenticated #dashboardView.dashboard-premium .content-card-header { margin-bottom:19px; }
.software-layout.authenticated #dashboardView.dashboard-premium .content-card-header h3 { color:var(--dashboard-ink); font-size:1.02rem; letter-spacing:-.025em; }
.software-layout.authenticated #dashboardView.dashboard-premium .content-card-header p { color:#897b63; }
.software-layout.authenticated #dashboardView.dashboard-premium .onboarding-card { background:linear-gradient(135deg,#fffdf8,#fff 64%); }
.software-layout.authenticated #dashboardView.dashboard-premium .dashboard-grid { gap:18px; }
.software-layout.authenticated #dashboardView.dashboard-premium .quick-actions { gap:10px; }
.software-layout.authenticated #dashboardView.dashboard-premium .quick-actions button { padding:13px; border-color:#f0e5d0; border-radius:12px; background:#fffdf9; transition:background .16s ease,transform .16s ease; }
.software-layout.authenticated #dashboardView.dashboard-premium .quick-actions button:hover { background:#fff7e8; transform:translateX(2px); }
.software-layout.authenticated #dashboardView.dashboard-premium .business-insights { background:linear-gradient(110deg,#fffaf0,#fff 62%); }
@media (max-width:600px) { .software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner { min-height:0; padding:23px 20px; border-radius:17px; } .software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner h2 { font-size:1.72rem; } .software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner p:last-child { font-size:.81rem; } .software-layout.authenticated #dashboardView.dashboard-premium .welcome-banner .button.light { min-height:43px; padding:10px 14px; } .software-layout.authenticated #dashboardView.dashboard-premium .statistics-grid { gap:11px; margin-bottom:18px; } .software-layout.authenticated #dashboardView.dashboard-premium .statistic-card { min-height:114px; padding:14px; gap:10px; border-radius:14px; } .software-layout.authenticated #dashboardView.dashboard-premium .statistic-card::after { top:10px; right:12px; font-size:1.1rem; } .software-layout.authenticated #dashboardView.dashboard-premium .statistic-icon { width:35px; height:35px; border-radius:10px; font-size:.82rem; } .software-layout.authenticated #dashboardView.dashboard-premium .statistic-card strong { font-size:1.12rem; } .software-layout.authenticated #dashboardView.dashboard-premium .content-card { padding:17px; border-radius:15px; } .software-layout.authenticated #dashboardView.dashboard-premium .statistic-card:hover { transform:none; } }
/* V76 — unités de facturation métier */
.unit-choice-hint{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#fff3d8;color:#9b7016;font-size:.68rem;font-weight:800;letter-spacing:.02em;vertical-align:middle}.unit-choice-example{display:block;margin-top:6px;color:#7b756a;font-size:.77rem;line-height:1.35}

/* V77 — contraste renforcé du calculateur de rentabilité */
.calculator-result-card{background:linear-gradient(145deg,#142843,#24456f)!important;border-color:#315a88!important;box-shadow:0 14px 30px rgba(17,40,72,.18)!important}.calculator-result-card .eyebrow,.calculator-result-card>small{color:#d5e4fa!important}.calculator-result-card>strong{color:#fff!important}.calculator-result-card .profit-status.neutral{color:#eef5ff!important;background:rgba(255,255,255,.16)!important}.calculator-breakdown div{color:#dbeaff!important;background:rgba(255,255,255,.12)!important}.calculator-breakdown b{color:#fff!important}.calculator-result-card .price-just-result{background:rgba(224,174,54,.25)!important}.calculator-result-card .price-just-result small{color:#ecf4ff!important}

/* V78 — accompagnement de l’inscription */
.auth-layout{display:grid;grid-template-columns:minmax(290px,380px) minmax(0,440px);align-items:center;gap:72px;width:min(920px,100%)}.auth-layout .auth-card{width:100%}.auth-onboarding{color:#594319;padding:12px 0}.auth-onboarding .eyebrow{margin:0 0 9px;color:#a97818;font-size:.72rem;font-weight:900;letter-spacing:.14em}.auth-onboarding h2{max-width:290px;margin:0 0 27px;color:#3c2e14;font-size:2rem;line-height:1.08;letter-spacing:-.05em}.auth-onboarding ol{display:grid;gap:20px;margin:0;padding:0;list-style:none}.auth-onboarding li{display:grid;grid-template-columns:34px 1fr;gap:13px;align-items:start}.auth-onboarding li>span{display:grid;width:30px;height:30px;place-items:center;color:#fff;background:linear-gradient(145deg,#d8ae4e,#a87919);border-radius:10px;font-size:.78rem;font-weight:900;box-shadow:0 7px 14px rgba(143,104,23,.16)}.auth-onboarding strong{display:block;margin:1px 0 4px;color:#594319;font-size:.9rem}.auth-onboarding p{margin:0;color:#806f4d;font-size:.79rem;line-height:1.55}.auth-onboarding-footer{margin-top:28px!important;padding:12px 14px!important;color:#775912!important;background:rgba(255,247,226,.85);border:1px solid rgba(199,154,50,.28);border-radius:11px;font-weight:750}@media(max-width:820px){.auth-layout{display:block;width:min(440px,100%)}.auth-onboarding{display:none}}
/* Estimateur matériel : détail chantier */
.material-detail-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-top:18px}.material-estimate-source{display:block;margin-top:8px;color:#756545;font-weight:700}.material-composition{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.material-composition>div{display:grid;gap:3px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fffdf8}.material-composition span{font-size:.82rem;color:#756545}.material-composition b{color:#3f3013}.material-composition small{color:#a87919;font-size:.72rem;font-weight:800}.material-checklist{display:grid;gap:11px;padding-left:20px;line-height:1.5}.material-checklist li::marker{color:#a87919}.material-checklist-note{margin:20px 0 0;padding-top:15px;border-top:1px solid var(--line);font-size:.82rem;color:#756545;line-height:1.5}@media(max-width:760px){.material-detail-grid,.material-composition{grid-template-columns:1fr}}

/* V121 — contraste et densité de l’estimateur chantier */
#materialEstimatorView .trade-tool-layout{align-items:start}#materialEstimatorView .trade-tool-layout>.content-card:first-child{background:linear-gradient(145deg,#fffaf0,#fffdf8);border-color:#e6c67e;box-shadow:0 12px 28px rgba(141,98,21,.09)}#materialEstimatorView .trade-result-card{background:linear-gradient(145deg,#fff4d6,#fffdf7);border-color:#dfbb63;box-shadow:0 14px 30px rgba(141,98,21,.12)}#materialEstimatorView .trade-result-card>.eyebrow{color:#9a6812}#materialEstimatorView .trade-result-card>strong{color:#6a480d}#materialEstimatorView .trade-result-card>span{color:#765a29}#materialEstimatorView .trade-result-card .calculator-breakdown{border:1px solid #ead19a}#materialEstimatorView .trade-result-card .calculator-breakdown div{color:#735927!important;background:rgba(255,255,255,.78)!important;border-bottom:1px solid #f0dfb8}#materialEstimatorView .trade-result-card .calculator-breakdown b{color:#4b3411!important}#materialEstimatorView .trade-result-card .button.secondary{color:#7a520e;background:#fff4d8;border-color:#e1bf72}#materialEstimatorView .trade-result-card .button.secondary:hover{background:#f4d98e}

/* V123 — simulation marché : métiers bâtiment et contraste */
#marketRatesView .trade-tool-layout{align-items:start}#marketRatesView .trade-tool-layout>.content-card:first-child{background:linear-gradient(145deg,#fffaf0,#fffdf8);border-color:#e6c67e;box-shadow:0 12px 28px rgba(141,98,21,.09)}#marketRatesView .trade-result-card{background:linear-gradient(145deg,#fff4d6,#fffdf7);border-color:#dfbb63;box-shadow:0 14px 30px rgba(141,98,21,.12)}#marketRatesView .trade-result-card>.eyebrow{color:#9a6812}#marketRatesView .trade-result-card>strong{color:#6a480d}#marketRatesView .trade-result-card>span{color:#765a29}#marketRatesView .trade-result-card .calculator-breakdown{border:1px solid #ead19a}#marketRatesView .trade-result-card .calculator-breakdown div{color:#735927!important;background:rgba(255,255,255,.78)!important;border-bottom:1px solid #f0dfb8}#marketRatesView .trade-result-card .calculator-breakdown b{color:#4b3411!important}

.surface-intro{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;padding:15px 17px;border:1px solid #e4c56f;border-radius:14px;background:linear-gradient(105deg,#fff6dd,#fffdf7);color:#594317;line-height:1.5}.surface-intro strong{white-space:nowrap;color:#76500d}.surface-measure-layout{display:grid;grid-template-columns:minmax(330px,1.08fr) minmax(300px,.92fr);gap:20px;align-items:start}.surface-measure-card{background:linear-gradient(145deg,#fffdf8,#fff7e7);border-color:#e4c779;box-shadow:0 14px 28px rgba(119,78,11,.1)}.surface-camera-frame{position:relative;display:grid;min-height:290px;overflow:hidden;border:1px solid #ddbd67;border-radius:16px;background:radial-gradient(circle at 50% 0,#72521b,#251b0d)}.surface-camera-frame video{width:100%;height:100%;min-height:290px;object-fit:cover}.surface-camera-placeholder{display:grid;place-content:center;gap:7px;padding:25px;text-align:center;color:#fff4d7}.surface-camera-placeholder[hidden]{display:none}.surface-camera-placeholder span{font-size:2.3rem;color:#f6d985}.surface-camera-placeholder small{max-width:290px;color:#f8e9bd;line-height:1.45}.surface-capture-steps{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.surface-capture-steps span{padding:7px 10px;border-radius:999px;background:#f2ead8;color:#8a754e;font-size:.76rem;font-weight:800}.surface-capture-steps span.active{background:#80570f;color:#fff}.surface-camera-actions,.surface-result-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.surface-camera-note{display:block;margin-top:15px;color:#776541;line-height:1.5}.surface-result-card{display:grid;gap:16px;background:linear-gradient(145deg,#fff5d5,#fffdf7);border-color:#dfba5c}.surface-result-card h3{margin:0;color:#4c3510}.surface-result-card>p{margin:0;color:#705c34;line-height:1.5}.surface-result-number{display:grid;gap:2px;padding:17px;border:1px solid #e8cc87;border-radius:14px;background:rgba(255,255,255,.72)}.surface-result-number strong{color:#6d490b;font-size:3rem;letter-spacing:-.06em}.surface-result-number span{font-weight:800;color:#785821}.surface-result-number small{margin-top:5px;color:#796645;line-height:1.4}.surface-estimate-details{display:grid;grid-template-columns:1fr 1fr;gap:10px}.surface-estimate-details>div{display:grid;gap:4px;padding:12px;border-radius:12px;background:#fffdf8;border:1px solid #ecd89f}.surface-estimate-details span{font-size:.78rem;color:#7e6841}.surface-estimate-details b{color:#4d3510}@media(max-width:760px){.surface-measure-layout{grid-template-columns:1fr}.surface-intro{display:grid}.surface-intro strong{white-space:normal}.surface-camera-frame,.surface-camera-frame video{min-height:225px}.surface-estimate-details{grid-template-columns:1fr}}

/* ZLOTIA WORKSPACE · V141 — interface blanche et or, plus contemporaine */
.software-layout.authenticated{background:radial-gradient(circle at 92% -8%,rgba(221,179,74,.13),transparent 26%),radial-gradient(circle at 12% 35%,rgba(255,255,255,.95),transparent 26%),linear-gradient(135deg,#f7f4ee,#f1f4f8 60%,#f9f5e9);min-height:100vh}.software-layout.authenticated .main-content{background:linear-gradient(90deg,rgba(255,255,255,.42),rgba(255,255,255,.04))}.software-layout.authenticated .page-content{position:relative}.software-layout.authenticated .page-content::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(165,132,69,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(165,132,69,.035) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.32),transparent 54%)}
.software-layout.authenticated .sidebar{background:radial-gradient(circle at 105% 4%,rgba(226,184,72,.28),transparent 26%),linear-gradient(180deg,#102238,#0a1627 72%,#0d1d31);border-right:1px solid rgba(229,190,88,.18);box-shadow:16px 0 46px rgba(12,24,43,.13)}.software-layout.authenticated .sidebar-header{border-bottom-color:rgba(238,204,115,.17)}.software-layout.authenticated .brand-mark{color:#5f4815;background:linear-gradient(145deg,#fffdf7,#e7bd60);box-shadow:0 7px 18px rgba(0,0,0,.2)}.software-layout.authenticated .navigation-title{color:#d4b96f}.software-layout.authenticated .navigation-link{margin-bottom:5px;border:1px solid transparent;border-radius:11px}.software-layout.authenticated .navigation-link:hover{color:#fff;background:rgba(255,255,255,.09);border-color:rgba(230,193,99,.14)}.software-layout.authenticated .navigation-link.active{color:#3c2c0e;background:linear-gradient(135deg,#f5d581,#c8952e);border-color:#f8df9c;box-shadow:0 8px 20px rgba(0,0,0,.17)}.software-layout.authenticated .navigation-link.active .navigation-badge{color:#fff;background:rgba(64,45,11,.37)}.software-layout.authenticated .sidebar-bottom{border-top-color:rgba(238,204,115,.17)}
.software-layout.authenticated .topbar{margin:12px 18px 0;border:1px solid rgba(221,207,173,.72);border-radius:18px;background:rgba(255,255,255,.73);box-shadow:0 10px 28px rgba(62,52,30,.07);backdrop-filter:blur(18px)}.software-layout.authenticated .topbar h1{letter-spacing:-.045em}.software-layout.authenticated .page-eyebrow{color:#9b731c;letter-spacing:.14em}.software-layout.authenticated .save-state{padding:7px 10px;border:1px solid #eadbb8;border-radius:999px;background:#fffdf8;color:#6e7f6f;font-size:.7rem}.software-layout.authenticated .topbar-utility-button{border-color:#eadcb9;background:rgba(255,253,248,.86);box-shadow:0 4px 12px rgba(121,88,24,.05)}
.software-layout.authenticated .app-view.active{animation:klyro-view-in .34s cubic-bezier(.2,.8,.2,1)}@keyframes klyro-view-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.software-layout.authenticated .view-heading-row{position:relative;margin-bottom:22px;padding:4px 0 0}.software-layout.authenticated .view-heading-row h2{letter-spacing:-.045em}.software-layout.authenticated .view-heading-row::after{content:"";display:block;width:54px;height:3px;margin-top:13px;border-radius:999px;background:linear-gradient(90deg,#c4932b,#f1d78e)}
.software-layout.authenticated .content-card{position:relative;overflow:hidden;border:1px solid rgba(225,214,187,.84);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,253,248,.9));box-shadow:0 12px 34px rgba(64,50,22,.055)}.software-layout.authenticated .content-card::before{content:"";position:absolute;top:0;left:22px;right:22px;height:1px;background:linear-gradient(90deg,transparent,rgba(213,171,69,.48),transparent)}.software-layout.authenticated .content-card-header h3{letter-spacing:-.025em}.software-layout.authenticated .content-card-header p{color:#82745d}.software-layout.authenticated .dashboard-card,.software-layout.authenticated .statistic-card{border:1px solid rgba(225,214,187,.84);border-radius:17px;box-shadow:0 10px 28px rgba(64,50,22,.055)}
.software-layout.authenticated .button{border-radius:11px;font-weight:780;letter-spacing:-.01em;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.software-layout.authenticated .button:hover{transform:translateY(-1px)}.software-layout.authenticated .button.primary{background:linear-gradient(135deg,#e3bd59,#a87818);border:1px solid #d7ae4d;box-shadow:0 10px 22px rgba(145,101,17,.2)}.software-layout.authenticated .button.primary:hover{background:linear-gradient(135deg,#f0d27b,#a97717);box-shadow:0 14px 27px rgba(145,101,17,.27)}.software-layout.authenticated .button.light,.software-layout.authenticated .button.secondary{border-color:#e6d2a1;background:linear-gradient(145deg,#fffefb,#fff6df);color:#6f5014}.software-layout.authenticated .button.ghost{border-color:#e6dcc7;background:rgba(255,255,255,.7)}
.software-layout.authenticated .form-grid input,.software-layout.authenticated .form-grid select,.software-layout.authenticated .form-grid textarea,.software-layout.authenticated .search-box,.software-layout.authenticated .toolbar-select{border-color:#e5d8bc;background:rgba(255,255,255,.88);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}.software-layout.authenticated .form-grid input:focus,.software-layout.authenticated .form-grid select:focus,.software-layout.authenticated .form-grid textarea:focus,.software-layout.authenticated .search-box:focus-within{border-color:#c8952e;outline:3px solid rgba(211,169,65,.16);box-shadow:0 0 0 1px rgba(201,152,43,.22)}.software-layout.authenticated .form-grid label{color:#5f5139}.software-layout.authenticated .management-table{border-color:#eadfc9;border-radius:14px}.software-layout.authenticated .management-table th{color:#80652a;background:#fff8e9}.software-layout.authenticated .management-table td{border-color:#f0e8d8}.software-layout.authenticated .management-table tbody tr:hover td{background:#fffaf0}
.software-layout.authenticated .modal-content{border:1px solid #e6d6af;border-radius:20px;background:linear-gradient(145deg,#fffefa,#fff8e9);box-shadow:0 28px 70px rgba(27,37,52,.28)}.software-layout.authenticated .modal-header{border-bottom-color:#eedfbf}.software-layout.authenticated .modal-close{border-radius:10px;color:#76541a;background:#fff0c9}.software-layout.authenticated .profit-status{border-radius:999px}.software-layout.authenticated .toast{border:1px solid #ead19a;border-radius:14px;box-shadow:0 18px 44px rgba(39,31,15,.22)}
@media(max-width:850px){.software-layout.authenticated .topbar{margin:0;border-width:0 0 1px;border-radius:0}.software-layout.authenticated .page-content::before{background-size:32px 32px}.software-layout.authenticated .content-card{border-radius:15px}}@media(prefers-reduced-motion:reduce){.software-layout.authenticated .app-view.active{animation:none}.software-layout.authenticated .button{transition:none}}
