:root {
  --bz-blue: #0b66b8;
  --bz-blue-deep: #084d8c;
  --bz-navy: #071d2f;
  --bz-navy-soft: #0d2d47;
  --bz-orange: #f57c00;
  --bz-orange-soft: #fff1e3;
  --bz-slate: #405466;
  --bz-ink: #172633;
  --bz-muted: #6f7f8d;
  --bz-line: #dce5eb;
  --bz-surface: #f4f7f9;
  --bs-primary: #0b66b8;
  --bs-primary-rgb: 11, 102, 184;
  --bs-link-color: #0b66b8;
  --bs-link-hover-color: #084d8c;
  --bs-border-radius: .85rem;
  --bs-border-radius-lg: 1rem;
  color-scheme: light;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--bz-ink);
  background: var(--bz-surface);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-underline-offset: 3px;
}

.app-shell {
  overflow-x: hidden;
}

.brand-panel {
  position: sticky;
  top: 0;
  isolation: isolate;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(54, 149, 224, .24), transparent 28%),
    linear-gradient(145deg, var(--bz-navy-soft), var(--bz-navy) 68%);
}

.brand-panel::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -9rem;
  bottom: 8%;
  width: 28rem;
  height: 16rem;
  border-top: 3px solid rgba(245,124,0,.8);
  border-right: 3px solid rgba(245,124,0,.8);
  transform: skewY(25deg) rotate(-8deg);
  opacity: .48;
}

.blueprint-lines {
  position: absolute;
  z-index: -1;
  top: 22%;
  right: -8rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(255,255,255,.025),
    0 0 0 8rem rgba(255,255,255,.018);
}

.brand-top,
.brand-message,
.security-card {
  position: relative;
  z-index: 1;
}

.logo-tile {
  display: inline-flex;
  width: clamp(175px, 15vw, 230px);
  padding: .45rem .8rem;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.logo-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0,0,0,.23);
}

.logo-tile img,
.mobile-brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

.portal-badge i,
.mobile-security i {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #59d494;
  box-shadow: 0 0 0 4px rgba(89,212,148,.13);
}

.brand-message {
  max-width: 620px;
  padding-block: clamp(2.5rem, 5vh, 5rem);
}

.brand-kicker {
  color: #ffb66c;
  letter-spacing: .2em;
  font-size: .69rem;
}

.brand-message h1 {
  max-width: 590px;
  font-size: clamp(3.25rem, 5.1vw, 5.7rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.brand-message h1 span {
  color: #8cc8f4;
}

.brand-lead {
  max-width: 530px;
  color: rgba(255,255,255,.7);
  font-size: 1.02rem;
  line-height: 1.75;
}

.brand-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 610px;
  margin-top: clamp(2rem, 4vh, 3.4rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.12);
}

.brand-benefit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .7rem;
  padding: 1.05rem;
  background: rgba(7,29,47,.58);
  backdrop-filter: blur(8px);
}

.brand-benefit .benefit-index {
  color: var(--bz-orange);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.brand-benefit strong,
.brand-benefit small {
  display: block;
}

.brand-benefit strong {
  margin-bottom: .2rem;
  font-size: .84rem;
}

.brand-benefit small {
  color: rgba(255,255,255,.55);
  font-size: .67rem;
  line-height: 1.35;
}

.security-card {
  max-width: 520px;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.13);
}

.security-card p {
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  line-height: 1.45;
}

.security-card small {
  color: rgba(255,255,255,.52);
}

.security-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #ff922b, var(--bz-orange));
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(245,124,0,.22);
}

.security-check.light {
  color: var(--bz-blue-deep);
  background: #dfeefa;
  box-shadow: none;
}

.auth-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 8%, rgba(11,102,184,.07), transparent 24rem),
    radial-gradient(circle at 8% 96%, rgba(245,124,0,.06), transparent 22rem),
    var(--bz-surface);
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: 12%;
  right: -5rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(11,102,184,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(11,102,184,.025);
  pointer-events: none;
}

.auth-topbar {
  position: relative;
  z-index: 2;
  min-height: 76px;
  padding: 1.2rem clamp(2rem, 4vw, 4.5rem);
  color: var(--bz-muted);
  font-size: .8rem;
  gap: .65rem;
}

.auth-topbar a {
  font-weight: 700;
  text-decoration: none;
}

.auth-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 132px);
  padding: 2rem clamp(2rem, 6vw, 6.5rem) 3.5rem;
}

.auth-card {
  position: relative;
  max-width: 560px;
  padding: clamp(2rem, 4vw, 3.2rem);
  overflow: hidden;
  border: 1px solid rgba(215,225,232,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow:
    0 32px 80px rgba(23,38,51,.10),
    0 4px 15px rgba(23,38,51,.04);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--bz-blue) 0 78%, var(--bz-orange) 78% 100%);
}

.auth-header {
  margin-bottom: 2rem;
}

