:root {
  --espresso: #16100B; --cacao: #22170F; --chocolat: #2E1F14; --bronze: #5A3A1B;
  --mordore: #996515; --mordore-d: #7A4F12; --or: #C9A063; --champagne: #F0D6AB;
  --creme: #F6EFE5; --lin: #EFE4D3; --ivoire: #FBF7F1; --card: #FFFFFF;
  --ink: #2A1A0F; --ink-2: #5B4330; --muted: #8A7560; --line: #E7D9C4; --line-2: #F0E6D8;
  --ok: #3E7A4A; --ok-bg: #E8F1E6; --warn: #A66A12; --warn-bg: #FBF0DC; --bad: #A33A2A; --bad-bg: #F8E6E1; --info-bg: #F3ECE1;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --r: 16px; --r-s: 10px; --shadow: 0 1px 2px rgba(42,26,15,.05), 0 8px 24px -12px rgba(42,26,15,.18);
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--creme); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--mordore); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--espresso); margin: 0; letter-spacing: -.005em; }
h1 { font-size: 38px; line-height: 1.05; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mordore); font-weight: 500; }
.gold { color: var(--mordore); }
em.g { font-family: var(--serif); font-style: italic; color: var(--mordore); }

/* ---------- structure */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--espresso); color: var(--champagne); display: flex; flex-direction: column; padding: 26px 16px 18px; overflow-y: auto;
  background-image: radial-gradient(circle at 20% 0%, rgba(153,101,21,.35), transparent 55%); }
.brand { padding: 0 10px 26px; }
.brand .sig { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--or); display: flex; align-items: center; gap: 8px; }
.brand .sig i { flex: 0 0 18px; height: 1px; background: var(--or); opacity: .7; }
.brand .nm { font-family: var(--serif); font-size: 27px; color: #F6EFE5; line-height: 1.05; margin-top: 8px; }
.brand .nm em { color: var(--or); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #CDB89C; text-decoration: none; font-size: 14.5px; transition: background .2s, color .2s; position: relative; }
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(240,214,171,.07); color: #F2E5D5; }
.nav a.on { background: linear-gradient(90deg, rgba(201,160,99,.22), rgba(201,160,99,.06)); color: #F6EFE5; }
.nav a.on::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--or); }
.nav .sep { height: 1px; background: rgba(240,214,171,.12); margin: 12px 10px; }
.nav .badge { margin-left: auto; background: var(--or); color: var(--espresso); font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; }
.side .foot { margin-top: auto; padding: 18px 10px 0; font-size: 12.5px; color: #9C8670; }
.side .foot a { color: #CDB89C; text-decoration: none; }
.side .foot .me { color: #F2E5D5; }
.main { min-width: 0; padding: 34px clamp(16px, 3.4vw, 48px) 80px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.top .t .eyebrow { margin-bottom: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- éléments */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s, transform .1s; }
.btn:hover { border-color: var(--or); }
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--mordore); border-color: var(--mordore); color: #fff; }
.btn.p:hover { background: var(--mordore-d); }
.btn.d { background: var(--espresso); border-color: var(--espresso); color: var(--champagne); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mordore); padding-left: 8px; padding-right: 8px; }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card > h3, .card .ch { margin-bottom: 14px; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kpi .v { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--espresso); margin: 10px 0 6px; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi.dark { background: var(--espresso); border-color: var(--espresso); color: var(--champagne); background-image: radial-gradient(circle at 100% 0%, rgba(153,101,21,.45), transparent 60%); }
.kpi.dark .v { color: #F6EFE5; }
.kpi.dark .l, .kpi.dark .eyebrow { color: var(--or); }
.bar { height: 6px; border-radius: 999px; background: rgba(201,160,99,.18); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mordore), var(--or)); border-radius: inherit; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--info-bg); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.gold { background: #F6EBD8; color: var(--mordore-d); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }

/* listes */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--line-2); cursor: pointer; border-radius: 10px; transition: background .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--ivoire); }
.row .when { width: 72px; flex: none; text-align: center; }
.row .when b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; color: var(--espresso); }
.row .when span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.row .what { flex: 1; min-width: 0; }
.row .what b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .what span { font-size: 13px; color: var(--muted); }
.row .end { display: flex; align-items: center; gap: 8px; flex: none; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--ivoire); }
.r { text-align: right; }
.scroll-x { overflow-x: auto; }

