@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
/* StudioFlow — feuille de style (identique au design validé) */
:root {
  --ink: #14161B; --ink-2: #2B2D33; --muted: #6E6A63; --subtle: #A39E95;
  --line: #E7E2D9; --line-2: #F0ECE5; --canvas: #F6F3EE; --surface: #fff;
  --brand: #8C7550; --brand-600: #75613F; --brand-50: #F3EEE4; --brand-100: #E8DFCF; --brand-light: #C4B08E;
  --sand: #C4B08E;
  --ok: #3F6B52; --ok-bg: #E6EFE8; --warn: #9A6326; --warn-bg: #F7EEDF; --amber: #C98A3D;
  --danger: #A8453A; --danger-bg: #F8E9E6; --info: #4A5E80; --info-bg: #E9EDF4;
  --shadow: 0 1px 2px rgb(16 18 24 / .04), 0 1px 1px rgb(16 18 24 / .02);
  --pop: 0 12px 32px -8px rgb(16 18 24 / .18), 0 2px 6px rgb(16 18 24 / .06);
  --r: 14px; --r2: 20px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hide { display: none !important; }
.muted { color: var(--muted); } .subtle { color: var(--subtle); } .small { font-size: 13px; } .xs { font-size: 12px; }
.tab { font-variant-numeric: tabular-nums; } .b { font-weight: 600; } .cap { text-transform: capitalize; } .brand { color: var(--brand); }
.link { color: var(--brand); font-weight: 500; font-size: 14px; cursor: pointer; background: none; border: 0; padding: 0; }
.stack > * + * { margin-top: 12px; } .stack-lg > * + * { margin-top: 32px; } .stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; } .trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1024px) { .grid4 { grid-template-columns: repeat(4, 1fr); } .lg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .lg-2 > * + * { margin-top: 0; } }
@media (min-width: 768px) { .md-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .md-2 > * + * { margin-top: 0; } }
.narrow { max-width: 640px; } .narrow-sm { max-width: 560px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.logo svg { width: 32px; height: 32px; } .logo em { font-style: normal; color: var(--brand); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px;
  font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; user-select: none; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; } .btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: var(--surface); border-color: var(--line); } .btn-secondary:hover { background: var(--line-2); }