.form-kicker-wrap {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.form-kicker-wrap > span {
  width: 1.7rem;
  height: 2px;
  background: var(--bz-orange);
}

.form-kicker {
  color: var(--bz-orange);
  letter-spacing: .18em;
  font-size: .65rem;
}

.auth-card h2 {
  color: var(--bz-navy);
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.auth-description {
  max-width: 480px;
  color: var(--bz-muted);
  font-size: .91rem;
  line-height: 1.65;
}

.form-label {
  margin-bottom: .5rem;
  color: #334958;
  font-size: .83rem;
}

.form-control,
.input-group-text,
.input-group .btn {
  border-color: var(--bz-line);
}

.form-control {
  min-height: 54px;
  color: var(--bz-ink);
  background: #f9fbfc;
  font-size: .94rem;
}

.form-control::placeholder {
  color: #a3aeb7;
}

.form-control:focus {
  border-color: rgba(11,102,184,.55);
  background: #fff;
  box-shadow: 0 0 0 .25rem rgba(11,102,184,.09);
}

.input-group-text {
  min-width: 49px;
  justify-content: center;
  color: #5e7384;
  background: #f3f7f9;
  font-size: .8rem;
  font-weight: 800;
}

.input-group-lg > .form-control,
.input-group-lg > .input-group-text,
.input-group-lg > .btn {
  padding-top: .72rem;
  padding-bottom: .72rem;
}

.password-toggle {
  min-width: 82px;
  color: var(--bz-blue);
  background: #fff;
  font-size: .75rem;
  font-weight: 750;
}

.form-text {
  color: #83919c;
  font-size: .73rem;
}

.btn {
  border-radius: 13px;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bz-blue);
  --bs-btn-border-color: var(--bz-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bz-blue-deep);
  --bs-btn-hover-border-color: var(--bz-blue-deep);
  --bs-btn-active-bg: #063e72;
  --bs-btn-active-border-color: #063e72;
  --bs-btn-disabled-bg: var(--bz-blue);
  --bs-btn-disabled-border-color: var(--bz-blue);
  min-height: 55px;
  background-image: linear-gradient(110deg, var(--bz-blue), #0877cf);
  font-size: .94rem;
  font-weight: 750;
  box-shadow: 0 14px 28px rgba(11,102,184,.21);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 34px rgba(11,102,184,.28);
  filter: saturate(1.08);
}

.btn-primary > span {
  display: inline-block;
  margin-left: .3rem;
  font-size: 1.08rem;
  transition: transform .18s ease;
}

.btn-primary:hover > span {
  transform: translateX(3px);
}

.btn-outline-secondary {
  --bs-btn-color: var(--bz-slate);
  --bs-btn-border-color: var(--bz-line);
  --bs-btn-hover-bg: var(--bz-slate);
  --bs-btn-hover-border-color: var(--bz-slate);
}

.double-check {
  padding: .9rem 1rem;
  border: 1px solid #e3eaf0;
  border-radius: 14px;
  background: #f8fafc;
}

.double-check > span {
  color: var(--bz-orange);
  font-size: .65rem;
}

.double-check p {
  line-height: 1.45;
}

.otp-input {
  height: 82px;
  color: var(--bz-blue-deep);
  background: #f7fafc;
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: .5em;
  padding-left: .5em;
}

.alert {
  border-radius: 14px;
  font-size: .86rem;
}

.alert-danger {
  --bs-alert-color: #842f2f;
  --bs-alert-bg: #fff2f1;
  --bs-alert-border-color: #f2cfcb;
}

.alert-success {
  --bs-alert-color: #23613b;
  --bs-alert-bg: #eef8f1;
  --bs-alert-border-color: #cce6d5;
}

.account-card {
  border: 1px solid #e1e9ef !important;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f6fafd);
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--bz-blue), var(--bz-blue-deep));
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(11,102,184,.2);
}

.security-status {
  color: #244c68;
  border: 1px solid #cfe3f3;
  border-radius: 15px;
  background: #eef7fd;
}

.security-status .badge {
  color: #fff;
  background: var(--bz-blue);
}

.account-link {
  color: var(--bz-ink);
  border-color: #dde6ec !important;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.account-link:hover {
  color: var(--bz-ink);
  border-color: #aacbe4 !important;
  box-shadow: 0 10px 25px rgba(31,45,57,.07);
  transform: translateY(-1px);
}

.action-icon {
  color: var(--bz-orange);
  font-weight: 900;
  letter-spacing: .12em;
}

.auth-footer {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 1.7rem;
  color: #8a98a3;
  font-size: .72rem;
  letter-spacing: .025em;
}

.footer-lock {
  display: inline-block;
  width: .58rem;
  height: .48rem;
  margin-right: .38rem;
  border: 1.5px solid #90a0ac;
  border-radius: 2px;
  vertical-align: -1px;
}

.footer-lock::before {
  content: "";
  display: block;
  width: .32rem;
  height: .28rem;
  margin: -.3rem auto 0;
  border: 1.5px solid #90a0ac;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.mobile-brand {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e9ee;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
}

.mobile-brand a {
  display: block;
  width: min(180px, 48vw);
}

.mobile-security {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #587080;
  font-size: .7rem;
  font-weight: 700;
}

@media (max-width: 1399.98px) {
  .brand-panel {
    padding: 2.6rem;
  }

  .brand-message h1 {
    font-size: clamp(3rem, 4.6vw, 4.6rem);
  }

  .brand-benefit {
    padding: .9rem;
  }

  .auth-content {
    padding-inline: 3.5rem;
  }
}

