/* Ricochet : feuille de style unique, sans outil de build.
   Mise en page : barre latérale fixe + zone de travail ; cartes réservées aux objets manipulables. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --canvas: #F3F4F7;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --sunken: #EDEFF3;
  --ink: #15171F;
  --ink-2: #3D4250;
  --muted: #6B7183;
  --faint: #9AA0B0;
  --line: #E3E6EC;
  --line-strong: #CFD3DC;
  --accent: #FF5A36;
  --accent-ink: #D93E1C;
  --accent-soft: #FFEDE7;
  --primary: #15171F;
  --primary-ink: #FFFFFF;
  --ok: #138A55;     --ok-soft: #E2F5EB;
  --warn: #A86300;   --warn-soft: #FFF2D9;
  --ko: #C8321F;     --ko-soft: #FDE7E3;
  --info: #2F5BD3;   --info-soft: #E6EDFD;
  --violet: #6B4FD8; --violet-soft: #EEEAFC;
  --shadow-sm: 0 1px 2px rgba(21, 23, 31, .06);
  --shadow: 0 1px 2px rgba(21, 23, 31, .05), 0 4px 16px rgba(21, 23, 31, .06);
  --shadow-lg: 0 12px 40px rgba(21, 23, 31, .16);
  --radius: 10px;
  --radius-sm: 7px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --sidebar: 252px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0E1016; --surface: #161922; --surface-2: #1B1F2A; --sunken: #11141B;
    --ink: #EEF0F5; --ink-2: #C9CDD8; --muted: #9298A9; --faint: #6A7083;
    --line: #262B37; --line-strong: #353B4A;
    --accent: #FF6E4D; --accent-ink: #FF8A6E; --accent-soft: #3A1E17;
    --primary: #EEF0F5; --primary-ink: #11131A;
    --ok: #4CC98C; --ok-soft: #13301F; --warn: #F0B54C; --warn-soft: #34270F;
    --ko: #FF8573; --ko-soft: #3A1914; --info: #7FA3FF; --info-soft: #18244A;
    --violet: #A992FF; --violet-soft: #251D45;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.3); --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0E1016; --surface: #161922; --surface-2: #1B1F2A; --sunken: #11141B;
  --ink: #EEF0F5; --ink-2: #C9CDD8; --muted: #9298A9; --faint: #6A7083;
  --line: #262B37; --line-strong: #353B4A;
  --accent: #FF6E4D; --accent-ink: #FF8A6E; --accent-soft: #3A1E17;
  --primary: #EEF0F5; --primary-ink: #11131A;
  --ok: #4CC98C; --ok-soft: #13301F; --warn: #F0B54C; --warn-soft: #34270F;
  --ko: #FF8573; --ko-soft: #3A1914; --info: #7FA3FF; --info-soft: #18244A;
  --violet: #A992FF; --violet-soft: #251D45;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.3); --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 6px; font-family: var(--font-display); font-weight: 750; font-size: 21px; letter-spacing: -0.03em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.logo-mark svg { width: 18px; height: 18px; }
.brand-switch { position: relative; }
.brand-switch select { appearance: none; width: 100%; padding: 9px 28px 9px 42px; font-size: 13px; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-weight: 600; cursor: pointer; }
.brand-switch .dot { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 7px; pointer-events: none; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.brand-switch .chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; transition: background .12s, color .12s; }
.nav a svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav a.active svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 11.5px; font-weight: 600; background: var(--sunken); color: var(--muted); padding: 1px 7px; border-radius: 99px; }
.nav a.active .count { background: var(--surface); color: var(--accent-ink); }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.trial { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 12px; display: grid; gap: 6px; font-size: 13px; }
.trial b { font-family: var(--font-display); }
.trial .bar { height: 5px; background: var(--sunken); border-radius: 9px; overflow: hidden; }
.trial .bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); }
.me .who { min-width: 0; line-height: 1.25; }
.me .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 12px; color: var(--muted); }
.me form { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 22px; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar-title { min-width: 0; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-toggle, .btn.menu-toggle { display: none; }
.content { padding: 8px 32px 56px; display: grid; gap: 24px; align-content: start; }

/* ---------- Boutons et champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s, box-shadow .12s; background: none; }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 86%, var(--accent)); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(255, 90, 54, .35); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-subtle { color: var(--ink-2); }
.btn-subtle:hover { background: var(--sunken); }
.btn-danger { color: var(--ko); }
.btn-danger:hover { background: var(--ko-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 11px; }
.btn-icon { width: 34px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7183' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 12px; align-content: start; }
.stack-lg { display: grid; gap: 20px; align-content: start; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-head h2 { font-size: 15.5px; }
.card-head .link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.card-head .link svg { width: 14px; height: 14px; }
.card-head .link:hover { color: var(--accent-ink); }
.card-body { padding: 16px 18px 18px; }
.card-pad { padding: 18px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-title { display: flex; align-items: baseline; gap: 10px; }
.section-title h2 { font-size: 16px; }

/* ---------- Badges, puces ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--sunken); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.tone-neutral { background: var(--sunken); color: var(--muted); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-accent { background: var(--violet-soft); color: var(--violet); }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-ko { background: var(--ko-soft); color: var(--ko); }
.net { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: -0.02em; flex-shrink: 0; }
.net svg { width: 12px; height: 12px; }
.net-lg { width: 30px; height: 30px; border-radius: 9px; }
.net-lg svg { width: 17px; height: 17px; }
.nets { display: inline-flex; }
.nets .net { box-shadow: 0 0 0 2px var(--surface); }
.nets .net + .net { margin-left: -5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-weight: 700; font-size: 12.5px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 24px; height: 24px; font-size: 10.5px; }
.tag { display: inline-flex; padding: 1px 7px; border-radius: 5px; background: var(--sunken); color: var(--ink-2); font-size: 12px; }
.demo-flag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 600; }

/* ---------- Alertes ---------- */
.flashes { display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius); font-weight: 500; border: 1px solid transparent; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--ko-soft); color: var(--ko); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert .grow { flex: 1; min-width: 0; color: var(--ink); }
.lock { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: linear-gradient(100deg, var(--violet-soft), var(--accent-soft)); }
.lock svg { width: 22px; height: 22px; color: var(--violet); flex-shrink: 0; }
.lock .grow { flex: 1; }

