/* Polices de l'appli, installées sur le serveur (plus besoin de Google à chaque ouverture, disponibles sans réseau).
   Figtree et Marcellus, licence SIL Open Font License (voir public/fonts). */
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Marcellus"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/marcellus-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/marcellus-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Espace équipe · Maison d'Ava
   Plan de travail clair et calme, bandeau « nuit étoilée », accent framboise (Manoir) ou lagon (Bains), étoile dorée.
   Une seule famille de rayons (24 / 14 / 10), une seule ombre teintée d'encre, des transitions courtes qui répondent au geste. */
:root {
  /* Fond crème, le même sur iPhone, Android et ordinateur (le mode sombre du téléphone n'assombrit plus l'appli). */
  --bg: #F6F0E6; --surface: #FFFCF7; --surface-2: #EFE6D9; --ink: #22192F; --muted: #6B6158; --line: #E5D9C8;
  --accent: #B0306A; --accent-ink: #FFFFFF; --accent-soft: #F8E4ED; --gold: #8C6516;
  --night: #241A33; --night-2: #2F2342; --night-ink: #F4EEF8; --night-muted: #BDB1CB;
  --ok: #2B7655; --ok-soft: #DFF0E7; --sick: #3B62A8; --sick-soft: #E2EAF7; --warn: #9C5A12; --warn-soft: #F8E8D2; --danger: #B3261E; --danger-soft: #FBE3E0;
  --shadow: 0 1px 2px rgba(34,25,47,.05), 0 10px 30px -12px rgba(34,25,47,.18);
  --shadow-lg: 0 24px 60px -20px rgba(34,25,47,.35);
  --f-display: "Marcellus", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px; --r-lg: 22px; --r-sm: 10px; --nav-h: 66px;
  --ease: cubic-bezier(.2, .7, .2, 1); --t: .22s;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-feature-settings: "ss01", "cv05"; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }
.boot { height: 100vh; display: grid; place-items: center; color: var(--gold); background: var(--night); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }

/* ---------- Coquille ---------- */
.shell { min-height: 100%; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 9; color: var(--night-ink);
  background: linear-gradient(180deg, var(--night-2), var(--night)); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -18px rgba(0,0,0,.6);
  padding: calc(var(--sat) + 12px) max(16px, var(--sar)) 12px max(16px, var(--sal)); }
