/* ============================================================
   Ordre du jour — feuille de style
   Direction : app "command center" façon Linear/Notion/Raycast —
   sidebar persistante, palette de commandes, cartes discrètes,
   couleurs réservées aux statuts/priorités. Thème clair par défaut,
   thème sombre conçu séparément (pas une simple inversion).
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #f7f7f8;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0f0f2;
  --bg-hover: #e9e9ec;
  --border: #e4e4e8;
  --border-strong: #d3d3d9;

  --text: #17171a;
  --text-secondary: #55555f;
  --text-muted: #9797a1;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-contrast: #ffffff;
  --accent-subtle: #eef0fe;

  --danger: #dc2626;
  --danger-subtle: #fdecec;

  --status-non: #9797a1;
  --status-en-cours: #d97706;
  --status-en-cours-bg: #fef3c7;
  --status-oui: #16a34a;
  --status-oui-bg: #dcfce7;

  --priority-low: #6b6b76;
  --priority-low-bg: #f0f0f2;
  --priority-mid: #b45309;
  --priority-mid-bg: #fef3c7;
  --priority-high: #dc2626;
  --priority-high-bg: #fee2e2;

  --sidebar-bg: #fbfbfc;
  --sidebar-border: #e8e8ec;
  --sidebar-width: 264px;
  --topbar-height: 56px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 24px 64px rgba(10, 10, 20, 0.18);

  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0c;
    --bg-elevated: #17171b;
    --bg-subtle: #1c1c21;
    --bg-hover: #26262c;
    --border: #27272e;
    --border-strong: #38383f;

    --text: #eeeef0;
    --text-secondary: #a3a3ad;
    --text-muted: #67676f;

    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-contrast: #0a0a0c;
    --accent-subtle: #1e1f3a;

    --danger: #f87171;
    --danger-subtle: #34191b;

    --status-non: #71717a;
    --status-en-cours: #f0b429;
    --status-en-cours-bg: #382b0f;
    --status-oui: #4ade80;
    --status-oui-bg: #10321d;

    --priority-low: #9d9da6;
    --priority-low-bg: #1f1f24;
    --priority-mid: #f0b429;
    --priority-mid-bg: #382b0f;
    --priority-high: #f87171;
    --priority-high-bg: #34191b;

    --sidebar-bg: #0e0e11;
    --sidebar-border: #232328;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-elevated: #17171b;
  --bg-subtle: #1c1c21;
  --bg-hover: #26262c;
  --border: #27272e;
  --border-strong: #38383f;

  --text: #eeeef0;
  --text-secondary: #a3a3ad;
  --text-muted: #67676f;

  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-contrast: #0a0a0c;
  --accent-subtle: #1e1f3a;

  --danger: #f87171;
  --danger-subtle: #34191b;

  --status-non: #71717a;
  --status-en-cours: #f0b429;
  --status-en-cours-bg: #382b0f;
  --status-oui: #4ade80;
  --status-oui-bg: #10321d;

  --priority-low: #9d9da6;
  --priority-low-bg: #1f1f24;
  --priority-mid: #f0b429;
  --priority-mid-bg: #382b0f;
  --priority-high: #f87171;
  --priority-high-bg: #34191b;

  --sidebar-bg: #0e0e11;
  --sidebar-border: #232328;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

kbd {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

::selection { background: var(--accent-subtle); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

/* ============================================================
   Shell : sidebar + topbar + contenu
   ============================================================ */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  padding: 0.85rem 0.75rem;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem 0.9rem;
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.sidebar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar__search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  margin-bottom: 1rem;
  text-align: left;
}
.sidebar__search-trigger:hover { border-color: var(--border-strong); color: var(--text); }
.sidebar__search-trigger span:first-of-type { flex: 1; }

.sidebar__nav { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.5rem; }

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.sidebar__link:hover { background: var(--bg-hover); color: var(--text); }
.sidebar__link.is-active { background: var(--accent-subtle); color: var(--accent); }
.sidebar__link-icon { width: 1.1rem; text-align: center; flex-shrink: 0; }

.sidebar__section-title {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 1rem 0.6rem 0.4rem;
}

.sidebar__recent { display: flex; flex-direction: column; gap: 0.05rem; }
.sidebar__recent-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.sidebar__recent-link:hover { background: var(--bg-hover); color: var(--text); }
.sidebar__recent-link__date { font-weight: 500; white-space: nowrap; }
.sidebar__recent-link__title {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.sidebar__spacer { flex: 1; }

.sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sidebar-border);
  margin-top: 0.5rem;
}

