/* Le cœur d'AFP Team (28/10/2026) : Today, Plan, Meeting, Projects, sur la maquette validée par Sami et Silmi
   (palette AFP HQ, cartes blanches arrondies, carte bleu nuit « Right now », Montserrat pour les titres).
   Toutes les classes commencent par hq- : style.css garde ses noms (.task, .check, .bar, .side…) pour les autres pages.
   Téléphone : < 760 px, une colonne, barre de navigation en bas. */
:root {
  --canvas: #f5f7fc; --paper: #fff; --paper-2: #f7f7f8; --faint: #9aa1b2; --line-strong: #cfd6e8;
  --blue-dark: #3355b8; --blue-light: #93b0ff; --blue-soft: #e8eeff; --navy: #16295e;
  --red: #c2443c; --red-soft: #fdecea; --green: #2f9e6b; --green-soft: #e6f6ee;
  --claude: #7c5cd6; --claude-soft: #f0ebff;
  --display: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; --body: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --r-lg: 22px; --hq-shadow: 0 18px 45px rgba(43,53,49,.08);
}
body { background: var(--canvas); }

/* ---------- boutons du cœur : la règle « button » de style.css (52 px, noir, marge) ne s'y applique pas ---------- */
.hq button, .hq-top button, .hq-bnav button, .hq-sentence-box button {
  font: inherit; color: inherit; min-height: 0; margin: 0; padding: 0; border: 0; background: none; border-radius: 0; cursor: pointer;
}
.hq button:disabled { opacity: .4; cursor: default; }
.hq button:active { transform: none; }
.hq h1, .hq h2, .hq h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; font-weight: 600; color: var(--ink); }
.hq a { color: inherit; }
.hq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px !important; border-radius: 12px !important;
  background: var(--paper) !important; border: 1px solid var(--line) !important; font-weight: 600; font-size: 14.5px; color: var(--ink) !important; white-space: nowrap; text-decoration: none;
}
.hq-btn.primary { background: var(--blue-dark) !important; color: #fff !important; border-color: var(--blue-dark) !important; }
.hq-btn.ghost { background: transparent !important; border-color: transparent !important; color: var(--blue-dark) !important; }
.hq-btn.small { padding: 6px 11px !important; border-radius: 10px !important; font-size: 13px; }

/* ---------- en-tête ---------- */
.bar.hq-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top)) max(24px, calc((100% - 1240px) / 2 + 24px)) 12px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent); border-bottom: 1px solid var(--line);
}
.hq-top .brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); color: var(--ink); min-height: 40px; }
.hq-top .brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.hq-top .brand .word { font: 700 18px var(--display); }
.hq-nav { display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.hq-nav a, .hq-bnav a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; }
.hq-nav a.on, .hq-bnav a.on { background: var(--blue-soft); color: var(--ink); font-weight: 600; }
.hq-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; }
.hq-top-r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.hq-me { display: inline-flex; }
.hq-menu { position: relative; }
.hq-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.hq-menu > summary::-webkit-details-marker { display: none; }
.hq-menu > summary svg { width: 16px; height: 16px; }
.hq-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--hq-shadow); display: grid; }
.hq-menu-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; }
.hq-menu-pop a:hover, .hq-menu-pop a[aria-current="page"] { background: var(--blue-soft); }
.hq-menu-pop a svg { width: 16px; height: 16px; color: var(--muted); }
.hq-menu-pop a small { margin-left: auto; color: var(--muted); }
.hq-bnav { display: none; }

/* ---------- largeur des pages du cœur ---------- */
main.hq-main { max-width: 1240px; padding: 0 24px 90px; }
main.hq-main.hq-full { max-width: none; padding: 0 18px 40px; }
.hq { color: var(--ink); font: 400 15px/1.45 var(--body); }

