/* ============================================================
   7LA9I — design system
   Every backdrop-filter is preceded by its -webkit- twin (Safari < 18).
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-2: #faf7ef;
  --ink: #16241d;
  --ink-2: #2b3b33;
  --muted: #5f6c63;
  --line: #e5dfd2;
  --line-2: #efe9dd;
  --green: #0e5a3d;
  --green-dark: #0a4330;
  --green-soft: #e6efe9;
  --brass: #b58532;
  --brass-dark: #8a6423;
  --brass-soft: #f7edd8;
  --red: #b5433b;
  --red-soft: #fbe9e7;
  --blue: #35607a;
  --blue-soft: #e8f0f5;
  --shadow: 0 14px 40px rgba(22, 36, 29, 0.09);
  --shadow-sm: 0 4px 14px rgba(22, 36, 29, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}
::selection {
  background: var(--brass-soft);
}
:focus-visible {
  /* Without color-mix() the mix alone would drop, leaving no focus ring. */
  outline: 3px solid var(--brass);
  outline: 3px solid color-mix(in srgb, var(--brass) 55%, transparent);
  outline-offset: 2px;
}

/* ---------- helpers ---------- */
.mu {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.nowrap {
  white-space: nowrap;
}
.stack {
  display: grid;
  gap: 12px;
}
.stack-sm {
  display: grid;
  gap: 8px;
}
.hide {
  display: none !important;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 13px 0;
}
.brand {
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: 22px;
  color: var(--ink);
}
.brand span {
  color: var(--brass);
}
/* Wordmark + app icon, as on the brand lockups: the icon scales with the font. */
.brand.brand-lockup {
  display: inline-flex;
  align-items: center;
}
.brand-mark {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.3em;
  border-radius: 0.28em;
  flex: none;
  display: block;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: inherit;
  white-space: nowrap;
}
.pill.dark {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.pill.green {
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 22%, var(--line));
  color: var(--green);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--green-dark);
}
.btn:active {
  transform: scale(0.985);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.block {
  width: 100%;
}
.btn.sm {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 12px;
}
.btn.xs {
  padding: 7px 10px;
  font-size: 11.5px;
  border-radius: 10px;
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
}
.btn.gold {
  background: var(--brass);
  color: #221a09;
}
.btn.gold:hover {
  background: var(--brass-dark);
  color: #fff;
}
.btn.danger {
  background: var(--red);
  color: #fff;
}
.btn.danger:hover {
  background: #94352f;
}
.btn.ghost.danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 26%, var(--line));
}
.btn.ghost.danger:hover {
  background: color-mix(in srgb, var(--red) 14%, var(--red-soft));
}
.btn.link {
  background: none;
  color: var(--green);
  padding: 6px;
  font-size: 13px;
}
.btn.link:hover {
  background: var(--green-soft);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  flex: none;
  transition: 0.14s;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn.sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
  border-radius: 10px;
}
.icon-btn.danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 20%, var(--line));
}

/* ---------- chips / badges ---------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 99px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  transition: 0.14s;
  white-space: nowrap;
}
.chip:hover {
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
}
.chip.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.chip.gold {
  background: color-mix(in srgb, var(--brass) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--brass) 42%, var(--line));
  color: var(--brass-dark);
}
.chip.gold.on {
  background: var(--brass);
  border-color: var(--brass);
  color: #221a09;
}
.chip .count {
  opacity: 0.6;
  font-size: 11px;
}
.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.badge.green {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green);
}
.badge.gold {
  background: var(--brass-soft);
  border-color: transparent;
  color: var(--brass-dark);
}
.badge.red {
  background: var(--red-soft);
  border-color: transparent;
  color: var(--red);
}
.badge.blue {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.dot.live {
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card.flat {
  border-radius: var(--radius-sm);
}
.card.soft {
  background: var(--surface-2);
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}
.section-title b {
  font-size: 15.5px;
  letter-spacing: -0.015em;
}
.section-title span {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 34px 18px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.empty b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.empty span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid color-mix(in srgb, var(--green) 14%, transparent);
}
.notice.warn {
  background: var(--brass-soft);
  color: #6c4e17;
  border-color: color-mix(in srgb, var(--brass) 22%, transparent);
}
.notice.red {
  background: var(--red-soft);
  color: #7d2c26;
  border-color: color-mix(in srgb, var(--red) 18%, transparent);
}
.notice u,
.notice b {
  cursor: pointer;
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field > label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.field > small {
  font-size: 11px;
  color: var(--muted);
}
.inp,
.sel,
.ta {
  width: 100%;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: 0.15s;
}
.inp::placeholder,
.ta::placeholder {
  color: #9aa69f;
}
.inp:focus,
.sel:focus,
.ta:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 10%, transparent);
}
.ta {
  min-height: 88px;
  resize: vertical;
}
.sel {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}
.switch i {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  transition: 0.18s;
  flex: none;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s;
}
.switch.on {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
  background: var(--green-soft);
}
.switch.on i {
  background: var(--green);
}
.switch.on i::after {
  left: 17px;
}

/* ---------- auth ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-brand {
  background: radial-gradient(1200px 500px at 10% 0%, #167a54 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #fff;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand::after {
  content: "💈";
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 260px;
  opacity: 0.08;
  transform: rotate(-12deg);
}
.auth-brand .brand {
  color: #fff;
  font-size: 30px;
}
.auth-brand .brand span {
  color: #e5c078;
}
.auth-brand h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 26px 0 14px;
  max-width: 480px;
}
.auth-brand h1 em {
  color: #e8c987;
  font-style: normal;
}
.auth-brand p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.55;
}
.auth-points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  max-width: 420px;
}
.auth-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
}
.auth-point b {
  color: #fff;
}
.auth-foot {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 28px;
}
.auth-legal {
  margin-top: 18px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 28px 40px;
  background: var(--surface);
}
.auth-box {
  width: 100%;
  max-width: 400px;
}
/* Bloc « telecharger l'app » sur la page login */
.auth-get {
  width: 100%;
  max-width: 400px;
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, #fff);
  display: grid;
  gap: 10px;
}
.auth-get-txt {
  display: grid;
  gap: 2px;
}
.auth-get-txt b {
  font-size: 13.5px;
}
.auth-get-txt span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.auth-get-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.auth-get-btns button {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.auth-get-btns button:hover {
  border-color: var(--brass, #c8a14a);
}
.auth-box h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.auth-box > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border-radius: 13px;
  margin-bottom: 20px;
}
.auth-tabs button {
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.auth-tabs button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.auth-form {
  display: grid;
  gap: 13px;
}
.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.role-pick button {
  padding: 12px 10px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.role-pick button.on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}
.demo-card {
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.demo-card > b {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.demo-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 9px;
}
.demo-btns button {
  padding: 9px 6px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-2);
}
.demo-btns button:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- client shell ---------- */
.client-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  /* Clears the 82px bottom nav with room to spare for the footer. */
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  position: relative;
  box-shadow: 0 0 80px rgba(22, 36, 29, 0.07);
}
/* The shop screen docks its booking bar over the content. */
.client-shell.shop-shell {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
.client-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex: none;
  text-transform: uppercase;
}
.avatar.big {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: 18px;
}
.avatar.gold {
  background: var(--brass-soft);
  color: var(--brass-dark);
}
.page {
  padding: 4px 18px 24px;
}
.site-foot {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 14px 16px 0;
  opacity: 0.82;
}
.bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  /* Opaque first: without color-mix() the fixed bar would be see-through. */
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.bottomnav button,
.bottomnav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  /* One fixed height for every label, so a two-line translation ("Mes
     réservations") does not make the whole bar 15px taller than English. */
  min-height: 65px;
  padding: 7px 4px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
}
.bottomnav button span,
.bottomnav a span {
  font-size: 19px;
  line-height: 1;
  filter: grayscale(0.5);
  opacity: 0.75;
}
.bottomnav button.on,
.bottomnav a.on {
  color: var(--green);
  background: var(--green-soft);
}
.bottomnav button.on span,
.bottomnav a.on span {
  filter: none;
  opacity: 1;
}

/* ---------- map pins (Leaflet divIcon) ---------- */
/* Colored place logo + its name, like the small POI logos on Google Maps.
   The name hangs beside the dot and flips to the left near the right edge, so
   the map border never cuts it off. */