/* ---------- Tableau de bord ---------- */
.greeting { display: grid; gap: 4px; }
.greeting h1 { font-size: 28px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: grid; gap: 6px; }
.kpi .k-label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .k-foot { font-size: 12px; color: var(--muted); }
.info-dot { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--faint); font-size: 10px; font-weight: 700; cursor: help; position: relative; }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week a { display: grid; gap: 4px; justify-items: center; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.week a:hover { border-color: var(--accent); }
.week .d { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.week .n { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.week .bars { display: flex; gap: 2px; height: 5px; }
.week .bars i { width: 5px; border-radius: 3px; background: var(--accent); }
.week a.today { background: var(--accent-soft); border-color: transparent; }
.list { display: grid; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); min-width: 0; }
.list-item:first-child { border-top: 0; }
a.list-item:hover { background: var(--surface-2); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--sunken); flex-shrink: 0; display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.thumb svg { width: 18px; height: 18px; }
.thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.when { text-align: right; flex-shrink: 0; font-size: 12.5px; }
.when b { display: block; font-size: 13px; color: var(--ink); }
.accounts-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }

/* ---------- Vide ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 20px; color: var(--muted); }
.empty .ill { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty .ill svg { width: 26px; height: 26px; }
.empty h3 { color: var(--ink); font-size: 16px; }
.empty p { max-width: 42ch; }

/* ---------- Kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.col { background: var(--sunken); border-radius: 14px; padding: 10px; display: grid; gap: 10px; align-content: start; min-height: 240px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px; min-height: 38px; }
.col-head h3 { font-size: 14px; }
.col-head .n { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: 99px; padding: 0 8px; }
.col-head .add { margin-left: auto; }
.col-list { display: grid; gap: 8px; min-height: 60px; border-radius: 10px; transition: background .12s; }
.col-list.over { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; display: grid; gap: 9px; box-shadow: var(--shadow-sm); cursor: grab; transition: box-shadow .12s, transform .12s, border-color .12s; }
.kcard:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.kcard.dragging { opacity: .45; transform: rotate(1.5deg); }
.kcard .k-img { margin: -11px -12px 0; height: 110px; border-radius: 11px 11px 0 0; overflow: hidden; background: var(--sunken); }
.kcard .k-img img, .kcard .k-img video { width: 100%; height: 100%; object-fit: cover; }
.kcard .k-title { font-weight: 650; line-height: 1.35; }
.kcard .k-text { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .k-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.kcard .k-foot .grow { flex: 1; }
.kcard .k-date { display: inline-flex; align-items: center; gap: 4px; }
.kcard .k-date svg { width: 13px; height: 13px; }

/* ---------- Calendrier ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-toolbar h2 { font-size: 20px; min-width: 200px; text-transform: capitalize; }
.segmented { display: inline-flex; background: var(--sunken); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented a { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.segmented a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.cal .dow { padding: 9px 10px; font-size: 12px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); text-transform: capitalize; }
.cal .day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background .12s; }
.cal.week-mode .day { min-height: 420px; }
.cal .day.out { background: var(--surface-2); }
.cal .day.out .num { color: var(--faint); }
.cal .day.over { background: var(--accent-soft); }
.cal .day-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.cal .num { font-size: 12.5px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal .today .num { background: var(--accent); color: #fff; }
.cal .add-day { opacity: 0; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.cal .add-day svg { width: 14px; height: 14px; }
.cal .day:hover .add-day { opacity: 1; }
.cal .add-day:hover { background: var(--sunken); color: var(--ink); }
.cal-post { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); font-size: 12px; line-height: 1.3; cursor: grab; min-width: 0; }
.cal-post:hover { border-color: var(--line-strong); border-left-color: var(--c, var(--accent)); background: var(--surface); }
.cal-post .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cal-post .h { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-post.st-publie { opacity: .72; cursor: default; }
.cal-post.st-echec { border-left-color: var(--ko); background: var(--ko-soft); }
.cal:not(.week-mode) .cal-post { flex-wrap: wrap; row-gap: 2px; }
.cal:not(.week-mode) .cal-post .t { order: 3; flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal:not(.week-mode) .cal-post .nets { margin-left: auto; }
.cal:not(.week-mode) .cal-post .nets .net { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; }
.cal:not(.week-mode) .cal-post .nets .net svg { width: 10px; height: 10px; }
.cal-more { font-size: 12px; color: var(--muted); padding: 0 4px; }

/* ---------- Éditeur de publication ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.editor-main { display: grid; gap: 18px; min-width: 0; }
.editor-side { position: sticky; top: 76px; display: grid; gap: 16px; }
.acc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-choice { position: relative; }
.acc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.acc-choice label { display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13.5px; transition: border-color .12s, background .12s; }
.acc-choice label .h { font-weight: 500; color: var(--muted); font-size: 12px; }
.acc-choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.acc-choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.composer { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.composer textarea { width: 100%; border: 0; outline: none; resize: vertical; min-height: 170px; padding: 14px 16px; background: transparent; line-height: 1.6; font-size: 15px; }
.composer-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.composer-bar .counters { margin-left: auto; display: flex; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--ko); font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 12px; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 18px; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .12s, background .12s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.dropzone svg { width: 22px; height: 22px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); cursor: grab; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 7px; border: 0; background: rgba(15, 17, 24, .7); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.media-item:hover .rm, .media-item:focus-within .rm { opacity: 1; }
.media-item .rm svg { width: 13px; height: 13px; }
.media-item .badge-video { position: absolute; left: 5px; bottom: 5px; background: rgba(15, 17, 24, .7); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px; }
.media-item.uploading { display: grid; place-items: center; cursor: default; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.status-pick input { position: absolute; opacity: 0; }
.status-pick label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600; }
.status-pick input:checked + label { border-color: var(--ink); background: var(--surface-2); }
.status-pick .sw { width: 8px; height: 8px; border-radius: 50%; }
.target-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.target-row:first-child { border-top: 0; padding-top: 0; }
.target-row .head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.target-row .head .grow { flex: 1; }
.target-error { font-size: 12.5px; color: var(--ko); background: var(--ko-soft); border-radius: 8px; padding: 6px 9px; }

/* Aperçu façon fil d'actualité */
.preview-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-switch button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 10px 4px 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.preview-switch button.on { border-color: var(--ink); color: var(--ink); }
.phone { border-radius: 26px; border: 1px solid var(--line); background: var(--canvas); padding: 10px; box-shadow: var(--shadow); }
.feed-post { background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.feed-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.feed-head .avatar { width: 34px; height: 34px; }
.feed-head b { font-size: 13.5px; display: block; line-height: 1.2; }
.feed-head span { font-size: 11.5px; color: var(--muted); }
.feed-text { padding: 0 12px 10px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.feed-text .more { color: var(--muted); }
.feed-text .hash { color: var(--info); }
.feed-media { background: var(--sunken); aspect-ratio: 1; display: grid; place-items: center; color: var(--faint); position: relative; }
.feed-media.wide { aspect-ratio: 1.91; }
.feed-media img, .feed-media video { width: 100%; height: 100%; object-fit: cover; }
.feed-media .count { position: absolute; top: 10px; right: 10px; background: rgba(15,17,24,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.feed-actions { display: flex; gap: 16px; padding: 10px 12px; color: var(--muted); border-top: 1px solid var(--line); }
.feed-actions svg { width: 19px; height: 19px; }
.ig .feed-text { padding-top: 10px; }
.ig .feed-actions { border-top: 0; padding-bottom: 0; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .post-cell { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.table .post-cell .thumb { width: 38px; height: 38px; }
.table .post-cell b { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-val { position: relative; cursor: help; border-bottom: 1px dotted var(--line-strong); }
.na { color: var(--faint); font-size: 12px; }

/* Infobulle « source du chiffre » */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 50; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 300px; white-space: pre-line; text-align: left; background: #15171F; color: #F3F4F7; font: 500 12px/1.45 var(--font-body); padding: 8px 10px; border-radius: 8px; box-shadow: var(--shadow-lg); pointer-events: none; }

/* ---------- Statistiques ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.net-bars { display: grid; gap: 12px; }
.net-bar { display: grid; gap: 6px; }
.net-bar .top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.net-bar .top .v { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.net-bar .track { height: 8px; background: var(--sunken); border-radius: 9px; overflow: hidden; }
.net-bar .track i { display: block; height: 100%; border-radius: 9px; }
.source-box { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.source-box b { font-family: var(--font-display); font-size: 14px; }
.defs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.def { padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; }
.def b { font-size: 13.5px; }

/* ---------- Charte ---------- */
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { display: grid; gap: 8px; width: 132px; }
.swatch .chip { height: 84px; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.swatch input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatch .hex { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.brand-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.brand-preview .bp-top { padding: 26px; display: grid; gap: 10px; }
.brand-preview .bp-top h3 { font-size: 26px; line-height: 1.1; }
.brand-preview .bp-btn { justify-self: start; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; }
.logo-box { width: 120px; height: 120px; border-radius: 16px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--faint); cursor: pointer; position: relative; }
.logo-box img { max-width: 80%; max-height: 80%; object-fit: contain; }
.logo-box > svg { width: 26px; height: 26px; }
.logo-box:hover { border-color: var(--accent); color: var(--accent-ink); }
.logo-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.net-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.net-toggle input { position: absolute; opacity: 0; }
.net-toggle label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; background: var(--surface); }
.net-toggle input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.net-toggle input:disabled + label { cursor: not-allowed; opacity: .55; background: var(--sunken); }
.for-who label { align-items: flex-start; padding: 12px 14px; }
.for-who label span { display: grid; gap: 3px; }
.for-who label b { font-weight: 600; font-size: 14.5px; }
.for-who label small { font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--muted); }
form:has(#for-self:checked) .brand-field { display: none; }
.net-toggle label .soon { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }

/* ---------- Comptes ---------- */
.providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.provider { padding: 18px; display: grid; gap: 12px; align-content: start; }
.provider .head { display: flex; align-items: center; gap: 12px; }
.provider .head .nets .net { width: 30px; height: 30px; border-radius: 9px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.acc-row:first-child { border-top: 0; }
.acc-row .grow { flex: 1; min-width: 0; }
.acc-row .name { font-weight: 600; }

/* ---------- Idées / veille ---------- */
.quick-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
.ideas { columns: 3 260px; column-gap: 14px; }
.idea { break-inside: avoid; margin-bottom: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.idea .t { font-weight: 650; font-size: 15px; line-height: 1.35; }
.idea .b { color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; }
.idea .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.idea .foot .grow { flex: 1; }
.insp { break-inside: avoid; margin-bottom: 14px; overflow: hidden; }
.insp .img { background: var(--sunken); }
.insp .img img { width: 100%; }
.insp .body { padding: 12px 14px; display: grid; gap: 6px; }
.insp .host { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.insp .host svg { width: 13px; height: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.chips a.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ---------- Offres ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { padding: 22px; display: grid; gap: 14px; align-content: start; position: relative; }
.plan.current { border: 2px solid var(--accent); }
.plan .price { font-family: var(--font-display); font-size: 36px; font-weight: 750; letter-spacing: -0.03em; }
.plan .price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.plan li.soon { color: var(--muted); }
.plan li.soon svg { color: var(--faint); }
.plan li em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.plan .ribbon { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meter { display: grid; gap: 6px; padding: 14px 16px; }
.meter .track { height: 6px; border-radius: 9px; background: var(--sunken); overflow: hidden; }
.meter .track i { display: block; height: 100%; background: var(--ink); border-radius: 9px; }
.option-card { padding: 20px 22px; }
.option-card .meter { padding: 0; }
.option-row { display: flex; gap: 14px; align-items: flex-start; }
.option-row .grow { flex: 1; min-width: 0; }
.option-row form { flex-shrink: 0; }
@media (max-width: 620px) { .option-row { flex-wrap: wrap; } .option-row form { width: 100%; } .option-row form .btn { width: 100%; } }
.option-card h2 { font-size: 18px; }

/* ---------- Équipe ---------- */
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.role-card { padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 3px; font-size: 13px; }
.role-card b { font-size: 13.5px; }
.timeline { display: grid; gap: 0; }
.timeline .ev { display: flex; gap: 10px; padding: 9px 18px; font-size: 13px; border-top: 1px solid var(--line); }
.timeline .ev:first-child { border-top: 0; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Discussion ---------- */
.comments { display: grid; gap: 12px; }
.comment { display: flex; gap: 10px; }
.comment .bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 9px 12px; font-size: 13.5px; flex: 1; min-width: 0; }
.comment .bubble .h { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.comment .bubble .h b { color: var(--ink); }
.comment.ext .bubble { background: var(--warn-soft); border-color: transparent; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .inner { width: 100%; max-width: 380px; display: grid; gap: 22px; }
.auth-form h1 { font-size: 30px; }
.auth-art { background: #15171F; color: #F3F4F7; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art .quote { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; position: relative; z-index: 1; }
.auth-art .quote em { font-style: normal; color: #FF7A5C; }
.auth-art .mock { position: relative; z-index: 1; display: grid; gap: 10px; max-width: 380px; }
.auth-art .mock .m { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.auth-art .mock .m .grow { flex: 1; }
.auth-art .mock .m small { color: #9AA0B0; display: block; }
.auth-art .glow { position: absolute; width: 520px; height: 520px; right: -160px; top: -140px; background: radial-gradient(closest-side, rgba(255, 90, 54, .45), transparent); filter: blur(10px); }
.auth-art .foot { font-size: 12.5px; color: #9AA0B0; position: relative; z-index: 1; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Validation publique ---------- */
.public { max-width: 980px; margin: 0 auto; padding: 32px 20px 64px; display: grid; gap: 22px; }
.public-head { display: flex; align-items: center; gap: 12px; }
.public-head .brand-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; overflow: hidden; }
.public-head .brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.public-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.decision { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.decision input { position: absolute; opacity: 0; }
.decision label { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 11px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 650; cursor: pointer; }
.decision input:checked + label.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.decision input:checked + label.ko { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.decision label svg { width: 17px; height: 17px; }

/* ---------- Toast et modale ---------- */
.toasts { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: 13.5px; animation: toast-in .2s ease-out; max-width: 360px; }
.toast.error { background: var(--ko); color: #fff; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.err-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.err-page .code { font-family: var(--font-display); font-size: 88px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }

/* ---------- Adaptation ---------- */
@media (max-width: 1180px) {
  .editor { grid-template-columns: minmax(0, 1fr) 330px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s, box-shadow .2s; box-shadow: none; padding-top: max(18px, env(safe-area-inset-top)); }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 12, 18, .4); z-index: 55; }
  .menu-toggle, .btn.menu-toggle { display: inline-flex; }
  .topbar { padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); top: env(safe-area-inset-top, 0px); }
  .content { padding: 8px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
  .dash, .editor, .public-grid { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .plans, .usage, .grid-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .k-value { font-size: 22px; }
  .when .muted { display: none; }
  .cal .day { min-height: 82px; padding: 3px; }
  .cal-post .h { display: none; }
  .cal .dow { padding: 6px 4px; font-size: 11px; }
  .topbar h1 { font-size: 19px; }
  .topbar .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .cal:not(.week-mode) .cal-post { padding: 3px; justify-content: center; border-left-width: 3px; }
  .cal:not(.week-mode) .cal-post .t { display: none; }
  .cal:not(.week-mode) .cal-post .nets { margin: 0; }
  .topbar .actions .btn span { display: none; }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Publication TikTok : écran imposé par TikTok (audit Direct Post) */
.tt-panel { margin-top: 14px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 14px; background: var(--surface); }
.tt-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tt-head .spinner { width: 16px; height: 16px; border-width: 2px; }
.tt-checks { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.tt-checks label, .tt-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.tt-checks label.off { opacity: .45; cursor: not-allowed; }
.tt-check input, .tt-checks input, .switch-row input { margin-top: 3px; accent-color: var(--accent); }
.tt-disclose { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.switch-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.tt-disclose-opts { display: grid; gap: 8px; padding-left: 24px; }
.tt-consent { color: var(--muted); margin: 0; }
.tt-consent a { color: var(--accent-ink, var(--accent)); text-decoration: underline; }
.tt-panel select option:disabled { color: var(--faint); }