@media (max-width: 1199.98px) {
  .portal-badge {
    display: none;
  }

  .brand-benefits {
    grid-template-columns: 1fr;
  }

  .brand-benefit {
    flex-direction: row;
    align-items: center;
  }

  .brand-benefit small {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .auth-panel {
    min-height: 100vh;
  }

  .auth-content {
    min-height: calc(100vh - 125px);
    padding: 2.5rem 1.5rem;
  }

  .auth-card {
    max-width: 600px;
  }
}

@media (max-width: 575.98px) {
  .auth-panel {
    background: #fff;
  }

  .auth-content {
    align-items: flex-start !important;
    min-height: auto;
    padding: 1.6rem .9rem 2.2rem;
  }

  .auth-card {
    padding: 2rem 1.25rem;
    border-color: transparent;
    border-radius: 20px;
    box-shadow: none;
  }

  .auth-header {
    margin-bottom: 1.7rem;
  }

  .auth-card h2 {
    font-size: 1.95rem;
  }

  .auth-description {
    font-size: .85rem;
  }

  .input-group-lg > .form-control,
  .input-group-lg > .input-group-text,
  .input-group-lg > .btn {
    font-size: .9rem;
  }

  .password-toggle {
    min-width: 72px;
    padding-inline: .55rem;
  }

  .otp-input {
    font-size: 1.7rem;
  }

  .auth-footer {
    padding-bottom: 1.4rem;
  }
}

/* Archivage réversible des chantiers */
.archive-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

.archive-toolbar-actions .btn span {
  display: inline-grid;
  min-width: 1.4rem;
  margin-left: .25rem;
  padding: .08rem .35rem;
  place-items: center;
  border-radius: 99px;
  color: inherit;
  background: rgba(255, 255, 255, .18);
  font-size: .68rem;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: .2rem .55rem;
  border: 1px solid #cbd7e0;
  border-radius: 99px;
  color: #516779;
  background: #f3f6f8;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.chantier-row.is-archived {
  border-style: dashed;
  background: linear-gradient(135deg, #fff, #f4f7f9);
}

.archive-dependencies {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .48rem;
}

.archive-dependencies span {
  padding: .2rem .45rem;
  border-radius: 7px;
  color: #53697a;
  background: #edf3f7;
  font-size: .61rem;
  font-weight: 700;
}

.chantier-row-actions form { margin: 0; }

@media (max-width: 767.98px) {
  .archive-toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }
  .archive-toolbar-actions .btn { flex: 1 1 auto; }
  .chantier-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .archive-toolbar-actions .btn-primary { flex-basis: 100%; }
  .chantier-row-actions form,
  .chantier-row-actions form .btn { width: 100%; }
  .chantier-row-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Client management */
.auth-card-wide {
  max-width: 920px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.dashboard-action {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid #dce6ed;
  border-radius: 15px;
  color: var(--bz-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dashboard-action:hover {
  color: var(--bz-ink);
  border-color: #aacbe4;
  box-shadow: 0 10px 25px rgba(31,45,57,.07);
  transform: translateY(-1px);
}

.dashboard-action-primary {
  color: #fff;
  border-color: var(--bz-blue);
  background: linear-gradient(130deg, var(--bz-blue-deep), var(--bz-blue));
}

.dashboard-action-primary:hover {
  color: #fff;
  border-color: var(--bz-blue-deep);
}

.dashboard-action strong,
.dashboard-action small {
  display: block;
}

.dashboard-action strong {
  font-size: .86rem;
}

.dashboard-action small {
  margin-top: .18rem;
  overflow: hidden;
  color: var(--bz-muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-primary small {
  color: rgba(255,255,255,.65);
}

.dashboard-action-icon,
.client-count {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  color: var(--bz-blue);
  background: #e7f2fa;
  font-size: 1.25rem;
  font-weight: 800;
}

.dashboard-action-primary .dashboard-action-icon {
  color: #fff;
  background: rgba(255,255,255,.15);
}

.client-count {
  color: var(--bz-orange);
  background: var(--bz-orange-soft);
  font-size: .9rem;
}

.dashboard-arrow {
  color: #9aabb7;
}

.dashboard-action-primary .dashboard-arrow {
  color: rgba(255,255,255,.7);
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e7edf1;
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.3rem;
}

.form-section-heading > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  color: var(--bz-blue);
  background: #eaf4fb;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.form-section-heading h3 {
  margin: 0 0 .18rem;
  color: var(--bz-navy);
  font-size: .97rem;
  font-weight: 800;
}

.form-section-heading p {
  margin: 0;
  color: var(--bz-muted);
  font-size: .76rem;
}

.required-mark {
  color: var(--bz-orange);
}

.client-type-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.client-type-selector label {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 72px;
  padding: .85rem 1rem;
  border: 1px solid var(--bz-line);
  border-radius: 14px;
  background: #f9fbfc;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.client-type-selector label:hover {
  border-color: #abcce5;
}

.client-type-selector .type-symbol {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: #607687;
  background: #e9eff3;
  font-size: .75rem;
  font-weight: 850;
}

.client-type-selector strong,
.client-type-selector small {
  display: block;
}

.client-type-selector strong {
  color: var(--bz-ink);
  font-size: .86rem;
}

.client-type-selector small {
  margin-top: .15rem;
  color: var(--bz-muted);
  font-size: .7rem;
}

.client-type-selector .btn-check:checked + label {
  border-color: var(--bz-blue);
  background: #f1f8fd;
  box-shadow: 0 0 0 3px rgba(11,102,184,.08);
}

.client-type-selector .btn-check:checked + label .type-symbol {
  color: #fff;
  background: linear-gradient(145deg, var(--bz-blue), var(--bz-blue-deep));
}

.client-form .form-control-lg {
  min-height: 52px;
  font-size: .91rem;
}

.client-form textarea.form-control {
  padding: .9rem 1rem;
  resize: vertical;
}

.client-form-actions {
  margin: 2rem -3.2rem -3.2rem;
  padding: 1.25rem 3.2rem;
  border-top: 1px solid #e3eaf0;
  background: #f8fafb;
}

.client-toolbar .btn {
  min-height: 44px;
}

.client-empty {
  padding: 3.5rem 1.5rem;
  border: 1px dashed #cddae3;
  border-radius: 18px;
  background: #f9fbfc;
}

.client-empty-icon {
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  margin: 0 auto 1.2rem;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--bz-blue), var(--bz-blue-deep));
  font-size: 1.7rem;
  box-shadow: 0 12px 25px rgba(11,102,184,.2);
}

.client-list {
  overflow: hidden;
  border: 1px solid #e0e8ee;
  border-radius: 17px;
  background: #fff;
}

.client-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e8eef2;
}

.client-row:last-child {
  border-bottom: 0;
}

.client-row:hover {
  background: #f9fbfc;
}

.client-avatar {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 13px;
  color: var(--bz-blue-deep);
  background: #e5f1fa;
  font-size: .88rem;
  font-weight: 850;
}

.client-main {
  min-width: 0;
}

.client-main h3 {
  color: var(--bz-navy);
}

.client-type-badge {
  padding: .22rem .5rem;
  border-radius: 999px;
  color: #5f7484;
  background: #eef3f6;
  font-size: .62rem;
  font-weight: 750;
}

.client-contact {
  color: #647784;
  font-size: .72rem;
}

.client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  color: var(--bz-muted);
  font-size: .72rem;
}

.client-meta span {
  position: relative;
}

.client-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -.58rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7c3cb;
}

.client-date {
  color: #94a1aa;
  font-size: .67rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .client-type-selector {
    grid-template-columns: 1fr;
  }

  .client-form-actions {
    margin: 2rem -1.25rem -2rem;
    padding: 1rem 1.25rem;
  }

  .client-form-actions .btn {
    width: 100%;
  }

  .client-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .client-date {
    display: none;
  }

  .client-meta {
    display: grid;
    gap: .18rem;
  }

  .client-meta span + span::before {
    display: none;
  }
}
/* Authenticated workspace */
.workspace-body {
  min-height: 100vh;
  color: var(--bz-ink);
  background: #f3f6f8;
}

.workspace-shell {
  display: flex;
  min-height: 100vh;
}

.workspace-sidebar {
  --bs-offcanvas-width: 276px;
  width: 276px;
  color: #fff;
  border: 0 !important;
  background:
    radial-gradient(circle at 20% 4%, rgba(38,131,203,.22), transparent 15rem),
    linear-gradient(180deg, #0b2b43, #071d2f 68%);
}

.workspace-sidebar .offcanvas-header {
  min-height: 58px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #fff;
}

.workspace-sidebar .offcanvas-body {
  overflow-x: hidden;
}

.workspace-brand {
  padding: 1.6rem 1.45rem 1.2rem;
}

.workspace-brand a {
  display: block;
  width: 184px;
  padding: .38rem .65rem;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.17);
}

.workspace-brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.workspace-brand-label {
  display: block;
  margin: .75rem 0 0 .2rem;
  color: rgba(255,255,255,.43);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.workspace-nav {
  padding: 1rem .85rem;
}

.workspace-nav-title {
  margin: 0 0 .55rem .75rem;
  color: rgba(255,255,255,.37);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.workspace-nav-title-secondary {
  margin-top: 1.8rem;
}

.workspace-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .78rem;
  min-height: 46px;
  margin-bottom: .3rem;
  padding: .55rem .72rem;
  border-radius: 12px;
  color: rgba(255,255,255,.68);
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.workspace-nav > a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  transform: translateX(2px);
}

.workspace-nav > a.active {
  color: #fff;
  background: linear-gradient(110deg, rgba(11,102,184,.88), rgba(11,102,184,.46));
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.workspace-nav > a.active::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -.85rem;
  width: 3px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: var(--bz-orange);
}

.workspace-nav-icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 8px;
  color: #9ec9e9;
  background: rgba(255,255,255,.075);
  font-size: .72rem;
  font-style: normal;
  font-weight: 850;
}

.workspace-nav-plus {
  color: #ffc285;
}

.workspace-sidebar-bottom {
  padding: .9rem;
}

.workspace-sidebar-bottom > * {
  min-width: 0;
}

.workspace-sidebar-bottom .pwa-install-button:not([hidden]) {
  display: flex;
  min-height: 44px;
  margin-bottom: .55rem !important;
  padding: .55rem .72rem;
  border-color: rgba(255,255,255,.42);
  border-radius: 12px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.035);
  font-size: .72rem;
  font-weight: 800;
}