.btn-ghost { background: transparent; color: var(--ink-2); } .btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: var(--surface); border-color: var(--line); color: var(--danger); } .btn-danger:hover { background: var(--danger-bg); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-success { background: var(--ok); color: #fff; } .btn-success:hover { filter: brightness(1.1); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; } .btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--shadow); }
.card.pad { padding: 20px; } .card.pad-sm { padding: 16px; }
.card.list > * + * { border-top: 1px solid var(--line-2); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
a.list-item:hover, button.list-item:hover { background: var(--line-2); }
.card.hoverable { transition: box-shadow .15s, border-color .15s; } .card.hoverable:hover { box-shadow: var(--pop); border-color: rgb(15 17 21 / .25); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.page-head p { margin-top: 4px; color: var(--muted); }
@media (min-width: 768px) { .page-head h1 { font-size: 30px; } }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.back svg { width: 16px; height: 16px; } .back:hover { color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px; border: 1px dashed var(--line); border-radius: var(--r2); background: rgb(255 255 255 / .6); }
.empty .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--line-2); color: var(--muted); display: grid; place-items: center; margin-bottom: 12px; }
.empty .ic svg { width: 20px; height: 20px; } .empty p.t { font-weight: 500; } .empty p.d { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 380px; }
.empty .act { margin-top: 16px; }
.stat { padding: 16px; } .stat .l { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .v { margin-top: 8px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .stat .h { font-size: 12px; color: var(--subtle); }
.stat .v.warn { color: var(--warn); }
.note { border-radius: 12px; padding: 12px 16px; font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.note.warn { background: var(--warn-bg); color: var(--warn); } .note.danger { background: var(--danger-bg); color: var(--danger); } .note.neutral { background: var(--line-2); color: var(--muted); }
.note.soft { background: var(--canvas); color: var(--ink-2); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); } .badge.brand { background: var(--brand-50); color: var(--brand-600); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge svg { width: 12px; height: 12px; }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.bar > i.warn { background: var(--amber); } .bar > i.full { background: var(--danger); }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0; width: 40px; height: 40px; font-size: 14px; background: var(--ink-2); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; } .avatar.lg { width: 56px; height: 56px; font-size: 18px; }

/* Formulaires */
.field { display: block; } .field + .field { margin-top: 16px; }
.field label, .label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--subtle); margin-top: 6px; } .field .err { font-size: 13px; color: var(--danger); margin-top: 6px; }
.input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(15 17 21 / .05); }
.input[readonly] { background: var(--line-2); color: var(--muted); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6f7a' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") right 12px center no-repeat; padding-right: 40px; }
.form-grid { display: grid; gap: 16px; } .form-grid.two { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .form-grid.sm-two { grid-template-columns: 1fr 1fr; gap: 12px; } .form-grid.sm-three { grid-template-columns: 1fr 1fr 1fr; gap: 12px; } }
.toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px; cursor: pointer; }
.toggle .t { font-weight: 500; } .toggle .d { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; flex-shrink: 0; width: 48px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .15s; }
.switch input:checked + span { background: var(--ink); } .switch input:checked + span::after { transform: translateX(20px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip.sm { height: 36px; padding: 0 14px; } .chip:hover { border-color: var(--ink); } .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.dashed { border-style: dashed; color: var(--muted); }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypick label { position: relative; } .daypick input { position: absolute; opacity: 0; }
.daypick span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.daypick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; } .colors button { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; }
.colors button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.search { position: relative; } .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--subtle); }
.search .input { padding-left: 40px; height: 46px; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--line-2); border-radius: 12px; padding: 4px; font-size: 14px; font-weight: 500; }
.seg a, .seg button { padding: 8px 16px; border-radius: 9px; text-align: center; color: var(--muted); border: 0; background: none; cursor: pointer; }
.seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Coque de l'application */
.app { min-height: 100dvh; }
@media (min-width: 768px) { .app { display: grid; grid-template-columns: 260px 1fr; } }
.side { display: none; }
@media (min-width: 768px) {
  .side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 16px; background: var(--surface); border-right: 1px solid var(--line); }
}
.side .logo { padding: 4px 8px 0; margin-bottom: 32px; }
.side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side nav a, .side nav button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 500; color: var(--ink-2); border: 0; background: none; cursor: pointer; width: 100%; text-align: left; }
.side nav a:hover, .side nav button:hover { background: var(--line-2); }
.side nav a.on { background: var(--ink); color: #fff; }
.side nav svg { width: 18px; height: 18px; } .side nav .spacer { flex: 1; }
.side nav .count { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--warn-bg); color: var(--warn); border-radius: 99px; padding: 2px 8px; }
.side nav a.on .count { background: rgb(255 255 255 / .2); color: #fff; }
.side .me { display: flex; align-items: center; gap: 12px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.side .me:hover { background: var(--line-2); }
.main-col { display: flex; flex-direction: column; min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgb(247 247 248 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .top { height: 64px; padding: 0 32px; background: transparent; border-color: transparent; backdrop-filter: none; } .top .logo { visibility: hidden; } .top .me-link { display: none; } }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); }
.bell:hover { background: var(--line-2); } .bell svg { width: 21px; height: 21px; }
.bell b { position: absolute; top: 4px; right: 4px; min-width: 18px; padding: 0 4px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 10px; line-height: 18px; text-align: center; }
main { width: 100%; max-width: 1024px; margin: 0 auto; padding: 20px 16px 112px; }
@media (min-width: 768px) { main { padding: 8px 32px 48px; } }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom ul { list-style: none; margin: 0 auto; padding: 0 4px; max-width: 520px; display: flex; }
.bottom li { flex: 1; display: flex; justify-content: center; }
.bottom a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; font-size: 11px; font-weight: 500; color: var(--subtle); }
.bottom a.on { color: var(--ink); } .bottom a svg { width: 22px; height: 22px; }
.bottom a.primary span.plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--pop); }
.bottom a.primary { padding-top: 6px; } .bottom a.primary .lbl { display: none; }
.bottom a b { position: absolute; top: 6px; left: 50%; margin-left: 8px; min-width: 18px; padding: 0 4px; border-radius: 99px; background: var(--amber); color: #fff; font-size: 10px; line-height: 18px; text-align: center; }
@media (min-width: 768px) { .bottom { display: none; } }
.loading-page { padding: 24px 0; } .sk { background: linear-gradient(90deg, #efeff2, #f6f6f8, #efeff2); background-size: 800px 100%; animation: sh 1.2s linear infinite; border-radius: 12px; }
@keyframes sh { 0% { background-position: -400px 0 } 100% { background-position: 400px 0 } }

/* Écrans de connexion */
.auth { min-height: 100dvh; }
@media (min-width: 1024px) { .auth { display: grid; grid-template-columns: 1.05fr 1fr; } }
.auth .hero { display: none; }
@media (min-width: 1024px) {
  .auth .hero { display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 48px; }
  .auth .hero .logo em { color: var(--brand-light); }
  .auth .hero .big { margin-top: auto; max-width: 440px; font-size: 40px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
  .auth .hero .big span { color: var(--brand-light); } .auth .hero .sub { margin-top: 20px; font-size: 17px; color: rgb(255 255 255 / .6); max-width: 440px; }
  .auth .hero .slots { position: absolute; top: 96px; right: -60px; display: flex; flex-direction: column; gap: 16px; }
  .auth .hero .slots div { border-radius: 16px; padding: 16px 20px; font-size: 14px; font-weight: 500; color: rgb(255 255 255 / .9); background: rgb(255 255 255 / .1); }
}
.auth .form-side { display: flex; flex-direction: column; min-height: 100dvh; padding: 32px 24px; }
@media (min-width: 1024px) { .auth .form-side { justify-content: center; } .auth .form-side > .logo { display: none; } }
.auth .box { width: 100%; max-width: 384px; margin: 56px auto 0; } @media (min-width: 1024px) { .auth .box { margin-top: 0; } }
.auth h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; } .auth .lead { margin-top: 6px; color: var(--muted); }
.alert { border-radius: 12px; background: var(--danger-bg); color: var(--danger); padding: 12px 16px; font-size: 14px; }

/* Toasts */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
@media (min-width: 768px) { .toasts { bottom: 24px; align-items: flex-end; padding-right: 24px; } }
.toast { pointer-events: auto; width: 100%; max-width: 384px; display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 12px 16px; box-shadow: var(--pop); animation: tin .18s ease-out; }
.toast.ok { background: var(--ink); color: #fff; } .toast.err { background: var(--surface); border: 1px solid rgb(196 40 61 / .2); }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; } .toast.ok svg { color: var(--sand); } .toast.err svg { color: var(--danger); }
.toast span { flex: 1; } .toast button { border: 0; background: none; opacity: .6; cursor: pointer; padding: 0; color: inherit; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Boîtes de dialogue */
dialog { border: 0; border-radius: 20px; padding: 0; width: calc(100% - 32px); max-width: 448px; box-shadow: var(--pop); color: var(--ink); }
dialog::backdrop { background: rgb(15 17 21 / .45); backdrop-filter: blur(2px); }
dialog .in { padding: 24px; } dialog h3 { font-size: 18px; font-weight: 600; } dialog p { margin-top: 8px; color: var(--muted); }
dialog .acts { margin-top: 24px; display: flex; flex-direction: column-reverse; gap: 8px; }
@media (min-width: 640px) { dialog .acts { flex-direction: row; justify-content: flex-end; } }

/* Créneaux et planning */
.slot { display: flex; gap: 12px; padding: 16px; }
.slot .stripe { width: 4px; border-radius: 99px; flex-shrink: 0; }
.slot.pending { border-color: #EAD9BE; background: #FCF8F1; }
.slot .time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.free { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 16px; }
a.free:hover { border-color: var(--ink); background: var(--surface); }
.free .t { width: 104px; flex-shrink: 0; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.free .plus { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.free .plus svg { width: 16px; height: 16px; }
.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); } .icon-btn svg { width: 20px; height: 20px; }
.legend { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; } .legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.week-mobile { display: flex; flex-direction: column; gap: 24px; } .week-desk { display: none; }
@media (min-width: 768px) { .week-mobile { display: none; } .week-desk { display: block; overflow: hidden; } }
.wk-head, .wk-body { display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.wk-head { border-bottom: 1px solid var(--line); }
.wk-head a { border-left: 1px solid var(--line-2); padding: 12px 8px; text-align: center; }
.wk-head a:hover { background: var(--line-2); } .wk-head .d { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.wk-head .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 600; margin-top: 2px; }
.wk-head .n.today { background: var(--ink); color: #fff; }
.closed { background: var(--canvas); }
.wk-body { position: relative; } .wk-hours div { position: relative; font-size: 11px; color: var(--subtle); text-align: right; }
.wk-hours span { position: absolute; top: -8px; right: 8px; }
.wk-col { position: relative; border-left: 1px solid var(--line-2); } .wk-col .h { border-top: 1px solid var(--line-2); }
.wk-ev { position: absolute; left: 4px; right: 4px; }
.wk-ev > * { display: block; height: 100%; overflow: hidden; border-radius: 8px; padding: 4px 8px; font-size: 12px; line-height: 1.25; color: #fff; }
.wk-ev .p { background: var(--warn-bg); color: var(--warn); border: 1px dashed var(--amber); }
.month { overflow: hidden; } .month-h, .month-g { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-h { border-bottom: 1px solid var(--line); text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.month-h div { padding: 10px 0; }
.month-g a { min-height: 64px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); padding: 6px; }
.month-g a:hover { background: var(--line-2); } .month-g a.out { background: var(--canvas); color: var(--subtle); }
.month-g .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 500; }
.month-g .n.today { background: var(--ink); color: #fff; }
.month-g .dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .month-g .dots i { width: 6px; height: 6px; border-radius: 50%; }
.month-g .lbls { display: none; }
@media (min-width: 768px) {
  .month-g a { min-height: 104px; padding: 8px; } .month-g .dots { display: none; } .month-g .lbls { display: block; margin-top: 4px; }
  .month-g .lbls p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 500; color: #fff; margin-bottom: 4px; }
  .month-g .lbls p.p { background: var(--warn-bg); color: var(--warn); }
}
.dayhead { position: sticky; top: 56px; z-index: 5; margin: 0 -16px 8px; padding: 8px 16px; background: rgb(247 247 248 / .95); font-weight: 600; text-transform: capitalize; }
@media (min-width: 768px) { .dayhead { position: static; margin: 0 0 8px; padding: 0; background: none; } }

/* Divers */
.hero-next { background: var(--ink); color: #fff; border: 0; padding: 20px; box-shadow: var(--pop); }
.hero-next .d { font-size: 14px; color: rgb(255 255 255 / .6); text-transform: capitalize; }
.hero-next .r { margin-top: 4px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-next .n { margin-top: 8px; font-size: 18px; font-weight: 500; } .hero-next .f { margin-top: 16px; font-size: 14px; color: rgb(255 255 255 / .7); }
.copy { border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: 12px; padding: 16px; }
.copy .l { font-size: 14px; font-weight: 500; color: var(--brand-600); } .copy code { display: block; margin-top: 4px; word-break: break-all; font-size: 13px; color: var(--ink-2); }
.pick { max-height: 288px; overflow-y: auto; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.pick button { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 15px; }
.pick button:hover { background: var(--line-2); } .pick button.on { background: var(--ink); color: #fff; }
.pick .box { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; }
.pick button.on .box { background: #fff; color: var(--ink); border-color: #fff; } .pick .box svg { width: 14px; height: 14px; }
.notif { display: flex; gap: 12px; padding: 16px; } .notif.unread { background: rgb(238 240 255 / .6); }
.notif .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.notif .ic svg { width: 18px; height: 18px; } .notif .u { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 8px; flex-shrink: 0; }
.sticky-save { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); } @media (min-width: 768px) { .sticky-save { bottom: 16px; } }
.filters { display: flex; flex-wrap: wrap; gap: 6px; } .filters a { border-radius: 999px; padding: 6px 12px; font-size: 14px; background: var(--line-2); color: var(--ink-2); }
.filters a.on { background: var(--ink); color: #fff; }
.num3 { display: grid; grid-template-columns: repeat(3, auto); gap: 16px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.form-grid > .field + .field, .grid2 > .field + .field { margin-top: 0; }
.dayhead { font-size: 15px; }

/* Identité « Encre & Sable » */
h1, h2, h3, .page-head h1, .stat .v, .auth h1, .hero-next .r, .slot .time { font-family: "Manrope", "Inter", sans-serif; }
.logo { gap: 12px; } .logo .wm { font-family: "Manrope", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .24em; }
.logo svg { width: 30px; height: 30px; }
.bell b { background: var(--ink); } .side nav .count { background: var(--brand-50); color: var(--brand-600); }
.bottom a b { background: var(--ink); }
.auth .hero { background: var(--ink); } .auth .hero .big span { color: var(--sand); }
.auth .hero .slots div { background: rgb(255 255 255 / .06); } .auth .hero .slots div.acc { background: var(--sand); color: var(--ink); }
.auth .hero .tag { margin-top: 24px; font-family: "Manrope"; font-size: 12px; letter-spacing: .32em; color: var(--sand); }
.auth .hero .mark { position: absolute; right: 64px; bottom: 56px; opacity: .9; }
.hero-next { background: var(--ink); } .hero-next .f { color: var(--sand); }
.btn-success { background: var(--ink); } .btn-success:hover { background: var(--ink-2); filter: none; }
.bar > i { background: var(--ink); } .bar > i.warn { background: var(--sand); }
.wk-head .n.today, .month-g .n.today { background: var(--ink); }
.copy { border-color: var(--brand-100); background: var(--brand-50); }
@media (min-width:1024px){ #logo-dark { display:none; } }
