/* Studio Boubool — la grammaire du site (papier, encre, un accent teal, Manrope) appliquée à un outil de travail. */
:root {
  --paper: #fafaf7; --paper-2: #f1f1ec; --ink: #0f1b18; --ink-2: #5c6b66; --ink-3: #9aa6a1; --line: #e6e8e3;
  --teal: #009888; --teal-ink: #00796b; --teal-soft: #e0f3f0; --dark: #0c1512;
  --food: #34c759; --act: #ff2d74; --sleep: #6e5cf6; --meta: #00c7b5;
  --amber: #a85a17; --amber-soft: #fbead9; --red: #b3261e; --red-soft: #f9e3e1; --green: #1e7f4e; --green-soft: #e3f3e8; --blue: #2b62c9; --blue-soft: #e3ebf9;
  --r: 14px; --r-s: 9px; --shadow: 0 1px 2px rgba(15,27,24,.05), 0 8px 24px -16px rgba(15,27,24,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-ink); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; } h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; } h3 { font-size: 13.5px; font-weight: 800; margin: 14px 0 6px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 8px; } code { font-family: "IBM Plex Mono", monospace; font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; } code.sel { user-select: all; }
.muted { color: var(--ink-2); } .small { font-size: 12.5px; } .ok { color: var(--green); } .err { color: var(--red); font-weight: 700; } .late { color: var(--amber); font-weight: 700; } .mono { font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.nowrap { white-space: nowrap; } .grow { flex: 1; } .inline { display: inline; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 700; margin-bottom: 4px; }
.lede { color: var(--ink-2); font-size: 14px; max-width: 70ch; }

/* ---- coque ---- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); padding: 4px 6px; } .brand img { border-radius: 9px; } .brand b { color: var(--teal); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; } .side nav a i { font-style: normal; width: 18px; text-align: center; color: var(--ink-3); }
.side nav a:hover { background: var(--paper); text-decoration: none; } .side nav a.on { background: var(--teal-soft); color: var(--teal-ink); } .side nav a.on i { color: var(--teal); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.jday { background: var(--dark); color: #fff; border-radius: 12px; padding: 12px 14px; } .jday b { display: block; font-size: 22px; letter-spacing: -.02em; } .jday small { color: rgba(255,255,255,.6); font-size: 11.5px; }
.me { display: flex; align-items: center; gap: 10px; font-size: 13px; } .me small { display: block; color: var(--ink-3); font-size: 11.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; } .avatar.sm { width: 24px; height: 24px; font-size: 10px; vertical-align: middle; }
.main { padding: 28px 32px 60px; max-width: 1240px; width: 100%; } .main.wide { max-width: none; }
.ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; } .ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flash { padding: 10px 14px; border-radius: var(--r-s); margin-bottom: 16px; background: var(--green-soft); color: var(--green); font-weight: 600; } .flash.warn { background: var(--amber-soft); color: var(--amber); }

/* ---- composants ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); } .card + .card { margin-top: 14px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .card-h h2 { margin: 0 0 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; } .grid2 > .card { margin-top: 0; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack.compact { gap: 8px; } .stack > .card { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; } .row > label { flex: 1; min-width: 120px; } .row.wrap > * { flex: 1 1 140px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
input, select, textarea { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--paper-2); text-decoration: none; } .btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; } .btn.primary:hover { background: var(--teal-ink); } .btn.sm { padding: 6px 10px; font-size: 12.5px; } .btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-ink); cursor: pointer; font-weight: 600; } button.link.danger, .danger { color: var(--red); }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); vertical-align: middle; }
.badge.teal { background: var(--teal-soft); color: var(--teal-ink); } .badge.green { background: var(--green-soft); color: var(--green); } .badge.amber { background: var(--amber-soft); color: var(--amber); } .badge.blue { background: var(--blue-soft); color: var(--blue); } .badge.grey { background: var(--paper-2); } .badge.muted { opacity: .55; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); margin: 1px 2px 1px 0; } .tag.on { background: var(--teal-soft); color: var(--teal-ink); } .tag small { opacity: .6; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--teal); color: var(--teal-ink); margin: 2px 4px 2px 0; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .chips legend { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.chip-check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; margin: 0; } .chip-check input { width: auto; margin: 0; } .chip-check:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); }
.ch { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--paper-2); margin-right: 3px; } .ch-instagram { background: #fde7ef; color: #b3195f; } .ch-tiktok { background: #e8e8ea; color: #111; } .ch-linkedin { background: #dfeaf7; color: #0a66c2; } .ch-facebook { background: #e3ebf9; color: #1a4fb8; } .ch-presse { background: var(--teal-soft); color: var(--teal-ink); } .ch-reddit { background: #fde9df; color: #c2410c; } .ch-dietticiens, .ch-dieteticiens { background: var(--green-soft); color: var(--green); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); vertical-align: middle; } .dot.warn { background: #e0a100; } .dot.error { background: var(--red); } .dot.info { background: var(--blue); } .dot.ok { background: var(--green); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); } .table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .table tr:last-child td { border-bottom: 0; } .table.small { font-size: 12.5px; } .table tr.late td:first-child { color: var(--amber); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; } .tabs a { padding: 8px 14px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs a.on { color: var(--teal-ink); border-color: var(--teal); } .tabs a:hover { text-decoration: none; color: var(--ink); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; } .filters select, .filters input { width: auto; padding: 7px 10px; font-size: 13px; } .filters .tags { margin-left: auto; }
.list { list-style: none; } .list li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .list li:last-child { border-bottom: 0; } .list.small li { padding: 4px 0; }
.feed { list-style: none; font-size: 13px; } .feed li { padding: 5px 0; border-bottom: 1px dashed var(--line); } .feed li:last-child { border: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow); } .tile b { font-size: 26px; letter-spacing: -.03em; line-height: 1.1; } .tile span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; } .tile:hover { text-decoration: none; border-color: var(--teal); }
.tile.amber b { color: var(--amber); } .tile.error b { color: var(--red); } .tile.green b { color: var(--green); } .tile.teal b { color: var(--teal); }
.hint { background: var(--amber-soft); border-radius: var(--r-s); padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.phase { padding: 10px 0; border-bottom: 1px solid var(--line); } .phase:last-of-type { border: 0; } .phase p { margin: 4px 0 0; color: var(--ink-2); }
.doc-row { padding: 8px 0; border-bottom: 1px solid var(--line); } .doc-row:last-child { border: 0; }
.pub-row { align-items: flex-start !important; } .pub-row .date { min-width: 96px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; flex-direction: column; } .pub-row .date small { font-weight: 500; color: var(--ink-3); } .pub-row .date.today { color: var(--teal); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; } .thumbs figure { width: 92px; font-size: 11px; } .thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; } .thumbs .doc { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; background: var(--paper-2); border-radius: 8px; font-size: 10px; padding: 6px; text-align: center; }
.thumbs figcaption { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline { list-style: none; } .timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); position: relative; font-size: 13px; } .timeline li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); } .timeline .when { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.prose { font-size: 15px; line-height: 1.65; max-width: 76ch; } .prose h2 { font-size: 22px; margin: 26px 0 10px; } .prose h3 { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 20px 0 8px; } .prose h4 { margin: 16px 0 6px; } .prose p { margin-bottom: 12px; } .prose ul, .prose ol { margin: 0 0 12px 22px; } .prose blockquote { border-left: 3px solid var(--teal); padding: 6px 14px; color: var(--ink-2); margin: 12px 0; background: var(--paper); border-radius: 0 8px 8px 0; } .prose pre { background: var(--paper-2); padding: 12px; border-radius: 8px; overflow: auto; font-size: 12.5px; } .prose hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; } .prose table { margin: 12px 0; }
.pdf { width: 100%; height: 80vh; border: 0; border-radius: 8px; }
.review-out ul.issues { list-style: none; } .issues li { padding: 7px 10px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 8px 8px 0; margin-bottom: 6px; font-size: 13px; } .issues li.warn { border-color: #e0a100; background: #fff6d9; } .issues li.error { border-color: var(--red); background: var(--red-soft); } .issues li small { color: var(--ink-2); }
.review-out.compact { margin: -4px 0 12px; } .review-out.compact li { padding: 4px 8px; font-size: 12.5px; margin-bottom: 4px; }
.danger-zone { margin-top: 8px; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--teal)); border-radius: var(--r-s); padding: 10px 12px; color: var(--ink); display: flex; flex-direction: column; } .cat b { font-size: 20px; } .cat span { font-weight: 700; font-size: 13px; } .cat small { color: var(--ink-3); font-size: 11.5px; } .cat.on { background: var(--teal-soft); } .cat:hover { text-decoration: none; border-color: var(--teal); }
.table.contacts td { font-size: 13px; }
dialog.picker { border: 0; background: transparent; padding: 0; max-width: 720px; width: 90vw; } dialog::backdrop { background: rgba(15,27,24,.4); }

/* ---- calendrier ---- */
.cal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .cal-h h2 { margin: 0; text-transform: capitalize; font-size: 18px; } .cal-h .legend { margin-left: auto; display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); } .legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .dow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 0 6px 4px; }
.cell { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 108px; min-width: 0; padding: 4px; display: flex; flex-direction: column; gap: 3px; } .cell.out { background: transparent; opacity: .45; } .cell.today { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); } .cell.drop { background: var(--teal-soft); }
.daynum { font-size: 12px; font-weight: 800; color: var(--ink-3); align-self: flex-end; padding: 2px 6px; border-radius: 6px; } .daynum:hover { background: var(--teal-soft); text-decoration: none; }
.ev { display: block; font-size: 11.5px; font-weight: 700; padding: 3px 6px; border-radius: 6px; background: var(--paper-2); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--ink-3); cursor: grab; } .ev:hover { text-decoration: none; filter: brightness(.97); }
.ev.st-idee { border-left-style: dashed; color: var(--ink-2); } .ev.st-brouillon { border-color: var(--ink-3); } .ev.st-a_valider { border-color: #e0a100; background: #fff6d9; } .ev.st-valide { border-color: var(--teal); background: var(--teal-soft); } .ev.st-programme { border-color: var(--blue); background: var(--blue-soft); } .ev.st-publie { border-color: var(--green); background: var(--green-soft); } .ev.st-annule { opacity: .4; text-decoration: line-through; }
.ev.action { font-style: italic; } p .ev, .legend .ev { display: inline-block; margin: 0 4px 0 0; cursor: default; }
i.k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--ink-3); vertical-align: middle; } .k-educatif { background: var(--teal); } .k-coulisses { background: var(--sleep); } .k-demo { background: var(--act); } .k-temoignage { background: var(--food); } .k-action { background: #e0a100; } .k-presse { background: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; } .wday { min-width: 0; } .wday { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px; min-height: 200px; } .wday.today { border-color: var(--teal); } .wday.drop { background: var(--teal-soft); } .wday h3 { margin: 0 0 8px; font-size: 12px; }
.wcard { display: block; border-radius: 8px; padding: 8px; margin-bottom: 6px; background: var(--paper); border-left: 3px solid var(--ink-3); color: var(--ink); font-size: 12.5px; cursor: grab; } .wcard small { display: block; color: var(--ink-3); font-size: 11px; } .wcard b { display: block; margin: 2px 0; } .wcard span { display: block; font-size: 11px; color: var(--ink-2); } .wcard:hover { text-decoration: none; }
.wcard.st-a_valider { border-color: #e0a100; } .wcard.st-valide { border-color: var(--teal); } .wcard.st-programme { border-color: var(--blue); } .wcard.st-publie { border-color: var(--green); background: var(--green-soft); }
.wcard.ghost { border: 1px dashed var(--teal); background: transparent; color: var(--teal-ink); } .wcard.ghost b { color: var(--teal-ink); }

/* ---- kanban ---- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .kcol { background: var(--paper-2); border-radius: var(--r); padding: 10px; min-height: 200px; } .kcol h3 { margin: 4px 4px 10px; } .kcol.drop { outline: 2px dashed var(--teal); }
.kcard { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); font-size: 13px; cursor: grab; border-left: 3px solid var(--ink-3); } .kcard.p1 { border-left-color: var(--red); } .kcard.p3 { border-left-color: var(--line); } .kcard.late { border-left-color: var(--amber); }
.kcard header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .kcard b { display: block; } .kcard p { color: var(--ink-2); margin: 4px 0 0; font-size: 12.5px; } .kcard footer { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; } .kcard small a { font-weight: 600; }
details.edit summary { font-size: 11.5px; color: var(--teal-ink); cursor: pointer; font-weight: 700; list-style: none; } details.edit[open] summary { margin-bottom: 8px; }

/* ---- médiathèque ---- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; } .media { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; } .media img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--paper-2); } .media .doc { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--paper-2); font-weight: 800; color: var(--ink-3); } .media figcaption { padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; } .media figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .media .row { gap: 8px; }

/* ---- studio ---- */
.studio { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; } .controls .card + .card { margin-top: 12px; }
.stage { position: sticky; top: 20px; } .canvas-wrap { background: repeating-conic-gradient(#f3f3ef 0 25%, #fff 0 50%) 0 0/24px 24px; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; justify-content: center; } #st-canvas { max-width: 100%; max-height: 78vh; height: auto; width: auto; box-shadow: 0 20px 50px -20px rgba(15,27,24,.35); border-radius: 6px; }
.spark { height: 60px; margin-top: 10px; }

/* ---- pages nues ---- */
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 24px; } .bare-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; width: 100%; max-width: 420px; box-shadow: var(--shadow); } .bare-card .brand { margin-bottom: 18px; padding: 0; } .bare-card h1 { margin-bottom: 6px; } .bare-card .btn { width: 100%; justify-content: center; }

@media (max-width: 1000px) { .grid2, .grid-form, .studio { grid-template-columns: 1fr; } .kanban { grid-template-columns: repeat(2, 1fr); } .week { grid-template-columns: repeat(2, 1fr); } .stage { position: static; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; } .side nav { flex-direction: row; flex-wrap: wrap; } .side-foot { margin: 0; flex-direction: row; align-items: center; } .main { padding: 18px 16px 60px; } .cell { min-height: 60px; } .ev { font-size: 0; padding: 4px; } .ev i.k { margin: 0; } .tiles { grid-template-columns: repeat(2, 1fr); } }
@media print { .side, .ph-actions, .filters, .tabs { display: none; } .shell { display: block; } }