.workspace-sidebar-bottom .pwa-install-button:hover,
.workspace-sidebar-bottom .pwa-install-button:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.09);
}

.workspace-sidebar-bottom .pwa-install-button .ui-icon {
  width: 1rem;
  height: 1rem;
}

.workspace-global-return {
  margin: 0 0 .55rem;
}

.workspace-global-return button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: .6rem;
  padding: .55rem .68rem;
  border: 1px solid rgba(125,195,238,.3);
  border-radius: 12px;
  color: #d7efff;
  background: rgba(9,104,164,.18);
  font-family: inherit;
  font-size: .71rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.workspace-global-return button:hover,
.workspace-global-return button:focus-visible {
  color: #fff;
  border-color: rgba(151,213,251,.58);
  background: rgba(12,122,191,.3);
  transform: translateY(-1px);
}

.workspace-global-return-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  transform: rotate(180deg);
}

.workspace-global-return button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-support {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .65rem;
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.035);
  text-decoration: none;
}

.workspace-support:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.workspace-support > span:first-child {
  display: grid;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  color: #ffbd7a;
  background: rgba(245,124,0,.13);
  font-size: .75rem;
  font-weight: 850;
}

.workspace-support strong,
.workspace-support small {
  display: block;
}

.workspace-support strong {
  font-size: .72rem;
}

