/* Single colour source for the website, client workspace and administration.
   Use semantic variables in components; change the palette here. No gradients. */
:root {
  color-scheme: light;
  --font:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --brand-blue:#155eef; --brand-green:#12b76a; --brand-orange-ui:#f79009; --brand-purple:#7a5af8; --brand-cyan:#06aed4;
  --brand-navy:#101828; --brand-teal:var(--brand-blue); --on-brand:#ffffff; --on-vivid:#101828;
  --canvas:#f8fafc; --surface:#ffffff; --surface-alt:#f2f4f7; --surface-hover:#eef2f6;
  --ink:#182230; --ink-2:#344054; --muted:#667085;
  --line:#e4e7ec; --line-strong:#c5cbd5;
  --accent:#155eef; --accent-bg:#eff4ff; --accent-line:#c7d7fe;
  --success:#067647; --success-bg:#ecfdf3; --success-line:#abefc6;
  --warning:#b54708; --warning-bg:#fffaeb; --warning-line:#fedf89;
  --danger-solid:#d92d20; --danger:var(--danger-solid); --danger-bg:#fef3f2; --danger-line:#fecdca;
  --info:var(--accent); --info-bg:var(--accent-bg); --info-line:var(--accent-line);
  --brown:#854a22; --brown-bg:#f9f0e8; --brown-line:#e9c6a8;
  --purple:#6938ef; --purple-bg:#f4f3ff; --purple-line:#d9d6fe;
  --cyan:#087b98; --cyan-bg:#ecfdff; --cyan-line:#a5f0fc;
  --sidebar-bg:#ffffff; --sidebar-ink:#344054; --sidebar-muted:#667085; --sidebar-active:#eff4ff;
  --on-contrast:#ffffff; --contrast-muted:#c7d3e5; --contrast-surface:#101828;
  --shadow-color:#101828; --overlay:rgb(16 24 40 / 48%);
  --chart-1:#4c8479; --chart-2:var(--brand-blue); --chart-3:#ad8246; --chart-4:#77758e; --chart-5:#668c9c;
  --module-service:var(--accent); --module-service-bg:var(--accent-bg); --module-service-solid:var(--brand-blue);
  --module-technical:var(--ink-2); --module-technical-bg:var(--surface-alt); --module-technical-solid:var(--line-strong);
  --module-complaints:var(--ink-2); --module-complaints-bg:var(--surface-alt); --module-complaints-solid:var(--line-strong);
  --module-satisfaction:var(--ink-2); --module-satisfaction-bg:var(--surface-alt); --module-satisfaction-solid:var(--line-strong);
  --module-digital:var(--ink-2); --module-digital-bg:var(--surface-alt); --module-digital-solid:var(--line-strong);
  --brand-logo-filter:none;
  --brand-wordmark:url('/img/goulaa/svg/goulaa-horizontal-couleur.svg');
  --s1:var(--chart-2); --s2:var(--chart-1); --s3:var(--chart-3);
  --navy:var(--ink); --navy-900:var(--contrast-surface); --navy-800:var(--contrast-surface); --navy-700:var(--ink-2); --navy-100:var(--surface-hover);
  --teal:var(--brand-teal); --teal-600:var(--accent); --teal-700:var(--accent); --teal-50:var(--accent-bg); --teal-100:var(--accent-line);
  --white:var(--surface); --mist:var(--canvas); --line-2:var(--line-strong); --red:var(--danger); --green:var(--success);
  --shadow-sm:0 1px 3px color-mix(in srgb,var(--shadow-color) 5%,transparent);
  --shadow:0 6px 24px color-mix(in srgb,var(--shadow-color) 8%,transparent);
  --shadow-lg:0 16px 56px color-mix(in srgb,var(--shadow-color) 20%,transparent);
  --brand-mtn:#ffc600; --brand-orange:#ff7900; --brand-wave:#1ca9dc; --brand-paypal:#175caa;
  --vx-navy:var(--ink); --vx-navy9:var(--contrast-surface); --vx-teal:var(--brand-teal); --vx-teal7:var(--accent); --vx-teal0:var(--accent-bg);
  --vx-line:var(--line); --vx-mist:var(--surface-hover); --vx-ink:var(--ink-2); --vx-muted:var(--muted);
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --brand-wordmark:url('/img/goulaa/svg/goulaa-horizontal-blanc.svg');
  --canvas:#121416; --surface:#1b1e22; --surface-alt:#23272c; --surface-hover:#2c3138;
  --ink:#f2f4f7; --ink-2:#d0d5dd; --muted:#a4afc1;
  --line:#343a42; --line-strong:#535e6c;
  --accent:#84adff; --accent-bg:#1b2b4d; --accent-line:#354d7c;
  --success:#75e0a7; --success-bg:#113c2e; --success-line:#25644b;
  --warning:#fec84b; --warning-bg:#442b15; --warning-line:#78512a;
  --danger:#fda29b; --danger-bg:#46251f; --danger-line:#803b31;
  --brown:#e7bb98; --brown-bg:#392c23; --brown-line:#75543d;
  --purple:#bdb4fe; --purple-bg:#2c254c; --purple-line:#55488c;
  --cyan:#67e3f9; --cyan-bg:#123644; --cyan-line:#256278;
  --sidebar-bg:#181b1f; --sidebar-ink:#d0d5dd; --sidebar-muted:#a4afc1; --sidebar-active:#252f40;
  --contrast-surface:#171b22; --shadow-color:#000000; --overlay:rgb(0 0 0 / 65%);
  --chart-1:#8fb6a9; --chart-2:#84adff; --chart-3:#c8a875; --chart-4:#b1acc7; --chart-5:#90b3c1;
}
html { background:var(--canvas); }
body { color:var(--ink); background:var(--canvas); }
::selection { background:var(--accent-line); color:var(--ink); }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex:none; width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink-2); cursor:pointer; }
.theme-toggle:hover { color:var(--accent); border-color:var(--line-strong); background:var(--surface-hover); }
.theme-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.theme-toggle.auth-theme { position:fixed; right:20px; top:20px; z-index:10; }
/* Adaptive logos follow the saved theme; fixed dark surfaces use the white asset directly. */
img[data-brand="wordmark"] { content:var(--brand-wordmark); }
.badge.brown { color:var(--brown); background:var(--brown-bg); }
.badge.purple { color:var(--purple); background:var(--purple-bg); }
.btn-primary { color:var(--on-brand); }
.btn-primary:hover { background:color-mix(in srgb,var(--brand-blue) 88%,var(--brand-navy)); color:var(--on-brand); }
.field-error::before,.bell-count,.sev.critical { background:var(--danger-solid); color:var(--on-contrast); }
.btn-dark,.auth-side,.onboard { background:var(--contrast-surface); color:var(--on-contrast); }
.btn-dark:hover { background:var(--brand-navy); }
.auth-side h2,.onboard h2 { color:var(--on-contrast); }
.auth-side .glow { display:none; }
.drawer-overlay,.modal-overlay { background:var(--overlay); }
.skeleton,.bell-skel i,.bell-skel b,.bell-skel span { background:var(--surface-hover); }
.badge.ok,.badge.good { color:var(--success); background:var(--success-bg); }
.badge.warn { color:var(--warning); background:var(--warning-bg); }
.badge.bad { color:var(--danger); background:var(--danger-bg); }
.badge.blue,.badge.info { color:var(--info); background:var(--info-bg); }
.badge.teal { color:var(--accent); background:var(--accent-bg); }
.chart .grid-line { stroke:var(--line); }
.chart .axis { fill:var(--muted); }

