/* ============================================================
   LALLA — design system
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  --bg: #FBF7F2;
  --bg-2: #F3E1DD;
  --surface: #FFFDFB;
  --surface-2: #FBF7F2;
  --ink: #2A2023;
  --ink-2: #3A2C30;
  --muted: #7A686C;
  --line: #EADFD8;
  --line-2: #F3E9E3;
  --green: #6E1F35;
  --green-dark: #521527;
  --green-soft: #F3E1DD;
  --brass: #B08A4F;
  --brass-dark: #8A6A38;
  --brass-soft: #F7EDD8;
  --red: #B5433B;
  --red-soft: #FBE9E7;
  --blue: #6E5A6F;
  --blue-soft: #F1E9F0;
  --shadow: 0 14px 40px rgba(82, 21, 39, 0.10);
  --shadow-sm: 0 4px 14px rgba(82, 21, 39, 0.07);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", 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 {
  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 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: 22px;
  color: var(--ink);
}
.brand-mark {
  width: 1.2em;
  height: 1.2em;
  border-radius: 0.28em;
  flex: none;
  display: block;
}
.brand span {
  color: var(--brass);
}
.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;
}
.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);
  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;
}
.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.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);
}
.card-btn {
  display: block;
  text-align: left;
  width: 100%;
  transition: 0.15s;
}
.card-btn:hover {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.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%, #7A2840 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: #D9B978;
}
.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: #E3C68C;
  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, #B08A4F);
}
.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);
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  position: relative;
  box-shadow: 0 0 80px rgba(42, 32, 35, 0.07);
}
.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));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.bottomnav button,
.bottomnav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  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:has(img) {
  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;
}

/* 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;
}

/* ---------- shop opening hours ---------- */
.hours-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.hours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  margin-top: 8px;
}
.hours-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.hours-day i {
  font-style: normal;
}
.hours-day b {
  font-weight: 700;
}
.hours-day.on {
  background: var(--surface-2);
  color: var(--ink);
}
.hours-day.off b {
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- 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;
}
/* Pro 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: #E3C68C;
}
.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;
  border: 1.5px dashed 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: 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);
}
.bill {
  background: var(--surface);
}
.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));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-top: 1px solid var(--line);
  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;
}
.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: #D9B978;
}
.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;
}
.navlink .nav-badge {
  margin-left: auto;
  background: var(--brass);
  color: #241a07;
  font-size: 10px;
  font-weight: 900;
  border-radius: 99px;
  padding: 2px 7px;
}
.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 + pro) */
.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);
}
.dash-mobile-bar {
  display: none;
}
.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 {
  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;
}
.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;
}
.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), #8A3048);
  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 ---------- */
.week-row {
  display: grid;
  grid-template-columns: 88px repeat(4, 1fr) auto;
  gap: 7px;
  align-items: end;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.week-row:last-child {
  border-bottom: 0;
}
.week-row .wd {
  font-size: 12.5px;
  font-weight: 800;
  padding-bottom: 11px;
}
.week-row .wd small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.week-row.closed .wd {
  color: var(--muted);
}
.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);
  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;
}
.skeleton {
  height: 84px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
  margin-bottom: 9px;
}
.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 shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* ---------- 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(251, 247, 242, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .dash-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    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;
  }
  .navlink .nav-badge {
    position: absolute;
    margin: 0;
    transform: translate(16px, -8px);
    font-size: 9px;
  }
  .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;
  }
  .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;
  }
  .week-row {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 12px 0;
  }
  .week-row .wd {
    grid-column: span 2;
    padding: 0;
  }
  .week-row .btn {
    grid-column: span 2;
  }
}
@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;
  }
  .modal {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .hello h1 {
    font-size: 25px;
  }
}
@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%);
  bottom: calc(74px + 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);
  box-shadow: 0 16px 36px rgba(42, 32, 35, .18);
  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); }

.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;
}

