/* =============================================================
   Atelier Cils — styles
   Palette nude / rose poudré, typographie Cormorant + Inter
   ============================================================= */
:root {
  --bg: #fbf8f6;
  --surface: #ffffff;
  --surface-2: #f4eeea;
  --text: #2b2321;
  --muted: #7d706b;
  --line: #e9e0db;
  --accent: #b5776a;
  --accent-strong: #9a5f53;
  --accent-soft: #f3e3de;
  --ok: #3f8f6b;
  --ok-soft: #e3f2ea;
  --warn: #b7791f;
  --warn-soft: #fbf0dc;
  --danger: #c0473d;
  --danger-soft: #fbe6e3;
  --done: #5b6b8c;
  --done-soft: #e7ebf4;
  --on-accent: #ffffff;
  --btn-radius: 999px;
  --cover-bg: radial-gradient(120% 140% at 20% 10%, #f7e4dc 0%, #e9c9bd 45%, #c99484 100%);
  --cover-ink: rgba(80, 40, 32, 0.55);
  --cat-0: #b5776a;
  --cat-1: #8b7bb8;
  --cat-2: #5f9c8f;
  --cat-3: #c89a4b;
  --cat-4: #6b8fbf;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 35, 0.05), 0 6px 24px rgba(60, 40, 35, 0.06);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
h3 { font-size: 1rem; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.cap::first-letter { text-transform: uppercase; }
.grow { flex: 1; min-width: 0; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  padding: 0.65em 1.2em; border-radius: var(--btn-radius); border: 1px solid transparent;
  font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn-outline { border-color: var(--accent); color: var(--accent-strong); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.danger-text { color: var(--danger); }
.btn-lg { padding: 0.85em 1.6em; font-size: 1.02rem; }
.btn-sm { padding: 0.45em 0.9em; font-size: 0.88rem; }
.btn.full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.btn-row.end { justify-content: flex-end; }
.btn-row.between { justify-content: space-between; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text);
}
.icon-btn:hover:not(:disabled) { background: var(--surface-2); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.sm { width: 28px; height: 28px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-weight: 600; }
.linklike:hover { color: var(--accent-strong); }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 500;
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: 0 clamp(16px, 4vw, 40px); height: 64px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--text); text-decoration: none; margin-right: auto; }
.topbar-link { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; font-weight: 600; }
.topbar-link:hover { color: var(--text); }
.topbar-spacer { width: 80px; }

/* ---------- Accueil cliente ---------- */
.client { max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 40px; }
.client.narrow { max-width: 880px; }
.cover {
  height: clamp(140px, 26vw, 300px); border-radius: var(--radius);
  background: var(--cover-bg); background-size: cover; background-position: center;
  color: var(--cover-ink); display: grid; place-items: center; overflow: hidden;
}
.cover svg { width: min(70%, 640px); height: auto; }
.profile { display: flex; align-items: center; gap: 1.2rem; margin: -40px 0 0; padding: 0 12px 16px; position: relative; }
.monogram {
  flex: none; width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--accent-strong);
  background: linear-gradient(145deg, var(--surface), var(--accent-soft)); border: 4px solid var(--bg); overflow: hidden; box-shadow: var(--shadow);
}
.profile-info { flex: 1; padding-top: 40px; min-width: 0; }
.profile-info h1 { margin-bottom: 0.15em; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; margin: 0; color: var(--muted); font-size: 0.92rem; }
.status { font-weight: 600; }
.status.open { color: var(--ok); }
.status.closed { color: var(--danger); }
.share-btn {
  margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0;
  cursor: pointer; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.share-btn .ico { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.tabs { display: flex; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 28px; position: sticky; top: 64px; background: var(--bg); z-index: 10; }
.tabs a {
  padding: 14px 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a.active { color: var(--accent-strong); border-color: var(--accent); }
.services-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.services-head h2 { margin: 0; font-size: 2rem; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; min-width: min(340px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted);
}
.search input { border: 0 !important; outline: 0 !important; background: none !important; padding: 0 !important; flex: 1; min-width: 0; color: var(--text); }
.search:focus-within { border-color: var(--accent); }
.cat-title { margin: 26px 0 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.service-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.15s, border-color 0.15s;
}
.service-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.service-thumb {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
}
.service-thumb .ico { width: 24px; height: 24px; }
.service-thumb.sm { width: 40px; height: 40px; }
.service-main { flex: 1; min-width: 0; }
.service-main h3 { margin: 0 0 4px; font-size: 1.02rem; }
.service-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.85rem; color: var(--muted); }
.details-link { color: var(--text); font-size: 0.85rem; }
.service-price { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* À propos */
.about { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.about h2 { font-size: 2rem; }
.about h3 { margin-top: 1.6em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--surface-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center; }
.map-placeholder p { max-width: 420px; margin: 0; }
.contact-list, .policy { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.policy li { padding-left: 18px; position: relative; color: var(--muted); }
.policy li::before { content: ""; position: absolute; left: 4px; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: sticky; top: 130px; }
.hours-card h3 { margin-top: 0; }
.hours { margin: 0; display: grid; gap: 2px; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 7px 10px; border-radius: 8px; }
.hours div.today { background: var(--accent-soft); font-weight: 600; }
.hours dt { margin: 0; }
.hours dd { margin: 0; text-align: right; color: var(--muted); }
.hours div.today dd { color: var(--text); }
.site-footer {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 20px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* Fiche prestation */
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.service-detail { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.service-hero { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent) 45%, var(--surface))); color: var(--accent-strong); }
.service-hero .ico { width: 64px; height: 64px; }
.service-detail h1 { margin-top: 0.3em; }
.detail-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0 24px; }
.detail-box > div { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; }
.label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Tunnel de réservation ---------- */
.booking-top { justify-content: space-between; }
.booking-top .brand { margin-right: 0; }
.stepper { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.stepper li + li::before { content: ""; width: clamp(16px, 4vw, 56px); height: 1px; background: var(--line); margin: 0 10px; }
.stepper .dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface);
}
.stepper .current .dot, .stepper .done .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stepper .current { color: var(--text); font-weight: 600; }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: calc(100vh - 64px); }
.booking-main { padding: 28px clamp(16px, 4vw, 48px) 48px; max-width: 820px; width: 100%; }
.booking-main h1 { font-size: 2rem; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 14px; }
.summary { background: var(--surface-2); padding: 28px clamp(16px, 3vw, 32px); border-left: 1px solid var(--line); }
.summary h2 { font-size: 1.6rem; }
.summary-card { background: var(--surface); border-radius: var(--radius); padding: 6px 20px 16px; position: sticky; top: 88px; }
.summary .monogram { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; border-width: 0; box-shadow: none; }
.sum-row { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sum-row > div { display: grid; }
.sum-row > .ico { width: 22px; height: 22px; margin: 0 9px; color: var(--accent-strong); }
.sum-total { display: flex; justify-content: space-between; padding: 16px 0 6px; font-size: 1.05rem; }

.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.choice .grow { display: grid; }
.choice:hover, .choice.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }

.datetime { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dt-head { padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.dt-body { display: grid; grid-template-columns: 330px 1fr; }
.cal { padding: 14px 18px 20px; border-right: 1px solid var(--line); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav .icon-btn { border: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; }
.cal-dow { font-size: 0.78rem; color: var(--muted); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.day {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: color-mix(in srgb, var(--muted) 60%, transparent); cursor: default; font-weight: 500;
}
.day.available { background: var(--surface-2); color: var(--text); cursor: pointer; }
.day.available:hover { background: var(--accent-soft); }
.day.selected { background: var(--accent) !important; color: var(--on-accent) !important; }
.day.out { visibility: hidden; }
.slots { padding: 18px 22px; }
.slots h3 { margin-bottom: 14px; }
.slot-group + .slot-group { margin-top: 16px; }
.slot-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot {
  padding: 9px 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500;
}
.slot:hover { border-color: var(--accent); color: var(--accent-strong); }
.slot.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); align-items: end; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form .check, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input, .radio-row input, .switch input { accent-color: var(--accent); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.radio-row { border: 0; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; }
.radio-row legend { font-weight: 500; font-size: 0.88rem; margin-bottom: 6px; width: 100%; }
.radio-row label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 10px 14px; border-radius: var(--radius-sm); margin: 0; font-size: 0.9rem; }

/* Confirmation */
.confirm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: 12px; }
.confirm-icon .ico { width: 32px; height: 32px; }
.lead { font-size: 1.15rem; font-weight: 500; }
.confirm-list, .info-list { margin: 16px 0; display: grid; gap: 0; }
.confirm-list div, .info-list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt, .info-list dt { color: var(--muted); }
.confirm-list dd, .info-list dd { margin: 0; }
.manage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-done { background: var(--done-soft); color: var(--done); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-cancel { background: var(--danger-soft); color: var(--danger); }

/* ---------- Modale & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(40, 25, 22, 0.42); display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
.modal {
  position: relative; background: var(--surface); border-radius: 18px; padding: 26px; width: min(560px, 100%);
  max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(40, 25, 22, 0.25);
}
.modal-wide { width: min(720px, 100%); }
.modal h2 { padding-right: 40px; }
.modal h3 { margin-top: 1.2em; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
@keyframes fade { from { opacity: 0; } }
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 0.9rem; transition: 0.2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   Espace pro
   ============================================================= */
body[data-area="pro"] { background: #f6f4f3; }
.pro-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; height: 60px;
  padding: 0 clamp(12px, 2vw, 24px); background: var(--surface); border-bottom: 1px solid var(--line);
}
.pro-brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.pro-brand span { font-family: var(--sans); font-size: 0.65rem; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; vertical-align: 3px; }
.pro-nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.pro-nav a {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-weight: 500; font-size: 0.9rem; white-space: nowrap;
}
.pro-nav a:hover { background: var(--surface-2); color: var(--text); }
.pro-nav a.active { background: var(--accent-soft); color: var(--accent-strong); }
.pro-actions { display: flex; gap: 8px; align-items: center; }
.pro-page { max-width: 1200px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 48px; }
.pro-page h1 { font-size: 2rem; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.page-head h1 { margin: 0 auto 0 0; }
.count { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 2px 9px; border-radius: 999px; vertical-align: middle; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack .card + .card { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 20px; }
.kpis.small { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.kpi span { font-size: 0.8rem; color: var(--muted); }
.kpi strong { font-size: 1.7rem; font-weight: 600; }
.kpi small { color: var(--muted); font-size: 0.78rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.appt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.appt {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.appt:hover { border-color: var(--accent); }
.appt .grow { display: grid; }
.appt small { color: var(--muted); }
.appt-time { display: grid; width: 74px; flex: none; }
.appt-time small { color: var(--muted); font-size: 0.75rem; }
.appt-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.cat-0 { --c: var(--cat-0); } .cat-1 { --c: var(--cat-1); } .cat-2 { --c: var(--cat-2); } .cat-3 { --c: var(--cat-3); } .cat-4 { --c: var(--cat-4); }
.appt-bar, .sw { background: var(--c); }
.copy-row { display: flex; gap: 8px; margin: 10px 0; }
.copy-row input { flex: 1; min-width: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist .done a { color: var(--muted); text-decoration: line-through; }
.checklist .tick .ico { width: 13px; height: 13px; }

/* Calendrier */
.cal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: calc(100vh - 60px); }
.cal-side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px; overflow-y: auto; }
.cal-side h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 22px 0 10px; }
.mini { margin-top: 18px; }
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 0.92rem; }
.mini-head .icon-btn { border: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.mini-grid.dow span { font-size: 0.7rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.mini-grid button { position: relative; aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font-size: 0.8rem; cursor: pointer; }
.mini-grid button:hover { background: var(--surface-2); }
.mini-grid button.out { color: #c4bab6; }
.mini-grid button.today { color: var(--accent-strong); font-weight: 700; }
.mini-grid button.sel { background: var(--accent); color: #fff; }
.mini-grid button i { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.mini-grid button.sel i { background: #fff; }
.filters, .legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.88rem; }
.filters label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filters input { accent-color: var(--accent); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.st-terminé-sw { background: var(--done); }
.st-absent-sw { background: var(--warn); }
.st-annulé-sw { background: repeating-linear-gradient(45deg, var(--danger) 0 3px, transparent 3px 6px); border: 1px solid var(--danger); }
.block-sw { background: repeating-linear-gradient(45deg, #bbb 0 3px, #eee 3px 6px); }
.cal-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 18px 0; }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-toolbar h2 { margin: 0 auto 0 8px; font-size: 1.4rem; }
.seg { display: flex; align-items: center; gap: 6px; }
.seg.toggle { background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg.toggle.wrap { flex-wrap: wrap; border-radius: 14px; }
.seg.toggle button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.seg.toggle button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.tabs-modal { width: max-content; margin-bottom: 16px; }

.week { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.week-head, .week-grid { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); }
.week-head { border-bottom: 1px solid var(--line); }
.wh { border: 0; background: none; padding: 8px 0; cursor: pointer; display: grid; justify-items: center; border-left: 1px solid var(--line); }
.wh small { color: var(--muted); text-transform: capitalize; font-size: 0.75rem; }
.wh strong { font-size: 1.15rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.wh.today strong { background: var(--accent); color: #fff; }
.week-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.week-grid { position: relative; }
.hours-col { position: relative; }
.hours-col span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 0.72rem; color: var(--muted); }
.hours-col span:first-child { display: none; }
.day-col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(135deg, #faf8f7 0 6px, #f3efed 6px 12px); cursor: copy; }
.open-band { position: absolute; left: 0; right: 0; background: var(--surface); }
.hline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.ev {
  position: absolute; left: 3px; right: 3px; z-index: 2; overflow: hidden; text-align: left; cursor: pointer;
  padding: 4px 7px; border-radius: 7px; border: 0; border-left: 3px solid var(--c);
  background: color-mix(in srgb, var(--c) 16%, white); color: var(--text); font-size: 0.76rem; line-height: 1.25;
  display: flex; flex-direction: column;
}
.ev:hover { background: color-mix(in srgb, var(--c) 26%, white); }
.ev strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.st-terminé { --c: var(--done); }
.ev.st-absent { --c: var(--warn); }
.ev.st-annulé { opacity: 0.55; text-decoration: line-through; background: repeating-linear-gradient(45deg, #fff 0 5px, var(--danger-soft) 5px 10px); --c: var(--danger); }
.ev.block { --c: #9b9b9b; background: repeating-linear-gradient(45deg, #f1f1f1 0 6px, #e6e6e6 6px 12px); }
.now-line { position: absolute; height: 2px; background: var(--danger); z-index: 3; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.appt-list.big { padding-bottom: 24px; overflow-y: auto; }

.bk-head { display: flex; gap: 14px; align-items: flex-start; }
.bk-head > div { flex: 1; }
.bk-head h2 { margin-bottom: 2px; padding-right: 0; }
.bk-head .badge { margin-right: 44px; }
.client-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.client-head .monogram { width: 64px; height: 64px; border-radius: 50%; font-size: 1.5rem; border-width: 0; box-shadow: none; }
.client-head h2 { margin: 0; }

/* Tables & listes admin */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #fcfaf9; }
.table tbody tr:last-child td { border-bottom: 0; }
.svc-admin { list-style: none; padding: 0; margin: 0; }
.svc-admin li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.svc-admin li:first-child { border-top: 0; }
.svc-admin .grow { display: grid; }
.svc-admin li.inactive { opacity: 0.6; }

.hours-form { display: grid; gap: 4px; }
.hrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.switch { display: flex; gap: 10px; align-items: center; width: 120px; font-weight: 500; cursor: pointer; }
.ranges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ranges input { width: 104px !important; padding: 7px 8px !important; }
.hrow:has(.switch input:not(:checked)) .ranges { opacity: 0.35; pointer-events: none; }
.hours-form .btn { justify-self: start; margin-top: 12px; }
.chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: flex; align-items: center; gap: 6px; background: var(--surface-2); padding: 4px 6px 4px 12px; border-radius: 999px; font-size: 0.85rem; }
.chips button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 2px; color: var(--muted); }
.btn-row label.btn { cursor: pointer; }

/* Connexion */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 120% at 10% 0%, #f7e4dc, var(--bg) 60%); }
.login-card { width: min(380px, 100%); background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 14px; text-align: center; justify-items: center; }
.login-card h1 { margin: 6px 0 0; font-size: 1.8rem; }
.login-card p { margin: 0; }
.login-card label { display: grid; gap: 6px; width: 100%; text-align: left; font-size: 0.88rem; font-weight: 500; }
.login-card .btn { width: 100%; }

/* Très petits écrans : l'indicateur d'étapes (jusqu'à 5) doit tenir sur une ligne */
@media (max-width: 380px) {
  .stepper li + li::before { width: 10px; margin: 0 4px; }
  .stepper .dot { width: 28px; height: 28px; }
}

/* ---------- Plusieurs prestations ---------- */
.tick-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: var(--on-accent); }
.choice.selected .tick-box { background: var(--accent); border-color: var(--accent); }
.tick-box .ico { width: 14px; height: 14px; }
.choice:disabled { opacity: 0.45; cursor: not-allowed; }
.cart-bar {
  position: sticky; bottom: 12px; z-index: 5; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cart-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sum-add { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 4px; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.sum-row .icon-btn.sm { border: 0; }

/* ---------- Pages légales ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-page p, .legal-page li { color: var(--text); line-height: 1.65; }
.legal-page ul { padding-left: 20px; }
mark.todo { background: var(--warn-soft); color: var(--warn); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.check span a { color: var(--accent-strong); }

/* ---------- Paiement ---------- */
.sum-pay { display: flex; justify-content: space-between; gap: 1rem; padding: 4px 0; font-size: 0.92rem; }
.sum-pay strong { color: var(--accent-strong); }
.secure { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.secure .ico { color: var(--ok); }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.pay-card.center { justify-items: center; text-align: center; padding: 40px 24px; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-amount strong { font-size: 2rem; font-family: var(--serif); }
.demo-banner { background: var(--warn-soft); color: var(--text); border-left: 3px solid var(--warn); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.pay-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.92rem; }
.revolut-btn { justify-self: start; }
.verify-card { border-color: var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.verify-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.verify-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.verify-list .grow { display: grid; }
.ev.st-en.attente, .ev.pending { border-left-style: dashed; opacity: 0.8; }

/* ---------- Thème : logo, bannière photo ---------- */
.monogram img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.has-image { color: rgba(255, 255, 255, 0.85); }
.about-grid.single { grid-template-columns: minmax(0, 1fr); }
.is-preview .topbar-link { pointer-events: none; }

/* ---------- Page Apparence ---------- */
.pro-page.wide { max-width: 1440px; }
.appearance { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 10px; }
.preset {
  display: grid; gap: 10px; padding: 12px; text-align: left; cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.08); transition: transform 0.12s, border-color 0.12s;
}
.preset:hover { transform: translateY(-1px); }
.preset.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.swatches { display: flex; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(127, 127, 127, 0.25); margin-right: -6px; }
.preset-name { font-size: 1.05rem; line-height: 1.1; }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-field { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.color-field input { width: 42px !important; height: 42px; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: none !important; cursor: pointer; flex: none; }
.color-field span { display: grid; font-size: 0.85rem; min-width: 0; }
.color-field small { font-size: 0.75rem; }
.color-field .hex {
  margin-top: 4px; width: 104px !important; padding: 4px 8px !important; font-family: ui-monospace, Consolas, monospace;
  font-size: 16px !important; /* 16px : évite le zoom automatique de Safari iOS */ text-transform: lowercase;
}
.color-field input[type="color"] { min-width: 44px; min-height: 44px; } /* zone tactile confortable */
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.upload-row .monogram { width: 64px; height: 64px; border-radius: 16px; font-size: 1.4rem; border-width: 0; box-shadow: none; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.thumb.wide { width: 160px; height: 64px; border-radius: 10px; }
.card .seg.toggle { width: max-content; max-width: 100%; flex-wrap: wrap; margin-bottom: 10px; }
.ap-preview { position: sticky; top: 76px; }
.ap-preview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ap-frame-wrap { background: #e9e6e4; border-radius: var(--radius); padding: 10px; display: flex; justify-content: center; }
.ap-frame-wrap iframe { width: 100%; height: calc(100vh - 170px); min-height: 480px; border: 0; border-radius: 10px; background: #fff; box-shadow: var(--shadow); transition: width 0.25s; }
.ap-frame-wrap.mobile iframe { width: 390px; max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .appearance { grid-template-columns: 1fr; }
  .ap-preview { position: static; order: -1; }
  .ap-frame-wrap iframe { height: 520px; min-height: 0; }
}
@media (max-width: 1000px) {
  .booking { grid-template-columns: 1fr; }
  .summary { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; }
  .summary h2 { display: none; }
  .summary-card { position: static; }
  .step-label { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cal-layout { grid-template-columns: 1fr; height: auto; }
  .cal-side { display: none; }
  .week { height: calc(100vh - 140px); }
  .pro-nav a span { display: none; }
}
@media (max-width: 760px) {
  h1 { font-size: 1.8rem; }
  .about-grid, .service-detail { grid-template-columns: 1fr; }
  .service-detail .service-hero { max-width: 160px; }
  .hours-card { position: static; }
  .dt-body { grid-template-columns: 1fr; }
  .cal { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-box { grid-template-columns: 1fr; }
  .service-row { display: grid; grid-template-columns: 44px 1fr auto; padding: 14px; gap: 10px 12px; }
  .service-row .service-thumb { width: 44px; height: 44px; }
  .service-main { grid-column: 2 / 4; }
  .service-price { grid-column: 2; }
  .service-row .btn { grid-column: 3; }
  .profile { flex-wrap: wrap; gap: 0.8rem; margin-top: -32px; padding: 0 4px 12px; }
  .monogram { width: 76px; height: 76px; font-size: 1.8rem; }
  .profile-info { padding-top: 0; flex-basis: 100%; order: 2; }
  .share-btn { margin: 32px 0 0 auto; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .booking-top .brand { display: none; }
  .booking-top { justify-content: center; }
  .topbar-spacer { display: none; }
  .hide-sm { display: none; }
  .pro-brand { display: none; }
  .pro-top { gap: 8px; }
  .confirm-list div, .info-list div { grid-template-columns: 1fr; gap: 2px; }
  .kpis.small { grid-template-columns: 1fr 1fr 1fr; }
  .kpi strong { font-size: 1.3rem; }
}