.l7poi {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  white-space: nowrap;
}
/* Zoomed out: keep the colored dots, drop the names so they don't pile up. */
.l7poi-dots .l7poi b {
  display: none;
}
.l7poi i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.5);
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}
.l7poi b {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(18, 22, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8edf2;
  font: 600 10px/1.25 inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pin + business name, laid out like a Google Maps label. */
.l7pin {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: visible;
  white-space: nowrap;
}
.l7pin b {
  display: inline-block;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(20, 24, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 700 11px/1.25 inherit;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.l7pin i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}
/* Salon with its own uploaded logo: the image fills the pin. */
.l7pin i.pin-logo {
  padding: 0;
  overflow: hidden;
}
/* Offline salon: grey badge, same logo. Light enough for the dark map. */
.l7pin.off i {
  background: #8b95a1;
  opacity: 0.95;
}
.l7pin.you i {
  background: #1f6feb;
}
/* A client of the day on the pro map: brass, so it never reads as a salon. */
.l7pin.client i {
  background: var(--brass-dark);
}
/* Online salon with a live GPS fix: green pulse. */
.l7pin.live i {
  background: var(--green);
  animation: l7pulse 1.8s infinite;
}
@keyframes l7pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55), 0 3px 10px rgba(0, 0, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0), 0 3px 10px rgba(0, 0, 0, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0), 0 3px 10px rgba(0, 0, 0, 0.45);
  }
}
/* ---------- language selector ---------- */
.lang-sel {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 22px 6px 9px;
  border-radius: 9px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 11px, calc(100% - 9px) 11px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer;
}
/* Word + picker: a lone "Français" looked like a label, not a control. */
.lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lang-lab {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.auth-lang {
  display: flex;
  align-items: center;
  flex: none;
}
.side-foot .lang-wrap {
  width: 100%;
  margin-bottom: 8px;
}
.side-foot .lang-sel {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}
/* The dashboard mobile bar carries the same picker as the client top bar. */
.dash-mobile-bar .lang-wrap {
  flex: none;
}
.dash-mobile-bar .lang-sel {
  padding: 5px 19px 5px 7px;
  background-position: calc(100% - 12px) 10px, calc(100% - 8px) 10px;
}
/* Under 420px the brand, theme, bell and logout need the room: the picker's
   accessible name still says "Langue". */
@media (max-width: 420px) {
  .dash-mobile-bar .lang-lab {
    display: none;
  }
}
/* At 320px the brand plus five controls no longer share one line: the controls
   move under it, where the label fits again. */
@media (max-width: 360px) {
  .dash-mobile-bar {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .dash-mobile-bar .row {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  .dash-mobile-bar .lang-lab {
    display: inline;
  }
}
/* Under 340px the header already carries six controls: the picker's current
   value and its accessible name still say what it is. */
@media (max-width: 340px) {
  .client-top .lang-lab {
    display: none;
  }
}

.leaflet-container {
  font-family: inherit;
  /* Leaflet gives its panes z-index 200-800. Without a stacking context here
     they paint over the fixed bottom nav, so a map scrolled into that band
     hides the tabs. */
  isolation: isolate;
}

/* Map credits: on the dark basemap the chip has to look like part of the map,
   not like a light band over it. Leaflet styles the same control with the same
   selector, so ours carries the map class to win whatever order CSS loads in. */
.leaflet-container.l7map-dark .leaflet-control-attribution,
.leaflet-container.l7map-dim .leaflet-control-attribution {
  background: rgba(18, 22, 29, 0.82);
  color: #cfd8e3;
  font-size: 9px;
  line-height: 1.45;
  padding: 2px 7px;
  border-radius: 8px 0 0 0;
}
.leaflet-control-attribution a {
  color: inherit;
  text-decoration: underline;
}

/* Light street tiles toned dark: street names, shop labels and place icons
   stay readable at every zoom (slate, not pure black). Specificity beats
   Leaflet's own .leaflet-container background, so a map never flashes light
   grey before the tiles draw. */
.leaflet-container.l7map-dark,
.leaflet-container.l7map-dim {
  background: #20262e;
}
.l7map-dim .leaflet-tile-pane {
  filter: invert(0.96) hue-rotate(180deg) saturate(1.3) brightness(0.98) contrast(0.93);
}
.l7map-dark .leaflet-tile-pane {
  filter: invert(0.96) hue-rotate(180deg) saturate(1.25) brightness(0.92) contrast(0.94);
}
/* Last-resort light OSM tiles: drop the tone instead of an odd tint. */
.l7map-dim.is-plain .leaflet-tile-pane,
.l7map-dark.is-plain .leaflet-tile-pane {
  filter: none;
}
.l7map-dim .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.l7map-dim .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.l7map-dim .leaflet-bar a {
  background: #262c34;
  color: #e8eef4;
  border-bottom-color: #3a424c;
}
.l7map-dim .leaflet-bar a:hover {
  background: #323a44;
}
.leaflet-popup-content a {
  color: var(--green);
  font-weight: 800;
}

/* ---------- client home ---------- */
.hello {
  padding: 10px 18px 0;
}
.hello h1 {
  font-size: 29px;
  margin-top: 6px;
}
.hello h1 em {
  font-style: normal;
  color: var(--green);
}
.hello p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  margin: 16px 18px 0;
}
.seg button {
  padding: 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}
.seg button.on {
  background: var(--green);
  color: #fff;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 18px 0;
  padding: 0 13px;
  height: 46px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}
.search span {
  font-size: 15px;
  opacity: 0.6;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 13.5px;
}
.shop-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  margin-bottom: 9px;
  transition: 0.15s;
}
.shop-card:hover {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.shop-ava {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--green-soft), var(--brass-soft));
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}
.shop-body {
  flex: 1;
  min-width: 0;
}
.shop-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
/* Barber photo profile + name, under the salon name in the client list. */
.shop-pro {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
}
.shop-pro img,
.shop-pro i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  color: #fff;
  background: var(--green);
  text-transform: uppercase;
}
.shop-pro b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-tags {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.shop-tags .tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.shop-side {
  text-align: right;
  flex: none;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.shop-side b {
  font-size: 12px;
  color: var(--green);
}
.shop-side small {
  font-size: 10px;
  color: var(--muted);
}
.ver {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-style: normal;
}
.promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--green) 22%, var(--line));
  background: linear-gradient(135deg, var(--green-soft), var(--surface) 65%);
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
}
.promo-ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: none;
}
.promo-body {
  flex: 1;
  min-width: 0;
}
.promo-body b {
  display: block;
  font-size: 13.5px;
}
.promo-body span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}
.promo-num {
  font-size: 18px;
  color: var(--green);
}

/* ---------- shop detail / booking ---------- */
.shop-hero {
  background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 16px 18px 24px;
  border-radius: 0 0 26px 26px;
}
.shop-hero .brand {
  color: #fff;
}
.shop-hero .brand span {
  color: #e8c987;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.hero-top .icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.shop-head {
  display: flex;
  gap: 13px;
  align-items: center;
}
.shop-head .shop-ava {
  width: 62px;
  height: 62px;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.13);
}
.shop-head h1 {
  font-size: 24px;
}
/* Same face + name on the salon page, on the dark hero. */
.shop-head .shop-pro {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}
.shop-head .shop-pro img,
.shop-head .shop-pro i {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.shop-head p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 7px;
  color: #fff;
}
.service-grid {
  display: grid;
  gap: 8px;
}
.service-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition: 0.14s;
  width: 100%;
}
.service-tile:hover {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
}
.service-tile.on {
  border-color: var(--green);
  background: var(--green-soft);
}
.service-tile .s-l {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.service-tile .s-ico {
  font-size: 20px;
}
.service-tile b {
  display: block;
  font-size: 13.5px;
}
.service-tile small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.service-tile .s-r {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.service-tile.on .s-r {
  color: var(--green);
}
.daystrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}
.daystrip::-webkit-scrollbar {
  display: none;
}
.day {
  flex: none;
  width: 58px;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 4px 7px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: 0.15s;
}
.day > span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.day b {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.day small {
  font-size: 9px;
  font-weight: 700;
}
.day.on {
  border-color: var(--green);
  background: var(--green);
}
.day.on > span,
.day.on b,
.day.on small {
  color: #fff;
}
.day.off {
  opacity: 0.42;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.slot {
  padding: 10px 2px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: 0.15s;
}
.slot small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 1px;
}
.slot.sel {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.slot.sel small {
  color: rgba(255, 255, 255, 0.75);
}
.slot.taken {
  opacity: 0.42;
  background: color-mix(in srgb, var(--line) 40%, transparent);
  text-decoration: line-through;
}
.slot.brk {
  opacity: 0.45;
  background: color-mix(in srgb, var(--brass) 9%, transparent);
}
.slot.past {
  opacity: 0.32;
}
.slot.asap {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--brass-soft);
  border-color: color-mix(in srgb, var(--brass) 45%, var(--line));
  color: var(--brass-dark);
}
.slot.asap.sel {
  background: var(--brass);
  color: #221a09;
  border-color: var(--brass);
}
.slot-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 9px;
}
.slot-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--green);
  margin-right: 4px;
  vertical-align: -1px;
}
.slot-legend i.t {
  background: var(--line);
}
.slot-legend i.b {
  background: var(--brass-soft);
}
.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  margin-top: 11px;
  padding: 11px 13px;
  border-radius: 14px;
  /* Plain box first: without color-mix() the border and tint both drop, leaving bare text. */
  border: 1.5px dashed var(--brass);
  background: var(--brass-soft);
  border-color: color-mix(in srgb, var(--brass) 45%, var(--line));
  background: color-mix(in srgb, var(--brass) 7%, transparent);
  transition: 0.15s;
}
.waitlist-row span {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brass-dark);
}
.waitlist-row small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.waitlist-row.on {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, transparent);
}
.waitlist-row.on span {
  color: var(--green);
}
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}
.kv > span:first-child {
  color: var(--muted);
}
.kv b {
  font-weight: 800;
}
.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 520px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  /* Opaque fallback, as on .bottomnav. */
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 45;
}
.dock .btn {
  width: 100%;
}
.dock-note {
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 6px;
}
.stars {
  display: flex;
  gap: 3px;
  font-size: 20px;
  color: var(--line);
}
.stars button {
  font-size: 24px;
  line-height: 1;
  color: var(--line);
  transition: 0.1s;
}
.stars button.on {
  color: var(--brass);
}