/* subtle site-wide credit */
.site-credit {
  position: fixed;
  right: 8px;
  bottom: calc(4px + env(safe-area-inset-bottom));
  z-index: 1;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--muted, #6b7280);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* 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, #c69757, #8a6029); }
.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(176, 138, 79, 0.1), transparent 62%),
    radial-gradient(1000px 560px at 100% 0%, rgba(110, 31, 53, 0.09), transparent 58%),
    radial-gradient(900px 700px at 50% 112%, rgba(110, 31, 53, 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(176, 138, 79, 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(176, 138, 79, 0.09), transparent 65%),
    radial-gradient(640px 420px at 0% 0%, rgba(110, 31, 53, 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, #6E1F35 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(110, 31, 53, 0.85);
}
.btn:hover {
  background-image: linear-gradient(180deg, #7A2840 0%, var(--green-dark) 55%, #3B0F1D 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 26px -12px rgba(110, 31, 53, 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(42, 32, 35, 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(42, 32, 35, 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(42, 32, 35, 0.55);
}
.panel,
.table-wrap {
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 42px -30px rgba(42, 32, 35, 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(42, 32, 35, 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(110, 31, 53, 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, #6E1F35, var(--green-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px -10px rgba(110, 31, 53, 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(176, 138, 79, 0.24), transparent 62%),
    radial-gradient(420px 320px at 0% 100%, rgba(243, 225, 221, 0.14), transparent 65%),
    linear-gradient(180deg, #6E1F35 0%, #4A1324 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(176, 138, 79, 0.09), transparent 62%),
    radial-gradient(560px 380px at 0% 100%, rgba(110, 31, 53, 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, #8A3048 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(82, 21, 39, 0.8);
}

/* Avatars & tuiles : petit relief */
.avatar {
  background-image: linear-gradient(160deg, #8A3048, var(--green-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -10px rgba(110, 31, 53, 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(176, 138, 79, 0.12);
}
.day.on,
.slot.sel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px -12px rgba(110, 31, 53, 0.7);
}
.booking-time {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.seg {
  box-shadow: inset 0 2px 6px rgba(42, 32, 35, 0.05);
}
.seg button.on {
  background-image: linear-gradient(180deg, #6E1F35, 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(42, 32, 35, 0.03);
}
.inp,
.sel,
.ta {
  background-image: linear-gradient(180deg, #fffefb, var(--surface));
  box-shadow: inset 0 1px 2px rgba(42, 32, 35, 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(42, 32, 35, 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(110, 31, 53, 0.8);
}
.chart .col.today .bar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 18px -12px rgba(176, 138, 79, 0.85);
}

/* Navigations basses : bord lumineux */
.bottomnav,
.dock {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6), 0 -18px 40px -30px rgba(42, 32, 35, 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(110, 31, 53, 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, #6E1F35, 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(176, 138, 79, 0.08), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}
.skeleton {
  background-image: linear-gradient(90deg, #f7f4ec 25%, #fffdf8 37%, #f7f4ec 63%);
}

/* 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;
  }
}

/* ============================================================
   LALLA 7LA9TI — brand layer
   ============================================================ */
body {
  background:
    radial-gradient(900px 420px at 100% 0%, #F3E1DD 0%, transparent 62%),
    var(--bg);
}
h1,
h2,
h3,
.brand,
.auth-brand h1,
.hello h1,
.shop-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand span {
  font-family: var(--font);
  font-size: 0.52em;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brass);
}
.auth-brand {
  background: radial-gradient(1200px 600px at 10% 0%, #8A3048 0%, #6E1F35 46%, #521527 100%);
}
.auth-brand::after {
  content: "✧";
  font-family: var(--serif);
  color: #E3C68C;
  font-size: 300px;
  opacity: 0.12;
}
.auth-brand .brand span {
  color: #E3C68C;
}
.auth-brand h1 {
  font-weight: 500;
}
.auth-brand h1 em {
  color: #E3C68C;
  font-style: italic;
}
.hello h1 em {
  color: var(--green);
  font-style: italic;
}
.shop-hero h1 em {
  color: #E3C68C;
  font-style: italic;
}
.auth-foot a {
  color: #E3C68C;
  text-decoration: none;
}
.auth-foot a:hover {
  text-decoration: underline;
}

/* ============================================================
   Décor 2 — ruban de salon, rythme et étincelles
   Palette LALLA : bordeaux, rose poudré, or.
   ============================================================ */

/* Trame de salon 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(110, 31, 53, 0.026) 0 1px, transparent 1px 22px),
    radial-gradient(70% 55% at 50% 38%, transparent 42%, rgba(176, 138, 79, 0.045) 100%);
  opacity: 0.8;
}
.client-shell,
.dash,
.auth {
  position: relative;
  z-index: 1;
}
.client-shell {
  background-image:
    radial-gradient(420px 260px at 100% 0%, rgba(176, 138, 79, 0.08), transparent 70%),
    linear-gradient(180deg, #fdf9f5 0%, var(--bg) 40%, #f6ece7 100%);
}
.main {
  background-image:
    radial-gradient(560px 340px at 100% -4%, rgba(176, 138, 79, 0.1), transparent 65%),
    radial-gradient(640px 420px at 0% 0%, rgba(110, 31, 53, 0.06), transparent 62%),
    linear-gradient(180deg, #fdf9f5 0%, var(--bg) 46%, #f6ece7 100%);
}

/* Liseré « salon » 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(176, 138, 79, 0.14) 11px 22px,
    var(--green) 22px 33px,
    rgba(110, 31, 53, 0.12) 33px 44px
  );
  opacity: 0.4;
  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 : rose poudré, anneau doré, fleur 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(176, 138, 79, 0.18), transparent 70%),
    repeating-linear-gradient(135deg, rgba(110, 31, 53, 0.028) 0 1px, transparent 1px 15px),
    linear-gradient(145deg, #fffdfb 0%, #fbf7f2 58%, #f3e1dd 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 20px 42px -32px rgba(42, 32, 35, 0.6);
}
.hello::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  border: 18px solid rgba(176, 138, 79, 0.1);
  pointer-events: none;
}
.hello::after {
  content: "✿";
  position: absolute;
  right: 8px;
  bottom: -20px;
  font-family: var(--serif);
  font-size: 78px;
  line-height: 1;
  color: rgba(110, 31, 53, 0.065);
  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(176, 138, 79, 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(176, 138, 79, 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, #fdf9f5, #f3e9e3);
}
.seg button.on {
  background-image: linear-gradient(145deg, #8a3048, var(--green-dark));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 9px 18px -12px rgba(110, 31, 53, 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(110, 31, 53, 0.09),
    0 12px 24px -20px rgba(42, 32, 35, 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 ruban, 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(176, 138, 79, 0.1), transparent 70%),
    linear-gradient(145deg, #fffdfb 0%, var(--surface) 55%, #fbf7f2 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(176, 138, 79, 0.07);
  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(176, 138, 79, 0.14), transparent 70%),
    linear-gradient(135deg, #f3e1dd 0%, #fffdfb 55%, #f7edd8 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 26px -24px rgba(42, 32, 35, 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: lallaSheen 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(42, 32, 35, 0.55);
}
@keyframes lallaSheen {
  0%,
  54% {
    transform: translateX(-180%) rotate(22deg);
  }
  78%,
  100% {
    transform: translateX(480%) rotate(22deg);
  }
}

/* État vide : fleur 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(176, 138, 79, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 253, 251, 0.85), rgba(247, 237, 232, 0.45));
}
.empty::before {
  content: "✿";
  position: absolute;
  right: 6px;
  bottom: -20px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: rgba(110, 31, 53, 0.06);
  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(176, 138, 79, 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(110, 31, 53, 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(227, 198, 140, 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, #fdf3f4, #f3e1dd);
  box-shadow:
    inset 0 1px 0 #fff,
    0 9px 18px -16px rgba(110, 31, 53, 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(--brass) 34%, var(--line));
}
.day.on {
  background-image: linear-gradient(145deg, #8a3048, 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(176, 138, 79, 0.08), transparent 70%),
    linear-gradient(160deg, #fffdfb 0%, var(--surface) 55%, #fbf7f2 100%);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.booking-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 14px solid rgba(176, 138, 79, 0.07);
  pointer-events: none;
}
.booking-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brass) 24%, var(--line));
  box-shadow: 0 15px 30px -24px rgba(42, 32, 35, 0.5);
}
.booking-body {
  position: relative;
  z-index: 1;
}

/* Navigation basse : bord ruban 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(176, 138, 79, 0.14) 14px 28px,
    var(--green) 28px 42px,
    rgba(110, 31, 53, 0.12) 42px 56px
  );
  opacity: 0.35;
  pointer-events: none;
}
.bottomnav button.on,
.bottomnav a.on {
  background-image: linear-gradient(180deg, #fdf3f4, var(--green-soft));
}

/* Auth : bord de salon + fleur discrète */
.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(227, 198, 140, 0.42) 20px 30px,
    transparent 30px 40px
  );
  opacity: 0.28;
  pointer-events: none;
}
.auth-panel::before {
  content: "✿";
  position: absolute;
  right: 7%;
  top: 10%;
  font-family: var(--serif);
  font-size: 92px;
  line-height: 1;
  color: rgba(110, 31, 53, 0.045);
  transform: rotate(-18deg);
  pointer-events: none;
}
.auth-box,
.auth-get,
.auth-legal {
  position: relative;
  z-index: 1;
}

/* Ruban de salon 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(176, 138, 79, 0.52) 0 18px,
      #fbf7f2 18px 36px,
      rgba(110, 31, 53, 0.42) 36px 54px,
      #fbf7f2 54px 72px
    );
    box-shadow:
      0 0 0 1px rgba(176, 138, 79, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 18px 36px -24px rgba(42, 32, 35, 0.5);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
  }
}

/* Entrée douce des blocs principaux */
@keyframes lallaRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hello,
.seg,
.search,
.promo-card,
.shop-card,
.empty,
.booking-card,
.notice.warn {
  animation: lallaRise 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;
  }
}

/* ============================================================
   Polish — gouttières, entête sans débordement, pages habitées
   ============================================================ */

/* Aucun scroll horizontal accidentel */
html,
body {
  overflow-x: clip;
}

/* Le pied de page reste collé en bas : une page courte ne flotte plus */
.client-shell {
  display: flex;
  flex-direction: column;
}
.client-shell > .client-main {
  flex: 1 0 auto;
}

/* Entête : tout tient de 360 à 430 px, plus de bouton coupé */
.client-top {
  gap: 8px;
  padding: 14px 18px 6px;
  background: var(--bg);
}
.client-top .brand {
  min-width: 0;
  font-size: 18px;
  gap: 6px;
}
.client-top .brand span {
  font-size: 0.5em;
}
.client-top .brand-mark {
  width: 24px;
  height: 24px;
}
.client-top > .row {
  flex: 0 1 auto;
  min-width: 0;
  gap: 6px !important;
}
.client-top .lang-sel {
  max-width: 78px;
}
.client-top .icon-btn.sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.client-top .avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 12px;
}

/* Bandeaux & filtres alignés sur la même gouttière que le reste */
.client-main > .notice {
  margin: 12px 18px 0;
}
.client-main > .field {
  margin: 12px 18px 14px;
}
.client-main > .field > label {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.client-main > .field .sel {
  height: 44px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Héro d'accueil : moins haut, ornements repoussés derrière le texte */
.hello {
  padding: 18px 16px 16px;
}
.hello::before {
  top: -62px;
  right: -62px;
  border-color: rgba(176, 138, 79, 0.06);
}
.hello::after {
  right: 4px;
  bottom: -14px;
  font-size: 64px;
  opacity: 0.85;
}
.hello h1 {
  font-size: 25px;
  margin-top: 4px;
}
.hello p {
  font-size: 12.5px;
}

/* Navigation basse : libellés sur une ligne, hauteur stable */
.bottomnav button,
.bottomnav a {
  font-size: 9.5px;
  line-height: 1.15;
  letter-spacing: 0;
}
.bottomnav button span,
.bottomnav a span {
  font-size: 18px;
}

/* États vides : un peu d'air en plus */
.empty {
  padding: 30px 16px 26px;
}
.empty b {
  font-size: 15.5px;
}

@media (max-width: 560px) {
  .client-top [data-logout] {
    display: none; /* reste accessible depuis Profil */
  }
  .client-top {
    padding: 12px 16px 6px;
  }
  .client-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .client-main > .notice {
    margin: 10px 16px 0;
  }
  .client-main > .field {
    margin: 10px 16px 12px;
  }
  .hello {
    margin: 10px 16px 0;
    padding: 16px 14px 14px;
  }
  .seg,
  .search {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Dashboards : chiffres alignés, panneaux respirants */
.stat b {
  font-variant-numeric: tabular-nums;
}

/* Ligne d'info discrète : remplace un texte isolé dans une liste vide */
.quiet {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.quiet i {
  font-style: normal;
  font-size: 15px;
  opacity: 0.8;
}
/* ---------- 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: #140d10;
  --bg-2: #1a1114;
  --surface: #1e1418;
  --surface-2: #251a1e;
  --ink: #f6eef0;
  --ink-2: #eadfe3;
  --muted: #b3a0a6;
  --line: #35262c;
  --line-2: #2b1f24;
  --green: #6e1f35;
  --green-dark: #521527;
  --green-soft: #33202a;
  --brass: #d3aa6d;
  --brass-dark: #a9824a;
  --brass-soft: #2c2318;
  --red: #e0726a;
  --red-soft: #34201e;
  --blue: #b09ab4;
  --blue-soft: #251d28;
  --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(211, 170, 109, 0.07), transparent 62%),
    radial-gradient(1000px 560px at 100% 0%, rgba(190, 80, 112, 0.16), transparent 58%),
    radial-gradient(900px 700px at 50% 112%, rgba(190, 80, 112, 0.1), transparent 62%),
    linear-gradient(180deg, #1a1013 0%, var(--bg) 44%, #0d0809 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(211, 170, 109, 0.04) 100%);
  opacity: 1;
}
html[data-theme="dark"] a {
  color: #e2a3b6;
}
html[data-theme="dark"] .article a,
html[data-theme="dark"] .leaflet-popup-content a {
  color: #e2a3b6;
}

/* App canvases */
html[data-theme="dark"] .client-shell {
  background-color: var(--bg);
  background-image:
    radial-gradient(420px 260px at 100% 0%, rgba(211, 170, 109, 0.05), transparent 70%),
    linear-gradient(180deg, #1a1013 0%, var(--bg) 42%, #0d0809 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(211, 170, 109, 0.06), transparent 65%),
    radial-gradient(640px 420px at 0% 0%, rgba(190, 80, 112, 0.1), transparent 62%),
    linear-gradient(180deg, #1a1013 0%, var(--bg) 48%, #0d0809 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, #291b20 0%, var(--surface) 55%, #190f12 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, #2c2318 0%, #231a11 60%, #1d150e 100%);
}
html[data-theme="dark"] .shop-card {
  background-image:
    radial-gradient(130px 90px at 100% 0%, rgba(211, 170, 109, 0.07), transparent 70%),
    linear-gradient(145deg, #251a1e 0%, var(--surface) 55%, #190f12 100%);
}
html[data-theme="dark"] .booking-card {
  background-image:
    radial-gradient(120px 90px at 100% 0%, rgba(211, 170, 109, 0.05), transparent 70%),
    linear-gradient(160deg, #251a1e 0%, var(--surface) 55%, #190f12 100%);
}
html[data-theme="dark"] .booking-card::after,
html[data-theme="dark"] .shop-card::after {
  border-color: rgba(211, 170, 109, 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(211, 170, 109, 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(211, 170, 109, 0.1);
}
html[data-theme="dark"] .hello {
  background-image:
    radial-gradient(220px 160px at 100% 0%, rgba(211, 170, 109, 0.1), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 15px),
    linear-gradient(145deg, #251a1e 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(211, 170, 109, 0.07);
}
html[data-theme="dark"] .hello::after {
  color: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .hello h1 em {
  color: #f0c4d0;
  background-image: linear-gradient(transparent 66%, rgba(211, 170, 109, 0.2) 66% 92%, transparent 92%);
}
html[data-theme="dark"] .promo-card {
  background-image:
    radial-gradient(180px 130px at 100% 0%, rgba(211, 170, 109, 0.09), transparent 70%),
    linear-gradient(135deg, #13291f 0%, #201318 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(211, 170, 109, 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, #2b1c23 0%, var(--surface) 60%, #201318 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, #33212b 0%, var(--surface-2) 60%, #291b20 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, #291b20, 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: #a48f96;
}
html[data-theme="dark"] .seg {
  background-image: linear-gradient(180deg, #251a1e, #13201a);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .chip {
  background: #241820;
  border-color: var(--line);
  color: var(--ink-2);
}
html[data-theme="dark"] .chip.on {
  color: #fff5f8;
}
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, #3a222c, #2c1a22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .service-tile .s-ico {
  background: #2b1d24;
}
html[data-theme="dark"] .stars,
html[data-theme="dark"] .stars button {
  color: #46333b;
}
html[data-theme="dark"] .stars button.on {
  color: var(--brass);
}
html[data-theme="dark"] .toast {
  background: #31202a;
  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"] .skeleton {
  background-image: linear-gradient(90deg, #241820 25%, #2f2028 37%, #241820 63%);
}
html[data-theme="dark"] .lang-sel {
  background-color: #241820;
  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: #241820;
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .auth-tabs {
  background: #1a1013;
}
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(211, 170, 109, 0.06), transparent 62%),
    radial-gradient(560px 380px at 0% 100%, rgba(190, 80, 112, 0.12), transparent 60%),
    linear-gradient(180deg, #190f12 0%, var(--surface) 55%, #0d0809 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, #231a11);
  color: #e2bd78;
}
html[data-theme="dark"] .shop-hero {
  background-image:
    radial-gradient(420px 220px at 88% -20%, rgba(211, 170, 109, 0.22), transparent 62%),
    linear-gradient(150deg, #5c1a2d 0%, #471222 48%, #2d0a15 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(211, 170, 109, 0.16), transparent 62%),
    radial-gradient(420px 320px at 0% 100%, rgba(190, 80, 112, 0.26), transparent 65%),
    linear-gradient(180deg, #3d1020 0%, #270a14 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: #e9b7c6;
}
html[data-theme="dark"] .client-top {
  background: linear-gradient(var(--bg) 70%, transparent);
}
html[data-theme="dark"] .bottomnav,
html[data-theme="dark"] .dock {
  background: color-mix(in srgb, #180e12 94%, transparent);
  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, #3a2030, #2a1622);
  color: #e2a3b6;
}
html[data-theme="dark"] .modal {
  background-image: linear-gradient(180deg, #291b20 0%, var(--surface) 40%, #190f12 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, #291b20 0%, #241820 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);
}
html[data-theme="dark"] .site-credit {
  color: #a8929a;
}

/* 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: #140e10;
}
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: #241820;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .leaflet-popup-tip {
  background: #241820;
}
html[data-theme="dark"] .leaflet-popup-content a {
  color: #e2a3b6;
}
html[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button {
  color: #b3a0a6;
}
html[data-theme="dark"] .l7map-dim .leaflet-bar a {
  background: #291b20;
  color: #f0e4e8;
  border-bottom-color: #3a2a31;
}
html[data-theme="dark"] .l7map-dim .leaflet-bar a:hover {
  background: #31202a;
}

/* ---------- 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(82, 21, 39, 0.5);
  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(82, 21, 39, 0.28);
  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, #f6e3bd, #d3aa6d);
}
/* 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(82, 21, 39, 0.55);
}
html[data-theme="dark"] .notice {
  color: #f0c4d0;
}
html[data-theme="dark"] .role-pick button.on {
  color: #f0c4d0;
}
html[data-theme="dark"] .switch.on {
  color: #f0c4d0;
}

/* 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: #f0c4d0;
}

/* ============================================================
   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(176, 138, 79, 0.11), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(110, 31, 53, 0.06), transparent 70%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 42%, #f3e7e1 100%);
}
.main {
  background-image:
    radial-gradient(560px 340px at 100% -6%, rgba(176, 138, 79, 0.12), transparent 65%),
    radial-gradient(640px 420px at 0% 0%, rgba(110, 31, 53, 0.06), transparent 62%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 48%, #f3e7e1 100%);
}

/* En-tête des dashboards : une vraie carte, filet or, fleur en filigrane. */
.dash-top {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1.5px solid color-mix(in srgb, var(--brass) 24%, var(--line));
  border-radius: 22px;
  background-image:
    radial-gradient(240px 160px at 100% 0%, rgba(176, 138, 79, 0.18), transparent 72%),
    repeating-linear-gradient(135deg, rgba(110, 31, 53, 0.028) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, #fffdfb 0%, #fbf7f2 60%, #f4e7e3 100%);
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px -34px rgba(42, 32, 35, 0.6);
}
.dash-top::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(176, 138, 79, 0.7), transparent);
  pointer-events: none;
}
.dash-top::after {
  content: "✿";
  position: absolute;
  right: 14px;
  bottom: -34px;
  font-family: var(--serif);
  font-size: 116px;
  line-height: 1;
  color: rgba(110, 31, 53, 0.06);
  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 doré et petite montée au survol. */
.stat {
  background-image:
    radial-gradient(160px 110px at 100% 0%, rgba(176, 138, 79, 0.12), transparent 72%),
    linear-gradient(160deg, #fffdfb 0%, var(--surface) 62%, #fbf7f2 100%);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -28px rgba(42, 32, 35, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: lallaRise 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) 38%, var(--line));
  box-shadow: inset 0 1px 0 #fff, 0 20px 34px -26px rgba(42, 32, 35, 0.45);
}

/* Panneaux : papier chaud, filet or devant chaque titre. */
.panel {
  border-color: color-mix(in srgb, var(--brass) 15%, var(--line));
  background-image:
    radial-gradient(240px 150px at 100% 0%, rgba(176, 138, 79, 0.07), transparent 72%),
    linear-gradient(170deg, #fffdfb 0%, var(--surface) 55%, #fdf9f5 100%);
  box-shadow: inset 0 1px 0 #fff, 0 16px 36px -34px rgba(42, 32, 35, 0.45);
}
.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) 16%, var(--line));
  background-image: linear-gradient(150deg, #fffdfb 0%, var(--surface) 60%, #fbf7f2 100%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 26px -26px rgba(42, 32, 35, 0.45);
  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) 30%, var(--line));
  box-shadow: inset 0 1px 0 #fff, 0 18px 30px -26px rgba(42, 32, 35, 0.5);
}

/* 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, #fffdfb, var(--surface-2));
  box-shadow: 0 10px 22px -20px rgba(42, 32, 35, 0.5);
  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) 50%, 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-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--brass);
  opacity: 0.6;
  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) 24%, var(--line));
  background-image:
    radial-gradient(240px 160px at 100% 0%, rgba(211, 170, 109, 0.14), transparent 72%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, #251a20 0%, #1e1418 60%, #170e11 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(211, 170, 109, 0.1), transparent 72%),
    linear-gradient(160deg, #241a1e 0%, var(--surface) 62%, #170e11 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, #7c2740, #43111f);
  border-color: transparent;
}
html[data-theme="dark"] .stat.gold {
  background-image: linear-gradient(180deg, #2c2318 0%, #231a11 60%, #1d150e 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(211, 170, 109, 0.055), transparent 72%),
    linear-gradient(170deg, #241a1e 0%, var(--surface) 55%, #170e11 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, #241a1e 0%, var(--surface) 60%, #170e11 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, #241a1e, 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 gold + house, salons stay burgundy */
.shop-card.kind-home .shop-ava {
  background: linear-gradient(145deg, var(--brass-soft), #f0dfc6);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(176, 138, 79, 0.2);
}
.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 {
  background: color-mix(in srgb, #e0bd83 66%, transparent);
  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(224, 189, 131, 0.62));
}

/* Map pins: home-visit pros use the gold house pin */
.l7pin.homeonly i {
  background: linear-gradient(150deg, #c69757, #8a6029);
}

/* Map legend: 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, #c69757, #8a6029);
}

@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: #f0c4d0;
}
html[data-theme="dark"] .shop-kind.k-home {
  color: #eccb95;
}
html[data-theme="dark"] .shop-kind.k-both {
  color: #f1dfe4;
}
html[data-theme="dark"] .shop-card.kind-home .shop-ava {
  background: linear-gradient(145deg, #2c2418, #211a11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(211, 170, 109, 0.16);
}
html[data-theme="dark"] .l7pin.homeonly i {
  background: linear-gradient(150deg, #b28a52, #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%, #2a0c16 100%);
  box-shadow: 0 16px 34px rgba(110, 31, 53, 0.28);
}
.next-card.home {
  background: linear-gradient(135deg, #5f4620 0%, #a2793a 58%, #c69b52 100%);
  box-shadow: 0 16px 34px rgba(176, 138, 79, 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.08);
  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.5);
}
html[data-theme="dark"] .res-stat,
html[data-theme="dark"] .res-again-card {
  background: var(--surface-2);
}
html[data-theme="dark"] .ra-ava {
  background: #33202a;
}
html[data-theme="dark"] .next-actions .btn {
  background: #f6eef0;
  color: #521527;
}

/* ============================================================
   Décor 4 — le fond des apps (et non plus seulement les cartes)
   Treillis de zellige, halos rosés et étoile 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='%23b08a4f' stroke-opacity='0.16' stroke-width='4'><path d='M100 10 L118 72 L180 58 L136 104 L180 150 L118 136 L100 198 L82 136 L20 150 L64 104 L20 58 L82 72 Z'/><circle cx='100' cy='104' r='24'/></svg>"),
    repeating-linear-gradient(45deg, rgba(110, 31, 53, 0.035) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-45deg, rgba(176, 138, 79, 0.045) 0 1px, transparent 1px 30px),
    radial-gradient(820px 460px at 100% -8%, rgba(176, 138, 79, 0.12), transparent 66%),
    radial-gradient(700px 480px at 0% 4%, rgba(110, 31, 53, 0.08), transparent 62%),
    linear-gradient(180deg, #fdf9f5 0%, var(--bg) 46%, #f5e9e4 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='%23d3aa6d' stroke-opacity='0.12' stroke-width='4'><path d='M100 10 L118 72 L180 58 L136 104 L180 150 L118 136 L100 198 L82 136 L20 150 L64 104 L20 58 L82 72 Z'/><circle cx='100' cy='104' r='24'/></svg>"),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-45deg, rgba(211, 170, 109, 0.030) 0 1px, transparent 1px 30px),
    radial-gradient(820px 460px at 100% -8%, rgba(211, 170, 109, 0.09), transparent 66%),
    radial-gradient(700px 480px at 0% 4%, rgba(110, 31, 53, 0.30), transparent 62%),
    linear-gradient(180deg, #1a1114 0%, var(--bg) 46%, #0d080a 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 salon. */
.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);
}
