/* Style « barbier chic » : noir + dore. Partage par la page client et l'espace coiffeur. */
:root {
  --bg: #0b0b0c;
  --bg2: #111113;
  --card: #161619;
  --card2: #1d1d21;
  --line: #2a2a30;
  --text: #f3efe6;
  --muted: #a19b8e;
  --dim: #6f6a60;
  --gold: #c9a24a;
  --gold2: #e2c477;
  --gold-ink: #17120a;
  --gold-soft: rgba(201, 162, 74, 0.12);
  --ok: #57c48a;
  --warn: #e5ac45;
  --danger: #e2675d;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(201, 162, 74, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold2); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text);
  font-weight: 600; text-decoration: none; transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; color: var(--gold-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(226, 103, 93, .4); }
.btn.big { min-height: 54px; font-size: 16px; border-radius: 14px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; color: var(--gold2); font-weight: 500; text-decoration: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); flex: none;
}
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-btn svg, .btn svg { width: 18px; height: 18px; }
.mini {
  min-height: 34px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.mini.ok { background: var(--gold); border-color: transparent; color: var(--gold-ink); }

/* ---------- En-tete client ---------- */
.hero { text-align: center; padding: 36px 0 20px; }
.logo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); padding: 3px; background: var(--bg); }
.monogram {
  width: 92px; height: 92px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); color: var(--gold2); font: 600 34px/1 var(--serif);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(201, 162, 74, .35);
}
.hero h1 { font: 600 34px/1.15 var(--serif); margin-top: 16px; letter-spacing: .5px; }
.tagline { margin: 6px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.hero-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.hero-meta svg { width: 15px; height: 15px; color: var(--gold); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 6px auto 0; width: 120px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- Etapes ---------- */
.step { margin-top: 22px; }
.step:empty { display: none; }
.step h2 { display: flex; align-items: baseline; gap: 10px; font: 600 21px/1.2 var(--serif); margin-bottom: 12px; }
.step h2 small { font: 400 14px var(--sans); color: var(--muted); margin-left: auto; }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold);
  color: var(--gold2); font: 600 13px/1 var(--sans); transform: translateY(-2px);
}
.sub { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin: 16px 0 8px; font-weight: 500; }
.list { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.choice.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(201, 162, 74, .10), rgba(201, 162, 74, .04)); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot, .choice .box {
  flex: none; width: 20px; height: 20px; border: 1.5px solid var(--dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.choice .box { border-radius: 6px; }
.choice.on .dot, .choice.on .box { border-color: var(--gold); background: var(--gold); }
.choice.on .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-ink); }
.choice.on .box::after { content: ''; width: 5px; height: 10px; border: solid var(--gold-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.choice-main { flex: 1; min-width: 0; }
.choice-name { display: block; font-weight: 600; }
.choice-sub { display: block; font-size: 13px; color: var(--muted); }
.choice-price { font-weight: 600; color: var(--gold2); white-space: nowrap; }
.total {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  padding: 12px 16px; border-radius: var(--radius); background: var(--bg2); border: 1px dashed var(--line); color: var(--muted);
}
.total strong { color: var(--text); font-size: 17px; }

/* Jours */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 70px; padding: 10px 4px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.day .dw { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.day .dn { font: 600 22px/1.2 var(--serif); }
.day .dm { font-size: 12px; color: var(--muted); }
.day .dc { font-size: 11px; margin-top: 4px; color: var(--gold2); white-space: nowrap; }
.day:disabled { opacity: .38; cursor: default; }
.day:disabled .dc { color: var(--dim); }
.day.on { border-color: var(--gold); background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); }
.day.on .dw, .day.on .dm, .day.on .dc { color: rgba(23, 18, 10, .75); }

/* Heures */
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.who-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.chip, .chips button {
  min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 500; font-size: 14px;
}
.chip.on, .chips button.on { border-color: var(--gold); color: var(--gold2); background: var(--gold-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.slot-group + .slot-group { margin-top: 14px; }
.slot-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot {
  min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text);
}
.slot.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; color: var(--gold-ink); }

/* Recap + formulaire */
.recap { padding: 16px; border-radius: var(--radius); border: 1px solid rgba(201, 162, 74, .45); background: var(--gold-soft); margin-bottom: 16px; }
.recap-when { font-size: 16px; }
.recap-when strong { color: var(--gold2); }
.recap-what { color: var(--muted); font-size: 14px; margin-top: 4px; }
.recap-price { margin-top: 8px; font-weight: 700; font-size: 18px; }
.recap-price span { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.field small { color: var(--dim); font-size: 12px; }
.field input, .field select, .field textarea, .inp {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 16px; outline: none;
  transition: border-color .2s ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: var(--gold); }
.field input.err { border-color: var(--danger); }
.form-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(226, 103, 93, .12); color: #f2a59e; font-size: 14px; }
.hint { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.empty { padding: 18px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); margin: 0; }
.skeleton { height: 90px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* Confirmation */
.done { text-align: center; padding: 48px 0 24px; }
.done-icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink);
}
.done-icon svg { width: 36px; height: 36px; }
.done h1 { font: 600 30px/1.2 var(--serif); }
.done-sub { color: var(--muted); margin: 8px 0 22px; }
.done .recap { text-align: left; }
.done-actions { display: grid; gap: 10px; margin-top: 6px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.status.confirmed { background: rgba(87, 196, 138, .14); color: var(--ok); }
.status.pending { background: rgba(229, 172, 69, .14); color: var(--warn); }
.status.cancelled, .status.refused { background: rgba(226, 103, 93, .14); color: var(--danger); }

.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: 13px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot .foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.foot .staff { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--dim); }

/* ---------- Espace coiffeur ---------- */
body.admin { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 5; padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(11, 11, 12, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: center; gap: 10px;
}
.tb-name { font: 600 19px var(--serif); color: var(--gold2); }
.tb-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.admin-view { padding-top: 16px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(17, 17, 19, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--dim); font-size: 11px; font-weight: 500; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--gold2); }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font: 700 11px/18px var(--sans); font-style: normal; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { font: 600 18px/1.25 var(--serif); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.card > .muted { margin: 0 0 14px; font-size: 13px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--warn); color: #1d1404; font: 700 12px var(--sans); }

.share { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.share-text { flex: 1; min-width: 0; }
.share-text b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.share-text code { display: block; font: 600 14px var(--sans); color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#qr { background: #fff; padding: 14px; border-radius: 12px; width: max-content; margin: 0 auto 14px; }
#qr img, #qr canvas { display: block; }

.strip { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 10px; padding: 2px 16px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.sday { flex: none; width: 54px; padding: 7px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; color: var(--text); }
.sday span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.sday b { font: 600 18px/1.3 var(--serif); }
.sday em { font-style: normal; font-size: 11px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.sday.off { opacity: .5; }
.sday.off em { color: var(--dim); }
.sday.on { border-color: var(--gold); background: var(--gold-soft); }
.dayhead { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.dayhead h2 { flex: 1; text-align: center; font: 600 19px var(--serif); }
.cap-line { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.cap-line b { color: var(--text); }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.timeline { display: grid; gap: 8px; }
.bk { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-left: 3px solid var(--gold); }
.bk.pending { border-left-color: var(--warn); }
.bk.blocked { border-left-color: var(--dim); background: repeating-linear-gradient(-45deg, var(--card), var(--card) 8px, var(--bg2) 8px, var(--bg2) 16px); }
.bk.cancelled, .bk.refused { opacity: .55; border-left-color: var(--danger); }
.bk-time { flex: none; width: 50px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-time small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.bk-body { flex: 1; min-width: 0; }
.bk-name { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bk-sv { font-size: 13px; color: var(--muted); }
.bk-contact { font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.bk-contact a { display: block; }
.bk-contact a { color: var(--gold2); text-decoration: none; }
.bk-actions { display: flex; flex-direction: column; gap: 6px; }
details.cancelled { margin-top: 12px; }
details.cancelled summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 0; }
details.cancelled .bk { margin-top: 8px; }

/* Horaires */
.wd { border-top: 1px solid var(--line); padding: 12px 0; }
.wd:first-child { border-top: 0; padding-top: 2px; }
.wd-head { display: flex; align-items: center; gap: 12px; }
.wd-head strong { flex: 1; }
.wd-cap { font-size: 13px; color: var(--gold2); text-align: right; }
.wd.closed .wd-cap { color: var(--dim); }
.ranges { display: grid; gap: 8px; margin-top: 10px; padding-left: 56px; }
@media (max-width: 420px) { .ranges { padding-left: 0; } }
.range { display: flex; align-items: center; gap: 8px; }
.range input[type=time] { flex: 1; min-width: 0; max-width: 130px; min-height: 40px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 15px; }
.range input.err { border-color: var(--danger); }
.range > span { color: var(--dim); }
.ranges .link { justify-self: start; font-size: 14px; }
.week-total { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(201, 162, 74, .35); text-align: center; font-size: 14px; }
.week-total b { color: var(--gold2); font-size: 17px; }
.switch { position: relative; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--line); transition: background .2s ease; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); }
.row-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.row-line + .row-line { border-top: 1px solid var(--line); }
.row-line > div { flex: 1; }
.row-line small { display: block; color: var(--muted); font-size: 12px; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--card2); color: var(--gold2); box-shadow: 0 0 0 1px var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid2 .span2 { grid-column: 1 / -1; }
.ex-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ex-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; }
.ex-list li div { flex: 1; }
.ex-list small { display: block; color: var(--muted); font-size: 12px; }

/* Prestations / equipe */
.sv { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.sv + .sv { border-top: 1px solid var(--line); }
.sv-main { flex: 1; min-width: 0; }
.sv-name { font-weight: 600; }
.sv-sub { font-size: 13px; color: var(--muted); word-break: break-word; }
.sv-price { font-weight: 600; color: var(--gold2); white-space: nowrap; }
.sv.inactive { opacity: .55; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold2); display: flex; align-items: center; justify-content: center; font: 600 16px var(--serif); }
.radio-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.radio-line input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.field .radio-line select { margin-left: auto; width: auto; flex: none; min-height: 38px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card2); font-size: 15px; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check-line input { accent-color: var(--gold); width: 18px; height: 18px; }
.logo-edit { display: flex; align-items: center; gap: 14px; }
.logo-edit img, .logo-edit .monogram { width: 64px; height: 64px; font-size: 24px; margin: 0; }
.outbox { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.outbox li { padding: 8px 0; border-top: 1px solid var(--line); }
.outbox li:first-child { border-top: 0; }
.outbox small { color: var(--muted); }
.outbox .st-ok { color: var(--ok); }
.outbox .st-dev { color: var(--warn); }
.outbox .st-err { color: var(--danger); }

/* Fenetre modale */
dialog.modal {
  width: min(520px, calc(100% - 24px)); max-height: calc(100% - 48px); padding: 0; border: 1px solid var(--line);
  border-radius: 18px; background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0; }
.modal-head h3 { flex: 1; font: 600 20px var(--serif); }
.modal-body { padding: 14px 16px 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.modal-actions .btn { flex: 1; }

/* Notification ephemere */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 12px; background: #f3efe6; color: #111; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; transition: all .25s ease; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }
body.client .toast { bottom: 24px; }

/* Connexion */
.login { max-width: 400px; margin: 0 auto; padding: 60px 16px; text-align: center; }
.login h1 { font: 600 28px var(--serif); margin: 18px 0 8px; }
.login p { color: var(--muted); margin: 0 0 20px; }
.login .form { text-align: left; }
.code-input { text-align: center; letter-spacing: 10px; font-size: 26px !important; font-weight: 700; }

@media (min-width: 720px) {
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 40px; }
}

/* Calendrier pas encore en ligne */
.closed { text-align: center; padding: 26px 18px; border-radius: var(--radius); border: 1px solid rgba(201, 162, 74, .45); background: linear-gradient(180deg, rgba(201, 162, 74, .10), rgba(201, 162, 74, .03)); }
.closed-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold2); display: flex; align-items: center; justify-content: center; }
.closed-icon svg { width: 26px; height: 26px; }
.closed h2 { justify-content: center; margin-bottom: 8px; }
.closed > p { color: var(--muted); margin: 0 0 18px; }
.next-open { display: grid; gap: 2px; padding: 16px; margin-bottom: 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.next-open span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.next-open strong { font-size: 17px; }
.next-open small { color: var(--muted); }
.countdown { margin-top: 10px; font: 600 30px/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--gold2); letter-spacing: 1px; }
.next-hint { margin-top: 4px; text-align: left; }
.next-hint span { color: var(--gold2); font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.pub-list { display: grid; gap: 8px; }
.pub { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.pub-main { flex: 1; min-width: 0; }
.pub-main b { display: block; }
.pub-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; color: var(--muted); font-size: 12px; }
.pub.live { border-color: rgba(87, 196, 138, .45); }
.pub.sched { border-color: rgba(229, 172, 69, .45); }
.pub-barber { padding: 12px 0; border-top: 1px solid var(--line); }
.pub-barber:first-child { border-top: 0; padding-top: 0; }
