/* 5e Sens OS — direction : sombre éditorial, palette Obsidian Chrome */
:root {
  --bg: #0A0A0A;
  --bg-2: #111213;
  --panel: #151617;
  --panel-2: #1A1A1A;
  --graphite: #222526;
  --graphite-2: #353A3E;
  --line: rgba(229, 228, 226, .09);
  --line-2: rgba(229, 228, 226, .18);
  --text: #E5E4E2;
  --muted: #8C9196;
  --dim: #5B6065;
  --slate: #536878;
  --ash: #BFBFBF;

  --st-draft: #6F757A;
  --st-pending: #E3A04A;
  --st-ok: #58C27D;
  --st-ko: #E2574C;
  --st-live: #8FA3B3;

  --chart-a: #4FD47F;
  --chart-b: #3E7BFA;

  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Grotesque néo-suisse, dans l'esprit de Neue Montreal (Geist, licence libre) ; Neue Montreal pourra la remplacer avec sa licence */
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
  --radius: 14px;
  --pill: 999px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-weight: 350; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01" on; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, video { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: var(--text); }
::selection { background: var(--slate); color: #fff; }

/* Typo utilitaire */
.mono, .label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 400; }
.label { color: var(--muted); }
.dim { color: var(--dim); }
.muted { color: var(--muted); }

/* Structure */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--side) 1fr; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 28px 22px;
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px;
  background: linear-gradient(180deg, #0d0e0f 0%, var(--bg) 60%);
}
.brand { font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 4px; }
.brand span { font-weight: 300; letter-spacing: .2em; font-size: 13px; font-family: var(--mono); }
.brand em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 1px 7px; margin-left: 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; padding: 11px 12px; border-radius: 10px; color: var(--muted); display: flex; gap: 14px; transition: background .2s, color .2s; }
.nav a i { font-style: normal; color: var(--dim); }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.nav a.on { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.user { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.user b, .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 11px; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.user small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: .02em; }
.demo-flag { font-family: var(--mono); text-transform: uppercase; font-size: 9.5px; letter-spacing: .08em; color: var(--st-pending); border: 1px solid rgba(227, 160, 74, .35); border-radius: var(--pill); padding: 5px 10px; align-self: flex-start; }
.view { min-width: 0; padding: 34px clamp(16px, 4vw, 56px) 80px; }
.tabbar { display: none; }

/* Éléments communs */
.pill { font-family: var(--mono); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 5px 11px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--ash); }
.pill.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.tag { font-family: var(--mono); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.tag::before { content: "["; color: var(--dim); margin-right: 3px; }
.tag::after { content: "]"; color: var(--dim); margin-left: 3px; }
.num { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 1px 8px; color: var(--muted); }
.btn { font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: .07em; border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 6px; transition: background .2s, border-color .2s, color .2s; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: #fff; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.pillbtn { border-radius: var(--pill); }
.bracket { font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.bracket:hover { color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.st-draft { background: var(--st-draft); }
.st-pending { background: var(--st-pending); }
.st-approved { background: var(--st-ok); }
.st-rejected { background: var(--st-ko); }
.st-scheduled { background: var(--st-live); box-shadow: 0 0 0 2px rgba(143, 163, 179, .25); }
.st-published { background: var(--text); }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 3px; gap: 2px; background: var(--bg-2); }
.seg button { font-family: var(--mono); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; padding: 7px 14px; border-radius: var(--pill); color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: var(--text); color: var(--bg); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* En-têtes de page */
.page-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.ghost-word { position: absolute; left: -6px; top: -48px; font-family: var(--sans); font-weight: 200; font-size: clamp(90px, 15vw, 210px); letter-spacing: -.04em; color: rgba(229, 228, 226, .035); pointer-events: none; line-height: 1; white-space: nowrap; user-select: none; }
.h-title { position: relative; font-weight: 300; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; margin: 0; line-height: 1; }
.h-sub { position: relative; margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ——— Tableau de bord ——— */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.today { display: flex; align-items: flex-end; gap: 22px; position: relative; }
.today .big { font-weight: 200; font-size: clamp(88px, 11vw, 150px); line-height: .8; letter-spacing: -.05em; }
.today .meta { padding-bottom: 6px; display: flex; flex-direction: column; gap: 8px; }
.today .meta strong { font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.todo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.group-h { display: flex; align-items: center; gap: 10px; padding: 26px 0 10px; }
.group-h .label { color: var(--text); }
.task { display: grid; grid-template-columns: 22px 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); transition: background .2s, opacity .3s; }
.task:hover { background: rgba(255, 255, 255, .015); }
.task .check { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.task .check:hover { border-color: var(--text); }
.task.done { opacity: .38; }
.task.done .check { background: var(--text); border-color: var(--text); }
.task.done .check::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px); }
.task.done .t-title { text-decoration: line-through; text-decoration-color: var(--dim); }
.task .idx { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.t-title { font-size: 15.5px; font-weight: 400; letter-spacing: -.005em; }
.t-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.t-right { display: flex; gap: 10px; align-items: center; }
.urgent-mark { width: 6px; height: 6px; background: var(--st-ko); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
.add-task { display: flex; gap: 10px; padding: 16px 0; }
.add-task input { flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 8px 0; outline: none; font-size: 15px; }
.add-task input::placeholder { color: var(--dim); }

.side-col { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 28px; }
.mini { padding: 20px; }
.mini-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.alert-row:first-of-type { border-top: 0; }
.alert-row b { font-weight: 500; }
.up-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.up-row img { width: 42px; height: 52px; object-fit: cover; border-radius: 4px; }
.up-row .when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; }
.kpi-inline { display: flex; gap: 22px; margin-bottom: 14px; }
.kpi-inline strong { display: block; font-weight: 300; font-size: 28px; letter-spacing: -.03em; }
.sync { font-family: var(--mono); font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding-top: 18px; }

/* ——— Clients ——— */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.client-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--panel); transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.client-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.client-card .cover { position: absolute; inset: 0; }
.client-card .cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.client-card:hover .cover img { transform: scale(1.04); }
.client-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, .15) 55%, rgba(10, 10, 10, .92) 100%); }
.cc-top, .cc-bottom { position: relative; padding: 20px; }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cc-name { font-weight: 300; font-size: 40px; letter-spacing: -.03em; line-height: 1; margin: 0 0 14px; }
.cc-services { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cc-services .pill { background: rgba(10, 10, 10, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cc-alerts { display: flex; flex-direction: column; gap: 7px; padding-top: 14px; border-top: 1px solid rgba(229, 228, 226, .16); }
.cc-alerts div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.new-client { border: 1px dashed var(--line-2); border-radius: 18px; min-height: 440px; display: grid; place-items: center; text-align: center; color: var(--muted); transition: border-color .3s, color .3s; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(229, 228, 226, .025) 79px 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(229, 228, 226, .025) 79px 80px); }
.new-client:hover { border-color: var(--text); color: var(--text); }
.new-client .plus { font-weight: 200; font-size: 64px; line-height: 1; }

/* ——— Fiche client ——— */
.client-head { display: grid; grid-template-columns: 120px 1fr auto; gap: 26px; align-items: end; margin-bottom: 26px; }
.client-head .thumb { width: 120px; height: 150px; border-radius: 10px; overflow: hidden; }
.client-head .thumb img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 10px; display: block; }
.crumb:hover { color: var(--text); }
.client-name { font-weight: 300; font-size: clamp(40px, 6vw, 76px); letter-spacing: -.04em; line-height: .9; margin: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs a { font-family: var(--mono); text-transform: uppercase; font-size: 11.5px; letter-spacing: .07em; padding: 14px 16px; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a i { font-style: normal; color: var(--dim); margin-right: 8px; }
.tabs a.on { color: var(--text); border-color: var(--text); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .left, .toolbar .right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.month-nav { display: flex; align-items: center; gap: 14px; }
.month-nav strong { font-weight: 300; font-size: 24px; letter-spacing: -.02em; min-width: 170px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.legend span { display: inline-flex; gap: 7px; align-items: center; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Calendrier — liste */
.cal-list { border-top: 1px solid var(--line); }
.day-row { display: grid; grid-template-columns: 1fr 150px; border-bottom: 1px solid var(--line); min-height: 104px; transition: background .25s; }
.day-row.today-row { background: var(--text); color: var(--bg); }
.day-row.today-row .day-name, .day-row.today-row .label { color: var(--bg); }
.day-row.past { opacity: .45; }
.day-left { padding: 14px 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.day-dots { display: flex; gap: 5px; }
.day-name { font-size: 15px; font-weight: 400; }
.day-num { font-weight: 200; font-size: 76px; letter-spacing: -.05em; line-height: 1; text-align: right; padding: 10px 6px 0; }
.day-posts { display: flex; gap: 10px; flex-wrap: wrap; }
.post-chip { display: flex; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text); text-align: left; transition: border-color .2s; }
.post-chip:hover { border-color: var(--text); }
.post-chip img { width: 34px; height: 42px; object-fit: cover; border-radius: 5px; }
.post-chip .pc-t { font-size: 13px; font-weight: 400; display: block; }
.post-chip .pc-m { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.day-row.today-row .post-chip { background: #fff; border-color: rgba(10, 10, 10, .15); color: var(--bg); }
.day-add { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.day-row:hover .day-add { opacity: 1; }

/* Calendrier — mois */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.cal-month .dow { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell { min-height: 132px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: background .2s; }
.cell:hover { background: rgba(255, 255, 255, .02); }
.cell.out { opacity: .25; }
.cell .c-num { font-weight: 200; font-size: 44px; letter-spacing: -.04em; line-height: .9; }
.cell.is-today .c-num { color: var(--bg); background: var(--text); border-radius: 8px; padding: 2px 8px 4px; align-self: flex-start; }
.cell .c-posts { display: flex; flex-direction: column; gap: 4px; }
.c-post { display: flex; gap: 6px; align-items: center; font-size: 11.5px; padding: 3px 4px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); text-align: left; width: 100%; color: var(--text); }
.c-post img { width: 20px; height: 25px; object-fit: cover; border-radius: 3px; }
.c-post span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Feed */
.feed-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.phone { max-width: 470px; margin: 0 auto; width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px; padding: 18px 0 0; box-shadow: var(--shadow); overflow: hidden; }
.ig-head { display: flex; gap: 18px; align-items: center; padding: 0 18px 16px; }
.ig-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--line-2); flex: none; }
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-stats { display: flex; gap: 18px; }
.ig-stats div { text-align: center; font-size: 12px; color: var(--muted); }
.ig-stats strong { display: block; font-weight: 500; font-size: 15px; color: var(--text); }
.ig-name { padding: 0 18px 14px; font-size: 13px; }
.ig-name b { font-weight: 600; display: block; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.feed-grid.reels { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); cursor: pointer; }
.reels .tile { aspect-ratio: 9 / 16; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile .badge { position: absolute; top: 6px; left: 6px; display: flex; gap: 5px; align-items: center; font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: var(--pill); background: rgba(10, 10, 10, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile .kind { position: absolute; top: 7px; right: 7px; font-size: 12px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.tile.proposed::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--st-pending); pointer-events: none; }
.tile.approved::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--st-ok); pointer-events: none; }
.tile.rejected .veil { position: absolute; inset: 0; background: rgba(226, 87, 76, .42); mix-blend-mode: normal; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; gap: 4px; }
.veil strong { font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.veil p { margin: 0; font-size: 11px; line-height: 1.3; }
.pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--st-ko); color: #fff; font-family: var(--mono); font-size: 9.5px; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(226, 87, 76, .35); }
.tile .actions { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 5px; }
.tile .actions button { flex: 1; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; padding: 7px 0; border-radius: var(--pill); background: rgba(10, 10, 10, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(229, 228, 226, .25); }
.tile .actions button.yes:hover { background: var(--st-ok); color: var(--bg); }
.tile .actions button.no:hover { background: var(--st-ko); }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tile .play span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: grid; place-items: center; background: rgba(10, 10, 10, .35); font-size: 11px; }
.feed-note { padding: 20px; }
.feed-note h4, .panel-h { margin: 0 0 14px; font-weight: 400; font-size: 17px; letter-spacing: -.01em; }
.feed-count { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.feed-count div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.feed-count strong { display: block; font-weight: 200; font-size: 34px; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.client-banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid rgba(227, 160, 74, .3); border-radius: 10px; color: var(--st-pending); margin-bottom: 16px; font-size: 13px; }

/* Contenu */
.content-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.shoot { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 58px 1fr; gap: 14px; }
.shoot:first-of-type { border-top: 0; }
.shoot .s-date { text-align: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 0; }
.shoot .s-date strong { display: block; font-weight: 200; font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.pipeline { display: flex; gap: 4px; margin-top: 10px; }
.pipeline span { flex: 1; height: 3px; border-radius: 2px; background: var(--graphite-2); }
.pipeline span.on { background: var(--text); }
.folders { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.folders button { font-family: var(--mono); text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 7px 13px; color: var(--muted); }
.folders button.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.g-item { position: relative; cursor: pointer; }
.g-item .g-img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--graphite); }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img { transform: scale(1.04); }
.g-item .g-name { font-family: var(--mono); font-size: 9.5px; color: var(--muted); margin-top: 7px; text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; }
.gallery.videos .g-img { aspect-ratio: 9 / 16; }

/* Ads */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 18px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; align-items: stretch; min-height: 132px; }
.kpi .k-label { font-size: 13px; color: var(--muted); }
.kpi .k-val { font-weight: 300; font-size: 30px; letter-spacing: -.03em; margin: 10px 0 4px; }
.kpi .k-delta { font-family: var(--mono); font-size: 11px; }
.up { color: var(--chart-a); }
.down { color: var(--st-ko); }
.kpi svg { width: 100%; height: 100%; background: rgba(255, 255, 255, .02); border-radius: 8px; border: 1px solid var(--line); }
.growth { padding: 22px; position: relative; }
.growth svg { width: 100%; height: auto; display: block; }
.growth .g-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.val-pill { display: inline-flex; gap: 8px; align-items: center; background: var(--graphite); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 12px; font-size: 13px; }
.campaigns { margin-top: 14px; }
.camp { display: grid; grid-template-columns: 1fr repeat(3, 110px) 90px; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.camp:first-child { border-top: 0; }
.camp .mono { color: var(--muted); }

/* Tiroir (éditeur de post) */
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer[hidden] { display: none; }
.sheet { width: min(980px, 100%); height: 100%; background: var(--bg); border-left: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); animation: slide .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet-media { background: #050505; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.sheet-media .stage { flex: 1; display: grid; place-items: center; padding: 26px; min-height: 0; }
.sheet-media .stage img, .sheet-media .stage video { max-height: 100%; max-width: 100%; border-radius: 6px; object-fit: contain; }
.stage .drop { width: 100%; height: 100%; border: 1px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; }
.sheet-form { overflow-y: auto; padding: 24px 26px 30px; display: flex; flex-direction: column; gap: 22px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .label { display: flex; justify-content: space-between; align-items: center; }
.input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 12px; outline: none; width: 100%; transition: border-color .2s; font-size: 14px; }
.input:focus { border-color: var(--text); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 6px 11px; color: var(--muted); transition: all .2s; }
.chip.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.chip.ai { border-style: dashed; }
.gen { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 5px 11px; color: var(--text); background: linear-gradient(120deg, rgba(79, 212, 127, .12), rgba(62, 123, 250, .12)); }
.gen:hover { border-color: var(--text); }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); margin-top: auto; }
.status-line { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.reject-note { border: 1px solid rgba(226, 87, 76, .4); background: rgba(226, 87, 76, .08); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.reject-note strong { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ko); display: block; margin-bottom: 6px; }

/* Modale */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 16px; }
.modal[hidden] { display: none; }
.dialog { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; animation: pop .3s cubic-bezier(.2, .7, .2, 1); }
.dialog.wide { width: min(820px, 100%); }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }
.dialog h3 { margin: 0; font-weight: 300; font-size: 28px; letter-spacing: -.02em; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; text-align: left; transition: all .2s; }
.choice button strong { display: block; font-weight: 400; font-size: 16px; margin-bottom: 4px; }
.choice button span { font-size: 12.5px; color: var(--muted); }
.choice button.on { border-color: var(--text); background: var(--panel); }
.annot { position: relative; cursor: crosshair; border-radius: 8px; overflow: hidden; max-width: 340px; margin: 0 auto; }
.annot img { width: 100%; }
.check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.check-row label { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 8px 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; color: var(--muted); }
.check-row input { display: none; }
.check-row label:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 18px; border-radius: var(--pill); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); }
.toast[hidden] { display: none; }

.empty { color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 30px 0; }

/* ——— Mobile ——— */
@media (max-width: 1080px) {
  .dash, .feed-wrap, .content-grid { grid-template-columns: 1fr; }
  .side-col { position: static; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .view { padding: 22px 16px 110px; }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); background: rgba(21, 22, 23, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 5px; }
  .tabbar a { flex: 1; text-align: center; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 0; border-radius: var(--pill); color: var(--muted); }
  .tabbar a.on { background: var(--text); color: var(--bg); }
  .task { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .task .idx { display: none; }
  .t-right .pill { display: none; }
  .client-head { grid-template-columns: 76px 1fr; }
  .client-head .thumb { width: 76px; height: 96px; }
  .client-head .head-actions { grid-column: 1 / -1; }
  .day-row { grid-template-columns: 1fr 86px; min-height: 92px; }
  .day-num { font-size: 52px; }
  .cell { min-height: 74px; padding: 5px; }
  .cell .c-num { font-size: 22px; }
  .c-post span { display: none; }
  .c-post { padding: 2px; justify-content: center; }
  .sheet { grid-template-columns: 1fr; grid-template-rows: 42vh 1fr; }
  .sheet-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .camp { grid-template-columns: 1fr 80px 70px; }
  .camp .hide-m { display: none; }
  .ghost-word { top: -24px; }
}

/* ——— Mails ——— */
.nav-count { margin-left: auto; font-size: 10px; color: var(--bg); background: var(--text); border-radius: var(--pill); padding: 0 6px; }
.nav-count:empty { display: none; }
.mail-wrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: start; }
.mail-list { border-top: 1px solid var(--line); }
.mail-row { display: block; padding: 16px 12px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .2s; }
.mail-row:hover { background: rgba(255, 255, 255, .02); }
.mail-row.on { background: var(--panel); box-shadow: inset 2px 0 0 var(--text); }
.mail-row.done { opacity: .45; }
.mr-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.mr-from { font-weight: 500; font-size: 14.5px; }
.mr-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.mr-ai { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px dashed var(--line-2); border-radius: var(--pill); padding: 3px 9px; }
.mail-detail { padding: 24px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.mail-back { display: none; align-self: flex-start; }
.md-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.md-sub { font-size: 22px; font-weight: 300; letter-spacing: -.02em; margin-bottom: 8px; }
.md-body { font-size: 14.5px; line-height: 1.65; color: var(--ash); }
.md-reply { min-height: 220px; }

/* ——— Équipe N / H ——— */
.cc-team { display: flex; gap: 6px; align-items: center; }
.cc-team .avatar { width: 26px; height: 26px; font-size: 10px; background: rgba(10, 10, 10, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

@media (max-width: 820px) {
  .mail-wrap { grid-template-columns: 1fr; }
  .mail-wrap.has-open .mail-list { display: none; }
  .mail-back { display: inline-block; }
  .mail-detail { position: static; }
  .toolbar .seg { overflow-x: auto; max-width: 100%; }
}

/* ——— Créateur de campagne ——— */
.sheet.wizard { width: min(1320px, 100%); grid-template-columns: 230px minmax(0, 1fr) 320px; }
.wz-steps { border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.wz-steps .sheet-top { margin-bottom: 18px; gap: 8px; }
.wz-step { text-align: left; font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; padding: 12px; border-radius: 10px; color: var(--muted); display: flex; gap: 12px; }
.wz-step i { font-style: normal; color: var(--dim); }
.wz-step.done { color: var(--ash); }
.wz-step.done i::after { content: " ✓"; color: var(--st-ok); }
.wz-step.on { background: var(--text); color: var(--bg); }
.wz-step.on i { color: var(--bg); }
.wz-body { overflow-y: auto; padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 22px; }
.wz-h { margin: 0; font-weight: 300; font-size: 30px; letter-spacing: -.025em; }
.wz-side { border-left: 1px solid var(--line); padding: 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.wz-tip { font-size: 14px; line-height: 1.6; margin: 10px 0 0; color: var(--ash); }
.wz-score { font-weight: 200; font-size: 38px; letter-spacing: -.04em; }
.check-line { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); padding: 5px 0; }
.check-line span { color: var(--dim); }
.check-line.ok { color: var(--ash); }
.check-line.ok span { color: var(--st-ok); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opt { text-align: left; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; min-height: 112px; display: flex; flex-direction: column; gap: 8px; transition: all .2s; }
.opt strong { font-weight: 400; font-size: 18px; letter-spacing: -.01em; }
.opt span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.opt:hover { border-color: var(--text); }
.opt.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.opt.on span { color: var(--graphite-2); }
.opt.off { opacity: .3; cursor: not-allowed; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pick { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; outline: 1px solid var(--line); transition: outline-color .2s, transform .2s; }
.pick-grid.videos .pick { aspect-ratio: 9 / 16; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick.on { outline: 2px solid var(--text); outline-offset: 2px; }
.pick-n { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 11px; display: grid; place-items: center; }
.pick-v { position: absolute; left: 8px; bottom: 8px; font-size: 11px; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.estimate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.estimate div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.estimate strong { display: block; font-weight: 200; font-size: 32px; letter-spacing: -.04em; margin-top: 8px; }
.recap { border-top: 1px solid var(--line); }
.recap-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.media-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.media-strip img { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; }
.chip[disabled] { opacity: .45; cursor: default; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

@media (max-width: 1100px) {
  .sheet.wizard { grid-template-columns: 200px minmax(0, 1fr); }
  .wz-side { display: none; }
}
@media (max-width: 820px) {
  .sheet.wizard { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .wz-steps { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; flex-wrap: nowrap; }
  .wz-steps .sheet-top { margin: 0 8px 0 0; flex: none; gap: 10px; }
  .wz-step { white-space: nowrap; }
  .wz-body { padding: 18px 16px 26px; }
  .estimate { grid-template-columns: 1fr; }
  .recap-row { grid-template-columns: 110px 1fr; }
}

/* ——— Shoots ——— */
button.shoot { width: 100%; text-align: left; border-radius: 0; transition: background .2s; }
button.shoot:hover { background: rgba(255, 255, 255, .02); }
.s-title { font-size: 14.5px; font-weight: 400; margin-bottom: 4px; }
.s-meta { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.s-meta .avatar { width: 22px; height: 22px; font-size: 9px; }
.label.late, .late > .tl-body .label { color: var(--st-ko); }
.sheet.shoot-sheet { width: min(1060px, 100%); grid-template-columns: minmax(0, 1fr) 360px; }
.shoot-timeline { border-left: 1px solid var(--line); background: #0d0e0f; }
.prep { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.prep-item { display: flex; gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.prep-item input { display: none; }
.prep-item span { width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 4px; flex: none; position: relative; }
.prep-item.done { color: var(--muted); }
.prep-item.done span { background: var(--text); border-color: var(--text); }
.prep-item.done span::after { content: ""; position: absolute; left: 4px; top: 3px; width: 7px; height: 4px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(-45deg); }
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.tl-row { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding: 10px 0; }
.tl-dot { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); margin-top: 2px; position: relative; z-index: 1; transition: all .2s; }
.tl-dot:hover { border-color: var(--text); }
.tl-row.done .tl-dot { background: var(--st-ok); border-color: var(--st-ok); }
.tl-row.late .tl-dot { border-color: var(--st-ko); box-shadow: 0 0 0 3px rgba(226, 87, 76, .2); }
.tl-row.key .tl-body > div:first-child { font-weight: 500; }
.tl-row.done .tl-body > div:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.tl-body { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tl-date { padding: 7px 10px; font-size: 12.5px; font-family: var(--mono); max-width: 170px; }
.orig-line { width: 100%; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .sheet.shoot-sheet { grid-template-columns: 1fr; grid-template-rows: auto; overflow-y: auto; }
  .shoot-sheet .sheet-form { overflow: visible; }
  .shoot-timeline { border-left: 0; border-top: 1px solid var(--line); }
}

/* ——— Preset de campagne ——— */
.preset-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 28px; align-items: start; }
.preset { display: flex; flex-direction: column; gap: 18px; }
.preset-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.sugg { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.sugg:first-of-type { margin-top: 10px; }
.sugg p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ash); }
.sugg-actions { display: flex; gap: 6px; }
.sugg-actions .btn { padding: 8px 14px; }
.hist { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.hist:first-of-type { margin-top: 10px; }
.hist .num { align-self: start; text-align: center; }
.hist p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ash); }
.preset-tag { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; margin-bottom: 12px; }
@media (max-width: 1080px) { .preset-wrap { grid-template-columns: 1fr; } .preset-side { position: static; } }
@media (max-width: 820px) { .preset-tag { flex: none; margin: 0 8px 0 0; } }
.preset .mini-h { flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.brief { display: flex; flex-direction: column; gap: 16px; }
.brief-h { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.goal-chips { margin-bottom: 12px; }
.goal-chips .chip { font-size: 10px; padding: 5px 9px; }
@media (max-width: 820px) { .goal-chips { flex-wrap: nowrap; flex: none; margin: 0 8px 0 0; } }

/* ——— Sélecteur Dropbox dans l'éditeur de post ——— */
.media-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.picker { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.picker-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.picker .folders { margin: 0; }
.picker .pick-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.media-path { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); overflow: hidden; }
.media-path .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.car-strip { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; border-top: 1px solid var(--line); }
.car-item { flex: none; width: 66px; display: flex; flex-direction: column; gap: 4px; }
.car-item > button img { width: 66px; height: 82px; object-fit: cover; border-radius: 5px; opacity: .55; transition: opacity .2s; }
.car-item.on > button img { opacity: 1; outline: 1px solid var(--text); outline-offset: 2px; }
.car-ctrl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.car-ctrl button:hover { color: var(--text); }
@media (max-width: 820px) {
  .sheet:has(.sheet-media.picking) { grid-template-rows: 66vh 1fr; }
  .picker .pick-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ——— Grille défilante : un nombre fixe de vignettes visibles, le reste défile à l'intérieur ——— */
.shoot-select { max-width: 420px; }
.scroll-box { container-type: inline-size; position: relative; }
.scroll-grid {
  --cols: 4; --rows: 3; --gap: 8px; --ratio: 1.25;
  --cell: calc((100cqw - (var(--cols) - 1) * var(--gap) - 6px) / var(--cols));
  display: grid !important;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) !important;
  grid-auto-rows: calc(var(--cell) * var(--ratio));
  gap: var(--gap);
  max-height: calc(var(--cell) * var(--ratio) * var(--rows) + var(--gap) * (var(--rows) - 1));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: var(--graphite-2) transparent;
}
.scroll-grid > * { scroll-snap-align: start; min-height: 0; }
.scroll-grid .pick { aspect-ratio: auto; height: 100%; }
.scroll-grid.videos { --ratio: 1.7778; --rows: 2; }
.scroll-box::after { content: ""; position: absolute; left: 0; right: 6px; bottom: 0; height: 26px; pointer-events: none; background: linear-gradient(transparent, rgba(10, 10, 10, .85)); border-radius: 0 0 8px 8px; }
/* Galerie Contenu : plus de colonnes sur grand écran, nom du fichier sous la vignette */
.scroll-box.wide .scroll-grid { --cols: 5; --rows: 2; --ratio: 1.55; --gap: 14px; }
.scroll-box.wide .scroll-grid.videos { --ratio: 2.05; --rows: 1; }
.scroll-grid .g-item { display: flex; flex-direction: column; min-height: 0; }
.scroll-grid .g-item .g-img { flex: 1; aspect-ratio: auto; min-height: 0; }
@media (max-width: 820px) {
  .scroll-grid { --cols: 3; --rows: 2; }
  .scroll-grid.videos { --cols: 3; --rows: 1; }
  .scroll-box.wide .scroll-grid { --cols: 3; --rows: 2; --gap: 8px; --ratio: 1.6; }
  .scroll-box.wide .scroll-grid.videos { --cols: 3; --rows: 1; --ratio: 2.1; }
}
.scroll-grid .g-name { gap: 6px; white-space: nowrap; }
.scroll-grid .g-name span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.scroll-grid .g-name span:last-child { flex: none; }

/* ——— Menu déroulant au style des boutons (pilule, capitales mono) ——— */
select.shoot-select, #sh-folder {
  appearance: none; -webkit-appearance: none;
  width: auto; max-width: 100%; min-width: 0;
  font-family: var(--mono); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; color: var(--text);
  background-color: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--pill);
  padding: 10px 40px 10px 16px; line-height: 1.2; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color .2s;
}
select.shoot-select:hover, #sh-folder:hover, select.shoot-select:focus, #sh-folder:focus { border-color: var(--text); outline: none; }
select.shoot-select option, #sh-folder option, select.shoot-select optgroup { background: #151617; color: var(--text); text-transform: none; font-family: var(--sans); }
#sh-folder { width: 100%; }
.picker-bar { flex-wrap: nowrap; justify-content: flex-start; }
.picker-bar .shoot-select { flex: 1; }
.toolbar .left .shoot-select, .toolbar .right .shoot-select { max-width: 300px; }

/* ——— Logo ——— */
.brand img { height: 30px; width: auto; display: block; }
.brand { align-items: center; gap: 10px; }
.mobile-head { display: none; }

/* ——— Connexion ——— */
body.is-login .side, body.is-login .tabbar, body.is-login .mobile-head { display: none !important; }
body.is-login .app { grid-template-columns: 1fr; }
body.is-login .view { padding: 0; }
.login {
  min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 24px 16px;
  background:
    radial-gradient(120% 80% at 50% 115%, rgba(229, 228, 226, .9) 0%, rgba(160, 172, 182, .55) 28%, rgba(83, 104, 120, .35) 48%, rgba(10, 10, 10, 0) 72%),
    linear-gradient(180deg, #0A0A0A 0%, #14181c 55%, #2a333b 100%);
}
.login-card { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 40px 28px 34px; border-radius: 26px; background: rgba(10, 10, 10, .55); border: 1px solid rgba(229, 228, 226, .14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); animation: pop .6s cubic-bezier(.2, .7, .2, 1); }
.login-mono { width: 112px; height: 112px; }
.login-word { width: 220px; height: auto; }
.login-google { width: 100%; padding: 15px 18px; font-size: 11.5px; }
.login-google .g { font-family: var(--sans); font-weight: 600; font-size: 15px; text-transform: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--text); display: grid; place-items: center; }
.login-foot { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(10, 10, 10, .55); }

@media (max-width: 820px) {
  .mobile-head { display: flex; position: sticky; top: 0; z-index: 25; justify-content: space-between; align-items: center; padding: 14px 16px; background: rgba(10, 10, 10, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mobile-head img { height: 22px; width: auto; }
  .view { padding-top: 18px; }
  .picker-bar { flex-wrap: wrap; }
  .picker-bar .shoot-select { flex: 1 1 100%; }
}
@media (max-width: 820px) {
  .sheet:has(.sheet-media.picking) { grid-template-rows: auto auto; overflow-y: auto; }
  .sheet:has(.sheet-media.picking) .sheet-media { min-height: auto; }
  .sheet:has(.sheet-media.picking) .picker { overflow: visible; flex: none; }
  .sheet:has(.sheet-media.picking) .sheet-form { overflow: visible; }
}

/* ——— Feed : cases vides à remplir (équipe uniquement) ——— */
.tile.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: repeating-linear-gradient(135deg, rgba(229, 228, 226, .025) 0 10px, transparent 10px 20px), var(--bg); outline: 1px dashed var(--line-2); outline-offset: -1px; color: var(--muted); transition: color .2s, outline-color .2s, background-color .2s; }
.tile.slot:hover { color: var(--text); outline-color: var(--text); background-color: var(--panel); }
.slot-plus { font-weight: 200; font-size: 34px; line-height: 1; }
.slot-date { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.tile.is-draft::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--st-draft); pointer-events: none; }
.toolbar .right #addRow { padding: 9px 14px; }

/* ——— Historique Instagram importé ——— */
.tile.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(160deg, #1d2024, #121416); color: var(--dim); font-size: 11px; cursor: default; }
.tile.imported::before { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, .12); pointer-events: none; z-index: 1; }
.ig-import { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ——— Finance ——— */
.fin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fin-kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.fin-kpi strong { font-weight: 300; font-size: 28px; letter-spacing: -.03em; }
.fin-kpi strong.up { color: var(--chart-a); }
.fin-kpi strong.down { color: var(--st-ko); }
.fin-kpi .muted { font-size: 12px; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.hbar { padding: 10px 0; border-top: 1px solid var(--line); }
.hbar:first-of-type { margin-top: 10px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 8px; }
.hbar-top .mono { font-size: 12px; color: var(--ash); }
.hbar-track { height: 4px; border-radius: 4px; background: var(--graphite); overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--ash); border-radius: 4px; }
.hbar-track.green span { background: var(--chart-a); }
.fin-h { font-weight: 400; font-size: 17px; margin: 26px 0 10px; letter-spacing: -.01em; }
.fin-list { overflow: hidden; }
.fin-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 30px 140px 120px; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.fin-row:first-child { border-top: 0; }
.fin-row:hover { background: rgba(255, 255, 255, .02); }
.fr-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fr-main b { font-weight: 500; font-size: 14.5px; }
.fr-main .muted { font-size: 13px; }
.fr-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.fr-when { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.fr-amount { font-weight: 300; font-size: 20px; letter-spacing: -.02em; text-align: right; white-space: nowrap; }
.fr-amount small { font-size: 11px; color: var(--muted); }
.fr-pay { justify-self: end; cursor: pointer; }
.fin-row .avatar { width: 26px; height: 26px; font-size: 10px; }
@media (max-width: 820px) {
  .fin-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .fr-when { grid-column: 1; grid-row: 2; }
  .fin-row .avatar { display: none; }
  .fr-amount { grid-column: 2; grid-row: 1; }
  .fr-pay { grid-column: 2; grid-row: 2; }
  .fin-kpis { grid-template-columns: 1fr 1fr; }
  .fin-kpi strong { font-size: 22px; }
  .tabbar a { font-size: 9.5px; }
}

/* ——— Justificatifs ——— */
.receipt { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.receipt-thumb { width: 64px; height: 80px; border-radius: 6px; overflow: hidden; background: var(--graphite); flex: none; display: grid; place-items: center; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipt-pdf-ico { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ash); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 6px; }
.receipt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt-actions .btn, .toolbar label.btn { cursor: pointer; }
.receipt-tag { color: var(--chart-a); cursor: pointer; }
.tag.missing { color: var(--st-pending); }
.receipt-pdf { width: min(760px, 100%); height: 72vh; border: 0; border-radius: 8px; background: #fff; }

/* ——— Harmonisation typographique ———
   Mono (IBM Plex Mono) : tout ce qui est interface — menus, boutons, étiquettes, dates, statuts, chiffres de liste.
   Grotesque (Geist) : titres, textes, noms de clients et de posts. Gros chiffres en 200, titres en 300, texte courant en 350–400. */
.h-title, .client-name, .wz-h, .dialog h3, .md-sub, .cc-name, .month-nav strong { font-weight: 300; letter-spacing: -.035em; }
.today .big, .day-num, .cell .c-num, .wz-score, .feed-count strong, .estimate strong, .s-date strong { font-weight: 200; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.k-val, .fin-kpi strong, .kpi-inline strong, .fr-amount, .val-pill { font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.t-title, .mr-from, .fr-main b, .s-title, .panel-h, .opt strong, .choice button strong { font-weight: 400; letter-spacing: -.01em; }
.md-body, .wz-tip, .sugg p, .hist p, .muted { font-weight: 350; }
.input, textarea.input { font-family: var(--sans); font-weight: 400; letter-spacing: -.005em; }
input[type="date"].input, input[type="time"].input, input[type="number"].input, .tl-date { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.pc-t, .c-post span, .camp > div:first-child { font-weight: 400; }
.mono, .label, .tag, .pill, .btn, .bracket, .seg button, .num, .nav a, .tabs a { font-feature-settings: "zero" off; }
.brand em { font-family: var(--sans); font-weight: 500; letter-spacing: .12em; font-size: 9.5px; padding: 2px 8px; }
.k-val, .fin-kpi strong, .fr-amount { white-space: nowrap; }
@media (max-width: 820px) { .kpis { grid-template-columns: 1fr; } .kpi { min-height: 116px; } }

/* ——— Tableau de bord v2 ——— */
.hero { position: relative; padding: 18px 0 30px; }
.hero-date { position: relative; display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.hero-date .big { font-weight: 200; font-size: clamp(110px, 14vw, 190px); line-height: .78; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.hero-date h1 { margin: 10px 0 16px; font-weight: 300; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-pills .pill { padding: 7px 12px; background: rgba(21, 22, 23, .7); }

.focus { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.fcard { position: relative; min-height: 250px; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s; box-shadow: var(--shadow); }
.fcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.shoot-card { padding: 0; }
.shoot-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.shoot-card:hover > img { transform: scale(1.04); }
.fc-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .1) 0%, rgba(10, 10, 10, .2) 40%, rgba(10, 10, 10, .9) 100%); }
.fc-in { position: relative; margin-top: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.fc-in strong { font-weight: 300; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.fc-sub { font-size: 13.5px; color: var(--ash); }
.fc-in .tc-who { margin-top: 8px; }
.fc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-nums strong { display: block; font-weight: 200; font-size: 58px; letter-spacing: -.05em; line-height: .95; }
.fc-nums .label { display: inline-flex; gap: 6px; align-items: center; }
.fc-thumbs { display: flex; gap: 6px; margin-top: auto; }
.fc-thumbs span { width: 48px; height: 60px; border-radius: 6px; overflow: hidden; position: relative; }
.fc-thumbs span img { width: 100%; height: 100%; object-fit: cover; }
.fc-thumbs span.rejected::after { content: ""; position: absolute; inset: 0; background: rgba(226, 87, 76, .45); }
.fc-thumbs span.pending { box-shadow: inset 0 0 0 2px var(--st-pending); }
.fc-big { font-weight: 200; font-size: 72px; letter-spacing: -.05em; line-height: .9; }
.fc-list { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ash); }
.fc-list div { display: flex; gap: 8px; align-items: center; }
.fc-ai { margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px dashed var(--line-2); border-radius: var(--pill); padding: 5px 10px; background: linear-gradient(120deg, rgba(79, 212, 127, .1), rgba(62, 123, 250, .1)); }

.block { margin-bottom: 44px; }
.block-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.block-h h2 { margin: 0; font-weight: 300; font-size: 26px; letter-spacing: -.03em; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wday { border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-height: 190px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.wday.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.wday.on .label, .wday.on .wd-empty { color: var(--graphite-2); }
.wd-h { display: flex; justify-content: space-between; align-items: baseline; }
.wd-num { font-weight: 200; font-size: 40px; letter-spacing: -.05em; line-height: .9; }
.wd-items { display: flex; flex-direction: column; gap: 8px; }
.wd-post { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--graphite); }
.wd-post img { width: 100%; height: 100%; object-fit: cover; }
.wd-post em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-family: var(--mono); font-size: 9.5px; display: flex; gap: 5px; align-items: center; padding: 3px 7px; border-radius: var(--pill); background: rgba(10, 10, 10, .7); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wd-shoot { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 7px 8px; border-radius: 8px; border: 1px solid currentColor; opacity: .9; }
.wd-empty { color: var(--dim); font-family: var(--mono); }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 6px; }
.col-h .label { color: var(--text); }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, opacity .3s, transform .3s; }
.tcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tcard.hot { border-left: 2px solid var(--st-ko); }
.tcard.done { opacity: .4; }
.tcard.done .tc-title { text-decoration: line-through; text-decoration-color: var(--dim); }
.tc-top { display: flex; justify-content: space-between; align-items: center; }
.tc-top .check { width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: all .2s; }
.tc-top .check:hover { border-color: var(--text); }
.tcard.done .check { background: var(--st-ok); border-color: var(--st-ok); }
.tcard.done .check::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px); }
.tc-title { font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: -.01em; }
.tc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tc-client { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ash); }
.tc-client img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.tc-who { display: inline-flex; gap: 4px; }
.tc-who .avatar { width: 24px; height: 24px; font-size: 9.5px; }
.tc-src { font-size: 9.5px; color: var(--dim); }
.tcard.add { padding: 0; border-style: dashed; background: transparent; }
.tcard.add input { background: transparent; border: 0; outline: none; padding: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.tcard.add input::placeholder { color: var(--muted); }

.cstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cmini { position: relative; height: 170px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; }
.cmini > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-in { position: relative; margin-top: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.cm-in strong { font-weight: 300; font-size: 24px; letter-spacing: -.03em; }
.cm-in .label { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--ash); }
.cmini.new { flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-style: dashed; color: var(--muted); }
.cmini.new span:first-child { font-weight: 200; font-size: 44px; line-height: 1; }

@media (max-width: 1080px) {
  .focus { grid-template-columns: 1fr 1fr; }
  .shoot-card { grid-column: 1 / -1; min-height: 280px; }
  .week { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(118px, 1fr); overflow-x: auto; scrollbar-width: none; }
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-date .big { font-size: 112px; }
  .focus { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fcard { min-height: 200px; padding: 16px; }
  .fc-nums strong { font-size: 44px; }
  .fc-big { font-size: 56px; }
  .board { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .col { scroll-snap-align: start; }
}
.fc-veil { background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.35) 35%, rgba(10,10,10,.92) 100%); }

/* ——— Accès rapide & agenda du tableau de bord ——— */
.hero > .hero-date { justify-content: flex-start; }
.hero { display: block; }
.hero-actions { position: absolute; top: 22px; right: 0; display: flex; flex-direction: column; gap: 8px; align-items: stretch; z-index: 2; }
.hero-actions .btn { padding: 11px 16px; cursor: pointer; }
.wd-ev { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border-radius: 10px; background: var(--panel); border-left: 2px solid var(--slate); }
.wd-ev.cal-work { border-left-color: var(--chart-a); }
.wd-ev.cal-team { border-left-color: var(--chart-b); }
.wd-ev.cal-perso { border-left-color: var(--st-pending); }
.wd-time { font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: var(--muted); }
.wd-title { font-size: 12.5px; line-height: 1.35; font-weight: 400; }
.wd-place { font-size: 11px; color: var(--muted); }
.wday.on .wd-ev { background: rgba(10, 10, 10, .06); color: var(--bg); }
.wday.on .wd-time, .wday.on .wd-place { color: var(--graphite-2); }
@media (max-width: 820px) {
  .hero-actions { top: 14px; }
  .hero-actions .btn { padding: 9px 12px; font-size: 10px; }
  .week { grid-auto-columns: minmax(150px, 1fr); }
}

/* ——— Barre de saisie du Dashboard ——— */
.cmd-wrap { margin: -6px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border-radius: 22px; background: linear-gradient(180deg, #17191b, #121314); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .2s; }
.cmd:focus-within { border-color: var(--text); }
.cmd input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 16px; padding: 12px 4px; }
.cmd input::placeholder { color: var(--dim); }
.cmd-mic, .cmd-send { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; flex: none; transition: all .2s; }
.cmd-mic { border: 1px solid var(--line-2); color: var(--ash); }
.cmd-mic:hover { color: var(--text); border-color: var(--text); }
.cmd-mic.rec { background: var(--st-ko); border-color: var(--st-ko); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(226, 87, 76, .18); } }
.cmd-send { background: var(--text); color: var(--bg); font-size: 18px; }
.cmd-ex { display: flex; gap: 6px; flex-wrap: wrap; }
.cmd-ex .chip { text-transform: none; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; }
.cmd-card { border: 1px solid var(--line-2); border-radius: 18px; padding: 16px 18px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; animation: pop .3s cubic-bezier(.2, .7, .2, 1); }
.cc-head { display: flex; justify-content: space-between; align-items: center; }
.cc-title { font-weight: 300; font-size: 24px; letter-spacing: -.02em; }
.cc-lines { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.cc-lines > span { display: flex; flex-direction: column; gap: 4px; }
.cmd-card .sheet-actions { margin-top: 0; }
@media (max-width: 820px) {
  .cmd-ex { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cmd-ex .chip { white-space: nowrap; }
  .cmd input { font-size: 15px; }
}
.cc-title-in { background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none; padding: 4px 0 8px; font-family: var(--sans); font-weight: 300; font-size: 24px; letter-spacing: -.02em; color: var(--text); width: 100%; }
.cc-title-in:focus { border-bottom-color: var(--text); }

/* ——— Contacts client ——— */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.contact { text-align: left; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 190px; transition: border-color .2s, transform .3s; }
.contact:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ct-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ct-ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line-2); text-transform: uppercase; }
.ct-name { font-weight: 300; font-size: 24px; letter-spacing: -.02em; }
.ct-lines { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ash); margin-top: 4px; }
.ct-notes { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ——— Feed façon Instagram & couverture des Reels ——— */
.ig-tabs button { display: inline-flex; gap: 7px; align-items: center; }
.reel-ico { position: absolute; top: 7px; right: 7px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); z-index: 2; }
.cover-row { display: flex; gap: 14px; align-items: center; }
.cover-prev { width: 72px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--graphite); flex: none; display: grid; place-items: center; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.cover-info { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; min-width: 0; }
.cover-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.cover-btns .btn { padding: 8px 14px; }
.ai-ctx { margin-top: 8px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ash); line-height: 1.45; }
.ai-ctx b { font-family: var(--mono); font-weight: 400; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 8px; }
.gen-row { display: inline-flex; gap: 8px; align-items: center; }
.mini-seg { padding: 2px; }
.mini-seg button { padding: 5px 9px; font-size: 9.5px; }

/* ——— Invitation, connexion client, portail ——— */
.login-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.login-form .input { text-align: center; }
.invite-h { margin: 0; font-weight: 300; font-size: 32px; letter-spacing: -.03em; }
.pw-meter { height: 3px; border-radius: 3px; background: var(--graphite); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
.ct-portal { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ct-portal .label { display: inline-flex; gap: 7px; align-items: center; }
.ct-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.ct-invite { padding: 8px 14px; }
.mail-prev { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mp-body { margin-top: 8px; background: #0d0e0f; border-radius: 10px; padding: 18px; font-size: 14px; line-height: 1.6; color: var(--ash); }
.mp-body p { margin: 0 0 10px; }
.mp-logo { height: 28px; margin-bottom: 14px; }
.mp-btn { display: inline-block; margin: 6px 0 12px; padding: 11px 18px; border-radius: var(--pill); background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

body.is-portal .side, body.is-portal .tabbar, body.is-portal .mobile-head { display: none !important; }
body.is-portal .app { grid-template-columns: 1fr; }
body.is-portal .view { max-width: 1180px; margin: 0 auto; width: 100%; padding-top: 0; }
.portal-top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; background: rgba(10, 10, 10, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.portal-top img { height: 30px; }
.pt-right { display: flex; gap: 16px; align-items: center; }
.portal-hero { position: relative; padding: 20px 0 26px; }
.portal-hero h1 { position: relative; margin: 8px 0 12px; font-weight: 300; font-size: clamp(44px, 7vw, 92px); letter-spacing: -.045em; line-height: .9; }
.ph-note { position: relative; margin: 0; display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ash); }
.portal-tabs { margin-bottom: 22px; }
.portal-word { margin-bottom: 14px; }
.portal-word p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ash); }
.portal-foot { text-align: center; padding: 50px 0 30px; color: var(--dim); }
@media (max-width: 820px) {
  body.is-portal .view { padding: 0 16px 40px; }
  .portal-top img { height: 24px; }
}

/* ——— Accueil du portail client ——— */
.ph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ph-todo { border-color: rgba(227, 160, 74, .35); }
.ph-cta { margin-top: auto; align-self: flex-start; }
.ph-next { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.ph-next img { width: 54px; height: 68px; object-fit: cover; border-radius: 6px; }
.ph-next > div { display: flex; flex-direction: column; gap: 4px; }
.ph-next strong { font-weight: 300; font-size: 22px; letter-spacing: -.02em; }
.ph-next .muted { font-size: 12.5px; }
.ph-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-strip span { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.ph-strip img { width: 100%; height: 100%; object-fit: cover; }
.ph-strip em { position: absolute; left: 5px; bottom: 5px; font-style: normal; font-family: var(--mono); font-size: 9px; padding: 2px 6px; border-radius: var(--pill); background: rgba(10, 10, 10, .7); }
.ph-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph-kpis strong { display: block; font-weight: 300; font-size: 26px; letter-spacing: -.03em; white-space: nowrap; }
.ph-kpis .label { display: block; margin: 4px 0; }
.ph-kpis .k-delta { font-family: var(--mono); font-size: 11px; }
.ph-grid .fcard svg { width: 100%; height: 70px; }
@media (max-width: 820px) { .ph-grid { grid-template-columns: 1fr; } .ph-kpis strong { font-size: 22px; } }

/* ——— Validation en swipe ——— */
.swipe { position: fixed; inset: 0; z-index: 45; background: radial-gradient(120% 80% at 50% 120%, rgba(83, 104, 120, .45), rgba(10, 10, 10, .97) 60%), #0A0A0A; display: grid; place-items: center; padding: 16px; }
.swipe[hidden] { display: none; }
.sw-wrap { width: min(420px, 100%); height: min(780px, 100%); display: flex; flex-direction: column; gap: 18px; }
.sw-top { display: flex; justify-content: space-between; align-items: center; }
.sw-stack { position: relative; flex: 1; min-height: 0; }
.sw-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--graphite); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); transform: translateY(calc(var(--depth) * 12px)) scale(calc(1 - var(--depth) * .04)); transition: transform .3s ease; touch-action: none; user-select: none; }
.sw-card.top { cursor: grab; }
.sw-card.top:active { cursor: grabbing; }
.sw-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sw-kind { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: var(--pill); background: rgba(10, 10, 10, .65); }
.sw-stamp { position: absolute; top: 34px; font-family: var(--mono); font-size: 20px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border: 2px solid; border-radius: 8px; opacity: 0; transition: opacity .15s; }
.sw-stamp.yes { left: 22px; color: var(--st-ok); border-color: var(--st-ok); transform: rotate(-12deg); }
.sw-stamp.no { right: 22px; color: var(--st-ko); border-color: var(--st-ko); transform: rotate(12deg); }
.sw-card.go-yes .sw-stamp.yes, .sw-card.go-no .sw-stamp.no { opacity: 1; }
.sw-actions { display: flex; justify-content: center; align-items: center; gap: 28px; padding-bottom: 6px; }
.sw-btn { width: 66px; height: 66px; border-radius: 50%; font-size: 26px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(21, 22, 23, .8); transition: transform .2s, background .2s; }
.sw-btn:active { transform: scale(.92); }
.sw-btn.no { color: var(--st-ko); }
.sw-btn.no:hover { background: rgba(226, 87, 76, .15); border-color: var(--st-ko); }
.sw-btn.yes { color: var(--st-ok); }
.sw-btn.yes:hover { background: rgba(88, 194, 125, .15); border-color: var(--st-ok); }
.sw-done { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sw-done img { width: 96px; }
.sw-done h2 { margin: 0; font-weight: 300; font-size: 36px; letter-spacing: -.03em; }
.portal-word.inner { box-shadow: none; background: var(--bg-2); }
/* pile de swipe intégrée à l'Accueil */
.ph-swipe { padding: 16px; }
@media (min-width: 821px) { .ph-swipe { grid-row: span 2; } }
.sw-wrap.inline { width: 100%; height: auto; gap: 14px; }
.sw-wrap.inline .sw-stack { flex: none; aspect-ratio: 4 / 5; width: 100%; max-width: 440px; margin: 0 auto 12px; }
.sw-wrap.inline .sw-card { border-radius: 16px; }
.sw-wrap.inline .sw-btn { width: 58px; height: 58px; font-size: 22px; }
.sw-wrap.inline .sw-done { padding: 40px 0; }
/* ordinateur : la dernière carte seule sur sa ligne prend toute la largeur */
@media (min-width: 821px) {
  .ph-grid > .fcard:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
  .ph-grid > .ph-swipe:first-child ~ .fcard:last-child:nth-child(even) { grid-column: 1 / -1; }
  .ph-grid > .ph-swipe:first-child ~ .fcard:last-child:nth-child(odd) { grid-column: auto; }
}

/* ——— Annotations (preview photos & vidéos) ——— */
.g-img { position: relative; }
.g-annot { position: absolute; left: 8px; top: 8px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; padding: 4px 9px; border-radius: var(--pill); background: rgba(10, 10, 10, .72); color: var(--text); }
.g-annot.new { background: var(--st-pending, #E3A04A); color: #0A0A0A; }
.dialog.lb { width: min(1100px, 100%); }
.lb-body { display: flex; gap: 20px; width: 100%; align-items: flex-start; }
.lb-media { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-stage { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.lb-stage img, .lb-stage video { max-height: 64vh; max-width: 100%; border-radius: 8px; display: block; }
.lb-pins { position: absolute; inset: 0; pointer-events: none; }
.lb-stage.annotating .lb-pins { pointer-events: auto; cursor: crosshair; background: rgba(10, 10, 10, .08); border-radius: 8px; outline: 1px dashed rgba(255, 255, 255, .35); }
.lb-stage.annotating video { pointer-events: none; }
.pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; line-height: 1; color: #0A0A0A; background: #E3A04A; box-shadow: 0 0 0 3px rgba(10, 10, 10, .45), 0 6px 18px rgba(0, 0, 0, .5); pointer-events: auto; }
.pin.done { background: #58C27D; }
.pin.draft { background: #fff; animation: pinPulse 1.2s ease-in-out infinite; }
.pin.flash { transform: scale(1.4); transition: transform .2s; }
@keyframes pinPulse { 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, .15), 0 6px 18px rgba(0, 0, 0, .5); } }
.lb-hint { color: #E3A04A; }
.lb-notes { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; max-height: 64vh; overflow: auto; }
.lb-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.lb-form .sheet-actions { margin: 0; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-list li { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.lb-list li:hover { border-color: var(--line-2); }
.lb-list li > i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10px; background: #E3A04A; color: #0A0A0A; }
.lb-list li > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lb-list p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.lb-list .st { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lb-list .st.ok { color: #58C27D; }
.lb-list .st.new { color: #E3A04A; }
.lb-list .bracket { align-self: flex-start; font-size: 10px; }
.lb-empty { font-size: 13px; margin: 0; }
@media (max-width: 820px) {
  .lb-body { flex-direction: column; }
  .lb-notes { width: 100%; max-height: none; }
  .lb-stage img, .lb-stage video { max-height: 52vh; }
}

/* ——— Preview : flèches + avis ✓ / ✕ du client ——— */
.lb-row { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.lb-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(21, 22, 23, .8); font-size: 26px; line-height: 1; display: grid; place-items: center; color: var(--text); transition: background .2s; }
.lb-arrow:hover { background: var(--graphite); }
.lb-stage.like-up img, .lb-stage.like-up video { box-shadow: 0 0 0 3px var(--st-ok); }
.lb-stage.like-down img, .lb-stage.like-down video { box-shadow: 0 0 0 3px var(--st-ko); }
.lb-actions { align-items: center; }
.lb-like { display: flex; gap: 10px; margin-right: auto; }
.lk { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(21, 22, 23, .8); font-size: 20px; display: grid; place-items: center; transition: background .2s, transform .15s; }
.lk:active { transform: scale(.92); }
.lk.down { color: var(--st-ko); }
.lk.up { color: var(--st-ok); }
.lk.down.on { background: var(--st-ko); border-color: var(--st-ko); color: #0A0A0A; }
.lk.up.on { background: var(--st-ok); border-color: var(--st-ok); color: #0A0A0A; }
.lb-verdict { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: var(--pill); margin-left: auto; margin-right: 12px; }
.lb-verdict.up { color: var(--st-ok); border: 1px solid var(--st-ok); }
.lb-verdict.down { color: var(--st-ko); border: 1px solid var(--st-ko); }
/* cadre vert / rouge dans les grilles (Contenu, Photos & vidéos, sélecteur Dropbox) */
.g-item.like-up .g-img, .pick.like-up { box-shadow: inset 0 0 0 3px var(--st-ok); }
.g-item.like-down .g-img, .pick.like-down { box-shadow: inset 0 0 0 3px var(--st-ko); }
.g-item.like-up .g-img::after, .g-item.like-down .g-img::after { position: absolute; right: 8px; top: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #0A0A0A; }
.g-item.like-up .g-img::after { content: "✓"; background: var(--st-ok); }
.g-item.like-down .g-img::after { content: "✕"; background: var(--st-ko); }
.g-item .g-img img, .g-item .g-img video { position: relative; z-index: 0; }
.g-item.like-up .g-img img, .g-item.like-down .g-img img, .g-item.like-up .g-img video, .g-item.like-down .g-img video { padding: 3px; border-radius: 6px; }
.pick.like-up img, .pick.like-down img { padding: 3px; }
@media (max-width: 820px) {
  .lb-arrow { width: 36px; height: 36px; font-size: 22px; }
  .lb-row { gap: 6px; }
  .lb-actions { flex-wrap: wrap; }
}
/* statut client en tête du post */
.cstate-field { gap: 8px; }
.seg.cstate { display: flex; width: 100%; }
.seg.cstate button { flex: 1; }
.seg.cstate button.approved.on { background: var(--st-ok); color: #0A0A0A; }
.seg.cstate button.pending.on { background: var(--st-pending); color: #0A0A0A; }
.seg.cstate button.rejected.on { background: var(--st-ko); color: #0A0A0A; }
/* en-tête du post (statut + statut client), au-dessus du média et du formulaire */
.sheet.has-head { grid-template-rows: auto minmax(0, 1fr); }
.sheet-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding: 16px 26px; border-bottom: 1px solid var(--line); background: var(--bg); }
.sheet-head .sheet-top { margin: 0; }
.sheet-head .cstate-field { display: flex; flex-direction: column; }
@media (max-width: 820px) {
  .sheet.has-head { grid-template-rows: auto 38vh minmax(0, 1fr); }
  .sheet-head { padding: 12px 16px; }
}
/* Shoots & livrables : menu repliable */
.shoots-panel .mini-h { margin-bottom: 0; gap: 12px; }
.content-grid:not(.shoots-closed) .shoots-panel .mini-h { margin-bottom: 16px; }
.sp-toggle { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.sp-chev { font-size: 13px; color: var(--muted); transition: transform .25s; display: inline-block; }
.shoots-closed .sp-chev { transform: rotate(-90deg); }
.shoots-closed .sp-list { display: none; }
.content-grid.shoots-closed { grid-template-columns: 1fr; gap: 16px; }
.shoots-closed .shoots-panel { padding-top: 14px; padding-bottom: 14px; }
.sp-toggle .panel-h { white-space: nowrap; }
.shoots-panel #newShoot { white-space: nowrap; }
/* Ouvert : la liste se déploie en largeur, au-dessus des fichiers (shoots côte à côte) */
.content-grid { grid-template-columns: 1fr; gap: 16px; }
.shoots-panel .sp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.shoots-panel .sp-list .shoot { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: left; }
.shoots-closed .shoots-panel .sp-list { display: none; }
.shoots-panel .sp-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 280px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.shoots-panel .sp-list .shoot { scroll-snap-align: start; }
@media (max-width: 820px) { .shoots-panel .sp-list { grid-auto-columns: 78%; } }
.content-grid, .content-grid.shoots-closed { grid-template-columns: minmax(0, 1fr); }
.content-grid > * { min-width: 0; }

/* ——— Sous-menu Contenu + archive des shoots ——— */
.sub-tabs { margin-bottom: 16px; }
.archive { display: flex; flex-direction: column; gap: 22px; }
.arch-search { display: flex; align-items: center; gap: 14px; }
.arch-search .input { max-width: 420px; }
.arch-year { display: flex; flex-direction: column; }
.arch-y { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 10px; border-bottom: 1px solid var(--line); }
.arch-y > span:first-child { font-weight: 200; font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.arch-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 16px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; transition: background .2s; border-radius: 0; }
.arch-row:hover { background: rgba(255, 255, 255, .03); }
.arch-row[hidden], .arch-year[hidden] { display: none; }
.arch-row .s-date { text-align: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 0; }
.arch-row .s-date strong { display: block; font-weight: 200; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.arch-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.arch-main .s-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-count { font-size: 12.5px; color: var(--muted); }
.arch-thumbs { display: flex; gap: 4px; }
.arch-thumbs img { width: 40px; height: 50px; object-fit: cover; border-radius: 5px; }
.arch-st { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.arch-st.ok { color: var(--st-ok); border-color: rgba(88, 194, 125, .4); }
.arch-st.run { color: var(--st-pending); border-color: rgba(227, 160, 74, .4); }
.arch-go { color: var(--muted); font-size: 16px; }
.arch-row:hover .arch-go { color: var(--text); }
.sp-more { display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; border-style: dashed !important; background: none; color: inherit; cursor: pointer; }
.sp-more strong { font-weight: 300; font-size: 18px; }
@media (max-width: 820px) {
  .arch-row { grid-template-columns: 50px minmax(0, 1fr) 16px; grid-template-areas: "d m g" "d s g"; row-gap: 8px; gap: 12px; }
  .arch-row .s-date { grid-area: d; }
  .arch-main { grid-area: m; }
  .arch-thumbs { display: none; }
  .arch-st { grid-area: s; justify-self: start; }
  .arch-go { grid-area: g; }
  .arch-search { flex-direction: column; align-items: stretch; gap: 8px; }
}
/* Récent */
.recent { display: flex; flex-direction: column; }
.rc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 16px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.rc-row:hover { background: rgba(255, 255, 255, .03); }
.rc-ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 16px; color: var(--muted); }
.rc-files .rc-ic { color: var(--st-ok); border-color: rgba(88, 194, 125, .4); }
.rc-shoot .rc-ic { color: var(--st-pending); border-color: rgba(227, 160, 74, .4); }
.rc-when { white-space: nowrap; }
@media (max-width: 820px) {
  .rc-row { grid-template-columns: 36px minmax(0, 1fr) 16px; grid-template-areas: "i m g" "i w g"; row-gap: 6px; gap: 12px; }
  .rc-ic { grid-area: i; width: 36px; height: 36px; }
  .rc-row .arch-main { grid-area: m; }
  .rc-row .arch-thumbs { display: none; }
  .rc-when { grid-area: w; }
  .rc-row .arch-go { grid-area: g; }
  .sub-tabs .seg { max-width: 100%; overflow-x: auto; }
  .sub-tabs .seg button { white-space: nowrap; }
}

/* ——— Barre de sous-menus déroulants (Contenu / Photos & vidéos) ——— */
.cbar-wrap { margin-bottom: 18px; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cbar-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 22px; padding: 3px; gap: 2px; background: var(--bg-2); max-width: 100%; overflow-x: auto; }
.ctab { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; padding: 8px 14px; border-radius: var(--pill); color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.ctab:hover { color: var(--text); }
.ctab-chev { font-size: 10px; transition: transform .25s; display: inline-block; transform: rotate(-90deg); }
.ctab.on { background: var(--text); color: var(--bg); }
.ctab.on .ctab-chev { transform: none; }
/* ouvert : la bulle et le panneau ne font qu'un */
.cbar-wrap.open .cbar-tabs { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; position: relative; z-index: 1; }
.cpanel { border: 1px solid var(--line-2); border-radius: 0 16px 16px 16px; background: var(--bg-2); padding: 16px; margin-top: -1px; animation: cpanelIn .25s ease; }
@keyframes cpanelIn { from { opacity: 0; transform: translateY(-4px); } }
.cpanel-recent, .cpanel-archive { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.cpanel .sp-list { padding-bottom: 4px; }
.cpanel .archive { gap: 16px; }
.cpanel .arch-search { position: sticky; top: -16px; z-index: 2; background: var(--bg-2); padding: 0 0 10px; margin-top: -2px; }
.cpanel .rc-row:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .cpanel { padding: 12px; border-radius: 0 14px 14px 14px; }
  .cpanel-recent, .cpanel-archive { max-height: 52vh; }
  .ctab { padding: 8px 11px; }
}
.cpanel .sp-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 280px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.cpanel .sp-list .shoot { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: left; scroll-snap-align: start; background: var(--panel); }
.cpanel .sp-list .shoot:first-of-type { border-top: 1px solid var(--line); }
.cbar-wrap, .files-sec { min-width: 0; max-width: 100%; }
@media (max-width: 820px) { .cpanel .sp-list { grid-auto-columns: 78%; } }

/* ═════ Animations — discrètes, uniquement à l'arrivée sur une page / un onglet ═════ */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }
/* changement de page : léger fondu + montée */
.anim-page { animation: pageIn .45s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
/* changement d'onglet (Calendrier → Feed → Contenu…) : fondu plus court */
.anim-tab { animation: tabIn .32s var(--ease-out) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(5px); } }
/* titres : les mots apparaissent l'un après l'autre */
.words-in .w { display: inline-block; animation: wordIn .6s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 60ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
/* grand mot fantôme derrière les titres : arrive en douceur */
.anim-page .ghost-word { animation: ghostIn 1.1s var(--ease-out) both; }
@keyframes ghostIn { from { opacity: 0; transform: translateX(-14px); } }
/* dashboard : pastilles, cartes et colonnes en cascade */
.anim-page .hero-pills .pill { animation: tabIn .5s var(--ease-out) both; }
.anim-page .hero-pills .pill:nth-child(2) { animation-delay: .06s; } .anim-page .hero-pills .pill:nth-child(3) { animation-delay: .12s; } .anim-page .hero-pills .pill:nth-child(4) { animation-delay: .18s; }
.anim-page .fcard, .anim-page .cmini, .anim-page .client-card, .anim-page .ph-grid > * { animation: pageIn .55s var(--ease-out) both; }
.anim-page .fcard:nth-child(2), .anim-page .ph-grid > :nth-child(2) { animation-delay: .06s; }
.anim-page .fcard:nth-child(3), .anim-page .ph-grid > :nth-child(3) { animation-delay: .12s; }
.anim-page .fcard:nth-child(4), .anim-page .ph-grid > :nth-child(4) { animation-delay: .18s; }
.anim-page .fcard:nth-child(n+5) { animation-delay: .24s; }
/* onglets : le trait sous l'onglet actif se dessine */
.tabs a { position: relative; transition: color .25s; }
.tabs a.on { border-color: transparent; }
.tabs a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.tabs a.on::after { transform: scaleX(1); }
.tabs a:hover { color: var(--text); }
/* menus segmentés : la pastille active glisse en fondu */
.seg button, .ctab { transition: background .25s var(--ease-out), color .25s var(--ease-out); }
/* panneaux déroulants : ouverture un peu plus « soyeuse » */
.cpanel { animation: cpanelIn .32s var(--ease-out); transform-origin: top; }
@keyframes cpanelIn { from { opacity: 0; transform: translateY(-6px) scaleY(.98); } }
/* fenêtres : fond qui s'assombrit en fondu */
.modal:not([hidden]) { animation: fadeBg .25s ease both; }
@keyframes fadeBg { from { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } }
.dialog { animation: pop .35s var(--ease-out); }
@keyframes pop { from { transform: translateY(12px) scale(.985); opacity: 0; } }
/* notifications : montent depuis le bas */
.toast:not([hidden]) { animation: toastIn .35s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
/* boutons : petit retour au clic */
.btn, .pillbtn, .bracket { transition: transform .15s ease, background .25s, color .25s, border-color .25s; }
.btn:active, .pillbtn:active { transform: scale(.97); }
/* images de grille : apparaissent en fondu une fois chargées */
.g-img img, .tile img, .pick img { animation: imgIn .5s ease both; }
@keyframes imgIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ═════ Graphiques qui se dessinent (Ads, Finance) — seulement à l'arrivée ═════ */
.charts-in .ch-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chDraw 1.5s cubic-bezier(.45, .05, .2, 1) .15s forwards; }
.charts-in .ch-line2 { animation-delay: .3s; animation-duration: 1.3s; }
@keyframes chDraw { to { stroke-dashoffset: 0; } }
.charts-in .ch-area { animation: chReveal 1.5s cubic-bezier(.45, .05, .2, 1) .15s both; }
.charts-in .ch-reveal { animation: chReveal 1.2s cubic-bezier(.45, .05, .2, 1) .1s both; }
@keyframes chReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.charts-in .ch-end { animation: chPop .45s var(--ease-out) 1.45s both; transform-box: fill-box; transform-origin: center; }
@keyframes chPop { from { opacity: 0; } }
.charts-in .ch-bar, .charts-in .ch-grow { transform-box: fill-box; transform-origin: bottom; animation: chBar .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + .1s); }
@keyframes chBar { from { transform: scaleY(0); opacity: .2; } }

/* ═════ Parallaxe au survol (souris) ═════ */
.par.par { transform: perspective(1000px) rotateX(calc(var(--py, 0) * -3deg)) rotateY(calc(var(--px, 0) * 4deg)) translateY(-4px); transition: transform .18s ease-out, border-color .3s; will-change: transform; }
.fcard, .cmini, .client-card, .g-item, .tile, .contact, .ph-grid > a, .cpanel .shoot { transition: transform .5s var(--ease-out), border-color .3s; }
.par img, .par video { transform: translate(calc(var(--px, 0) * -9px), calc(var(--py, 0) * -9px)) scale(1.07) !important; transition: transform .25s ease-out !important; }
/* reflet doux qui suit le curseur */
.fcard.par::before, .cmini.par::before, .client-card.par::before, .contact.par::before, .cpanel .shoot.par::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .06), transparent 45%); }
.contact, .cpanel .shoot { position: relative; }
/* grand mot en fond des en-têtes */
.ghost-word { transform: translate(calc(var(--hx, 0) * -16px), calc(var(--hy, 0) * -6px)); transition: transform .6s var(--ease-out); }
/* panneau redessiné (sélection d'une photo…) : rien ne se rejoue */
.sheet.no-anim { animation: none; }
#drawer.redraw img, #drawer.redraw video { animation: none !important; }
.pick img { animation: none; }
.pick { transition: box-shadow .2s, transform .15s, opacity .2s; }
.pick:active { transform: scale(.97); }

/* ——— OS en ligne : connexion des services ——— */
.connect-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 560px; }
.connect-card h3 { margin: 0; font-weight: 300; font-size: 26px; letter-spacing: -.02em; }
.connect-card p { margin: 0; }
.md-body { white-space: normal; overflow-wrap: anywhere; }

/* Aperçu de l'espace client (équipe) */
.preview-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; margin: 0 -16px 8px; background: rgba(227, 160, 74, .12); border-bottom: 1px solid rgba(227, 160, 74, .35); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--st-pending); }
.preview-mode .sw-btn, .preview-mode .tile .actions button, .preview-mode [data-like], .preview-mode #lbAnnot { opacity: .45; cursor: not-allowed; }
.see-space { margin-left: 8px; }

/* Finance sur téléphone : rien ne doit dépasser la largeur de l'écran (sinon le téléphone dézoome la page) */
.g-top { flex-wrap: wrap; gap: 8px; }
.g-top .pill { white-space: normal; max-width: 100%; line-height: 1.4; }
.view { min-width: 0; }
@media (max-width: 820px) {
  .g-top .pill { border: 0; background: none; padding: 0; font-size: 10px; color: var(--muted); }
}

/* ——— Téléphone : pas de zoom automatique ———
   iOS zoome sur tout champ écrit en moins de 16 px, et sur un double tap : on évite les deux */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
button, a, label, .pick, .g-item, .tile, .chip, .seg button { touch-action: manipulation; }
@media (max-width: 820px) {
  input, textarea, select, .input, .cmd input, .tcard.add input, .add-task input,
  input[type="date"].input, input[type="time"].input, input[type="number"].input { font-size: 16px !important; }
  .tcard.add input { text-transform: none; letter-spacing: 0; }
}
@media (max-width: 820px) {
  select, select.input, .shoot-select { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--sans) !important; }
}