/* formulaires */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
label.f small { font-weight: 400; color: var(--muted); }
.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line); background: var(--ivoire); border-radius: var(--r-s); padding: 10px 12px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.in:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(201,160,99,.22); background: #fff; }
textarea.in { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--mordore); }
.seg { display: inline-flex; background: var(--lin); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--espresso); box-shadow: 0 1px 3px rgba(42,26,15,.12); }
.search { position: relative; }
.search input { padding-left: 38px; border-radius: 999px; background: #fff; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }

/* tiroir et fenêtre */
.veil { position: fixed; inset: 0; background: rgba(22,16,11,.42); backdrop-filter: blur(3px); z-index: 50; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--creme); z-index: 51; display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); animation: slide .28s cubic-bezier(.16,1,.3,1); }
.drawer .dh { padding: 22px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--ivoire); }
.drawer .db { padding: 20px 24px 40px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.drawer .df { padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ivoire); display: flex; gap: 8px; flex-wrap: wrap; }
.x { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 50%; color: var(--ink-2); }
.x:hover { background: var(--lin); }
.x svg { width: 20px; height: 20px; display: block; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 24px)); max-height: calc(100% - 32px); background: var(--creme); z-index: 51; border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; animation: pop .22s cubic-bezier(.16,1,.3,1); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.modal.wide { width: min(760px, calc(100% - 24px)); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -46%); opacity: 0; } }
.info { background: var(--ivoire); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.info dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.note { background: #F6EBD8; border: 1px solid #EAD7B5; color: var(--bronze); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--espresso); color: var(--champagne); padding: 11px 20px; border-radius: 999px; z-index: 90; font-size: 14px; box-shadow: var(--shadow); animation: pop2 .25s; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes pop2 { from { transform: translate(-50%, 10px); opacity: 0; } }

/* agenda semaine */
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.week .hd { position: sticky; top: 0; background: var(--ivoire); border-bottom: 1px solid var(--line); padding: 10px 4px; text-align: center; font-size: 12px; color: var(--muted); z-index: 2; }
.week .hd b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--espresso); line-height: 1.1; }
.week .hd.today b { color: #fff; background: var(--mordore); border-radius: 50%; width: 34px; height: 34px; line-height: 34px; margin: 2px auto 0; font-size: 19px; }
.week .hours { position: relative; }
.week .hours div { height: 52px; font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.week .col { position: relative; border-left: 1px solid var(--line-2); background-image: repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 52px); cursor: copy; }
.week .col.closed { background-color: #F7F1E8; }
.week .col .open { position: absolute; left: 0; right: 0; background: rgba(201,160,99,.07); pointer-events: none; }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 9px; padding: 5px 7px; font-size: 12px; line-height: 1.25; overflow: hidden; cursor: pointer; color: #fff; box-shadow: 0 2px 6px -2px rgba(0,0,0,.25); border-left: 3px solid rgba(255,255,255,.55); transition: transform .1s; }
.ev:hover { transform: scale(1.015); z-index: 3; }
.ev b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.bloc { background: repeating-linear-gradient(135deg, #E9DFD0 0 6px, #F1E9DD 6px 12px) !important; color: var(--ink-2); border-left-color: var(--muted); box-shadow: none; }
.ev.annule { opacity: .45; text-decoration: line-through; }
.ev.honore { filter: saturate(.55); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 4; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.wk-nav { display: flex; align-items: center; gap: 8px; }
.wk-nav .lbl { font-family: var(--serif); font-size: 22px; min-width: 200px; text-align: center; }

/* graphiques */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding-top: 10px; }
.chart .c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .c .b { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--or), var(--mordore)); position: relative; min-height: 3px; }
.chart .c .b.exp { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(201,160,99,.22); border: 1px dashed var(--or); }
.chart .c .stack { position: relative; width: 100%; max-width: 46px; display: flex; align-items: flex-end; height: 100%; }
.chart .c .stack .b { position: relative; z-index: 1; width: 100%; }
.chart .c span { font-size: 11.5px; color: var(--muted); }
.chart .c em { font-style: normal; font-size: 11.5px; color: var(--ink-2); }
.hbar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.hbar .tr { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; background: var(--mordore); border-radius: inherit; }

/* vidéos */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.vid { cursor: pointer; border-radius: 16px; overflow: hidden; background: var(--espresso); position: relative; aspect-ratio: 9 / 16; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.vid:hover { transform: translateY(-4px); }
.vid img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.vid .ov { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgba(22,16,11,.92), transparent); color: #F6EFE5; }
.vid .ov b { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.15; display: block; }
.vid .ov span { font-size: 11.5px; color: var(--or); }
.vid .st { position: absolute; top: 10px; left: 10px; }
.vid .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.vid:hover .play { opacity: 1; }
.vid .play i { width: 56px; height: 56px; border-radius: 50%; background: rgba(246,239,229,.92); display: grid; place-items: center; }
.vid .play svg { width: 22px; height: 22px; color: var(--espresso); margin-left: 3px; }
.vplayer { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 22px; padding: 22px; overflow-y: auto; }
.vplayer video { width: 100%; aspect-ratio: 9/16; border-radius: 14px; background: #000; display: block; }

/* calendrier mini */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.cal .dn { color: var(--muted); font-size: 11px; padding: 4px 0; text-transform: uppercase; }
.cal button { border: 0; background: transparent; border-radius: 10px; padding: 8px 0; cursor: pointer; }
.cal button.av { background: #F6EBD8; color: var(--mordore-d); font-weight: 600; }
.cal button.on { background: var(--mordore); color: #fff; }
.cal button:disabled { color: #CBBBA7; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slots button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 0; cursor: pointer; }
.slots button.on { background: var(--mordore); border-color: var(--mordore); color: #fff; }

/* connexion */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--espresso); color: var(--champagne); padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(circle at 80% 10%, rgba(153,101,21,.65), transparent 55%), radial-gradient(circle at 0% 100%, rgba(201,160,99,.18), transparent 50%); }
.login .art h1 { color: #F6EFE5; font-size: clamp(40px, 5vw, 68px); font-weight: 400; }
.login .art h1 em { color: var(--or); }
.login .fm { display: grid; place-items: center; padding: 40px 20px; }
.login .fm form { width: min(380px, 100%); }

/* téléphone */
.tabbar { display: none; }
.mtop { display: none; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--espresso); color: var(--champagne); position: sticky; top: 0; z-index: 20; }
  .mtop .nm { font-family: var(--serif); font-size: 21px; color: #F6EFE5; }
  .mtop .nm em { color: var(--or); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: rgba(22,16,11,.96); backdrop-filter: blur(10px); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 30; justify-content: space-around; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9C8670; font-size: 10.5px; text-decoration: none; padding: 4px 8px; border-radius: 10px; flex: 1; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--or); }
  h1 { font-size: 30px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi .v { font-size: 30px; }
  .card { padding: 16px; }
  .form .two, .form .three { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { padding: 36px 24px; min-height: 220px; }
  .vids { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vplayer { grid-template-columns: 1fr; }
  .vplayer video { max-height: 62vh; width: auto; margin: 0 auto; }
  .hide-m { display: none !important; }
  .wk-nav .lbl { min-width: 0; font-size: 18px; }
  .hbar { grid-template-columns: 100px 1fr 28px; }
}
.mmenu { position: fixed; inset: auto 0 0 0; background: var(--espresso); border-radius: 22px 22px 0 0; padding: 16px 12px calc(20px + env(safe-area-inset-bottom)); z-index: 52; animation: up .25s cubic-bezier(.16,1,.3,1); }
.mmenu .nav a { font-size: 16px; padding: 13px 14px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.cap::first-letter { text-transform: uppercase; }
.demo-bar { background: linear-gradient(90deg, #F6EBD8, #FBF4E8); border: 1px solid #EAD7B5; color: var(--bronze); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; margin-bottom: 22px; display: inline-block; }
.demo-bar b { color: var(--mordore-d); font-weight: 600; }

/* ---------- commentaires horodatés sur les aperçus */
.vcol { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cm-track { position: relative; height: 16px; margin: 0 4px; border-radius: 8px; background: var(--line-2); }
.cm-track button { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--card); background: var(--mordore); padding: 0; cursor: pointer; transition: transform .15s cubic-bezier(.16,1,.3,1); }
.cm-track button:hover, .cm-track button:focus-visible { transform: scale(1.25); outline: none; }
.cm-track button.done { background: var(--muted); opacity: .6; }
.cm-box { display: grid; gap: 10px; background: var(--ivoire); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fix-box { border-top: 1px solid var(--line); padding-top: 14px; }
.fix-box .btn[disabled] { opacity: .45; cursor: default; }
.cm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-at { font-size: 14px; color: var(--ink-2); }
.cm-at b { font-weight: 500; color: var(--mordore-d); font-variant-numeric: tabular-nums; }
.cm-gen { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.cm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cm-list li.done { opacity: .55; }
.cm-list li.cm-empty { display: block; border-style: dashed; background: transparent; }
.cm-t { font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--mordore-d); background: #F6EBD8; border: 0; border-radius: 8px; padding: 6px 0; cursor: pointer; transition: background .15s; }
.cm-t:hover:not(:disabled) { background: var(--champagne); }
.cm-t:disabled { cursor: default; color: var(--muted); background: var(--info-bg); font-size: 11.5px; }
.cm-meta { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.cm-txt { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-act { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.cm-act label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cm-act .btn { padding: 2px 6px; font-size: 13px; }
.cm-todo { margin-bottom: 20px; }
.cm-todo .cm-list li { background: var(--ivoire); }
@media (max-width: 860px) { .vcol { width: fit-content; max-width: 100%; margin: 0 auto; } }

/* scripts : tableau Kanban */
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.kcol { background: var(--lin); border-radius: var(--r); padding: 12px 10px 10px; min-height: 180px; scroll-snap-align: start; transition: background .15s, box-shadow .15s; }
.kcol.over { background: #EADCC6; box-shadow: inset 0 0 0 1px var(--or); }
.kh { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.kh b { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--espresso); }
.kh span { font-size: 12.5px; color: var(--muted); }
.khint { font-size: 12px; color: var(--muted); margin: 2px 4px 10px; }
.klist { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(42,26,15,.05); transition: border-color .15s, transform .1s; }
.kc:hover { border-color: var(--or); }
.kc.drag { opacity: .45; }
.kc b { font-weight: 500; font-size: 14.5px; line-height: 1.35; display: block; color: var(--ink); }
.kc p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ktag { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--mordore-d); background: #F6EBD8; border-radius: 999px; padding: 1px 8px; }
.ksteps { display: flex; gap: 4px; margin-top: 9px; }
.ksteps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.ksteps i.on { background: var(--mordore); }
.kst { display: block; font-size: 11.5px; color: var(--mordore-d); margin-top: 5px; }
.kadd { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.kadd:hover { background: rgba(255,255,255,.55); color: var(--ink-2); }
.kadd svg { width: 15px; height: 15px; }
.ktitle { width: 100%; border: 0; background: transparent; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--espresso); padding: 2px 0; margin-top: 4px; }
.ktitle:focus { outline: none; box-shadow: 0 1px 0 var(--or); }
.kbody { font-size: 15.5px; line-height: 1.65; resize: none; overflow: hidden; }
.two-f { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .kb { grid-auto-columns: 82%; margin: 0 calc(-1 * clamp(16px, 3.4vw, 48px)); padding: 0 clamp(16px, 3.4vw, 48px) 12px; } .two-f { grid-template-columns: 1fr; } }
.drawer.wide { width: min(680px, 100%); }

/* calendrier de contenu */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.cal-hd { background: var(--ivoire); border-bottom: 1px solid var(--line); padding: 9px 8px; font-size: 12px; color: var(--muted); text-align: left; }
.cal-d { min-height: 112px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: copy; min-width: 0; transition: background .15s; }
.cal-d:nth-child(7n + 1) { border-left: 0; }
.cal-d:nth-child(-n + 14) { border-top: 0; }
.cal-d .n { font-size: 13px; color: var(--ink-2); padding: 2px 4px; display: flex; align-items: center; gap: 6px; }
.cal-d .n i { font-style: normal; font-size: 10.5px; color: var(--mordore-d); background: #F6EBD8; border-radius: 999px; padding: 0 7px; }
.cal-d.out { background: #FCFAF6; }
.cal-d.out .n { color: #C4B5A2; }
.cal-d.pre { background: repeating-linear-gradient(135deg, #FBF7F1 0 6px, #F7F1E8 6px 12px); }
.cal-d.today .n { color: #fff; background: var(--mordore); border-radius: 999px; width: fit-content; padding: 2px 8px; }
.cal-d:hover, .cl-day.over, .cal-d.over { background: #FBF3E6; }
.pc { background: var(--ivoire); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 0 8px 8px 0; padding: 4px 7px; font-size: 12px; line-height: 1.3; cursor: pointer; min-width: 0; }
.pc.pret { border-left-color: var(--or); background: #FBF3E6; }
.pc.publie { border-left-color: var(--ok); background: var(--ok-bg); }
.pc.drag { opacity: .45; }
.pc em { font-style: normal; color: var(--muted); margin-right: 4px; }
.pc b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc span { font-size: 11px; color: var(--muted); }
.cal-todo { position: sticky; top: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cal-todo .kc { cursor: grab; }
.cal-list { display: flex; flex-direction: column; gap: 10px; }
.cl-day { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.cl-day.today { border-color: var(--or); }
.cl-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.f-l { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 400; }
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } .cal-todo { position: static; } }
