:root {
  --bg: #f7f3ef;
  --card: #ffffff;
  --ink: #2c2430;
  --muted: #7a6f78;
  --line: #e7dfd8;
  --accent: #5e3d63;
  --accent-soft: #efe6f0;
  --free: #e9f1ea;
  --free-ink: #3d6b45;
  --warn: #b5562f;
  --warn-soft: #fbeee6;
  --radius: 14px;
  --tap: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
a { color: inherit; }
h1 { font-size: 1.25rem; margin: 0; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--accent); color: #fff;
}
.brand { font-weight: 700; letter-spacing: .04em; text-decoration: none; font-size: 1.1rem; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; opacity: .85; }
.topbar nav a.on { background: rgba(255,255,255,.18); opacity: 1; }

.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.flash { background: var(--accent-soft); color: var(--accent); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 14px; font-weight: 500; }
.flash.warn { background: var(--warn-soft); color: var(--warn); }

/* En-tête du jour */
.dayhead, .formhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.daytitle { flex: 1; text-align: center; }
.today { font-size: .85rem; color: var(--accent); }
.navbtn {
  width: var(--tap); height: var(--tap); flex: none;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  text-decoration: none; font-size: 1.6rem; line-height: 1; color: var(--accent);
}

/* Bandeau semaine */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.wday {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0; border-radius: 12px; text-decoration: none; background: var(--card); border: 1px solid var(--line);
}
.wday .wd { font-size: .7rem; text-transform: uppercase; color: var(--muted); }
.wday .dn { font-weight: 600; }
.wday .cnt { font-size: .7rem; color: var(--accent); min-height: 1em; }
.wday.weekend { opacity: .6; }
.wday.is-today .dn { color: var(--accent); }
.wday.on { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.wday.on .wd, .wday.on .cnt { color: rgba(255,255,255,.85); }
.wday.on .dn, .wday.on.is-today .dn { color: #fff; }
.pick { position: relative; display: grid; place-items: center; width: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 8px; }
.slot {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); min-height: var(--tap);
}
.slot .time { display: flex; flex-direction: column; width: 48px; flex: none; font-variant-numeric: tabular-nums; }
.slot .time span { color: var(--muted); font-size: .85rem; }
.slot .body { flex: 1; min-width: 0; }
.slot .who { font-weight: 600; }
.slot .what { color: var(--muted); font-size: .95rem; }
.slot .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.tag.online { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.appt { border-left: 4px solid var(--accent); }
.appt.noshow { opacity: .6; }
.free { background: var(--free); border-style: dashed; border-color: #c9dccb; color: var(--free-ink); align-items: center; }
.free .what { color: var(--free-ink); font-weight: 500; }
.free .time span { color: var(--free-ink); opacity: .7; }
.free .add { font-size: 1.5rem; font-weight: 300; }
.off { background: repeating-linear-gradient(-45deg, #f1ece7, #f1ece7 8px, #ebe4dd 8px, #ebe4dd 16px); color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; }
.cancelled { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.cancelled a { display: block; padding: 8px 0; text-decoration: line-through; }

.fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: var(--accent); color: #fff; font-size: 2rem; line-height: 1;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  z-index: 20; /* au-dessus des rendez-vous de la semaine (Sophie, 27/11/2026 : bouton + coupé) */
}

/* Formulaires */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  min-height: var(--tap); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 16px; /* évite le zoom auto sur iPhone */
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: .9rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
.row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.row3 { display: grid; grid-template-columns: minmax(0,1fr) 72px 72px; gap: 8px; }
.row2 > *, .row3 > * { min-width: 0; }
input[type=date], input[type=time] { min-width: 0; -webkit-appearance: none; appearance: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--warn); border-color: #efc9b6; }
.link { background: none; border: 0; padding: 6px 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.link.danger { color: var(--warn); }

.chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: var(--accent-soft); border-radius: 10px; }
.chosen .sub, .item .sub { display: block; color: var(--muted); font-size: .85rem; }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.results button { width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
.results button span { display: block; color: var(--muted); font-size: .85rem; }
.results .none { color: var(--muted); font-size: .9rem; padding: 4px 2px; }
.newclient { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

.end-time { margin: -4px 0 10px; font-size: .9rem; color: var(--ink); }
.suggest .lbl { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #c9dccb; background: var(--free); color: var(--free-ink); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.chip.on { background: var(--free-ink); border-color: var(--free-ink); color: #fff; }
.suggest .none { color: var(--muted); font-size: .9rem; }

.conflict { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 14px; }
.conflict ul { margin: 6px 0 10px; padding-left: 18px; }
.conflict .btn { border-color: var(--warn); color: var(--warn); background: #fff; }
.error { color: var(--warn); margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions form { margin: 0; }

.pagetitle { margin-bottom: 6px; }
.hint { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.item form { margin: 0; }

.login { max-width: 380px; margin: 10vh auto 0; text-align: center; }
.login h1 { margin: 10px 0 18px; }
.login .form { text-align: left; }

[hidden] { display: none !important; }
.form label.inline { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); }
.form label.inline input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.otp { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

/* Accueil (tableau de bord) */
.dash-hello { margin: 4px 0 14px; }
.dash-date { margin: 0; color: var(--muted); font-size: .9rem; }
.dash-hello h1 { font-size: 1.6rem; margin: 2px 0 4px; letter-spacing: -.01em; }
.dash-sum { margin: 0; color: var(--ink); }

.dash-next {
  display: grid; gap: 2px; padding: 18px 18px 16px; border-radius: 18px; text-decoration: none;
  color: #fff; background: radial-gradient(120% 140% at 100% 0%, #8a5f8f 0%, var(--accent) 55%, var(--accent-dark) 100%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 28%, transparent);
}
.dash-next-when { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.dash-next-time { font-size: 2.4rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-next-who { font-size: 1.15rem; font-weight: 600; }
.dash-next-what { opacity: .85; }
.dash-next-note { margin-top: 6px; font-size: .9rem; opacity: .85; font-style: italic; }
.dash-next-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.dash-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.dash-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-size: .85rem; font-weight: 600; text-align: center;
}
.dash-quick span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; }

.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.dash-card h2 { font-size: 1rem; margin: 0 0 12px; }
.dash-sub { margin: -6px 0 10px; color: var(--muted); font-size: .88rem; }

.dash-today { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dash-today li a { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; border-top: 1px solid var(--line); }
.dash-today li:first-child a { border-top: 0; }
/* L'heure ne déborde jamais (11h10, 10h00 ; 23/11/2026) : largeur minimale et marge intérieure identiques, pastille « en cours » comprise. */
.dash-today time { box-sizing: border-box; min-width: 4.4em; padding: 2px 6px; margin-left: -6px; flex: none; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.dash-today span { flex: 1; min-width: 0; color: var(--muted); font-size: .9rem; }
.dash-today strong { display: block; color: var(--ink); font-size: 1rem; }
.dash-today .past { opacity: .45; }
.dash-today .now time { color: #fff; background: var(--accent); border-radius: 8px; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--bg); }
.dash-kpis b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-kpis span { font-size: .8rem; color: var(--muted); }
.dash-kpis small { font-size: .72rem; color: var(--muted); }
.dash-kpis small.up { color: var(--free-ink); }
.dash-kpis small.down { color: var(--warn); }
.dash-gauge { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-top: 4px; overflow: hidden; }
.dash-gauge i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.dash-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.dash-bars a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; }
.dash-bars .bar { display: flex; align-items: flex-end; width: 100%; max-width: 34px; height: 64px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.dash-bars .bar i { display: block; width: 100%; background: #c6aecb; border-radius: 8px 8px 0 0; }
.dash-bars .today .bar i { background: var(--accent); }
.dash-bars .past { opacity: .55; }
.dash-bars b { font-size: .8rem; min-height: 1em; }
.dash-bars small { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.dash-bars .today small { color: var(--accent); font-weight: 700; }

.dash-card .chips .chip { display: inline-flex; align-items: center; text-decoration: none; }

.dash-news, .dash-bday ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-news li { display: flex; gap: 10px; align-items: baseline; font-size: .92rem; }
.dash-news a { text-decoration: none; color: var(--muted); }
.dash-news strong { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.dot.ok { background: var(--free-ink); }
.dot.ko { background: var(--warn); }
.dash-bday li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.dash-bday li > span:nth-child(2) { flex: 1; }
.dash-bday strong { color: var(--ink); margin-right: 4px; }
.cake { font-size: 1.3rem; }

/* Clients */
.cl-search input { border-radius: 999px; padding-left: 16px; }
.cl-search { margin: 4px 0 8px; }
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-main span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-last { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.cl-last.soon { color: var(--accent); font-weight: 600; }
.cl-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; }
.cl-avatar.big { width: 56px; height: 56px; font-size: 1.15rem; }
.cl-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 12px; }
.cl-head h1 { font-size: 1.4rem; }
.cl-head .hint { margin: 2px 0 0; font-size: .85rem; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cl-actions .btn { flex: 1 1 auto; padding: 0 14px; white-space: nowrap; }
.cl-kpis { margin-bottom: 12px; }
.cl-kpis b { font-size: 1.15rem; }
.cl-cardhead { display: flex; justify-content: space-between; align-items: baseline; }
.cl-info { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0; font-size: .95rem; }
.cl-info dt { color: var(--muted); }
.cl-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cl-notes { margin-top: 12px; padding: 10px 12px; background: #fbf7e9; border-radius: 10px; font-size: .95rem; }
.topbar nav a { padding: 8px 10px; }
.dash-today.wide time { min-width: 6em; }
@media (max-width: 440px) {
  .topbar .brand { display: none; }
  .topbar nav { width: 100%; justify-content: space-between; }
  .topbar nav a { padding: 8px 9px; font-size: .92rem; }
}

/* Bouton de retour (bugs, idées) */
.fb-btn {
  position: fixed; left: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--accent);
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(44,36,48,.12);
}
@media (max-width: 440px) { .fb-btn span { display: none; } .fb-btn { width: 44px; height: 44px; padding: 0; justify-content: center; } }
.fb-dialog { width: min(520px, calc(100% - 24px)); border: 0; border-radius: 18px; padding: 18px; background: var(--card); color: var(--ink); }
.fb-dialog::backdrop { background: rgba(44,36,48,.45); }
.fb-head { display: flex; justify-content: space-between; align-items: center; }
.fb-head h2 { margin: 0; font-size: 1.1rem; }
.fb-types { display: flex; flex-wrap: wrap; gap: 6px; flex-direction: row; }
.fb-types label { flex-direction: row !important; }
.fb-types input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.fb-types span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .88rem; }
.fb-types input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.fb-types input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash-quick a { font-size: .8rem; }

/* Cloche des nouveautés */
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; flex: none; }
.bell:hover { background: rgba(255,255,255,.22); }
.bell-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #e8a33d; color: #fff; font-size: .7rem; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--accent); }
.bell.ring svg { animation: ring 1s ease 2; transform-origin: 50% 10%; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.bell-panel { width: min(460px, calc(100% - 24px)); max-height: 80vh; border: 0; border-radius: 18px; padding: 18px 18px 8px; background: var(--card); color: var(--ink); }
.bell-panel::backdrop { background: rgba(44,36,48,.45); }
.bell-list { list-style: none; margin: 12px 0 0; padding: 0; }
.bell-list li a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 8px; border-radius: 12px; text-decoration: none; }
.bell-list li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.bell-list li.unread a { background: var(--accent-soft); border-radius: 12px; }
.bell-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; font-weight: 700; font-size: 1rem; }
.bell-ico.ok { background: var(--free); color: var(--free-ink); }
.bell-ico.move { background: #f3ead8; color: #8a6420; }
.bell-ico.ko { background: var(--warn-soft); color: var(--warn); }
.bell-txt { flex: 1; min-width: 0; font-size: .92rem; color: var(--muted); }
.bell-txt strong { color: var(--ink); }
.bell-when { display: block; color: var(--ink); font-size: .85rem; margin-top: 2px; }
.bell-when s { color: var(--muted); }
.bell-ago { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.bell-list .empty { padding: 18px 4px; text-align: left; }
@media (max-width: 440px) { .bell { width: 36px; height: 36px; } }

/* Avis (admin) */
.rv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 4px; }
.rv-tabs a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.rv-tabs a b { margin-left: 4px; font-size: .78rem; color: var(--muted); }
.rv-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rv-tabs a.on b { color: rgba(255,255,255,.8); }
.rv-admin { display: flex; flex-direction: column; gap: 8px; }
.rv-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-stars { color: #c8a24a; letter-spacing: 2px; }
.rv-stars span { color: #e3dbd3; }
.rv-admin-text { margin: 0; font-size: 1rem; }
.bell-ico.rev { background: #f6edd6; color: #b0882f; }
.dash-reviews { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dash-reviews > span:nth-child(2) { flex: 1; color: var(--muted); font-size: .92rem; }
.dash-reviews strong { color: var(--ink); }
.dash-pill { padding: 4px 10px; border-radius: 999px; background: #e8a33d; color: #fff; font-size: .78rem; white-space: nowrap; }

/* Barre du haut : marque à gauche, menu et cloche centrés, page en ligne à droite */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.topbar nav { justify-self: center; align-items: center; }
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
/* Même bouton que « Retour à mon espace admin » sur la page publique */
.topbar-public { color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.18); }
.topbar-public:hover { background: rgba(255,255,255,.28); }
.topbar-settings { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; opacity: .85; }
.topbar-settings:hover, .topbar-settings.on { background: rgba(255,255,255,.18); opacity: 1; }
@media (max-width: 760px) { .topbar-right, .topbar .nav-wide { display: none; } }
@media (max-width: 440px) { .topbar { display: flex; } }

/* Réglages */
/* Réglages */
.set-hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; padding: 20px; border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, #f3e9f4 0%, #f9f4f0 55%, #fff 100%); border: 1px solid var(--line); }
.set-hero h1 { margin: 0 0 4px; font-size: 1.5rem; letter-spacing: -.01em; }
.set-hero p { margin: 0; color: var(--muted); text-wrap: pretty; }
.set-hero-icon { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.set-hero-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: set-spin 14s linear infinite; }
@keyframes set-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .set-hero-icon svg { animation: none; } }

.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.set-card { --tone: var(--accent); --tone-soft: var(--accent-soft);
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.set-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); opacity: .85; }
.set-card:hover, .set-card:focus-visible { transform: translateY(-2px); border-color: var(--tone); box-shadow: 0 12px 26px -18px rgba(44, 36, 48, .55); }
.set-card.tone-plum { --tone: #7b4a82; --tone-soft: #f2e8f3; }
.set-card.tone-sage { --tone: #4f8a5b; --tone-soft: #e8f2ea; }
.set-card.tone-gold { --tone: #b8892b; --tone-soft: #f8f0dc; }
.set-card.tone-sky  { --tone: #3f7895; --tone-soft: #e5f0f5; }
.set-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); }
.set-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.set-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.set-body strong { font-size: 1.08rem; }
.set-desc { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.set-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.set-meta em { font-style: normal; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tone-soft); color: var(--tone); }
.set-meta em.hot { background: var(--warn); color: #fff; }
.set-go { align-self: center; font-size: 1.6rem; line-height: 1; color: var(--tone); opacity: .5; transition: transform .15s ease, opacity .15s ease; }
.set-card:hover .set-go { opacity: 1; transform: translateX(3px); }
@media (max-width: 440px) { .set-hero { padding: 16px; } .set-hero-icon { width: 48px; height: 48px; } .set-hero h1 { font-size: 1.3rem; } }
.sv-cat { margin: 18px 0; }
.sv-cat-name { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.sv-cat-name input { flex: 1; font-weight: 700; font-size: 1.05rem; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; background: transparent; padding: 4px 0; min-height: 0; }
.sv-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sv-list li { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 6px 6px 8px; }
.sv-list li.off { opacity: .55; }
.sv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sv-main img, .sv-noimg { width: 56px; height: 42px; flex: none; object-fit: cover; border-radius: 8px; }
.sv-noimg { display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.sv-txt { min-width: 0; display: flex; flex-direction: column; }
.sv-txt strong { font-size: .95rem; }
.sv-txt span { color: var(--muted); font-size: .82rem; }
.sv-move { display: flex; flex-direction: column; gap: 2px; }
.sv-move button { width: 30px; height: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--accent); cursor: pointer; line-height: 1; }
.sv-move button:disabled { opacity: .3; cursor: default; }
.sv-photo { display: flex; gap: 12px; align-items: flex-start; }
.sv-photo img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; }
.sv-photo > div { flex: 1; min-width: 0; }
.sv-delete { margin: 14px 0 0; text-align: center; }
.link.danger { color: var(--warn); }
.hr-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.hr-day:first-of-type { border-top: 0; }
.hr-open { width: 120px; }
.hr-ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hr-ranges span { display: inline-flex; align-items: center; gap: 6px; }
.hr-ranges input[type=time] { width: 124px; min-height: 40px; }

.bell-note { display: block; margin-top: 2px; font-size: .8rem; font-style: italic; color: var(--ink); }

/* Bascule Jour / Semaine */
.view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.view-bar .view-switch { margin: 0; }
.go-date { display: flex; align-items: stretch; gap: 6px; margin-left: auto; }
.go-date input[type=text] { width: 9.5em; min-height: 38px; padding: 6px 10px; font-size: 16px; }
.go-date .btn { min-height: 38px; padding: 6px 12px; }
.go-date .pick { width: 38px; }
@media (max-width: 420px) { .go-date { margin-left: 0; flex: 1 1 100%; } .go-date input[type=text] { flex: 1; width: auto; min-width: 0; } }
.view-switch { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 12px; background: var(--accent-soft); border-radius: 999px; }
.view-switch a { padding: 6px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.view-switch a[aria-current] { background: var(--accent); color: #fff; }

/* Vue semaine */
.wk { --hours: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.wk-head, .wk-body { display: grid; grid-template-columns: var(--hours) repeat(var(--cols), minmax(110px, 1fr)); min-width: calc(var(--hours) + var(--cols) * 110px); }
.wk-head { position: sticky; top: 0; z-index: 2; background: var(--card); border-bottom: 1px solid var(--line); }
.wk-day { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line); }
.wk-day span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.wk-day strong { font-size: 1.15rem; line-height: 1.2; }
.wk-day em { font-style: normal; font-size: .72rem; color: var(--accent); min-height: 1em; }
.wk-day:hover { background: var(--accent-soft); }
.wk-day.is-today strong { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; }
.wk-body { position: relative; }
.wk-hours { position: relative; }
.wk-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-hours span:first-child { transform: none; }
.wk-col { position: relative; border-left: 1px solid var(--line); }
.wk-col.is-today { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 3.5%, transparent), color-mix(in srgb, var(--accent) 3.5%, transparent)); }
.wk-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.wk-appt, .wk-free, .wk-off, .wk-buffer { position: absolute; left: 3px; right: 3px; border-radius: 7px; overflow: hidden; }
.wk-appt { z-index: 1; display: flex; flex-direction: column; padding: 3px 6px; background: var(--accent); color: #fff; text-decoration: none; font-size: .74rem; line-height: 1.25; box-shadow: 0 1px 2px rgba(44,36,48,.15); }
.wk-appt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-appt span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-appt.online { background: var(--tone-light); }
.wk-appt.noshow { background: var(--warn); }
.wk-appt:hover { filter: brightness(1.12); z-index: 3; }
.wk-buffer { background: repeating-linear-gradient(135deg, var(--accent-soft) 0 4px, transparent 4px 8px); border-radius: 0 0 7px 7px; }
.wk-free { background: var(--free); color: var(--free-ink); text-decoration: none; font-size: .72rem; font-weight: 600; opacity: .75; }
.wk-free span { display: block; padding: 3px 6px; opacity: 0; transition: opacity .12s ease; }
.wk-free:hover { opacity: 1; outline: 1.5px solid var(--free-ink); }
.wk-free:hover span { opacity: 1; }
.wk-off { background: repeating-linear-gradient(135deg, #eee8e3 0 6px, #f6f2ee 6px 12px); color: var(--muted); font-size: .72rem; padding: 3px 6px; }
.wk-now { position: absolute; left: 0; right: 0; z-index: 4; border-top: 2px solid var(--warn); }
.wk-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.wk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8rem; color: var(--muted); margin: 10px 2px 0; }
.wk-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; vertical-align: -1px; }
.lg.appt { background: var(--accent); } .lg.online { background: var(--tone-light); } .lg.free { background: var(--free); border: 1px solid var(--free-ink); }
.lg.buffer { background: repeating-linear-gradient(135deg, var(--accent-soft) 0 3px, #fff 3px 6px); border: 1px solid var(--line); }
@media (min-width: 900px) { .wrap:has(.wk) { max-width: 1180px; } }

/* Mes chiffres */
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ex-year select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; font-weight: 600; }
.ex-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ex-kpis div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ex-kpis span { display: block; font-size: .75rem; color: var(--muted); }
.ex-kpis strong { font-size: 1.15rem; }
.ex-months { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ex-month { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "m bar dl" ". v v"; align-items: center; gap: 2px 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.ex-month:last-child { border-bottom: 0; }
.ex-month.empty { opacity: .45; }
.ex-m { grid-area: m; font-size: .85rem; font-weight: 600; }
.ex-bar { grid-area: bar; display: flex; height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.ex-bar i { display: block; height: 100%; background: var(--accent); }
.ex-bar i.planned { background: repeating-linear-gradient(135deg, var(--accent-soft) 0 4px, #d9c6dc 4px 8px); }
.ex-v { grid-area: v; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ex-v strong { color: var(--ink); }
.ex-v em { font-style: normal; }
.ex-v em.warn { color: var(--warn); }
.ex-dl { grid-area: dl; font-size: .72rem; font-weight: 700; color: var(--accent); text-decoration: none; padding: 3px 8px; border: 1px solid var(--accent-soft); border-radius: 99px; }
.ex-all { width: 100%; justify-content: center; }
.ex-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ex-table th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.ex-table td { padding: 7px 0; border-top: 1px solid var(--line); }
.ex-table tr.sum td { font-weight: 700; }
.ex-table tr.muted td { color: var(--muted); }
.ex-sales-months { margin: 10px 0 4px; }
.ex-sales-months summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.ex-table th:not(:first-child), .ex-table td:not(:first-child) { text-align: right; padding-left: 10px; white-space: nowrap; }
@media (max-width: 440px) { .ex-kpis strong { font-size: 1rem; } }

.dash-h2row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dash-h2row h2 { margin: 0; }
.dash-more { font-size: .85rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }

.set-card.tone-rose { --tone: #b0566f; --tone-soft: #f8e7ec; }
.set-sync { --tone: var(--accent); --tone-soft: var(--accent-soft); display: flex; gap: 14px; margin-top: 12px; padding: 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.set-sync form { margin-top: 8px; }
.sync-url { display: flex; gap: 6px; margin-top: 10px; }
.sync-url input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .8rem; color: var(--muted); background: var(--bg); }
.sync-help { margin-top: 8px; font-size: .88rem; }
.sync-help summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.sync-help p { margin: 6px 0; color: var(--muted); }

/* Réglage de la réservation en ligne */
.set-mode { margin-bottom: 14px; padding: 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.set-mode h2 { margin: 0 0 10px; font-size: 1.05rem; }
.mode-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.mode-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.mode-opt:hover { border-color: var(--accent); }
.mode-opt.on, .mode-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mode-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mode-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mode-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card); font-size: 1.1rem; }
.mode-opt strong { display: block; }
.mode-opt small { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.mode-pending { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: var(--warn); }

/* Demande à confirmer */
.pending-box { margin-bottom: 14px; padding: 16px; border-radius: var(--radius); background: var(--warn-soft); border: 1.5px solid var(--warn); }
.pending-box h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--warn); }
.pending-box p { margin: 0 0 10px; }
.pending-day { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--card, #fff); }
.pending-day ul { margin: 6px 0 8px; padding: 0; list-style: none; font-size: .92rem; }
.pending-day li { padding: 3px 0; color: var(--muted, #666); }
.pending-day li.self { color: var(--warn); font-weight: 600; }
.pending-day .hint { display: block; margin-top: 6px; }
.pending-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.pending-actions details { flex: 1; min-width: 200px; }
.pending-actions summary { list-style: none; cursor: pointer; }
.pending-actions summary::-webkit-details-marker { display: none; }
.pending-actions details form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pending-actions textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.pending-box .hint { margin: 10px 0 0; font-size: .85rem; }
.btn.danger { border-color: var(--warn); color: var(--warn); }
.tag.pending { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.slot.appt.pending { border-left: 4px solid var(--warn); }
.wk-appt.pending { background: #fff; color: var(--warn); border: 1.5px dashed var(--warn); box-shadow: none; }
.bell-ico.ask { background: var(--warn-soft); color: var(--warn); }
.dash-pending { border: 1.5px solid var(--warn); background: var(--warn-soft); }
.dash-pending h2 { color: var(--warn); }
.dash-pending ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dash-pending li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: 10px; text-decoration: none; color: var(--ink); }
.dash-pending li span { color: var(--muted); font-size: .88rem; }
.dash-pending li b { color: var(--warn); white-space: nowrap; }
.lg.pend { background: #fff; border: 1.5px dashed var(--warn); }

/* Bons cadeaux (Sophie) */
.gf-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gf-list > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gf-list .empty { padding: 16px; color: var(--muted); text-align: center; }
.gf-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.gf-row:hover { background: var(--bg); }
.gf-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.15rem; }
.gf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gf-main span { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.gf-state { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--free); color: var(--free-ink); }
.state-awaiting_payment .gf-state { background: var(--warn-soft); color: var(--warn); }
.state-used .gf-state, .state-expired .gf-state, .state-cancelled .gf-state { background: var(--bg); color: var(--muted); }
.gf-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-top: 1px dashed var(--line); background: var(--warn-soft); }
.gf-quick small { color: var(--muted); }
.gf-offers { display: flex; flex-direction: column; gap: 6px; }
.gf-offer { display: grid; grid-template-columns: 1fr 70px 90px 56px 34px; gap: 6px; align-items: center; }
.gf-offer.head span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.gf-offer input:not([type=checkbox]) { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; min-width: 0; }
.gf-offer.new input { border-style: dashed; }
.gf-check, .gf-del { display: grid; place-items: center; cursor: pointer; }
.gf-del { color: var(--warn); font-size: .85rem; }
.gf-del input { display: none; }
.gf-del:has(input:checked) { background: var(--warn); color: #fff; border-radius: 8px; }
.gf-offers .btn { margin-top: 8px; align-self: flex-start; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gf-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 8px 0 14px; padding: 22px 16px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, var(--tone-light), var(--accent) 60%); }
.gf-card.state-used, .gf-card.state-expired, .gf-card.state-cancelled { background: #8f8590; }
.gf-kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.gf-card strong { font-size: 1.2rem; }
.gf-code { padding: 6px 12px; border: 1.5px dashed rgba(255,255,255,.7); border-radius: 8px; font-weight: 700; letter-spacing: .1em; }
.gf-redeem { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.gf-redeem label { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.gf-redeem input { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.gf-redeem label.gf-accept { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink, inherit); }
.gf-redeem label.gf-accept input { min-height: 0; width: 22px; height: 22px; margin: 0; flex: none; }
.gf-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; }
.gf-dl dt { color: var(--muted); font-size: .88rem; }
.gf-dl dd { margin: 0; }
.gf-h3 { font-size: .95rem; margin: 16px 0 6px; }
.gf-uses { margin: 0; padding-left: 18px; color: var(--muted); }
.gf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.set-card.tone-gift { --tone: #c0708a; --tone-soft: #fbeaf0; }
@media (max-width: 520px) { .gf-offer { grid-template-columns: 1fr 52px 70px 36px 30px; } .gf-dl { grid-template-columns: 1fr; } .gf-dl dt { margin-top: 6px; } }
.gf-more summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: .9rem; }
.gf-more .row2 { margin-top: 8px; }
.gf-check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }

/* Choix de la réservation : coche visible */
.mode-opt { padding-right: 46px; }
.mode-check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; transition: background .15s ease, border-color .15s ease; }
.mode-opt:has(input:checked) .mode-check { background: var(--accent); border-color: var(--accent); }
.mode-opt:has(input:checked) .mode-check::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.mode-opt:has(input:checked) strong::after { content: "Activé"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: 2px; }

/* Liste d'attente */
.wl-settings form { display: flex; flex-direction: column; gap: 12px; }
.wl-switch .mode-check { border-radius: 6px; }
.wl-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.wl-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.wl-opt strong { display: block; font-size: .95rem; }
.wl-opt small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.wl-opt select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.wl-opt input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.wl-list .gf-main > span { display: block; }
.wl-when { color: var(--ink); font-size: .88rem; }
.wl-contact { font-size: .85rem; }
.wl-list .gf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.wl-list form { margin: 0; }

/* Quittances Tarif 590 */
.t590-h { font-size: 1rem; margin: 6px 0 0; }
.t590-h small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.t590-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.t590-ready form { margin: 0; }
.t590-ready small { color: var(--muted); }
.t590-total { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.form label small { font-size: .78rem; }
.t590-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }

/* Encaissement d'une séance (11/11/2026) */
.cash-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cash-choices .btn { flex: 1 1 auto; min-width: 90px; }
.tag.paid { background: #e6f2ea; color: #2f6b45; }
.tag.collect { background: #fdf0e1; color: #9a5b12; }
.cash-day { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: .9rem; }
.cash-day strong { font-weight: 600; }
.cash-day .collect { color: #9a5b12; }
.new-kind { margin-top: 4px; }

/* Quittance libre : plusieurs lignes (11/11/2026) */
.qf-open { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }
.qf-open summary { cursor: pointer; font-weight: 600; }
.qf-open-list { display: grid; gap: 6px; margin: 10px 0; }
.form .qf-open-list label.check { display: flex; flex-direction: row; gap: 8px; align-items: center; font-size: .9rem; }
.form .qf-open-list label.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--accent); }
.qf-open-list .check { color: var(--ink, #222); }
.qf-lines { display: grid; gap: 10px; }
.qf-row { display: grid; grid-template-columns: 140px minmax(0,1fr) 110px 120px 80px auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.qf-row .qf-label { grid-column: 2 / 4; }
.qf-row .qf-code select { width: 100%; }
.qf-amount { font-weight: 700; text-align: right; padding-bottom: 12px; }
.qf-total { font-weight: 700; font-size: 1.05rem; text-align: right; margin: 0; }
@media (max-width: 720px) {
    .qf-row { grid-template-columns: 1fr 1fr; }
    .qf-row .qf-code, .qf-row .qf-label { grid-column: 1 / -1; }
}

/* Factures (11/11/2026) */
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.inv-late { color: #b23a2e; }
.gf-state.inv-paid { color: #2a7a4b; }
.gf-state.inv-off { color: #999; text-decoration: line-through; }
.inv-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.inv-table td { padding: 6px 4px; border-bottom: 1px solid #eee; vertical-align: top; }
.inv-table td:first-child { white-space: nowrap; color: #777; width: 1%; }
.inv-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-total td { border-bottom: none; font-weight: 700; }
.inv-cancel { margin: 14px 0 30px; text-align: center; }
.inv-export { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.inv-export select { width: auto; flex: none; min-height: 40px; border-radius: 10px; border: 1px solid #ddd; padding: 0 8px; font: inherit; }
.inv-links { margin: 6px 0 0; font-size: .9rem; }
.inv-export .btn { flex: none; min-height: 40px; padding: 0 14px; }

/* Cartes de séances (11/11/2026) */
.pass-page .pass-order { text-align: left; }
.pass-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eee; cursor: pointer; }
.pass-choice input { margin-top: 3px; accent-color: var(--accent, var(--accent)); }
.pass-choice small { display: block; color: #777; }
.pass-ok { background: #eef6f0; color: #2a7a4b; padding: 10px 12px; border-radius: 10px; }
.pass-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.pass-row:last-child { border-bottom: none; }
.pass-row .pass-main strong { display: block; }
.pass-row .pass-main span { color: #777; font-size: .9rem; }
.pass-count { font-weight: 700; white-space: nowrap; }
.pass-count.low { color: #b23a2e; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pass-actions form { margin: 0; }
.pass-uses { margin: 6px 0 0; padding: 0; list-style: none; font-size: .88rem; color: #666; }
.pass-uses li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.loyalty-tag { display: inline-block; background: #f3ecf4; color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 600; }
.loyalty-bar { height: 6px; background: #eee; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.loyalty-bar span { display: block; height: 100%; background: var(--accent); }
.wl-detail { margin-top: 4px; font-size: .88rem; }
.wl-detail summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.wl-detail ul { margin: 6px 0 0; padding-left: 18px; color: #555; }
.sv-limits { border: 1px solid #eee; border-radius: 12px; padding: 10px 12px; }
.sv-limits legend { font-weight: 600; padding: 0 4px; }
.sv-window { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.sv-window select, .sv-window input { min-height: 40px; flex: 1 1 0; min-width: 0; width: 0; }
.sv-window span { flex: none; color: #777; }
/* Séances de groupe (12/11/2026) */
.grp-person { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #eee); }
.grp-person:last-of-type { border-bottom: 0; }
.grp-person .pass-main { flex: 1 1 220px; min-width: 0; }
.grp-person .pass-main span { overflow-wrap: anywhere; }
.grp-pay select { padding: 6px 8px; font-size: 14px; }
.grp-out summary { list-style: none; cursor: pointer; font-size: 14px; }
.grp-out summary::-webkit-details-marker { display: none; }
.grp-out[open] { flex-basis: 100%; }
.grp-out form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.grp-person .pass-main strong { display: block; }
.grp-person .pass-main span { color: #777; font-size: .9rem; }
/* Fidélité : séances d'avant (14/11/2026) */
.loyalty-earlier { margin-top: 6px; font-size: .9rem; }
.loyalty-earlier summary { cursor: pointer; color: var(--accent, var(--accent)); }
.loyalty-earlier .form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.loyalty-earlier .form-inline label { flex: 1 1 200px; }

/* Aperçu PDF dans l'appli (17/11/2026) */
.pdfv-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; background: var(--bg, #f6f3ef); }
.pdfv-name { margin: 0 0 8px; font-size: .85rem; color: #777; overflow-wrap: anywhere; }
.pdfv-pages canvas { display: block; width: 100%; height: auto; background: #fff; margin: 0 0 12px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Paiement par bon cadeau (17/11/2026) */
.gift-pay { margin-top: 8px; }
.gift-pay summary { list-style: none; display: inline-flex; cursor: pointer; }
.gift-pay summary::-webkit-details-marker { display: none; }
.gift-pay-form { display: grid; gap: 8px; margin-top: 10px; max-width: 360px; }
.err-inline { color: #b23; margin: 0; font-size: .9rem; }
.notice-inline { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #f3ecf4; font-size: .9rem; }

/* Absences par mois, modifiables (21/11/2026) */
.month-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 8px 0 0; }
.month-chips a { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.month-chips a small { color: var(--muted); }
.month-chips a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.month-chips a.on small { color: rgba(255,255,255,.8); }
.month-head { margin: 16px 0 6px; font-size: .95rem; color: var(--muted); }
.item-link { text-decoration: none; color: inherit; }
.item-link .go { color: var(--muted); font-size: 1.3rem; }
a.slot.off { text-decoration: none; color: inherit; }
.multi-days summary { margin: 2px 0 6px; }
.menu-btn { display: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; flex: none; }
@media (max-width: 760px) { .menu-btn { display: grid; } }
@media (max-width: 440px) { .topbar nav a { padding: 8px 7px; font-size: .88rem; } }
.menu-panel { overflow-y: auto; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 10px; }
.menu-grid a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; background: var(--bg); }
.menu-grid a span { color: var(--muted); }
.menu-grid a.on { border-color: var(--accent); color: var(--accent); }

/* Semaine entière sur le téléphone, comme Google Agenda (Sophie, 21/11/2026) */
.wk { --px: 1.2px; }
.wk-short { display: none; }
@media (max-width: 700px) {
  .wrap:has(.wk) { padding-left: 6px; padding-right: 6px; }
  .wk { --px: .9px; --hours: 26px; overflow-x: visible; border-radius: 12px; }
  .wk-head, .wk-body { grid-template-columns: var(--hours) repeat(var(--cols), minmax(0, 1fr)); min-width: 0; }
  .wk-long { display: none; }
  .wk-short { display: inline; }
  .wk-day { padding: 6px 0; }
  .wk-day strong { font-size: 1rem; }
  .wk-day.is-today strong { width: 26px; height: 26px; }
  .wk-hours span { right: 3px; font-size: .62rem; }
  .wk-appt, .wk-free, .wk-off, .wk-buffer { left: 1px; right: 1px; border-radius: 4px; }
  .wk-appt { padding: 2px 3px; font-size: .6rem; line-height: 1.15; }
  .wk-appt b, .wk-appt span { white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
  .wk-appt b { font-weight: 600; }
  .wk-appt .wk-time { display: block; font-weight: 700; }
  .wk-appt > span { display: none; }
  .wk-off { font-size: .58rem; padding: 2px 3px; overflow-wrap: anywhere; line-height: 1.15; }
  .wk-free span { display: none; }
}
.wk-day em span { text-transform: none; letter-spacing: 0; font-size: inherit; color: inherit; }
a.wk-off { text-decoration: none; z-index: 1; }
.mail-log summary { cursor: pointer; }
.mail-log ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.mail-log li { display: flex; gap: 10px; }
.mail-log time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 7.5em; }
/* Bons : texte et date de fin d'une offre du moment (22/11/2026) */
.gf-offer-more { display: grid; grid-template-columns: 1fr 128px; gap: 6px; align-items: end; margin: -2px 0 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.gf-offer-more input { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; min-width: 0; }
.gf-offer-more label { display: flex; flex-direction: column; font-size: .72rem; color: var(--muted); font-weight: 600; gap: 2px; }
.gf-offer-more .hint { grid-column: 1 / -1; margin: 0; font-size: .78rem; }
/* Agendas Google branchés (22/11/2026) */
.sync-list { list-style: none; padding: 0; margin: 6px 0 10px; }
.sync-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.sync-list form { margin: 0; }
.sync-url input[name=label] { flex: 1 1 100%; }
/* Accueil : semaine glissable (22/11/2026) */
.wk-nav { display: flex; gap: 4px; align-items: center; }
.wk-nav a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: inherit; font-weight: 700; padding: 0 10px; }
.wk-nav .wk-today { font-size: .78rem; font-weight: 600; }
[data-swipe-zone] { touch-action: pan-y; }
#semaine .dash-h2row h2 { white-space: nowrap; }

.gf-new-title { margin: 14px 0 6px; font-size: .95rem; color: var(--accent); }

/* Clients sans adresse mail (24/11/2026) */
.nomail-list li { display: block; }
.nomail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 0 14px 12px 64px; }
.nomail-actions form { display: contents; }
.nomail-actions .hint { margin: 0; font-size: .85rem; }
.hr-versions { margin-top: 8px; }
.hr-new { margin: 8px 0 4px; }
.hr-new summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.hr-new-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 8px; }
.hr-new-form label { display: flex; flex-direction: column; gap: 4px; }
.hr-new-form input { width: 9em; }
.hr-new-form .hint, .hr-new-form .conflict { flex-basis: 100%; margin: 0; }
.video-btn { display: flex; justify-content: center; margin: 0 0 12px; }
.prep-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 4px; margin: 0; }
.prep-box legend { font-weight: 600; padding: 0 4px; }
.prep-row { display: flex; flex-wrap: wrap; gap: 8px; }
.prep-row select { flex: 0 1 auto; }
.prep-row input { flex: 1 1 200px; min-width: 0; }
.flash.care { background: #f4efe6; color: var(--ink); border: 1px solid #e6dccb; }
.care-pause { margin: -2px 0 8px; padding: 8px 12px; border-radius: 12px; background: #f4efe6; border: 1px dashed #d9cbb3; font-size: .9rem; }
.care-msg { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: #f4eef6; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.4; }
.care-msg span:first-child { font-size: 1.1rem; line-height: 1.3; }
.care-h { font-size: 1.05rem; margin: 6px 0 0; }
.care-examples summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.care-examples ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.video-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 6px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.video-box legend { font-weight: 600; padding: 0 4px; }
.video-sub { margin-left: 28px; }
.info-tip summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.info-tip summary::-webkit-details-marker { display: none; }
.info-tip .i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 serif; font-style: italic; }
.info-tip > div { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft, #f3edf4); font-size: .9rem; }
.info-tip p { margin: 0 0 8px; }
.info-tip p:last-child { margin: 0; }

.care-week { background: #f3e9f4; }
.burst-bit { position: fixed; z-index: 99; pointer-events: none; font-size: 22px; animation: burst 1.4s ease-out forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(.6); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0; } }

.care-month { margin: 0 0 14px; padding: 16px; border-radius: 18px; background: #f3e9f4; cursor: pointer; }
.care-month h2 { margin: 0 0 10px; font-size: 1.15rem; }
.care-month-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(7em, 1fr)); gap: 10px; }
.care-month-figs div { background: #fff; border-radius: 12px; padding: 10px; }
.care-month-figs b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.care-month-figs span { font-size: .85rem; color: var(--muted); }
.care-month p { margin: 10px 0 0; font-size: .95rem; }
.care-quote { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--card, #fff); border: 1px solid var(--line); }
.care-quote blockquote { margin: 0; font-style: italic; line-height: 1.45; }
.care-quote figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Formulaires avant la séance (26/11/2026) */
.fe-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fe-box legend { padding: 0 6px; font-weight: 600; }
.fe-services { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fe-list { display: flex; flex-direction: column; gap: 10px; }
.fe-q { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.fe-head { display: flex; align-items: center; gap: 8px; }
.fe-head select { flex: 1; min-width: 0; }
.fe-num { font-weight: 700; color: var(--accent); min-width: 1.4em; }
.fe-tools { display: flex; gap: 4px; }
.fe-tools .btn.icon { padding: 4px 9px; min-width: 0; }
.forms-state { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.forms-state li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.forms-state li > span:nth-child(2) { flex: 1; min-width: 140px; }
.tag.ok { background: #e7f5ec; color: #1e7a45; }
.form-answers h2 { margin: 14px 0 4px; font-size: 1rem; }
.form-answers h2:first-child { margin-top: 0; }
.fa-row { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fa-row:last-child { border-bottom: 0; }
.fa-q { font-size: .85rem; color: var(--muted, #6b6578); }
.fa-a { font-weight: 500; }
.fa-a.empty { color: var(--muted, #6b6578); font-weight: 400; }
.fa-sign { max-width: 100%; width: 320px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fe-tools .btn.icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.fe-head { gap: 6px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pay-list li:last-child { border-bottom: 0; }
.pay-refund form { display: flex; gap: 8px; align-items: end; margin-top: 6px; }
.fe-box legend .tag { margin-left: 6px; vertical-align: middle; }
code { word-break: break-all; }

/* Zophia, formules : fonctions réservées à Complet (étape 2c) */
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan-list li { padding: 10px 12px; border-radius: var(--radius); background: var(--bg); }
.plan-ok { color: var(--free-ink); font-size: .85rem; margin-left: 6px; }
.plan-wanted { border-left: 4px solid var(--accent); }
.plan-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 600; vertical-align: middle; }
.locked { opacity: .55; }

/* Équipe (Zophia, étape Équipe) */
.tm-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-soft, #efe6f0); }
.tm-avatar.big { width: 72px; height: 72px; }
.tm-avatar.small { width: 28px; height: 28px; font-size: .7rem; }
.tm-initials { display: inline-flex; align-items: center; justify-content: center; color: var(--accent-dark, #5e3d63); font-weight: 600; }
.tm-seats { margin: 6px 0 14px; }
.tm-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.tm-list li a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border-radius: 14px; text-decoration: none; color: inherit; }
.tm-list li.off { opacity: .55; }
.tm-txt { display: flex; flex-direction: column; min-width: 0; }
.tm-txt span { color: #6b6170; font-size: .9rem; }
.tm-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; }
.tm-head .pagetitle { margin: 0; }
.tm-roles { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.tm-role { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #e6dce8; border-radius: 12px; }
.tm-role span { display: flex; flex-direction: column; }
.tm-role small { color: #6b6170; }
.tm-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin: 6px 0; }
.tm-services label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.tm-seat-confirm { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--accent-soft, #f6eef7); border-radius: 12px; }
.tm-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 6px; }
.tm-pick a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid #e6dce8; text-decoration: none; color: inherit; white-space: nowrap; background: #fff; }
.tm-pick a.on { border-color: var(--accent); background: var(--accent-soft, #f6eef7); font-weight: 600; }

/* Adresse à partager (bons cadeaux, page de réservation) */
.share-link { display: grid; gap: 8px; margin: 8px 0 16px; }
.share-link input { width: 100%; font-size: .9rem; color: #5b5160; }
.share-link-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Vos lieux (Zophia, 26/11/2026) */
.loc-card { margin-bottom: 6px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.loc-delete { margin: 0 0 16px; text-align: right; }
/* Inscription (Zophia, étape 3) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.login.signup { max-width: 460px; margin-top: 6vh; }
.signup-lead { margin: -8px 0 16px; color: var(--muted, #6b6170); }
.signup-login { margin-top: 14px; }
/* Bien démarrer (Zophia, étape 3) */
.onb { background: #fff; border: 1px solid var(--accent-soft, #eadcf0); border-radius: 18px; padding: 16px; margin: 0 0 18px; }
.onb-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.onb-head h2 { margin: 0; font-size: 1.15rem; }
.onb-head p { margin: 4px 0 0; color: var(--muted, #6b6170); font-size: .92rem; }
.onb-bar { height: 6px; border-radius: 99px; background: var(--accent-soft, #eadcf0); margin: 12px 0; overflow: hidden; }
.onb-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.onb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.onb-list a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; color: inherit; text-decoration: none; min-width: 0; }
.onb-list li.next a { background: var(--accent-soft, #f4ecf7); }
.onb-list li.done a { opacity: .65; }
.onb-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; font-weight: 700; }
.onb-list li.done .onb-check { background: var(--accent); }
.onb-txt { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.onb-txt small { color: var(--muted, #6b6170); }
.onb-txt strong small { font-weight: 400; }
.onb-go { margin-left: auto; color: var(--accent); font-size: 1.3rem; }
/* Bandeau d'essai */
.trial-bar { display: block; text-align: center; padding: 7px 16px; background: var(--accent-soft, #f4ecf7); color: var(--accent-dark, #5e3d63); font-size: .9rem; text-decoration: none; }
.trial-bar strong { font-weight: 700; }
.trial-bar.ending { background: #fff1e0; color: #8a4b08; }
.slug-field { display: flex; align-items: center; gap: 4px; }
.slug-field > span { color: var(--muted, #6b6170); white-space: nowrap; }
.slug-field input { flex: 1; min-width: 0; }
/* Salles et cabines (Zophia, 26/11/2026) */
.loc-rooms { margin: 0 0 8px; }
.loc-rooms summary { cursor: pointer; }
.room-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--line, #eee); }
.room-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.room-form input[name=name] { flex: 1; min-width: 140px; }

/* Dossier du client (26/11/2026) */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.doc-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.doc-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--accent-soft, #ece8ec); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-file { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent, #5e3d63); text-decoration: none; letter-spacing: .05em; }
.doc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-meta strong { overflow-wrap: anywhere; font-size: .9rem; }
.doc-more summary { font-size: .85rem; }
.doc-more[open] { display: flex; flex-direction: column; gap: 6px; }
.doc-more form { margin: 0; }
.doc-rename { display: flex; gap: 4px; }
.doc-rename input { min-width: 0; flex: 1; }
.doc-add { display: grid; gap: 8px; }

/* Écrire à un client (27/11/2026) */
.msg-form .chips .chip { min-height: 36px; font-weight: 500; }
.msg-shortcuts, .msg-templates { display: grid; gap: 6px; }
.msg-files { border: 1px solid var(--line, #e5e0da); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; margin: 0; }
.msg-files legend { padding: 0 4px; font-weight: 600; }
.form .msg-files label.check { display: flex; flex-direction: row; gap: 8px; align-items: center; font-weight: 400; }
.form .msg-files label.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--accent); }
.msg-manage { margin-top: 12px; }
.msg-manage .pass-row { display: flex; gap: 8px; align-items: center; }
.msg-btn { display: flex; justify-content: center; margin: 12px 0; }

/* Parrainage (27/11/2026) */
.referral-lead { font-size: 1.15rem; margin: 0 0 6px; }
.referral-send { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.referral-count { margin: 0 0 10px; }
.referral-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #eee); }
.signup-referral { background: var(--accent-soft, #f3ecf7); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }

/* Recherche générale (27/11/2026) */
.topbar nav a.search-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; opacity: 1; flex: none; }
@media (max-width: 440px) { .topbar nav a.search-btn { width: 36px; height: 36px; } }
/* Petit téléphone : « Absences » passe dans le menu ☰ pour laisser la place à la loupe. */
@media (max-width: 420px) { .topbar nav a.nav-roomy { display: none; } }
.search-panel { width: min(640px, calc(100% - 24px)); max-height: min(80vh, 720px); margin: 8vh auto auto; }
.search-form { display: flex; gap: 10px; align-items: center; }
.search-form input[type=search] { flex: 1; min-width: 0; font-size: 1.05rem; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0,0,0,.15); }
.search-results { margin-top: 12px; overflow-y: auto; }
.search-hint { margin: 8px 2px; }
.search-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .6; margin: 14px 4px 4px; }
.search-group ul { list-style: none; margin: 0; padding: 0; }
.search-group a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: inherit; }
.search-group a:hover, .search-group a:focus { background: var(--accent-soft, #f1eef8); outline: none; }
.search-group a strong { font-weight: 600; overflow-wrap: anywhere; }
.search-group a span { font-size: .88rem; opacity: .7; overflow-wrap: anywhere; }
@media (max-width: 340px) { .topbar nav a { padding: 8px 6px; font-size: .86rem; } .topbar nav { gap: 2px; } }
.care-pause-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.care-pause-actions .btn { padding: 7px 12px; font-size: .88rem; }
.care-pause.done { opacity: .75; }

/* Déplacement à confirmer (27/11/2026) */
.move-confirm .move-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.move-confirm .move-actions .btn { white-space: normal; text-align: center; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Réglages en groupes (28/11/2026) : lignes façon réglages de l'iPhone, état en gris, recherche. */
.set-filter { display: block; margin: 0 0 16px; }
.set-filter input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; }
.set-group { margin: 0 0 18px; }
.set-group h2 { margin: 0 0 8px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.set-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.set-row + .set-row { border-top: 1px solid var(--line); }
a.set-row:hover, a.set-row:focus-visible { background: var(--accent-soft); }
.set-row .set-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.set-row .set-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.set-row .set-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-row .set-txt strong { font-weight: 600; }
.set-row .set-state { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-row .set-state.hot { color: var(--accent); font-weight: 600; }
.set-row .set-go { flex: none; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.set-row.locked { opacity: .6; }
.set-row[hidden], .set-group[hidden] { display: none; }
.set-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.set-seg label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; }
.set-seg label.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.set-seg input[type=radio] { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; min-height: 0; padding: 0; flex: none; box-shadow: none; }
.set-seg label { white-space: nowrap; }
.set-none { color: var(--muted); text-align: center; }
.acc-q { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.acc-q legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.inv-repeat { margin: 12px 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.inv-repeat summary, .inv-sched summary { cursor: pointer; font-weight: 600; }
.inv-sched { padding: 10px 0; border-top: 1px solid var(--line); }
.inv-sched:first-of-type { border-top: 0; }
.inv-sched .warn { color: var(--warn); }
.bank-list { display: grid; gap: 0; }
.bank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.bank-row:first-child { border-top: 0; }
.bank-row input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
.bank-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.bank-state { font-size: .8rem; font-weight: 600; text-align: right; display: grid; gap: 2px; max-width: 9.5em; }
.bank-state small { font-weight: 400; color: var(--muted); }
.bank-row.is-ok .bank-state { color: var(--ok, #2f7d4f); }
.bank-row.is-check .bank-state { color: var(--warn); }
.bank-row.is-done, .bank-row.is-none { opacity: .7; cursor: default; }
.bank-main .hint, .bank-main span { margin: 0; }

/* Mon profil > Quittances et factures (28/11/2026) : coordonnées propres seulement si « Je facture à mon nom » */
.bill-self { display: grid; gap: 10px; padding: 10px 0 0 14px; border-left: 2px solid var(--accent-soft); }
#facturation:has(input[name="self"]:not(:checked)) .bill-self { display: none; }
.inv-vat td { color: #6b6178; font-size: .92em; }