.top-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand svg { flex: none; filter: drop-shadow(0 0 10px rgba(216,176,96,.35)); }
.brand-logo { flex: none; width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(233,216,196,.25), 0 0 12px rgba(216,176,96,.25); }
.brand h1 { margin: 0; font: 400 1.3rem/1.1 var(--f-display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; color: var(--night-muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.top .back { background: none; border: 0; color: var(--night-ink); font-size: 1.6rem; width: 44px; height: 44px; margin-left: -12px; padding: 0; line-height: 1; border-radius: 12px; }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto;
  padding: 20px max(16px, var(--sar)) calc(var(--nav-h) + var(--sab) + 28px) max(16px, var(--sal)); animation: view-in .28s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 0 max(4px, var(--sar)) var(--sab) max(4px, var(--sal)); display: flex; justify-content: center; }
.nav-inner { display: flex; width: 100%; max-width: 640px; }
.nav button { flex: 1; background: none; border: 0; height: var(--nav-h); display: grid; place-items: center; align-content: center; gap: 3px;
  color: var(--muted); font-size: .72rem; font-weight: 600; position: relative; white-space: nowrap; transition: color var(--t) var(--ease); }
.nav button svg { width: 22px; height: 22px; transition: transform var(--t) var(--ease); }
.nav button:active svg { transform: scale(.9); }
.nav button::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 30px; margin-left: -18px; border-radius: 12px; background: var(--accent-soft); opacity: 0; transform: scale(.6); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.nav button[aria-current="page"] { color: var(--accent); }
.nav button[aria-current="page"]::before { opacity: 1; transform: scale(1); }
.nav button > * { position: relative; }
.nav .dot { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font-size: .62rem; font-weight: 700; min-width: 17px; padding: 0 5px; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Éléments communs ---------- */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.view-head h2 { margin: 0; font: 400 1.7rem/1.12 var(--f-display); letter-spacing: -.005em; text-wrap: balance; }
.view-head p { margin: 6px 0 0; color: var(--muted); max-width: 58ch; }
.eyebrow { font-size: .78rem; color: var(--gold); font-weight: 600; letter-spacing: .02em; margin-bottom: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.notice { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); padding: 10px 18px; font-weight: 600; font-size: .9rem; min-height: 44px; line-height: 1.2;
  transition: transform .12s var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.btn:active { transform: scale(.97); }
a.btn { text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--danger); }
.btn.danger.armed, .btn.armed { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; line-height: 1.4; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.field { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 11px 13px; color: var(--ink);
  font-weight: 400; font-size: 16px; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hint { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.5; }
.err { color: var(--danger); font-size: .88rem; margin: 0; }
.err:empty { display: none; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Connexion ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% -10%, var(--night-2), var(--night) 60%);
  padding: calc(var(--sat) + 24px) max(16px, var(--sar)) calc(var(--sab) + 24px) max(16px, var(--sal)); }
.auth > div { animation: view-in .4s var(--ease) both; }
.auth-card { width: 100%; max-width: 380px; padding: 28px 24px; display: grid; gap: 18px; }
.auth-brand { text-align: center; color: var(--night-ink); margin-bottom: 18px; }
.auth-brand svg { filter: drop-shadow(0 0 14px rgba(216,176,96,.45)); }
.auth-logo { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 0 1px rgba(233,216,196,.3), 0 10px 30px rgba(0,0,0,.35); }
.auth-brand h1 { margin: 10px 0 2px; font: 400 1.9rem/1.1 var(--f-display); }
.auth-brand small { color: var(--night-muted); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }

/* ---------- Messagerie ---------- */
.chat-wrap { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 20px; align-items: start; }
.channels { display: grid; gap: 4px; }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; border: 0; background: transparent;
  padding: 12px; border-radius: 10px; font-weight: 600; color: var(--ink); min-height: 56px; }
.channel .star { color: var(--gold); margin-right: 8px; }
.channel small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.channel:hover { background: var(--surface-2); }
.channel[aria-current="true"] { background: var(--surface); box-shadow: var(--shadow); }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 8px;
  min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 190px - var(--sat) - var(--sab)); min-height: 380px; overflow: hidden; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head h3 { margin: 0; font: 400 1.15rem var(--f-display); }
.chat-head p { margin: 0; color: var(--muted); font-size: .8rem; }
.msgs { flex: 1; overflow-y: auto; padding: 8px 12px 14px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.day { align-self: center; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; font-weight: 700; }
.msg { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 6px 8px; border-radius: 10px; }
.msg.cont { padding-top: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; }
.msg.cont .avatar { visibility: hidden; height: 0; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-meta b { font-size: .9rem; }
.msg-meta time { color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .msg-meta b { color: var(--accent); }
.msg.urgent { background: var(--danger-soft); }
.msg .del { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: .8rem; min-height: 36px; padding: 0 10px; border-radius: 10px; }
.msg .del.armed { color: var(--danger); font-weight: 700; }
.composer { border-top: 1px solid var(--line); padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.composer textarea { min-height: 44px; max-height: 140px; resize: none; }
.composer label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 34ch; padding: 24px; }
.chat-empty .star { color: var(--gold); font: 1.6rem var(--f-display); }

/* ---------- Check-lists ---------- */
.today { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.today-card { padding: 14px 16px; display: grid; gap: 2px; }
.today-card .k { font-size: .78rem; font-weight: 600; color: var(--muted); }
.today-card .v { font: 1.25rem var(--f-display); }
.today-card .s { color: var(--muted); font-size: .82rem; }
.today-card.done .v { color: var(--ok); }
.today-card.todo .v { color: var(--warn); }
.cl-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 10px; font-weight: 600; color: var(--muted); transition: background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.seg button[aria-pressed="true"], .seg button[data-on="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.cl-form { padding: 16px 18px 18px; display: grid; gap: 16px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .2s; }
.cl-section h4 { margin: 0 0 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.check { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: start; padding: 10px; border-radius: 8px; cursor: pointer; }
.check:hover { background: var(--surface-2); }
.check input { width: 26px; height: 26px; flex: 0 0 26px; margin-top: -2px; accent-color: var(--accent); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.releves { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.releves .input { font-variant-numeric: tabular-nums; }
.history h3 { margin: 0; padding: 12px 16px 8px; font: 400 1.1rem var(--f-display); }
.h-item { border-top: 1px solid var(--line); }
.h-item summary { list-style: none; cursor: pointer; padding: 12px 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; }
.h-item summary::-webkit-details-marker { display: none; }
.h-title { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.h-sub { color: var(--muted); font-size: .8rem; grid-column: 1 / -1; font-variant-numeric: tabular-nums; }
.h-body { padding: 0 16px 14px; display: grid; gap: 8px; font-size: .88rem; }
.h-body ul { margin: 0; padding-left: 18px; }
.rem { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; }

/* ---------- Protocoles ---------- */
.p-tools { display: grid; gap: 10px; margin-bottom: 16px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; min-height: 40px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.p-group { margin-bottom: 24px; }
.p-group h3 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.p-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.p-card { text-align: left; padding: 16px; display: grid; gap: 8px; align-content: start; }
.p-card h4 { margin: 0; font: 400 1.12rem/1.2 var(--f-display); }
.p-card p { margin: 0; color: var(--muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.p-detail { padding: 22px 20px 26px; display: grid; gap: 22px; }
.p-detail h2 { margin: 4px 0 0; font: 400 1.75rem/1.15 var(--f-display); text-wrap: balance; }
.p-detail h3 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); max-width: 68ch; }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); font: 1.12rem/1.35 var(--f-display); color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.mat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mat li { background: var(--surface-2); border-radius: 8px; padding: 4px 10px; font-size: .88rem; }
.p-notes { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; max-width: 68ch; }
.form3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }

/* ---------- Équipe & profil ---------- */
.list { display: grid; }
.list-item { display: grid; grid-template-columns: 40px minmax(220px,1fr) minmax(0,max-content); gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
/* Les boutons d'un compte passent à la ligne au lieu d'écraser le nom et l'e-mail. */
.list-item > .row { flex-wrap: wrap; min-width: 0; }
.list-item:first-child { border-top: 0; }
.list-item .avatar { width: 40px; height: 40px; }
.list-item b { display: block; }
.list-item small { color: var(--muted); overflow-wrap: break-word; word-break: normal; }
.secret { font: 600 1.1rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; user-select: all; overflow-wrap: anywhere; white-space: pre-wrap; }
.panel { padding: 20px; display: grid; gap: 14px; }
.panel h3 { margin: 0; font: 400 1.2rem/1.2 var(--f-display); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--sab) + 14px); background: var(--night); color: var(--night-ink);
  padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; z-index: 20; max-width: calc(100% - 32px); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .chat-wrap { grid-template-columns: minmax(0,1fr); }
  .chat-wrap.in-channel .channels { display: none; }
  .chat-wrap:not(.in-channel) .chat { display: none; }
  .chat { height: calc(100vh - 150px - var(--nav-h) - var(--sat) - var(--sab)); height: calc(100dvh - 150px - var(--nav-h) - var(--sat) - var(--sab)); }
  .cl-grid { grid-template-columns: minmax(0,1fr); }
  .form3 { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .today { grid-template-columns: minmax(0,1fr); }
  .releves { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
  .brand h1 { font-size: 1.15rem; }
  .list-item { grid-template-columns: 40px minmax(0,1fr); }
  .list-item > .row { grid-column: 1 / -1; justify-content: flex-start !important; }
  main { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Deux espaces : Manoir (framboise) et Bains (bleu eau) ---------- */
:root[data-site="bains"] { --accent: #1E6E7E; --accent-soft: #DDEFF2; --night: #142A33; }
.switch { flex: none; display: inline-flex; align-items: center; gap: 6px; position: relative; background: rgba(255,255,255,.1); color: var(--night-ink);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .85rem; min-height: 36px; }
.switch:hover { background: rgba(255,255,255,.18); }
.switch .dot { position: absolute; top: -5px; right: -5px; background: #E46B9F; color: #1A0F16; border-radius: 999px; font-size: .62rem; font-weight: 700;
  min-width: 17px; padding: 0 5px; line-height: 17px; text-align: center; }
.sites-pick { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.sites-pick legend { font-size: .82rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.sites-pick label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sites-pick input { width: 18px; height: 18px; accent-color: var(--accent); }
.site-chip { border: 1px dashed var(--line); cursor: pointer; padding: 5px 12px; min-height: 40px; font-size: .85rem; }
.site-chip.on { border-style: solid; }
.site-chip.on[data-site="manoir"] { background: #F7E3EC; color: #8E2455; border-color: #E9B9CE; }
.site-chip.on[data-site="bains"] { background: #DDEFF2; color: #17525E; border-color: #A9D3DB; }

/* ---------- Éditeur des cases de check-list ---------- */
.tpl-sec { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tpl-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 6px; align-items: start; }
textarea.input.tpl-item { resize: none; min-height: 42px; overflow: hidden; line-height: 1.35; padding: 10px 12px; }
.tpl-row:first-child { grid-template-columns: minmax(0,1fr) auto; }
.tpl-title { font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.icon-btn { min-width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); font-size: 1rem; color: var(--muted); transition: transform .12s var(--ease); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger { color: var(--danger); }
.icon-btn.danger.armed { width: auto; padding: 0 10px; background: var(--danger); color: var(--surface); border-color: var(--danger); font-size: .8rem; font-weight: 700; }
.add-case { justify-self: start; color: var(--accent); border-style: dashed; }

/* ---------- Planning du jour ---------- */
.planning-card { overflow: hidden; }
.planning-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.planning-head b { display: block; }
.planning-head b::first-letter { text-transform: uppercase; }
.planning-head small { color: var(--muted); }
.planning-img { display: block; background: var(--surface-2); }
.planning-img img { display: block; width: 100%; height: auto; }
.planning-pdf { display: flex; align-items: center; gap: 12px; padding: 22px 16px; color: var(--accent); font-weight: 600; text-decoration: none; }
.planning-pdf svg { width: 32px; height: 32px; }

/* ---------- Photos dans la messagerie ---------- */
.composer { grid-template-columns: auto minmax(0,1fr) auto; }
.composer .cam { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); }
.composer .cam svg { width: 22px; height: 22px; }
.photo-preview { grid-column: 1 / -1; display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 10px; align-items: center;
  background: var(--surface-2); border-radius: 10px; padding: 6px; font-size: .82rem; color: var(--muted); }
.photo-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.msg-photo { display: block; margin: 4px 0 2px; max-width: min(260px, 100%); }
.msg-photo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

/* ---------- Photos des check-lists ---------- */
.cl-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.cl-thumbs a, .cl-thumb { position: relative; display: block; aspect-ratio: 1; max-width: 100%; }
.cl-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.cl-thumb .icon-btn { position: absolute; top: 4px; right: 4px; min-width: 36px; width: 36px; height: 36px; border-radius: 999px; background: var(--surface); font-size: .8rem; }
.releves { align-items: end; }
.releves.releves-1 { grid-template-columns: minmax(0, 220px); }
.role-sel { width: auto; min-height: 44px; padding: 4px 8px; font-size: 1rem; }

/* ---------- Mots doux ---------- */
.check-inline { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent); }
.kudo-form .cats { margin-top: -4px; }
.kudo-form .cat { white-space: normal; text-align: left; }
.kudo-count { background: var(--accent-soft); color: var(--ink); border-color: transparent; font-weight: 600; }
.kudo-wall { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kudo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 10px; box-shadow: var(--shadow);
  display: grid; gap: 6px; position: relative; overflow: hidden; }
.kudo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); opacity: .55; }
.kudo.for-me { background: var(--accent-soft); border-color: transparent; }
.kudo.for-me::before { opacity: 1; }
.kudo-to { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.kudo-text { margin: 0; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.kudo-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kudo-foot small { color: var(--muted); flex: 1; min-width: 0; }
.kudo-heart { border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 999px; min-height: 34px; padding: 2px 12px;
  font: inherit; font-weight: 700; cursor: pointer; }
.kudo-heart[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.small { min-height: 40px; padding: 4px 12px; font-size: .9rem; }
.nav button { font-size: .72rem; }
.check .last-done { display: block; font-size: .78rem; color: var(--muted); margin-top: 1px; }
.check.due .last-done { color: var(--warn); font-weight: 600; }

/* ---------- Planning : qui travaille ---------- */
.plan-me { background: var(--accent-soft); border-color: transparent; display: grid; gap: 2px; }
.plan-me b { color: var(--accent); }
.plan-rows { display: grid; gap: 8px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; align-items: center; }
.plan-row .check-inline { color: var(--ink); font-weight: 600; }
.plan-row .input { min-height: 40px; padding: 6px 10px; }
.plan-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-team li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.plan-team li span { color: var(--muted); }
.plan-team li.me { background: var(--accent-soft); }
.plan-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 44px; }
.plan-cam { min-height: 40px; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-weight: 700; }
.plan-cam span { display: flex; width: 20px; height: 20px; }
.plan-cam.has { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.plan-cam.has span { width: 16px; height: 16px; }
.plan-mine-img { display: block; margin-top: 8px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.plan-mine-img img { display: block; width: 100%; height: auto; }
.plan-see { margin-left: auto; color: var(--accent); font-weight: 600; }

/* ---------- Check-lists par poste ---------- */
.poste-seg { justify-self: start; }
.today.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .today.three { grid-template-columns: 1fr; } }
.check.live.is-done .last-done { color: var(--ok); font-weight: 600; }
.check.live input:checked + span { text-decoration: none; color: var(--ink); }

/* ---------- Planning : une ligne par salariée ---------- */
.plan-board { display: grid; gap: 8px; }
.plan-person { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.plan-person.has { background: var(--ok-soft); }
.plan-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.plan-thumb.empty { color: var(--muted); }
.plan-thumb.empty svg { width: 22px; height: 22px; }
.plan-who { min-width: 0; display: grid; }
.plan-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-who small { color: var(--muted); }
.plan-person.has .plan-who small { color: var(--ok); font-weight: 600; }
.plan-actions { gap: 6px; flex-wrap: nowrap; }
.plan-actions .btn { min-height: 40px; padding: 6px 12px; }
.plan-cam-btn { display: inline-flex; align-items: center; gap: 6px; }
.plan-cam-btn span { display: flex; width: 18px; height: 18px; }
@media (max-width: 400px) { .plan-person.has .plan-actions .btn.ghost[href] { display: none; } }

/* ---------- Planning : onglets, horaires, congés ---------- */
.plan-tabs { justify-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); }
.plan-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tab-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.week-nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; text-align: center; }
.week-nav .icon-btn { width: 40px; height: 40px; font-size: 1.4rem; }
.cal-week { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal-day { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.cal-day .d { color: var(--muted); text-transform: capitalize; }
.cal-day small { grid-column: 2; color: var(--muted); }
.cal-day.work { background: var(--accent-soft); }
.cal-day.work b { color: var(--accent); }
.cal-day.leave { background: var(--ok-soft); }
.cal-day.leave b { color: var(--ok); }
.cal-day.is-today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cats .cat.sent { border-color: var(--ok); }
.h-grid { display: grid; gap: 6px; }
.h-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 8px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.h-row .d { font-size: .85rem; color: var(--muted); text-transform: capitalize; }
.h-row .input { min-height: 40px; padding: 6px 8px; min-width: 0; }
.h-row .input:disabled { opacity: .4; }
.h-row .dash { text-align: center; color: var(--muted); }
.h-row .check-inline { font-size: .82rem; gap: 5px; }
.h-row.leave .check-inline { color: var(--ok); font-weight: 600; }
.team-week { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team-week li { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: start; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.team-week li:last-child { border-bottom: 0; }
.team-week li.is-today .d { color: var(--accent); font-weight: 700; }
.team-week .d { font-size: .85rem; color: var(--muted); text-transform: capitalize; padding-top: 3px; }
.tw-names { display: flex; flex-wrap: wrap; gap: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 2px 0; }
.cal-cell { aspect-ratio: 1; min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font: inherit; color: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 0; cursor: pointer; padding: 0; position: relative; }
.cal-cell small { font-size: .75rem; line-height: 1; font-weight: 700; }
.cal-cell.out { opacity: .35; }
.cal-cell.past { color: var(--muted); }
.cal-cell:disabled { cursor: default; }
.cal-cell.is-today { border: 2px solid var(--accent); font-weight: 700; }
.cal-cell.pend { background: var(--warn-soft); border-color: transparent; }
.cal-cell.acc { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 700; }
.cal-cell.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); }
.cal-legend .lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cal-legend .acc::before { background: var(--ok-soft); border: 1px solid var(--ok); }
.cal-legend .pend::before { background: var(--warn-soft); border: 1px solid var(--warn); }
.cal-legend .sel::before { background: var(--accent); }
.cal-detail { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.cal-detail ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.leave-list { display: grid; gap: 10px; }
.leave { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.leave.pending { background: var(--warn-soft); }
.leave small { color: var(--muted); }
.leave-warn { color: var(--warn) !important; font-weight: 600; }
.leave-answer { margin: 0; font-style: italic; }
details.card.panel > summary { cursor: pointer; font: 400 1.1rem var(--f-display); }
.leave.refused { background: var(--danger-soft); } .leave.accepted { background: var(--ok-soft); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.tab-new { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 2px var(--surface); }
.plan-new { background: var(--accent-soft); border-color: transparent; font-weight: 600; }
.newsbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--sab) + 10px); z-index: 15;
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 0; border-radius: 14px; background: var(--night); color: var(--night-ink); font: inherit; font-size: .92rem; text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; animation: newsIn .25s ease-out; }
.newsbar b { color: var(--accent-ink); background: var(--accent); padding: 4px 12px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
@keyframes newsIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .newsbar { animation: none; } }
.cal-day b { display: flex; justify-content: space-between; gap: 8px; }
.cal-day .dur { color: var(--muted); font-weight: 600; font-size: .85rem; }
.week-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 12px 14px; border-radius: 10px; background: var(--night); color: var(--night-ink); }
.week-total b { font: 400 1.5rem var(--f-display); }
.week-total small { grid-column: 1 / -1; color: var(--night-muted); }
.team-totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-bottom: 6px; }
.team-totals div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }

/* ---------- Types de journée : travaillé, repos, congé, arrêt maladie ---------- */
.k-work { --k: var(--accent); --k-soft: var(--accent-soft); }
.k-off { --k: var(--muted); --k-soft: var(--surface-2); }
.k-leave { --k: var(--ok); --k-soft: var(--ok-soft); }
.k-sick { --k: var(--sick); --k-soft: var(--sick-soft); }
.cal-day[class*="k-"] { background: var(--k-soft); }
.cal-day[class*="k-"] b { color: var(--k); }
.cal-day.k-off b { color: var(--ink); }
.chip[class*="k-"] { background: var(--k-soft); color: var(--k); }
.cal-cell.static { cursor: default; }
.cal-cell[class*="k-"] { background: var(--k-soft); border-color: transparent; color: var(--k); font-weight: 700; }
.cal-cell.k-off { color: var(--muted); }
.month-kinds .cal-cell { aspect-ratio: auto; min-height: 52px; align-content: start; padding-top: 6px; gap: 2px; }
.month-kinds .cal-cell small { font-size: .75rem; font-weight: 600; white-space: nowrap; }
.cal-legend.kinds .lg::before { background: var(--k-soft); border: 1px solid var(--k); }
.month-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; }
.month-sum div { display: grid; justify-items: center; padding: 8px 4px; border-radius: 10px; background: var(--k-soft); color: var(--k); text-align: center; }
.month-sum b { font: 400 1.4rem var(--f-display); }
.month-sum span { font-size: .72rem; font-weight: 600; }
.h-row { grid-template-columns: 58px 84px minmax(0, 1fr) 8px minmax(0, 1fr); }
.h-row[class*="k-"] .kind-sel { background: var(--k-soft); color: var(--k); border-color: transparent; font-weight: 700; }
.kind-sel { min-height: 44px; padding: 4px 6px; font-size: 1rem; }
.month-kinds .cal-cell small.hrs { line-height: 1.15; font-size: .75rem; }
/* Ligne d'un jour : type + pause sur la première ligne, horaires en dessous (seulement pour un jour travaillé). */
.h-grid { gap: 8px; }
.h-row { grid-template-columns: 58px minmax(0, 1fr) 8px minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.h-row:last-child { border-bottom: 0; }
.h-row .d { grid-row: 1 / span 2; align-self: start; padding-top: 10px; }
.h-row .kind-sel { grid-column: 2; grid-row: 1; }
.h-row .pause-sel { grid-column: 3 / 5; grid-row: 1; min-height: 44px; padding: 4px 6px; font-size: 1rem; }
.h-row .st { grid-column: 2; grid-row: 2; }
.h-row .dash { grid-column: 3; grid-row: 2; }
.h-row .en { grid-column: 4; grid-row: 2; }
.h-row:not(.k-work):not(.k-school) .st, .h-row:not(.k-work):not(.k-school) .en, .h-row:not(.k-work):not(.k-school) .dash, .h-row:not(.k-work):not(.k-school) .pause-sel { display: none; }
.h-row:not(.k-work):not(.k-school) .d { padding-top: 10px; grid-row: 1; }
.time-sel { min-height: 44px; padding: 4px 8px; font-size: 1rem; font-variant-numeric: tabular-nums; }

/* ---------- Club VIP (clientes) ---------- */
.vip-entry { margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--gold); }
.vip-entry span { display: flex; }
.linkish { background: none; border: 0; padding: 6px 4px; min-height: 40px; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; justify-self: center; }
.consent { align-items: flex-start; font-size: .85rem; line-height: 1.4; }
.consent input { margin-top: 2px; flex: none; }
.vip-shell { min-height: 100dvh; background: var(--bg); }
.vip-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--sat)) 16px 12px; background: var(--night); color: var(--night-ink); }
.vip-head span { display: flex; }
.vip-head div { display: grid; line-height: 1.15; }
.vip-head b { font: 400 1.25rem var(--f-display); }
.vip-head small { color: var(--night-muted); letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.vip-main { max-width: 640px; margin: 0 auto; padding: 20px 16px calc(32px + var(--sab)); }
.vip-list { display: grid; gap: 12px; }
.vip-h3 { margin: 8px 0 0; font: 400 1.15rem var(--f-display); }
.vip-offer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.vip-offer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.vip-offer.mine { background: var(--ok-soft); border-color: transparent; }
.vip-offer.in-popup { box-shadow: none; border: 0; padding: 0; background: none; }
.vip-offer.in-popup::before { display: none; }
.vip-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vip-price { font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; font-size: .9rem; }
.vip-offer h3 { margin: 0; font: 400 1.35rem/1.25 var(--f-display); }
.vip-when { margin: 0; font-weight: 700; }
.vip-details { margin: 0; color: var(--muted); }
.vip-booked { margin: 0; color: var(--ok); font-weight: 600; }
.vip-pop { position: fixed; inset: 0; z-index: 60; background: rgba(20, 14, 28, .55); display: grid; place-items: end center; padding: 16px; padding-bottom: calc(16px + var(--sab)); animation: popIn .25s ease-out; }
.vip-pop-card { width: min(480px, 100%); background: var(--surface); border-radius: 20px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); text-align: left; }
.vip-pop-card h2 { margin: 0; font: 400 1.6rem var(--f-display); }
.vip-pop-card p { margin: 0; }
.vip-star { color: var(--gold); display: flex; }
@keyframes popIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vip-pop { animation: none; } }
.vip-settings summary { font: 400 1.1rem var(--f-display); cursor: pointer; }
.vip-settings h4 { margin: 8px 0 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
/* Côté équipe */
.vo-row { align-items: end; gap: 12px; flex-wrap: wrap; }
.vo-row .field { flex: 1; min-width: 140px; }
.vip-preview { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--night); color: var(--night-ink); }
.vip-preview small { color: var(--night-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.vip-row.booked { background: var(--ok-soft); }
.vip-row.closed { opacity: .6; }
.vip-client { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.vip-client a { color: var(--accent); font-weight: 600; }
.vip-code .code-big { font: 400 2.6rem var(--f-display); letter-spacing: .3em; text-align: center; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.vip-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.plan-tabs button { white-space: nowrap; font-size: .86rem; padding-left: 4px; padding-right: 4px; }

/* ---------- Club VIP : onglets, offres, articles, carte ---------- */
.vip-main { padding-bottom: calc(var(--nav-h) + var(--sab) + 24px); }
.vip-nav .nav-inner button { font-size: .75rem; }
.vip-dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 9px; height: 9px; min-width: 0; padding: 0; border-radius: 50%; background: var(--accent); }
.vip-post { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: grid; }
.vip-post-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--surface-2); }
.vip-post-body { padding: 16px; display: grid; gap: 8px; }
.vip-post h3 { margin: 0; font: 400 1.35rem/1.25 var(--f-display); }
.vip-text { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.vip-until { color: var(--muted); font-weight: 600; }
.vip-post .btn.primary { justify-self: start; }
.carte { display: grid; gap: 8px; }
.carte-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.carte-sec summary { cursor: pointer; padding: 12px 0; font: 400 1.15rem var(--f-display); list-style-position: outside; }
.carte-sec ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.carte-line { display: flex; align-items: baseline; gap: 6px; }
.carte-line .n { font-weight: 600; }
.carte-line .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 12px; }
.carte-line b { color: var(--accent); white-space: nowrap; }
.carte-sec small { color: var(--muted); }
.menu-sec summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
.menu-sec summary::-webkit-details-marker { display: none; }
.menu-sec summary small { color: var(--muted); padding-left: 4px; }
.menu-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 70px 36px; gap: 6px; align-items: center; margin-top: 6px; }
.menu-row .input { min-height: 44px; padding: 6px 8px; font-size: 1rem; min-width: 0; }
.vp-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.vip-nav .dot.vip-dot { width: 9px; height: 9px; min-width: 0; padding: 0; font-size: 0; top: 8px; left: calc(50% + 8px); }
.vip-pending { display: grid; gap: 6px; }
.vip-pending p { margin: 0; color: var(--warn); font-weight: 600; }
.vip-offer.st-pending { background: var(--warn-soft); border-color: transparent; }
.vip-offer.st-accepted { background: var(--ok-soft); border-color: transparent; }
.vip-offer.st-refused { opacity: .75; }
.vip-refused { margin: 0; color: var(--muted); font-weight: 600; }
.vip-reqs { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface); }
.vip-req { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.vip-req-who { display: grid; }
.vip-req-who a { color: var(--accent); font-weight: 600; }
.vip-req .row { gap: 6px; flex-wrap: nowrap; }

/* ======================================================================
   Club VIP — thème « soir au spa » : aubergine profond, ivoire chaud, filets d'or.
   Toutes les briques communes (boutons, puces, cartes) suivent ces jetons automatiquement.
   ====================================================================== */
body[data-mode="vip"] {
  --bg: #171120; --surface: #211A2C; --surface-2: #2B2237; --ink: #F4EDE3; --muted: #B5A99E; --line: rgba(201,169,110,.22);
  --accent: #C9A96E; --accent-ink: #1B1424; --accent-soft: rgba(201,169,110,.14); --gold: #D9BC84;
  --night: #110C18; --night-2: #1D1527; --night-ink: #F4EDE3; --night-muted: #9F9389;
  --ok: #9ED3B4; --ok-soft: rgba(84,160,120,.18); --warn: #E7C48A; --warn-soft: rgba(201,169,110,.12); --danger: #F0A099; --danger-soft: rgba(200,90,80,.18);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 14px 40px -18px rgba(0,0,0,.7);
  --r: 16px; --r-lg: 24px;
  background: var(--bg); color: var(--ink); color-scheme: dark;
}
body[data-mode="vip"] .btn.primary { background: linear-gradient(135deg, #D9BC84, #B8955A); border-color: transparent; color: #1B1424; box-shadow: 0 10px 24px -12px rgba(201,169,110,.8); font-weight: 700; letter-spacing: .01em; }
body[data-mode="vip"] .btn.ghost { border-color: var(--line); color: var(--ink); }
body[data-mode="vip"] .input { background: rgba(255,255,255,.04); }
body[data-mode="vip"] .card, body[data-mode="vip"] .vip-offer, body[data-mode="vip"] .vip-post { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)) , var(--surface); }
body[data-mode="vip"] .notice { background: transparent; border-color: var(--line); color: var(--muted); }
body[data-mode="vip"] .chip { background: rgba(255,255,255,.06); color: var(--muted); }
body[data-mode="vip"] .linkish { color: var(--muted); }
body[data-mode="vip"] .linkish.gold { color: var(--gold); text-decoration: none; font-weight: 600; justify-self: start; padding: 4px 0; }
body[data-mode="vip"] .seg { background: rgba(255,255,255,.06); }
body[data-mode="vip"] .seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
body[data-mode="vip"] .toast { background: #F4EDE3; color: #1B1424; }
body[data-mode="vip"] .auth { background: radial-gradient(90% 60% at 50% 0%, #2A1F3A, #171120 70%); }
body[data-mode="vip"] .auth-brand h1 { font-size: 2.3rem; letter-spacing: .04em; }
body[data-mode="vip"] .auth-card { background: var(--surface); border-color: var(--line); }

/* Coquille cliente */
.vip-shell { min-height: 100dvh; background:
  radial-gradient(70% 40% at 50% -5%, rgba(201,169,110,.16), transparent 70%), var(--bg); }
.vip-head { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: calc(10px + var(--sat)) 18px 10px; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); color: var(--ink); }
.vip-star-head { display: flex; color: var(--gold); filter: drop-shadow(0 0 10px rgba(217,188,132,.45)); }
.vip-brand { display: grid; line-height: 1.1; }
.vip-brand b { font: 400 1.25rem var(--f-display); letter-spacing: .06em; }
.vip-brand small { color: var(--muted); letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; }
/* Appli « Les Loges Club » des stores : le nom de l'institut ouvre « Mes instituts ». */
.vip-switch { background: none; border: 0; padding: 4px 0; text-align: left; color: inherit; cursor: pointer; min-height: 44px; font: inherit; }
.vip-back { display: block; margin: 0 auto 8px; }
.vip-me { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--gold);
  font: 400 1.05rem var(--f-display); display: grid; place-items: center; transition: transform .12s var(--ease), border-color var(--t); }
.vip-me:active { transform: scale(.94); }
.vip-me[aria-current="page"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.vip-main { max-width: 640px; margin: 0 auto; padding: 22px 18px calc(var(--nav-h) + var(--sab) + 30px); gap: 22px; animation: view-in .32s var(--ease) both; }
.vip-main .view-head h2 { font-size: 1.75rem; }
.vip-main .eyebrow { color: var(--gold); }

/* Écran d'accueil : le mot de bienvenue est l'élément mémorable, tout le reste reste discret. */
.vip-hero { padding: 18px 0 6px; display: grid; gap: 6px; }
.vip-date { margin: 0; color: var(--muted); font-size: .85rem; }
.vip-hero h1 { margin: 2px 0 0; font: 400 clamp(2.1rem, 9vw, 2.7rem)/1.08 var(--f-display); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.vip-wish { margin: 0; font: 400 1.15rem/1.4 var(--f-display); color: var(--gold); text-wrap: balance; }
.vip-rule { display: block; width: 56px; height: 1px; margin-top: 14px; background: linear-gradient(90deg, var(--gold), transparent); }
.vip-h3 { margin: 0; font: 400 1.15rem var(--f-display); color: var(--ink); letter-spacing: .01em; }
.vip-quiet { margin: 0; color: var(--muted); line-height: 1.55; }
.vip-teasers { display: grid; gap: 10px; }
.vip-teaser { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; text-align: left; padding: 10px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: transform .12s var(--ease), border-color var(--t); }
.vip-teaser:not(.has-photo) { grid-template-columns: 1fr; padding: 14px 16px; }
.vip-teaser:active { transform: scale(.985); }
.vip-teaser img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.vip-teaser div { display: grid; gap: 2px; min-width: 0; }
.vip-teaser small { color: var(--gold); font-size: .78rem; font-weight: 600; }
.vip-teaser b { font: 400 1.1rem/1.25 var(--f-display); }
.vip-teaser span { color: var(--muted); font-size: .88rem; }
.vip-carte-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 16px 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: transparent; color: var(--ink); }
.vip-carte-link span:first-child { display: grid; gap: 2px; }
.vip-carte-link b { font: 400 1.1rem var(--f-display); }
.vip-carte-link small { color: var(--muted); }
.vip-carte-link .chev { font-size: 1.6rem; color: var(--gold); line-height: 1; }

/* Dispos et contenus */
.vip-offer { border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.vip-offer::before { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .8; }
.vip-offer h3 { font-size: 1.45rem; }
.vip-price { background: var(--accent-soft); color: var(--gold); font-family: var(--f-display); font-weight: 400; font-size: .98rem; letter-spacing: .01em; }
.vip-when { color: var(--ink); }
.vip-ask { display: grid; gap: 8px; }
.vip-ask small { color: var(--muted); text-align: center; }
.vip-offer.st-pending { background: var(--surface); border-color: rgba(231,196,138,.45); }
.vip-offer.st-accepted { border-color: rgba(158,211,180,.5); }
.vip-booked { color: var(--ok); }
.vip-pending p { color: var(--warn); }
.vip-post { border-radius: var(--r-lg); border: 1px solid var(--line); }
.vip-post h3 { font-size: 1.45rem; }
.vip-post-img { aspect-ratio: 16 / 10; }
.vip-until { color: var(--gold); }
.carte-sec { background: var(--surface); border-color: var(--line); border-radius: var(--r); }
.carte-line b { color: var(--gold); font-family: var(--f-display); font-weight: 400; font-size: 1rem; }
.carte-line .dots { border-bottom-color: rgba(201,169,110,.35); }
body[data-mode="vip"] .carte-sec summary { color: var(--ink); }

/* Fenêtres : ivoire sur la nuit */
body[data-mode="vip"] .vip-pop { background: rgba(10, 6, 16, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body[data-mode="vip"] .vip-pop-card { background: #F7F1E8; color: #1B1424; border-radius: 24px; padding: 24px; animation: pop-up .32s var(--ease) both; }
@keyframes pop-up { from { transform: translateY(24px); opacity: 0; } }
body[data-mode="vip"] .vip-pop-card .vip-offer { background: transparent; color: #1B1424; }
body[data-mode="vip"] .vip-pop-card .vip-when, body[data-mode="vip"] .vip-pop-card .vip-offer h3, body[data-mode="vip"] .vip-pop-card h2 { color: #1B1424; }
body[data-mode="vip"] .vip-pop-card .chip { background: rgba(27,20,36,.08); color: #5C5160; }
body[data-mode="vip"] .vip-pop-card .vip-price { background: rgba(201,169,110,.2); color: #8A6A2E; }
body[data-mode="vip"] .vip-pop-card .vip-details, body[data-mode="vip"] .vip-pop-card .vip-ask small, body[data-mode="vip"] .vip-pop-card p { color: #4A4050; }
body[data-mode="vip"] .vip-pop-card .btn.ghost { border-color: rgba(27,20,36,.18); color: #1B1424; }
body[data-mode="vip"] .vip-pop-card .eyebrow { color: #8A6A2E; }
body[data-mode="vip"] .vip-star { color: #B8955A; }

/* Barre d'onglets cliente */
body[data-mode="vip"] .nav { background: color-mix(in srgb, var(--bg) 86%, transparent); border-top-color: var(--line); }
body[data-mode="vip"] .nav button { color: var(--muted); font-size: .75rem; letter-spacing: .02em; }
body[data-mode="vip"] .nav button[aria-current="page"] { color: var(--gold); }
body[data-mode="vip"] .nav button::before { background: var(--accent-soft); }
body[data-mode="vip"] .nav .ico { display: flex; }
body[data-mode="vip"] .nav .ico svg { width: 22px; height: 22px; }
body[data-mode="vip"] .vip-dot { background: var(--gold); box-shadow: 0 0 0 2px var(--bg); }
body[data-mode="vip"] .newsbar { display: none; }
.pct-seg { flex-wrap: wrap; }
.pct-seg button { padding: 8px 10px; font-size: .85rem; }
.price-calc { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.price-calc span { color: var(--muted); font-size: .85rem; }
.price-calc b { font: 400 1.3rem var(--f-display); }
.menu-row .mr-desc { grid-column: 1 / -1; min-height: 36px; font-size: .85rem; }
.carte-desc { margin: 2px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Entraide : renfort urgent et échanges de jours ---------- */
.help-form .row .field { font-size: .82rem; font-weight: 600; color: var(--muted); }
.help-form .time-sel { width: auto; min-width: 96px; }
.help-replies { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--surface); }
.help-reply { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.help-reply:first-of-type { border-top: 0; }
.swap-card .leave-answer { margin-top: 2px; }
.plan-tabs button { padding-left: 2px; padding-right: 2px; }
@media (max-width: 420px) { .plan-tabs button { font-size: .78rem; } }

/* ---------- Export des heures ---------- */
.export-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.export-sum li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.export-sum li small { grid-column: 1 / -1; opacity: .7; }
.export-sum b { font-variant-numeric: tabular-nums; }
.export-mail { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 480px) { .export-mail { grid-template-columns: 1fr; } }
details.help summary { cursor: pointer; opacity: .8; font-size: .9em; }

/* ---------- Rappels RH, contrats, parcours d'intégration ---------- */
.rh-card .row > .row { gap: 6px; }
.rh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rh-item { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.rh-item.soon { background: var(--warn-soft); }
.rh-item.late { background: var(--danger-soft); }
.rh-date { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); line-height: 1.05; }
.rh-date b { font: 400 1.25rem/1 var(--f-display); }
.rh-date small { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rh-body { display: grid; gap: 3px; min-width: 0; }
.rh-body small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.rh-body .chip { justify-self: start; }
.rh-acts { justify-content: flex-end; gap: 6px; }
.rh-obs { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.rh-ob { display: grid; grid-template-columns: minmax(0,1fr) 120px auto; gap: 10px; align-items: center; background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rh-ob small { color: var(--muted); }
.rh-form { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.rh-form .input { background: var(--surface); }
.field.span2 { grid-column: span 2; }
.rh-wrap { border-top: 1px solid var(--line); }
.card.list > .rh-wrap:first-child { border-top: 0; }
.rh-wrap > .list-item { border-top: 0; }
.rh-panel { display: grid; gap: 10px; padding: 4px 16px 18px 68px; }
.rh-panel > b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.ob-steps { display: grid; gap: 4px; }
.ob-steps .cl-section h4 { margin: 8px 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ob-tpl summary { list-style: none; cursor: pointer; display: grid; gap: 2px; }
.ob-tpl summary::-webkit-details-marker { display: none; }
.ob-tpl summary h3::after { content: " ›"; color: var(--muted); }
.ob-tpl[open] summary h3::after { content: " ⌄"; }
.ob-tpl-row { display: grid; grid-template-columns: 150px minmax(0,1fr) 120px auto; gap: 8px; align-items: center; }
@media (max-width: 820px) {
  .rh-item { grid-template-columns: 44px minmax(0,1fr); }
  .rh-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .rh-panel { padding: 4px 14px 16px; }
  .field.span2 { grid-column: auto; }
  .ob-tpl-row { grid-template-columns: minmax(0,1fr) 110px auto; }
  .ob-tpl-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .rh-ob { grid-template-columns: minmax(0,1fr) 80px auto; }
}

/* ---------- Anniversaires VIP ---------- */
.bday-pick { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 8px; max-width: 320px; }
.leave .bday-pick { flex: 1 1 240px; }
.vip-bday { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: center; margin-top: 12px; padding: 16px 18px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, transparent), color-mix(in srgb, var(--accent) 14%, transparent)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.vip-bday-ico { font-size: 2rem; }
.vip-bday b { font: 400 1.35rem/1.2 var(--f-display); }
.vip-bday p { margin: 4px 0 0; line-height: 1.5; }
.vip-gift { display: grid; gap: 6px; justify-items: center; text-align: center; margin-top: 12px; padding: 18px; border-radius: var(--r-lg);
  border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.vip-gift small { color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.vip-gift b { font: 400 1.3rem/1.25 var(--f-display); }
.vip-gift-code { font: 600 1.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; padding: 10px 16px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: inherit; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); user-select: all; }
.vip-gift p { margin: 0; line-height: 1.5; font-size: .92rem; }
.vip-gift.used { opacity: .75; border-style: solid; }

/* Free-lances et check-lists personnalisées */
.guest-row { justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.guest-row small { margin-right: 4px; }
.perso-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.perso-card.is-complete { border-color: var(--ok, #3c8d5a); }
.perso-card .check input:disabled { opacity: .55; }

/* Postes de l'équipe (Équipe) */
.postes-list { display: grid; gap: 0; }
.postes-list .list-item { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
.postes-list .list-item:last-child { border-bottom: 0; }

/* Bandeau notifications (sous l'en-tête) */
.push-nudge { display: flex; align-items: center; gap: 10px; margin: 10px auto 0; width: min(1100px, calc(100% - 32px)); min-height: 48px;
  padding: 4px 4px 4px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; }
.push-nudge .pn-ico { font-size: 1rem; }
.push-nudge .pn-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-nudge .pn-btn { border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; border-radius: 10px; min-height: 40px; padding: 0 14px; cursor: pointer; }
.push-nudge .pn-close { border: 0; background: none; color: var(--muted); font-size: 1rem; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
body:has(.chat-wrap.in-channel) .push-nudge { display: none; }
/* Barre du bas à 7 onglets (direction, accueil) : tout tient sur un téléphone. */
.nav button { min-width: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-inner:has(> :nth-child(7)) button svg { width: 21px; height: 21px; }
.bday-pick.bdate-pick { grid-template-columns: 76px minmax(0,1fr) 96px; max-width: 360px; }
.vip-gate { z-index: 70; place-items: center; background: rgba(20, 14, 28, .78); }
.vip-gate .vip-pop-card { text-align: center; }
.vip-gate .vip-pop-card p { margin: 0; color: var(--muted); }
.vip-gate .vip-steps { text-align: left; margin: 0; }
.vip-gate-ico { font-size: 2rem; }
.update-gate { z-index: 90; }
.update-gate .vip-pop-card { display: grid; gap: 12px; justify-items: center; }

/* Export des données : tableau récapitulatif et aperçu plein écran */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.export-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.export-table th, .export-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.export-table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.export-table td.num, .export-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.export-table td.wk { white-space: nowrap; }
.export-panel .export-table { font-size: .88rem; }
.export-panel .export-table th { font-size: .75rem; letter-spacing: .04em; }
.export-table td small { display: block; color: var(--muted); font-size: .78rem; }
.export-table td.note { color: var(--muted); font-size: .85rem; min-width: 120px; }
.export-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--line); }
.export-table tr.k-leave td:nth-child(2) { color: var(--ok, #3c8d5a); }
.export-table tr.k-sick td:nth-child(2) { color: var(--danger, #b3261e); }
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.overlay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.overlay-head h2 { margin: 0; font: 400 1.25rem/1.2 var(--f-display); }
.overlay-close { flex: none; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; }
.overlay-body { flex: 1; overflow-y: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.export-person { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.export-person summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.export-person summary::-webkit-details-marker { display: none; }
.export-person summary .num { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.export-person summary::after { content: "›"; color: var(--muted); font-size: 1.2rem; }
.export-person[open] summary::after { content: "⌄"; }
.export-person h4 { margin: 14px 0 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* Gestion des fils (direction) */
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chat-head-txt { min-width: 0; }
.ch-add { justify-self: start; margin-top: 6px; }
.ch-form { display: grid; gap: 8px; }
.ch-form h4 { margin: 0; font: 400 1.05rem var(--f-display); }
.ch-edit { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }

/* Mise à jour disponible */
.update-card { display: grid; gap: 4px; justify-items: start; border-color: var(--accent); background: var(--accent-soft); }
.update-link { font-weight: 700; font-size: 1.05rem; color: var(--accent); text-decoration: none; }
.update-card:not(.is-ok) .update-link::before { content: "⬆ "; }
.update-card.is-ok { border-color: var(--line); background: var(--surface); }
.update-card.is-ok .update-link { color: var(--ok, #2E7D4F); cursor: default; font-weight: 600; }

/* Vidéos (articles du Club VIP et protocoles) */
.video-box { position: relative; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.vip-post > .video-box { border-radius: 0; }
.video-box video { display: block; width: 100%; max-height: 70vh; background: #000; }
.video-box.embed { aspect-ratio: 16 / 9; }
.video-box.embed.tall { aspect-ratio: 9 / 16; max-height: 80vh; max-width: 420px; margin: 0 auto; background: var(--surface-2); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wait { padding: 18px 16px; background: var(--surface-2); border-radius: 12px; color: var(--muted); font-size: .95rem; }
.vip-post > .video-wait { border-radius: 0; }
.video-pick { flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.video-progress { position: relative; margin-top: 8px; height: 30px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.video-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent, #6b2d4f); opacity: .35; transition: width .3s; }
.video-progress small { position: relative; display: block; line-height: 30px; padding: 0 12px; font-weight: 600; }

/* Qualité de l'eau (plusieurs bassins) */
.eau-panel { display: grid; gap: 12px; }
.eau-panel h3 { margin: 0; }
.eau-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.eau-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; background: var(--surface); }
.eau-card h4 { margin: 0; font: 600 1rem/1.3 var(--f-body, inherit); }
.eau-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 10px; }
.eau-fields .field { font-size: .85rem; margin: 0; }
.eau-fields .field.opt { color: var(--muted); }
.eau-fields .input { font-variant-numeric: tabular-nums; }
.eau-info { display: grid; gap: 4px; font-size: .88rem; }
.eau-info:empty { display: none; }
.eau-ok { color: var(--muted); }
.eau-bad { color: #B3261E; font-weight: 600; }
.eau-status { gap: 8px; flex-wrap: wrap; }
.eau-test { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.eau-test-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eau-table-wrap { overflow-x: auto; }
.eau-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.eau-table th, .eau-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.eau-table th:first-child, .eau-table tbody th { text-align: left; font-weight: 600; }
.eau-table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.eau-table td.bad { background: #FBE3E1; color: #B3261E; font-weight: 700; }
.eau-export { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.eau-export h4 { margin: 0; }
.eau-export .month-nav { align-items: center; gap: 10px; }

/* Cases faites : bien lisibles (pas barrées), sur fond vert léger, avec le prénom et l'heure. */
.check input:checked + span { text-decoration: none; color: var(--ink); }
.check.is-done { background: color-mix(in srgb, var(--ok) 9%, transparent); border-radius: 10px; }
.check.is-done .last-done { color: var(--ok); font-weight: 600; }
.h-body .done-list { margin: 4px 0 0; padding-left: 18px; }
.h-body .done-list small { color: var(--muted); }

/* Bandeau : notification venant de l'autre espace */
.notif-other { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%); z-index: 90; width: min(520px, calc(100% - 24px));
  display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); animation: notifIn .25s ease; }
.notif-other.out { opacity: 0; transform: translate(-50%, -8px); transition: .25s; }
.notif-main { flex: 1; display: grid; gap: 3px; text-align: left; background: none; border: 0; padding: 12px 14px; color: var(--ink); font: inherit; cursor: pointer; }
.notif-main .chip { justify-self: start; }
.notif-main span:last-child { color: var(--muted); font-size: .92rem; }
.notif-x { background: none; border: 0; padding: 0 14px; color: var(--muted); font-size: 1rem; cursor: pointer; }
@keyframes notifIn { from { opacity: 0; transform: translate(-50%, -8px); } }

/* Résumé du jour d'un fil */
.digest { margin: 10px 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--accent-soft); flex: 0 0 auto; }
.digest summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 8px; padding: 10px 14px; }
.digest summary::-webkit-details-marker { display: none; }
.digest summary::after { content: "▾"; grid-column: 3; grid-row: 1 / span 2; color: var(--muted); }
.digest[open] summary::after { content: "▴"; }
.digest-sub { color: var(--muted); font-size: .85rem; grid-column: 2; }
.digest-body { padding: 0 14px 12px; display: grid; gap: 10px; max-height: 28vh; overflow: auto; overscroll-behavior: contain; }
.digest-sec h5 { margin: 0 0 4px; font-size: .85rem; }
.digest-sec.urgent h5 { color: var(--danger); }
.digest-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.digest-sec li { display: grid; gap: 1px; background: var(--surface); border-radius: 10px; padding: 6px 10px; font-size: .92rem; }
.digest-sec li small { color: var(--muted); font-size: .78rem; }
.digest-people { margin: 0; color: var(--muted); font-size: .82rem; }
.digest-ico { grid-row: 1 / span 2; font-size: 1.2rem; }

/* Validations de la direction */
.appr-card { display: grid; gap: 10px; border-color: var(--accent); }
.appr-card h3 { margin: 0; }
.appr-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.appr-txt { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.appr-txt small { color: var(--muted); }
.appr-act { display: grid; gap: 6px; flex: 1 1 240px; }
.appr-recent summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

/* Heures supplémentaires */
.h-row .d { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ot-btn { border: 1px dashed var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; font: 600 .72rem/1 var(--f-body); padding: 5px 6px; cursor: pointer; white-space: nowrap; min-height: 26px; }
.ot-btn.has { border-style: solid; border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.ot-panel { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); }
.ot-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
.ot-add { display: grid; grid-template-columns: 150px 90px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 620px) { .ot-add { grid-template-columns: minmax(0, 1fr) 96px; } .ot-add input, .ot-add .btn { grid-column: 1 / -1; } }
.ot-btn.neg { border-style: solid; border-color: var(--sick); color: var(--sick); background: var(--sick-soft); }
.ot-mark.neg, .ot-line.neg { color: var(--sick); }
.ot-mark { color: var(--warn); font-weight: 700; }
.ot-line { color: var(--warn); font-weight: 600; }

/* Messages urgents */
.urgent-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 70px); z-index: 30;
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; border-radius: 14px;
  background: #B3261E; color: #fff; font: inherit; text-align: left; box-shadow: 0 10px 28px rgba(179,38,30,.35); cursor: pointer; animation: urgentPulse 2s ease-in-out infinite; }
.urgent-bar .ub-ico { font-size: 1.3rem; }
.urgent-bar .ub-txt { flex: 1; display: grid; gap: 2px; min-width: 0; font-size: .9rem; }
.urgent-bar .ub-txt span { opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urgent-bar .ub-go { background: #fff; color: #B3261E; font-weight: 700; border-radius: 999px; padding: 6px 12px; font-size: .85rem; white-space: nowrap; }
@keyframes urgentPulse { 0%, 100% { box-shadow: 0 10px 28px rgba(179,38,30,.35); } 50% { box-shadow: 0 10px 34px rgba(179,38,30,.65); } }
@media (prefers-reduced-motion: reduce) { .urgent-bar { animation: none; } }
.read-by { display: block; margin-top: 4px; font-size: .78rem; color: var(--ok); font-weight: 600; }
.read-by.none { color: var(--danger); }
.chip.sched { justify-self: start; background: var(--sick-soft); color: var(--sick); font-weight: 700; }
/* Jour d'école (apprenties, alternantes) */
:root { --school: #8A6100; --school-soft: #FFF1CC; }
.k-school { --k: var(--school); --k-soft: var(--school-soft); }
/* Horaires enregistrés (brouillon) ou programmés */
.cat.draft { border-style: dashed; }
.draft-status { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; font-weight: 600; }
.draft-status.auto { background: var(--sick-soft); color: var(--sick); }
.draft-status.sent { background: var(--ok-soft); color: var(--ok); }

/* Planning du mois de toute l'équipe : un carré par salariée et par jour */
.team-cell { aspect-ratio: auto; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 5px 3px; cursor: pointer; }
.team-cell .tc-num { font-weight: 700; font-size: .9rem; }
.team-cell .tc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
.dot-k { width: 9px; height: 9px; border-radius: 2px; background: var(--k, transparent); display: block; }
.dot-k.none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.dot-k.k-off { background: var(--muted); opacity: .45; }
.team-cell .tc-away { font-size: .75rem; color: var(--danger); font-weight: 700; }
.team-cell.sel-day { outline: 2px solid var(--ink); outline-offset: -2px; }
.team-day { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.td-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.td-names { font-size: .92rem; }
.chip.k-work, .chip.k-leave, .chip.k-sick, .chip.k-school, .chip.k-off { background: var(--k-soft); color: var(--k); font-weight: 700; }
@media (min-width: 700px) { .dot-k { width: 11px; height: 11px; } .team-cell { min-height: 76px; } }

/* Réunions */
.plan-tabs button { font-size: .82rem; padding-left: 4px; padding-right: 4px; }
.meet-sec { display: grid; gap: 12px; }
.meet-sec h3 { margin: 0; }
.meet-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.meet-card.ok { border-color: var(--ok); }
.meet-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.meet-top b { font-size: 1.05rem; }
.meet-top small { flex-basis: 100%; }
.meet-people { color: var(--muted); }
.meet-motif { margin: 0; font-size: .95rem; }
.meet-when { padding: 8px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.meet-slots { display: grid; gap: 6px; }
.meet-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.meet-slot.best { box-shadow: inset 0 0 0 2px var(--ok); }
.ms-when { font-weight: 600; flex: 1 1 160px; text-transform: capitalize; }
.ms-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-vote { display: flex; gap: 6px; }
.ms-vote .btn.on { background: var(--danger-soft); }
.meet-report { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.meet-report p { margin: 4px 0 0; white-space: pre-line; }
.meet-report-edit { display: grid; gap: 6px; }
.meet-report-edit summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.meet-form { display: grid; gap: 12px; }
.meet-pick { text-transform: capitalize; }
.meet-add { gap: 8px; flex-wrap: wrap; }
.meet-add .input { flex: 1 1 140px; }
.meet-line { color: var(--accent); font-weight: 600; }

/* À l'honneur (onglet Mots doux) */
.spot { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.spot.big { grid-template-columns: 1fr; padding: 0; overflow: hidden; border-color: var(--gold, #C9A36B); }
.spot-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.spot.big .spot-img { aspect-ratio: 4 / 3; border-radius: 0; max-height: 380px; }
.spot-initial { width: 96px; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font: 400 2.4rem var(--f-display); background: var(--accent-soft); color: var(--accent); }
.spot.big .spot-initial { width: 100%; aspect-ratio: auto; height: 120px; border-radius: 0; }
.spot-body { display: grid; gap: 6px; min-width: 0; }
.spot.big .spot-body { padding: 16px 18px 18px; }
.spot-kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold, #A87A1E); font-weight: 700; }
.spot h3 { margin: 0; font: 400 1.35rem/1.25 var(--f-display); }
.spot.big h3 { font-size: 1.6rem; }
.spot-name { color: var(--accent); }
.spot-text { margin: 0; white-space: pre-line; line-height: 1.55; }
.spot .kudo-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spot-old summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.spot-form { display: grid; gap: 10px; }
/* Banderole « À l'honneur » sur l'écran d'accueil */
.honneur-ribbon { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--gold, #C9A36B); border-radius: 16px;
  background: linear-gradient(90deg, rgba(201,163,107,.22), rgba(201,163,107,.06)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.honneur-ribbon img, .honneur-ribbon .hr-ini { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 2px solid var(--gold, #C9A36B); }
.honneur-ribbon .hr-ini { display: grid; place-items: center; font: 400 1.5rem var(--f-display); background: var(--accent-soft); color: var(--accent); }
.hr-txt { flex: 1; display: grid; gap: 1px; min-width: 0; }
.hr-txt small { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold, #A87A1E); font-weight: 700; }
.hr-txt span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-go { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Réactions et « Lu par » dans la messagerie */
.react-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; position: relative; }
.react { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: .9rem; cursor: pointer; }
.react span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.react.mine { border-color: var(--accent); background: var(--accent-soft); }
.react.mine span { color: var(--accent); }
.react.add { color: var(--muted); font-size: .8rem; opacity: .75; }
.msg:not(:hover) .react.add { opacity: .45; }
.react-pick { display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.react-pick button { border: 0; background: none; font-size: 1.25rem; padding: 4px; cursor: pointer; border-radius: 8px; min-width: 34px; min-height: 34px; }
.react-pick button:hover { background: var(--surface-2); }
button.read-by { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; font-size: .78rem; color: var(--ok); font-weight: 600; }

/* Recadrage d'une photo */
.crop-ov { position: fixed; inset: 0; z-index: 100; background: #111; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.crop-top { width: min(900px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crop-top .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.crop-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; margin: auto 0; }
.crop-img { display: block; }
.crop-frame { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; touch-action: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.33% 33.33%; background-position: -1px -1px; }
.crop-h { position: absolute; width: 26px; height: 26px; border: 4px solid #fff; }
.crop-h.nw { left: -5px; top: -5px; border-right: 0; border-bottom: 0; cursor: nwse-resize; }
.crop-h.ne { right: -5px; top: -5px; border-left: 0; border-bottom: 0; cursor: nesw-resize; }
.crop-h.sw { left: -5px; bottom: -5px; border-right: 0; border-top: 0; cursor: nesw-resize; }
.crop-h.se { right: -5px; bottom: -5px; border-left: 0; border-top: 0; cursor: nwse-resize; }
.crop-ratios { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.crop-ratios button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: .88rem; min-height: 38px; cursor: pointer; }
.crop-ratios button[aria-pressed="true"] { background: #fff; color: #111; }
.crop-hint { margin: 0; font-size: .82rem; opacity: .7; }
.cl-thumb .icon-btn.crop { position: absolute; left: 4px; right: auto; top: 4px; }
.leave-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.leave-thread { display: grid; gap: 6px; }
.lt-msg { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; font-size: .92rem; max-width: 92%; }
.lt-msg.dir { background: var(--warn-soft); justify-self: start; }
.lt-msg.emp { background: var(--accent-soft); justify-self: end; }
.lt-msg small { color: var(--muted); font-size: .75rem; }

/* Tuto : bouton de l'accueil et page mode d'emploi */
.tuto-btn { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--line, #E4DCEA); border-radius: 16px;
  background: var(--surface, #fff); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-height: 52px; }
.tuto-btn .tb-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--accent); color: #fff; font: 700 1.05rem var(--f-display); }
.tb-txt { flex: 1; display: grid; gap: 1px; min-width: 0; }
.tb-txt span { color: var(--muted); font-size: .88rem; }
.tuto-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tuto-chips button { border: 1px solid var(--line, #E4DCEA); background: var(--surface, #fff); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.tuto-sec { scroll-margin-top: 80px; }
.tuto-sec h3 { display: flex; align-items: center; gap: 10px; }
.tuto-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night, #2B0F2A); color: var(--gold, #C9A36B); font: 400 1rem var(--f-display); flex: 0 0 auto; }
.tuto-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.tuto-steps li { display: grid; gap: 3px; line-height: 1.5; }
.tuto-steps li::marker { color: var(--gold, #A87A1E); font-weight: 700; }
.tuto-steps span { color: var(--muted); }

/* Avertissements check-lists */
.warn-card { border-color: var(--warn, #B26A00); background: var(--warn-soft, #FFF4E0); }
.warn-card h3 { margin: 0; }
.warn-card ul { margin: 4px 0 0; padding-left: 20px; }
.warn-text { margin: 0; white-space: pre-line; }
.warn-home { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; margin-bottom: 12px; border: 1.5px solid var(--warn, #B26A00); border-radius: 16px;
  background: var(--warn-soft, #FFF4E0); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-height: 52px; }
.warn-home .tb-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--warn, #B26A00); color: #fff; font: 700 1.1rem var(--f-body); }
.warn-form { border: 1.5px solid var(--warn, #B26A00); border-radius: var(--r, 14px); padding: 12px 14px; background: var(--warn-soft, #FFF4E0); gap: 10px; }
.warn-form h4 { margin: 0; }
.warn-items { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding: 4px 0; }
.warn-btn { border-color: var(--warn, #B26A00); color: var(--warn, #B26A00); }
.warn-sent summary { cursor: pointer; font-weight: 600; }
.warn-people { gap: 6px; flex-wrap: wrap; }
.warn-sent-mini { display: grid; gap: 2px; color: var(--warn, #B26A00); }

/* Jamais de page plus large que l'écran (pas de dézoom possible sur téléphone) :
   les barres d'onglets trop longues défilent à l'intérieur d'elles-mêmes. */
html, body { overflow-x: clip; max-width: 100%; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 0 0 auto; white-space: nowrap; }
.poste-seg { justify-self: stretch; width: fit-content; margin-bottom: 6px; }
#main, #main > *, .stack > * { min-width: 0; }

/* Visionneuse de photos */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: #0C0812; display: grid; place-items: center; touch-action: pinch-zoom; }
.lb-img { max-width: 100vw; max-height: calc(100dvh - 120px); object-fit: contain; transition: transform .15s ease; user-select: none; -webkit-user-drag: none; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) 12px 10px; color: #fff; }
.lb-count { flex: 1; font-weight: 600; font-size: .95rem; }
.lb-close, .lb-open { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 14px; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
.lb-nav[hidden] { display: none; }
body.lb-open { overflow: hidden; }

/* Fermeture de la veille, à vérifier par l'équipe d'ouverture */
.close-check { border: 1.5px solid var(--accent); gap: 10px; }
.close-check.has-miss { border-color: var(--warn, #B26A00); }
.cc-head { display: flex; gap: 12px; align-items: flex-start; }
.cc-head h3 { margin: 0; }
.cc-ico { font-size: 1.5rem; line-height: 1; }
.cc-miss { background: var(--warn-soft, #FFF4E0); border-radius: var(--r-sm, 10px); padding: 10px 12px; }
.cc-miss ul { margin: 4px 0 0; padding-left: 20px; }
.fc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fc-thumbs a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.fc-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Messages perso */
.ping-card { grid-column: 1 / -1; border: 1.5px solid var(--accent); margin-bottom: 12px; gap: 8px; }
.ping-card.important { border-color: var(--danger, #B3261E); background: var(--danger-soft, #FDECEA); }
.ping-text { margin: 0; white-space: pre-line; font-size: 1.02rem; }
.ping-form, .ping-sent { grid-column: 1 / -1; margin-bottom: 12px; }
.ping-sent summary { cursor: pointer; font-weight: 600; }
.ping-reply { background: var(--surface-2); border-radius: var(--r-sm, 10px); padding: 8px 10px; }

/* ===== Navigation : page « Plus » ===== */
.plus-group { display: grid; gap: 8px; }
.plus-title { font: 600 .78rem/1.2 var(--sans, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 4px 0; }
.plus-list { padding: 4px 0; display: grid; }
.plus-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px; background: none; border: 0; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.plus-row + .plus-row { border-top: 1px solid var(--line); }
.plus-row:active { background: var(--surface-2); }
.plus-ico { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.plus-ico svg { width: 20px; height: 20px; }
.plus-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plus-txt b { font-weight: 600; font-size: 1rem; }
.plus-txt small { color: var(--muted); font-size: .85rem; }
.plus-go { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.seg.group-tabs { width: 100%; display: grid; }
.group-tabs button { padding: 10px 6px; min-height: 44px; font-size: .9rem; white-space: nowrap; }

/* ===== Messagerie : liste des fils ===== */
.channel { min-height: 64px; }
.ch-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ch-name { font-weight: 600; display: flex; align-items: center; min-width: 0; }
.ch-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .88rem; font-weight: 400; }
.channel.has-unread .ch-preview { color: var(--ink); font-weight: 600; }
.ch-side { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.ch-time { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.channel.has-unread .ch-time { color: var(--accent); font-weight: 600; }
.msg-tools { display: grid; gap: 10px; margin-top: 14px; }
.kudo-entry .tb-ico svg { width: 18px; height: 18px; }
.older-btn { justify-self: center; margin: 4px auto 10px; display: block; }
.msg .react.add { display: none; }
.msg.open .react.add, .msg:hover .react.add, .msg .react-bar:has(.react-pick) .react.add { display: inline-flex; }
.msg .react-bar:not(:has(.react:not(.add))) { margin-top: 0; }
/* Zones tactiles : rien de cliquable sous 40 px de haut. */
.seg button { min-height: 40px; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--accent); }
.read-by { min-height: 32px; }
.check input[type="checkbox"] { width: 26px; height: 26px; }
.ot-btn { min-width: 44px; min-height: 40px; }
.offline-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 30;
  background: var(--night); color: var(--night-ink); padding: 10px 16px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); width: max-content; max-width: calc(100% - 32px); }
@media (min-width: 821px) { .channels .msg-tools .tb-txt > span:not(:first-child) { display: none; } .channels .msg-tools .tuto-btn { padding: 10px 12px; } }

/* Avis après le soin (Club VIP) */
.vip-review { gap: 10px; text-align: center; justify-items: center; border: 1px solid var(--gold, #C9A36B); }
.vip-review h3 { margin: 0; }
.vip-review .hint { margin: 0; }
.vr-stars { display: flex; gap: 6px; justify-content: center; }
.vr-stars button { width: 52px; height: 52px; border: 0; background: none; font-size: 2.4rem; line-height: 1; color: rgba(201,163,107,.35); cursor: pointer; transition: transform .12s ease, color .12s ease; }
.vr-stars button.on { color: var(--gold, #C9A36B); }
.vr-stars button:active { transform: scale(1.15); }
.vr-stars.big { font-size: 2rem; color: var(--gold, #C9A36B); letter-spacing: 4px; }
.vr-label { margin: 0; font-weight: 600; color: var(--gold, #A87A1E); min-height: 1.4em; }
.vip-review textarea { width: 100%; text-align: left; }
.vip-review .btn.block { width: 100%; }
.rv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rv-stats div { background: var(--surface-2); border-radius: var(--r-sm, 10px); padding: 10px; display: grid; gap: 2px; text-align: center; }
.rv-stats b { font: 400 1.6rem var(--f-display); }
.rv-item .stars { color: var(--gold, #A87A1E); letter-spacing: 2px; }
.rv-item.low { border-left: 0; background: var(--warn-soft, #FFF4E0); }

/* Carte fidélité (Club VIP) */
.vip-fid { border: 1px solid var(--gold, #C9A36B); border-radius: 18px; padding: 16px 16px 12px; display: grid; gap: 10px; background: linear-gradient(160deg, rgba(201,163,107,.16), rgba(201,163,107,.04)); }
.fid-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fid-head small { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; color: var(--gold, #C9A36B); }
.fid-pts { font: 400 1.8rem var(--f-display); color: var(--gold, #C9A36B); white-space: nowrap; }
.fid-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(201,163,107,.18); margin: 4px 6px; }
.fid-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #B98F52, #E2C48E); }
.fid-mark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #3A2A3A; border: 2px solid rgba(201,163,107,.6); }
.fid-mark.on { background: #E2C48E; border-color: #E2C48E; }
.fid-next, .fid-hint { margin: 0; font-size: .9rem; }
.fid-hint { opacity: .75; }
.fid-gifts { display: grid; gap: 8px; }
.fid-gift { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(201,163,107,.14); }
.fid-more summary { cursor: pointer; font-size: .85rem; opacity: .8; }
.fid-more p { font-size: .85rem; }
.fid-tiers, .fid-hist { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; display: grid; gap: 4px; }
.fid-hist { list-style: none; padding: 0; }
.fid-hist li { display: flex; justify-content: space-between; gap: 8px; }
.fid-hist .neg { opacity: .7; }
.fid-hist.staff { list-style: none; padding: 0; }
.fid-stars { display: flex; justify-content: space-between; gap: 2px; font-size: 1.55rem; line-height: 1; padding: 2px 0; }
.fid-stars span { color: rgba(201,163,107,.28); transition: color .3s ease, transform .3s ease; }
.fid-stars span.on { color: #E2C48E; text-shadow: 0 0 8px rgba(226,196,142,.45); }
.presence-card { border: 1.5px solid var(--warn, #B26A00); }
.vip-hello { text-align: center; gap: 12px; }
.vip-hello h2 { margin: 0; font: 400 1.45rem/1.25 var(--f-display); }
.vip-hello-stars { color: #E2C48E; font-size: 1.3rem; letter-spacing: 6px; }
.vip-hello-list { text-align: left; margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .95rem; }
.vp-prices { flex-wrap: nowrap; gap: 10px; } .vp-prices .field { flex: 1; min-width: 0; }
.vp-editing { border: 1.5px solid var(--accent); }

/* Annonces de la direction */
.ann-pop { position: fixed; inset: 0; z-index: 900; background: rgba(20, 12, 28, .62); display: grid; place-items: center; padding: 20px; }
.ann-pop-card { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 24px 22px 18px; max-width: 440px; width: 100%; display: grid; gap: 10px; text-align: center; box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); max-height: 86dvh; overflow: auto; }
.ann-pop-card h2 { margin: 0; font: 400 1.5rem/1.2 var(--f-display); }
.ann-pop-ico { font-size: 2rem; }
.ann-text { margin: 0; white-space: pre-line; text-align: left; line-height: 1.5; }
.ann-pin { grid-column: 1 / -1; margin-bottom: 12px; border: 1.5px solid var(--accent); border-radius: 16px; background: var(--accent-soft); }
.ann-pin summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; min-height: 52px; }
.ann-pin summary::-webkit-details-marker { display: none; }
.ann-pin-ico { font-size: 1.3rem; }
.ann-pin-txt { flex: 1; min-width: 0; display: grid; }
.ann-pin-txt span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-pin[open] .ann-pin-txt span { display: none; }
.ann-pin-body { padding: 0 14px 12px; display: grid; gap: 8px; }
.ann-form { margin-bottom: 12px; }
.ann-boss { margin: 0; font: 400 1.6rem/1.15 var(--f-display); color: var(--accent); }
.ann-sub { font-size: 1.05rem; }
.ann-pin-k { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }

/* Offre du mois : réserver ou être rappelée */
.cb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-btns .btn { flex: 1 1 auto; }
.cb-form { gap: 10px; }
.cb-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-slots button { border: 1px solid rgba(201,163,107,.5); background: transparent; color: inherit; border-radius: 99px; padding: 8px 12px; font: inherit; font-size: .88rem; min-height: 40px; cursor: pointer; }
.cb-slots button[aria-pressed="true"] { background: var(--gold, #C9A36B); color: #241826; border-color: transparent; font-weight: 700; }
.cb-done { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(201,163,107,.14); }
.vip-top { flex-wrap: wrap; row-gap: 6px; }
.vip-price { white-space: nowrap; }

/* maj77 */
.vip-booked-box { display: grid; gap: 8px; }
.vip-booked-box.ask { padding: 10px 12px; border-radius: 12px; background: rgba(201,163,107,.14); }
.fid-bonus { margin: 0; font-weight: 600; color: #E2C48E; }
.kpi-h { margin: 14px 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.kpi { background: var(--surface-2); border-radius: var(--r-sm, 10px); padding: 10px 12px; display: grid; gap: 2px; }
.kpi small { color: var(--muted); font-size: .78rem; }
.kpi b { font: 400 1.5rem var(--f-display); }
.kpi-diff { font-size: .72rem; color: var(--muted); }
.kpi-diff.up { color: var(--ok, #2E7D4F); } .kpi-diff.down { color: var(--danger, #B3261E); }

/* Qui a vu / cliqué une offre */
.aud { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.aud-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; font-size: .9rem; }
.aud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aud-list li { display: grid; gap: 1px; font-size: .88rem; padding-top: 6px; border-top: 1px solid var(--line); }
.aud-list li span { color: var(--muted); }

/* Panier de commande */
.od-two { flex-wrap: nowrap; gap: 10px; } .od-two .field { flex: 1; min-width: 0; }
.order-list { display: grid; gap: 8px; }
.order-item { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r-sm, 10px); background: var(--surface-2); }
.order-item.urgent { background: var(--warn-soft, #FFF4E0); border: 1px solid var(--warn, #B26A00); }
.oi-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.oi-qty { font-weight: 600; color: var(--accent); }
.oi-note { font-size: .9rem; }
.oi-link { font-size: .88rem; justify-self: start; }
.oi-actions { gap: 6px; margin-top: 4px; }

/* Choix appareil photo / galerie (Android) */
.photo-src { position: fixed; inset: 0; z-index: 1100; background: rgba(20, 12, 28, .5); display: flex; align-items: flex-end; justify-content: center; }
.photo-src-card { width: 100%; max-width: 480px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
/* Paiement en ligne des dispos de dernière minute */
.vip-paynote { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.vip-paid { margin: 0 0 6px; font-size: .88rem; font-weight: 600; color: var(--ok); }
.vip-paysafe { display: block; text-align: center; color: var(--muted); font-size: .8rem; margin: 6px 0 4px; }
.vip-topay .btn.primary.block { margin-top: 8px; }
.vip-ask2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-multi { display: grid; gap: 8px; }
.time-multi .row { gap: 8px; align-items: center; flex-wrap: nowrap; }
.time-multi .time-sel { flex: 1; }
.cl-thumb-by { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; padding: 1px 5px; border-radius: 6px; }
/* Mode aperçu (direction générale) */
.preview-banner { position: fixed; left: 0; right: 0; top: 0; z-index: 9999; height: calc(env(safe-area-inset-top, 0px) + 42px); box-sizing: border-box;
  display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top, 0px) 10px 0 14px;
  background: #b8860b; color: #fff; font-size: .82rem; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.preview-banner > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-banner .btn { background: #fff; color: #5c3d00; border: 0; flex: 0 0 auto; min-height: 32px; padding: 4px 12px; }
html.in-preview body { padding-top: 42px; }
html.in-preview .top, html.in-preview .vip-head { top: calc(env(safe-area-inset-top, 0px) + 42px); }
.preview-row { text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.preview-list h4 { margin: 8px 0 0; }
/* Compteur d'heures sup */
.ot-card { gap: 10px; }
.ot-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.ot-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ot-kpi { background: var(--surface-2); border-radius: 10px; padding: 8px; text-align: center; display: grid; gap: 2px; }
.ot-kpi small { color: var(--muted); font-size: .72rem; }
.ot-kpi b { font-size: 1.02rem; }
.ot-kpi.warn b { color: var(--warn); }
.ot-todo { margin: 0; color: var(--warn); font-size: .86rem; font-weight: 600; }
.ot-entries { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.ot-entry { display: grid; grid-template-columns: 82px 58px 1fr; gap: 4px 8px; align-items: center; font-size: .88rem; }
.ot-entry.neg b { color: var(--muted); }
.ot-entry .ot-d { color: var(--muted); }
.ot-entry .ot-mode { grid-column: 1 / -1; justify-self: start; }
.ot-entry .ot-mode button { padding: 4px 10px; font-size: .8rem; }
@media (max-width: 420px) { .ot-kpis { grid-template-columns: repeat(2, 1fr); } }
.estab-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.estab-names { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
@media (max-width: 420px) { .estab-names { grid-template-columns: 1fr; } }
/* Commandes clientes */
.co-ids { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
@media (max-width: 480px) { .co-ids { grid-template-columns: 1fr; } }
.co-photo-btn { border-style: dashed; border-width: 2px; padding: 14px 18px; }
.co-day-h { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; font-size: 1rem; }
.co-list { padding: 4px 12px; }
.co-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-row:last-child { border-bottom: 0; }
.co-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--surface-2); cursor: zoom-in; }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-thumb span { position: absolute; right: 3px; bottom: 3px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 0 5px; border-radius: 6px; }
.co-thumb.gone { display: grid; place-items: center; cursor: default; color: var(--muted); }
.co-txt { display: grid; gap: 2px; min-width: 0; }
.co-txt span { font-size: .9rem; }
.co-txt small { color: var(--muted); }
.co-export { gap: 10px; }
.co-export .field { flex: 1; }
.co-per { font-weight: 500; color: var(--muted); font-size: .82rem; }
.co-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.co-tools .co-by { margin: 0; }
@media (max-width: 520px) { .co-tools { grid-template-columns: 1fr; } }
.co-who { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.co-h4 { margin: 6px 0 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.co-checks { display: grid; gap: 6px; }
.name-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; } .name-edit .input { flex: 1 1 180px; min-width: 0; }
/* Équipe : le nom et l'e-mail sur toute la largeur, les boutons du compte en dessous (jamais d'e-mail écrasé lettre par lettre). */
.team-list .list-item { grid-template-columns: 40px minmax(0, 1fr); }
.team-list .list-item > .row { grid-column: 1 / -1; justify-content: flex-start !important; flex-wrap: wrap; }
.team-list .list-item > div:nth-child(2) { min-width: 0; }
.team-list .list-item small { overflow-wrap: break-word; word-break: normal; }
.h-elsewhere { grid-column: 1 / -1; color: var(--warn, #9a5b00); font-size: .85rem; font-weight: 600; }
.ch-shared { margin-left: 8px; font-size: .72rem; padding: 1px 8px; background: var(--accent-soft); color: var(--accent); }
.also-sites { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.warn-note { border-color: var(--warn, #9a5b00); color: var(--ink); }
.drafts-warn { border: 1px solid var(--warn, #9a5b00); display: grid; gap: 8px; }
.draft-row { justify-content: space-between; align-items: center; }
.chip.is-draft { border: 1px dashed currentColor; opacity: .85; }
.cal-cell.is-draft { outline: 2px dashed var(--warn, #9a5b00); outline-offset: -3px; }
.otreq-card.has-pending { border: 1px solid var(--accent); }
.otreq-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.otreq-row.done { grid-template-columns: 1fr auto; align-items: center; }
.otreq-row.done > small, .otreq-row.done > button { grid-column: 1 / -1; justify-self: start; }
.otreq-note { margin: 0; font-style: italic; }
/* Appareil photo intégré */
.cam-overlay { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; grid-template-rows: 1fr auto auto; }
.cam-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-info { color: #fff; text-align: center; margin: 8px 16px; font-size: .95rem; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
.cam-bar .btn { width: 96px; }
.cam-shoot { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: var(--accent); }
.cam-shoot:disabled { opacity: .5; }

/* Origine d'une ligne d'heures sup (saisie, déclaration validée, réunion) */
.ot-origin { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.team-filter { display: grid; grid-template-columns: 1fr 1fr; }
.team-filter button { padding: 8px 10px; }
/* Facturation Les Loges */
.bill .bill-settings, .bill .bill-client { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 12px; background: var(--surface); }
.bill summary { cursor: pointer; padding: 4px 0; }
.bill .bill-client > details { margin: 8px 0; }
.bill-rows { display: grid; gap: 8px; margin-top: 8px; }
.bill-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.bill-row small { display: block; color: var(--muted); }
/* Décompte des congés et banque d'heures */
.decompte { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.decompte .dc-k { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); }
.dc-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dc-seg button { padding: 8px 6px; font-size: 13px; }
.dc-row { align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-cp { width: 84px; }
.dc-range { width: 100%; accent-color: var(--accent); height: 28px; }
.dc-out { font-size: 18px; color: var(--accent); }
.ot-bank { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-weight: 600; }
.ot-tools { display: grid; gap: 8px; margin-top: 10px; }
.ot-tools .row { flex-wrap: wrap; gap: 8px; align-items: center; }
.ot-tools .input { width: auto; min-width: 110px; }
@media (max-width: 480px) { .dc-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.leave-edit { display: grid; gap: 10px; margin-top: 6px; }
.leave-edit summary, details.card > summary { cursor: pointer; font-weight: 600; }
.leave-edit .row, details.card .row { flex-wrap: wrap; gap: 8px; align-items: center; }
.leave-edit input[type=date], details.card input[type=date] { width: auto; }
/* Messages vocaux */
.composer-tools { display: flex; gap: 2px; align-self: end; }
.composer { position: relative; }
.rec-bar { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.rec-bar .rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #D93A3A; animation: recPulse 1s ease-in-out infinite; }
.rec-bar .rec-clock { font-variant-numeric: tabular-nums; margin-right: auto; }
@keyframes recPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-bar .rec-dot { animation: none; } }
.msg-voice { display: grid; gap: 6px; margin: 4px 0; max-width: 420px; }
.msg-voice audio { width: 100%; height: 40px; }
.msg-transcript { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.msg-transcript small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.msg-transcript.wait { background: none; padding: 0; color: var(--muted); font-style: italic; }

/* maj112 : jours fériés, contrat, récurrence */
:root { --ferie: #7A3E9D; --ferie-soft: #F1E4F8; }
.k-ferie { --k: var(--ferie); --k-soft: var(--ferie-soft); }
.chip.k-ferie { background: var(--k-soft); color: var(--k); font-weight: 700; }
.h-holiday { grid-column: 1 / -1; font-size: .82rem; color: var(--ferie); font-weight: 600; }
.h-row.holi-work .h-holiday { color: var(--warn); }
.holi-line { color: var(--ferie); font-weight: 600; }
.cal-cell.is-holiday { box-shadow: inset 0 -3px 0 var(--ferie); }
.cal-cell .holi-mark { color: var(--ferie); font-weight: 700; }
.contract-gap { display: block; font-weight: 600; color: var(--muted); }
.contract-gap.over { color: var(--warn); }
.contract-gap.under { color: var(--sick); }
.contract-edit summary, .repeat-box summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.contract-edit .row .input { max-width: 110px; }
.repeat-box { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 8px; }
.repeat-box[open] { background: var(--surface-2); }
.repeat-box .row select { max-width: 260px; }
/* Postes masqués */
.poste-base.is-hidden b { color: var(--muted); text-decoration: line-through; }
.poste-choice { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--warn-soft); }
/* Ménage */
.mn-list { display: grid; gap: 8px; }
.mn-task { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.mn-task.done { background: var(--ok-soft); }
.mn-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.mn-t small { color: var(--muted); width: 100%; }
.mn-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mn-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.mn-status { display: grid; gap: 14px; }
.mn-person { display: grid; gap: 6px; }
.mn-who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.mn-common { gap: 8px; align-items: center; }
.mn-zones { display: grid; gap: 6px; }
.mn-zone { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(140px, 2fr) auto; gap: 6px; align-items: center; }
@media (max-width: 560px) { .mn-zone { grid-template-columns: 1fr auto; } .mn-zone .input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
.mn-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mn-grid { display: grid; gap: 4px; min-width: 520px; }
.mn-h { font-size: .8rem; font-weight: 700; text-align: center; color: var(--muted); }
.mn-name { font-size: .85rem; font-weight: 700; align-self: center; overflow: hidden; text-overflow: ellipsis; }
.mn-cell { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 4px; display: flex; flex-direction: column; gap: 2px; align-items: stretch; justify-content: center; cursor: pointer; font: inherit; color: inherit; }
.mn-cell small { font-size: .72rem; line-height: 1.15; text-align: center; }
.mn-cell.has { background: var(--accent-soft); border-color: transparent; }
.mn-cell.open { outline: 2px solid var(--ink); outline-offset: -2px; }
.mn-picker { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
/* Stocks */
.stk-list { display: grid; gap: 8px; }
.stk-item { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.stk-item.low { background: var(--warn-soft); }
.stk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.stk-name { display: grid; flex: 1 1 160px; min-width: 0; }
.stk-name small { color: var(--muted); }
.stk-tools { gap: 8px; align-items: center; }
.stk-form, .stk-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.stk-form .field, .stk-edit .field { flex: 1 1 130px; }
.stk-moves { display: grid; gap: 6px; }
.stk-move { display: grid; gap: 2px; font-size: .9rem; }
.stk-move small { color: var(--muted); }
.warn-notice { background: var(--warn-soft); color: var(--warn); border-color: transparent; font-weight: 600; }
.mn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-chip a { color: inherit; font-weight: 700; }
.ot-entry.before { opacity: .45; }
.ot-entry.before b, .ot-entry.before .ot-n { text-decoration: line-through; }
.ot-entry.reset { background: var(--surface-2); border-radius: 8px; }
/* Heures sup : ligne + bouton « Modifier » bien visible, panneau de correction dessous */
.ot-line { display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ot-line > .ot-entry { border: 0; padding: 0; }
.ot-edit-btn { justify-self: end; border: 1.5px solid var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 700; white-space: nowrap; }
.ot-edit-btn.open { background: var(--accent); color: #fff; }
.ot-edit { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.ot-edit-fields .field { flex: 1 1 130px; }
.danger-btn { color: #B42318; border-color: #E8B4AE; background: #FDF1EF; }
/* Soirées VIP */
.ev-card { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, #2A1F3A, #3B2550); color: #F6EEDF; }
.ev-card h3 { margin: 0; font-size: 1.35rem; color: #fff; }
.ev-kicker { letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #E3C27A; font-size: .72rem; }
.ev-when { margin: 0; font-weight: 700; color: #F3DFA8; }
.ev-details { margin: 0; color: #E9E1F0; white-space: pre-line; }
.ev-card .seg button { color: #2A1F3A; }
.ev-card .err { color: #FFB4A8; }
.ev-pass { display: grid; justify-items: center; gap: 8px; padding: 16px; border-radius: 14px; background: #FFFDF8; color: #22192F; text-align: center; }
.ev-qr { width: min(240px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.ev-qr svg { width: 100%; height: 100%; }
.ev-code { margin: 0; font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; font-weight: 700; }
.ev-card .linkish { color: #F3DFA8; justify-self: center; }
.ev-list { display: grid; gap: 6px; }
.ev-reg { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.ev-reg div { display: grid; min-width: 0; }
.ev-reg small { color: var(--muted); }
.ev-reg.done { background: var(--ok-soft); }
.ev-scan-btn { font-size: 1.05rem; padding: 14px; }
.scan-overlay { position: fixed; inset: 0; z-index: 1000; background: #120D1A; color: #fff; display: flex; flex-direction: column; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; }
.scan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scan-close { background: #fff; color: #120D1A; }
.scan-frame { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; max-height: 52vh; width: 100%; }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-aim { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.scan-result { display: grid; gap: 10px; }
.scan-result p { margin: 0; }
.scan-good, .scan-bad { display: grid; gap: 4px; padding: 14px; border-radius: 14px; }
.scan-good { background: #E3F4E8; color: #14532D; }
.scan-bad { background: #FDE7E4; color: #8A1C12; }
.scan-good b, .scan-bad b { font-size: 1.2rem; }
.scan-warn { font-weight: 700; color: #8A5A00; }
.scan-manual .input { flex: 1 1 160px; }
.scan-overlay .btn { min-height: 46px; }
.scan-overlay .btn:not(.primary) { color: #120D1A; background: #fff; }
.ev-reg-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; }
.ev-add { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 8px; }
.ev-add summary { font-weight: 700; cursor: pointer; }
.ev-add .row .input { flex: 1 1 140px; }
.inv-page { padding-top: 18px; }
.linkish.danger { color: #B42318; }
.ev-reg .ev-reg-tools { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: flex-start; margin-top: 4px; }
.ev-mini { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 0;
  background: linear-gradient(160deg, #2A1F3A, #3B2550); color: #F6EEDF; font: inherit; cursor: pointer; }
.ev-mini span:first-child { font-size: 1.5rem; }
.ev-mini b { display: block; color: #fff; }
.ev-mini small { color: #F3DFA8; }
.ev-mini span:last-child { font-size: 1.6rem; color: #E3C27A; }
.rsvp { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); }
.rsvp b { color: #fff; }
.rsvp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-btns .btn { flex: 1 1 140px; }
.rsvp-btns .btn:not(.primary) { background: #FFFDF8; color: #22192F; }
.ev-reg .chip { justify-self: start; margin: 2px 0; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0; }
.ev-staff, .ev-add { min-width: 0; max-width: 100%; }
.ev-add > *, .ev-staff > * { min-width: 0; }
.ev-add .cats { flex-wrap: wrap; overflow: visible; }
/* Factures */
.inv-lines { display: grid; gap: 6px; }
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 64px 100px 32px; gap: 6px; align-items: center; }
@media (max-width: 520px) { .inv-line { grid-template-columns: 64px 1fr 32px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); } .inv-line > input:first-child { grid-column: 1 / -1; } }
.inv-total { text-align: right; font-size: 1.05rem; }
.inv-list { display: grid; gap: 8px; }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.inv-row.credit { opacity: .8; }
.inv-main { display: grid; min-width: 0; }
.inv-main small { color: var(--muted); }
.inv-amount { align-self: center; }
.inv-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inv-page .row .input { flex: 1 1 150px; }
/* Paiement Stripe dans l'appli : grande fenêtre qui défile, sur fond blanc (le formulaire de Stripe est clair). */
.vip-payin { place-items: center; padding: max(12px, var(--sat, 0px)) 10px calc(12px + var(--sab)); }
.vip-payin-card { width: min(520px, 100%); max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff !important; gap: 10px; padding: 16px !important; }
.vip-paybox { min-height: 320px; }
body.no-scroll { overflow: hidden; }

/* ======================================================================
   Club VIP — thème clair (comme l'appli Les Loges Club) : fond crème, couleur de l'institut (--vip-accent).
   Tout le reste du Club suit ces jetons ; seuls les quelques effets dorés du thème « soir » sont remplacés ici.
   ====================================================================== */
body[data-mode="vip"][data-vip-theme="clair"] {
  --a: var(--vip-accent, #7A2340);
  --bg: color-mix(in srgb, var(--a) 4%, #FFFBF7); --surface: #FFFFFF; --surface-2: color-mix(in srgb, var(--a) 10%, #FFFFFF);
  --ink: color-mix(in srgb, var(--a) 30%, #1A1016); --muted: color-mix(in srgb, var(--a) 18%, #5E5560); --line: color-mix(in srgb, var(--a) 16%, #ECE3DA);
  --accent: var(--a); --accent-ink: #FFFFFF; --accent-soft: color-mix(in srgb, var(--a) 11%, #FFFFFF); --gold: var(--a);
  --night: var(--a); --night-2: color-mix(in srgb, var(--a) 85%, #000); --night-ink: #FFFFFF; --night-muted: color-mix(in srgb, var(--a) 25%, #FFFFFF);
  --ok: #2B7655; --ok-soft: #E3F1E9; --warn: #8A5212; --warn-soft: #FBEEDB; --danger: #B3261E; --danger-soft: #FBE3E0;
  --shadow: 0 1px 2px rgba(40,20,30,.05), 0 12px 30px -16px rgba(40,20,30,.22);
  color-scheme: light;
}
body[data-mode="vip"][data-vip-theme="clair"] .btn.primary { background: var(--a); color: #fff; box-shadow: 0 10px 22px -14px var(--a); }
body[data-mode="vip"][data-vip-theme="clair"] .input { background: #FFFFFF; border-color: var(--line); color: var(--ink); }
body[data-mode="vip"][data-vip-theme="clair"] .card, body[data-mode="vip"][data-vip-theme="clair"] .vip-offer, body[data-mode="vip"][data-vip-theme="clair"] .vip-post { background: var(--surface); }
body[data-mode="vip"][data-vip-theme="clair"] .chip { background: var(--accent-soft); color: var(--ink); }
body[data-mode="vip"][data-vip-theme="clair"] .linkish { color: var(--a); }
body[data-mode="vip"][data-vip-theme="clair"] .seg { background: var(--accent-soft); }
body[data-mode="vip"][data-vip-theme="clair"] .toast { background: var(--ink); color: #fff; }
body[data-mode="vip"][data-vip-theme="clair"] .auth { background: var(--bg); }
body[data-mode="vip"][data-vip-theme="clair"] .auth-brand { color: var(--ink); }
body[data-mode="vip"][data-vip-theme="clair"] .auth-brand small { color: var(--muted); }
body[data-mode="vip"][data-vip-theme="clair"] .auth-brand > span:not(.linkish) { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: var(--a); color: #fff !important; display: grid; place-items: center; }
body[data-mode="vip"][data-vip-theme="clair"] .auth-brand > span svg { width: 32px; height: 32px; }
body[data-mode="vip"][data-vip-theme="clair"] .auth-card { background: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-shell { background: var(--bg); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-head { background: color-mix(in srgb, var(--bg) 90%, transparent); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-star-head { width: 34px; height: 34px; border-radius: 50%; background: var(--a); color: #fff; place-items: center; display: grid; filter: none; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-star-head svg { width: 18px; height: 18px; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-switch { justify-self: start; display: grid; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-me { background: var(--accent-soft); color: var(--a); border-color: transparent; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-wish, body[data-mode="vip"][data-vip-theme="clair"] .vip-teaser small, body[data-mode="vip"][data-vip-theme="clair"] .vip-until { color: var(--a); }
/* Dispo de dernière minute : la carte pleine couleur de la maquette. */
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer:not(.st-pending):not(.st-accepted):not(.st-refused):not(.mine):not(.in-popup) { background: var(--a); color: #fff; border-color: transparent; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer:not(.st-pending):not(.st-accepted):not(.st-refused):not(.mine):not(.in-popup) :is(h3, .vip-when, .vip-details, small, p) { color: #fff; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer:not(.st-pending):not(.st-accepted):not(.st-refused):not(.mine):not(.in-popup) .vip-price { background: #fff; color: var(--a); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer:not(.st-pending):not(.st-accepted):not(.st-refused):not(.mine):not(.in-popup) .chip { background: rgba(255,255,255,.18); color: #fff; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer:not(.st-pending):not(.st-accepted):not(.st-refused):not(.mine):not(.in-popup) .btn.primary { background: #fff; color: var(--a); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer:not(.st-pending):not(.st-accepted):not(.st-refused):not(.mine):not(.in-popup) .btn.ghost { border-color: rgba(255,255,255,.6); color: #fff; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer::before { display: none; }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer.st-pending { background: var(--warn-soft); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-offer.st-accepted { background: var(--ok-soft); }
body[data-mode="vip"][data-vip-theme="clair"] .carte-line .dots { border-bottom-color: var(--line); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-pop { background: rgba(30, 16, 24, .45); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-pop-card { background: #FFFFFF; color: var(--ink); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-pop-card :is(.vip-when, h3, h2) { color: var(--ink); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-pop-card .vip-price { background: var(--accent-soft); color: var(--a); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-pop-card .eyebrow, body[data-mode="vip"][data-vip-theme="clair"] .vip-star { color: var(--a); }
body[data-mode="vip"][data-vip-theme="clair"] .nav { background: #FFFFFF; }
body[data-mode="vip"][data-vip-theme="clair"] .nav button[aria-current="page"] { color: var(--a); }
body[data-mode="vip"][data-vip-theme="clair"] .vip-dot { background: var(--a); box-shadow: 0 0 0 2px #fff; }
/* Réglage de la couleur (direction) */
.vip-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.vip-swatches button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.vip-swatches button::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--sw, #241A33); }
.vip-swatches .sw-soir::before { background: linear-gradient(135deg, #171120, #C9A96E); }
.vip-swatches button[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; font-weight: 700; }
body[data-mode="vip"][data-vip-theme="clair"] .btn.ghost.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, #fff); }

/* ---------- Messagerie plus grande (maj143) ----------
   Zone de saisie : [+] [texte] [micro ou flèche d'envoi]. Photo et « urgent » sont dans le menu +.
   Sur téléphone, le fil ouvert occupe tout l'écran entre la barre du haut et les onglets. */
.composer { grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; padding: 8px 10px; }
.composer > .photo-preview, .composer > .urgent-chip { grid-column: 1 / -1; }
.composer textarea { min-height: 44px; border-radius: 22px; padding: 10px 14px; font-size: 16px; }
.composer-tools { position: relative; }
.composer .plus-btn { width: 44px; min-width: 44px; height: 44px; border-radius: 999px; font: 400 1.6rem/1 var(--f-body, inherit); color: var(--accent); padding: 0; }
.composer .plus-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); }
.plus-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; min-width: 240px; display: grid; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.plus-menu[hidden] { display: none; }
.plus-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; text-align: left; }
.plus-item:active, .plus-item:hover { background: var(--accent-soft); }
.plus-item .pi-ico { display: grid; color: var(--accent); }
.plus-item .pi-ico svg { width: 20px; height: 20px; }
.plus-item[aria-pressed="true"] { color: #B3261E; font-weight: 700; }
.urgent-chip { justify-self: start; border: 0; border-radius: 999px; padding: 6px 12px; background: #B3261E; color: #fff; font: inherit; font-size: .85rem; font-weight: 700; }
.urgent-chip[hidden] { display: none; }
.composer-send { display: flex; align-self: end; }
.composer-send .mic { width: 44px; min-width: 44px; border-radius: 999px; }
.composer-send [hidden] { display: none !important; }
.send-btn { width: 44px; height: 44px; border: 0; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #fff); box-shadow: 0 6px 16px -8px var(--accent); }
.send-btn:disabled { opacity: .5; }
.send-btn:active { transform: scale(.94); }
.chat-desc { cursor: pointer; }
@media (max-width: 820px) {
  body.in-chat main { max-width: none; padding: 0 0 calc(var(--nav-h) + var(--sab)) 0; animation: none; }
  body.in-chat .chat-wrap { display: block; }
  body.in-chat .chat { height: calc(100vh - var(--top-h, 70px) - var(--nav-h) - var(--sab)); height: calc(100dvh - var(--top-h, 70px) - var(--nav-h) - var(--sab));
    min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  body.in-chat .chat-head { padding: 6px 12px 6px 16px; align-items: center; }
  body.in-chat .chat-head h3 { display: none; }
  body.in-chat .chat-head.no-desc { justify-content: flex-end; }
  body.in-chat .chat-head .icon-btn { min-width: 36px; height: 36px; }
  body.in-chat .chat-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
  body.in-chat .chat-desc.open { white-space: normal; }
  body.in-chat .msgs { padding: 8px 10px 10px; }
  body.in-chat .composer { padding: 8px 8px calc(8px + 0px); }
}
body.in-chat .offline-bar { top: calc(var(--top-h, 70px) + 8px); bottom: auto; }

/* test maj */
.fail-bar { display: flex; align-items: center; gap: 10px; }
.fail-bar .linkish { color: var(--gold, #D8B060); font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 4px 0; font: inherit; }
body.in-chat .fail-bar { top: calc(var(--top-h, 70px) + 8px); bottom: auto; }

/* ---------- Formations ---------- */
.stack-s { display: grid; gap: 8px; }
.chip.todo { background: var(--accent-soft); color: var(--accent); }
.chip.late { background: #FBE3E1; color: #B3261E; }
.form-cat { margin: 6px 0 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-card { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.form-card:active { transform: scale(.99); }
.fc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fc-ico svg { width: 24px; height: 24px; }
.fc-txt { display: grid; gap: 3px; min-width: 0; }
.fc-txt small { color: var(--muted); font-size: .78rem; }
.fc-txt b { font-size: 1rem; }
.fc-sum { color: var(--muted); font-size: .88rem; }
.fc-st { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.fc-st:empty { display: none; }
.form-edit-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.form-done { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.fd-ok { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 800; }
.form-sum { margin: 0; font-size: 1.02rem; }
.form-body p { margin: 0 0 12px; white-space: pre-wrap; line-height: 1.6; }
.form-body p:last-child { margin-bottom: 0; }
.quiz fieldset { border: 0; margin: 0; padding: 12px 0 4px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.quiz legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz-q.wrong legend { color: #B3261E; }
.quiz-ko { border-color: #F1C3BF; background: #FDF1F0; }
.quiz-ko p { margin: 4px 0 0; }
.form-ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: var(--ok-soft); }
.form-ok h3 { margin: 0; }
.form-assign { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.fa-bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.fa-bar > span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.form-person { display: grid; gap: 6px; padding: 12px 14px; }
.form-person > b + small { margin-top: -6px; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-chips a.chip { text-decoration: none; }
.qe-opt { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; }
.quiz-edit legend { font-weight: 700; }
.empty-note p { margin: 0; color: var(--muted); }

/* ---------- Ma journée de la direction : « Moi » ---------- */
.moi-card h3 { margin: 0; font: 400 1.2rem var(--f-display); }
.moi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.moi-sub { margin-top: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.moi-sub.late { color: #B3261E; }
.moi-task { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.moi-task .mt-main { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-height: 44px; }
.moi-task input[type="checkbox"] { width: 24px; height: 24px; margin-top: 1px; flex: none; }
.moi-task.done .mt-txt b { text-decoration: line-through; color: var(--muted); }
.mt-txt { display: grid; gap: 2px; min-width: 0; }
.mt-txt small { color: var(--muted); font-size: .8rem; }
.mt-rep:empty { display: none; }
.moi-task .icon-btn, .moi-ev .icon-btn, .moi-line .icon-btn { min-width: 36px; height: 36px; }
.moi-all summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding: 6px 0; }
.moi-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.moi-line small { display: block; color: var(--muted); font-size: .78rem; }
.moi-ev { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.me-time { white-space: pre-line; font-weight: 700; font-size: .85rem; color: var(--accent); text-align: center; line-height: 1.25; }
.moi-ev.meet .me-time { color: var(--sick); }
.moi-form { padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.moi-form .form3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.moi-time { grid-template-columns: 140px minmax(0,1fr) !important; align-items: end; }
.seg.seg-wrap { display: flex; flex-wrap: wrap; }
.seg.seg-wrap button { flex: 1 1 auto; padding: 8px 10px; font-size: .86rem; }
.wd-pick { display: flex; gap: 6px; }
.wd-pick button { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--muted); }
.wd-pick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.moi-team-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.mtr-ico { font-size: 1.2rem; text-align: center; }
@media (max-width: 520px) { .moi-form .form3 { grid-template-columns: 1fr 1fr; } .moi-form .form3 > :first-child { grid-column: 1 / -1; } }

/* ---------- Planning classique (Horaires) ---------- */
.pl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.pl-table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; min-width: 560px; font-size: .8rem; }
.pl-table.single { min-width: 0; }
.pl-table th { font-weight: 600; color: var(--muted); padding: 2px; text-align: center; }
.pl-table thead th span { display: block; font-size: .7rem; text-transform: capitalize; }
.pl-table thead th b { font-size: .95rem; color: var(--ink); }
.pl-table thead th.is-today b { color: var(--accent); }
.pl-table .pl-name { width: 92px; text-align: left; position: sticky; left: 0; z-index: 1; background: var(--surface); }
.pl-table.single .pl-name { width: 0; padding: 0; }
.pl-table tbody .pl-name button { border: 0; background: none; padding: 6px 2px; font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; line-height: 1.2; }
.pl-table .pl-tot { width: 62px; text-align: center; }
.pl-table td.pl-tot b { display: block; font-size: .85rem; }
.pl-table td.pl-tot small { color: var(--muted); font-size: .7rem; }
.pl-cell { padding: 0; border-radius: 8px; height: 50px; text-align: center; vertical-align: middle; background: var(--surface-2); }
.pl-cell > button, .pl-cell > span { display: grid; place-items: center; align-content: center; width: 100%; min-height: 50px; padding: 4px 2px; border: 0; background: none; font: inherit; font-weight: 600; white-space: pre-line; line-height: 1.2; color: inherit; border-radius: 8px; cursor: pointer; }
.pl-cell > span { cursor: default; }
.pl-cell.k-work, .pl-cell.k-off, .pl-cell.k-leave, .pl-cell.k-sick, .pl-cell.k-school, .pl-cell.k-ferie { background: var(--k-soft); color: var(--k); }
.pl-cell.k-off, .pl-cell.k-none { color: var(--muted); font-weight: 500; }
.pl-cell.is-draft { outline: 2px dashed currentColor; outline-offset: -3px; opacity: .85; }
.pl-cell.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.pl-cell .ot-mark { font-size: .68rem; }
.pl-table tr.is-sel .pl-name button { color: var(--accent); }
.pl-detail summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding: 6px 0; }
.h-row.h-focus { background: var(--accent-soft); border-radius: 10px; transition: background .4s; }
@media (max-width: 420px) { .pl-table.single { font-size: .72rem; border-spacing: 2px; } .pl-table.single .pl-cell > span { min-height: 56px; } }
.pl-table.single .pl-tot { display: none; }

/* Renfort dans une autre structure, et présence prévue ailleurs */
:root { --renfort: #1E6E7E; --renfort-soft: #DDEFF2; }
.k-renfort, .k-elsewhere { --k: var(--renfort); --k-soft: var(--renfort-soft); }
.pl-cell.k-renfort, .pl-cell.k-elsewhere { background: var(--k-soft); color: var(--k); }
.pl-cell.k-elsewhere { background: repeating-linear-gradient(135deg, var(--renfort-soft) 0 6px, #ECF6F8 6px 12px); }
.h-row.k-renfort .kind-sel { background: var(--renfort-soft); color: var(--renfort); }
.pl-guest { display: block; font-size: .68rem; font-weight: 600; color: var(--renfort); }

/* Formations : modules et vidéos */
.form-module .fm-title { margin: 0; font: 400 1.2rem var(--f-display); display: grid; gap: 2px; }
.form-module .fm-title small { font: 700 .72rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-module .form-body p { margin: 0 0 10px; white-space: pre-wrap; line-height: 1.6; }
.fm-edit legend { font-weight: 700; padding: 0; }
.fm-edit .icon-btn { min-width: 36px; height: 36px; }
.fm-status .video-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 4px; }
.fm-status .video-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.fm-status small { color: var(--muted); }
.disk-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.disk-bar span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.disk-bar.low span { background: #B3261E; }

/* Mon planning (direction) : grille horaire */
.pg-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); position: relative; }
.pg-head, .pg-grid { display: grid; grid-template-columns: 44px repeat(var(--n, 6), minmax(0, 1fr)); }
.pg-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.pg-head { grid-template-columns: 44px repeat(var(--n, 6), minmax(0, 1fr)); }
.pg-wrap .pg-head { --n: inherit; }
.pg-dh { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; cursor: pointer; border-left: 1px solid var(--line); }
.pg-dh small { text-transform: capitalize; color: var(--muted); font-size: .72rem; }
.pg-dh b { font-size: 1rem; }
.pg-dh.is-today b { color: var(--accent-ink); background: var(--accent); border-radius: 999px; min-width: 28px; text-align: center; }
.pg-allday { font-size: .68rem; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-hours { position: relative; }
.pg-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .7rem; color: var(--muted); }
.pg-hours span:first-child { transform: none; }
.pg-col { position: relative; border-left: 1px solid var(--line); }
.pg-col.is-today { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.pg-slot { position: absolute; left: 0; right: 0; border: 0; border-top: 1px solid var(--line); background: none; padding: 0; cursor: pointer; }
.pg-slot.half { border-top: 1px dashed color-mix(in srgb, var(--line) 60%, transparent); }
.pg-slot:hover, .pg-slot:focus-visible { background: var(--accent-soft); }
.pg-ev { position: absolute; z-index: 1; display: grid; align-content: start; gap: 1px; overflow: hidden; padding: 3px 6px; border: 0; border-left: 3px solid var(--accent); border-radius: 6px;
  background: var(--accent-soft); color: var(--ink); text-align: left; font: inherit; font-size: .78rem; line-height: 1.2; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pg-ev b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-ev small { color: var(--muted); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-ev.meeting { background: var(--sick-soft); border-left-color: var(--sick); }
.pg-ev.task { background: var(--surface); border: 1px dashed var(--muted); border-left: 3px solid var(--muted); }
.pg-ev.task.done { opacity: .55; }
.pg-ev.task.done b { text-decoration: line-through; }
.pg-ev.shared { border-left-color: var(--ok); }
.pg-now { position: absolute; left: 0; right: 0; height: 2px; background: #B3261E; z-index: 2; pointer-events: none; }
.pg-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 999px; background: #B3261E; }
.moi-amp { grid-template-columns: repeat(3, minmax(0,1fr)) auto !important; align-items: end; }
@media (max-width: 520px) { .moi-amp { grid-template-columns: 1fr 1fr !important; } }
.pg-top { flex-wrap: wrap; row-gap: 8px; }
.pg-tools { margin-left: auto; }
.pg-ev.short { grid-auto-flow: column; justify-content: start; align-items: center; gap: 6px; padding: 1px 6px; }
.pg-ev.short small { font-size: .68rem; }
@media (max-width: 520px) { .pg-tools { margin-left: 0; width: 100%; flex-wrap: nowrap; gap: 6px; } .pg-tools .seg button { padding: 6px 10px; } .pg-tools .icon-btn { min-width: 40px; height: 40px; } .pg-tools .btn { margin-left: auto; white-space: nowrap; padding-inline: 12px; } }
.imp-row { padding-top: 10px; border-top: 1px solid var(--line); }
code.cmd { display: block; margin: 4px 0; padding: 8px 10px; border-radius: 8px; background: var(--night); color: #F4EDE3; font-size: .82rem; overflow-x: auto; user-select: all; }

/* ======================================================================
   Page « Plus » : carte de profil + rubriques rangées par univers en couleur.
   ====================================================================== */
.plus-page { gap: 12px; }
.me-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.me-card .avatar { width: 46px; height: 46px; font-size: 1rem; flex-shrink: 0; }
.me-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.me-txt b { font-weight: 600; font-size: 1.02rem; }
.me-txt small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uni { border-radius: 20px; padding: 14px; --u-bg: var(--surface-2); --u-ink: var(--ink); background: var(--u-bg); }
.uni h3 { margin: 0 0 10px 2px; font: 400 1.08rem var(--f-display); color: var(--u-ink); }
.uni-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uni-chip { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 0; border-radius: 14px;
  background: rgba(255,255,255,.72); color: var(--ink); font: 600 .95rem var(--f-body); text-align: left; cursor: pointer; transition: transform var(--t) var(--ease), background var(--t); }
.uni-chip:hover { background: rgba(255,255,255,.92); }
.uni-chip:active { transform: scale(.97); }
.uni-ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--u-ink); display: grid; }
.uni-ico svg { width: 22px; height: 22px; }
.uni-name { flex: 1; min-width: 0; line-height: 1.2; }
.uni-chip .badge { margin-left: auto; }
.u-clients { --u-bg: #F8E4ED; --u-ink: #8E1F52; }
.u-produits { --u-bg: #F8E8D2; --u-ink: #8A4E0E; }
.u-savoir { --u-bg: #E2EAF7; --u-ink: #2F5190; }
.u-equipe { --u-bg: #DFF0E7; --u-ink: #226146; }
.u-direction { --u-bg: var(--night); --u-ink: #E8C98B; }
.u-direction .uni-chip { background: var(--night-2); color: var(--night-ink); }
.u-direction .uni-chip:hover { background: color-mix(in srgb, var(--night-2) 80%, #fff); }
.plus-help { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.plus-help .linkish { color: var(--accent); min-height: 0; padding: 4px; }
@media (min-width: 760px) { .uni-row { grid-template-columns: repeat(3, 1fr); } }

/* ======================================================================
   Accueil (messagerie) : même esprit que la page Plus — blocs doux en couleur.
   ====================================================================== */
.home-une { grid-column: 1 / -1; display: grid; gap: 10px; margin-bottom: 4px; }
@media (min-width: 821px) {
  .home-une[data-n="2"] { grid-template-columns: 1fr 1fr; }
  .home-une[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
  .home-une > .ping-card, .home-une > .ann-pin[open] { grid-column: 1 / -1; }
}
.home-une > * { margin: 0 !important; grid-column: auto; min-width: 0; }
/* Portrait de la semaine : bloc sable, comme « Produits ». */
.home-une .honneur-ribbon { border: 0; border-radius: 20px; background: #F8E8D2; min-height: 76px; padding: 12px 14px; }
.home-une .honneur-ribbon img, .home-une .honneur-ribbon .hr-ini { width: 48px; height: 48px; border-color: #fff; }
.home-une .hr-txt small { color: #8A4E0E; letter-spacing: .08em; font-size: .7rem; }
.home-une .hr-go { color: #8A4E0E; }
/* Message du boss : bloc rose, comme « Clientes ». */
.home-une .ann-pin { border: 0; border-radius: 20px; background: #F8E4ED; }
.home-une .ann-pin summary { min-height: 76px; padding: 12px 14px; }
.home-une .ann-pin-k { color: #8E1F52; letter-spacing: .08em; font-size: .7rem; }
.home-une .ann-pin-ico { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.75); display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.home-une .ann-pin-body { padding: 0 14px 14px; }
.home-une .warn-home { border: 0; border-radius: 20px; background: var(--warn-soft); min-height: 76px; }
.home-une .ping-card { border: 0; border-radius: 20px; background: #E2EAF7; }

/* Liste des fils : pastille de couleur avec l'initiale du fil. */
.channels { gap: 6px; align-content: start; }
.channel { border-radius: 16px; padding: 10px 12px; gap: 12px; justify-content: flex-start; }
.channel .ch-side { margin-left: auto; }
.ch-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; font: 400 1.1rem var(--f-display); }
.ch-ico.t-rose { background: #F8E4ED; color: #8E1F52; }
.ch-ico.t-sable { background: #F8E8D2; color: #8A4E0E; }
.ch-ico.t-bleu { background: #E2EAF7; color: #2F5190; }
.ch-ico.t-vert { background: #DFF0E7; color: #226146; }
.channel[aria-current="true"] { background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .channels { gap: 8px; }
  .channel { background: var(--surface); border: 1px solid var(--line); min-height: 68px; }
}

/* Raccourcis sous les fils (message du boss, message perso, mots doux) : bloc vert « Vie d'équipe ». */
.msg-tools { margin-top: 12px; background: #DFF0E7; border-radius: 20px; padding: 12px; gap: 8px; }
.msg-tools h3 { margin: 0 0 2px 4px; font: 400 1.02rem var(--f-display); color: #226146; }
.msg-tools-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msg-tools-row > :only-child, .msg-tools-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.msg-tools .tuto-btn { grid-column: auto; margin: 0; border: 0; border-radius: 14px; background: rgba(255,255,255,.75); min-height: 52px; padding: 10px 12px; gap: 10px; }
.msg-tools .tuto-btn:hover { background: rgba(255,255,255,.92); }
.msg-tools .tuto-btn .tb-ico { width: 30px; height: 30px; background: #fff; color: #226146; font-size: .95rem; }
.msg-tools .tb-txt b { font-size: .9rem; line-height: 1.2; }
.msg-tools .tb-txt > span:not(:first-child), .msg-tools .hr-go { display: none; }
@media (min-width: 821px) { .msg-tools-row { grid-template-columns: 1fr; } .msg-tools-row > :last-child:nth-child(odd) { grid-column: auto; } }

/* ======================================================================
   Accueil « Tableau du jour » : bandeau du soir, cartes à la une, fils en tuiles, raccourcis ronds.
   ====================================================================== */
.home-hero { border-radius: 22px; padding: 16px 16px 14px; color: var(--night-ink); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-width: 0;
  background: linear-gradient(140deg, var(--night-2), var(--night) 60%, color-mix(in srgb, var(--accent) 45%, var(--night))); box-shadow: var(--shadow); }
.hh-date { color: #E8C98B; font-weight: 600; font-size: .8rem; }
.hh-date::first-letter { text-transform: uppercase; }
.home-hero h2 { margin: 0 0 4px; font: 400 1.5rem/1.15 var(--f-display); color: #fff; }
.hh-team { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--night-muted); line-height: 1.35; }
.hh-faces { display: flex; flex-shrink: 0; }
.hh-faces .avatar { width: 28px; height: 28px; font-size: .62rem; border: 2px solid var(--night); margin-left: -8px; }
.hh-faces .avatar:first-child { margin-left: 0; }
.hh-next { margin-top: 8px; display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 14px; padding: 10px 12px; min-height: 46px;
  background: rgba(255,255,255,.09); color: var(--night-ink); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.hh-next:hover { background: rgba(255,255,255,.14); }
.hh-ico { flex-shrink: 0; }
.hh-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-main b { color: #fff; }
.hh-side { color: #E8C98B; font-weight: 600; white-space: nowrap; }
/* À la une : cartes compactes, deux par rangée sur téléphone. */
.home-une.with-hero { grid-template-columns: 1fr 1fr; }
.home-une.with-hero > .home-hero, .home-une > .ping-card, .home-une > .warn-home, .home-une > .ann-pin[open] { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .home-une.with-hero .honneur-ribbon, .home-une.with-hero .ann-pin summary { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 108px; padding: 12px; }
  .home-une.with-hero .honneur-ribbon img, .home-une.with-hero .honneur-ribbon .hr-ini { width: 34px; height: 34px; font-size: 1rem; }
  .home-une.with-hero .ann-pin-ico { width: 34px; height: 34px; font-size: 1rem; }
  .home-une.with-hero .hr-txt, .home-une.with-hero .ann-pin-txt { width: 100%; }
  .home-une.with-hero .hr-txt span, .home-une.with-hero .ann-pin-txt span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .8rem; }
  .home-une.with-hero .hr-go { display: none; }
  .home-une.with-hero .ann-pin summary .chip { font-size: .7rem; padding: 2px 8px; }
  .home-une.with-hero .hr-txt small, .home-une.with-hero .ann-pin-k { font-size: .62rem; }
  .home-une.with-hero .hr-txt b, .home-une.with-hero .ann-pin-txt b { font-size: .92rem; line-height: 1.2; }
  /* Une seule carte à la une : pleine largeur. */
  .home-une.with-hero[data-n="2"] > :last-child { grid-column: 1 / -1; }
  /* Fils en tuiles de couleur. */
  .chat-wrap:not(.in-channel) .channels { grid-template-columns: 1fr 1fr; gap: 10px; }
  .chat-wrap:not(.in-channel) .channels > :not(.channel) { grid-column: 1 / -1; }
  .chat-wrap:not(.in-channel) .channel { position: relative; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px;
    min-height: 104px; padding: 12px; border: 0; border-radius: 18px; }
  .chat-wrap:not(.in-channel) .channel .ch-ico { display: none; }
  .chat-wrap:not(.in-channel) .channel .ch-main { width: 100%; }
  .chat-wrap:not(.in-channel) .channel .ch-name { font: 400 1.05rem/1.2 var(--f-display); padding-right: 28px; }
  .chat-wrap:not(.in-channel) .channel .ch-preview { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .78rem; line-height: 1.3; margin-top: 4px; }
  .chat-wrap:not(.in-channel) .channel .ch-side { position: absolute; top: 10px; right: 10px; margin: 0; }
  .chat-wrap:not(.in-channel) .channel .ch-time { display: none; }
  .chat-wrap:not(.in-channel) .channel.t-rose { background: #F8E4ED; } .chat-wrap:not(.in-channel) .channel.t-rose .ch-name { color: #8E1F52; }
  .chat-wrap:not(.in-channel) .channel.t-sable { background: #F8E8D2; } .chat-wrap:not(.in-channel) .channel.t-sable .ch-name { color: #8A4E0E; }
  .chat-wrap:not(.in-channel) .channel.t-bleu { background: #E2EAF7; } .chat-wrap:not(.in-channel) .channel.t-bleu .ch-name { color: #2F5190; }
  .chat-wrap:not(.in-channel) .channel.t-vert { background: #DFF0E7; } .chat-wrap:not(.in-channel) .channel.t-vert .ch-name { color: #226146; }
  .chat-wrap:not(.in-channel) .channel.has-unread { box-shadow: 0 0 0 2px var(--accent) inset; }
  .channels .ch-shared { font-size: .62rem; }
  /* Raccourcis en ronds. */
  .msg-tools { background: none; padding: 6px 0 0; }
  .msg-tools h3 { display: none; }
  .msg-tools-row { display: flex; justify-content: space-around; gap: 6px; }
  .msg-tools .tuto-btn { flex: 1 1 0; max-width: 110px; flex-direction: column; gap: 6px; background: none; padding: 4px; min-height: 0; text-align: center; }
  .msg-tools .tuto-btn:hover { background: none; }
  .msg-tools .tuto-btn .tb-ico { width: 52px; height: 52px; font-size: 1.25rem; background: #DFF0E7; }
  .msg-tools .tuto-btn:nth-child(3n+1) .tb-ico { background: #F8E4ED; color: #8E1F52; }
  .msg-tools .tuto-btn:nth-child(3n+2) .tb-ico { background: #E2EAF7; color: #2F5190; }
  .msg-tools .tb-txt b { font-size: .76rem; font-weight: 600; }
}
@media (min-width: 821px) {
  .home-une.with-hero { grid-template-columns: 1.35fr 1fr 1fr; }
  .home-une.with-hero[data-n="2"] { grid-template-columns: 1.35fr 1fr; }
  .home-une.with-hero > .home-hero { grid-column: auto; }
  .home-une.with-hero .honneur-ribbon, .home-une.with-hero .ann-pin { align-self: stretch; }
  .home-une.with-hero .ann-pin summary { height: 100%; }
}

/* Accès des postes (Équipe) */
.perm-row { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.perm-models { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-models .chip { cursor: pointer; font-weight: 600; }
.perm-grp { border-radius: 18px; padding: 12px; background: var(--surface-2); }
.perm-grp h4 { margin: 0 0 6px 2px; font: 400 1.05rem var(--f-display); }
.perm-grp.pg-clients { background: #F8E4ED; } .perm-grp.pg-clients h4 { color: #8E1F52; }
.perm-grp.pg-produits { background: #F8E8D2; } .perm-grp.pg-produits h4 { color: #8A4E0E; }
.perm-grp.pg-savoir { background: #E2EAF7; } .perm-grp.pg-savoir h4 { color: #2F5190; }
.perm-grp.pg-equipe { background: #DFF0E7; } .perm-grp.pg-equipe h4 { color: #226146; }
.perm { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.75); border-radius: 13px; padding: 10px 12px; margin-top: 6px; flex-wrap: wrap; }
.perm-t { flex: 1 1 200px; min-width: 0; display: grid; gap: 1px; }
.perm-t b { font-weight: 600; font-size: .93rem; }
.perm-t small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.perm-seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.perm-seg button { border: 0; background: none; border-radius: 999px; padding: 7px 11px; min-height: 36px; font: 600 .8rem var(--f-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.perm-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.perm-seg button[aria-pressed="true"].lv-all { color: #226146; }
.perm-seg button[aria-pressed="true"].lv-mid { color: #2F5190; }
.perm-sum { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; }
.perm-sum p { margin: 0; font-size: .9rem; }
@media (max-width: 520px) { .perm-seg { width: 100%; } .perm-seg button { flex: 1; padding: 7px 4px; white-space: normal; line-height: 1.15; } }
/* Pop-up « Du nouveau dans votre appli » */
.news-card { text-align: left; gap: 10px; }
.news-card h2, .news-card .ann-pop-ico { text-align: center; }
.news-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.news-ico { font-size: 1.3rem; line-height: 1.4; flex-shrink: 0; }
.news-item b { font-weight: 600; }
.news-item p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.news-item small { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 600; color: var(--accent); }
/* Stock : photo et référence (articles importés de la boutique) */
.stk-photo { width: 48px; height: 58px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--surface-2); }
.stk-line { align-items: center; }
.stk-search { position: sticky; top: 8px; z-index: 3; box-shadow: var(--shadow); }
.stk-cat > summary { cursor: pointer; list-style: none; }
.stk-cat > summary::-webkit-details-marker { display: none; }
.stk-cat > summary::after { content: "›"; float: right; color: var(--muted); font-size: 1.3rem; transition: transform var(--t); }
.stk-cat[open] > summary::after { transform: rotate(90deg); }
.stk-cat[open] > summary { margin-bottom: 8px; }
/* Commandes du site à préparer (Commandes clientes) */
.co-shop { gap: 10px; border-top: 4px solid var(--accent); }
.co-shop-o { border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--surface); }
.co-shop-o.ready { border-color: var(--ok); background: var(--ok-soft); }
.co-shop-o > summary { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 0; cursor: pointer; list-style: none; }
.co-shop-o > summary::-webkit-details-marker { display: none; }
.co-shop-o > summary small { grid-column: 1 / -1; color: var(--muted); }
.co-shop-o[open] { padding-bottom: 12px; }
.co-shop-items { display: grid; gap: 6px; margin-bottom: 10px; }
.co-shop-it { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.co-shop-it.done { opacity: .6; } .co-shop-it.done b { text-decoration: line-through; }
.co-shop-it input { flex-shrink: 0; }
.co-shop-it img, .co-noimg { width: 44px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface); }
.co-it-txt { flex: 1; min-width: 0; display: grid; } .co-it-txt small { color: var(--muted); font-size: .78rem; }
.co-qty { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.co-steps { margin: 0; padding-left: 20px; } .co-steps li { margin: 3px 0; }
/* Photos et documents des modules de formation */
.fm-files { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-file { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 6px 6px 6px 8px; max-width: 100%; }
.fm-file img, .fm-file-ico { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.fm-file-ico { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 700; }
.fm-file small { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.fm-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.fm-doc { display: grid; gap: 8px; }
.fm-doc iframe { width: 100%; height: min(75vh, 720px); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
/* Demander une formation : plusieurs personnes cochées */
.fa-people { display: grid; gap: 10px; }
.fa-group { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.fa-head { display: flex; justify-content: space-between; align-items: center; }
.fa-head .linkish { min-height: 0; padding: 2px 4px; color: var(--accent); font-size: .85rem; }
.fa-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fa-person { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; cursor: pointer; font-size: .92rem; }
.fa-person.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.fa-person input { width: 18px; height: 18px; }
/* Ma journée : check-list repliable sous le planning */
.moi-tasks-card > summary { list-style: none; cursor: pointer; }
.moi-tasks-card > summary::-webkit-details-marker { display: none; }
.mtc-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mtc-title h3::after { content: " ›"; color: var(--muted); display: inline-block; transition: transform var(--t); }
.moi-tasks-card[open] .mtc-title h3::after { transform: rotate(90deg); }
.mtc-count { color: var(--muted); font-weight: 600; }
.mtc-count.late { color: var(--danger); }
.moi-start { justify-content: center; color: var(--muted); font-size: .9rem; margin-top: 4px; }
/* Club VIP : accueil « À traiter » d'abord, actions, chiffres, rubriques */
.vip-back { justify-self: start; color: var(--accent); min-height: 0; padding: 4px 0; font-weight: 600; text-decoration: none; }
.vip-todo { gap: 8px; border-top: 4px solid var(--accent); }
.vip-todo.calm { border-top-color: var(--ok); }
.vip-todo.calm h3 { color: var(--ok); }
.vip-todo-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface-2); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.vip-todo-row:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--accent-soft)); }
.vt-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.vt-ico.t-rose { background: #F8E4ED; } .vt-ico.t-sable { background: #F8E8D2; }
.vip-todo-row b { flex: 1; font-weight: 600; font-size: .93rem; }
.vt-go { color: var(--accent); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.vip-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vip-act { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 84px; padding: 14px; border: 0; border-radius: 18px; color: #fff; font: 700 .98rem var(--f-body); text-align: left; cursor: pointer; }
.vip-act span { font-size: 1.3rem; }
.vip-act.a1 { background: var(--accent); } .vip-act.a2 { background: var(--night); }
.vip-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vip-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
.vip-kpi b { font: 400 1.5rem var(--f-display); }
.vip-kpi small { color: var(--muted); font-size: .72rem; line-height: 1.2; }
.vip-more { display: grid; gap: 8px; }
.vip-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.vip-pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font: 600 .88rem var(--f-body); color: var(--ink); cursor: pointer; min-height: 40px; }
.vip-pill:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 420px) { .vip-kpis { grid-template-columns: 1fr 1fr; } }
.vip-todo-item { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.vip-todo-item h3 { font-size: 1rem; margin: 0; }
.vip-kpi b { font: 700 1.35rem var(--f-body); font-variant-numeric: tabular-nums; }
/* Compteur d'heures sup : une carte par personne */
.ot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ot-pc { padding: 14px; display: grid; gap: 10px; align-content: start; }
.ot-pc.todo { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; }
.ot-pc-head { display: flex; align-items: center; gap: 10px; }
.ot-pc-head .avatar { width: 36px; height: 36px; }
.ot-pc-head b { display: block; font-size: .98rem; }
.ot-pc-head small { color: var(--muted); font-size: .78rem; }
.ot-big { display: flex; align-items: baseline; gap: 8px; }
.ot-big span { font: 400 2rem var(--f-display); font-variant-numeric: tabular-nums; }
.ot-big small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.ot-big.pos span { color: var(--warn); } .ot-big.neg span { color: var(--danger); }
.ot-week small { color: var(--muted); font-size: .78rem; }
.ot-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
.ot-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.ot-bar.over i { background: var(--warn); } .ot-bar.under i { background: var(--danger); }
.ot-pc-todo { margin: 0; font-size: .82rem; font-weight: 700; color: var(--warn); }
.ot-pc-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ot-pc-acts .ghost { margin-left: auto; }
/* Erreurs du quiz (salariée et direction) */
.qz-err { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); margin-top: 6px; }
.qz-err summary { cursor: pointer; font-weight: 700; font-size: .88rem; }
.qz-err-row { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.qz-err-row:first-of-type { border-top: 0; }
.qz-given { color: var(--danger); } .qz-good { color: var(--ok); font-weight: 600; }
.form-person .qz-err { grid-column: 1 / -1; }
/* Planning · vue Journée */
.pj-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; }
.pj-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pj-day { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 0 5px; display: grid; justify-items: center; gap: 1px; cursor: pointer; font: 600 .66rem var(--f-body, inherit); color: var(--muted); text-transform: capitalize; }
.pj-day b { font: 400 1.08rem var(--f-display); color: var(--ink); }
.pj-day small { font-size: .62rem; font-weight: 700; color: var(--ok); }
.pj-day.is-today { border-color: var(--accent); }
.pj-day.low small { color: var(--danger); }
.pj-day.on { background: var(--night, #241A33); border-color: var(--night, #241A33); color: #CFC3DB; }
.pj-day.on b { color: #fff; } .pj-day.on small { color: #9EE0BE; } .pj-day.on.low small { color: #FFB4AE; }
.pj-card { gap: 10px; }
.pj-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pj-head h3 { margin: 0; }
.pj-scale { display: grid; grid-template-columns: 128px 1fr; font-size: .62rem; color: var(--muted); }
.pj-scale div { display: flex; justify-content: space-between; }
.pj-rows { display: grid; gap: 6px; }
.pj-row { display: grid; grid-template-columns: 30px 90px 1fr auto; gap: 8px; align-items: center; background: none; border: 0; padding: 2px 0; text-align: left; font: inherit; color: inherit; width: 100%; }
button.pj-row { cursor: pointer; border-radius: 10px; }
button.pj-row:hover .pj-track { box-shadow: 0 0 0 2px var(--line) inset; }
.pj-row .avatar { width: 30px; height: 30px; font-size: .68rem; }
.pj-who { min-width: 0; } .pj-who b { display: block; font-size: .86rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-who small { color: var(--muted); font-size: .7rem; }
.pj-row.rest .pj-who b { color: var(--muted); font-weight: 600; }
.pj-track { position: relative; height: 28px; background: var(--surface-2); border-radius: 8px; }
.pj-track.is-draft { outline: 1.5px dashed var(--line); outline-offset: -1.5px; }
.pj-bar, .pj-full { position: absolute; top: 0; bottom: 0; border-radius: 8px; font: 700 .7rem/26px var(--f-body, inherit); font-style: normal; text-align: center; white-space: nowrap; overflow: hidden; }
.pj-bar { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
.pj-bar.renfort { background: #E2EAF7; border-color: #C6D4EE; color: #3B62A8; }
.pj-full { left: 0; right: 0; background: var(--surface-2); color: var(--muted); }
.pj-full.k-leave { background: var(--ok-soft, #DFF0E7); color: var(--ok); }
.pj-full.k-sick { background: #E2EAF7; color: #3B62A8; }
.pj-full.k-school, .pj-full.k-elsewhere { background: #F1E8D6; color: #8C6516; }
.pj-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--danger); border-radius: 2px; z-index: 1; }
.pj-warn { margin: 0; font-size: .84rem; font-weight: 700; color: var(--danger); }
.pj-shortcuts { flex-wrap: wrap; gap: 6px; }
@media (max-width: 420px) { .pj-row { grid-template-columns: 28px 70px 1fr auto; gap: 6px; } .pj-scale { grid-template-columns: 104px 1fr; } }
/* Congés : absences à venir */
.absent-list { display: grid; }
.absent-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.absent-row:first-child { border-top: 0; }
.absent-row b { display: block; font-size: .9rem; } .absent-row small { color: var(--muted); font-size: .78rem; }
.absent-row .avatar { width: 32px; height: 32px; }
.leave-todo { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
details.card.panel > summary { cursor: pointer; font: 400 1.15rem var(--f-display); }
/* Réunions : la prochaine en grand, la relance */
.meet-hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-left: 4px solid var(--accent); }
.mh-date { width: 58px; text-align: center; border-radius: 14px; background: var(--night); color: #fff; padding: 7px 0; }
.mh-date small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--night-muted); }
.mh-date b { display: block; font: 400 1.7rem/1 var(--f-display); }
.mh-txt { display: grid; gap: 2px; min-width: 0; } .mh-txt b { font-size: 1.02rem; } .mh-txt > span { color: var(--muted); font-size: .86rem; }
.mh-avs { display: flex; align-items: center; margin-top: 4px; }
.mh-avs .avatar { width: 26px; height: 26px; font-size: .58rem; border: 2px solid var(--surface); margin-left: -6px; }
.mh-avs .avatar:first-child { margin-left: 0; } .mh-avs small { margin-left: 6px; color: var(--muted); }
.meet-next-det > summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--accent); padding: 0 4px; }
.meet-prog { display: grid; gap: 6px; margin-bottom: 8px; }
.mp-bar { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; } .mp-bar i { display: block; height: 100%; background: var(--ok); }
.meet-prog small { color: var(--muted); font-weight: 600; }
.pj-rest { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.pj-rest > small { color: var(--muted); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.pj-rest-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-rest-p { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 3px; font: 600 .8rem inherit; color: var(--muted); }
button.pj-rest-p { cursor: pointer; }
.pj-rest-p .avatar { width: 24px; height: 24px; font-size: .55rem; }
/* Voir l'appli comme : un poste ou une cliente VIP */
.pv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pv-tile { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.pv-tile:hover { border-color: var(--accent); }
.pv-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; }
.pv-t b { display: block; font-size: .92rem; } .pv-t small { color: var(--muted); font-size: .76rem; }
.pv-go { color: var(--muted); font-size: 1.3rem; }
.pv-tile.vip { background: var(--night); border-color: var(--night); color: #fff; }
.pv-tile.vip .pv-ic { background: rgba(255,255,255,.1); } .pv-tile.vip small, .pv-tile.vip .pv-go { color: var(--night-muted); }
.pv-precise > summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--accent); margin-bottom: 8px; }
.pv-precise { display: grid; gap: 8px; }
.exp-mail { display: grid; gap: 4px; }
.exp-mail > small { padding-left: 4px; }
.exp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-chip { display: grid; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 12px 6px 30px; cursor: pointer; font: inherit; color: inherit; position: relative; }
.exp-chip:before { content: ""; position: absolute; left: 9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--surface); }
.exp-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.exp-chip[aria-pressed="true"]:before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--surface); }
.exp-chip b { font-size: .86rem; } .exp-chip small { color: var(--muted); font-size: .72rem; }
.exp-keep:empty { display: none; } .exp-keep { display: grid; gap: 4px; }
.mail-contacts { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.mail-contacts h4 { margin: 0; }
.mc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mc-row b { display: block; font-size: .9rem; } .mc-row small { color: var(--muted); }
.mc-add { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; }
@media (max-width: 560px) { .mc-add { grid-template-columns: 1fr; } }
.dc-legal { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; }
/* Offres du mois (direction) : le bouton « Nouvelle offre » en premier, des cartes publiées plus compactes */
.vp-new { justify-self: start; }
#vp-form > .linkish:first-child { float: right; }
.card.panel .vip-list .vip-post video, .card.panel .vip-list .vip-post .vip-post-img, .card.panel .vip-list .vip-post .video-box { max-height: 260px; object-fit: cover; }
.card.panel .vip-list .vip-post .video-box video { width: 100%; height: 260px; object-fit: cover; background: #000; }
/* Parking du Manoir (page d'accueil) */
.parking-card { padding: 14px 16px; display: grid; gap: 10px; }
.parking-card.full { border-color: var(--warn); }
.pk-head h3 { margin: 0; } .pk-head small { color: var(--muted); font-size: .82rem; }
.pk-full { margin: 0; font-weight: 700; color: var(--warn); font-size: .88rem; }
.pk-rows { display: grid; gap: 8px; }
.pk-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.pk-row b { font-size: .9rem; } .pk-row > small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.pk-slots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pk-slot { display: inline-flex; align-items: center; gap: 6px; min-width: 84px; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1.5px dashed var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }
.pk-slot:not(.taken) { padding-left: 12px; color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pk-slot.taken { border-style: solid; background: var(--surface-2); color: var(--ink); }
.pk-slot.me { border-color: var(--accent); background: var(--accent-soft); }
.pk-slot .avatar { width: 22px; height: 22px; font-size: .5rem; }
.pk-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pk-mine { font-size: .84rem; font-weight: 700; margin-right: 2px; }
.home-une > .parking-card, .home-une.with-hero > .parking-card { grid-column: 1 / -1; }
.parking-card .pk-row { grid-template-columns: auto 1fr; } .parking-card .pk-row > small { justify-self: start; }
.transfer-card h4 { margin: 8px 0 0; font-size: .95rem; }
.tr-row { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.tr-row:first-child { border-top: 0; }
.tr-bar { height: 8px; background: var(--surface-2); border-radius: 8px; overflow: hidden; } .tr-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.upd-log pre { white-space: pre-wrap; font-size: .72rem; background: var(--surface-2); border-radius: 10px; padding: 8px; max-height: 260px; overflow: auto; margin: 6px 0 0; }