/* ---------- booking cards ---------- */
.booking-card {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  margin-bottom: 9px;
}
.booking-time {
  flex: none;
  width: 58px;
  text-align: center;
  padding: 7px 4px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  align-self: flex-start;
}
.booking-time b {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.booking-time small {
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.8;
}
.booking-time.done {
  background: var(--surface-2);
  color: var(--muted);
}
.booking-time.cancel {
  background: var(--red-soft);
  color: var(--red);
}
.booking-body {
  flex: 1;
  min-width: 0;
}
.booking-body b {
  font-size: 13.5px;
}
.booking-sub {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.booking-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}
/* Pending request: call on its own line, then Accept / Refuse half and half,
   so the decision stays symmetrical on a 320px screen. */
.req-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 440px;
}
.req-acts > a {
  grid-column: 1 / -1;
}
/* Commission preview under a pending request: one short line. */
.req-fee {
  margin-top: 5px;
  font-weight: 700;
  color: var(--brass-dark);
}
.req-fee.low {
  color: var(--red);
}
.wl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.wl-item:last-child {
  border-bottom: 0;
}
.wl-item .wl-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brass-soft);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 15px;
}
.wl-item b {
  display: block;
  font-size: 13px;
}
.wl-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* ---------- dashboard shell ---------- */
.dash {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green-dark);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  color: #fff;
  padding: 0 8px;
  font-size: 21px;
}
.sidebar .brand span {
  color: #e5c078;
}
.side-badge {
  margin: 10px 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.55);
}
.side-nav {
  display: grid;
  gap: 3px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  transition: 0.14s;
}
.navlink span {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.navlink:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.navlink.on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
/* Full label on wide screens, short one in the phone tab bar (six admin tabs
   do not fit "Vue d'ensemble" + "Réservations" without wrapping/clipping). */
.nav-lab {
  font-weight: inherit;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-lab i {
  font-style: normal;
}
.nav-lab .nav-short {
  display: none;
}
@media (max-width: 560px) {
  .nav-lab .nav-long {
    display: none;
  }
  .nav-lab .nav-short {
    display: inline;
  }
}
.side-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
}
.side-user b {
  display: block;
  font-size: 12.5px;
}
.side-user small {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
}
.side-user .avatar {
  background: rgba(255, 255, 255, 0.15);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
}
.side-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.side-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Signature du fondateur (dashboard admin + barbier) */
.side-credit {
  display: grid;
  gap: 1px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.85;
}
.side-credit span {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.main {
  min-width: 0;
  background: var(--bg);
}
.main-inner {
  padding: 26px 30px 60px;
  max-width: 1180px;
  margin: 0 auto;
}
.dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dash-top h1 {
  font-size: 26px;
}
.dash-top p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.dash-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
}
.stat span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stat b {
  display: block;
  font-size: 25px;
  letter-spacing: -0.035em;
  margin-top: 5px;
  line-height: 1.1;
}
.stat small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.stat.accent {
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  color: #fff;
  border-color: transparent;
}
.stat.accent span,
.stat.accent small {
  color: rgba(255, 255, 255, 0.7);
}
.stat.gold {
  background: var(--brass-soft);
  border-color: color-mix(in srgb, var(--brass) 30%, var(--line));
}
.panel {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.panel-head h2 {
  font-size: 16.5px;
}
.panel-head .mu {
  font-size: 11.5px;
}
/* Dashboard: everything that needs the pro's attention, in one card. */
.todo-list {
  display: grid;
}
.todo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.todo-row:first-child {
  padding-top: 0;
}
.todo-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.todo-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brass-soft);
  font-size: 15px;
}
.todo-row b {
  display: block;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.todo-row .grow > span {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}
.todo-row > .btn {
  flex: none;
}
/* Dashboard: the one appointment that needs a decision right now. */
.now-card {
  display: grid;
  gap: 11px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 18px 36px -26px rgba(14, 90, 61, 0.6);
}
.now-card.quiet {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.now-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.now-head span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.now-card.quiet .now-head span {
  color: var(--muted);
}
.now-head b {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.now-client {
  display: flex;
  align-items: center;
  gap: 11px;
}
/* Client initial and the call button share the same frosted chip. */
.now-av,
.now-call {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 16px;
  font-weight: 800;
}
.now-client b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.now-client small {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
}
/* One action, capped so it stays a button and not a banner on a desktop. */
.now-card > .btn {
  width: 100%;
  max-width: 340px;
  justify-self: start;
}
.now-foot {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
}
.now-empty b {
  display: block;
  font-size: 15px;
}
.now-empty span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
/* Folded report panels: closed by default so the day list stays the focus. */
.more-panel {
  padding: 0;
  overflow: hidden;
}
.more-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.more-panel > summary::-webkit-details-marker {
  display: none;
}
.more-panel > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.more-panel[open] > summary::after {
  content: "▴";
}
.more-panel > summary small {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.more-panel > .more-body {
  padding: 0 18px 18px;
}
.day-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
}
.two-col > * {
  min-width: 0;
}
.timeline {
  display: grid;
  gap: 7px;
}
.tl-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.tl-time {
  flex: none;
  width: 52px;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  padding-top: 13px;
}
.tl-card {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-card.done {
  background: var(--surface-2);
}
.tl-card.cancelled {
  opacity: 0.55;
}
.tl-card .tl-body {
  flex: 1;
  min-width: 0;
}
.tl-card b {
  font-size: 13px;
}
.tl-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}
/* Secondary appointment actions (no-show, cancel) behind one small button. */
.tl-more {
  position: relative;
}
.tl-more > summary {
  list-style: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-weight: 900;
  line-height: 1;
}
.tl-more > summary::-webkit-details-marker {
  display: none;
}
.tl-more[open] > summary {
  background: var(--surface-2);
  color: var(--ink);
}
.tl-more > div {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 6;
  min-width: 132px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 30px -12px rgba(22, 36, 29, 0.35);
}
.tl-more .btn {
  justify-content: flex-start;
}
.gap {
  border: 1.5px dashed var(--line);
  border-radius: 13px;
  padding: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  background: color-mix(in srgb, var(--line) 15%, transparent);
}
.gap:hover {
  color: var(--green);
  border-color: var(--green);
}
.occ {
  height: 7px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-top: 8px;
}
.occ i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--brass));
  border-radius: 99px;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding-top: 10px;
}
.chart .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}
.chart .bar {
  width: 100%;
  max-width: 40px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--green), #2c8261);
  min-height: 3px;
}
.chart .col.today .bar {
  background: linear-gradient(180deg, var(--brass), #d3a44b);
}
.chart .d {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--muted);
}
.chart .v {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ink-2);
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 640px;
}
th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
  padding: 11px 13px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--green) 3%, transparent);
}
.t-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.t-name {
  font-weight: 800;
}
.t-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* ---------- schedule editor ---------- */
/* Agenda: one collapsible row per weekday, hours readable at a glance. */
.sch-list {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.sch-day + .sch-day {
  border-top: 1px solid var(--line-2);
}
.sch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
}
.sch-sum {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(46px, auto) 1fr auto;
  grid-template-areas:
    "name when chev"
    "meta meta chev";
  column-gap: 10px;
  align-items: center;
  text-align: start;
  padding: 2px 0;
}
.sch-name {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
}
.sch-when {
  grid-area: when;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.sch-meta {
  grid-area: meta;
  font-size: 11px;
  color: var(--muted);
}
.sch-chev {
  grid-area: chev;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.sch-day.open .sch-chev {
  transform: rotate(180deg);
}
.sch-today {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
/* Wide screens: one line per day instead of a cramped two-row block. */
@media (min-width: 760px) {
  .sch-sum {
    grid-template-columns: 96px 132px minmax(0, 1fr) 14px;
    grid-template-areas: "name when meta chev";
    align-items: center;
  }
  .sch-meta {
    font-size: 11.5px;
  }
}
.sch-day.is-closed .sch-name,
.sch-day.is-closed .sch-when {
  color: var(--muted);
}
.sch-state {
  flex: none;
  padding: 7px 11px;
  font-size: 11.5px;
}
/* More specific than the dark-mode `.chip` rule, which would erase the red. */
.chip.sch-state.off {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 32%, var(--line));
  background: color-mix(in srgb, var(--red) 7%, var(--surface));
}
.sch-edit {
  padding: 2px 12px 12px;
}
.sch-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.sch-fields .field label {
  font-size: 10px;
}
.sch-add {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.sch-add > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--green);
  padding: 4px 0;
}
.sch-add > summary::-webkit-details-marker {
  display: none;
}
.sch-add[open] > summary {
  margin-bottom: 10px;
}
.block-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.block-row:last-child {
  border-bottom: 0;
}
.block-row .b-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brass-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.block-row b {
  display: block;
  font-size: 12.5px;
}
.block-row small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- modal / toast ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 17, 0.48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
  animation: fade 0.15s ease;
}
.modal {
  background: var(--surface);
  width: 100%;
  max-width: 520px;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.modal-head h2 {
  font-size: 18px;
}
.grabber {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin: -6px auto 12px;
}
.modal .btn.block + .btn.block {
  margin-top: 8px;
}
@media (min-width: 720px) {
  .overlay {
    align-items: center;
    padding: 24px;
  }
  .modal {
    border-radius: 22px;
  }
}
#toasts {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  z-index: 200;
  display: grid;
  gap: 7px;
  width: max-content;
  max-width: min(92vw, 460px);
  pointer-events: none;
}
.toast {
  padding: 11px 15px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: fade 0.18s ease;
  text-align: center;
}
.toast.ok {
  background: var(--green);
}
.toast.err {
  background: var(--red);
}

