/* Fiche d'un rendez-vous — la même partout : Admin (Admin/rdv.js) et espace client (assets/js/espace.js, mêmes blocs, contenus de la cliente).
   Maquettes validées : apercu-rendez-vous.html (Admin), apercu-rdv-client.html (cliente). Classes préfixées rf-. */
.rf-ov {
  --rf-bg: var(--color-bg, #161826); --rf-surface: var(--color-surface, #232532); --rf-text: var(--color-text, #e9e9ed);
  --rf-muted: color-mix(in srgb, var(--rf-text) 66%, transparent); --rf-soft: color-mix(in srgb, var(--rf-text) 6%, transparent); --rf-line: color-mix(in srgb, var(--rf-text) 12%, transparent);
  --rf-grad: linear-gradient(135deg, #e9c98f, #f4dcb2 45%, #f3b6d0); --rf-or: #e9c98f; --rf-or-light: #f4dcb2; --rf-ink: #2a1d18;
  --rf-or-soft: color-mix(in srgb, #e9c98f 13%, transparent); --rf-or-line: color-mix(in srgb, #e9c98f 55%, transparent);
  --rf-warn: #f6b56b; --rf-bad: #f2a3a3; --rf-ok: #7fd6c8;
  /* Couleur de chaque statut (mêmes que Toutes les demandes) */
  --rf-nouvelle: #f6b56b; --rf-a_valider: #f3a6c8; --rf-planifiee: #b5abfc; --rf-proposee: #9db8ff; --rf-confirmee: #7fd6c8;
  --rf-terminee: #e9c98f; --rf-annulee: #f2a3a3; --rf-annulee_tardive: #f39a86; --rf-absente: #e48c9c;
  position: fixed; inset: 0; z-index: 66; display: flex; align-items: flex-end; justify-content: center; color: var(--rf-text); font-weight: 300;
}
body.rf-lock { overflow: hidden; }
.rf-ov button, .rf-ov input, .rf-ov textarea { font: inherit; color: inherit; }
.rf-veil { position: absolute; inset: 0; background: rgba(8, 8, 16, .55); animation: rf-fade .2s ease; }
.rf-ov.out .rf-veil { opacity: 0; transition: opacity .2s; }
.rf-ov.out .rf { transform: translateY(100%); transition: transform .22s ease-in; }
@keyframes rf-fade { from { opacity: 0; } }
.rf { --c: var(--rf-or); position: relative; width: 100%; max-width: 560px; height: calc(100% - 34px); background: var(--rf-bg); border-radius: 26px 26px 0 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.rf.in { animation: rf-up .35s cubic-bezier(.2, .9, .3, 1); }
@keyframes rf-up { from { transform: translateY(100%); } }
@media (min-width: 700px) { .rf-ov { align-items: center; } .rf { height: min(92vh, 900px); border-radius: 26px; } .rf.in { animation: rf-pop .3s cubic-bezier(.2, .9, .3, 1); } .rf-ov.out .rf { transform: scale(.96); opacity: 0; } }
@keyframes rf-pop { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.rf-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(28px + env(safe-area-inset-bottom)); scrollbar-width: thin; }
.rf-grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: color-mix(in srgb, var(--rf-text) 30%, transparent); z-index: 3; }
.rf-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .25); cursor: pointer; font-size: 15px; }

/* En-tête : couleur du statut, cliente, statut (touchable), ce qu'elle voit dans son espace */
.rf-hero { padding: 30px 18px 14px; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 62%), radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); }
.rf-who { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; padding-right: 36px; }
.rf-who h2 { margin: 0; font-weight: 400; font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.rf-av { position: relative; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 500; letter-spacing: .03em; color: #1c1522; }
.rf-av i { position: absolute; right: -6px; bottom: -4px; font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rf-bg); font-size: 16px; }
.rf-av i b { font-weight: 400; }
.rf-av i b.pop { display: inline-block; animation: rf-popi .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rf-popi { 0% { transform: scale(.2) rotate(-40deg); } }
.rf-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rf-tg { font-size: 13px; padding: 3px 8px; border-radius: 10px; background: var(--rf-soft); color: var(--rf-muted); white-space: nowrap; }
.rf-tg.first { background: color-mix(in srgb, #f4dcb2 16%, transparent); color: var(--rf-or-light); }
.rf-tg.health { background: color-mix(in srgb, #f2a3a3 18%, transparent); color: #f7c4c4; }
.rf-tier { display: inline-flex; font-size: 13px; padding: 2px 8px; border-radius: 10px; margin-right: 6px; font-weight: 500; white-space: nowrap; }
.rf-tier.vip { background: var(--rf-grad); color: var(--rf-ink); }
.rf-tier.loyal { background: color-mix(in srgb, #b5abfc 18%, transparent); color: #d4cdfd; }
.rf-tier.new { background: color-mix(in srgb, #f4dcb2 16%, transparent); color: var(--rf-or-light); }
.rf-stbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.rf-st { display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff) !important; border-radius: 18px; padding: 6px 12px 6px 9px; font-size: 13px; font-weight: 500; cursor: pointer; }
.rf-st small { font-weight: 300; opacity: .8; font-size: 13px; }
.rf-when { font-size: 13px; color: var(--rf-muted); }
.rf-when b { color: var(--rf-text); font-weight: 500; }
.rf-her { margin: 8px 0 0; font-size: 13px; color: var(--rf-muted); }

/* Blocs (chacun se modifie sur place) */
.rf-blk { margin: 14px 18px 0; padding: 14px; border-radius: 20px; background: var(--rf-surface); border: 1px solid var(--rf-line); transition: border-color .25s, box-shadow .25s; }
.rf-blk.editing { border-color: var(--rf-or-line); box-shadow: 0 0 0 4px var(--rf-or-soft); }
.rf-bh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rf-bh h3 { margin: 0; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rf-or-light); }
.rf-edit { border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 12px; padding: 4px 10px; font-size: 13px; color: var(--rf-muted) !important; cursor: pointer; }
.rf-lnk { display: block; border: 0; background: none; color: var(--rf-or-light) !important; font-size: 13px; cursor: pointer; padding: 8px 0 0; text-decoration: underline dotted; text-underline-offset: 3px; text-align: left; }
.rf-hint { margin: 8px 0 0; font-size: 13px; color: var(--rf-muted); line-height: 1.5; }
.rf-warn { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--rf-warn) 11%, transparent); color: #f8d6ad; font-size: 13px; line-height: 1.45; }
.rf-save { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 14px; }
.rf-date { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.rf-cal { width: 56px; border-radius: 14px; overflow: hidden; text-align: center; background: var(--rf-bg); border: 1px solid var(--rf-line); }
.rf-cal span { display: block; background: color-mix(in srgb, var(--c) 70%, #000); color: #fff; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 0; }
.rf-cal b { display: block; font-size: 22px; font-weight: 400; padding: 3px 0 4px; }
.rf-date strong { display: block; font-weight: 400; font-size: 15.5px; }
.rf-date small { color: var(--rf-muted); font-size: 13px; }

/* Frise : les mêmes 5 étapes que « Où en est ce rendez-vous ? » */
.rf-journey { display: grid; grid-template-columns: repeat(5, 1fr); margin: 16px 18px 0; position: relative; }
.rf-journey::before { content: ''; position: absolute; left: 10%; right: 10%; top: 15px; height: 2px; background: var(--rf-line); }
.rf-journey .fill { position: absolute; left: 10%; top: 15px; height: 2px; width: 0; background: var(--rf-grad); transition: width .7s ease; }
.rf-journey span { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 10.5px; color: var(--rf-muted); text-align: center; }
.rf-journey span i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--rf-bg); border: 1.5px solid var(--rf-line); font-size: 15px; filter: grayscale(1); opacity: .55; }
.rf-journey span.ok i { filter: none; opacity: 1; border-color: var(--rf-or-line); }
.rf-journey span.cur i { filter: none; opacity: 1; background: var(--rf-grad); border: 0; box-shadow: 0 0 0 4px var(--rf-or-soft); }
.rf-journey span.ok, .rf-journey span.cur { color: var(--rf-text); }
.rf-journey.off span.cur i { background: color-mix(in srgb, var(--c) 30%, var(--rf-bg)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }

/* Prochaine action */
.rf-next { margin: 16px 18px 0; padding: 14px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--c) 14%, var(--rf-surface)), var(--rf-surface) 70%); }
.rf-next p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; display: flex; gap: 10px; }
.rf-next p > span:first-child { font-size: 22px; line-height: 1; }
.rf-next p b { font-weight: 500; }
.rf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-btn { display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; text-decoration: none; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 15px; padding: 12px 10px; font-size: 13.5px; color: var(--rf-text) !important; cursor: pointer; transition: transform .12s; }
.rf-btn:active { transform: scale(.97); }
.rf-btn.main { background: var(--rf-grad); color: var(--rf-ink) !important; border: 0; font-weight: 500; font-size: 14.5px; padding: 14px; box-shadow: 0 10px 22px -12px rgba(233, 201, 143, .8); }
.rf-acts .rf-btn.main, .rf-btn.wide { grid-column: 1 / -1; }
.rf-btn.bad { color: #f7c4c4 !important; border-color: color-mix(in srgb, var(--rf-bad) 35%, transparent); }
.rf-btn:disabled { opacity: .45; cursor: not-allowed; }
.rf-nudge { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; animation: rf-fadeup .3s ease; }
.rf-nudge > * { display: grid; justify-items: center; gap: 4px; border: 1px solid var(--rf-or-line); background: var(--rf-or-soft); border-radius: 15px; padding: 10px 4px; font-size: 13px; color: var(--rf-or-light) !important; cursor: pointer; text-decoration: none; }
.rf-nudge span { font-size: 20px; }
@keyframes rf-fadeup { from { opacity: 0; transform: translateY(8px); } }

/* Points d'attention */
.rf-alerts { margin: 12px 18px 0; display: grid; gap: 6px; }
.rf-al { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; background: color-mix(in srgb, var(--rf-warn) 11%, transparent); color: #f8d6ad; }
.rf-al b { font-weight: 500; }
.rf-al .a { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rf-al .a button { border: 1px solid color-mix(in srgb, var(--rf-warn) 40%, transparent); background: none; color: inherit; border-radius: 12px; padding: 4px 10px; font-size: 13px; cursor: pointer; }

/* Soins, Où */
.rf-soin { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.rf-soin + .rf-soin, .rf-opt + .rf-soin { border-top: 1px dashed var(--rf-line); }
.rf-soin > span:first-child, .rf-eds > span:first-child { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--rf-soft); font-size: 18px; }
.rf-soin b, .rf-eds b { font-weight: 400; font-size: 14px; display: block; }
.rf-soin small, .rf-eds small { color: var(--rf-muted); font-size: 13px; }
.rf-soin em, .rf-eds em { font-style: normal; font-size: 14px; white-space: nowrap; }
.rf-opt { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--rf-muted); padding: 3px 0 3px 46px; }
.rf-fidl { color: #e9c98f; }
.rf-incl em { color: #a6e6c3; font-weight: 500; }
.rf-packs { display: grid; margin: -4px 0 6px 42px; }
.rf-packs .rf-lnk { padding: 6px 0; min-height: 32px; }
.rf-incl-note { display: flex; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 13px; background: color-mix(in srgb, #7fd1ae 14%, transparent); border: 1px solid color-mix(in srgb, #7fd1ae 35%, transparent); color: #bdeed8; font-size: 13px; line-height: 1.45; }
.rf-incl-note b { font-weight: 500; }
.rf-pack { font-size: 13px; padding: 2px 7px; border-radius: 9px; background: color-mix(in srgb, #7fd1ae 18%, transparent); color: #bdeed8; margin-right: 6px; }
.rf-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rf-line); }
.rf-total span { color: var(--rf-muted); font-size: 13px; }
.rf-total b { font-weight: 300; font-size: 22px; background: var(--rf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.rf-place { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 15px; background: var(--rf-soft); font-size: 13px; color: var(--rf-muted); }
.rf-place > span:first-child { font-size: 18px; }
.rf-place b { display: block; color: var(--rf-text); font-weight: 400; font-size: 14px; margin-top: 1px; overflow-wrap: anywhere; }
.rf-place small { display: block; margin-top: 2px; }
.rf-nav { display: flex; gap: 6px; }
.rf-nav a { text-decoration: none; font-size: 13px; padding: 6px 9px; border-radius: 11px; background: color-mix(in srgb, #9db8ff 14%, transparent); color: #c5d4ff; }

/* La cliente */
.rf-card { width: 100%; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--rf-or-line); background: linear-gradient(120deg, var(--rf-or-soft), color-mix(in srgb, #f3b6d0 8%, transparent)); border-radius: 18px; padding: 10px 12px; margin-bottom: 12px; cursor: pointer; }
div.rf-card { cursor: default; border-color: var(--rf-line); background: var(--rf-soft); }
.rf-id { min-width: 0; }
.rf-id b { display: block; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.rf-id small { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 3px; color: var(--rf-muted); font-size: 13px; }
.rf-acc { font-size: 13px; color: var(--rf-muted); }
.rf-acc.on { color: #9fe3c7; }
.rf-go { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--rf-or-light); font-weight: 500; white-space: nowrap; }
.rf-go i { font-style: normal; font-size: 20px; line-height: 1; }
.rf-contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.rf-contact a { display: grid; justify-items: center; gap: 5px; text-decoration: none; color: var(--rf-muted); font-size: 13px; cursor: pointer; }
.rf-contact a span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--rf-soft); border: 1px solid var(--rf-line); }
.rf-contact a.off { opacity: .35; pointer-events: none; }
.rf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.rf-kpis span { display: grid; gap: 1px; text-align: center; padding: 9px 4px; border-radius: 14px; background: var(--rf-soft); font-size: 10.5px; color: var(--rf-muted); }
.rf-kpis b { font-weight: 400; font-size: 14.5px; color: var(--rf-text); }
.rf-calert { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; border: 1px solid color-mix(in srgb, var(--rf-bad) 35%, transparent); background: color-mix(in srgb, var(--rf-bad) 10%, transparent); border-radius: 14px; padding: 9px 12px; margin-bottom: 8px; font-size: 18px; cursor: pointer; }
.rf-calert b { display: block; font-weight: 500; font-size: 13px; color: #f7c4c4; }
.rf-calert small { font-size: 11.5px; color: var(--rf-muted); }
.rf-calert i { font-style: normal; font-size: 12px; color: #f7c4c4; }
div.rf-calert { cursor: default; }
.rf-calert.warn { border-color: color-mix(in srgb, var(--rf-warn) 35%, transparent); background: color-mix(in srgb, var(--rf-warn) 10%, transparent); }
.rf-calert.warn b { color: #f8d6ad; }
.rf-calert.bday { border-color: color-mix(in srgb, #f3b6d0 35%, transparent); background: color-mix(in srgb, #f3b6d0 10%, transparent); }
.rf-calert.bday b { color: #f7d3e3; }
.rf-likes { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.rf-likes em { width: 100%; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-muted); }
.rf-likes span { font-size: 13px; padding: 5px 10px; border-radius: 12px; background: color-mix(in srgb, #f3b6d0 12%, transparent); color: #f7d3e3; }
.rf-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.rf-perk { display: grid; gap: 5px; align-content: start; padding: 10px 12px; border-radius: 15px; background: var(--rf-soft); min-width: 0; }
.rf-perk em { font-style: normal; font-size: 13px; color: var(--rf-muted); }
.rf-perk b { font-weight: 400; font-size: 13.5px; }
.rf-perk small { font-size: 13px; color: var(--rf-muted); line-height: 1.35; }
.rf-stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 180px; }
.rf-stamps i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--rf-or-line); }
.rf-stamps i.on { background: var(--rf-grad); border-color: transparent; }
.rf-pdots { display: flex; flex-wrap: wrap; gap: 4px; }
.rf-pdots i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--rf-muted); border: 1.5px dashed var(--rf-line); }
.rf-pdots i.done { background: linear-gradient(135deg, #7fd1ae, #c8f0dc); color: #0a2219; border: 0; font-weight: 600; }
.rf-pdots i.planned { border: 1.5px solid #7fd1ae; }
.rf-quote { margin-top: 12px; padding: 12px 14px; border-radius: 4px 18px 18px 18px; background: color-mix(in srgb, #f3b6d0 10%, transparent); border: 1px solid color-mix(in srgb, #f3b6d0 25%, transparent); font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.rf-quote small { display: block; color: var(--rf-muted); font-size: 13px; margin-bottom: 3px; }
.rf-blk textarea { width: 100%; box-sizing: border-box; min-height: 76px; resize: vertical; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 14px; padding: 11px 12px; font-size: 13.5px; line-height: 1.45; outline: none; }
.rf-blk textarea:focus { border-color: var(--rf-or-line); }
.rf-saved { font-size: 13px; color: var(--rf-ok); opacity: 0; transition: opacity .3s; }
.rf-saved.on { opacity: 1; }
.rf-more { margin: 18px 18px 0; display: grid; gap: 8px; }

/* Champs des blocs en modification */
.rf-fl { display: grid; gap: 5px; margin-top: 10px; font-size: 13px; color: var(--rf-muted); }
.rf-fl input { width: 100%; box-sizing: border-box; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 12px; padding: 10px 12px; font-size: 15px; outline: none; color-scheme: dark; }
.rf-fl input:focus { border-color: var(--rf-or-line); }
.rf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-days { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
.rf-days::-webkit-scrollbar { display: none; }
.rf-dy { flex: none; width: 52px; display: grid; justify-items: center; gap: 1px; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 14px; padding: 7px 0; cursor: pointer; font-size: 10.5px; color: var(--rf-muted) !important; text-transform: capitalize; }
.rf-dy b { font-size: 17px; font-weight: 400; color: var(--rf-text); }
.rf-dy[aria-pressed="true"] { background: var(--rf-grad); color: var(--rf-ink) !important; border-color: transparent; }
.rf-dy[aria-pressed="true"] b { color: var(--rf-ink); }
.rf-dy.closed { opacity: .4; }
.rf-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rf-sl { border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 12px; padding: 7px 11px; font-size: 13px; cursor: pointer; }
.rf-sl[aria-pressed="true"] { border-color: var(--rf-or); background: var(--rf-or-soft); color: var(--rf-or-light) !important; font-weight: 500; }
.rf-sl.busy { text-decoration: line-through; opacity: .4; }
.rf-stepper { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 12px; overflow: hidden; text-align: center; font-size: 14px; color: var(--rf-text); }
.rf-stepper button { border: 0; background: none; padding: 9px 0; font-size: 17px; cursor: pointer; }
.rf-stepper small { display: block; font-size: 10.5px; color: var(--rf-muted); }
.rf-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 13px; background: var(--rf-soft); border: 1px solid var(--rf-line); }
.rf-seg3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 4px; }
.rf-seg button { border: 0; background: none; border-radius: 10px; padding: 9px 0; font-size: 13.5px; color: var(--rf-muted) !important; cursor: pointer; }
.rf-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--rf-text) 13%, transparent); color: var(--rf-text) !important; font-weight: 500; }
.rf-trip { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: 13px; background: color-mix(in srgb, #9db8ff 10%, transparent); color: #c5d4ff; font-size: 13px; }
.rf-trip button { border: 1px solid color-mix(in srgb, #9db8ff 35%, transparent); background: none; color: inherit !important; border-radius: 11px; padding: 5px 9px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.rf-eds { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--rf-line); }
.rf-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rf-line); background: none; cursor: pointer; color: var(--rf-muted) !important; }
.rf-ops { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.rf-op { border: 1px dashed var(--rf-line); background: none; border-radius: 11px; padding: 4px 9px; font-size: 13px; color: var(--rf-muted) !important; cursor: pointer; text-align: left; }
.rf-op[aria-pressed="true"] { border-style: solid; border-color: var(--rf-or-line); background: var(--rf-or-soft); color: var(--rf-or-light) !important; }
.rf-add { width: 100%; margin-top: 10px; border: 1.5px dashed var(--rf-or-line); background: none; border-radius: 14px; padding: 10px; color: var(--rf-or-light) !important; font-size: 13.5px; cursor: pointer; }
.rf-cat { margin-top: 8px; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.rf-cat button { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 13px; padding: 9px 11px; font-size: 13px; cursor: pointer; }
.rf-cat button small { display: block; color: var(--rf-muted); font-size: 13px; }
.rf-sugg { display: grid; gap: 6px; margin-top: 8px; }
.rf-sugg button { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 13px; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.rf-sugg button b { font-weight: 500; }
.rf-sugg button[aria-pressed="true"] { border-color: var(--rf-or); background: var(--rf-or-soft); box-shadow: 0 0 0 3px var(--rf-or-soft); }
.rf-sugg button small { display: block; color: var(--rf-muted); font-size: 13px; }

/* Où en est ce rendez-vous ? */
.rf-sheet2 { position: absolute; inset: 0; z-index: 10; background: rgba(8, 8, 16, .6); display: flex; align-items: flex-end; animation: rf-fade .2s ease; }
.rf-sheet2 > div { width: 100%; max-height: 92%; overflow-y: auto; background: var(--rf-surface); border-radius: 26px 26px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); animation: rf-up .3s cubic-bezier(.2, .9, .3, 1); box-sizing: border-box; }
.rf-g2 { width: 40px; height: 4px; border-radius: 2px; background: var(--rf-line); margin: 0 auto 14px; }
.rf-sheet2 h3 { margin: 0; font-weight: 300; font-size: 21px; }
.rf-sheet2 .sub { margin: 4px 0 12px; color: var(--rf-muted); font-size: 13px; }
.rf-road { position: relative; padding-left: 4px; }
.rf-road::before { content: ''; position: absolute; left: 25px; top: 22px; bottom: 22px; width: 2px; background: var(--rf-line); border-radius: 1px; }
.rf-road .done { position: absolute; left: 25px; top: 22px; width: 2px; background: var(--rf-grad); border-radius: 1px; transition: height .5s ease; }
.rf-road .pin { position: absolute; left: -2px; top: 0; z-index: 2; font-size: 18px; pointer-events: none; transition: top .45s cubic-bezier(.3, 1.35, .5, 1); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.rf-rs { --c: var(--rf-or); position: relative; width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; border: 0; background: none; padding: 7px 0; cursor: pointer; }
.rf-rs .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--rf-bg); border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); position: relative; z-index: 1; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .3s, box-shadow .3s; }
.rf-rs b { display: block; font-weight: 500; font-size: 14px; }
.rf-rs small { color: var(--rf-muted); font-size: 13px; }
.rf-rs .badge { font-size: 13px; padding: 3px 8px; border-radius: 9px; background: var(--rf-line); color: var(--rf-muted); white-space: nowrap; }
.rf-rs.passed .dot { border-color: var(--rf-or-line); }
.rf-rs.cur .dot { background: color-mix(in srgb, var(--c) 22%, var(--rf-bg)); border-color: var(--c); }
.rf-rs[aria-pressed="true"] .dot { transform: scale(1.12); background: color-mix(in srgb, var(--c) 35%, var(--rf-bg)); border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent), 0 8px 18px -6px var(--c); }
.rf-rs[aria-pressed="true"] b { color: color-mix(in srgb, var(--c) 50%, #fff); }
.rf-rs:disabled { cursor: default; }
.rf-rs:disabled .dot, .rf-rs:disabled b { opacity: .4; }
.rf-rs.cur:disabled .dot, .rf-rs.cur:disabled b { opacity: 1; }
.rf-rs .need { color: var(--rf-warn); }
.rf-oops { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rf-line); }
.rf-oops > em { display: block; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-muted); margin-bottom: 8px; }
.rf-pebbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rf-pb { --c: var(--rf-bad); display: grid; justify-items: center; gap: 4px; border: 1.5px solid var(--rf-line); background: var(--rf-soft); border-radius: 18px; padding: 10px 4px 9px; cursor: pointer; transition: all .2s; }
.rf-pb > span { font-size: 22px; }
.rf-pb b { font-weight: 500; font-size: 13px; }
.rf-pb small { font-size: 13px; color: var(--rf-muted); text-align: center; line-height: 1.3; }
.rf-pb.cur { border-style: dashed; }
.rf-pb[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); transform: translateY(-2px); }
.rf-pb:disabled { opacity: .45; cursor: default; }
.rf-pb.cur:disabled { opacity: 1; }
.rf-what { margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--rf-bg); border: 1px solid var(--rf-line); display: none; }
.rf-what.on { display: block; animation: rf-fadeup .3s ease; }
.rf-fromto { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; margin-bottom: 12px; }
.rf-fromto span { display: grid; justify-items: center; gap: 4px; font-size: 13px; color: var(--rf-muted); }
.rf-fromto span i { font-style: normal; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--rf-surface); }
.rf-fromto span:last-child { color: var(--rf-text); font-weight: 500; }
.rf-fromto span:last-child i { background: var(--rf-grad); }
.rf-fromto .ar { font-size: 18px; color: var(--rf-or); }
.rf-fxl { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-fxl span { font-size: 13px; padding: 5px 10px; border-radius: 11px; background: var(--rf-soft); color: var(--rf-muted); }
.rf-fxl span.warn { background: color-mix(in srgb, var(--rf-warn) 13%, transparent); color: #f8d6ad; }
.rf-mail { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; margin-top: 12px; padding: 11px 12px; border-radius: 14px; background: color-mix(in srgb, #9db8ff 9%, transparent); border: 1px solid color-mix(in srgb, #9db8ff 22%, transparent); font-size: 13px; }
.rf-mail.dim { opacity: .75; }
.rf-mail > span:first-child { font-size: 22px; text-align: center; }
.rf-mail small { display: block; color: var(--rf-muted); font-size: 13px; }
.rf-sw { flex: none; width: 44px; height: 26px; border-radius: 13px; border: 0; background: var(--rf-line); position: relative; cursor: pointer; padding: 0; }
.rf-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.rf-sw[aria-pressed="true"] { background: var(--rf-or); }
.rf-sw[aria-pressed="true"]::after { left: 21px; }
.rf-sheet2 .rf-acts { margin-top: 14px; }
.rf-sheet2 .rf-acts .rf-btn.main { grid-column: auto; }
.rf-fx { position: absolute; z-index: 25; pointer-events: none; font-size: 20px; animation: rf-fly 1.6s ease-out forwards; }
@keyframes rf-fly { to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rf-ov *, .rf-ov { animation: none !important; transition: none !important; } }

/* Quand : bande des jours (4 mois, défile vers la droite), flèches sur ordinateur, autre date */
.rf-daysw { position: relative; display: flex; align-items: center; gap: 4px; margin: 0 -14px; }
.rf-daysw .rf-days { flex: 1; min-width: 0; margin: 0; padding: 2px 14px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; }
.rf-daysw .rf-dy { scroll-snap-align: start; }
.rf-mon { flex: none; align-self: stretch; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--rf-or-light); padding: 0 1px; border-left: 1px dashed var(--rf-or-line); }
.rf-dnav { display: none; flex: none; width: 30px; height: 52px; border: 1px solid var(--rf-line); background: var(--rf-soft); border-radius: 12px; font-size: 18px; cursor: pointer; color: var(--rf-or-light) !important; }
@media (hover: hover) and (pointer: fine) { .rf-dnav { display: block; } .rf-daysw { margin: 0; } .rf-daysw .rf-days { padding: 2px 2px 6px; } }
.rf-other { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--rf-muted); }
.rf-other input { border: 1px solid var(--rf-line); background: var(--rf-soft); color: var(--rf-text); border-radius: 11px; padding: 6px 9px; font: inherit; font-size: 13px; color-scheme: dark; }
/* Confirmé et nouvel horaire : proposer à la cliente, ou déplacer sans confirmation */
.rf-reconf { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--rf-confirmee) 9%, transparent); border: 1px solid color-mix(in srgb, var(--rf-confirmee) 35%, transparent); }
.rf-reconf p { margin: 0; font-size: 13px; line-height: 1.45; }
.rf-reconf .rf-btn { flex-direction: column; gap: 2px; }
.rf-reconf .rf-btn small { font-weight: 300; font-size: 13px; opacity: .8; }
.rf-reconf .rf-lnk { justify-self: center; padding-top: 2px; }
.rf-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rf-muted); }
.rf-chk input { accent-color: #e9c98f; width: 16px; height: 16px; }
/* Quand et où : intertitre des créneaux (ils dépendent du lieu choisi juste au-dessus) */
.rf-sub { margin: 14px 0 6px; padding-top: 12px; border-top: 1px dashed var(--rf-line); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-or-light); }

/* Heure précise : heure + minutes (toutes les 5 min) */
.rf-hm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rf-hm select { width: 100%; box-sizing: border-box; border: 1px solid var(--rf-line); background: var(--rf-soft); color: var(--rf-text); border-radius: 12px; padding: 10px 8px; font: inherit; font-size: 15px; color-scheme: dark; outline: none; }
.rf-hm select:focus { border-color: var(--rf-or-line); }

/* ───── Espace client : la même fiche, côté cliente (espace.js) ───── */
/* Monogramme de Valentine : disque prune cerclé d'or, V serif italique au dégradé or rosé, petite étoile */
.rf-av.vl { background: radial-gradient(circle at 32% 26%, #4a3758, #221a30 68%, #16111f); box-shadow: inset 0 0 0 1.5px rgba(233, 201, 143, .75), 0 0 0 3px rgba(233, 201, 143, .12), 0 10px 24px -10px rgba(243, 182, 208, .6); }
.rf-av.vl .mono { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: calc(var(--s, 62px) * .66); line-height: 1; letter-spacing: 0;
  background: linear-gradient(160deg, #fff3dc 0%, #f4dcb2 30%, #e9c98f 55%, #f3b6d0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translate(-1px, calc(var(--s, 62px) * .02)); filter: drop-shadow(0 1px 5px rgba(233, 201, 143, .45)); }
.rf-av.vl::after { content: '✦'; position: absolute; top: 18%; right: 20%; font-size: calc(var(--s, 62px) * .15); color: #fff3dc; text-shadow: 0 0 6px rgba(255, 230, 190, .9); animation: rf-twk 2.4s ease-in-out infinite; }
@keyframes rf-twk { 50% { opacity: .35; transform: scale(.7); } }
.rf-st.ro { cursor: default; }
.rf-pdots i.now { border: 2px solid var(--rf-or); background: var(--rf-or-soft); }
/* Plusieurs rendez-vous : petits points en haut (on passe de l'un à l'autre en balayant) */
.rf.cl .rf-hero { padding-top: 40px; }
.rf-pager { position: absolute; top: 22px; left: 56px; right: 56px; z-index: 3; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.rf-pager i { width: 6px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--rf-text) 25%, transparent); transition: width .25s, background .25s; }
.rf-pager i.on { width: 16px; background: var(--rf-or); }
.rf-body { will-change: transform; }
/* Actions : émoji qui s'envole, bouton validé, carte fidélité complète, pastille « Mon moment » */
.rf-fly { position: fixed; z-index: 130; pointer-events: none; font-size: 26px; line-height: 1; }
@keyframes rf-ok { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 60% { transform: scale(.97); } 100% { transform: scale(1); } }
.rf-btn.okd { animation: rf-ok .45s ease; background: color-mix(in srgb, #7fd6c8 22%, var(--rf-soft)) !important; color: #c9f1e9 !important; border: 1px solid color-mix(in srgb, #7fd6c8 45%, transparent) !important; box-shadow: none !important; }
.rf-perk.full { border: 1px solid var(--rf-or-line); background: linear-gradient(130deg, var(--rf-or-soft), color-mix(in srgb, #f3b6d0 10%, transparent)); animation: rf-glow 2.4s ease 1; }
@keyframes rf-glow { 30% { box-shadow: 0 0 0 4px var(--rf-or-soft), 0 0 24px 4px rgba(243, 182, 208, .45); } }
.rf-perk.full small b { color: var(--rf-or-light); font-weight: 500; }
.rf-moment { position: fixed; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 125; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: linear-gradient(135deg, #e9c98f, #f4dcb2 45%, #f3b6d0); color: #2a1d18; font-weight: 500; font-size: 13.5px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); animation: rf-fadeup .3s ease; }
.rf-moment em { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: #2a1d18; color: #f4dcb2; display: grid; place-items: center; font-size: 13px; }
.rf-moment.bump { animation: rf-ok .4s ease; }
.rf-chk.rf-c2 { margin-top: 10px; }
.rf-fl textarea { width: 100%; box-sizing: border-box; }
/* Liste « Mes rendez-vous » : le mini calendrier de la fiche (bande du mois à la couleur du statut) */
.es-list { --rf-bg: var(--color-bg, #161826); --rf-line: color-mix(in srgb, var(--color-text, #e9e9ed) 12%, transparent);
  --rf-nouvelle: #f6b56b; --rf-planifiee: #b5abfc; --rf-proposee: #9db8ff; --rf-confirmee: #7fd6c8; --rf-terminee: #e9c98f; --rf-annulee: #f2a3a3; --rf-annulee_tardive: #f39a86; --rf-absente: #e48c9c; }
.es-list .es-row { grid-template-columns: 56px 1fr auto; }
.es-list .es-row-t b { white-space: normal; }
/* Pluie de paillettes et de pétales (SVMoment.celebrate, carte.js) : mêmes règles que carte.css, pour les pages qui ne la chargent pas */
.c2 .party { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.c2 .party i { position: absolute; display: block; will-change: transform, opacity; }
.c2 .party .conf { width: 7px; height: 11px; border-radius: 2px; box-shadow: 0 0 6px rgba(255, 230, 190, .5); }
.c2 .party .glit { width: 5px; height: 5px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 8px 2px rgba(255, 225, 160, .95); animation: c2-twk 1.1s ease-in-out infinite alternate; }
.c2 .party .glit:nth-child(3n) { animation-duration: .8s; }
.c2 .party .glit:nth-child(4n) { background: #ffd1e3; box-shadow: 0 0 8px 2px rgba(243, 182, 208, .95); }
.c2 .party .petal { width: 12px; height: 15px; border-radius: 80% 0 80% 0; background: radial-gradient(circle at 30% 30%, #ffe0ec, #f3a5c4 55%, #d97ea6); box-shadow: inset -1px -1px 2px rgba(120, 30, 70, .25); }
@keyframes c2-twk { from { filter: brightness(1.4); } to { filter: brightness(.6); } }
@media (prefers-reduced-motion: reduce) { .rf-av.vl::after, .rf-perk.full, .rf-btn.okd { animation: none; } }

/* Formule : badge « 🧩 Formule » et encadré des soins qu'elle réunit (fiche cliente et fiche Admin, numérotés pour Valentine) */
.rf-fm { font-size: 13px; padding: 2px 7px; border-radius: 9px; background: color-mix(in srgb, #b5abfc 20%, transparent); color: #d4cdfd; margin-right: 6px; }
.rf-fmp { margin: -2px 0 6px 46px; padding: 8px 11px; border-radius: 13px; background: color-mix(in srgb, #b5abfc 8%, transparent); border: 1px solid color-mix(in srgb, #b5abfc 18%, transparent); display: grid; gap: 4px; }
.rf-fmp div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--rf-muted); }
.rf-fmp div > span:first-child { min-width: 0; }
.rf-fmp div > span:last-child { white-space: nowrap; }
.rf-fmp div b { font-weight: 400; color: var(--rf-text); }
.rf-fmp div i { font-style: normal; color: #b5abfc; margin-right: 6px; }
.rf-fmp .g { margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--rf-line); color: var(--rf-or-light); }
.rf-fmp .g s { color: var(--rf-muted); margin-right: 6px; }/* Carte cadeau saisie dans la fiche du rendez-vous */
.rf-giftin { display: flex; gap: 8px; margin-top: 10px; }
.rf-gift-in { flex: 1; min-width: 0; box-sizing: border-box; border: 1px solid var(--rf-line); background: var(--rf-soft); color: var(--rf-text); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