.sidebar__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.4);
  z-index: 30;
}

.shell__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--topbar-height);
  padding: 0 1.25rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__menu-btn { display: none; }

.topbar__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar__breadcrumb strong { color: var(--text); font-weight: 600; }

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.shell__content { flex: 1; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.container--wide { max-width: 1100px; }

/* ============================================================
   Palette de commandes (Cmd/Ctrl+K)
   ============================================================ */

.palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}

.palette {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.palette__input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.palette__input-row svg, .palette__input-row .icon { flex-shrink: 0; color: var(--text-muted); }
.palette__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
}

.palette__list { overflow-y: auto; padding: 0.4rem; }
.palette__group-label {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 0.6rem 0.3rem;
}
.palette__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--text);
}
.palette__item-icon { width: 1.3rem; text-align: center; color: var(--text-muted); flex-shrink: 0; }
.palette__item-meta { color: var(--text-muted); font-size: 0.78rem; margin-left: auto; flex-shrink: 0; }
.palette__item.is-active { background: var(--accent-subtle); }
.palette__empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

.palette__footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.palette__footer span { display: flex; align-items: center; gap: 0.3rem; }

/* ============================================================
   Composants partagés
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.05s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { background: transparent; border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-subtle); }

.btn--danger { background: transparent; color: var(--danger); }
.btn--danger:hover { background: var(--danger-subtle); }

.btn--icon { padding: 0.5rem; }
.btn--sm { padding: 0.32rem 0.65rem; font-size: 0.78rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 4.5rem; font-family: inherit; white-space: pre-wrap; }

/* ---------- Badges & avatars ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}
.badge--priority-low { color: var(--priority-low); background: var(--priority-low-bg); }
.badge--priority-mid { color: var(--priority-mid); background: var(--priority-mid-bg); }
.badge--priority-high { color: var(--priority-high); background: var(--priority-high-bg); }
.badge--muted { color: var(--text-secondary); background: var(--bg-subtle); text-transform: none; letter-spacing: 0; font-weight: 600; }
.badge--muted::before { display: none; }

.avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.avatar-chip__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ---------- Statuts ---------- */

.status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.status-toggle:hover { background: var(--bg-subtle); }
.item-row.htmx-added .status-toggle { transform: scale(1.5); opacity: 0.5; }
.status-toggle--non { color: var(--status-non); }
.status-toggle--en_cours { color: var(--status-en-cours); }
.status-toggle--oui { color: var(--status-oui); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}
.status-pill--a_venir { color: var(--text-secondary); background: var(--bg-subtle); }
.status-pill--en_cours { color: var(--status-en-cours); background: var(--status-en-cours-bg); }
.status-pill--terminee { color: var(--status-oui); background: var(--status-oui-bg); }

/* ---------- Progression ---------- */

.progress { display: flex; align-items: center; gap: 0.75rem; }
.progress__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.progress__track { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; }
.progress__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--status-oui);
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.progress-ring { flex-shrink: 0; }
.progress-ring__track { stroke: var(--bg-subtle); }
.progress-ring__fill {
  stroke: var(--status-oui);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.progress-ring__label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  fill: var(--text);
}

/* ---------- En-tête réunion ---------- */

.meeting-header { margin-bottom: 1.75rem; display: flex; align-items: flex-start; gap: 1.5rem; }
.meeting-header__main { flex: 1; min-width: 0; }
.meeting-header__eyebrow { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.meeting-header__title-input {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.1rem 0.2rem;
  border-radius: 6px;
  font-family: inherit;
}
.meeting-header__title-input:hover { background: var(--bg-subtle); }
.meeting-header__title-input:focus { background: var(--bg-elevated); box-shadow: 0 0 0 1px var(--border-strong); }
.meeting-header__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; }
.meeting-header__stats { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.meeting-header__stat { text-align: center; }
.meeting-header__stat-value { font-size: 1.1rem; font-weight: 650; line-height: 1; }
.meeting-header__stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }

/* ---------- Toolbar ---------- */

.toolbar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.toolbar__spacer { flex: 1; }
.toolbar__search { min-width: 160px; }

/* ---------- Liste des points ---------- */

.items-list { display: flex; flex-direction: column; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }

.item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: background 0.15s ease, opacity 0.2s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.item-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.item-row.sortable-ghost { opacity: 0.4; }
.item-row.sortable-chosen { box-shadow: var(--shadow-md); }