/* ---------- loading ---------- */
.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  animation: spin 0.7s linear infinite;
  margin: 0 auto 10px;
}
.fatal {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.fatal .card {
  max-width: 420px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Notifications internes */
.notif-btn {
  position: relative;
}
.notif-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red, #b23a33);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.notif-btn .notif-count {
  position: absolute;
  top: -5px;
  right: -5px;
  border: 2px solid var(--bg);
}
.notif-count[hidden] {
  display: none !important;
}
.navlink .notif-count {
  margin-left: auto;
}

/* Mobile header for the pro/admin dashboards */
.dash-mobile-bar {
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .dash {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    z-index: 60;
    gap: 6px;
  }
  .sidebar .brand,
  .side-badge,
  .side-foot {
    display: none;
  }
  .dash-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 55;
    padding: calc(9px + env(safe-area-inset-top)) 16px 9px;
    background: rgba(244, 241, 234, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .dash-mobile-brand {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--green);
    text-decoration: none;
  }
  .dash-mobile-brand span {
    color: var(--brass);
  }
  .dash-mobile-bar .btn {
    flex: none;
  }
  .notif-nav-only {
    display: none;
  }
  .navlink .notif-count {
    position: absolute;
    margin: 0;
    transform: translate(15px, -8px);
    font-size: 9px;
  }
  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
    gap: 2px;
  }
  .navlink {
    flex-direction: column;
    gap: 2px;
    padding: 7px 4px;
    font-size: 10px;
    text-align: center;
    border-radius: 10px;
  }
  .navlink span {
    font-size: 18px;
  }
  .main-inner {
    padding: 20px 16px calc(90px + env(safe-area-inset-bottom));
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col > * {
    min-width: 0;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 30px 24px;
    min-height: 240px;
  }
  .auth-brand h1 {
    font-size: 31px;
    margin: 16px 0 8px;
  }
  .auth-brand p {
    font-size: 13px;
  }
  .auth-points,
  .auth-foot {
    display: none;
  }
  .auth-panel {
    padding: 96px 20px 40px;
  }
  .sch-fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .client-top .top-bookings {
    display: none;
  }
  .client-top > .row {
    gap: 5px !important;
  }
  .client-top .btn.xs {
    padding: 4px 7px !important;
  }
  .main-inner {
    padding: 16px 14px calc(90px + env(safe-area-inset-bottom));
  }
  .dash-top h1 {
    font-size: 22px;
  }
  .stat {
    padding: 12px;
  }
  .stat b {
    font-size: 21px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  /* Dashboard filter rows: the date field keeps the full width, the two
     selects share the next line instead of squeezing into 90px columns.
     (The client profile's three little stats keep their row.) */
  .main .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .main .grid-3 > :first-child {
    grid-column: 1 / -1;
  }
  .stat-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .hello h1 {
    font-size: 25px;
  }
}

/* ---------- phones: dashboard tables become readable cards ----------
   A nine-column admin table cannot be read through a ~330px window: statut,
   the balances and the action buttons sit far off to the right. Under 720px
   each row becomes a card and every cell prints its column name; app.js
   copies the headers into data-label (decorateTables). */
@media (max-width: 720px) {
  .table-wrap.table-cards,
  html[data-theme="dark"] .table-wrap.table-cards {
    border: 0;
    background: none;
    background-image: none;
    box-shadow: none;
    overflow: visible;
  }
  .table-wrap.table-cards table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .table-wrap.table-cards thead {
    display: none;
  }
  .table-wrap.table-cards tbody {
    display: grid;
    gap: 10px;
  }
  .table-wrap.table-cards tbody tr {
    display: block;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .table-wrap.table-cards tbody td {
    display: block;
    padding: 3px 0;
    border: 0;
    text-align: left;
  }
  .table-wrap.table-cards tbody td::before {
    content: attr(data-label) ": ";
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .table-wrap.table-cards tbody td[data-label=""]::before,
  .table-wrap.table-cards tbody td:first-child::before,
  .table-wrap.table-cards tbody td[colspan]::before,
  .table-wrap.table-cards tbody td.td-actions::before {
    display: none;
  }
  .table-wrap.table-cards tbody td[data-empty] {
    display: none;
  }
  .table-wrap.table-cards tbody td:first-child {
    padding-bottom: 5px;
  }
  .table-wrap.table-cards tbody td:first-child .t-name {
    font-size: 14.5px;
  }
  .table-wrap.table-cards tbody td[colspan] {
    text-align: center;
    padding: 16px 0;
  }
  .table-wrap.table-cards tbody td .t-actions {
    justify-content: flex-start;
    margin-top: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- install banner (iOS Safari has no install prompt) ---------- */
.install-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* `--ib-lift` is the bar height of the screen, set on the body by install.js;
     the same value reserves the page clearance below it. */
  bottom: calc(var(--ib-lift, 90px) + env(safe-area-inset-bottom));
  z-index: 70;
  width: calc(100% - 24px);
  max-width: 496px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper, #fff);
  animation: ib-in .26s ease both;
}

@keyframes ib-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.install-bar .ib-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brass-soft);
  font-size: 18px;
}

.install-bar .ib-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.install-bar .ib-txt b { font-size: 13.5px; color: var(--ink); }
.install-bar .ib-txt span { font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* iOS "Add to Home Screen" guide: numbered steps, each with a small
   hand-drawn Safari screen so the share glyph and the right row are obvious. */
.iosg-lead {
  margin: -4px 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.iosg {
  display: grid;
  gap: 14px;
}
.iosg-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.iosg-copy {
  display: grid;
  gap: 3px;
  justify-items: start;
}
.iosg-copy b {
  font-size: 13.5px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.iosg-copy > span:last-child {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.iosg-n {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
}
.iosg-phone {
  width: 104px;
  max-width: 100%;
  filter: drop-shadow(0 6px 12px rgba(22, 36, 29, 0.16));
}
.iosg-phone svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 400px) {
  .iosg-step {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
    padding: 10px;
  }
}
/* install.js marks the body with the bar the screen already docks, so the
   banner and the page clearance follow that bar without :has() — older Safari
   and Firefox have none. One lift per host drives both, so the banner's edge
   and the room reserved under the page can never drift apart. The mark is only
   present while the banner is. */
body[data-ib-host] {
  --ib-lift: 90px; /* 82px client nav + an 8px breath */
}
body[data-ib-host="dock"] {
  --ib-lift: 103px; /* 95px shop booking dock + an 8px breath */
}
body[data-ib-host="none"] {
  --ib-lift: 12px; /* nothing under it: the band sits at the screen edge */
}
/* The tallest banner is 76px at 320px wide; the page reserves 24px more above
   it, so every screen clears the same 100px above its own lift. */
body[data-ib-host] .client-shell,
body[data-ib-host] .auth-panel {
  padding-bottom: calc(var(--ib-lift) + 100px + env(safe-area-inset-bottom));
}
/* iOS banner: the whole row is the button that opens the guide. */
.install-bar .ib-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  /* `start` follows the text block's own direction, so Arabic copy aligns right. */
  text-align: start;
  padding: 0;
}
.install-bar .ib-main .ib-txt b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-bar .ib-go {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}
.install-bar .ib-x {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 6px 2px;
  cursor: pointer;
}

/* Admin live GPS map markers */
.l7-gps-dot { position: relative; width: 14px; height: 14px; }
.l7-gps-dot i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--c, var(--green)); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.l7-gps-dot.live i { width: 12px; height: 12px; inset: 1px; }
.l7-gps-dot.live::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--c, var(--green)); opacity: .55;
  animation: l7gpspulse 1.6s ease-out infinite;
}
.l7-gps-dot.off i { background: #6b7280; width: 10px; height: 10px; inset: 2px; opacity: .85; }
/* Home-visit-only pro: brass square marker, so it never reads as a salon dot. */
.l7-gps-dot.home i { border-radius: 4px; background: linear-gradient(150deg, #c39245, #8a6423); }
.l7-gps-dot.home.off i { background: #8a7a63; }
@keyframes l7gpspulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* ============================================================
   Décor — matière, profondeur et lumière
   Couche purement visuelle : aucune structure, taille ou
   disposition n'est modifiée.
   ============================================================ */

/* Fond général : vignette chaude + halos verts très discrets */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 8% -12%, rgba(181, 133, 50, 0.1), transparent 62%),
    radial-gradient(1000px 560px at 100% 0%, rgba(14, 90, 61, 0.09), transparent 58%),
    radial-gradient(900px 700px at 50% 112%, rgba(14, 90, 61, 0.06), transparent 62%),
    linear-gradient(180deg, #f7f4ed 0%, var(--bg) 42%, #efeae1 100%);
  background-attachment: fixed;
}

/* Espaces applicatifs : même matière, plus claire */
.client-shell {
  background-color: var(--bg);
  background-image:
    radial-gradient(420px 260px at 100% 0%, rgba(181, 133, 50, 0.07), transparent 70%),
    linear-gradient(180deg, #f7f4ed 0%, var(--bg) 40%, #f0ece3 100%);
}
.main {
  background-color: var(--bg);
  background-image:
    radial-gradient(560px 340px at 100% -4%, rgba(181, 133, 50, 0.09), transparent 65%),
    radial-gradient(640px 420px at 0% 0%, rgba(14, 90, 61, 0.06), transparent 62%),
    linear-gradient(180deg, #f6f3ec 0%, var(--bg) 46%, #f0ece3 100%);
  background-attachment: fixed;
}

/* Boutons : reflet supérieur + ombre colorée */
.btn {
  background-image: linear-gradient(180deg, #157a53 0%, var(--green) 48%, var(--green-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px -12px rgba(14, 90, 61, 0.85);
}
.btn:hover {
  background-image: linear-gradient(180deg, #12694a 0%, var(--green-dark) 55%, #072d21 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 26px -12px rgba(14, 90, 61, 0.9);
}
.btn.ghost {
  background-image: linear-gradient(180deg, #ffffff 0%, var(--surface) 60%, var(--surface-2) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -10px rgba(22, 36, 29, 0.5);
}
.btn.ghost:hover {
  background-image: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 60%, #f4efe4 100%);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(22, 36, 29, 0.5);
}
.btn.gold {
  background-image: linear-gradient(180deg, #d0a049 0%, var(--brass) 55%, var(--brass-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 20px -12px rgba(138, 100, 35, 0.8);
}
.btn.gold:hover {
  background-image: linear-gradient(180deg, #bf8f3c 0%, var(--brass-dark) 60%, #6f5019 100%);
}
.btn.danger {
  background-image: linear-gradient(180deg, #c4504a 0%, var(--red) 55%, #93352e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 20px -12px rgba(181, 67, 59, 0.85);
}
.btn.danger:hover {
  background-image: linear-gradient(180deg, #b44843 0%, #94352f 60%, #7a2a25 100%);
}

/* Cartes & panneaux : papier chaud, liseré lumineux, ombre douce */
.card,
.panel,
.shop-card,
.booking-card,
.service-tile,
.tl-card,
.stat,
.table-wrap,
.auth-get,
.install-bar {
  background-image: linear-gradient(180deg, #fffefb 0%, var(--surface) 55%, #fbf8f1 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 30px -22px rgba(22, 36, 29, 0.55);
}
.panel,
.table-wrap {
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 42px -30px rgba(22, 36, 29, 0.55);
}
.stat {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brass) 30%, var(--line));
  box-shadow:
    inset 0 1px 0 #fff,
    0 20px 38px -24px rgba(22, 36, 29, 0.55);
}
.stat.accent {
  background-image:
    radial-gradient(220px 140px at 100% 0%, rgba(229, 192, 120, 0.35), transparent 65%),
    linear-gradient(150deg, #117350 0%, var(--green) 45%, var(--green-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 34px -20px rgba(14, 90, 61, 0.75);
}
.stat.accent:hover {
  transform: translateY(-2px);
}
.stat.gold {
  background-image: linear-gradient(180deg, #fdf6e6 0%, var(--brass-soft) 60%, #f3e6c9 100%);
}

/* Pastilles, badges, chips : léger relief */
.pill,
.badge,
.chip,
.switch {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.chip.on {
  background-image: linear-gradient(180deg, #157a53, var(--green-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px -10px rgba(14, 90, 61, 0.8);
}
.chip.gold.on {
  background-image: linear-gradient(180deg, #d0a049, var(--brass-dark));
}

/* Sidebar : profondeur + halo laiton */
.sidebar {
  background-color: var(--green-dark);
  background-image:
    radial-gradient(320px 240px at 100% 0%, rgba(181, 133, 50, 0.2), transparent 62%),
    radial-gradient(420px 320px at 0% 100%, rgba(22, 122, 84, 0.35), transparent 65%),
    linear-gradient(180deg, #0c4d37 0%, #083326 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}
.navlink {
  position: relative;
}
.navlink.on {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.side-user {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Connexion : halos dorés et trame de points */
.auth-brand {
  background-color: var(--green);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px),
    radial-gradient(680px 420px at 88% -12%, rgba(229, 192, 120, 0.28), transparent 60%),
    radial-gradient(760px 520px at 12% 8%, #178059 0%, transparent 62%),
    linear-gradient(158deg, #116f4e 0%, var(--green) 42%, var(--green-dark) 100%);
  background-size: 20px 20px, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}
.auth-panel {
  background-color: var(--surface);
  background-image:
    radial-gradient(520px 340px at 100% 0%, rgba(181, 133, 50, 0.09), transparent 62%),
    radial-gradient(560px 380px at 0% 100%, rgba(14, 90, 61, 0.07), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, var(--surface) 55%, #f7f3ea 100%);
}

/* Hero salon : lumière dorée */
.shop-hero {
  background-color: var(--green);
  background-image:
    radial-gradient(420px 220px at 88% -20%, rgba(229, 192, 120, 0.3), transparent 62%),
    linear-gradient(150deg, #147455 0%, var(--green) 48%, var(--green-dark) 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px -30px rgba(10, 67, 48, 0.8);
}

/* Avatars & tuiles : petit relief */
.avatar {
  background-image: linear-gradient(160deg, #17795a, var(--green-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -10px rgba(14, 90, 61, 0.8);
}
.avatar.gold {
  background-image: linear-gradient(160deg, #fbf3e0, var(--brass-soft));
  box-shadow: inset 0 1px 0 #fff, 0 6px 12px -10px rgba(138, 100, 35, 0.45);
}
.shop-ava {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(181, 133, 50, 0.12);
}
.day.on,
.slot.sel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px -12px rgba(14, 90, 61, 0.7);
}
.booking-time {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.seg {
  box-shadow: inset 0 2px 6px rgba(22, 36, 29, 0.05);
}
.seg button.on {
  background-image: linear-gradient(180deg, #157a53, var(--green-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.search {
  background-image: linear-gradient(180deg, #fffefb, var(--surface));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 3px rgba(22, 36, 29, 0.03);
}
.inp,
.sel,
.ta {
  background-image: linear-gradient(180deg, #fffefb, var(--surface));
  box-shadow: inset 0 1px 2px rgba(22, 36, 29, 0.04);
}

/* Tableaux : en-tête nacré, survol plus net */
th {
  background-image: linear-gradient(180deg, #f8f4ea 0%, var(--surface-2) 100%);
  box-shadow: inset 0 1px 0 #fff;
}
.table-wrap {
  border-color: color-mix(in srgb, var(--brass) 14%, var(--line));
}
tbody tr:hover {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--green) 4%, transparent), transparent 65%);
}

/* Graphique : grille discrète + barres lumineuses */
.chart {
  background-image: repeating-linear-gradient(to top, rgba(22, 36, 29, 0.055) 0 1px, transparent 1px 37px);
  background-position: 0 100%;
  border-radius: 10px;
}
.chart .bar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px -12px rgba(14, 90, 61, 0.8);
}
.chart .col.today .bar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 18px -12px rgba(181, 133, 50, 0.85);
}

/* Navigations basses : bord lumineux */
.bottomnav,
.dock {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6), 0 -18px 40px -30px rgba(22, 36, 29, 0.35);
}
.bottomnav button.on,
.bottomnav a.on {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px -12px rgba(14, 90, 61, 0.5);
}

/* Modale & toasts : léger vernis */
.modal {
  background-image: linear-gradient(180deg, #fffefb 0%, var(--surface) 40%, #fbf7ef 100%);
  box-shadow: 0 -20px 60px -20px rgba(10, 22, 17, 0.45), inset 0 1px 0 #fff;
}
.grabber {
  background-image: linear-gradient(90deg, transparent, var(--line), transparent);
}
.toast {
  box-shadow: 0 18px 38px -16px rgba(10, 22, 17, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.toast.ok {
  background-image: linear-gradient(180deg, #157a53, var(--green-dark));
}
.toast.err {
  background-image: linear-gradient(180deg, #c4504a, #8e322c);
}

/* États vides & chargement : présence douce */
.empty {
  background-image:
    radial-gradient(220px 120px at 50% 0%, rgba(181, 133, 50, 0.08), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}

/* Scrollbars discrètes (souris) */
@media (pointer: fine) {
  * {
    scrollbar-color: color-mix(in srgb, var(--brass) 35%, var(--line)) transparent;
    scrollbar-width: thin;
  }
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--brass) 32%, var(--line));
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: content-box;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* ============================================================
   Décor 2 — enseigne de barbier, rythme et étincelles
   Même palette, même structure : uniquement de la matière.
   ============================================================ */

/* Trame de store / enseigne visible autour de l'app sur grand écran */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(14, 90, 61, 0.028) 0 1px, transparent 1px 22px),
    radial-gradient(70% 55% at 50% 38%, transparent 42%, rgba(181, 133, 50, 0.045) 100%);
  opacity: 0.8;
}
.client-shell,
.dash,
.auth {
  position: relative;
  z-index: 1;
}

/* Liseré « barbier » sous l'en-tête */
.client-top::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: repeating-linear-gradient(
    115deg,
    var(--brass) 0 11px,
    rgba(181, 133, 50, 0.14) 11px 22px,
    var(--green) 22px 33px,
    rgba(14, 90, 61, 0.12) 33px 44px
  );
  opacity: 0.38;
  pointer-events: none;
}
.client-top .brand {
  position: relative;
}
.client-top .brand::after {
  content: "✦";
  position: absolute;
  top: -4px;
  right: -9px;
  color: var(--brass);
  font-size: 8px;
  opacity: 0.9;
}

/* Carte d'accueil : papier chaud, anneau doré, ciseaux en filigrane */
.hello {
  position: relative;
  margin: 12px 18px 0;
  padding: 20px 18px 18px;
  border: 1.5px solid color-mix(in srgb, var(--brass) 24%, var(--line));
  border-radius: 24px;
  overflow: hidden;
  background-image:
    radial-gradient(220px 160px at 100% 0%, rgba(181, 133, 50, 0.17), transparent 70%),
    repeating-linear-gradient(135deg, rgba(14, 90, 61, 0.032) 0 1px, transparent 1px 15px),
    linear-gradient(145deg, #fffdf8 0%, #fbf6ea 58%, #f4ecdc 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 20px 42px -32px rgba(22, 36, 29, 0.6);
}
.hello::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  border: 18px solid rgba(181, 133, 50, 0.09);
  pointer-events: none;
}
.hello::after {
  content: "✂";
  position: absolute;
  right: 8px;
  bottom: -20px;
  font-size: 78px;
  line-height: 1;
  color: rgba(14, 90, 61, 0.06);
  transform: rotate(-14deg);
  pointer-events: none;
}
.hello > * {
  position: relative;
  z-index: 1;
}
.hello h1 {
  font-size: 28px;
}
.hello h1 em {
  background-image: linear-gradient(transparent 66%, rgba(181, 133, 50, 0.28) 66% 92%, transparent 92%);
}

/* Avis de vérification : bord doré + papier chaud */
.notice.warn {
  border-left: 3px solid var(--brass);
  background-image: linear-gradient(120deg, rgba(181, 133, 50, 0.16), rgba(255, 255, 255, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Segmented control & recherche : petits objets finis */
.seg {
  background-image: linear-gradient(180deg, #faf6ed, #f2ece0);
}
.seg button.on {
  background-image: linear-gradient(145deg, #157a53, var(--green-dark));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 9px 18px -12px rgba(14, 90, 61, 0.75);
}
.search {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.search:focus-within {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  box-shadow:
    0 0 0 4px rgba(14, 90, 61, 0.09),
    0 12px 24px -20px rgba(22, 36, 29, 0.55);
  transform: translateY(-1px);
}
.search > span {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-size: 13px;
  opacity: 1;
  flex: none;
}
.client-shell .section-title b::before {
  content: "✦";
  color: var(--brass);
  font-size: 11px;
  margin-right: 7px;
  vertical-align: 1px;
}
.client-shell .section-title span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-weight: 700;
}

/* Cartes salon : tranche colorée, halo et reflet sur l'avatar */
.shop-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brass) 15%, var(--line));
  background-image:
    radial-gradient(130px 90px at 100% 0%, rgba(181, 133, 50, 0.09), transparent 70%),
    linear-gradient(145deg, #fffefb 0%, var(--surface) 55%, #faf6ed 100%);
}
.shop-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(180deg, var(--brass) 0 7px, var(--green) 7px 14px);
  opacity: 0.9;
  pointer-events: none;
}
.shop-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 14px solid rgba(181, 133, 50, 0.065);
  pointer-events: none;
}
.shop-card > * {
  position: relative;
  z-index: 1;
}
.shop-card .shop-ava {
  position: relative;
  transition: transform 0.2s ease;
}
.shop-card:hover .shop-ava {
  transform: rotate(-6deg) scale(1.05);
}
.shop-card .shop-ava::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

/* Bannière prochain rendez-vous : reflet lent */
.promo-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--green) 24%, var(--line));
  background-image:
    radial-gradient(180px 130px at 100% 0%, rgba(181, 133, 50, 0.13), transparent 70%),
    linear-gradient(135deg, #e9f1eb 0%, #fbf8f0 55%, #f5ecda 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 26px -24px rgba(22, 36, 29, 0.55);
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.34) 0 6px, transparent 6px 18px);
  opacity: 0.32;
  pointer-events: none;
}
.promo-card::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -40%;
  width: 34%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: rotate(22deg);
  animation: l7sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
.promo-card > * {
  position: relative;
  z-index: 1;
}
.promo-ico {
  box-shadow: inset 0 1px 0 #fff, 0 7px 14px -10px rgba(22, 36, 29, 0.55);
}
@keyframes l7sheen {
  0%,
  54% {
    transform: translateX(-180%) rotate(22deg);
  }
  78%,
  100% {
    transform: translateX(480%) rotate(22deg);
  }
}

/* État vide : ciseaux en filigrane + anneau pointillé */
.empty {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brass) 34%, var(--line));
  background-image:
    radial-gradient(240px 150px at 50% 0%, rgba(181, 133, 50, 0.11), transparent 70%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(247, 242, 232, 0.45));
}
.empty::before {
  content: "✂";
  position: absolute;
  right: 6px;
  bottom: -20px;
  font-size: 96px;
  line-height: 1;
  color: rgba(14, 90, 61, 0.055);
  transform: rotate(-16deg);
  pointer-events: none;
}
.empty::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -72px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px dashed rgba(181, 133, 50, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}
.empty > * {
  position: relative;
  z-index: 1;
}
.empty .btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px -14px rgba(14, 90, 61, 0.8);
}

/* Hero salon : store rayé + filet doré */
.shop-hero {
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.shop-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(232, 201, 135, 0.9), transparent);
  pointer-events: none;
}
.shop-hero > * {
  position: relative;
  z-index: 1;
}
.shop-head .shop-ava {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 22px -12px rgba(0, 0, 0, 0.55);
}

/* Services, jours, créneaux : petits reliefs et réactions */
.service-tile {
  position: relative;
  overflow: hidden;
}
.service-tile .s-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.18s ease;
}
.service-tile:hover .s-ico {
  transform: rotate(-7deg) scale(1.06);
}
.service-tile.on {
  background-image: linear-gradient(145deg, #eef6f0, #e3efe7);
  box-shadow:
    inset 0 1px 0 #fff,
    0 9px 18px -16px rgba(14, 90, 61, 0.65);
}
.service-tile.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--green);
}
.day {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.day:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
}
.day.on {
  background-image: linear-gradient(145deg, #157a53, var(--green-dark));
}
.slot {
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.slot:not(.sel):not(:disabled):hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  background: var(--green-soft);
}

/* Réservations : carte plus habitée */
.booking-card {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(120px 90px at 100% 0%, rgba(181, 133, 50, 0.07), transparent 70%),
    linear-gradient(160deg, #fffefb 0%, var(--surface) 55%, #fbf7ef 100%);
}
.booking-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 14px solid rgba(181, 133, 50, 0.06);
  pointer-events: none;
}
.booking-card {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.booking-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brass) 24%, var(--line));
  box-shadow: 0 15px 30px -24px rgba(22, 36, 29, 0.5);
}
.booking-body {
  position: relative;
  z-index: 1;
}

/* Navigation basse : bord « barbier » et pastille active */
.bottomnav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--brass) 0 14px,
    rgba(181, 133, 50, 0.14) 14px 28px,
    var(--green) 28px 42px,
    rgba(14, 90, 61, 0.12) 42px 56px
  );
  opacity: 0.35;
  pointer-events: none;
}
.bottomnav button.on,
.bottomnav a.on {
  background-image: linear-gradient(180deg, #edf5ef, var(--green-soft));
}

/* Auth : bord de store + ciseaux discrets */
.auth-brand::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34) 0 10px,
    transparent 10px 20px,
    rgba(232, 201, 135, 0.42) 20px 30px,
    transparent 30px 40px
  );
  opacity: 0.28;
  pointer-events: none;
}
.auth-panel::before {
  content: "✂";
  position: absolute;
  right: 7%;
  top: 10%;
  font-size: 92px;
  line-height: 1;
  color: rgba(14, 90, 61, 0.045);
  transform: rotate(-18deg);
  pointer-events: none;
}
.auth-box,
.auth-get,
.auth-legal {
  position: relative;
  z-index: 1;
}

/* Ruban de barbier vertical sur les grands écrans */
@media (min-width: 1000px) {
  body::after {
    content: "";
    position: fixed;
    top: 10vh;
    bottom: 10vh;
    left: calc(50% - 390px);
    width: 18px;
    border-radius: 99px;
    background: repeating-linear-gradient(
      135deg,
      rgba(181, 133, 50, 0.5) 0 18px,
      #f8f3e8 18px 36px,
      rgba(14, 90, 61, 0.42) 36px 54px,
      #f8f3e8 54px 72px
    );
    box-shadow:
      0 0 0 1px rgba(181, 133, 50, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 18px 36px -24px rgba(22, 36, 29, 0.5);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
  }
}

/* Entrée douce des blocs principaux */
@keyframes l7rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hello,
.seg,
.search,
.promo-card,
.shop-card,
.empty,
.booking-card,
.notice.warn {
  animation: l7rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hello { animation-delay: 0.02s; }
.seg { animation-delay: 0.06s; }
.search { animation-delay: 0.09s; }
.promo-card { animation-delay: 0.1s; }
.empty { animation-delay: 0.12s; }
.page > .shop-card:nth-of-type(2) { animation-delay: 0.05s; }
.page > .shop-card:nth-of-type(3) { animation-delay: 0.1s; }
.page > .shop-card:nth-of-type(4) { animation-delay: 0.15s; }
.page > .shop-card:nth-of-type(5) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* ---------- partner spotlight ---------- */
.sponsor-card {
  position: relative;
  height: 232px;
  margin: 20px 0 8px;
  perspective: 1400px;
}
.sponsor-rot {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sponsor-card.is-flipped .sponsor-rot {
  transform: rotateY(180deg);
}
.sponsor-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(181, 133, 50, 0.42);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px),
    radial-gradient(240px 170px at 108% -30%, rgba(181, 133, 50, 0.38), transparent 72%),
    radial-gradient(220px 160px at -16% 140%, rgba(14, 90, 61, 0.6), transparent 72%),
    linear-gradient(152deg, #17392c, #0a2f24 74%);
  box-shadow:
    0 16px 34px rgba(10, 47, 36, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fdf8ec;
  text-align: left;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.sponsor-face::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224, 185, 120, 0.92), transparent);
}
.sponsor-front {
  justify-content: space-between;
  gap: 10px;
}
.sponsor-back {
  transform: rotateY(180deg);
  justify-content: center;
  gap: 9px;
}
.sponsor-sheen {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 45%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: rotate(12deg);
  animation: sponsor-sheen 10s ease-in-out infinite;
  pointer-events: none;
}
.sponsor-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.sponsor-head-txt {
  display: block;
  min-width: 0;
}
.sponsor-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e0b978;
  margin-bottom: 5px;
}
.sponsor-eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 185, 120, 0.95), rgba(224, 185, 120, 0.15));
}
.sponsor-title {
  display: block;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #fdf8ec;
}
.sponsor-sub {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(224, 185, 120, 0.75);
}
.sponsor-seal {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 185, 120, 0.5);
  box-shadow: inset 0 0 0 3px rgba(10, 47, 36, 0.9), inset 0 0 0 4px rgba(224, 185, 120, 0.28);
  background: radial-gradient(circle at 32% 26%, rgba(224, 185, 120, 0.4), rgba(224, 185, 120, 0.06));
  color: #f7e2b8;
  font-size: 14px;
  line-height: 1;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sponsor-tile {
  position: relative;
  overflow: hidden;
  height: 52px;
  border-radius: 13px;
  border: 1px solid rgba(224, 185, 120, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.sponsor-tile::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 9px;
  border-top: 1px solid rgba(224, 185, 120, 0.32);
  border-left: 1px solid rgba(224, 185, 120, 0.32);
  clip-path: polygon(0 0, 34% 0, 34% 1px, 1px 1px, 1px 34%, 0 34%);
  pointer-events: none;
}
.sponsor-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: sponsor-shine 5.5s ease-in-out infinite;
}
.sponsor-tile:nth-child(2)::after {
  animation-delay: 0.6s;
}
.sponsor-tile:nth-child(3)::after {
  animation-delay: 1.2s;
}
.sponsor-mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(224, 185, 120, 0.6);
  color: #e8c68d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.sponsor-tile small {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 248, 236, 0.55);
}
.sponsor-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}
.sponsor-cta {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(118deg, #f4dcaa, #c9993f 52%, #f0d8a8);
  color: #12281f;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.sponsor-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.sponsor-cta:hover::after,
.sponsor-cta:focus-visible::after {
  transform: translateX(120%);
}
.sponsor-cta:hover,
.sponsor-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.sponsor-cta:active {
  transform: translateY(0);
}
.sponsor-cta-txt {
  white-space: nowrap;
}
.sponsor-cta-ico {
  font-size: 11px;
  opacity: 0.75;
}
.sponsor-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(18, 40, 31, 0.18);
  background: rgba(18, 40, 31, 0.14);
  font-size: 11px;
  line-height: 1;
}
.sponsor-more {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 0 13px;
  border-radius: 13px;
  border: 1px solid rgba(224, 185, 120, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: #eed6a6;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.sponsor-more:hover,
.sponsor-more:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(224, 185, 120, 0.75);
}
.sponsor-back-title {
  display: block;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fdf8ec;
}
.sponsor-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(253, 248, 236, 0.86);
}
.sponsor-perks li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.sponsor-perks li::before {
  content: "✦";
  color: #e0b978;
  font-size: 8px;
  line-height: 1.7;
}
@keyframes sponsor-shine {
  0%,
  70% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}
@keyframes sponsor-sheen {
  0%,
  62% {
    transform: rotate(12deg) translateX(-40%);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(12deg) translateX(420%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-tile::after,
  .sponsor-sheen {
    animation: none;
    opacity: 0;
  }
  .sponsor-rot,
  .sponsor-cta,
  .sponsor-cta::after {
    transition: none;
  }
}
@media (max-width: 360px) {
  .sponsor-cta-txt {
    font-size: 11.5px;
  }
  .sponsor-more {
    padding: 0 9px;
    font-size: 10px;
  }
}

/* ============================================================
   Dark theme
   The whole palette lives in these tokens; components below only
   need a nudge where they used a literal light colour, a paper
   gradient or a "lit from above" shadow.
   ============================================================ */
html[data-theme="dark"] {
  --bg: #0b1310;
  --surface: #131e19;
  --surface-2: #17241f;
  --ink: #eef4ef;
  --ink-2: #dbe6de;
  --muted: #9db0a4;
  --line: #283830;
  --line-2: #21302a;
  --green: #0e5a3d;
  --green-dark: #0a4330;
  --green-soft: #12312a;
  --brass: #d9b064;
  --brass-dark: #b58532;
  --brass-soft: #2a2417;
  --red: #e0655c;
  --red-soft: #341f1c;
  --blue: #8ab8d1;
  --blue-soft: #17262e;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 8% -12%, rgba(217, 176, 100, 0.07), transparent 62%),
    radial-gradient(1000px 560px at 100% 0%, rgba(16, 122, 84, 0.16), transparent 58%),
    radial-gradient(900px 700px at 50% 112%, rgba(16, 122, 84, 0.1), transparent 62%),
    linear-gradient(180deg, #0e1a15 0%, var(--bg) 44%, #080f0c 100%);
}
html[data-theme="dark"] body::before {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 22px),
    radial-gradient(70% 55% at 50% 38%, transparent 42%, rgba(217, 176, 100, 0.04) 100%);
  opacity: 1;
}
html[data-theme="dark"] a {
  color: #7fd6ab;
}
html[data-theme="dark"] .article a,
html[data-theme="dark"] .leaflet-popup-content a {
  color: #7fd6ab;
}

/* App canvases */
html[data-theme="dark"] .client-shell {
  background-color: var(--bg);
  background-image:
    radial-gradient(420px 260px at 100% 0%, rgba(217, 176, 100, 0.05), transparent 70%),
    linear-gradient(180deg, #0e1a15 0%, var(--bg) 42%, #080f0c 100%);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .main {
  background-color: var(--bg);
  background-image:
    radial-gradient(560px 340px at 100% -4%, rgba(217, 176, 100, 0.06), transparent 65%),
    radial-gradient(640px 420px at 0% 0%, rgba(16, 122, 84, 0.1), transparent 62%),
    linear-gradient(180deg, #0e1a15 0%, var(--bg) 48%, #080f0c 100%);
}

/* Paper surfaces */
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .shop-card,
html[data-theme="dark"] .booking-card,
html[data-theme="dark"] .service-tile,
html[data-theme="dark"] .tl-card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .auth-get,
html[data-theme="dark"] .install-bar {
  background-image: linear-gradient(180deg, #18251f 0%, var(--surface) 55%, #111c17 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 34px -24px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .table-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 46px -32px rgba(0, 0, 0, 0.95);
}
html[data-theme="dark"] .stat.gold {
  background-image: linear-gradient(180deg, #2b2416 0%, #221c12 60%, #1c1710 100%);
}
html[data-theme="dark"] .shop-card {
  background-image:
    radial-gradient(130px 90px at 100% 0%, rgba(217, 176, 100, 0.07), transparent 70%),
    linear-gradient(145deg, #17241e 0%, var(--surface) 55%, #111d18 100%);
}
html[data-theme="dark"] .booking-card {
  background-image:
    radial-gradient(120px 90px at 100% 0%, rgba(217, 176, 100, 0.05), transparent 70%),
    linear-gradient(160deg, #17241e 0%, var(--surface) 55%, #111d18 100%);
}
html[data-theme="dark"] .booking-card::after,
html[data-theme="dark"] .shop-card::after {
  border-color: rgba(217, 176, 100, 0.05);
}
html[data-theme="dark"] .shop-card .shop-ava::after {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .stat:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 40px -24px rgba(0, 0, 0, 0.95);
}
html[data-theme="dark"] .empty {
  background-image:
    radial-gradient(240px 150px at 50% 0%, rgba(217, 176, 100, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 26, 0.92), rgba(13, 22, 18, 0.55));
}
html[data-theme="dark"] .empty::before {
  color: rgba(255, 255, 255, 0.035);
}
html[data-theme="dark"] .empty::after {
  border-color: rgba(217, 176, 100, 0.1);
}
html[data-theme="dark"] .hello {
  background-image:
    radial-gradient(220px 160px at 100% 0%, rgba(217, 176, 100, 0.1), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 15px),
    linear-gradient(145deg, #17241e 0%, #131f19 58%, #101a15 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 44px -34px rgba(0, 0, 0, 0.95);
}
html[data-theme="dark"] .hello::before {
  border-color: rgba(217, 176, 100, 0.07);
}
html[data-theme="dark"] .hello::after {
  color: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .hello h1 em {
  color: #8fe3ba;
  background-image: linear-gradient(transparent 66%, rgba(217, 176, 100, 0.2) 66% 92%, transparent 92%);
}
html[data-theme="dark"] .promo-card {
  background-image:
    radial-gradient(180px 130px at 100% 0%, rgba(217, 176, 100, 0.09), transparent 70%),
    linear-gradient(135deg, #13291f 0%, #16221c 55%, #1d1a12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 30px -26px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .promo-card::before {
  opacity: 0.08;
}
html[data-theme="dark"] .promo-card::after {
  opacity: 0.3;
}
html[data-theme="dark"] .promo-ico {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 7px 14px -10px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .notice {
  background: var(--green-soft);
}
html[data-theme="dark"] .notice.warn {
  background-image: linear-gradient(120deg, rgba(217, 176, 100, 0.16), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .notice.red {
  background: var(--red-soft);
}

/* Controls */
html[data-theme="dark"] .btn.ghost {
  background-image: linear-gradient(180deg, #1d2b24 0%, var(--surface) 60%, #16221c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px -10px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .btn.ghost:hover {
  background-image: linear-gradient(180deg, #22332b 0%, var(--surface-2) 60%, #1a2822 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 6px 16px -10px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .search,
html[data-theme="dark"] .inp,
html[data-theme="dark"] .sel,
html[data-theme="dark"] .ta {
  background-image: linear-gradient(180deg, #1a2721, var(--surface));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  color: var(--ink);
}
html[data-theme="dark"] .inp::placeholder,
html[data-theme="dark"] .ta::placeholder {
  color: #7f9389;
}
html[data-theme="dark"] .seg {
  background-image: linear-gradient(180deg, #17241f, #13201a);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .chip {
  background: #16231d;
  border-color: var(--line);
  color: var(--ink-2);
}
html[data-theme="dark"] .chip.on {
  color: #f4fffa;
}
html[data-theme="dark"] .day.on,
html[data-theme="dark"] .slot.sel {
  background: var(--green);
  color: #fff;
}
html[data-theme="dark"] .slot:not(.sel):not(:disabled):hover {
  background: var(--green-soft);
}
html[data-theme="dark"] .service-tile.on {
  background-image: linear-gradient(145deg, #14332a, #102a22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .service-tile .s-ico {
  background: #1b2b24;
}
html[data-theme="dark"] .stars,
html[data-theme="dark"] .stars button {
  color: #3a4a42;
}
html[data-theme="dark"] .stars button.on {
  color: var(--brass);
}
html[data-theme="dark"] .toast {
  background: #22322b;
  color: var(--ink);
  box-shadow: 0 18px 38px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .lang-sel {
  background-color: #16231d;
  border-color: var(--line);
  color: var(--ink-2);
}
html[data-theme="dark"] .auth-get {
  background: var(--surface);
}
html[data-theme="dark"] .auth-get-btns button {
  background: #16231d;
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .auth-tabs {
  background: #0e1a15;
}
html[data-theme="dark"] .auth-tabs button.on {
  background: var(--surface-2);
  color: var(--ink);
}
html[data-theme="dark"] .auth-panel {
  background-color: var(--surface);
  background-image:
    radial-gradient(520px 340px at 100% 0%, rgba(217, 176, 100, 0.06), transparent 62%),
    radial-gradient(560px 380px at 0% 100%, rgba(16, 122, 84, 0.12), transparent 60%),
    linear-gradient(180deg, #0f1b16 0%, var(--surface) 55%, #0a1210 100%);
}
html[data-theme="dark"] .auth-panel::before {
  color: rgba(255, 255, 255, 0.03);
}
html[data-theme="dark"] .avatar.gold {
  background-image: linear-gradient(160deg, #2b2418, #221c12);
  color: #e2bd78;
}
html[data-theme="dark"] .shop-hero {
  background-image:
    radial-gradient(420px 220px at 88% -20%, rgba(217, 176, 100, 0.22), transparent 62%),
    linear-gradient(150deg, #10533d 0%, #0d4231 48%, #072a20 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 20px 44px -30px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .sidebar {
  background-image:
    radial-gradient(320px 240px at 100% 0%, rgba(217, 176, 100, 0.16), transparent 62%),
    radial-gradient(420px 320px at 0% 100%, rgba(22, 122, 84, 0.26), transparent 65%),
    linear-gradient(180deg, #082e22 0%, #061f18 100%);
}
html[data-theme="dark"] .dash-mobile-bar {
  background: rgba(9, 18, 14, 0.94);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .dash-mobile-brand {
  color: #8fe0b9;
}
html[data-theme="dark"] .client-top {
  background: linear-gradient(var(--bg) 70%, transparent);
}
html[data-theme="dark"] .bottomnav,
html[data-theme="dark"] .dock {
  /* 94% of #101b16, spelled out: no mix means no fallback to keep in step. */
  background: rgba(16, 27, 22, 0.94);
  border-color: var(--line);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04), 0 -18px 40px -30px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .bottomnav button.on,
html[data-theme="dark"] .bottomnav a.on {
  background-image: linear-gradient(180deg, #16332a, #112a22);
  color: #7fd6ab;
}
html[data-theme="dark"] .modal {
  background-image: linear-gradient(180deg, #18251f 0%, var(--surface) 40%, #111c17 100%);
  box-shadow: 0 -22px 60px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .install-bar {
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .install-bar .ib-ico {
  background: var(--brass-soft);
}
html[data-theme="dark"] th {
  background-image: linear-gradient(180deg, #1a2822 0%, #16231d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
html[data-theme="dark"] .table-wrap {
  border-color: var(--line);
}
html[data-theme="dark"] tbody tr:hover {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 65%);
}
html[data-theme="dark"] .chart {
  background-image: repeating-linear-gradient(to top, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 37px);
}
/* Maps: same dark tiles as the light UI, on a matching night backdrop. */
html[data-theme="dark"] .leaflet-container,
html[data-theme="dark"] .l7map-dim {
  background: #0d1613;
}
html[data-theme="dark"] .l7map-dim .leaflet-tile-pane {
  filter: invert(0.96) hue-rotate(180deg) saturate(1.25) brightness(0.92) contrast(0.94);
}
html[data-theme="dark"] .l7map-dim.is-plain .leaflet-tile-pane {
  filter: grayscale(0.2) brightness(0.72) contrast(1.02);
}
html[data-theme="dark"] .l7map-dark .leaflet-tile-pane {
  filter: grayscale(1) invert(1) brightness(0.9) contrast(0.92);
}

html[data-theme="dark"] .leaflet-popup-content-wrapper {
  background: #16231d;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .leaflet-popup-tip {
  background: #16231d;
}
html[data-theme="dark"] .leaflet-popup-content a {
  color: #7fd6ab;
}
html[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button {
  color: #9db0a4;
}
html[data-theme="dark"] .l7map-dim .leaflet-bar a {
  background: #1a2721;
  color: #dfe9e2;
  border-bottom-color: #2c3b34;
}
html[data-theme="dark"] .l7map-dim .leaflet-bar a:hover {
  background: #22322b;
}

/* ---------- theme switch ---------- */
.theme-sw {
  --sw-w: 38px;
  --sw-h: 22px;
  --sw-k: 16px;
  --sw-shift: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  flex: none;
  cursor: pointer;
  box-shadow: 0 2px 8px -6px rgba(22, 36, 29, 0.55);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.theme-sw:hover {
  border-color: color-mix(in srgb, var(--brass) 42%, var(--line));
  color: var(--ink);
}
.theme-sw:active {
  transform: scale(0.97);
}
.theme-sw:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--green) 55%, transparent);
  outline-offset: 2px;
}
.theme-sw-lbl {
  white-space: nowrap;
}
.theme-sw-track {
  position: relative;
  width: var(--sw-w);
  height: var(--sw-h);
  flex: none;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 8%, var(--surface));
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-sw-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: var(--sw-k);
  height: var(--sw-k);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  background: linear-gradient(160deg, #fffdf6, #efe6d3);
  box-shadow: 0 1px 3px rgba(22, 36, 29, 0.3);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s ease;
}
.theme-sw[data-mode="dark"] .theme-sw-track {
  background: color-mix(in srgb, var(--green) 26%, var(--surface-2));
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}
.theme-sw[data-mode="dark"] .theme-sw-knob {
  transform: translateX(var(--sw-shift));
  background: linear-gradient(160deg, #f7e2b4, #d9b064);
}
/* Headers are tight: the switch drops its label but keeps its shape. */
.theme-sw-compact {
  --sw-w: 34px;
  --sw-h: 20px;
  --sw-k: 14px;
  --sw-shift: 14px;
  padding: 3px;
  gap: 0;
}
/* Sidebar: a real settings row, label on the left, switch on the right. */
.side-theme {
  width: 100%;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 11px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  box-shadow: none;
}
.side-theme:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.side-theme .theme-sw-track {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}
.side-theme[data-mode="dark"] .theme-sw-track {
  background: color-mix(in srgb, var(--brass) 55%, transparent);
  border-color: color-mix(in srgb, var(--brass) 75%, transparent);
}
/* Login: its own top bar, high above the form and far from its text. */
.auth-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}
.auth-theme {
  display: flex;
  min-width: 0;
}
.auth-theme-sw {
  padding: 6px 7px 6px 12px;
  font-size: 11.5px;
  border-color: color-mix(in srgb, var(--brass) 34%, var(--line));
  background: color-mix(in srgb, var(--brass) 6%, var(--surface));
  box-shadow: 0 6px 18px -14px rgba(22, 36, 29, 0.7);
}
html[data-theme="dark"] .notice {
  color: #a9e6c6;
}
html[data-theme="dark"] .role-pick button.on {
  color: #8fe3ba;
}
html[data-theme="dark"] .switch.on {
  color: #8fe3ba;
}

/* Narrow phones: the header now carries a theme toggle too, so tighten it up
   instead of letting the row overflow. */
@media (max-width: 400px) {
  .client-top {
    padding: 14px 12px 8px;
  }
  .client-top > .row {
    gap: 3px !important;
  }
  .client-top .icon-btn.sm {
    width: 28px;
    height: 28px;
  }
  .client-top .theme-sw-compact {
    --sw-w: 30px;
    --sw-h: 18px;
    --sw-k: 12px;
    --sw-shift: 12px;
    padding: 2px;
  }
  .client-top .avatar {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }
  /* Logout lives in Profil on these widths: keep the header readable. */
  .client-top .btn.xs {
    display: none;
  }
}
@media (max-width: 400px) {
  .dash-mobile-bar {
    padding-left: 12px;
    padding-right: 12px;
    gap: 4px;
  }
  .dash-mobile-bar .theme-sw-compact {
    --sw-w: 30px;
    --sw-h: 18px;
    --sw-k: 12px;
    --sw-shift: 12px;
    padding: 2px;
  }
  .dash-mobile-bar .icon-btn.sm {
    width: 28px;
    height: 28px;
  }
  .dash-mobile-bar .btn.xs {
    width: 30px;
    height: 30px;
    padding: 0 !important;
    font-size: 0;
    display: grid;
    place-items: center;
  }
  .dash-mobile-bar .btn.xs::before {
    content: "⎋";
    font-size: 14px;
    line-height: 1;
  }
}

/* A little air between the theme switch and the language select in headers. */
@media (min-width: 401px) {
  .client-top .theme-sw-compact {
    margin-right: 4px;
  }
}
html[data-theme="dark"] .shop-side,
html[data-theme="dark"] .shop-side b {
  color: #8fe3ba;
}

/* ============================================================
   Décor 3 — de la vie dans les écrans
   Même palette, même grille : papier chaud, reliefs doux et
   quelques détails qui finissent les écrans du quotidien.
   ============================================================ */

/* Toile des écrans : papier chaud avec deux halos, au lieu d'un aplat. */
.client-shell {
  background-image:
    radial-gradient(420px 260px at 100% 0%, rgba(181, 133, 50, 0.1), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(14, 90, 61, 0.06), transparent 70%),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 42%, #f0ebdf 100%);
}
.main {
  background-image:
    radial-gradient(560px 340px at 100% -6%, rgba(181, 133, 50, 0.11), transparent 65%),
    radial-gradient(640px 420px at 0% 0%, rgba(14, 90, 61, 0.07), transparent 62%),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 48%, #f0ebdf 100%);
}

/* En-tête des dashboards : une vraie carte, filet laiton, ciseaux en filigrane. */
.dash-top {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1.5px solid color-mix(in srgb, var(--brass) 22%, var(--line));
  border-radius: 22px;
  background-image:
    radial-gradient(240px 160px at 100% 0%, rgba(181, 133, 50, 0.17), transparent 72%),
    repeating-linear-gradient(135deg, rgba(14, 90, 61, 0.032) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, #fffdf8 0%, #fbf6ea 60%, #f5eddd 100%);
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px -34px rgba(22, 36, 29, 0.6);
}
.dash-top::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(181, 133, 50, 0.65), transparent);
  pointer-events: none;
}
.dash-top::after {
  content: "✂";
  position: absolute;
  right: 14px;
  bottom: -34px;
  font-size: 116px;
  line-height: 1;
  color: rgba(14, 90, 61, 0.055);
  transform: rotate(-12deg);
  pointer-events: none;
}
.dash-top > * {
  position: relative;
  z-index: 1;
}

/* Navigation : chaque entrée gagne une petite tuile d'icône. */
.navlink span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.navlink:hover span {
  background: rgba(255, 255, 255, 0.13);
  transform: scale(1.05);
}
.navlink.on span {
  background: rgba(255, 255, 255, 0.18);
}

/* Chiffres clés : relief, halo laiton et petite montée au survol. */
.stat {
  background-image:
    radial-gradient(160px 110px at 100% 0%, rgba(181, 133, 50, 0.11), transparent 72%),
    linear-gradient(160deg, #fffefb 0%, var(--surface) 62%, #fbf6ec 100%);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -28px rgba(22, 36, 29, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: l7rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brass) 36%, var(--line));
  box-shadow: inset 0 1px 0 #fff, 0 20px 34px -26px rgba(22, 36, 29, 0.5);
}

/* Panneaux : papier chaud, filet laiton devant chaque titre. */
.panel {
  border-color: color-mix(in srgb, var(--brass) 13%, var(--line));
  background-image:
    radial-gradient(240px 150px at 100% 0%, rgba(181, 133, 50, 0.06), transparent 72%),
    linear-gradient(170deg, #fffefb 0%, var(--surface) 55%, #fdfaf3 100%);
  box-shadow: inset 0 1px 0 #fff, 0 16px 36px -34px rgba(22, 36, 29, 0.5);
}
.panel-head h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  margin-right: 8px;
  border-radius: 3px;
  vertical-align: -2px;
  background: linear-gradient(180deg, var(--brass), color-mix(in srgb, var(--brass) 25%, transparent));
}

/* Réservations : tranche dégradée et réaction au survol. */
.booking-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brass) 14%, var(--line));
  background-image: linear-gradient(150deg, #fffefb 0%, var(--surface) 60%, #fbf6ec 100%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 26px -26px rgba(22, 36, 29, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.booking-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--green), var(--brass));
  opacity: 0.85;
  pointer-events: none;
}
.booking-card > * {
  position: relative;
  z-index: 1;
}
.booking-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  box-shadow: inset 0 1px 0 #fff, 0 18px 30px -26px rgba(22, 36, 29, 0.55);
}

/* Services, jours, créneaux : réactions douces au survol. */
.service-tile {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.service-tile:not(.on):hover {
  background-image: linear-gradient(150deg, #fffefb, var(--surface-2));
  box-shadow: 0 10px 22px -20px rgba(22, 36, 29, 0.55);
  transform: translateY(-1px);
}
.day {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.day:not(.on):not(.off):hover {
  border-color: color-mix(in srgb, var(--brass) 48%, var(--line));
  transform: translateY(-2px);
}
.slot:not(.sel):not(.taken):hover {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}

/* États vides : une petite marque de la maison. */
.empty::before {
  content: "✦";
  display: block;
  font-size: 20px;
  line-height: 1;
  color: var(--brass);
  opacity: 0.55;
  margin-bottom: 7px;
}

@media (max-width: 560px) {
  .dash-top {
    padding: 15px 15px;
    border-radius: 18px;
  }
  .dash-top::after {
    font-size: 92px;
    right: 6px;
  }
}

/* Décor 3 en mode sombre : mêmes reliefs, lumières inversées. */
html[data-theme="dark"] .dash-top {
  border-color: color-mix(in srgb, var(--brass) 22%, var(--line));
  background-image:
    radial-gradient(240px 160px at 100% 0%, rgba(217, 176, 100, 0.13), transparent 72%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, #17251f 0%, #131e19 60%, #101a15 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 44px -34px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .dash-top::after {
  color: rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .stat {
  background-image:
    radial-gradient(160px 110px at 100% 0%, rgba(217, 176, 100, 0.09), transparent 72%),
    linear-gradient(160deg, #18251f 0%, var(--surface) 62%, #111c17 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 34px -30px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .stat.accent {
  background-image: linear-gradient(150deg, #0f6b49, #083326);
  border-color: transparent;
}
html[data-theme="dark"] .stat.gold {
  background-image: linear-gradient(180deg, #2c2518 0%, #241d12 60%, #1e180f 100%);
  border-color: color-mix(in srgb, var(--brass) 30%, var(--line));
}
html[data-theme="dark"] .panel {
  background-image:
    radial-gradient(240px 150px at 100% 0%, rgba(217, 176, 100, 0.05), transparent 72%),
    linear-gradient(170deg, #18251f 0%, var(--surface) 55%, #111c17 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -34px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .booking-card {
  background-image: linear-gradient(150deg, #18251f 0%, var(--surface) 60%, #111c17 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px -26px rgba(0, 0, 0, 0.9);
}
html[data-theme="dark"] .service-tile:not(.on):hover {
  background-image: linear-gradient(150deg, #18251f, var(--surface-2));
}

/* ============================================================
   Salon vs domicile — two lanes a client can tell apart at once
   ============================================================ */
.seg.seg-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 5px;
  white-space: nowrap;
}
.seg-n {
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  opacity: 0.8;
}
.seg button.on .seg-n {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

/* Kind badge on every result card */
.shop-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  border: 1px solid transparent;
  width: fit-content;
}
.shop-kind.k-salon {
  background: var(--green-soft);
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 22%, transparent);
}
.shop-kind.k-home {
  background: var(--brass-soft);
  color: var(--brass-dark);
  border-color: color-mix(in srgb, var(--brass) 32%, transparent);
}
.shop-kind.k-both {
  background: linear-gradient(100deg, var(--green-soft), var(--brass-soft));
  color: var(--green-dark);
  border-color: color-mix(in srgb, var(--brass) 26%, transparent);
}

/* Card identity: home-visit cards read brass + house, salons stay green */
.shop-card.kind-home .shop-ava {
  background: linear-gradient(145deg, var(--brass-soft), #efdcb4);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(181, 133, 50, 0.18);
}
.shop-card.kind-home::before {
  background: linear-gradient(180deg, var(--brass), #dcb87a);
}
.shop-card.kind-salon::before {
  background: linear-gradient(180deg, var(--green), var(--brass));
}

/* Mode badge inside the shop hero */
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.mode-badge.mb-home {
  /* 62% of #d9b064 — plain rgba, so the dark label keeps its 4.7:1 on the hero. */
  background: rgba(217, 176, 100, 0.62);
  border-color: rgba(255, 255, 255, 0.4);
  color: #2a2010;
}
.mode-badge.mb-both {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.18), rgba(217, 176, 100, 0.6));
}

/* Map pins: home-visit pros use the brass house pin */
.l7pin.homeonly i {
  background: linear-gradient(150deg, #c39245, #8a6423);
}

/* Map legend: green round pin = works in a salon, brass pin = comes to the home */
.l7legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1;
}
.l7legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
}
.l7legend-dot.is-salon {
  background: var(--green);
}
.l7legend-dot.is-home {
  border-radius: 3px;
  background: linear-gradient(150deg, #c39245, #8a6423);
}

@media (max-width: 400px) {
  .seg.seg-3 button {
    font-size: 11.5px;
    padding: 10px 4px;
  }
  .seg.seg-3 .seg-n {
    display: none;
  }
}

html[data-theme="dark"] .shop-kind.k-salon {
  color: #8fe3ba;
}
html[data-theme="dark"] .shop-kind.k-home {
  color: #e8c48a;
}
html[data-theme="dark"] .shop-kind.k-both {
  color: #e6dcc0;
}
html[data-theme="dark"] .shop-card.kind-home .shop-ava {
  background: linear-gradient(145deg, #2d2517, #221b10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(217, 176, 100, 0.16);
}
html[data-theme="dark"] .l7pin.homeonly i {
  background: linear-gradient(150deg, #a9824a, #6f5127);
}

/* Real photos: the pro's face (home visits) or the salon from outside */
.shop-ava img,
.shop-head .shop-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.photo-req {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px;
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brass-soft) 40%, transparent);
}
.photo-req[hidden] {
  display: none;
}
.photo-req .ph-thumb {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 23px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.photo-req .ph-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-theme="dark"] .photo-req {
  background: color-mix(in srgb, var(--brass) 10%, transparent);
}


/* ============================================================
   Réservations — prochain rendez-vous, chiffres, réserver à nouveau
   ============================================================ */
.next-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 15px 16px 14px;
  margin: 4px 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 58%, #0a3f2b 100%);
  box-shadow: 0 16px 34px rgba(14, 90, 61, 0.26);
}
.next-card.home {
  background: linear-gradient(135deg, #5f4620 0%, #a2793a 58%, #c69b52 100%);
  box-shadow: 0 16px 34px rgba(181, 133, 50, 0.26);
}
.next-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.next-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.next-eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.82;
}
.next-when {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.next-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.next-clock {
  flex: 0 0 76px;
  text-align: center;
  padding: 8px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.next-clock b {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}
.next-clock small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  opacity: 0.85;
}
.next-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.next-info b {
  font-size: 16px;
}
.next-info span {
  font-size: 12px;
  opacity: 0.92;
}
.next-place {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.next-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.next-actions .btn {
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}
.next-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.next-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
}

.res-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.res-stat {
  padding: 12px 10px;
  border-radius: 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.res-stat i {
  font-style: normal;
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.res-stat b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-stat span {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.res-again {
  display: grid;
  gap: 9px;
}
.res-again-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.res-again-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brass) 42%, var(--line));
}
.ra-ava {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  overflow: hidden;
  background: var(--green-soft);
}
.ra-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ra-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ra-body b {
  font-size: 13.5px;
}
.ra-body small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ra-go {
  font-weight: 900;
  color: var(--brass-dark);
}

html[data-theme="dark"] .next-card {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .res-stat,
html[data-theme="dark"] .res-again-card {
  background: var(--surface-2);
}
html[data-theme="dark"] .ra-ava {
  background: #23352c;
}
html[data-theme="dark"] .next-actions .btn {
  background: #f2efe7;
  color: #0b2e21;
}

/* ============================================================
   Décor 4 — le fond des apps (et non plus seulement les cartes)
   Trame de store, halos chauds et emblème de ciseaux en filigrane.
   Purement visuel : aucune taille ni disposition ne change.
   ============================================================ */
.client-shell,
.main,
.dash,
.auth {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23b58532' stroke-opacity='0.13' stroke-width='6' stroke-linecap='round'><circle cx='54' cy='52' r='17'/><circle cx='54' cy='148' r='17'/><path d='M68 62 L168 158 M68 138 L168 42'/></svg>"),
    repeating-linear-gradient(135deg, rgba(14, 90, 61, 0.030) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(45deg, rgba(181, 133, 50, 0.026) 0 1px, transparent 1px 48px),
    radial-gradient(820px 460px at 100% -8%, rgba(181, 133, 50, 0.10), transparent 66%),
    radial-gradient(700px 480px at 0% 4%, rgba(14, 90, 61, 0.07), transparent 62%),
    linear-gradient(180deg, #f7f4ed 0%, var(--bg) 46%, #efeae1 100%);
  background-repeat: no-repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-position: right -110px bottom -70px, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-size: 540px auto, auto, auto, auto, auto, auto;
  background-attachment: fixed;
}

html[data-theme="dark"] .client-shell,
html[data-theme="dark"] .main,
html[data-theme="dark"] .dash,
html[data-theme="dark"] .auth {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23d9b064' stroke-opacity='0.10' stroke-width='6' stroke-linecap='round'><circle cx='54' cy='52' r='17'/><circle cx='54' cy='148' r='17'/><path d='M68 62 L168 158 M68 138 L168 42'/></svg>"),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.020) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(45deg, rgba(217, 176, 100, 0.028) 0 1px, transparent 1px 48px),
    radial-gradient(820px 460px at 100% -8%, rgba(217, 176, 100, 0.09), transparent 66%),
    radial-gradient(700px 480px at 0% 4%, rgba(16, 122, 84, 0.14), transparent 62%),
    linear-gradient(180deg, #0e1a15 0%, var(--bg) 46%, #080f0c 100%);
}

/* ---- AdSense slot (web ads; also renders inside the TWA) ---- */
.l7-ad { margin: 20px 0 10px; }
.l7-ad-label {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 6px;
}
.l7-ad ins { display: block; min-height: 100px; }

/* A marker without a unit takes no space, so an ad-free build keeps the exact
   rhythm of the list. A filled one reads as a quiet card: the in-feed unit is
   labelled, never dressed up as a shop. */
.l7-ad-slot { margin: 14px 0; }
.l7-ad-slot:empty { display: none; margin: 0; }
.l7-ad-slot .l7-ad {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
html[data-theme="dark"] .l7-ad-slot .l7-ad { border-color: var(--line-2); }

/* ---------- legal links: dashboard (CGV · Confidentialité) ---------- */
.side-legal {
  margin: 0;
  padding-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}
.side-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.side-legal a:hover { color: #fff; }
/* The sidebar (and its footer) is hidden at <=980px: the same links appear
   under the dashboard content so a phone user still sees them. */
.dash-legal {
  display: none;
  margin: 22px 0 6px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.dash-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 980px) {
  .dash-legal { display: block; }
}

/* ============================================================
   Verification form — the error sits under the document it is about
   ============================================================ */
.doc-err {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--red);
}
.doc-err[hidden] {
  display: none;
}
.field .inp[aria-invalid="true"],
.field .inp.inp-bad {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
