/* Style inspiré de l'identité Nohée : bleu canard, bordeaux, fond rosé et lignes pêche. */
:root {
  --teal: #0f4c5c;
  --teal-2: #1d6577;
  --teal-soft: #e3eef0;
  --plum: #7c1f4a;
  --plum-soft: #f6e3ea;
  --peach: #f1c9b6;
  --peach-soft: #fbece4;
  --bg: #fcf7f5;
  --card: #ffffff;
  --text: #133b47;
  --muted: #5f7880;
  --line: #e7dcd7;
  --grid-line: #cfd9dc;
  --ok: #2e7d5b;
  --warn: #b26b00;
  --warn-soft: #fff3df;
  --err: #b42318;
  --err-soft: #fde8e6;
  --holiday: #fdf0d8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 76, 92, 0.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* iPhone : pas de grossissement automatique du texte, et jamais de défilement horizontal de la page */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--teal); }

/* ---------- en-tête ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-in {
  max-width: 1500px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 30px; color: var(--teal); letter-spacing: -0.5px; line-height: 1;
}
.brand-sub { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav button {
  background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal);
}
.nav button:hover { background: var(--teal-soft); }
.nav button.active { background: var(--teal); color: #fff; }
.nav button.logout { color: var(--plum); }

main { max-width: 1500px; margin: 0 auto; padding: 20px; }
h1, h2, h3 { color: var(--teal); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--teal); background: #fff; color: var(--teal);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--teal-soft); }
.btn.primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn.primary:hover { background: #64173b; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.teal:hover { background: var(--teal-2); }
.btn.ghost { border-color: transparent; }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn.danger:hover { background: var(--err-soft); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--teal); font-size: 18px;
}
.icon-btn:hover { border-color: var(--teal); }

/* ---------- cartes / formulaires ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
label.f { display: block; font-weight: 600; font-size: 13px; margin-bottom: 12px; color: var(--teal); }
label.f input, label.f select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; color: var(--text);
}
label.f input:focus, label.f select:focus, input:focus, select:focus { outline: 2px solid var(--teal-2); outline-offset: 1px; border-color: transparent; }
.pw-wrap { position: relative; display: block; }
label.f .pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(calc(-50% + 2px)); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: flex; }
.pw-eye:hover { color: var(--teal); background: var(--teal-soft); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.error-msg { color: var(--err); font-weight: 600; margin: 8px 0; }

/* ---------- connexion ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth { width: 100%; max-width: 400px; text-align: center; }
.auth .logo { font-size: 52px; display: block; margin-bottom: 4px; }
.auth form { text-align: left; margin-top: 20px; }
.auth .btn { width: 100%; justify-content: center; padding: 11px; }

/* ---------- barre d'outils du planning ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-title { font-size: 20px; font-weight: 800; color: var(--teal); min-width: 0; }
.week-title small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.toolbar .spacer { flex: 1; }
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.draft { background: #eef1f2; color: #55707a; }
.status.published { background: #e2f3ea; color: var(--ok); }
.status.modified { background: var(--warn-soft); color: var(--warn); }
.date-pick { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------- grille ---------- */
.grid-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table.grid { border-collapse: collapse; width: 100%; min-width: 1150px; font-size: 13px; }
.grid th, .grid td { border: 1px solid var(--grid-line); text-align: center; vertical-align: middle; }
.grid thead th { background: var(--teal); color: #fff; font-weight: 700; padding: 6px 4px; }
.grid thead tr:nth-child(2) th { background: #dbe7ea; color: var(--teal); font-size: 11px; font-weight: 700; padding: 3px; }
.grid .who-h { width: 210px; text-align: left; padding-left: 12px; }
.grid .day-h { line-height: 1.2; }
.grid .day-h .dname { display: block; font-size: 14px; }
.grid .day-h .dhours { display: block; font-size: 11px; opacity: 0.85; font-weight: 500; }
.grid .day-h .dbadge, .grid .day-h .dnote { display: inline-block; margin-top: 2px; font-size: 10px; background: var(--peach); color: var(--plum); border-radius: 999px; padding: 0 7px; font-weight: 800; }
.grid .day-h .dnote { background: #fff; color: var(--teal); }
.grid .day-h.is-holiday { background: var(--plum); }
.grid .day-h.is-today { box-shadow: inset 0 -4px 0 var(--peach); }
.grid.editable .day-h { cursor: pointer; }
.grid.editable .day-h:hover { background: var(--teal-2); }
.grid.editable .day-h.is-holiday:hover { background: #64173b; }
.grid .tot-h { width: 58px; }
.grid td.who { text-align: left; padding: 6px 10px; white-space: nowrap; }
.grid td.who .role { font-weight: 700; color: var(--teal); }
.grid td.who .name { font-weight: 500; }
.grid td.who.sub { font-size: 12px; color: var(--muted); padding-left: 22px; }
.grid td.who.sub em { font-style: italic; }
.grid tr.row-work td { border-top: 2px solid #b9cbd0; }
.grid tr.row-ast td { background: #f8fafb; }
.grid tr.row-ast td.who { background: #f8fafb; }
.grid td.c { height: 40px; min-width: 56px; padding: 2px; line-height: 1.15; }
.grid .slot { display: block; font-variant-numeric: tabular-nums; font-size: 12px; padding: 1px 0; }
.grid td.ast .slot { display: inline-block; margin: 0 4px; color: var(--plum); font-weight: 600; }
.grid td.mark { font-weight: 700; font-size: 12px; color: var(--muted); background: #f3f4f4; letter-spacing: 0.03em; }
.grid td.mark-jfc { background: var(--holiday); color: var(--warn); }
.grid td.mark-cp, .grid td.mark-recup { background: var(--teal-soft); color: var(--teal); }
.grid td.mark-maladie { background: var(--plum-soft); color: var(--plum); }
.grid .mini-mark { display: block; font-size: 10px; color: var(--warn); font-weight: 700; }
.grid td.flag { box-shadow: inset 0 0 0 2px var(--err); background: var(--err-soft); }
.grid td.tot { font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.grid td.tot.over { color: var(--plum); }
.grid td.tot.under { color: var(--warn); }
.grid.editable td.c { cursor: pointer; }
.grid.editable td.c:hover, .grid.editable td.c:focus { background: var(--peach-soft); outline: none; }
.grid tr.is-me td { background: #fff8e8; }
.grid td.empty { padding: 30px; color: var(--muted); }
/* colonne des noms figée à gauche quand on fait défiler les jours */
.grid th.who-h, .grid td.who { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 2px 0 0 var(--grid-line); }
.grid th.who-h { background: var(--teal); z-index: 3; }
.grid tr.row-ast td.who { background: #f8fafb; }
.grid tr.is-me td.who { background: #fff8e8; }
.grid .hd-short { display: none; }

/* ---------- alertes ---------- */
.alerts { margin-top: 18px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alert-list li { padding: 8px 12px; border-radius: 10px; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.alert-list li::before { font-weight: 900; flex: none; width: 18px; text-align: center; }
.alert-list li.error { background: var(--err-soft); color: #7a1a12; }
.alert-list li.error::before { content: '!'; color: var(--err); }
.alert-list li.warn { background: var(--warn-soft); color: #6d4300; }
.alert-list li.warn::before { content: '!'; color: var(--warn); }
.alert-list li.info { background: var(--teal-soft); color: var(--teal); }
.alert-list li.info::before { content: 'i'; }
.alert-list li.recup { background: var(--peach-soft); color: var(--plum); }
.alert-list li.recup::before { content: '★'; }
.all-good { color: var(--ok); font-weight: 700; }
.alert-list .atext { flex: 1; }
.alert-list .ign { flex: none; border: 0; background: rgba(255, 255, 255, 0.7); color: inherit; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; cursor: pointer; opacity: 0.75; }
.alert-list .ign:hover { opacity: 1; background: #fff; }
.undo-group { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.hist-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.hist-list li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.hist-list .h-when { flex: none; width: 92px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-list .h-label { flex: 1; font-weight: 600; }
.hist-list li.undone .h-label { color: var(--muted); text-decoration: line-through; }
.hist-list li.undone em { text-decoration: none; display: inline-block; }
.alerts-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- fenêtres (modales) ---------- */
dialog {
  border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  box-shadow: 0 20px 60px rgba(15, 76, 92, 0.25); color: var(--text);
}
dialog::backdrop { background: rgba(19, 59, 71, 0.45); }
.dlg-head { padding: 18px 22px 8px; }
.dlg-head h2 { margin: 0; }
.dlg-head p { margin: 4px 0 0; color: var(--muted); }
.dlg-body { padding: 8px 22px 12px; }
.dlg-foot { padding: 12px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.dlg-foot .left { margin-right: auto; }
.section-t { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; color: var(--plum); margin: 14px 0 8px; }
.slot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.slot-row .lbl { width: 92px; font-weight: 700; font-size: 14px; color: var(--teal); }
.slot-row input[type=time] { padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 112px; }
.slot-row .arrow { color: var(--muted); }
.slot-row select.tsel { padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; cursor: pointer; }
.half { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 2px; margin-bottom: 8px; }
.half-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.half-top .lbl { width: 92px; font-weight: 800; color: var(--teal); }
.half-top .presets { margin: 0; }
.chip-off { color: var(--muted); }
.chip.suggest { border-color: var(--plum); color: var(--plum); }
.chip-off.on { background: var(--muted); border-color: var(--muted); color: #fff; }
.slot-row .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 8px; }
.slot-row .x:hover { background: var(--err-soft); color: var(--err); }
.slot-row .next-day { font-size: 12px; color: var(--plum); font-weight: 600; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--teal); }
.chip:hover { border-color: var(--teal); background: var(--teal-soft); }
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.week-check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; cursor: pointer; }
.week-check:hover { background: var(--bg); }
.week-check .status { margin-left: auto; font-size: 12px; padding: 2px 9px; }

/* ---------- équipe ---------- */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.list tr.inactive td { opacity: 0.5; }
table.list tr.me-row td { background: var(--peach-soft); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--teal-soft); color: var(--teal); }
.pill.plum { background: var(--plum-soft); color: var(--plum); }
.order-btns { display: inline-flex; gap: 2px; }
.order-btns button { border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; width: 26px; height: 26px; color: var(--teal); }

/* ---------- réglages ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.hours-table td:first-child { font-weight: 700; width: 160px; }
.hours-table input[type=time] { padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; }
.share-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-box input { flex: 1 1 320px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-family: ui-monospace, monospace; font-size: 13px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }

/* ---------- vue employé ---------- */
.tabs { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.tabs button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--teal); }
.tabs button.on { background: var(--teal); color: #fff; }
.personal { display: grid; gap: 8px; max-width: 640px; }
.personal-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.personal-sum > div { flex: 1 1 140px;background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.personal-sum strong { display: block; font-size: 24px; color: var(--teal); }
.personal-sum span { color: var(--muted); font-size: 13px; }
.pday { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; align-items: center; }
.pday.off { background: transparent; }
.pday.today { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum); }
.pdate { width: 46px; text-align: center; flex: none; }
.pdn { display: block; font-size: 12px; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.pdd { display: block; font-size: 22px; font-weight: 800; color: var(--teal); line-height: 1.1; }
.pbody { flex: 1; display: grid; gap: 4px; }
.pline { font-size: 17px; font-weight: 700; color: var(--teal); }
.pline.muted { color: var(--muted); font-weight: 500; font-size: 15px; }
.pline .sep { font-weight: 500; color: var(--muted); font-size: 13px; margin: 0 8px; }
.pline.ast { font-size: 14px; color: var(--plum); font-weight: 600; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); justify-self: start; }
.tag-holiday { background: var(--holiday); color: var(--warn); }
.tag-ast { background: var(--plum-soft); color: var(--plum); }
.who-pick select { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; color: var(--teal); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .logo { font-size: 44px; display: block; margin-bottom: 10px; }
.signed { margin-top: 10px; font-size: 13px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--teal); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: all 0.2s; z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--err); }
.hidden { display: none !important; }

/* ---------- impression ---------- */
/* Toutes les tailles imprimées sont en em : la taille de base (--pfs) est calculée au moment
   d impression pour remplir la page au mieux selon le nombre de personnes (fitPrint, common.js). */
#print-area { display: none; font-size: var(--pfs, 10px); color: #000; background: #fff; }
#print-area.measuring { display: block; position: absolute; left: -10000px; top: 0; width: 281mm; }
#print-area .print-week { break-inside: avoid; page-break-inside: avoid; }
#print-area .print-week + .print-week { margin-top: 1.6em; }
#print-area .print-week.break { break-before: page; page-break-before: always; margin-top: 0; }
#print-area .print-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5em; }
#print-area .print-head .logo { font-size: 1.8em; }
#print-area .print-head h2 { font-size: 1.3em; margin: 0; }
#print-area table.grid { min-width: 0; width: 100%; font-size: 1em; line-height: 1.15; }
#print-area .grid th, #print-area .grid td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#print-area .grid thead th { background: #1f4e79; color: #fff; padding: 0.2em 0.25em; }
#print-area .grid thead tr:nth-child(2) th { background: #d9e2ec; color: #000; font-size: 0.75em; padding: 0.1em; }
#print-area .grid .day-h.is-holiday { background: #7c1f4a; }
#print-area .grid .day-h .dname { font-size: 1.1em; }
#print-area .grid .day-h .dhours, #print-area .grid .day-h .dbadge, #print-area .grid .day-h .dnote { font-size: 0.75em; margin-top: 0; }
#print-area .grid th.who-h { position: static; width: auto; font-size: 0.9em; padding-left: 0.4em; }
#print-area .grid td.who { position: static; box-shadow: none; padding: var(--prp, 0.15em) 0.4em; white-space: nowrap; }
#print-area .grid td.who.sub { font-size: 0.8em; padding-left: 1.2em; }
#print-area .grid td.c { height: auto; min-width: 0; padding: var(--prp, 0.15em) 0.1em; }
#print-area .grid .slot { display: block; font-size: 1em; padding: 0; white-space: nowrap; }
#print-area .grid .slot br { display: none; }
#print-area.wrap2 .grid .slot br { display: inline; } /* horaires sur deux lignes : texte plus grand possible */
#print-area .grid td.ast .slot { display: inline-block; margin: 0 0.2em; }
#print-area .grid .tot-h { width: auto; }
#print-area .grid td.flag { box-shadow: none; background: none; }
#print-area .grid tr.is-me td { background: none; }
#print-area .grid tr.row-work td { border-top-width: 1.5px; }
#print-area .print-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 0.5em; font-size: 0.9em; }
#print-area .print-sign .box { border: 1px solid #999; width: 60mm; height: 3.2em; padding: 0.3em; }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body { background: #fff; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
}

/* iPhone : Safari zoome sur un champ dont le texte fait moins de 16px (et la page reste zoomée).
   On force 16px sur tous les champs des écrans tactiles. */
@media (pointer: coarse) {
  input, select, textarea, label.f input, label.f select, .slot-row select.tsel, .who-pick select, .date-pick { font-size: 16px; }
}

@media screen and (max-width: 700px) {
  main { padding: 14px; }
  .topbar-in { padding: 10px 14px; gap: 10px; }
  .logo { font-size: 26px; }
  .nav { margin-left: 0; width: 100%; }
  .nav button { padding: 6px 9px; font-size: 12px; }
  .week-title { font-size: 17px; }
  .hours-table td:first-child { width: auto; }

  /* barre du planning plus compacte */
  .toolbar { gap: 6px; margin-bottom: 12px; }
  .toolbar .week-title { flex: 1 1 auto; order: -1; width: calc(100% - 90px); }
  .toolbar .week-nav { order: -1; }
  .toolbar .date-pick { display: none; }
  .toolbar .spacer { display: none; }
  .toolbar .btn { padding: 6px 11px; font-size: 13px; }
  .toolbar .status { font-size: 12px; padding: 3px 9px; }
  .toolbar .icon-btn { width: 34px; height: 34px; }

  /* grille : prénom seul, colonnes plus serrées */
  .grid-wrap table.grid { min-width: 0; font-size: 11px; }
  .grid-wrap .grid .who-h { width: 78px; padding-left: 6px; font-size: 11px; }
  .grid-wrap .grid .hd-long { display: none; }
  .grid-wrap .grid .hd-short { display: inline; }
  .grid-wrap .grid td.who { padding: 4px 6px; max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
  .grid-wrap .grid td.who .role, .grid-wrap .grid td.who .ln, .grid-wrap .grid td.who .ast-role { display: none; }
  .grid-wrap .grid td.who .name { font-weight: 700; }
  .grid-wrap .grid td.who.sub { padding-left: 6px; font-size: 10px; }
  .grid-wrap .grid td.c { min-width: 44px; height: 36px; }
  .grid-wrap .grid .slot { font-size: 11px; }
  .grid-wrap .grid .day-h .dname { font-size: 12px; }
  .grid-wrap .grid .day-h .dhours { font-size: 10px; }
  .grid-wrap .grid thead tr:nth-child(2) th { font-size: 10px; }
  .grid-wrap .grid .tot-h { width: 40px; font-size: 11px; }
}
