/* Thème « Rose de Damas, couleurs bois » : lin clair, bois doré, verre dépoli, Fraunces + DM Sans. */
:root {
  --bg: #FBF8F3; --card: rgba(255, 252, 246, .62); --card-solid: #FFFDF9; --glass-line: rgba(255, 255, 255, .9);
  --ink: #2E2116; --muted: #66503F; --line: #EADFCF;
  --green: #8F6440; --green-dark: #3A2A1E; --green-soft: #F3E8D8;
  --primary: #E8D3B4; --primary-hover: #DFC6A2; --primary-ink: #3A2A1E; --wood-light: #A97C55;
  --accent: #9A6B44; --accent-soft: #F7EAD6;
  --red: #A84A36; --red-soft: #F8E5DE; --gold: #7A5A16; --gold-soft: #F6EDD6;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(110, 75, 45, .04), 0 12px 34px rgba(110, 75, 45, .08);
  --blur: blur(20px) saturate(125%);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); }
/* halos de lumière douce derrière les cartes en verre */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 620px at 100% 0%, rgba(241, 220, 188, .75), transparent 70%),
    radial-gradient(560px 560px at 25% 100%, rgba(230, 210, 184, .6), transparent 70%),
    radial-gradient(420px 420px at 65% 45%, rgba(252, 241, 226, .9), transparent 70%); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: 40px; line-height: 1.05; font-weight: 300; letter-spacing: -.02em; }