.workspace-support small {
  margin-top: .08rem;
  color: rgba(255,255,255,.37);
  font-size: .62rem;
}

.workspace-account {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .75rem;
  border-radius: 13px;
  background: rgba(0,0,0,.16);
}

.workspace-account-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--bz-orange), #ff9c3f);
  font-size: .7rem;
  font-weight: 850;
}

.workspace-account-copy {
  min-width: 0;
}

.workspace-account-copy strong,
.workspace-account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-account-copy strong {
  color: #fff;
  font-size: .71rem;
}

.workspace-account-copy small {
  color: rgba(255,255,255,.4);
  font-size: .59rem;
}

.workspace-account form {
  margin: 0;
}

.workspace-account button {
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.07);
  font-size: .8rem;
  line-height: 1;
}

.workspace-account button:hover {
  color: #fff;
  background: rgba(255,255,255,.13);
}

.workspace-main {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex: 1 1 auto;
  flex-direction: column;
}

.workspace-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.4rem, 3vw, 2.7rem);
  border-bottom: 1px solid #e1e8ed;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.workspace-page-title {
  min-width: 0;
}

.workspace-page-title p {
  margin: 0 0 .12rem;
  color: var(--bz-orange);
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.workspace-page-title h1 {
  margin: 0;
  color: var(--bz-navy);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.workspace-topbar-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  padding: .55rem .75rem;
  border: 1px solid #deebe4;
  border-radius: 999px;
  color: #557161;
  background: #f4faf6;
  font-size: .65rem;
  font-weight: 700;
}

.workspace-topbar-status i,
.welcome-label i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #43be7b;
  box-shadow: 0 0 0 4px rgba(67,190,123,.12);
}

.workspace-menu-button {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  padding: .65rem;
  place-content: center;
  gap: 4px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #fff;
}

.workspace-menu-button span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--bz-slate);
}

.workspace-content {
  width: 100%;
  max-width: 1540px;
  flex: 1 1 auto;
  align-self: center;
  padding: clamp(1.4rem, 3vw, 2.7rem);
}

.workspace-page-description {
  margin: -.45rem 0 1.5rem;
  color: var(--bz-muted);
  font-size: .8rem;
}

.workspace-alert {
  margin-bottom: 1.3rem;
  box-shadow: 0 8px 24px rgba(23,38,51,.05);
}

.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.4rem, 3vw, 2.7rem) 1.4rem;
  color: #99a5ae;
  font-size: .62rem;
}

.workspace-welcome {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 22%, rgba(79,171,237,.32), transparent 18rem),
    linear-gradient(125deg, #082842, #0b568f 72%, #0b66b8);
  box-shadow: 0 20px 46px rgba(7,29,47,.14);
}

.workspace-welcome::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.workspace-welcome::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34%;
  height: 4px;
  background: var(--bz-orange);
}

.workspace-welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.welcome-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
  color: rgba(255,255,255,.65);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.workspace-welcome h2 {
  margin: 0 0 .65rem;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -.05em;
}

.workspace-body .workspace-welcome h2 {
  color: #fff;
}

.workspace-welcome h2 span {
  color: #9cd2f7;
}

.workspace-welcome-copy > p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: .9rem;
  line-height: 1.65;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.welcome-actions .btn {
  min-height: 43px;
  padding: .67rem 1rem;
  font-size: .75rem;
  font-weight: 750;
}

.welcome-primary-action {
  color: var(--bz-navy);
  border-color: #fff;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.13);
}

.welcome-primary-action:hover {
  color: var(--bz-blue-deep);
  background: #f8fbfd;
}

.welcome-primary-action span {
  margin-right: .35rem;
  color: var(--bz-orange);
  font-size: 1rem;
}

.welcome-secondary-action {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}

.welcome-secondary-action:hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
}

.workspace-welcome-art {
  position: relative;
  flex: 0 0 260px;
  height: 180px;
  opacity: .9;
}

.welcome-roof {
  position: absolute;
  top: 28px;
  left: 30px;
  width: 155px;
  height: 4px;
  border-radius: 4px;
  background: #82c4f3;
  transform: rotate(-28deg);
  transform-origin: left center;
}

.welcome-roof::after {
  content: "";
  position: absolute;
  top: 0;
  left: 145px;
  width: 125px;
  height: 4px;
  border-radius: 4px;
  background: var(--bz-orange);
  transform: rotate(55deg);
  transform-origin: left center;
}

.welcome-building {
  position: absolute;
  right: 28px;
  bottom: 12px;
  width: 168px;
  height: 106px;
  border: 2px solid rgba(255,255,255,.32);
  border-top: 0;
}