/* ---------- personnes ---------- */
.hq-who { display: inline-flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.hq-who button { padding: 8px 14px !important; border-radius: 10px !important; color: var(--muted) !important; display: flex; align-items: center; gap: 7px; }
.hq-who button.on { background: var(--blue-soft) !important; color: var(--ink) !important; font-weight: 600; }
.hq-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 700 10px var(--body); flex: none; }
.hq-dots { display: inline-flex; gap: 2px; }

/* ---------- cartes ---------- */
.hq-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--hq-shadow); }
.hq-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.hq-card-h h2 { font-size: 22px; }
.hq-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.hq-muted { color: var(--muted); font-weight: 500; font-size: 13px; }
.hq-kicker { font: 600 12px var(--body); letter-spacing: .08em; color: var(--blue-dark); }
.hq-kicker i { color: var(--orange); font-style: normal; margin: 0 6px; }
.hq-spread { display: flex; justify-content: space-between; gap: 10px; }
.hq-strong { font-weight: 600; margin-bottom: 10px; }
.hq-gap { margin-top: 20px; }

/* ---------- Today ---------- */
.hq-mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 56px 0 26px; }
.hq-mast h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 8px 0; }
.hq-mast p { margin: 0; color: var(--muted); }
.hq-score { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 20px; }
.hq-big { font: 700 46px/1 var(--display); padding-right: 26px; border-right: 1px solid var(--line); }
.hq-big small { font: 500 14px var(--body); color: var(--muted); }
.hq-bar { height: 10px; border-radius: 6px; background: #eceff6; overflow: hidden; display: flex; }
.hq-bar span { display: block; height: 100%; }
.hq-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.hq-legend b { color: var(--ink); }
.hq-grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.hq-col { display: grid; gap: 20px; min-width: 0; }
.hq-now { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 30px 28px; position: relative; overflow: hidden; }
.hq-now::after { content: ""; position: absolute; right: -90px; top: -40px; width: 260px; height: 260px; border-radius: 50%; border: 48px solid rgba(255,255,255,.05); pointer-events: none; }
.hq-now .hq-row { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.hq-live { font: 600 12px var(--body); letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.hq-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,103,47,.25); }
.hq-now h2 { color: #fff; font-size: clamp(26px, 3.3vw, 38px); line-height: 1.12; margin: 18px 0 14px; position: relative; z-index: 1; overflow-wrap: anywhere; }
.hq-now .hq-meta { font-size: 14px; opacity: .8; position: relative; z-index: 1; }
.hq-now .hq-bar { background: rgba(255,255,255,.18); margin: 12px 0 6px; position: relative; z-index: 1; }
.hq-now .hq-bar span { background: linear-gradient(90deg, var(--orange), var(--blue-light)); }
.hq-acts { display: flex; gap: 10px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.hq-acts button, .hq-acts .hq-act { padding: 11px 18px !important; border-radius: 12px !important; border: 1px solid rgba(255,255,255,.35) !important; color: #fff !important; font-weight: 600; text-decoration: none; }
.hq-acts .go { background: #fff !important; color: var(--navy) !important; border-color: #fff !important; }
.hq-now.free { background: #24345f; }

.hq-task { display: flex; gap: 12px; align-items: flex-start; padding: 13px 4px; border-top: 1px solid var(--line); }
.hq-task:first-of-type, .hq-card-h + .hq-sub + .hq-task { border-top: 0; }
.hq-task.slim { padding: 9px 0; }
.hq-check { width: 24px; height: 24px; border-radius: 7px !important; border: 1.5px solid var(--line-strong) !important; flex: none; display: grid; place-items: center; margin-top: 1px !important; background: var(--paper) !important; }
.hq-check.on { background: var(--green) !important; border-color: var(--green) !important; color: #fff; }
.hq-check.on::after { content: "✓"; font-size: 14px; font-weight: 700; }
.hq-t { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.hq-title { font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; text-decoration: none; display: block; }
.hq-task.done .hq-title, .hq-title.struck { text-decoration: line-through; color: var(--faint); }
.hq-info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.hq-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--blue-soft); color: var(--blue-dark); max-width: 100%; }
.hq-tag img { width: 14px; height: 14px; border-radius: 3px; }
.hq-tag.late, .hq-tag.hq-moved { background: var(--red-soft); color: var(--red); }
.hq-tag.prop { background: transparent; border: 1px dashed var(--blue); color: var(--blue-dark); }
.hq-tag.claude { background: var(--claude-soft); color: var(--claude); }
.hq-tag.review { background: var(--amber-bg); color: var(--amber-ink); }
.hq-code { font: 600 11px var(--body); color: var(--faint); letter-spacing: .02em; }
.hq-dur { font-weight: 600; font-size: 14px; white-space: nowrap; }
.hq-star { font-size: 19px; line-height: 1; color: var(--line-strong) !important; padding: 2px !important; }
.hq-star.on { color: var(--orange) !important; }
.hq-sched .hq-it { display: grid; grid-template-columns: 52px 14px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; text-decoration: none; color: inherit; }
.hq-sched .hq-it:first-child { border-top: 0; }
.hq-sched .hq-h { font-size: 13px; color: var(--muted); padding-top: 1px; }
.hq-pin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: 4px; }
.hq-sched .hq-title { font-size: 14px; }
.hq-sched .hq-info { font-size: 12px; margin-top: 3px; }
.hq-sched .past .hq-t { opacity: .45; }
.hq-sched .cur .hq-pin { border-color: var(--orange); background: var(--orange); }
.hq-sched .late .hq-pin { border-color: var(--red); }
.hq-sched .late .hq-h { color: var(--red); font-weight: 600; }
.hq-sched .ritual { background: repeating-linear-gradient(135deg, #fff7d6 0 8px, #fdf0b8 8px 16px); border-radius: 10px; padding-left: 6px; border-top-color: transparent; }
.hq-sched .ritual .hq-pin { border-color: #d8b425; }
.hq-sched .ritual .hq-title { color: var(--blue-dark); }
.hq-feed .hq-it { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.hq-feed .hq-it:first-child { border-top: 0; }
.hq-feed .hq-it > div { min-width: 0; overflow-wrap: anywhere; }
.hq-feed a { text-decoration: none; }
.hq-when { color: var(--faint); font-size: 12px; white-space: nowrap; margin-left: auto; }
.hq-team3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hq-pcard h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; margin-bottom: 10px; }
.hq-pcard h3 small { margin-left: auto; font: 500 13px var(--body); color: var(--muted); }
.hq-mini-now { background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.hq-mini-now small { opacity: .7; font-size: 12px; }
.hq-mini-now b { display: block; font: 600 16px/1.25 var(--display); margin-top: 3px; }
.hq-warn { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--orange-bg); border-left: 4px solid var(--orange); font-size: 14px; margin-top: 8px; }
.hq-warn > button { margin-left: auto !important; }
.hq-warn.good { background: var(--green-soft); border-left-color: var(--green); }
.hq-bottom-lists { margin-top: 36px; max-width: 760px; }
.hq-bottom-lists .clock { margin-bottom: 20px; }
.hq-more-lists > summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); padding: 10px 0; }

/* ---------- Plan ---------- */
.hq-toolbar { display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding: 22px 0 16px; flex-wrap: wrap; }
.hq-toolbar .lead { margin-right: auto; }
.hq-toolbar h1 { font-size: 28px; }
.hq-toolbar .hq-sub { margin: 4px 0 0; }
.hq-week-nav { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px; font-weight: 600; color: var(--blue-dark); }
.hq-week-nav button { padding: 4px 10px !important; color: var(--blue-dark) !important; }
.hq-seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.hq-seg button, .hq-seg a { padding: 7px 14px !important; border-radius: 9px !important; color: var(--muted) !important; text-decoration: none; }
.hq-seg .on { background: var(--blue-soft) !important; color: var(--ink) !important; font-weight: 600; }
.hq-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.hq-day { background: var(--paper) !important; border: 1px solid var(--line) !important; border-radius: 16px !important; padding: 12px 13px !important; text-align: left; }
.hq-day .d { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.hq-day.today .d { color: var(--orange); font-weight: 700; }
.hq-day .n { font: 600 22px var(--display); margin: 2px 0 6px; }
.hq-day .loads { display: grid; gap: 3px; }
.hq-day .ld { height: 5px; border-radius: 3px; background: #eef1f7; overflow: hidden; }
.hq-day .ld span { display: block; height: 100%; }
.hq-day .ld.over span { background: var(--red) !important; width: 100% !important; }
.hq-day small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.hq-day.on { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff; }
.hq-day.on .d, .hq-day.on small { color: rgba(255,255,255,.75); }
.hq-day.on .ld { background: rgba(255,255,255,.15); }
.hq-planbody { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.hq-planbody.nolist { grid-template-columns: minmax(0, 1fr); }
.hq-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding: 20px; }
.hq input.hq-search { width: 100%; padding: 10px 13px; min-height: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); font: inherit; margin: 4px 0 12px; }
.hq-grp { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 16px 0 6px; font-size: 14px; }
.hq-grp img { width: 18px; height: 18px; border-radius: 4px; }
.hq-grp .n { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--paper-2); border-radius: 8px; padding: 1px 7px; }
.hq-bk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; margin-bottom: 7px; background: var(--paper); cursor: grab; touch-action: pan-y; }
.hq-bk.dragging { opacity: .4; }
.hq-bk-t { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.hq-bk .hq-title { font-size: 14px; }
.hq-bk .hq-info { font-size: 12px; margin-top: 3px; }
.hq-plus { margin-left: auto !important; width: 28px; height: 28px; border-radius: 8px !important; border: 1px solid var(--line-strong) !important; color: var(--blue-dark) !important; font-weight: 700 !important; flex: none; }
.hq-someday { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.hq-someday > summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; }
.hq-cal { padding: 0; overflow: hidden; }
.hq-cal-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 24px 14px; }
.hq-cal-h h2 { font-size: 22px; }
.hq-cal-h .hq-sub { margin: 4px 0 0; }
.hq-cal.small { margin-top: 14px; box-shadow: none; }
.hq-lanes-wrap { overflow-x: auto; }
.hq-lanes { display: grid; grid-template-columns: 54px repeat(var(--n), minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.hq-lane-h { padding: 10px 12px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: 600; background: var(--paper); }
.hq-lane-h.corner { border-left: 0; }
.hq-lane-h small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; }
.hq-lane-h small.over { color: var(--red); font-weight: 700; }
.hq-hours div { height: var(--hh); font-size: 11px; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.hq-hours div:first-child { transform: none; }
.hq-lane { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hh) - 1px), var(--line) calc(var(--hh) - 1px), var(--line) var(--hh)); }
.hq-blk { position: absolute; border-radius: 9px; padding: 5px 8px; font-size: 12.5px; line-height: 1.25; overflow: hidden; background: #eef2ff; border-left: 3px solid var(--blue); cursor: grab; z-index: 1; color: var(--ink); touch-action: none; }
.hq-blk b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.hq-blk .h { color: var(--muted); font-size: 11px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.hq-blk .h .hq-tag { font-size: 10px; padding: 0 5px; }
.hq-blk.done { opacity: .5; } .hq-blk.done b { text-decoration: line-through; }
.hq-blk.late { background: var(--red-soft); }
.hq-blk.prop { background: repeating-linear-gradient(135deg, #fff 0 6px, #f3f6ff 6px 12px); border: 1.5px dashed var(--blue); border-left-width: 3px; }
.hq-blk.ritual { background: repeating-linear-gradient(135deg, #fff7d6 0 8px, #fdf0b8 8px 16px); cursor: pointer; }
.hq-blk.dragging { opacity: .35; }
.hq-nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--orange); z-index: 2; pointer-events: none; }
.hq-nowline::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hq-mark { position: absolute; left: 3px; right: 3px; z-index: 3; border: 2px dashed var(--blue-dark); border-radius: 9px; background: color-mix(in srgb, var(--blue-soft) 70%, transparent); font: 700 11px var(--body); color: var(--blue-dark); padding: 3px 6px; pointer-events: none; }
.hq-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-strong); border-left: 3px solid var(--blue); box-shadow: var(--hq-shadow); font-size: 13px; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
.hq-weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hq-wcol { border-left: 1px solid var(--line); padding: 10px 8px; min-height: 420px; min-width: 0; }
.hq-wcol:first-child { border-left: 0; }
.hq-wcol.today { background: color-mix(in srgb, var(--blue-soft) 35%, transparent); }
.hq-wcol h4 { margin: 0 0 8px; font: 600 13px var(--display); cursor: pointer; }
.hq-chip { display: block; font-size: 12px; line-height: 1.25; padding: 6px 8px; margin-bottom: 5px; border-radius: 8px; background: #eef2ff; border-left: 3px solid var(--blue); color: var(--ink) !important; text-decoration: none; overflow-wrap: anywhere; }
.hq-chip.late { background: var(--red-soft); }
.hq-chip.done { opacity: .45; text-decoration: line-through; }
.hq-chip.ritual { background: repeating-linear-gradient(135deg, #fff7d6 0 8px, #fdf0b8 8px 16px); }
.hq-chip.prop { border: 1px dashed var(--blue); border-left-width: 3px; }

/* ---------- Meeting ---------- */
.hq-meet-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 28px 0 6px; flex-wrap: wrap; }
.hq-meet-h h1 { font-size: 30px; margin-top: 4px; }
.hq-meet-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hq-timer { font: 700 20px var(--display); font-variant-numeric: tabular-nums; color: var(--blue-dark); min-width: 66px; text-align: right; }
.hq-timer.over { color: var(--red); }
.hq-steps { display: flex; gap: 6px; margin: 14px 0 18px; flex-wrap: wrap; }
.hq-steps button { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px !important; border-radius: 12px !important; background: var(--paper) !important; border: 1px solid var(--line) !important; color: var(--muted) !important; font-weight: 500; }
.hq-steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.hq-steps button.on { border-color: var(--blue) !important; color: var(--ink) !important; font-weight: 600; background: var(--blue-soft) !important; }
.hq-steps button.on i { background: var(--blue-dark); color: #fff; }
.hq-steps button.ok i { background: var(--green); color: #fff; }
.hq-step-card { min-height: 380px; }
.hq-step-card > .hq-card-h h2 { font-size: 26px; }
.hq-step-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.hq-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hq-person { min-width: 0; }
.hq-person h3 { display: flex; align-items: center; gap: 9px; font-size: 17px; padding-bottom: 10px; border-bottom: 2px solid var(--line); margin-bottom: 4px; }
.hq-person h3 small { margin-left: auto; font: 500 13px var(--body); color: var(--muted); }
.hq-person h3 small.full { color: var(--green); font-weight: 700; }
.hq-rv { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hq-rv .hq-title { font-size: 14px; }
.hq-rv .hq-info { font-size: 12px; margin: 3px 0 8px; }
.hq-rv.cmp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.hq-rv.cmp .hq-info { margin: 3px 0 0; }
.hq-rv.decided { opacity: .62; }
.hq-rv.decided:hover { opacity: 1; }
.hq-choice { display: flex; gap: 5px; flex-wrap: wrap; }
.hq-choice button { padding: 5px 10px !important; border-radius: 9px !important; border: 1px solid var(--line-strong) !important; font-size: 12.5px; font-weight: 600; color: var(--muted) !important; }
.hq-rv.cmp .hq-choice button { width: 34px; height: 32px; padding: 0 !important; font-size: 15px; }
.hq-rv.cmp .hq-choice button.wide { width: auto; padding: 0 9px !important; font-size: 12.5px; }
.hq-choice button.on.d { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }
.hq-choice button.on.t { background: var(--blue-dark) !important; border-color: var(--blue-dark) !important; color: #fff !important; }
.hq-choice button.on.l { background: var(--muted) !important; border-color: var(--muted) !important; color: #fff !important; }
.hq-give { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.hq-give button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px !important; border-radius: 9px !important; border: 1px solid var(--line-strong) !important; color: var(--ink) !important; font-weight: 600; font-size: 13px; }
.hq-keys { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.hq-keys b { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 3px; border: 1px solid var(--line-strong); border-radius: 6px; margin-right: 5px; color: var(--ink); }
.hq-waiting { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hq-fit { display: grid; gap: 16px; }
.hq-fit .row { display: grid; grid-template-columns: 150px 1fr 130px; gap: 14px; align-items: center; }
.hq-fit .row b { display: flex; gap: 8px; align-items: center; }
.hq-fit .hq-bar { height: 16px; border-radius: 8px; }
.hq-fit .v { font-weight: 700; text-align: right; }
.hq-fit .v.over { color: var(--red); }
.hq-closed { text-align: center; padding: 60px 20px; }
.hq-closed h2 { font-size: 34px; margin: 14px 0 8px; }
.hq-big-tick { font-size: 44px; color: var(--green); }
.hq-ins3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hq-stat { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; }
.hq-stat .k { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.hq-stat .v { font: 700 34px var(--display); margin: 4px 0; }
.hq-stat .s { font-size: 13px; color: var(--muted); }
.hq-recos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hq-reco { background: var(--paper-2); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--orange); font-size: 13.5px; overflow-wrap: anywhere; }
.hq-reco b { display: block; margin-bottom: 5px; font-size: 14px; }
.hq-reco.blue { border-left-color: var(--blue); }
.hq-bulk { margin-top: 22px; }
.hq-bulk > summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); padding: 8px 0; }
.hq-bulk button { min-height: 0; }
.hq-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hq-loadgrid { display: grid; grid-template-columns: 120px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 13px; }
.hq-loadgrid .hd { font-weight: 600; color: var(--muted); text-align: center; }
.hq-loadgrid > b { display: flex; gap: 7px; align-items: center; }
.hq-cell { height: 38px; border-radius: 9px !important; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; background: var(--paper-2); }
.hq-cell.over { background: var(--red-soft) !important; color: var(--red) !important; }

/* ---------- Projects ---------- */
.hq-projs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hq-proj { padding: 20px; min-width: 0; }
.hq-proj .ph { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.hq-proj .ph img, .hq-proj .ph .noimg { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.hq-proj .ph h3 { font-size: 18px; }
.hq-proj .ph small { display: block; color: var(--muted); font-size: 13px; }
.hq-proj .ph small .late { color: var(--red); }
.hq-proj .hq-bar { margin: 14px 0 10px; height: 7px; }
.hq-proj .hq-bar span { background: var(--blue); }
.hq-proj .next { font-size: 13.5px; color: var(--muted); }
.hq-proj .next b { color: var(--ink); font-weight: 600; }
.hq-proj details { margin-top: 10px; }
.hq-proj summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; font-size: 13.5px; }

/* ---------- ajout en une phrase, plafond ---------- */
.hq-sentence-box { margin: 10px 0 4px; }
.hq-sentence-box input.hq-sentence { border: 1.5px solid var(--blue-light); background: var(--blue-soft); }
.hq-preview { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 13px; min-height: 4px; }
.hq-preview .hq-tag { font-size: 12px; }
.hq-capline { display: flex !important; align-items: center; gap: 10px; }
.hq-capline select { width: auto; min-height: 40px; margin: 0; }
.tmain .meta .moved { color: var(--red-ink); font-weight: 600; }
.tmain .meta .someday-tag { color: var(--muted); font-weight: 600; }

/* ---------- téléphone ---------- */
@media (max-width: 759px) {
  .bar.hq-top { grid-template-columns: 1fr auto; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .hq-nav { display: none; }
  .hq-top-r .hq-add span, .hq-menu > summary span, .hq-me { display: none; }
  .hq-bnav {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20;
    justify-content: space-around; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: var(--hq-shadow);
  }
  .hq-bnav a { flex: 1; justify-content: center; padding: 9px 4px; font-size: 13px; }
  body.has-dock .hq-bnav { display: none; }
  main, main.hq-main, main.hq-main.hq-full { padding: 0 14px 96px; }
  .hq-mast { flex-direction: column; align-items: stretch; padding: 24px 0 16px; }
  .hq-mast h1 { font-size: 34px; }
  .hq-who { display: flex; }
  .hq-who button { flex: 1; justify-content: center; padding: 8px 6px !important; font-size: 13px; }
  .hq-who button .hq-dot { display: none; }
  .hq-score { grid-template-columns: 1fr; gap: 12px; }
  .hq-big { border: 0; padding: 0; font-size: 36px; }
  .hq-grid2, .hq-team3, .hq-people, .hq-ins3, .hq-recos, .hq-projs, .hq-planbody { grid-template-columns: minmax(0, 1fr); }
  .hq-card { padding: 18px; border-radius: 18px; }
  .hq-cal { padding: 0; }
  .hq-now { padding: 22px 20px; }
  .hq-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .hq-day { padding: 8px 3px !important; text-align: center; border-radius: 12px !important; }
  .hq-day .d { font-size: 10px; letter-spacing: 0; }
  .hq-day .n { font-size: 17px; margin: 0 0 4px; }
  .hq-day small { display: none; }
  .hq-side { position: static; max-height: none; }
  .hq-planbody > .hq-cal { order: -1; }
  .hq-lanes { grid-template-columns: 44px minmax(0, 1fr); }
  .hq-cal-h { padding: 16px 16px 12px; }
  .hq-cal-h .hq-who { width: 100%; }
  .hq-toolbar { justify-content: flex-start; }
  .hq-toolbar .lead { width: 100%; }
  .hq-steps button span { display: none; }
  .hq-steps button { padding: 6px !important; }
  .hq-steps button.on span { display: inline; }
  .hq-meet-h h1 { font-size: 24px; }
  .hq-who-meet { margin-bottom: 14px; }
  .hq-fit .row { grid-template-columns: 90px 1fr 92px; gap: 8px; font-size: 13px; }
  .hq-loadgrid { grid-template-columns: 26px repeat(7, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; }
  .hq-loadgrid > b span:not(.hq-dot) { display: none; }
  .hq-cell { height: 30px; font-size: 10px; }
  .hq-weekgrid { grid-template-columns: minmax(0, 1fr); }
  .hq-wcol { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .hq-task { gap: 9px; }
  .hq-task .hq-dots { display: none; }
  .hq-rv.cmp { grid-template-columns: minmax(0, 1fr); }
  /* Anciennes pages : la marge des puces suit le nouveau bord de page (14 px, plus 16). */
  .chips, .page-head .chips { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; width: calc(100% + 28px); }
}
@media (prefers-reduced-motion: reduce) { .hq * { transition: none !important; } }

/* Clic dans le vide de l'agenda = nouvelle tâche (03/11/2026). */
.hq-addable { cursor: copy; }

/* Filtre par personne de « To schedule » (04/11/2026) : petites pastilles (pas .hq-who, déjà pris par le sélecteur de personne). */
.hq .hq-bkwho { display: flex; gap: 6px; align-items: center; margin: 2px 0 8px; }
.hq .hq-bkwho button { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1; }
.hq .hq-bkwho .hq-bkwho-p { width: 30px; height: 30px; padding: 0; color: var(--c); border: 1.5px solid var(--c); background: transparent; }
.hq .hq-bkwho button[aria-pressed="true"] { background: var(--blue-soft); color: var(--ink); border-color: var(--blue); }
.hq .hq-bkwho .hq-bkwho-p[aria-pressed="true"] { background: var(--c); color: #fff; border-color: var(--c); }
