:root {
  --navy: #002830;
  --teal: #0098A0;
  --teal-d: #006D7A;
  --orange: #E8874E;
  --orange-d: #cf6a34;
  --gray: #6B7A8A;
  --line: #e3e9ee;
  --bg: #F5F7FA;
  --card: #ffffff;
  --ok: #16a34a;
  --ko: #dc2626;
  --warn: #d97706;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: #1f2937; font-size: 14px;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--teal); }
.muted { color: var(--gray); }
.hint { color: var(--gray); font-size: 12px; }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- AUTH ---------- */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--teal)); padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; padding: 34px 30px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center; }
.auth-logo { height: 46px; margin-bottom: 12px; }
.auth-card h1 { margin: 4px 0 2px; font-size: 24px; color: var(--navy); }
.auth-sub { color: var(--gray); font-size: 13px; margin: 0 0 18px; }
.auth-tabs { display: flex; background: #f1f5f4; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font-weight: 600; color: var(--gray); }
.auth-tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
#auth-form input { width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
#auth-form input:focus { outline: none; border-color: var(--teal); }
#a-submit { width: 100%; padding: 13px; border: 0; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; }
#a-submit:hover { background: var(--orange-d); }
.auth-error { color: var(--ko); font-size: 13px; margin-top: 10px; min-height: 16px; }
.auth-error.ok { color: var(--ok); }
.auth-forgot { display: block; text-align: right; font-size: 12px; color: var(--teal); text-decoration: none; margin: -4px 0 10px; }
.auth-forgot:hover { text-decoration: underline; }
.auth-hint { font-size: 12px; color: var(--gray); margin: 10px 0 0; line-height: 1.4; }

/* ---------- SHELL ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; padding: 12px 22px; }
.topbar-left { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 26px; }
.brand { font-weight: 600; opacity: .85; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user-email { font-size: 13px; opacity: .85; }
.btn-ghost { background: transparent; border: 1px solid #ffffff44; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; }
.main-nav { display: flex; gap: 8px; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nav-btn { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav-btn.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.view { max-width: 1080px; margin: 22px auto; padding: 0 22px 60px; }

/* ---------- COMMON ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0 0 2px; color: var(--navy); font-size: 22px; }
.btn-primary { background: var(--orange); color: #fff; border: 0; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.btn-primary:hover { background: var(--orange-d); }
.btn-secondary { background: var(--teal); color: #fff; border: 0; padding: 9px 15px; border-radius: 9px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.btn-secondary:hover { background: var(--teal-d); }
.view .btn-ghost { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.view .btn-ghost.danger { color: var(--ko); }
.btn-warn { background: var(--warn); color: #fff; border: 0; padding: 11px 18px; border-radius: 10px; font-weight: 700; }
.btn-danger { background: var(--ko); color: #fff; border: 0; padding: 11px 18px; border-radius: 10px; font-weight: 700; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }

.cards-row { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; min-width: 130px; }
.mini-card span { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.mini-card.ok span { color: var(--ok); }
.mini-card label { color: var(--gray); font-size: 12px; }

/* ---------- NOTE LIST ---------- */
.note-list { display: flex; flex-direction: column; gap: 10px; }
.note-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.note-title { font-weight: 700; color: var(--navy); font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-sub { color: var(--gray); font-size: 13px; margin-top: 3px; }
.note-actions { display: flex; gap: 8px; align-items: center; }
.feedback { margin-top: 6px; font-size: 13px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 7px 10px; border-radius: 8px; }
.feedback.big { margin: 0 0 16px; }
.st { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eef2f1; color: var(--gray); }
.st.ok { background: #dcfce7; color: #15803d; }
.st.ko { background: #fee2e2; color: #b91c1c; }
.st.warn { background: #ffedd5; color: #9a3412; }
.st.pending { background: #fef9c3; color: #854d0e; }
.st.draft { background: #e5e7eb; color: #4b5563; }

.empty { text-align: center; padding: 50px 20px; color: var(--gray); }
.empty .ei { font-size: 42px; }
.empty h3 { color: var(--navy); margin: 8px 0 4px; }

/* ---------- FORMS / TABLES ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 8px; }
.form-grid label, .panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--navy); }
.form-grid input, .panel input, .panel textarea, select { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 14px; font-family: inherit; }
.form-grid input:focus, .panel input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); }
.ro { padding: 9px 11px; background: #f8fafa; border: 1px solid var(--line); border-radius: 9px; font-weight: 400; }
.view h3 { color: var(--navy); margin: 18px 0 8px; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 620px; }
.tbl th { background: var(--teal); color: #fff; font-size: 12px; text-align: left; padding: 9px 10px; font-weight: 600; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid #f0f3f2; font-size: 13px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl input { width: 100%; border: 1px solid transparent; background: transparent; padding: 6px; border-radius: 6px; font-size: 13px; font-family: inherit; }
.tbl input:focus { outline: none; border-color: var(--teal); background: #fff; }
.tbl input.num { text-align: right; }
.tbl .ik { font-weight: 700; color: var(--teal); white-space: nowrap; }
.tbl .justif a { color: var(--teal); text-decoration: none; font-size: 12px; white-space: nowrap; }
.link-btn { color: var(--teal); cursor: pointer; font-size: 12px; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.view button.btn-secondary { margin-top: 8px; }

.totaux { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 16px; max-width: 480px; margin-left: auto; }
.tot { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.tot span { color: var(--gray); }
.tot.grand { border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.tot.grand span, .tot.grand b { color: var(--navy); font-weight: 800; }

/* ---------- DOCS ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.doc-box { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; background: #fafcfb; }
.doc-label { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.doc-view { display: block; margin-bottom: 8px; }

/* ---------- ADMIN ---------- */
.stat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 13px; color: var(--navy); }
.chip.on { outline: 2px solid var(--navy); }
.chip.warn { border-color: #fed7aa; }
.chip.ok { border-color: #bbf7d0; }
.chip.ko { border-color: #fecaca; }
.chip.clear { background: #f3f4f6; color: var(--gray); }
.admin-cols { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.admin-side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.side-title { font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 8px; }
.pers-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 8px 6px; border-radius: 8px; font-size: 13px; text-align: left; }
.pers-row:hover { background: #f4f7f6; }
.pers-row.on { background: #e7f0ee; }
.pr-r { color: var(--gray); display: flex; align-items: center; gap: 6px; }
.pill { background: var(--warn); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; }
.admin-side select { width: 100%; }
.person-info div { margin-bottom: 4px; font-size: 13px; }
.decision textarea { width: 100%; margin: 8px 0 12px; }
.decision-btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .admin-cols { grid-template-columns: 1fr; }
  .view { padding: 0 12px 50px; }
  .page-head { flex-direction: column; }
}

/* ---------- BOUTON PHOTO + LIGNE À VÉRIFIER ---------- */
.ph-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--teal); color: #fff; padding: 6px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ph-btn:hover { background: var(--teal-d); }
.tbl tr.row-todo { background: #fff8ef; }
.tbl tr.row-todo td { border-bottom-color: #ffe4c4; }
.vk-reopen { color: #b45309 !important; font-weight: 700; white-space: nowrap; }
.date-warn { font-size: 12px; margin-left: 2px; cursor: help; }
.km-maps { text-decoration: none; font-size: 14px; margin-left: 3px; }
.km-maps:hover { opacity: .7; }

/* ---------- FENÊTRE « VÉRIFIE & VALIDE » ---------- */
.modal-ov { position: fixed; inset: 0; background: rgba(0,40,48,.55); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal-bx { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: 92vh; overflow-y: auto; }
.modal-bx.wide { max-width: 840px; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.tk-left { display: flex; flex-direction: column; gap: 8px; }
.tk-prev { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 10px; background: #f5f7fa; }
img.tk-prev { object-fit: contain; }
iframe.tk-prev { height: 380px; }
.tk-noprev { height: 200px; display: flex; align-items: center; justify-content: center; color: var(--gray); border: 1px dashed var(--line); border-radius: 10px; }
.tk-right label:first-of-type { margin-top: 0; }
@media (max-width: 680px) { .tk-grid { grid-template-columns: 1fr; } .tk-prev, iframe.tk-prev { height: 240px; } }
.modal-bx h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.modal-bx label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 12px; }
.modal-bx input { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 15px; font-family: inherit; }
.modal-bx input:focus { outline: none; border-color: var(--teal); }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal-bx .btn-ghost { color: var(--gray); background: #fff; border: 1px solid var(--line); }

/* ---------- TOAST ---------- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.3); z-index: 1000; max-width: 90vw; }

/* ==================== SHELL WE-ADMIN (sidebar + main) ==================== */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar .brand-logo { height: 30px; width: auto; align-self: flex-start; }
.brand-sub { font-size: 10px; letter-spacing: .12em; opacity: .65; font-weight: 700; }
.side-nav { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; flex: 1; }
.side-link { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82); background: transparent; border: none; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-link.on { background: var(--teal); color: #fff; }
.side-link.guide { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0; padding-top: 14px; color: rgba(255,255,255,.72); text-decoration: none; }
.side-link.guide:hover { color: #fff; }
.side-link.compta { border-radius: 0 0 10px 10px; color: var(--orange); text-decoration: none; }
.side-link.compta:hover { color: #ffb98a; background: transparent; }
.who { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; font-size: 12px; }
.who .user-email { font-weight: 700; word-break: break-all; }
.who .user-role { opacity: .7; margin: 3px 0 8px; }
.btn-ghost.side { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 7px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.btn-ghost.side:hover { background: rgba(255,255,255,.1); }
.main { min-width: 0; display: flex; flex-direction: column; }
.mod-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px; }
.mod-topbar .crumb { font-size: 11px; color: var(--gray); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.mod-topbar h1 { margin: 2px 0 0; font-size: 20px; color: var(--navy); }
.main .view { width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px 26px 60px; }

/* Sous-onglets + bandeau note de service épinglée */
.sub-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sub-tab { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; }
.sub-tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.policy { background: #fff4e8; border: 1px solid #f3ceaa; color: #7c4a12; border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; line-height: 1.5; }

/* Panneaux compacts + boutons mini */
.panel.slim { padding: 14px 16px; }
.btn-ghost.mini { padding: 2px 8px; font-size: 12px; border-radius: 7px; }
.st.remb { background: var(--teal-l, #e6f3f5); color: var(--teal-d); }

/* ==================== CANAUX (chat interne) ==================== */
.ch-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 16px; min-height: 480px; }
.ch-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-self: start; }
.ch-list-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--navy); font-size: 13px; padding: 2px 6px 10px; }
.ch-item { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--navy); cursor: pointer; font-family: inherit; font-weight: 600; }
.ch-item:hover { background: var(--bg); }
.ch-item.on { background: var(--teal-l, #e6f3f5); color: var(--teal-d); }
.ch-main { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-height: 480px; }
.ch-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--navy); }
.ch-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column-reverse; gap: 10px; max-height: 55vh; }
.msg { max-width: 78%; background: var(--bg); border-radius: 12px 12px 12px 4px; padding: 8px 12px; align-self: flex-start; }
.msg.mine { background: var(--teal-l, #e6f3f5); border-radius: 12px 12px 4px 12px; align-self: flex-end; }
.msg-meta { font-size: 11px; color: var(--gray); font-weight: 700; margin-bottom: 2px; }
.msg-body { font-size: 14px; color: #22323a; white-space: pre-wrap; word-break: break-word; }
.ch-composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ch-composer input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.ch-composer input:focus { outline: none; border-color: var(--teal); }

/* ==================== REPORTING / NOTES DE SERVICE ==================== */
.rep-txt { font-size: 13px; color: #33454f; margin-top: 4px; white-space: pre-wrap; }
.rep-txt.ko { color: #b3261e; }
.ns-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ns-opts { display: flex; gap: 18px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
label.inline { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 7px; font-size: 13px; margin: 0 !important; }

/* ==================== RESSOURCES ==================== */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.res-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.res-cat { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-d); }
.res-title { font-weight: 700; color: var(--navy); font-size: 14px; word-break: break-word; }
.res-actions { display: flex; gap: 8px; margin-top: auto; align-items: center; }

/* ==================== RÉUNIONS & CR IA ==================== */
.meet-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.meet-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; max-height: 65vh; overflow-y: auto; }
.meet-item { display: block; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--navy); font-size: 13px; text-decoration: none; }
.meet-item:hover { background: var(--bg); }
.meet-item.on { background: var(--teal-l, #e6f3f5); }
.cr-body { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: #22323a; }
.view textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; min-height: 120px; resize: vertical; }
.view textarea:focus { outline: none; border-color: var(--teal); }

/* ==================== MOBILE ==================== */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: column; padding: 12px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; padding: 10px 0; }
  .side-link { padding: 8px 11px; font-size: 13px; }
  .who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .who .user-role { margin: 0; }
  .ch-wrap, .meet-grid { grid-template-columns: 1fr; }
  .main .view { padding: 16px 14px 50px; }
}

/* ==================== RECHERCHE GLOBALE ==================== */
.mod-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tb-search { display: flex; gap: 8px; align-items: center; flex: 1; max-width: 480px; min-width: 240px; }
.tb-search input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-family: inherit; background: var(--bg); }
.tb-search input:focus { outline: none; border-color: var(--teal); background: #fff; }
.sres summary { cursor: pointer; list-style: none; }
.sres summary::-webkit-details-marker { display: none; }
.sres summary::after { content: '▾ ouvrir'; font-size: 11px; color: var(--teal-d); font-weight: 700; }
.sres[open] summary::after { content: '▴ replier'; }
.sres[open] { border-color: var(--teal); }
@media (max-width: 860px) { .tb-search { max-width: none; } }

/* ==================== AGENDA / SÉQUENCES DU REPORTING ==================== */
.seq-list { display: flex; flex-direction: column; gap: 8px; }
.seq-row { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.seq-time { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.seq-time input { width: 82px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 6px; font-size: 13px; font-family: inherit; }
.seq-time span { color: var(--gray); }
.seq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.seq-main .seq-t { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 14px; font-family: inherit; width: 100%; }
.seq-t-fixe { font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seq-kind { font-size: 10px; font-weight: 800; letter-spacing: .04em; background: var(--teal-l, #e6f3f5); color: var(--teal-d); padding: 2px 7px; border-radius: 999px; }
.seq-note { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 13px; font-family: inherit; width: 100%; resize: vertical; min-height: 34px; }
.seq-note:focus, .seq-main .seq-t:focus, .seq-time input:focus { outline: none; border-color: var(--teal); }
.seq-act { flex-shrink: 0; }
/* Lecture seule (synthèse équipe / historique) */
.seq-view { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.seq-vrow { display: flex; gap: 8px; font-size: 13px; }
.seq-vtime { color: var(--teal-d); font-weight: 700; flex-shrink: 0; min-width: 84px; }
.seq-vtxt { color: #33454f; }
@media (max-width: 680px) {
  .seq-row { flex-wrap: wrap; }
  .seq-time input { width: 74px; }
}

/* ==================== ACCUEIL + NOTIFICATIONS + RH AVANCÉ ==================== */
.side-cnt { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.side-link.on .side-cnt { background: #fff; color: var(--teal-d); }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.home-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.home-card:hover { box-shadow: 0 6px 18px rgba(0,40,48,.10); transform: translateY(-1px); }
.home-card.hot { border-color: var(--orange); background: #fff8f2; }
.hc-num { font-size: 24px; font-weight: 800; color: var(--navy); min-width: 40px; text-align: center; }
.home-card.hot .hc-num { color: var(--orange); }
.hc-label { font-size: 13px; font-weight: 600; color: #33454f; line-height: 1.35; }
.plan-row { padding: 7px 4px; border-bottom: 1px solid #f0f3f2; font-size: 13px; color: #33454f; }
.plan-row:last-child { border-bottom: 0; }
.plan-row.now { background: #fff8ef; border-radius: 8px; padding-left: 8px; }
.oblist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.ob-item { font-weight: 500 !important; font-size: 13px !important; color: #33454f !important; }
.ob-item input { accent-color: var(--teal); width: 16px; height: 16px; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } .oblist { grid-template-columns: 1fr; } }

/* ==================== REPORTING v2 : OBJECTIFS + MISSIONS + DICTÉE ==================== */
.obj-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--navy); }
.obj-list { display: flex; flex-direction: column; gap: 5px; }
.obj-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #33454f; justify-content: space-between; }
.obj-line > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.obj-line.done > span { text-decoration: line-through; color: var(--gray); }
.obj-line.done .st { text-decoration: none; }
.obj-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.obj-row .objd-chk { width: 17px; height: 17px; accent-color: var(--ok); flex-shrink: 0; }
.obj-row .obj-t { flex: 1; min-width: 140px; }
.obj-row .obj-p { max-width: 200px; }
.obj-row .obj-dl { width: 140px; }
.objd-chk { accent-color: var(--ok); width: 16px; height: 16px; }
.mi-due { border-bottom: 1px solid #f0f3f2; padding: 6px 0; }
.mi-due:last-child { border-bottom: 0; }
.mini-done { padding: 4px 10px !important; font-size: 12px !important; flex-shrink: 0; }
.note-card.mi-late { border-color: #fecaca; background: #fff7f7; }
.proj-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); }
#rep-voice.rec-on { background: var(--ko); animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 50% { box-shadow: 0 0 0 7px rgba(220,38,38,0); } }
@media (max-width: 680px) { .obj-row { flex-wrap: wrap; } .obj-row .obj-dl, .obj-row .obj-p { width: auto; } }

/* ==================== TABLEAU KANBAN DES MISSIONS ==================== */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.k-col { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 120px; }
.k-col-head { font-weight: 800; color: var(--navy); font-size: 13px; display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.k-col-body { display: flex; flex-direction: column; gap: 8px; }
.k-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.k-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.k-card.mi-late { border-color: #fecaca; background: #fff7f7; }
.k-titre { font-weight: 700; color: var(--navy); font-size: 13.5px; line-height: 1.35; }
.k-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.k-who { font-size: 12px; color: var(--gray); margin-top: 6px; }
.k-detail { font-size: 12.5px; color: #33454f; margin-top: 6px; line-height: 1.4; }
.k-alert { font-size: 11.5px; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 7px; padding: 3px 7px; margin-top: 6px; }
.k-cmts { margin-top: 6px; font-size: 12px; }
.k-cmts summary { cursor: pointer; color: var(--teal-d); font-weight: 700; }
.k-cmt { color: #33454f; padding: 4px 0 0; border-top: 1px dashed var(--line); margin-top: 4px; }
.k-act { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.k-move { font-size: 11.5px; padding: 3px 5px; max-width: 130px; }
.mini-chk { font-size: 12px; gap: 3px !important; }
.mini-chk input { width: 14px; height: 14px; accent-color: var(--teal); }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .kanban { grid-template-columns: 1fr; } }
/* ==================== CALENDRIER ANNUEL ==================== */
.cal-tbl { min-width: 900px; table-layout: fixed; }
.cal-tbl th:first-child, .cal-tbl .cal-mois { width: 118px; }
.cal-tbl td { vertical-align: top; padding: 5px 6px; }
.cal-mois { background: #f8fafc; border-right: 1px solid var(--line); }
.cal-cell { min-height: 46px; }
.cal-tbl tr.cal-now .cal-mois { background: #fff7ed; box-shadow: inset 3px 0 0 var(--orange); }
.cal-ev { display: block; border-radius: 7px; padding: 3px 7px; margin-bottom: 4px; font-size: 11.5px; line-height: 1.35; position: relative; }
.cal-ev b { font-weight: 800; opacity: .75; margin-right: 2px; }
.cal-ev.now { outline: 2px solid var(--orange); }
.cal-del { position: absolute; top: 2px; right: 3px; border: 0; background: transparent; cursor: pointer; font-size: 10px; opacity: 0; color: inherit; }
.cal-ev:hover .cal-del { opacity: .7; }
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.agenda-jour { border-left: 4px solid var(--teal); }
.agenda-jour .seq-vrow { padding: 2px 0; }