.item-row--done { background: transparent; border-color: transparent; }
.item-row--done .item-row__subject { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.item-row--done:hover { background: var(--bg-subtle); border-color: transparent; box-shadow: none; }

.item-row__drag-handle { cursor: grab; color: var(--text-muted); padding: 0.2rem; flex-shrink: 0; touch-action: none; }
.item-row__drag-handle:active { cursor: grabbing; }

.item-row__main { flex: 1; min-width: 0; }

summary.item-row__top {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}
summary.item-row__top::-webkit-details-marker { display: none; }
summary.item-row__top::marker { content: ""; }

.item-row__subject {
  flex: 1;
  min-width: 200px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.item-row__badges { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.item-row__proposer { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; }
.item-row__details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.item-row__details .field--comment { grid-column: 1 / -1; }
.item-row__delete { flex-shrink: 0; }

/* ---------- Ajout rapide ---------- */

.quick-add { margin-top: 1.5rem; padding: 1rem; border-radius: var(--radius-md); border: 1px dashed var(--border-strong); background: var(--bg-subtle); }
.quick-add__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.quick-add__row .field { flex: 1; min-width: 140px; }
.quick-add__row .field--subject { flex: 3; min-width: 240px; }
.quick-add__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.quick-add__hint { font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Réunions (accueil / historique) ---------- */

.meeting-card {
  display: block;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.meeting-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.meeting-card__body { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.meeting-card__title { font-size: 1.2rem; font-weight: 650; margin: 0.3rem 0 0.5rem; letter-spacing: -0.01em; }
.meeting-card__meta { display: flex; align-items: center; gap: 0.7rem; color: var(--text-secondary); font-size: 0.85rem; }

.past-meetings-list { display: flex; flex-direction: column; gap: 0.15rem; }
.past-meeting-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.9rem; border-radius: var(--radius-md); text-decoration: none; color: var(--text); }
.past-meeting-row:hover { background: var(--bg-subtle); }
.past-meeting-row__date { font-weight: 500; min-width: 11rem; }
.past-meeting-row__title { color: var(--text-secondary); flex: 1; }
.past-meeting-row__count { color: var(--text-muted); font-size: 0.8rem; }

.page-title { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 0.5rem; }

.section-title { font-size: 0.72rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 2rem 0 0.85rem; }
.section-title:first-child { margin-top: 0; }

.empty-state { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-secondary); }

/* ---------- Toasts ---------- */

.toast-stack { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.toast { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; border-radius: var(--radius-md); background: var(--text); color: var(--bg); font-size: 0.82rem; box-shadow: var(--shadow-md); animation: toast-in 0.18s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.toast__action { color: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; background: none; border: none; }

.autosave-indicator { font-size: 0.72rem; color: var(--text-muted); opacity: 0; transition: opacity 0.2s ease; }
.autosave-indicator.is-visible { opacity: 1; }

/* ---------- Confirmation de clôture ---------- */

.carry-list { display: flex; flex-direction: column; gap: 0.4rem; margin: 1rem 0; }
.carry-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.65rem 0.8rem; border-radius: var(--radius-md); border: 1px solid var(--border); }
.carry-item input[type="checkbox"] { margin-top: 0.2rem; }

/* ---------- Recherche ---------- */

.search-result-group { margin-bottom: 1.5rem; }
.search-result-group__meeting { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
mark { background: var(--accent-subtle); color: inherit; border-radius: 3px; padding: 0 0.15rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__backdrop.is-visible { display: block; }
  .topbar__menu-btn { display: inline-flex; }
}

@media (max-width: 640px) {
  .container { padding: 1.25rem 1rem 6rem; }
  .item-row { flex-wrap: wrap; }
  .item-row__top { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .item-row__details { grid-template-columns: 1fr; }
  .quick-add__row .field { min-width: 100%; }
  .quick-add__footer { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .quick-add__footer .btn { justify-content: center; }
  .past-meeting-row { flex-wrap: wrap; }
  .past-meeting-row__date { min-width: auto; }
  .topbar { padding: 0 0.85rem; }
  .topbar__breadcrumb-parent { display: none; }
  .meeting-header { flex-direction: column; gap: 1rem; }
  .meeting-header__stats { align-self: stretch; justify-content: space-around; }
  .meeting-card__body { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- Impression ---------- */

@media print {
  .sidebar, .topbar, .toolbar, .quick-add, .item-row__delete, .item-row__drag-handle,
  .btn, .toast-stack, .no-print { display: none !important; }
  body { background: white; color: black; }
  .container { max-width: 100%; padding: 0; }
}
