:root {
  color-scheme: light;
  --ink: #111110;
  --paper: #F2F1EE;
  --soft: #F8F7F5;
  --card: #FFF;
  --ph: #DCDBD5;
  --green: #3DDC84;
  --red: #E5483B;
  --m: #ffd0a9;
  --line-10: rgba(17, 17, 16, .1);
  --ink-60: rgba(17, 17, 16, .6);
  --r-pill: 999px;
  --r-card: 22px;
  --r-card-sm: 18px;
  --titles: 'Golos Text', system-ui, sans-serif;
  --text: 'Radio Canada', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--text); }
h1, h2, h3 { font-family: var(--titles); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 5vw, 40px); }
h2 { font-size: 20px; }
h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-60); }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.bar { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-bottom: 1px solid var(--line-10); background: var(--paper); position: sticky; top: 0; z-index: 2; flex-wrap: wrap; }
.brand { font: 700 20px var(--titles); text-decoration: none; margin-right: 16px; }
.bar nav { display: flex; gap: 4px; flex: 1; }
.bar nav a { padding: 6px 14px; border-radius: var(--r-pill); text-decoration: none; }
.bar nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.who { color: var(--ink-60); font-size: 14px; }

.main { max-width: 980px; margin: 0 auto; padding: 32px 24px 160px; display: grid; gap: 24px; }
.narrow { max-width: 420px; margin: 8vh auto 0; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.back { color: var(--ink-60); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--ink); }
.muted { color: var(--ink-60); }
.small { font-size: 14px; }

.card { background: var(--card); border-radius: var(--r-card); padding: 24px; display: grid; gap: 16px; }
.card.soft { background: var(--soft); }
.stack { display: grid; gap: 12px; }

label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
input, select { font: inherit; color: inherit; background: var(--soft); border: 1px solid var(--line-10); border-radius: 12px; padding: 10px 14px; width: 100%; min-width: 0; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, .zone:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > label { flex: 1 1 200px; }

button, .button { font: 500 15px var(--text); color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-pill); padding: 9px 18px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
button:disabled { opacity: .5; cursor: default; }
.ghost { background: transparent; color: var(--ink); border-color: var(--line-10); }
.ghost:hover { border-color: var(--ink); }
.danger { color: var(--red); }
.danger:hover { border-color: var(--red); }
.tiny { padding: 5px 12px; font-size: 14px; }

.alert { background: #fde4e1; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.notice { background: var(--m); border-radius: var(--r-card-sm); padding: 16px; display: grid; gap: 8px; }
.copy { display: flex; gap: 8px; flex-wrap: wrap; }
.copy input { flex: 1 1 240px; background: var(--card); font-size: 14px; }

.spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.space { background: var(--card); border-radius: var(--r-card-sm); padding: 18px; text-decoration: none; display: grid; gap: 10px; border: 1px solid transparent; }
.space:hover { border-color: var(--ink); }
.space strong { font: 600 18px var(--titles); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--ph); }
.tag.a_valider { background: var(--m); }
.tag.production { background: var(--ink); color: var(--paper); }
.tag.livre { background: var(--green); }

.states { display: flex; gap: 6px; flex-wrap: wrap; }
.states button { background: var(--soft); color: var(--ink); border-color: var(--line-10); }
.states button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.files { display: grid; gap: 20px; }
.group { display: grid; gap: 4px; }
details summary { cursor: pointer; padding: 6px 0; }
.file { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-10); flex-wrap: wrap; }
.file .name { font-weight: 500; overflow-wrap: anywhere; }
.file > div:first-child { flex: 1 1 240px; min-width: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.zone { border: 1.5px dashed var(--ph); border-radius: var(--r-card-sm); padding: 24px; display: grid; gap: 12px; justify-items: start; background: var(--soft); }
.zone.over { border-color: var(--ink); background: var(--m); }
.zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zone .row { width: 100%; align-items: center; }
.zone select { width: auto; background: var(--card); }

.people { width: 100%; border-collapse: collapse; font-size: 15px; }
.people th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink-60); padding: 0 12px 8px 0; }
.people td { border-top: 1px solid var(--line-10); padding: 10px 12px 10px 0; overflow-wrap: anywhere; }
.people td:last-child { padding-right: 0; }
.scroll { overflow-x: auto; }

.envois { position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); background: var(--ink); color: var(--paper); border-radius: var(--r-card-sm); padding: 14px 16px; display: grid; gap: 12px; max-height: 50vh; overflow: auto; z-index: 3; }
.envoi { display: grid; gap: 4px; font-size: 14px; }
.envoi .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.envoi .name { overflow-wrap: anywhere; font-weight: 500; }
.envoi button { background: transparent; color: var(--paper); border: 0; padding: 0; font-size: 13px; text-decoration: underline; }
.envoi .state { opacity: .75; font-size: 13px; }
.envoi.erreur .state { opacity: 1; color: var(--m); }
progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: var(--r-pill); overflow: hidden; background: rgba(255, 255, 255, .2); }
progress::-webkit-progress-bar { background: rgba(255, 255, 255, .2); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }

.wide { gap: 16px; }
.card.urgent { outline: 2px solid var(--red); outline-offset: -2px; }
.tasks { display: grid; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-10); flex-wrap: wrap; }
.tasks .task:first-child { border-top: 0; padding-top: 0; }
.task input[type=checkbox], .check input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--ink); margin: 2px 0 0; padding: 0; }
.task .body { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.task .title { font-weight: 500; overflow-wrap: anywhere; }
.task.done .title { text-decoration: line-through; color: var(--ink-60); }
.task .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.task .actions { align-items: center; }
.task select, .task input[type=date] { width: auto; padding: 5px 10px; font-size: 14px; }
.steps { margin: 0; padding-left: 20px; }
.task .hour { flex: 0 0 56px; padding-top: 2px; }
.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.late { color: var(--red); font-weight: 500; }
.tag.sensible { background: var(--m); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.line { display: block; padding: 8px 0; border-top: 1px solid var(--line-10); text-decoration: none; overflow-wrap: anywhere; }
.line:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .bar { padding: 12px 16px; }
  .bar nav { flex-wrap: wrap; }
  .bar nav a { padding: 6px 12px; }
  .main { padding: 20px 16px 200px; }
  .card { padding: 18px; }
}