h1 em { font-style: italic; font-weight: 400; color: var(--wood-light); }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #7A4C2C; }
a:hover { color: #55331C; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 2px; }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { background: rgba(255, 252, 246, .45); color: var(--ink); border: 1px solid var(--glass-line); box-shadow: 0 20px 50px rgba(110, 75, 45, .09); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); padding: 24px 14px; margin: 16px 0 16px 16px; border-radius: 28px; position: sticky; top: 16px; height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 26px; }
.brand { padding: 0 10px; display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 60px; height: 60px; flex: none; border-radius: 50%; box-shadow: 0 4px 14px rgba(110, 75, 45, .18); }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 25px; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 13px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; padding: 11px 12px; border-radius: 16px; text-align: left; font-size: 15.5px; }
.nav button:hover { background: rgba(169, 124, 85, .1); }
.nav button.on { background: #EFE2CF; color: var(--primary-ink); font-weight: 600; }
.nav svg { width: 21px; height: 21px; flex: none; }
.nav .s { display: none; }
.side-foot { margin-top: auto; padding: 0 10px; font-size: 13px; }
.side-foot a { color: #7A4C2C; }
main { padding: 30px clamp(16px, 3.2vw, 48px) 80px; max-width: 1560px; width: 100%; margin: 0 auto; }
.demo { background: rgba(246, 237, 214, .75); color: var(--gold); border-radius: 14px; padding: 9px 14px; font-size: 13.5px; margin-bottom: 22px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Composants ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); font-weight: 550; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: #D6C2A6; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; box-shadow: 0 8px 22px rgba(169, 124, 85, .18); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { color: var(--red); border-color: #e9c9c4; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.sm { min-height: 36px; padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

.card { background: var(--card); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.card > h2 { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cols2 > .card { margin-bottom: 0; }
.cols2 { margin-bottom: 18px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; text-align: left; display: block; width: 100%; }
.tile:hover { background: rgba(255, 252, 246, .8); }
.tile span { display: block; color: var(--muted); font-size: 14px; }
.tile b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; margin: 6px 0 2px; }
.tile small { color: var(--muted); font-size: 13px; }
.tile.hl { background: rgba(239, 226, 207, .75); color: var(--ink); }
.tile.hl span, .tile.hl small { color: var(--muted); }

.list { padding: 6px; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: 0; border-radius: 12px; padding: 11px 12px; text-align: left; }
.row:hover { background: rgba(239, 226, 207, .4); }
.row + .row { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.row-time { font-weight: 650; min-width: 54px; font-variant-numeric: tabular-nums; }
.row-time small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; text-transform: capitalize; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-weight: 600; }
.row-main small { color: var(--muted); font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { text-align: right; font-size: 14px; color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); padding: 14px 8px; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: #F1EADF; color: #5E4A3A; white-space: nowrap; }
.badge.green { background: #EDF1E4; color: #3F5A2E; }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.accent { background: var(--accent-soft); color: #8A4F2F; }

/* ---------- Formulaires ---------- */
label { display: block; font-size: 14px; font-weight: 600; color: #5A4534; margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #E3D5C2; border-radius: 14px; background: rgba(255, 255, 255, .85); font-weight: 400; font-size: 16px; min-height: 46px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; display: inline-block; margin: 0; accent-color: var(--green); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.subform { background: rgba(239, 226, 207, .35); border-radius: 12px; padding: 14px 14px 2px; margin-bottom: 14px; }
.form-info { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14.5px; }
.form-error { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14.5px; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.search { margin: 0 0 14px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.choices label { margin: 0; border: 1px solid #E3D5C2; border-radius: 14px; padding: 12px; display: flex; gap: 8px; align-items: center; font-weight: 550; background: rgba(255, 255, 255, .85); }
.choices label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.shanti-box { align-items: flex-start; border: 1px solid #E3D5C2; border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, .85); }
.shanti-box input { margin-top: 2px; flex: none; accent-color: var(--accent); }
.shanti-box span { display: flex; flex-direction: column; gap: 2px; }
.shanti-box small { color: var(--muted); font-weight: 400; font-size: 13px; }
.shanti-box:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.shanti-row td { color: #8A4F2F; background: var(--accent-soft); }
.shanti-card .tiles { margin-bottom: 14px; }

/* ---------- Fenêtre (modale) ---------- */
.modal { position: fixed; inset: 0; background: rgba(46, 33, 22, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 5vh 14px; overflow-y: auto; z-index: 50; }
.modal.open { display: flex; }
.sheet { background: var(--bg); border: 1px solid var(--glass-line); border-radius: 26px; width: 100%; max-width: 520px; box-shadow: 0 24px 60px rgba(70, 45, 25, .22); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.sheet-body { padding: 12px 20px 22px; }
.x { background: none; border: 0; font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 12px; color: var(--muted); }
.x:hover { background: rgba(0, 0, 0, .06); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-bottom: 16px; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 550; }
.timeline { list-style: none; margin: 0 0 16px; padding: 12px 14px; background: rgba(239, 226, 207, .35); border-radius: 14px; font-size: 14px; color: #5A4534; }
.timeline li + li { margin-top: 5px; }
.timeline li.err { color: var(--red); }
.confirm-msg { margin-bottom: 16px; }
.bigcode { font: 600 26px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-align: center; background: #fff; border: 2px dashed #CDBF9F; border-radius: 14px; padding: 18px 10px; margin-bottom: 14px; }
.msgbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14.5px; margin-bottom: 12px; white-space: pre-wrap; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: min(92vw, 520px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Agenda ---------- */
.ag-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ag-bar h2 { margin: 0 8px; flex: 1; min-width: 180px; }
.seg { display: inline-flex; background: rgba(239, 226, 207, .7); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 550; min-height: 38px; }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(110, 75, 45, .15); }
.ag-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--shadow); }
.ag-head, .ag-body { display: grid; }
.ag-head { border-bottom: 1px solid var(--line); }
.ag-dayh { padding: 10px 4px; text-align: center; background: none; border: 0; border-left: 1px solid var(--line); }
.ag-dayh small { display: block; color: var(--muted); text-transform: capitalize; font-size: 12.5px; }
.ag-dayh b { font-size: 18px; font-family: var(--serif); font-weight: 400; display: inline-block; padding: 1px 9px; border-radius: 99px; }
.ag-dayh.today b { background: var(--primary); color: var(--primary-ink); }
.ag-body { padding: 12px 0 8px; }
.ag-hours { position: relative; }
.ag-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-col { position: relative; border-left: 1px solid var(--line); cursor: cell; }
.shade { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #F4EFE6 0 6px, #ECE6DA 6px 12px); opacity: .75; pointer-events: none; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.ev { position: absolute; left: 4px; right: 4px; border: 0; border-left: 4px solid var(--c, var(--green)); background: var(--cb, var(--green-soft)); border-radius: 8px; padding: 4px 7px; text-align: left; overflow: hidden; font-size: 12.5px; line-height: 1.25; z-index: 2; }
.ev:hover { filter: brightness(.97); }
.ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev small { color: #5E4A3A; }
.ev.ev-termine { opacity: .55; }
.ev.ev-absent { opacity: .5; }
.ev.ev-absent b { text-decoration: line-through; }
.ev { padding-right: 22px; }
.ev-tag { position: absolute; top: 4px; right: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.ev-tag.inline { position: static; display: inline-grid; margin-right: 6px; vertical-align: -3px; }
.ev.ev-bloc { background: repeating-linear-gradient(135deg, #EFEFEC 0 6px, #E4E4E0 6px 12px); border-left-color: #9a9a94; color: #555; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Comptabilité ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid #F1E9DC; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.neg { color: var(--red); }
.progress { height: 12px; background: #EFE4D4; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; margin-top: 8px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; background: none; border: 0; padding: 0; }
.bar i { display: block; width: 100%; max-width: 38px; background: #E6D3B8; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar.on i { background: var(--green); }
.bar small { font-size: 11.5px; color: var(--muted); }
.bar em { font-style: normal; font-size: 10.5px; color: var(--muted); height: 13px; }
.del { background: none; border: 0; color: var(--muted); font-size: 18px; width: 32px; height: 32px; border-radius: 8px; }
.del:hover { background: var(--red-soft); color: var(--red); }

/* ---------- Réseaux sociaux ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kcol { background: rgba(239, 226, 207, .45); border-radius: var(--radius); padding: 12px; }
.kcol h3 { font-size: 16px; margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.kcol h3 span { font: 600 13px var(--sans); color: var(--muted); }
.post { background: rgba(255, 255, 255, .85); border-radius: 14px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(110, 75, 45, .08); cursor: pointer; }
.post b { display: block; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.post-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; flex-wrap: wrap; }
.post-foot span { white-space: nowrap; }

/* ---------- Réglages ---------- */
.hrow { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.hrow label { margin: 0; }
.hrow input[type=time] { margin: 0; }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox input { flex: 1; min-width: 220px; margin: 0; background: rgba(239, 226, 207, .35); }

/* ---------- Page de réservation (clients) ---------- */
.book { max-width: 640px; margin: 0 auto; padding: 22px 16px 60px; }
.book-head { text-align: center; padding: 18px 0 22px; }
.book-head h1 { font-size: 34px; }
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: #EBDDCA; }
.steps i.on { background: var(--wood-light); }
.soin { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.soin:hover { border-color: var(--green); }
.soin-main { flex: 1; }
.soin-main b { font-family: var(--serif); font-weight: 400; font-size: 20px; display: block; }
.soin-main small { color: var(--muted); display: block; margin-top: 2px; }
.soin-price { font-weight: 650; font-size: 18px; white-space: nowrap; text-align: right; }
.soin-photo { width: 84px; height: 84px; object-fit: cover; border-radius: 16px; flex: none; }
.soin-photo-grande { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; display: block; }
.prix-barre { color: var(--muted); font-weight: 400; font-size: .8em; margin-left: 4px; }
.soin-price .prix-barre { display: block; margin: 0; }
.badge-offre { display: inline-block; margin: 4px 0 2px; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: #8A4F2F; font-size: 12.5px; font-weight: 600; }
.soin-main .badge-offre { display: inline-block; }
@media (max-width: 480px) { .soin-photo { width: 64px; height: 64px; border-radius: 12px; } }

/* Bande de photos qui défile (page de réservation) */
.bande { overflow: hidden; margin: 0 -16px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bande-piste { display: flex; gap: 10px; width: max-content; animation: defile calc(var(--n, 6) * 5s) linear infinite; }
.bande:hover .bande-piste { animation-play-state: paused; }
.bande img { height: 160px; width: auto; max-width: 260px; object-fit: cover; border-radius: 16px; display: block; }
@keyframes defile { to { transform: translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) {
  .bande { overflow-x: auto; }
  .bande-piste { animation: none; }
  .bande-piste img[aria-hidden] { display: none; }
}

/* Coordonnées du salon (page de réservation) */
.salon-infos { background: var(--card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 18px; margin-top: 22px; }
.salon-infos h3 { font-size: 21px; margin-bottom: 12px; }
.salon-infos a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: break-word; }
.salon-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; margin-bottom: 14px; }
.salon-grille .field-label, .salon-infos > .field-label { display: block; margin-bottom: 2px; }
.salon-horaires { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 3px; max-width: 320px; }
.salon-horaires li { display: flex; justify-content: space-between; gap: 12px; }

/* Offrir une carte cadeau */
.cadeau-cta { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--radius); padding: 16px; margin-top: 18px; }
.cadeau-cta b { font-family: var(--serif); font-weight: 400; font-size: 19px; display: block; }
.cadeau-cta small { color: var(--muted); display: block; }
.choix-liste { display: grid; gap: 8px; margin-bottom: 16px; }
.choix { display: flex !important; align-items: center; gap: 12px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; font-weight: 400 !important; }
.choix.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.choix input { accent-color: var(--accent); flex: none; margin: 0; }
.choix img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; flex: none; }
.choix-main { flex: 1; }
.choix-main small { color: var(--muted); display: block; }

/* Photos dans le tableau de bord */
.photos-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-vignette { position: relative; }
.photo-vignette img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.photo-vignette button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(46, 33, 22, .72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.photo-soin { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.photo-soin img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.soin-price small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scroll-snap-type: x proximity; }
.day { flex: none; width: 66px; padding: 10px 4px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); text-align: center; scroll-snap-align: start; }
.day small { display: block; font-size: 12px; color: var(--muted); text-transform: capitalize; }
.day b { display: block; font-size: 20px; font-family: var(--serif); font-weight: 400; }
.day.on { background: var(--primary); border-color: var(--wood-light); color: var(--primary-ink); }
.day.on small { color: var(--primary-ink); }
.day[disabled] { opacity: .4; background: none; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 16px; }
.slot { min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--wood-light); }
.slot.on { background: var(--primary); border-color: var(--wood-light); color: var(--primary-ink); }
.recap { background: var(--card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.recap-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.recap-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 18px; }
.back { background: none; border: 0; color: var(--muted); padding: 8px 0; margin-bottom: 8px; min-height: 44px; }
.pay-apple { background: #000; border-color: #000; color: #fff; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 36px; margin: 10px auto 16px; }
.center { text-align: center; }

/* ---------- Version en ligne : connexion et enregistrement ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: 28px; box-shadow: var(--shadow); padding: 30px 26px 22px; text-align: left; }
.auth-card h1 { font-size: 34px; margin-bottom: 6px; }
.auth-logo { display: block; width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; box-shadow: 0 6px 18px rgba(110, 75, 45, .18); }
.auth-info { background: var(--green-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14.5px; }
.link { background: none; border: 0; padding: 8px 0; color: #7A4C2C; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.auth-card .link { display: block; margin: 12px auto 0; }
.side-foot .link { display: block; margin-top: 6px; }
.sync { position: fixed; right: 18px; top: 16px; z-index: 90; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); transition: opacity .4s; }
.sync.ok { color: var(--green-dark); }
.sync.err { color: var(--red); background: var(--red-soft); border-color: var(--red-soft); max-width: min(90vw, 420px); }
.sync.hide { opacity: 0; pointer-events: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .app { display: block; }
  .side { position: fixed; inset: auto 0 0 0; height: auto; margin: 0; border-radius: 22px 22px 0 0; background: rgba(255, 252, 246, .88); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 20; flex-direction: row; }
  .brand, .side-foot { display: none; }
  .nav { flex-direction: row; width: 100%; gap: 0; }
  .nav button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; font-size: 10.5px; padding: 7px 0; align-items: center; letter-spacing: -.01em; }
  .nav .l { display: none; }
  .nav .s { display: inline; }
  main { padding-bottom: 110px; }
  h1 { font-size: 32px; }
  .cols2, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .tile b { font-size: 25px; }
  .row { gap: 10px; padding: 11px 8px; }
  .kanban { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 1fr 1fr; }
  .hrow > label:first-child { grid-column: 1 / -1; }
  .toast { bottom: 92px; }
}

/* ---------- Pastilles de couleur ---------- */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: 0; flex: none; }
.dot.lg { width: 16px; height: 16px; }
.field-label { font-size: 14px; font-weight: 600; color: #5A4534; margin-bottom: 4px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.sw { position: relative; margin: 0; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.sw input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 4px; }
.card .ag-wrap { box-shadow: none; border: 1px solid var(--line); }
.card.alert { border-left: 5px solid var(--accent); }

/* ---------- Vue mois (agenda et réseaux) ---------- */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mhead { padding: 10px 6px; text-align: center; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mcell { min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mcell:nth-child(7n) { border-right: 0; }
.mcell:hover { background: rgba(239, 226, 207, .3); }
.mcell.out { background: rgba(239, 226, 207, .2); }
.mcell.out .mnum { opacity: .4; }
.mcell.closed { background: repeating-linear-gradient(135deg, #F8F4ED 0 6px, #F2EDE4 6px 12px); }
.mnum b { display: inline-block; font-size: 14px; min-width: 26px; text-align: center; padding: 1px 6px; border-radius: 99px; }
.mcell.today .mnum b { background: var(--primary); color: var(--primary-ink); }
.mev { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: var(--cb); border-radius: 6px; padding: 3px 6px; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mev:hover { filter: brightness(.96); }
.mev.done { opacity: .55; }
.mev.two { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more { font-size: 12px; color: var(--muted); padding-left: 4px; }

/* ---------- Réseaux sociaux ---------- */
.soc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ideas { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.ideas h2 .badge { vertical-align: 3px; }
.idea-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; background: rgba(255, 255, 255, .8); }
.idea-title { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 0 8px; font-weight: 600; line-height: 1.3; }
.idea-title:hover { color: var(--green); }
.idea-actions { display: flex; gap: 6px; }
.sheet.wide { max-width: 760px; }
.gen-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: rgba(255, 255, 255, .85); border-radius: 14px; padding: 14px; margin-bottom: 10px; font-weight: 400; color: var(--ink); cursor: pointer; }
.gen-item:hover { border-color: #cfc6b6; }
.gen-item:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.gen-item input[type=checkbox] { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.gen-body { display: block; flex: 1; min-width: 0; }
.gen-title { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 8px 0 4px; line-height: 1.25; }
.gen-how { display: block; font-size: 14.5px; color: #5A4534; }
.gen-leg { display: block; font-size: 14px; color: var(--muted); font-style: italic; margin-top: 6px; }
.keep { color: var(--green); font-weight: 700; font-size: 13px; }

/* ---------- URSSAF ---------- */
.urssaf-hero { border-top: 5px solid var(--green); }
.urssaf-hero.late { border-top-color: var(--red); }
.urssaf-hero.late .eyebrow { color: var(--red); font-weight: 600; }
.big-amount { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.1; margin: 8px 0 6px; }
.howto { margin: 0; padding-left: 22px; }
.howto li { margin-bottom: 10px; }
a.row { color: inherit; text-decoration: none; }

@media (max-width: 1100px) {
  .soc { grid-template-columns: minmax(0, 1fr); }
  .ideas { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .mcell { min-height: 58px; padding: 4px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 3px; }
  .mnum { width: 100%; }
  .mnum b { font-size: 13px; min-width: 22px; padding: 1px 4px; }
  .mev { font-size: 0; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--c); pointer-events: none; }
  .more { display: none; }
  .big-amount { font-size: 38px; }
  .gen-item { padding: 12px; gap: 10px; }
}

/* ---------- Pages légales et pied de page de la réservation ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 28px 16px 60px; }
.legal h1 { font-size: 34px; margin: 8px 0 6px; }
.legal h2 { margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .retour { display: inline-block; margin-bottom: 10px; color: var(--muted); }
.a-completer { background: #FCE7C8; color: #7A3E12; padding: 0 4px; border-radius: 4px; }
.book-foot { text-align: center; margin-top: 34px; font-size: 13px; color: var(--muted); }
.book-foot a { color: var(--muted); }
.book-logo { display: block; margin: 0 auto 10px; border-radius: 50%; box-shadow: 0 8px 22px rgba(110, 75, 45, .18); }
.sauv-ligne { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