.welcome-building::before,
.welcome-building::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 38px;
  height: 58px;
  border: 2px solid rgba(255,255,255,.25);
  border-bottom: 0;
}

.welcome-building::before {
  left: 24px;
}

.welcome-building::after {
  right: 24px;
}

.welcome-sun {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bz-orange);
  box-shadow: 0 0 0 9px rgba(245,124,0,.13);
}

.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.workspace-metric {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #e0e8ed;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23,38,51,.045);
}

.metric-icon {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--bz-blue), var(--bz-blue-deep));
  font-size: .78rem;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(11,102,184,.18);
}

.metric-icon-blue {
  color: var(--bz-blue-deep);
  background: #e6f2fb;
  box-shadow: none;
}

.metric-icon-orange {
  color: #b45600;
  background: var(--bz-orange-soft);
  box-shadow: none;
}

.workspace-metric p,
.workspace-metric small {
  margin: 0;
  color: var(--bz-muted);
}

.workspace-metric p {
  font-size: .7rem;
  font-weight: 700;
}

.workspace-metric strong {
  display: inline-block;
  margin: .06rem .35rem 0 0;
  color: var(--bz-navy);
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1;
}

.workspace-metric small {
  font-size: .6rem;
}

.workspace-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(290px,.85fr);
  gap: 1.25rem;
}

.workspace-panel {
  border: 1px solid #e0e8ed;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(23,38,51,.045);
}

.workspace-panel-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #e8eef2;
}

.workspace-panel-header p {
  margin: 0 0 .14rem;
  color: var(--bz-orange);
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.workspace-panel-header h2 {
  margin: 0;
  color: var(--bz-navy);
  font-size: .94rem;
  font-weight: 800;
}

.workspace-panel-header > a {
  color: var(--bz-blue);
  font-size: .68rem;
  font-weight: 750;
  text-decoration: none;
}

.recent-empty {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: 1.3rem;
}

.recent-empty > span {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 12px;
  color: var(--bz-blue);
  background: #e7f2fa;
  font-size: 1.2rem;
  font-weight: 800;
}

.recent-empty strong {
  display: block;
  color: var(--bz-navy);
  font-size: .78rem;
}

.recent-empty p {
  margin: .15rem 0 0;
  color: var(--bz-muted);
  font-size: .68rem;
}

.recent-empty a {
  font-size: .68rem;
  font-weight: 750;
  text-decoration: none;
}

.recent-client-list {
  padding: .35rem 1.25rem;
}

.recent-client-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid #edf1f4;
}

.recent-client-row:last-child {
  border-bottom: 0;
}

.recent-client-avatar {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 11px;
  color: var(--bz-blue-deep);
  background: #e7f2fa;
  font-size: .7rem;
  font-weight: 850;
}

.recent-client-row strong {
  display: block;
  overflow: hidden;
  color: var(--bz-navy);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-client-row p {
  margin: .15rem 0 0;
  color: var(--bz-muted);
  font-size: .63rem;
}

.recent-client-row time {
  color: #9ca8b1;
  font-size: .6rem;
}

.quick-actions-panel {
  overflow: hidden;
}

.workspace-quick-actions {
  padding: .35rem 1rem;
}

.workspace-quick-actions > a {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .8rem .25rem;
  border-bottom: 1px solid #edf1f4;
  color: var(--bz-ink);
  text-decoration: none;
}

.workspace-quick-actions > a:last-child {
  border-bottom: 0;
}

.workspace-quick-actions > a:hover strong {
  color: var(--bz-blue);
}

.quick-action-icon {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 10px;
  color: var(--bz-blue);
  background: #e7f2fa;
  font-size: .67rem;
  font-style: normal;
  font-weight: 850;
}

.quick-action-orange {
  color: #b95a00;
  background: var(--bz-orange-soft);
  font-size: 1rem;
}

.quick-action-slate {
  color: var(--bz-slate);
  background: #edf1f4;
}

.workspace-quick-actions strong,
.workspace-quick-actions small {
  display: block;
}

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

.workspace-quick-actions small {
  margin-top: .1rem;
  color: var(--bz-muted);
  font-size: .61rem;
}

.workspace-quick-actions i {
  color: #a7b4bd;
  font-size: .75rem;
  font-style: normal;
}

.workspace-security-note {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .35rem 1rem 1rem;
  padding: .75rem;
  border: 1px solid #d8e9df;
  border-radius: 12px;
  background: #f3faf6;
}

.workspace-security-note .security-check {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px;
  font-size: .7rem;
}

.workspace-security-note p,
.workspace-security-note small {
  margin: 0;
}

.workspace-security-note strong,
.workspace-security-note small {
  display: block;
}

.workspace-security-note strong {
  color: #376049;
  font-size: .66rem;
}

.workspace-security-note small {
  color: #71867a;
  font-size: .58rem;
}

/* Connected content surfaces */
.workspace-content-clients-nouveau .client-form,
.workspace-content-changer-mot-de-passe > form {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid #e0e8ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(23,38,51,.05);
}

.workspace-content-clients-nouveau .client-form-actions {
  margin: 2rem clamp(-2.2rem, -3vw, -1.4rem) clamp(-2.2rem, -3vw, -1.4rem);
  padding: 1.15rem clamp(1.4rem, 3vw, 2.2rem);
}

.workspace-content-changer-mot-de-passe {
  max-width: 720px;
  margin-inline: auto;
}

.workspace-content-changer-mot-de-passe > p:last-child {
  text-align: left !important;
}

.workspace-content-clients .client-toolbar {
  padding: 1rem 1.15rem;
  border: 1px solid #e0e8ed;
  border-radius: 16px;
  background: #fff;
}

.workspace-content-clients .client-list,
.workspace-content-clients .client-empty {
  box-shadow: 0 10px 30px rgba(23,38,51,.045);
}

@media (min-width: 992px) {
  .workspace-sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    height: 100vh;
    transform: none !important;
    visibility: visible !important;
  }

  .workspace-main {
    margin-left: 276px;
  }
}