/* Encoded monochrome icons shared by existing components. */
:root {
  --theme-icon-1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155EEF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  --theme-icon-2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E");
  --theme-icon-3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312B76A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E");
}

/* Shared activity identities for public and authenticated surfaces. */
[data-module] { --module:var(--module-service); --module-bg:var(--module-service-bg); --module-solid:var(--module-service-solid); }
[data-module="service"] { --module:var(--module-service); --module-bg:var(--module-service-bg); --module-solid:var(--module-service-solid); }
[data-module="technical"] { --module:var(--module-technical); --module-bg:var(--module-technical-bg); --module-solid:var(--module-technical-solid); }
[data-module="complaints"] { --module:var(--module-complaints); --module-bg:var(--module-complaints-bg); --module-solid:var(--module-complaints-solid); }
[data-module="satisfaction"] { --module:var(--module-satisfaction); --module-bg:var(--module-satisfaction-bg); --module-solid:var(--module-satisfaction-solid); }
[data-module="digital"] { --module:var(--module-digital); --module-bg:var(--module-digital-bg); --module-solid:var(--module-digital-solid); }

/* Goulaa: preserve the complete transparent drawing, with no cropping or recolouring. */
img[src*="/img/goulaa/"] { object-fit:contain; }
.site-surface .logo img[data-brand="wordmark"] { display:block; width:168px; height:auto; }
.foot-brand img[src*="/img/goulaa/"] { display:block; width:180px; height:auto; }
.auth img[src*="/goulaa-horizontal-"] { width:192px; max-width:100%; height:auto!important; }
.survey-nav img[data-brand="wordmark"] { display:block; width:150px; height:40px; }
.shell .sidebar .brand.goulaa-brand { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:0; }
.shell .sidebar .goulaa-brand .brand-full { display:block; width:142px; max-width:100%; height:auto; filter:none; }
.shell .sidebar .goulaa-brand .brand-compact { display:none; width:30px; height:30px; filter:none; }
.brand-caption { color:var(--sidebar-muted); font-size:10px; line-height:1.4; font-weight:500; padding-left:4px; }
@media(min-width:961px) {
  .shell.nav-collapsed .sidebar .goulaa-brand { align-items:center; }
  .shell.nav-collapsed .sidebar .goulaa-brand .brand-full,
  .shell.nav-collapsed .sidebar .goulaa-brand .brand-caption { display:none; }
  .shell.nav-collapsed .sidebar .goulaa-brand .brand-compact { display:block; }
}
@media(max-width:700px) { .site-surface .logo img[data-brand="wordmark"] { width:136px; } }
