/* ===== Réservation & Espace pro (neutre, premium) ===== */
.app-bg { background: #f6f5f8; min-height: 100dvh; color: #1a1d24; }
.app-bar { background: var(--ink); color:#fff; padding: 14px clamp(16px,4vw,40px); display:flex; align-items:center; justify-content:space-between; }
.app-bar .brand { color:#fff; font-family: var(--font-h-display); text-transform:uppercase; letter-spacing:.06em; font-size:20px; font-weight:700; }
.app-bar a.back { color:#cbb483; font-weight:600; font-size:14px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 32px 18px 80px; }
.page-head { text-align:center; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(26px,5vw,40px); font-weight:800; letter-spacing:-.01em; }
.page-head p { opacity:.7; margin-top:6px; }

.card { background:#fff; border:1px solid #ece9f1; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(20,16,40,.06); margin-bottom: 22px; }
.card h2 { font-size: 19px; margin-bottom: 4px; }
.card .muted { opacity:.65; font-size:14px; margin-bottom:16px; }

.field { margin-bottom: 14px; }
.field label { display:block; font-weight:600; font-size:13px; margin-bottom:6px; }
.field input, .field select {
  width:100%; padding: 13px 14px; border:1.5px solid #e2def0; border-radius: 12px; font-size:15px; background:#fff;
  min-height:48px; transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus { outline:none; border-color: var(--brand-gold); }
.row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:560px){ .row{ grid-template-columns:1fr; } }

.btn-block { width:100%; background: var(--ink); color:#fff; padding:15px; border-radius:12px; font-weight:700; font-size:15px; min-height:52px; transition: background .2s var(--ease), transform .15s var(--ease); }
.btn-block:hover { background:#000; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(90deg,#c8a45c,#e6cf9c); color:#1a1205; }
.btn-gold:hover { filter:brightness(1.05); background: linear-gradient(90deg,#c8a45c,#e6cf9c); }
.btn-outline { background:#fff; border:1.5px solid #d9d4e6; color:#333; }

.tabs { display:flex; gap:8px; background:#efecf5; padding:5px; border-radius:14px; margin-bottom:18px; }
.tabs button { flex:1; padding:11px; border-radius:10px; font-weight:600; font-size:14px; color:#555; min-height:44px; }
.tabs button.active { background:#fff; color:#111; box-shadow: var(--shadow-sm); }

/* Esthéticiennes en pastilles */
.staff-pick { display:grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.staff-opt { border:1.5px solid #e2def0; border-radius:14px; padding:14px 8px; text-align:center; cursor:pointer; transition: all .2s var(--ease); background:#fff; }
.staff-opt .ini { width:46px;height:46px;border-radius:50%;margin:0 auto 8px; display:grid;place-items:center; font-weight:700; color:#fff; background: var(--brand-gold); }
.staff-opt.sel { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,17,21,.08); }
.staff-opt span { font-size:13px; font-weight:600; }

/* Créneaux */
.slots { display:grid; grid-template-columns: repeat(auto-fill,minmax(84px,1fr)); gap:10px; }
.slot { padding:12px 6px; border:1.5px solid #e2def0; border-radius:10px; text-align:center; font-weight:600; font-size:14px; cursor:pointer; background:#fff; transition: all .15s var(--ease); min-height:46px; }
.slot:hover { border-color: var(--brand-gold); }
.slot.sel { background: var(--ink); color:#fff; border-color: var(--ink); }
.slot.taken { opacity:.35; cursor:not-allowed; text-decoration: line-through; }

/* Toast / alerts */
.alert { padding:12px 16px; border-radius:12px; font-weight:600; font-size:14px; margin-bottom:14px; }
.alert-ok { background:#dcfce7; color:#166534; }
.alert-err { background:#fee2e2; color:#991b1b; }

.appt-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border:1px solid #ece9f1; border-radius:12px; margin-bottom:10px; }
.appt-item .meta { font-size:14px; } .appt-item .meta strong{ display:block; }
.appt-item button { color:#b91c1c; font-weight:600; font-size:13px; }

.badge { display:inline-block; padding:3px 10px; border-radius:100px; font-size:12px; font-weight:700; }
.badge-open { background:#dcfce7; color:#166534; } .badge-closed { background:#f3f4f6; color:#6b7280; }

/* Grille planning (espace pro) */
.grid-plan { width:100%; border-collapse:separate; border-spacing:6px; }
.grid-plan th { font-size:12px; font-weight:700; opacity:.7; padding:6px; }
.grid-plan td { text-align:center; }
.cell { padding:11px 4px; border-radius:9px; border:1.5px solid #e2def0; font-size:13px; font-weight:600; cursor:pointer; background:#fff; transition: all .15s var(--ease); min-height:42px; }
.cell.on { background:#dcfce7; border-color:#86efac; color:#166534; }
.cell.room { background:#fef3c7; border-color:#fcd34d; color:#92400e; }
.cell.busy { background:#fee2e2; border-color:#fca5a5; color:#991b1b; cursor:not-allowed; }
.scroll-x { overflow-x:auto; }

/* ===== Devis en ligne ===== */
.quote-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media(max-width:760px){ .quote-grid{ grid-template-columns:1fr; } }
.qcat { font-size:20px; margin-bottom:12px; }
.qcat.women { color:var(--f-primary); } .qcat.men { color:var(--h-accent); }
.zone-list { display:flex; flex-direction:column; gap:8px; }
.zone-row { display:flex; align-items:center; gap:12px; width:100%; text-align:start;
  padding:13px 14px; border:1.5px solid #e2def0; border-radius:12px; background:#fff; transition:all .15s var(--ease); min-height:54px; }
.zone-row:hover { border-color:var(--brand-gold); }
.zone-row.sel { border-color:var(--ink); background:#fbfaff; box-shadow:0 0 0 3px rgba(15,17,21,.06); }
.zr-check { width:24px; height:24px; border-radius:7px; border:1.5px solid #cfc9de; display:grid; place-items:center;
  font-weight:800; color:#fff; flex:0 0 auto; }
.zone-row.sel .zr-check { background:var(--ink); border-color:var(--ink); }
.zr-name { flex:1; font-weight:600; font-size:15px; }
.zr-price { font-weight:700; white-space:nowrap; } .zr-price small{ font-weight:400; opacity:.55; font-size:12px; }
.quote-summary { position:sticky; bottom:0; }
.switch-row { display:flex; align-items:center; gap:10px; padding:8px 0; font-size:14px; font-weight:500; cursor:pointer; }
.switch-row input { width:20px; height:20px; accent-color:var(--brand-gold); }
.total-box { display:flex; align-items:center; justify-content:space-between; margin:14px 0 4px;
  padding:16px; background:var(--ink); color:#fff; border-radius:14px; }
.total-box strong { font-size:26px; color:var(--brand-gold-soft); }
.quote-actions { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.quote-actions a, .quote-actions button { text-decoration:none; text-align:center; line-height:24px; }

/* Séparateur "ou" */
.or-divider { display:flex; align-items:center; gap:12px; margin:14px 0 4px; color:#9a96a8; font-size:13px; }
.or-divider::before, .or-divider::after { content:""; flex:1; height:1px; background:#e6e2ee; }

/* ===== Rappel ===== */
.cb-when { display:flex; gap:8px; }
.cb-when label { flex:1; }

/* ===== Devis interactif (carte du corps) ===== */
.quote-layout { display:grid; grid-template-columns:minmax(240px,340px) 1fr; gap:30px; align-items:start; }
@media(max-width:820px){ .quote-layout{ grid-template-columns:1fr; } }
.body-wrap { text-align:center; position:sticky; top:78px; }
@media(max-width:820px){ .body-wrap{ position:static; } }
.bodymap { width:100%; max-width:300px; height:auto; touch-action:manipulation; }
.bodymap .silo * { fill:#e7e3ef; }
.bodymap.men .silo * { fill:#dde1e8; }
.zhot ellipse { fill:rgba(15,17,21,0); stroke:rgba(15,17,21,.28); stroke-width:1.5; stroke-dasharray:3 3; cursor:pointer; transition:fill .2s var(--ease), stroke .2s var(--ease); }
.zhot:hover ellipse, .zhot.hl ellipse { fill:rgba(200,164,92,.35); stroke:var(--brand-gold); stroke-dasharray:none; }
.bodymap.women .zhot.sel ellipse { fill:rgba(236,72,153,.55); stroke:#db2777; stroke-dasharray:none; }
.bodymap.men .zhot.sel ellipse { fill:rgba(212,54,31,.55); stroke:#d4361f; stroke-dasharray:none; }
.zhot:focus-visible { outline:none; }
.zhot:focus-visible ellipse { stroke:var(--brand-gold); stroke-width:2.5; }
.zbadge circle { fill:#fff; stroke:#cfc9de; stroke-width:1.5; }
.zhot.sel .zbadge circle { fill:var(--ink); stroke:var(--ink); }
.zbadge text { font:700 11px Inter, sans-serif; fill:#333; }
.zhot.sel .zbadge text { fill:#fff; }
.map-hint { font-size:13px; opacity:.6; margin-top:12px; }

.qlist { display:flex; flex-direction:column; gap:8px; }
.qlist li { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid #ece9f1; border-radius:10px; }
.qlist .qempty { justify-content:center; color:#9a96a8; border-style:dashed; font-size:14px; }
.qnum { width:24px; height:24px; border-radius:50%; background:var(--ink); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:700; flex:0 0 auto; }
.qname { flex:1; font-weight:600; font-size:15px; }
.qprice { font-weight:700; white-space:nowrap; }
.qdel { color:#b91c1c; font-size:20px; line-height:1; width:30px; height:30px; flex:0 0 auto; border-radius:8px; }
.qdel:hover { background:#fee2e2; }
.full-chip { width:100%; display:flex; justify-content:space-between; align-items:center; margin-top:10px;
  padding:13px 14px; border:1.5px dashed #cfc9de; border-radius:12px; font-weight:600; background:#fff; transition:all .2s var(--ease); }
.full-chip:hover { border-color:var(--brand-gold); }
.full-chip.on { border-style:solid; border-color:var(--ink); background:#fbfaff; }
.full-chip strong { color:#b8860b; }

/* Modal devis imprimable */
.quote-modal { position:fixed; inset:0; z-index:3000; display:none; background:rgba(0,0,0,.6); padding:20px; overflow:auto; }
.quote-modal.open { display:grid; place-items:start center; }
.qm-card { background:#fff; border-radius:18px; max-width:520px; width:100%; margin-top:40px; padding:26px; position:relative; box-shadow:var(--shadow-lg); }
.qm-close { position:absolute; top:12px; inset-inline-end:16px; font-size:28px; line-height:1; color:#888; }
.q-doc-head { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px solid var(--ink); padding-bottom:12px; margin-bottom:16px; }
.q-logo { font-family:var(--font-h-display); font-weight:700; font-size:26px; letter-spacing:.05em; text-transform:uppercase; }
.q-logo span { font-weight:300; }
.q-meta { text-align:end; font-size:13px; opacity:.7; }
.q-table { width:100%; border-collapse:collapse; }
.q-table th { text-align:start; font-size:12px; text-transform:uppercase; letter-spacing:.06em; opacity:.6; padding:6px 4px; border-bottom:1px solid #eee; }
.q-table td { padding:10px 4px; border-bottom:1px solid #f3f1f7; font-size:15px; }
.q-table td:last-child, .q-table th:last-child { text-align:end; white-space:nowrap; }
.q-table tfoot .disc td { color:#166534; }
.q-table tfoot .grand td { font-weight:800; font-size:18px; border-top:2px solid var(--ink); padding-top:12px; }
.q-foot { font-size:12px; opacity:.65; margin-top:16px; text-align:center; line-height:1.5; }
.qm-actions { display:flex; flex-direction:column; gap:10px; margin-top:20px; }

@media print {
  body * { visibility:hidden; }
  #quote-modal, #quote-modal * { visibility:visible; }
  #quote-modal { position:absolute; inset:0; background:#fff; display:block; padding:0; overflow:visible; }
  .qm-card { box-shadow:none; margin:0; max-width:100%; border-radius:0; }
  .qm-close, .qm-actions, .wa-float { display:none !important; }
}