@media (max-width: 1199.98px) {
  .workspace-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .workspace-welcome-art {
    flex-basis: 220px;
    transform: scale(.88);
    transform-origin: right center;
  }
}

@media (max-width: 767.98px) {
  .workspace-topbar {
    min-height: 72px;
    padding: .85rem 1rem;
  }

  .workspace-page-title h1 {
    font-size: 1.18rem;
  }

  .workspace-content {
    padding: 1.15rem;
  }

  .workspace-page-description {
    margin-bottom: 1rem;
  }

  .workspace-welcome {
    min-height: auto;
    padding: 1.65rem;
    border-radius: 19px;
  }

  .workspace-welcome-art {
    display: none;
  }

  .workspace-welcome h2 {
    font-size: 2rem;
  }

  .workspace-metrics {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .workspace-metric {
    padding: .95rem 1rem;
  }

  .workspace-metric strong {
    font-size: 1.5rem;
  }

  .workspace-footer {
    padding-inline: 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .workspace-footer {
    display: block;
  }

  .workspace-footer span:last-child {
    display: none;
  }

  .workspace-content-clients-nouveau .client-form {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .workspace-content-clients-nouveau .client-form-actions {
    margin: 2rem -1.15rem -1.15rem;
    padding: 1rem 1.15rem;
  }
}
/* Chantiers and Leaflet maps */
.workspace-content-chantiers-nouveau .client-form {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid #e0e8ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(23,38,51,.05);
}

.workspace-content-chantiers-nouveau .client-form-actions {
  margin: 2rem clamp(-2.2rem, -3vw, -1.4rem) clamp(-2.2rem, -3vw, -1.4rem);
  padding: 1.15rem clamp(1.4rem, 3vw, 2.2rem);
}

.workspace-content-chantiers .client-toolbar {
  padding: 1rem 1.15rem;
  border: 1px solid #e0e8ed;
  border-radius: 16px;
  background: #fff;
}

.chantier-form .form-select-lg {
  min-height: 52px;
  border-color: var(--bz-line);
  color: var(--bz-ink);
  background-color: #f9fbfc;
  font-size: .91rem;
}

.chantier-form .form-select:focus {
  border-color: rgba(11,102,184,.55);
  background-color: #fff;
  box-shadow: 0 0 0 .25rem rgba(11,102,184,.09);
}

.location-toolbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.map-status {
  color: var(--bz-muted);
  font-size: .72rem;
  line-height: 1.4;
}

.map-status-success {
  color: #39704f;
  font-weight: 700;
}

.map-status-error {
  color: #a43e3e;
  font-weight: 700;
}

.location-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 390px;
  overflow: hidden;
  border: 1px solid #d8e2e9;
  border-radius: 17px;
  background: #e9eef1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.location-map:focus-within {
  box-shadow: 0 0 0 .25rem rgba(11,102,184,.09);
}

.location-map .leaflet-control-zoom a {
  color: var(--bz-blue-deep);
}

.location-map .leaflet-control-attribution {
  color: #596b77;
  background: rgba(255,255,255,.9);
  font-size: 9px;
}

.location-map .leaflet-control-attribution a {
  color: var(--bz-blue-deep);
}

.map-privacy {
  margin-top: .65rem;
  color: #85929c;
  font-size: .67rem;
}

.chantier-list {
  overflow: hidden;
  border: 1px solid #e0e8ee;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23,38,51,.045);
}

.chantier-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 82px;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e8eef2;
  transition: background .16s ease;
}

.chantier-row:last-child {
  border-bottom: 0;
}

.chantier-row:hover {
  background: #f9fbfc;
}

.chantier-avatar {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--bz-blue-deep), var(--bz-blue));
  font-size: .75rem;
  font-weight: 850;
  box-shadow: 0 9px 20px rgba(11,102,184,.18);
}

.chantier-main {
  min-width: 0;
}

.chantier-main h3 {
  overflow: hidden;
  color: var(--bz-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chantier-status {
  padding: .23rem .52rem;
  border-radius: 999px;
  font-size: .59rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-prospect {
  color: #5e6e7a;
  background: #edf1f4;
}

.status-planned {
  color: #76520d;
  background: #fff4d8;
}

.status-progress {
  color: #0a5f9e;
  background: #e2f1fc;
}

.status-paused {
  color: #a24e25;
  background: #fff0e7;
}

.status-complete {
  color: #36704e;
  background: #e8f6ed;
}

.chantier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  color: var(--bz-muted);
  font-size: .69rem;
}

.chantier-meta span {
  position: relative;
}

.chantier-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -.57rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7c3cb;
}

.chantier-budget {
  color: var(--bz-slate);
  font-size: .78rem;
  white-space: nowrap;
}

.chantier-empty-icon {
  background: linear-gradient(145deg, var(--bz-orange), #ff9b37);
}

@media (max-width: 767.98px) {
  .location-map {
    height: 330px;
  }

  .chantier-row {
    grid-template-columns: auto minmax(0,1fr);
  }

  .chantier-budget {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .workspace-content-chantiers-nouveau .client-form {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .workspace-content-chantiers-nouveau .client-form-actions {
    margin: 2rem -1.15rem -1.15rem;
    padding: 1rem 1.15rem;
  }

  .location-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .location-map {
    height: 290px;
    border-radius: 14px;
  }

  .chantier-meta {
    display: grid;
    gap: .16rem;
  }

  .chantier-meta span + span::before {
    display: none;
  }
}
.registration-progress{display:flex;align-items:center;gap:.75rem;margin:-.35rem 0 1.6rem;padding-bottom:1.25rem;border-bottom:1px solid #e1e9ef;color:#6d8290;font-size:.78rem;font-weight:700}.registration-progress span{display:flex;align-items:center;gap:.45rem}.registration-progress b{display:grid;width:25px;height:25px;place-items:center;border:1px solid #bed0dc;border-radius:50%;font-size:.68rem}.registration-progress .is-active{color:var(--bz-blue)}.registration-progress .is-active b{color:#fff;background:var(--bz-blue);border-color:var(--bz-blue)}.registration-progress>i{width:28px;height:1px;background:#cddbe4}.registration-fields .form-control{min-width:0}.registration-password-note{display:flex;gap:.45rem;margin:-.35rem 0 .8rem;color:#627989;font-size:.76rem}.registration-password-note span{color:#138153;font-weight:800}.registration-trial-explainer{margin:1rem 0;padding:1rem 1.1rem;border:1px solid #bfe1cf;border-radius:14px;background:#f1fbf6;color:#264e3a}.registration-trial-explainer>strong{display:block;margin-bottom:.55rem;color:#116b43;font-size:.9rem}.registration-trial-explainer ul{display:grid;gap:.35rem;margin:0;padding:0;list-style:none;font-size:.8rem}.registration-trial-explainer li{position:relative;padding-left:1.25rem}.registration-trial-explainer li::before{position:absolute;left:0;color:#138153;font-weight:900;content:'✓'}.registration-terms{display:flex;align-items:flex-start;gap:.75rem;margin:1rem 0;padding:1rem;border:1px solid #d5e3ed;border-radius:14px;background:#f8fbfd;color:#415c6e;font-size:.82rem;line-height:1.45}.registration-terms .form-check-input{flex:0 0 auto;margin-top:.2rem}.registration-terms a{color:var(--bz-blue);font-weight:700}.registration-submit{min-height:55px}.registration-reassurance{display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem 1.2rem;margin-top:1rem;color:#587182;font-size:.76rem}.registration-reassurance b{color:#138153}.auth-card-wide{max-width:760px}

/* Guided first session */
.workspace-content-bienvenue{max-width:1180px}.onboarding-hero{display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center;padding:clamp(1.5rem,4vw,3rem);color:#fff;background:linear-gradient(125deg,#082b43,#087bcc);border-radius:24px;box-shadow:0 22px 55px rgba(8,43,67,.16)}.onboarding-hero h2{max-width:650px;margin:.9rem 0;color:#fff;font-size:clamp(1.8rem,4vw,3rem)}.onboarding-hero p{max-width:700px;margin:0;color:#d9edf9}.onboarding-pill{display:inline-flex;padding:.4rem .7rem;color:#073650;background:#a9e0ff;border-radius:999px;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.onboarding-trial{display:grid;min-width:220px;padding:1.45rem;text-align:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:18px}.onboarding-trial strong{font-size:2.8rem;line-height:1}.onboarding-trial span{font-weight:800}.onboarding-trial small{margin-top:.6rem;color:#cbe5f4}.onboarding-steps{display:grid;gap:1rem;margin:1.4rem 0 0;padding:0;list-style:none}.onboarding-steps li{display:grid;grid-template-columns:58px 1fr auto;gap:1.25rem;align-items:center;padding:1.35rem;background:#fff;border:1px solid #dce7ee;border-radius:18px}.onboarding-steps>li>span{display:grid;width:48px;height:48px;place-items:center;color:#0873c3;background:#e5f4fe;border-radius:13px;font-weight:850}.onboarding-steps h3{margin:.2rem 0 .35rem;color:#082b43;font-size:1.15rem}.onboarding-steps small{color:#e76600;font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.onboarding-steps p{margin:0;color:#62798a;font-size:.85rem}.onboarding-footer-actions{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-top:1.2rem;padding:1rem 1.2rem;color:#506c7e;background:#f5f9fb;border-radius:14px}.onboarding-footer-actions p{margin:0}.onboarding-footer-actions a{flex:0 0 auto;color:#0873c3;font-weight:800;text-decoration:none}
@media(max-width:767.98px){.registration-progress{align-items:flex-start}.registration-progress>i{flex:0 0 16px;margin-top:13px}.registration-reassurance{display:grid;justify-content:start}.onboarding-hero{grid-template-columns:1fr}.onboarding-trial{min-width:0}.onboarding-steps li{grid-template-columns:44px 1fr;align-items:start}.onboarding-steps>li>span{width:40px;height:40px}.onboarding-steps .btn{grid-column:1/-1;width:100%}.onboarding-footer-actions{display:grid}.onboarding-footer-actions a{justify-self:start}}
