/* ═══════════════════════════════════════════════════════════════
   PROJECT MOCKUPS — 5 maquettes UI pour tester différents styles
   Tous les styles sont préfixés (.mk1, .mk2, …) pour rester isolés
   et ne pas impacter le reste de l'application.
   ═══════════════════════════════════════════════════════════════ */

/* Lock viewport pour la vue de maquettes (admin) */
@media (min-width: 769px) {
  .app-container:has(#view-project-mockups.active) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .main-content:has(#view-project-mockups.active) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  .main-content > #view-project-mockups.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

.mockups-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0b1020;
}

/* ── Nav (sélecteur de maquette) ── */
.mockups-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
}
.mockups-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.mockups-back:hover { background: rgba(255,255,255,0.1); color: #fff; }

.mockups-tabs { display: flex; gap: 0.35rem; flex: 1; justify-content: center; }
.mockups-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.mockups-tab:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #e2e8f0;
  border-color: #6366f1;
}
.mockups-tab.is-active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.mockups-tab__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 0.7rem;
  font-weight: 700;
}
.mockups-tab.is-active .mockups-tab__num { background: rgba(255,255,255,0.3); }

.mockups-meta {
  font-size: 0.72rem;
  color: #64748b;
  font-family: 'SF Mono', Consolas, monospace;
}

.mockups-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .mockups-tabs { overflow-x: auto; flex: 1; justify-content: flex-start; }
  .mockups-tab { white-space: nowrap; flex-shrink: 0; }
  .mockups-meta { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 1 — BENTO GLASSY (Apple/Linear style asymétrique)
   ═══════════════════════════════════════════════════════════════ */
.mk1 {
  height: 100%;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e1b4b 100%);
  position: relative;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #f8fafc;
}
.mk1__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.3), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.25), transparent 50%);
  pointer-events: none;
}

.mk1__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}
.mk1__tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.mk1__hero h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mk1__hero-sub {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #c7d2fe;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mk1__dot { color: #6366f1; }
.mk1__hero-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.mk1__btn {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.mk1__btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }
.mk1__btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.mk1__btn--primary:hover { box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); }
.mk1__btn--ghost { padding: 0.55rem 0.7rem; }

.mk1__bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(110px, auto);
  gap: 0.9rem;
}
.mk1__cell {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.mk1__cell:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.mk1__cell-label {
  font-size: 0.72rem;
  color: #a5b4fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.mk1__cell-sub { font-size: 0.78rem; color: #c7d2fe; margin-top: 0.3rem; }
.mk1__cell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.mk1__cell--feature { grid-column: span 2; grid-row: span 2; }
.mk1__big-num {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mk1__big-num span { font-size: 2rem; opacity: 0.7; }
.mk1__ring {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: 8rem;
  height: 8rem;
  opacity: 0.35;
}
.mk1__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mk1__ring-bg   { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 2; }
.mk1__ring-fill { fill: none; stroke: #c7d2fe; stroke-width: 2; stroke-linecap: round; }

.mk1__cell--stat {
  grid-column: span 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mk1__stat-ic {
  font-size: 1.4rem;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.mk1__cell--blue    .mk1__stat-ic { background: rgba(59, 130, 246, 0.25); }
.mk1__cell--violet  .mk1__stat-ic { background: rgba(139, 92, 246, 0.25); }
.mk1__cell--emerald .mk1__stat-ic { background: rgba(16, 185, 129, 0.25); }
.mk1__cell--amber   .mk1__stat-ic { background: rgba(245, 158, 11, 0.25); }
.mk1__stat-val { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.mk1__stat-val small { font-size: 0.85rem; opacity: 0.6; }
.mk1__stat-lab { font-size: 0.72rem; color: #c7d2fe; margin-top: 0.2rem; }

.mk1__cell--workers { grid-column: span 2; grid-row: span 2; }
.mk1__pulse {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: #ef4444;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: mk1-pulse 2s ease-in-out infinite;
}
@keyframes mk1-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
.mk1__workers { display: flex; flex-direction: column; gap: 0.55rem; }
.mk1__worker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.mk1__avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.mk1__worker-name { font-size: 0.83rem; font-weight: 600; }
.mk1__worker-role { font-size: 0.7rem; color: #c7d2fe; }

.mk1__cell--tickets { grid-column: span 4; grid-row: span 2; }
.mk1__link {
  background: none;
  border: none;
  color: #a5b4fc;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
}
.mk1__link:hover { color: #fff; }
.mk1__tickets { display: flex; flex-direction: column; gap: 0.35rem; }
.mk1__ticket {
  display: grid;
  grid-template-columns: 12px 90px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.82rem;
}
.mk1__ticket-dot { width: 10px; height: 10px; border-radius: 50%; }
.mk1__ticket-dot--in_progress { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.mk1__ticket-dot--pending     { background: #f59e0b; }
.mk1__ticket-dot--completed   { background: #10b981; }
.mk1__ticket-id { font-family: monospace; color: #a5b4fc; font-size: 0.75rem; }
.mk1__ticket-title { color: #fff; }
.mk1__ticket-meta { color: #94a3b8; font-size: 0.72rem; }

.mk1__cell--shortcut {
  grid-column: span 1;
  grid-row: span 1;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.mk1__shortcut-ic  { font-size: 1.6rem; }
.mk1__shortcut-num { font-size: 1.8rem; font-weight: 800; }
.mk1__shortcut-lab { font-size: 0.78rem; opacity: 0.95; font-weight: 500; }

@media (max-width: 1200px) {
  .mk1__bento { grid-template-columns: repeat(4, 1fr); }
  .mk1__cell--feature,
  .mk1__cell--workers,
  .mk1__cell--tickets { grid-column: span 2; }
}
@media (max-width: 768px) {
  .mk1__bento { grid-template-columns: repeat(2, 1fr); }
  .mk1__cell--feature,
  .mk1__cell--workers,
  .mk1__cell--tickets,
  .mk1__cell--stat,
  .mk1__cell--shortcut { grid-column: span 2; }
  .mk1__hero { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 2 — TIMELINE FEED (GitHub/Linear, activity, pas de tuiles)
   ═══════════════════════════════════════════════════════════════ */
.mk2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #18181b;
  overflow: hidden;
}
.mk2__header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 2rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e4e4e7;
}
.mk2__breadcrumb { font-size: 0.78rem; color: #71717a; margin-bottom: 0.3rem; }
.mk2__breadcrumb a { color: #52525b; text-decoration: none; cursor: pointer; }
.mk2__breadcrumb a:hover { color: #18181b; }
.mk2__breadcrumb strong { color: #18181b; font-weight: 600; }
.mk2__breadcrumb span { margin: 0 0.35rem; color: #d4d4d8; }
.mk2__header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mk2__meta {
  display: flex;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #71717a;
  align-items: center;
  flex-wrap: wrap;
}
.mk2__status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 0.3rem;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.mk2__header-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.mk2__action {
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #18181b;
  background: #18181b;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.mk2__action:hover { background: #27272a; }
.mk2__action--secondary {
  background: #fff;
  color: #18181b;
  border-color: #e4e4e7;
}
.mk2__action--secondary:hover { background: #fafafa; border-color: #a1a1aa; }

.mk2__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 0;
  overflow: hidden;
}
.mk2__main { overflow-y: auto; padding: 1.5rem 2rem; }
.mk2__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.mk2__toolbar h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.mk2__filters { display: flex; gap: 0.3rem; }
.mk2__filter {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #71717a;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
}
.mk2__filter:hover { background: #f4f4f5; }
.mk2__filter--active { background: #18181b; color: #fff; }
.mk2__filter--active:hover { background: #27272a; }

.mk2__timeline { position: relative; }
.mk2__event {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.mk2__event-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 1;
  background: #fff;
  border: 2px solid currentColor;
}
.mk2__event-line {
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -8px;
  width: 2px;
  background: #e4e4e7;
}
.mk2__event:last-of-type .mk2__event-line { display: none; }
.mk2__event-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition: all 0.15s;
}
.mk2__event-card:hover { border-color: #a1a1aa; }
.mk2__event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.mk2__event-text { font-size: 0.88rem; font-weight: 500; }
.mk2__event-time { font-size: 0.72rem; color: #71717a; flex-shrink: 0; }
.mk2__event-foot { font-size: 0.74rem; color: #71717a; margin-top: 0.15rem; }
.mk2__event-foot strong { color: #18181b; font-weight: 600; }
.mk2__event-end {
  text-align: center;
  font-size: 0.72rem;
  color: #a1a1aa;
  padding: 1rem 0;
  font-style: italic;
}

.mk2__aside {
  background: #fff;
  border-left: 1px solid #e4e4e7;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
}
.mk2__aside-block { margin-bottom: 1.5rem; }
.mk2__aside-block:last-child { margin-bottom: 0; }
.mk2__aside-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin-bottom: 0.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.mk2__count {
  background: #f4f4f5;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  color: #18181b;
  font-weight: 600;
}
.mk2__aside-value { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.mk2__aside-value small { font-size: 0.85rem; color: #71717a; font-weight: 500; }
.mk2__aside-bar {
  height: 6px;
  background: #f4f4f5;
  border-radius: 999px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.mk2__aside-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 999px;
}
.mk2__aside-hint { font-size: 0.72rem; color: #71717a; margin-top: 0.35rem; }

.mk2__people { display: flex; flex-direction: column; gap: 0.4rem; }
.mk2__person {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.8rem;
}
.mk2__avatar-sm {
  width: 24px; height: 24px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.mk2__person-name { font-weight: 500; }
.mk2__person-time { font-size: 0.72rem; color: #71717a; font-variant-numeric: tabular-nums; }

.mk2__ticket-list { display: flex; flex-direction: column; gap: 0.45rem; }
.mk2__ticket-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 6px;
  background: #fafafa;
}
.mk2__pill {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.mk2__pill--high { background: #fef2f2; color: #b91c1c; }
.mk2__pill--normal { background: #f0f9ff; color: #0369a1; }
.mk2__pill--low { background: #f0fdf4; color: #15803d; }
.mk2__aside .mk2__ticket-id { font-family: monospace; font-size: 0.72rem; color: #71717a; }
.mk2__aside .mk2__ticket-title { font-size: 0.78rem; }

.mk2__shortcuts { display: flex; flex-direction: column; gap: 0.25rem; }
.mk2__shortcuts a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  font-size: 0.83rem;
  color: #18181b;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}
.mk2__shortcuts a:hover { background: #f4f4f5; }
.mk2__shortcuts a span { font-size: 1rem; }

@media (max-width: 1024px) {
  .mk2__body { grid-template-columns: 1fr; }
  .mk2__aside { border-left: none; border-top: 1px solid #e4e4e7; }
}
@media (max-width: 768px) {
  .mk2__header { flex-direction: column; padding: 1rem; }
  .mk2__main { padding: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 3 — COMMAND CENTER (Dark terminal, dense data)
   ═══════════════════════════════════════════════════════════════ */
.mk3 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0e1a;
  color: #94a3b8;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.85rem;
  overflow: hidden;
}
.mk3__topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 1rem;
  background: #050810;
  border-bottom: 1px solid #1a2436;
}
.mk3__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.mk3__indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
  animation: mk3-blink 1.5s ease-in-out infinite;
}
@keyframes mk3-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.mk3__brand-id { color: #22d3ee; font-weight: 700; letter-spacing: 0.05em; }
.mk3__brand-sep { color: #475569; }
.mk3__brand-name { color: #e2e8f0; font-family: -apple-system, sans-serif; font-weight: 500; }

.mk3__nav { display: flex; gap: 1.2rem; }
.mk3__nav-item {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.mk3__nav-item:hover { color: #cbd5e1; }
.mk3__nav-item.is-active { color: #22d3ee; border-bottom-color: #22d3ee; }

.mk3__clock {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
}
.mk3__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: mk3-blink 1s ease-in-out infinite;
}

.mk3__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 0.5rem;
  padding: 0.5rem;
  min-height: 0;
  overflow: auto;
}

.mk3__kpis {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.mk3__kpi {
  background: #0f1729;
  border: 1px solid #1a2436;
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
}
.mk3__kpi-lab {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 0.3rem;
}
.mk3__kpi-val {
  font-size: 1.45rem;
  color: #22d3ee;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mk3__kpi-sub { font-size: 0.85rem; color: #475569; }
.mk3__kpi-delta { font-size: 0.68rem; margin-top: 0.2rem; color: #64748b; }
.mk3__kpi-delta--up   { color: #10b981; }
.mk3__kpi-delta--down { color: #ef4444; }
.mk3__kpi-delta--warn { color: #f59e0b; }

.mk3__panel {
  grid-column: span 6;
  background: #0f1729;
  border: 1px solid #1a2436;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mk3__panel--lg    { grid-column: span 12; }
.mk3__panel--logs  { grid-column: span 8; grid-row: span 2; }
.mk3__panel--chart { grid-column: span 4; grid-row: span 2; }

.mk3__panel-head {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #050810;
  border-bottom: 1px solid #1a2436;
  font-size: 0.72rem;
  color: #22d3ee;
  letter-spacing: 0.08em;
}
.mk3__panel-count { color: #64748b; }

.mk3__table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.mk3__table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #64748b;
  background: #060b16;
  border-bottom: 1px solid #1a2436;
  font-weight: 600;
}
.mk3__table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #131c2e;
  color: #cbd5e1;
}
.mk3__table tr:hover td { background: #0a1325; }
.mk3__mono { font-family: 'SF Mono', monospace; color: #94a3b8; }

.mk3__chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.mk3__chip--in_progress { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.mk3__chip--pending     { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.mk3__chip--completed   { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.mk3__chip--p-high      { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.mk3__chip--p-normal    { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.mk3__chip--p-low       { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

.mk3__crew {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mk3__crew-row {
  display: grid;
  grid-template-columns: 8px 32px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: #0a1325;
  border-radius: 3px;
}
.mk3__crew-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.mk3__avatar-mono {
  width: 32px; height: 32px;
  border: 1px solid;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  background: #0a1325;
}
.mk3__crew-info { color: #e2e8f0; font-size: 0.82rem; }
.mk3__crew-role { font-size: 0.7rem; color: #64748b; margin-top: 0.1rem; }
.mk3__crew-hrs  { font-family: 'SF Mono', monospace; color: #22d3ee; font-weight: 700; }

.mk3__logs {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mk3__log {
  display: grid;
  grid-template-columns: 110px 20px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.76rem;
  color: #cbd5e1;
  border-radius: 3px;
}
.mk3__log:hover { background: #0a1325; }
.mk3__log-time { font-size: 0.7rem; color: #64748b; }
.mk3__log-icon { font-size: 0.85rem; }
.mk3__log-user { font-size: 0.7rem; color: #818cf8; }

.mk3__chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  min-height: 100px;
}
.mk3__chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #22d3ee, #0891b2);
  border-radius: 2px 2px 0 0;
  min-height: 12px;
  transition: opacity 0.2s;
}
.mk3__chart-bar:hover { opacity: 0.8; }
.mk3__chart-bar--alert { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.mk3__chart-x {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.75rem;
  border-top: 1px solid #1a2436;
  font-size: 0.65rem;
  color: #64748b;
}

@media (max-width: 1200px) {
  .mk3__kpis { grid-template-columns: repeat(3, 1fr); }
  .mk3__panel { grid-column: span 12; }
  .mk3__panel--logs, .mk3__panel--chart { grid-column: span 12; grid-row: span 1; }
}
@media (max-width: 768px) {
  .mk3__nav { display: none; }
  .mk3__kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 4 — MAGAZINE (Éditorial, asymétrique, texte riche)
   ═══════════════════════════════════════════════════════════════ */
.mk4 {
  height: 100%;
  overflow-y: auto;
  background: #fefdf8;
  color: #1c1917;
  font-family: Georgia, 'Iowan Old Style', 'Palatino', serif;
}
.mk4__article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
}
.mk4__hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 4px double #1c1917;
  margin-bottom: 2rem;
}
.mk4__hero-cat {
  font-family: -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #ea580c;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.mk4__hero-title {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mk4__hero-byline {
  margin-top: 0.85rem;
  font-style: italic;
  color: #57534e;
  font-size: 0.95rem;
}
.mk4__hero-byline strong { color: #1c1917; }
.mk4__bullet { color: #d6d3d1; margin: 0 0.4rem; }

.mk4__lead {
  display: flex;
  gap: 1rem;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.mk4__lead p { margin: 0; }
.mk4__lead-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 0.85;
  font-weight: 700;
  margin: 0.15rem 0.75rem 0 0;
  color: #ea580c;
  font-family: Georgia, serif;
}

.mk4__section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #e7e5e4; }
.mk4__section:last-of-type { border-bottom: none; }
.mk4__section--alt {
  background: #f5f5f4;
  margin: 0 -3rem 2.5rem;
  padding: 2rem 3rem;
  border: none;
}

.mk4__section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #1c1917;
}
.mk4__stat {
  text-align: center;
  padding: 1.25rem;
  border-right: 1px solid #1c1917;
}
.mk4__stat:last-child { border-right: none; }
.mk4__stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  color: #1c1917;
}
.mk4__stat-lab {
  font-family: -apple-system, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #57534e;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.mk4__stat-sub { font-size: 0.85rem; color: #78716c; font-style: italic; }

.mk4__h2 {
  font-size: 1.85rem;
  margin: 0 0 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.mk4__h2 span {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #ea580c;
  font-weight: 400;
}
.mk4__intro {
  margin: 0 0 1.25rem;
  font-style: italic;
  color: #57534e;
  font-size: 1rem;
}

.mk4__crew {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.mk4__crew-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e7e5e4;
}
.mk4__crew-av {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: -apple-system, sans-serif;
}
.mk4__crew-name { font-weight: 700; font-size: 1rem; }
.mk4__crew-role { font-size: 0.85rem; color: #78716c; font-style: italic; }
.mk4__crew-hr { text-align: right; font-family: -apple-system, sans-serif; }
.mk4__crew-hr strong { font-size: 1.25rem; }
.mk4__crew-hr small {
  display: block;
  font-size: 0.7rem;
  color: #78716c;
  letter-spacing: 0.05em;
}

.mk4__list { list-style: none; margin: 0; padding: 0; }
.mk4__list-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e7e5e4;
}
.mk4__list-item:last-child { border-bottom: none; }
.mk4__list-num {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ea580c;
  font-variant-numeric: oldstyle-nums;
}
.mk4__list-title { font-size: 1.05rem; font-weight: 600; }
.mk4__list-meta { font-size: 0.83rem; color: #78716c; font-family: -apple-system, sans-serif; margin-top: 0.15rem; }
.mk4__list-prio {
  font-family: -apple-system, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.mk4__list-prio--high   { background: #fef2f2; color: #b91c1c; }
.mk4__list-prio--normal { background: #f5f5f4; color: #57534e; }
.mk4__list-prio--low    { background: #f0fdf4; color: #15803d; }

.mk4__media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.mk4__media {
  background: #1c1917;
  color: #fefdf8;
  padding: 1.25rem;
  text-align: center;
}
.mk4__media-num {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mk4__media-cat {
  font-family: -apple-system, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-top: 0.35rem;
}

.mk4__footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 2px solid #1c1917;
  font-family: -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #78716c;
}

@media (max-width: 768px) {
  .mk4__article { padding: 1.5rem 1.25rem; }
  .mk4__section--alt { margin: 0 -1.25rem 2.5rem; padding: 1.5rem 1.25rem; }
  .mk4__hero-title { font-size: 1.8rem; }
  .mk4__section-grid, .mk4__crew, .mk4__media-grid { grid-template-columns: 1fr; }
  .mk4__stat { border-right: none; border-bottom: 1px solid #1c1917; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 5 — MINIMAL DOC (Notion-like, listes, ZÉRO tuile)
   ═══════════════════════════════════════════════════════════════ */
.mk5 {
  height: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  color: #2f3437;
  font-family: -apple-system, 'Inter', sans-serif;
  overflow: hidden;
}
.mk5__sidebar {
  background: #fbfaf7;
  border-right: 1px solid #ebebea;
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
}
.mk5__crumb { font-size: 0.78rem; color: #9b9a97; margin-bottom: 1rem; }
.mk5__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.mk5__id {
  font-size: 0.75rem;
  color: #9b9a97;
  margin: 0.35rem 0 1.5rem;
  font-family: monospace;
}

.mk5__props {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid #ebebea;
  border-bottom: 1px solid #ebebea;
}
.mk5__prop {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  align-items: center;
  font-size: 0.83rem;
}
.mk5__prop-k { color: #9b9a97; font-size: 0.78rem; }
.mk5__prop-v { color: #2f3437; font-weight: 500; }
.mk5__chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
}
.mk5__chip--green { background: #e9f5e9; color: #2c5e2c; }

.mk5__toc-title {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9b9a97;
  margin-bottom: 0.45rem;
  padding: 0 0.25rem;
}
.mk5__toc { display: flex; flex-direction: column; }
.mk5__toc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #37352f;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
}
.mk5__toc-link:hover { background: #efedea; }
.mk5__toc-link span {
  font-size: 0.7rem;
  color: #9b9a97;
  background: #ebebea;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
}

.mk5__doc {
  overflow-y: auto;
  padding: 2.5rem 4rem 4rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}
.mk5__actions { display: flex; gap: 0.4rem; margin-bottom: 2rem; }
.mk5__btn {
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  border: 1px solid #ebebea;
  background: #fff;
  color: #37352f;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.mk5__btn:hover { background: #f7f6f3; border-color: #d3d2cc; }
.mk5__btn--primary {
  background: #2f3437;
  color: #fff;
  border-color: #2f3437;
}
.mk5__btn--primary:hover { background: #1c1f21; }
.mk5__btn--ghost { padding: 0.4rem 0.55rem; }

.mk5__sec { margin-bottom: 2.5rem; scroll-margin-top: 1rem; }
.mk5__sec h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mk5__p { color: #57534e; margin: 0 0 1rem; font-size: 0.9rem; }

.mk5__rows {
  display: flex;
  flex-direction: column;
  border: 1px solid #ebebea;
  border-radius: 6px;
  overflow: hidden;
}
.mk5__row {
  display: grid;
  grid-template-columns: 28px auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #ebebea;
  font-size: 0.85rem;
  text-decoration: none;
  color: #37352f;
  cursor: pointer;
  transition: background 0.1s;
}
.mk5__row:last-child { border-bottom: none; }
.mk5__row:hover { background: #fbfaf7; }
.mk5__row-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ebebea;
  color: #57534e;
}
.mk5__row-icon--completed   { background: #dcfce7; color: #15803d; }
.mk5__row-icon--in_progress { background: #dbeafe; color: #1e40af; }
.mk5__row-icon--pending     { background: #fef3c7; color: #92400e; }
.mk5__row-icon--act         { width: 26px; height: 26px; font-size: 0.85rem; }

.mk5__row-id {
  font-family: monospace;
  font-size: 0.72rem;
  color: #9b9a97;
  white-space: nowrap;
}
.mk5__row-text { color: #2f3437; }
.mk5__row-meta {
  font-size: 0.75rem;
  color: #9b9a97;
  white-space: nowrap;
}
.mk5__row--worker,
.mk5__row--activity { grid-template-columns: 28px 1fr auto; }

.mk5__sm-av {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.mk5__cta {
  display: inline-block;
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.mk5__cta:hover { border-bottom-color: #2563eb; }

@media (max-width: 1024px) {
  .mk5 { grid-template-columns: 1fr; }
  .mk5__sidebar {
    border-right: none;
    border-bottom: 1px solid #ebebea;
    max-height: 35vh;
  }
}
@media (max-width: 768px) {
  .mk5__doc { padding: 1.5rem 1.25rem; }
  .mk5__row { grid-template-columns: 22px 1fr; }
  .mk5__row-id, .mk5__row-meta { grid-column: 2; font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   COMPLÉMENTS PAR MAQUETTE (sections ajoutées : RDV, bacs, contacts,
   dessins, QRT, facturation, estimation, photos…)
   ═══════════════════════════════════════════════════════════════ */

/* ── MK1 ── */
.mk1__loc { color: inherit; text-decoration: none; cursor: pointer; }
.mk1__loc:hover { text-decoration: underline; }
.mk1__count-chip {
  background: rgba(255,255,255,0.15);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.mk1__pulse--ok { background: #10b981; }
.mk1__avatar--sm { width: 1.65rem; height: 1.65rem; font-size: 0.6rem; }

.mk1__cell--info  { grid-column: span 2; grid-row: span 1; }
.mk1__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.mk1__info-k { font-size: 0.65rem; color: #a5b4fc; letter-spacing: 0.05em; text-transform: uppercase; }
.mk1__info-v { font-size: 0.85rem; font-weight: 600; color: #fff; }
.mk1__note   { font-size: 0.75rem; color: #c7d2fe; line-height: 1.45; margin-top: 0.4rem; padding: 0.5rem 0.6rem; background: rgba(0,0,0,0.18); border-radius: 8px; }

.mk1__cell--appts { grid-column: span 2; grid-row: span 1; }
.mk1__appts { display: flex; flex-direction: column; gap: 0.4rem; }
.mk1__appt {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  cursor: pointer;
}
.mk1__appt:hover { background: rgba(255,255,255,0.08); }
.mk1__appt-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(99, 102, 241, 0.25);
  border-radius: 6px;
  padding: 0.25rem;
  font-size: 0.65rem;
}
.mk1__appt-date strong { font-size: 0.85rem; }
.mk1__appt-title { font-size: 0.82rem; font-weight: 600; }
.mk1__appt-meta  { font-size: 0.7rem; color: #c7d2fe; margin-top: 0.1rem; }

.mk1__cell--hours { grid-column: span 2; grid-row: span 1; }
.mk1__hours-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mk1__hours-val { font-size: 1.4rem; font-weight: 700; }
.mk1__hours-lab { font-size: 0.7rem; color: #c7d2fe; }

.mk1__cell--bins { grid-column: span 2; grid-row: span 2; }
.mk1__bins { display: flex; flex-direction: column; gap: 0.3rem; }
.mk1__bin-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}
.mk1__bin-row:hover { background: rgba(255,255,255,0.08); }
.mk1__bin-id { font-family: monospace; color: #fbbf24; font-weight: 700; }
.mk1__bin-loc { color: #fff; }
.mk1__bin-items { font-size: 0.7rem; color: #c7d2fe; }

.mk1__cell--contacts { grid-column: span 2; grid-row: span 2; }
.mk1__contacts { display: flex; flex-direction: column; gap: 0.4rem; }
.mk1__contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  cursor: pointer;
}
.mk1__contact:hover { background: rgba(255,255,255,0.08); }
.mk1__contact-name { font-size: 0.82rem; font-weight: 600; }
.mk1__contact-role { font-size: 0.7rem; color: #c7d2fe; }

.mk1__cell--drawings { grid-column: span 3; grid-row: span 2; }
.mk1__drawings { display: flex; flex-direction: column; gap: 0.3rem; }
.mk1__drawing {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 0.8rem;
}
.mk1__drawing-num { font-family: monospace; color: #a5b4fc; font-weight: 600; font-size: 0.75rem; }
.mk1__drawing-title { color: #fff; }

.mk1__cell--qrt { grid-column: span 3; grid-row: span 2; }
.mk1__qrts { display: flex; flex-direction: column; gap: 0.3rem; }
.mk1__qrt {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 0.8rem;
}
.mk1__qrt-num { font-family: monospace; color: #c4b5fd; font-weight: 600; font-size: 0.75rem; }
.mk1__qrt-subj { color: #fff; }

.mk1__chip {
  font-size: 0.62rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: nowrap;
}
.mk1__chip--approuve              { background: rgba(16,185,129,0.25); color: #6ee7b7; }
.mk1__chip--approuve_commentaires { background: rgba(245,158,11,0.25); color: #fcd34d; }
.mk1__chip--en_revision           { background: rgba(99,102,241,0.25); color: #c4b5fd; }
.mk1__chip--awaiting_response     { background: rgba(245,158,11,0.25); color: #fcd34d; }
.mk1__chip--sent                  { background: rgba(59,130,246,0.25); color: #93c5fd; }
.mk1__chip--closed                { background: rgba(100,116,139,0.3);  color: #cbd5e1; }
.mk1__chip--draft                 { background: rgba(100,116,139,0.3);  color: #cbd5e1; }

.mk1__cell--billing { grid-column: span 2; grid-row: span 1; }
.mk1__billing { display: flex; flex-direction: column; gap: 0.35rem; }
.mk1__billing > div { display: flex; justify-content: space-between; font-size: 0.8rem; }
.mk1__b-k { color: #c7d2fe; }
.mk1__b-v { font-weight: 700; color: #fff; }

.mk1__cell--estim { grid-column: span 4; grid-row: span 1; }
.mk1__estim { display: flex; flex-direction: column; gap: 0.25rem; }
.mk1__estim-head { font-size: 0.75rem; color: #c7d2fe; margin-bottom: 0.3rem; }
.mk1__estim-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  font-size: 0.78rem;
}
.mk1__estim-qty { font-family: monospace; color: #fbbf24; }

@media (max-width: 1200px) {
  .mk1__cell--info, .mk1__cell--appts, .mk1__cell--hours,
  .mk1__cell--bins, .mk1__cell--contacts,
  .mk1__cell--drawings, .mk1__cell--qrt,
  .mk1__cell--billing, .mk1__cell--estim { grid-column: span 2; }
}
@media (max-width: 768px) {
  .mk1__cell--info, .mk1__cell--appts, .mk1__cell--hours,
  .mk1__cell--bins, .mk1__cell--contacts,
  .mk1__cell--drawings, .mk1__cell--qrt,
  .mk1__cell--billing, .mk1__cell--estim { grid-column: span 2; }
  .mk1__info-grid { grid-template-columns: 1fr; }
}

/* ── MK2 ── */
.mk2__loc-link { color: #2563eb; cursor: pointer; text-decoration: none; }
.mk2__loc-link:hover { text-decoration: underline; }

.mk2__body { grid-template-columns: 280px 1fr 320px; }
.mk2__aside--left  { border-right: 1px solid #e4e4e7; border-left: none; }
.mk2__aside--right { border-left: 1px solid #e4e4e7; }

.mk2__mini-btn {
  margin-left: auto;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 4px;
  border: 1px solid #d4d4d8;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  color: #18181b;
}
.mk2__mini-btn:hover { background: #f4f4f5; }
.mk2__info-list { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; }
.mk2__info-list > div { display: flex; justify-content: space-between; padding: 0.2rem 0; }
.mk2__info-list span { color: #71717a; }
.mk2__info-list strong { color: #18181b; font-weight: 600; }
.mk2__note-box {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  background: #fefce8;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  color: #713f12;
}
.mk2__appt-row, .mk2__bin-row, .mk2__dwg-row, .mk2__qrt-row {
  display: grid;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s;
}
.mk2__appt-row:hover, .mk2__bin-row:hover, .mk2__dwg-row:hover, .mk2__qrt-row:hover { background: #f4f4f5; }
.mk2__appt-row { grid-template-columns: 38px 1fr; background: #fafafa; margin-bottom: 0.3rem; }
.mk2__appt-d   { font-family: monospace; font-size: 0.72rem; color: #71717a; text-align: center; }
.mk2__appt-l   { font-size: 0.82rem; font-weight: 500; }
.mk2__appt-m   { font-size: 0.7rem; color: #71717a; }
.mk2__bin-row { grid-template-columns: 60px 1fr; background: #fafafa; margin-bottom: 0.3rem; }
.mk2__bin-id  { font-family: monospace; color: #b45309; font-weight: 700; font-size: 0.78rem; }
.mk2__bin-loc { font-size: 0.78rem; }
.mk2__bin-meta { font-size: 0.7rem; color: #71717a; }
.mk2__dwg-row { grid-template-columns: 60px 1fr; }
.mk2__dwg-num { font-family: monospace; color: #6366f1; font-weight: 600; font-size: 0.74rem; }
.mk2__dwg-title { font-size: 0.78rem; }
.mk2__qrt-row { grid-template-columns: 65px 1fr; }
.mk2__qrt-num { font-family: monospace; color: #7c3aed; font-weight: 600; font-size: 0.74rem; }
.mk2__qrt-subj { font-size: 0.78rem; }
.mk2__bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 0.2rem 0;
}
.mk2__bill-row span { color: #71717a; }
.mk2__bill-row strong { color: #18181b; }
.mk2__est-head { font-family: monospace; font-size: 0.75rem; color: #18181b; margin-bottom: 0.2rem; }
.mk2__link {
  display: block;
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.78rem;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
  text-align: left;
  font-weight: 500;
}
.mk2__link:hover { text-decoration: underline; }

@media (max-width: 1300px) {
  .mk2__body { grid-template-columns: 1fr 280px; }
  .mk2__aside--left { display: none; }
}
@media (max-width: 1024px) {
  .mk2__body { grid-template-columns: 1fr; }
  .mk2__aside--right { border-left: none; border-top: 1px solid #e4e4e7; }
}

/* ── MK3 ── */
.mk3__top-actions { display: flex; gap: 0.35rem; align-items: center; }
.mk3__top-btn {
  padding: 0.35rem 0.7rem;
  background: #0f1729;
  border: 1px solid #1a2436;
  color: #22d3ee;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.mk3__top-btn:hover { background: #1a2436; color: #67e8f9; }
.mk3__top-btn--ghost { padding: 0.35rem 0.5rem; }

.mk3__panel--med { grid-column: span 6; }
.mk3__panel-link {
  background: none;
  border: none;
  color: #22d3ee;
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
}
.mk3__panel-link:hover { color: #67e8f9; }

.mk3__table--sm { font-size: 0.74rem; }
.mk3__table--sm th, .mk3__table--sm td { padding: 0.35rem 0.6rem; }

.mk3__chip--approuve              { background: rgba(16,185,129,0.15); color: #10b981; }
.mk3__chip--approuve_commentaires { background: rgba(245,158,11,0.15); color: #f59e0b; }
.mk3__chip--en_revision           { background: rgba(99,102,241,0.15); color: #818cf8; }
.mk3__chip--awaiting_response     { background: rgba(245,158,11,0.15); color: #f59e0b; }
.mk3__chip--sent                  { background: rgba(34,211,238,0.15); color: #22d3ee; }
.mk3__chip--closed                { background: rgba(100,116,139,0.2); color: #94a3b8; }
.mk3__chip--draft                 { background: rgba(100,116,139,0.2); color: #94a3b8; }

.mk3__doc-list { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.mk3__doc-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  border-radius: 3px;
  cursor: pointer;
}
.mk3__doc-row:hover { background: #0a1325; }
.mk3__doc-ic { font-size: 0.95rem; text-align: center; }
.mk3__doc-name { color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk3__doc-meta { font-size: 0.68rem; color: #64748b; }

.mk3__photos {
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.mk3__photo {
  aspect-ratio: 1 / 0.7;
  border-radius: 3px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}
.mk3__photo:hover { transform: translateY(-1px); }
.mk3__photo-l { font-weight: 700; }
.mk3__photo-m { font-size: 0.62rem; opacity: 0.85; }

.mk3__bill { padding: 0.65rem; display: flex; flex-direction: column; gap: 0.35rem; }
.mk3__bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #0a1325;
  border-radius: 3px;
}
.mk3__bill-row span { color: #64748b; letter-spacing: 0.05em; }
.mk3__bill-row strong { color: #22d3ee; font-weight: 700; }
.mk3__bill-cta {
  margin-top: 0.4rem;
  padding: 0.45rem;
  background: #0a1325;
  border: 1px solid #22d3ee;
  color: #22d3ee;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.mk3__bill-cta:hover { background: #22d3ee; color: #050810; }

.mk3__est { padding: 0.65rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.75rem; }
.mk3__est-head { color: #64748b; font-size: 0.7rem; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.mk3__est-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  background: #0a1325;
  border-radius: 3px;
  cursor: pointer;
}
.mk3__est-row:hover { background: #131c2e; }

.mk3__notes { padding: 0.65rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; }
.mk3__note-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  background: #0a1325;
  border-radius: 3px;
}
.mk3__note-row--more {
  background: none;
  color: #22d3ee;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .mk3__panel--med { grid-column: span 12; }
}
@media (max-width: 768px) {
  .mk3__top-actions { display: none; }
  .mk3__photos { grid-template-columns: repeat(2, 1fr); }
}

/* ── MK4 ── */
.mk4__hero-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.mk4__btn {
  padding: 0.45rem 0.95rem;
  border: 1px solid #1c1917;
  background: #fff;
  color: #1c1917;
  font-family: -apple-system, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
}
.mk4__btn:hover { background: #1c1917; color: #fff; }
.mk4__btn--primary { background: #1c1917; color: #fff; }
.mk4__btn--primary:hover { background: #ea580c; border-color: #ea580c; }

.mk4__note-box {
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border-left: 4px solid #ea580c;
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.5rem 0 1.25rem;
  color: #1c1917;
}
.mk4__props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 1rem;
  font-family: -apple-system, sans-serif;
}
.mk4__props > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #d6d3d1;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}
.mk4__props span { color: #78716c; }
.mk4__props strong { color: #1c1917; font-weight: 600; }

.mk4__appts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.mk4__appt {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mk4__appt:hover { border-color: #1c1917; }
.mk4__appt-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Georgia, serif;
  background: #1c1917;
  color: #fefdf8;
  padding: 0.45rem;
  border-radius: 2px;
}
.mk4__appt-d strong { font-size: 1.1rem; line-height: 1; }
.mk4__appt-d small { font-size: 0.7rem; color: #fbbf24; margin-top: 0.15rem; }
.mk4__appt-l { font-size: 1rem; font-weight: 600; font-family: Georgia, serif; }
.mk4__appt-m { font-size: 0.82rem; color: #78716c; font-style: italic; }

.mk4__bins {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.mk4__bin {
  border: 1px solid #1c1917;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.mk4__bin:hover { background: #1c1917; color: #fefdf8; }
.mk4__bin:hover .mk4__bin-loc, .mk4__bin:hover .mk4__bin-items { color: #fbbf24; }
.mk4__bin-id { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.mk4__bin-loc { font-size: 0.95rem; font-style: italic; color: #57534e; margin: 0.25rem 0; }
.mk4__bin-items { font-size: 0.78rem; color: #78716c; font-family: -apple-system, sans-serif; }

.mk4__contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.mk4__contact {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  cursor: pointer;
}
.mk4__contact:hover { border-color: #1c1917; }
.mk4__contact-meta {
  font-size: 0.78rem;
  color: #78716c;
  font-family: -apple-system, sans-serif;
  margin-top: 0.2rem;
}

.mk4__bill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #1c1917;
}
.mk4__bill-grid .mk4__stat { border-right: 1px solid #1c1917; }
.mk4__bill-grid .mk4__stat:last-child { border-right: none; display: flex; align-items: center; justify-content: center; }
.mk4__cta {
  color: #ea580c;
  text-decoration: none;
  font-style: italic;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  font-family: -apple-system, sans-serif;
  font-size: 0.88rem;
}
.mk4__cta:hover { border-bottom-color: #ea580c; }
.mk4__cta-big {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #ea580c;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.mk4__cta-big:hover { border-bottom-color: #ea580c; }

@media (max-width: 768px) {
  .mk4__appts, .mk4__bins, .mk4__contacts, .mk4__bill-grid, .mk4__props { grid-template-columns: 1fr; }
}

/* ── MK5 ── */
.mk5__callout {
  padding: 0.85rem 1rem;
  background: #fef9c3;
  border-left: 3px solid #ca8a04;
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #713f12;
}
.mk5__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mk5__photo {
  aspect-ratio: 1 / 0.7;
  border-radius: 4px;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.mk5__photo-l { font-weight: 700; }
.mk5__photo-m { font-size: 0.66rem; opacity: 0.9; }
.mk5__bill-list {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ebebea;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.mk5__bill-list > div {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #ebebea;
  font-size: 0.85rem;
}
.mk5__bill-list > div:last-child { border-bottom: none; }
.mk5__bill-list span { color: #9b9a97; }
.mk5__bill-list strong { color: #2f3437; }
.mk5__sec h2 .mk5__cta {
  font-size: 0.78rem;
  font-weight: 500;
  margin-left: 0.6rem;
}

@media (max-width: 768px) {
  .mk5__photos { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 6 — STICKY WALL (Post-its colorés, tableau de liège)
   ═══════════════════════════════════════════════════════════════ */
.mk6 {
  height: 100%;
  overflow-y: auto;
  font-family: 'Caveat', 'Comic Sans MS', cursive, sans-serif;
}
.mk6__corkboard {
  min-height: 100%;
  padding: 1.5rem 2rem;
  background:
    repeating-radial-gradient(circle at 20% 30%, rgba(0,0,0,0.04) 0 2px, transparent 2px 5px),
    repeating-radial-gradient(circle at 70% 60%, rgba(0,0,0,0.05) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, #c89466 0%, #a87b4f 50%, #8d6238 100%);
}
.mk6__header {
  position: relative;
  text-align: center;
  margin-bottom: 1.75rem;
  padding-top: 0.5rem;
}
.mk6__tape {
  position: absolute;
  width: 90px;
  height: 22px;
  background: rgba(255, 248, 200, 0.65);
  border: 1px solid rgba(150, 130, 60, 0.25);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mk6__tape--left  { top: -6px; left: 18%;  transform: rotate(-4deg); }
.mk6__tape--right { top: -6px; right: 18%; transform: rotate(3deg); }
.mk6__title-card {
  display: inline-block;
  background: #fffef5;
  padding: 1rem 2rem 1.25rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: rotate(-1deg);
  max-width: 720px;
}
.mk6__title-num {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #b45309;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}
.mk6__title-card h1 {
  margin: 0;
  font-size: 1.9rem;
  color: #1c1917;
  font-weight: 400;
  line-height: 1.15;
}
.mk6__title-sub {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  color: #57534e;
  font-style: italic;
}
.mk6__actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: -apple-system, sans-serif;
}
.mk6__btn {
  padding: 0.4rem 0.85rem;
  background: #fef3c7;
  border: 2px solid #1c1917;
  font-family: 'Caveat', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1c1917;
  transition: all 0.1s;
}
.mk6__btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #1c1917; }

.mk6__wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem 1.5rem;
  padding-top: 0.5rem;
}
.mk6__note {
  --rot: 0deg;
  position: relative;
  padding: 1rem 1.1rem 1.25rem;
  background: #fef9a8;
  transform: rotate(var(--rot));
  box-shadow:
    0 1px 1px rgba(0,0,0,0.15),
    0 5px 14px rgba(0,0,0,0.25);
  cursor: pointer;
  color: #1c1917;
  font-size: 1.05rem;
  line-height: 1.35;
  min-height: 180px;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Caveat', 'Comic Sans MS', sans-serif;
}
.mk6__note:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 2;
}
.mk6__note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ef4444, #991b1b);
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
  z-index: 1;
}
.mk6__note--yellow   { background: #fef9a8; }
.mk6__note--pink     { background: #fbcfe8; }
.mk6__note--blue     { background: #bfdbfe; }
.mk6__note--green    { background: #bbf7d0; }
.mk6__note--orange   { background: #fed7aa; }
.mk6__note--purple   { background: #ddd6fe; }
.mk6__note--cyan     { background: #a5f3fc; }
.mk6__note--mint     { background: #99f6e4; }
.mk6__note--coral    { background: #fecdd3; }
.mk6__note--lavender { background: #e9d5ff; }
.mk6__note--cream    { background: #fef3c7; }
.mk6__note--small    { min-height: auto; padding: 0.7rem 0.9rem; }

.mk6__note-h {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(0,0,0,0.25);
  padding-bottom: 0.3rem;
}
.mk6__note-big {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.4rem 0 0.1rem;
}
.mk6__note-sub {
  font-size: 0.95rem;
  color: rgba(0,0,0,0.7);
}
.mk6__note-text {
  font-size: 1rem;
  color: rgba(0,0,0,0.85);
  margin-top: 0.4rem;
  line-height: 1.4;
}
.mk6__note-bar {
  height: 5px;
  background: rgba(0,0,0,0.15);
  margin-top: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
}
.mk6__note-bar span {
  display: block;
  height: 100%;
  background: rgba(0,0,0,0.55);
}
.mk6__faint { color: rgba(0,0,0,0.55); font-size: 0.85rem; font-style: italic; margin-top: 0.3rem; }
.mk6__plus {
  background: none;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.mk6__close-btn {
  margin-top: 0.5rem;
  background: rgba(0,0,0,0.85);
  color: #fef9a8;
  border: none;
  padding: 0.35rem 0.65rem;
  font-family: 'Caveat', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
}
.mk6__mini-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.mk6__mini-list li { padding: 0.15rem 0; cursor: pointer; }
.mk6__mini-list li:hover { color: #b45309; }

.mk6__worker-line, .mk6__contact-line, .mk6__appt-line, .mk6__bin-line, .mk6__dwg-line, .mk6__qrt-line, .mk6__doc-line, .mk6__bill-line {
  display: grid;
  gap: 0.4rem;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  border-bottom: 1px dotted rgba(0,0,0,0.18);
  cursor: pointer;
  align-items: center;
}
.mk6__worker-line { grid-template-columns: 12px 1fr auto; }
.mk6__contact-line { grid-template-columns: 28px 1fr; gap: 0.55rem; }
.mk6__appt-line { grid-template-columns: 38px 1fr auto; }
.mk6__bin-line  { grid-template-columns: 60px 1fr auto; }
.mk6__dwg-line  { grid-template-columns: 50px 1fr auto; }
.mk6__qrt-line  { grid-template-columns: 60px 1fr; }
.mk6__doc-line  { grid-template-columns: 20px 1fr; }
.mk6__bill-line { grid-template-columns: 1fr auto; }
.mk6__dot { width: 10px; height: 10px; border-radius: 50%; }
.mk6__hrs { font-family: 'Courier New', monospace; font-size: 0.8rem; }
.mk6__av-sq {
  width: 24px; height: 24px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, sans-serif;
}
.mk6__contact-role { font-size: 0.78rem; color: rgba(0,0,0,0.55); font-style: italic; }

.mk6__chip {
  font-size: 0.7rem;
  font-family: -apple-system, sans-serif;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.mk6__chip--approuve              { background: rgba(16,185,129,0.25); color: #14532d; }
.mk6__chip--approuve_commentaires { background: rgba(245,158,11,0.3);  color: #78350f; }
.mk6__chip--en_revision           { background: rgba(99,102,241,0.25); color: #3730a3; }

.mk6__polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.mk6__polaroid {
  aspect-ratio: 1;
  background: #ddd;
  padding: 0.35rem 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.mk6__polaroid-l { font-weight: 700; }

@media (max-width: 768px) {
  .mk6__corkboard { padding: 1rem; }
  .mk6__wall { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 7 — PIPELINE KANBAN
   ═══════════════════════════════════════════════════════════════ */
.mk7 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #0f172a;
  overflow: hidden;
}
.mk7__topbar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}
.mk7__crumb {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.mk7__topbar h1 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.mk7__sub { font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }
.mk7__topbar-kpis { display: flex; gap: 1.5rem; }
.mk7__kpi { text-align: right; }
.mk7__kpi strong { display: block; font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.mk7__kpi span   { font-size: 0.7rem; color: #64748b; letter-spacing: 0.05em; }
.mk7__actions { display: flex; gap: 0.4rem; }
.mk7__btn {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.mk7__btn:hover { background: #f8fafc; border-color: #94a3b8; }
.mk7__btn--primary { background: #0f172a; color: #fff; border-color: #0f172a; }
.mk7__btn--primary:hover { background: #1e293b; }
.mk7__btn--ghost { padding: 0.45rem 0.55rem; }

.mk7__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;
}

.mk7__pipeline { margin-bottom: 1.5rem; }
.mk7__pipeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}
.mk7__pipeline-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.mk7__small-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.mk7__small-btn:hover { text-decoration: underline; }

.mk7__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}
.mk7__col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 3px solid;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}
.mk7__col--amber  { border-top-color: #f59e0b; }
.mk7__col--orange { border-top-color: #f97316; }
.mk7__col--blue   { border-top-color: #3b82f6; }
.mk7__col--green  { border-top-color: #10b981; }
.mk7__col--violet { border-top-color: #8b5cf6; }
.mk7__col--neutral{ border-top-color: #94a3b8; }
.mk7__col-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}
.mk7__col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}
.mk7__col--amber  .mk7__col-dot { color: #f59e0b; }
.mk7__col--orange .mk7__col-dot { color: #f97316; }
.mk7__col--blue   .mk7__col-dot { color: #3b82f6; }
.mk7__col--green  .mk7__col-dot { color: #10b981; }
.mk7__col--violet .mk7__col-dot { color: #8b5cf6; }
.mk7__col-name { flex: 1; }
.mk7__col-count {
  background: #e2e8f0;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #475569;
  font-weight: 600;
}
.mk7__col-body {
  padding: 0.4rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.mk7__col-empty {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  padding: 1rem 0;
  font-style: italic;
}

.mk7__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.mk7__card:hover {
  border-color: #94a3b8;
  box-shadow: 0 3px 8px rgba(15,23,42,0.08);
  transform: translateY(-1px);
}
.mk7__card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}
.mk7__card-id { font-family: monospace; color: #64748b; font-weight: 600; }
.mk7__card-title { font-weight: 600; color: #0f172a; line-height: 1.3; }
.mk7__card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: #64748b;
}
.mk7__rev { font-family: monospace; color: #64748b; }
.mk7__prio {
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.mk7__prio--high   { background: #fef2f2; color: #b91c1c; }
.mk7__prio--normal { background: #f0f9ff; color: #0369a1; }
.mk7__prio--low    { background: #f0fdf4; color: #15803d; }

.mk7__card--worker {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.55rem;
  align-items: center;
}
.mk7__av {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk7__add-card {
  width: 100%;
  padding: 0.45rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.mk7__add-card:hover { background: #fff; border-color: #94a3b8; color: #334155; }
.mk7__add-card--cta {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 600;
}
.mk7__add-card--cta:hover { background: #fde68a; }

@media (max-width: 768px) {
  .mk7__topbar { grid-template-columns: 1fr; }
  .mk7__topbar-kpis { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 8 — COCKPIT (cadrans, LEDs, automobile)
   ═══════════════════════════════════════════════════════════════ */
.mk8 {
  height: 100%;
  overflow-y: auto;
  background: radial-gradient(ellipse at top, #1a1d22 0%, #050608 100%);
  color: #e7eaec;
  font-family: 'SF Mono', 'Cascadia Code', monospace;
}
.mk8__chrome {
  padding: 0.85rem 1.5rem 1.5rem;
}
.mk8__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #2a2e35 0%, #1a1d22 100%);
  border: 1px solid #3a3f48;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.mk8__topbar-left, .mk8__topbar-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.mk8__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.mk8__led--green { background: #10b981; box-shadow: 0 0 8px #10b981; animation: mk8-pulse 2s ease-in-out infinite; }
.mk8__led--amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.mk8__led--red   { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.mk8__led--blue  { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
@keyframes mk8-pulse { 0%,100%{opacity:1} 50%{opacity:0.45} }
.mk8__brand-id { color: #facc15; font-weight: 700; letter-spacing: 0.1em; font-size: 0.8rem; }
.mk8__brand-name { color: #cbd5e1; font-family: -apple-system, sans-serif; font-weight: 500; font-size: 0.9rem; }
.mk8__display {
  background: #050608;
  border: 1px solid #3a3f48;
  border-radius: 3px;
  padding: 0.25rem 0.65rem;
  color: #22d3ee;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 6px rgba(34, 211, 238, 0.2);
}
.mk8__display--small { color: #facc15; }

.mk8__hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}
.mk8__hud-btn {
  background: linear-gradient(180deg, #2a2e35, #1a1d22);
  border: 1px solid #3a3f48;
  color: #cbd5e1;
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  transition: all 0.15s;
}
.mk8__hud-btn:hover {
  border-color: #facc15;
  color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.3), inset 0 0 6px rgba(250, 204, 21, 0.1);
}
.mk8__hud-btn--lg { padding: 0.85rem; font-size: 0.85rem; }
.mk8__hud-btn--xs { padding: 0.1rem 0.35rem; font-size: 0.65rem; }
.mk8__hud-btn--accent { color: #facc15; border-color: #facc15; }

.mk8__gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #1a1d22, #0a0c10);
  border: 1px solid #3a3f48;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.mk8__gauge {
  position: relative;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s;
}
.mk8__gauge:hover { transform: scale(1.03); }
.mk8__gauge svg { width: 100%; height: auto; max-height: 180px; }
.mk8__gauge-bg { fill: none; stroke: #2a2e35; stroke-width: 5; stroke-linecap: round; }
.mk8__gauge-fill { fill: none; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); }
.mk8__gauge-val { font-family: 'SF Mono', monospace; font-size: 14px; font-weight: 700; fill: #facc15; }
.mk8__gauge-max { font-family: 'SF Mono', monospace; font-size: 4px; fill: #64748b; }
.mk8__needle { stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 0 3px currentColor); }
.mk8__needle-base { fill: #facc15; }
.mk8__gauge-l {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-top: -0.5rem;
}

.mk8__leds {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.mk8__led-block {
  background: linear-gradient(180deg, #1a1d22, #0a0c10);
  border: 1px solid #3a3f48;
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}
.mk8__led-block:hover { border-color: #facc15; box-shadow: 0 0 8px rgba(250, 204, 21, 0.2); }
.mk8__led-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}
.mk8__led-v {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22d3ee;
  line-height: 1;
}
.mk8__led-s {
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 0.15rem;
  letter-spacing: 0.05em;
}

.mk8__strips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.mk8__strip {
  background: linear-gradient(180deg, #1a1d22, #0a0c10);
  border: 1px solid #3a3f48;
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.mk8__strip-h {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #facc15;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #3a3f48;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mk8__strip-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.74rem;
  color: #cbd5e1;
  cursor: pointer;
  font-family: -apple-system, sans-serif;
}
.mk8__strip-row:hover { color: #facc15; }
.mk8__strip-dot { width: 8px; height: 8px; border-radius: 50%; }
.mk8__strip-tag {
  font-family: 'SF Mono', monospace;
  font-size: 0.68rem;
  color: #94a3b8;
  text-align: center;
}
.mk8__strip-tag--high   { color: #ef4444; font-weight: 700; }
.mk8__strip-tag--normal { color: #3b82f6; }
.mk8__strip-tag--low    { color: #64748b; }
.mk8__strip-v { font-family: 'SF Mono', monospace; font-size: 0.7rem; color: #22d3ee; }

@media (max-width: 1200px) {
  .mk8__leds   { grid-template-columns: repeat(4, 1fr); }
  .mk8__strips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mk8__hud    { grid-template-columns: repeat(2, 1fr); }
  .mk8__gauges { grid-template-columns: repeat(2, 1fr); }
  .mk8__leds   { grid-template-columns: repeat(2, 1fr); }
  .mk8__strips { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 9 — SPLIT MASTER-DETAIL (Mail.app)
   ═══════════════════════════════════════════════════════════════ */
.mk9 {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 320px 1fr;
  background: #fff;
  color: #1f2328;
  font-family: -apple-system, 'Inter', sans-serif;
  overflow: hidden;
}
.mk9__nav {
  background: #f6f7f9;
  border-right: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mk9__brand {
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid #e5e7eb;
}
.mk9__brand-num {
  font-family: monospace;
  font-size: 0.72rem;
  color: #6b7280;
  letter-spacing: 0.05em;
}
.mk9__brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.15rem;
  line-height: 1.25;
}
.mk9__actions {
  display: flex;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e5e7eb;
}
.mk9__primary-btn {
  flex: 1;
  padding: 0.4rem;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.mk9__primary-btn:hover { background: #1d4ed8; }
.mk9__icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}
.mk9__icon-btn:hover { background: #f3f4f6; }

.mk9__nav-list {
  flex: 1;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mk9__nav-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #1f2328;
  font-size: 0.83rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.mk9__nav-item:hover { background: #e5e7eb; }
.mk9__nav-item.is-active { background: #dbeafe; color: #1e40af; font-weight: 600; }
.mk9__nav-ic { font-size: 0.95rem; }
.mk9__nav-c { font-size: 0.7rem; color: #6b7280; }
.mk9__nav-item.is-active .mk9__nav-c { color: #1e40af; }

.mk9__list {
  background: #fafbfc;
  border-right: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mk9__list-h {
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mk9__list-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.3rem;
}
.mk9__list-item {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 0.1rem;
  border-left: 3px solid transparent;
  transition: background 0.1s;
}
.mk9__list-item:hover { background: #f3f4f6; }
.mk9__list-item.is-selected {
  background: #dbeafe;
  border-left-color: #2563eb;
}
.mk9__list-prim { font-size: 0.85rem; font-weight: 600; }
.mk9__list-sec  { font-size: 0.75rem; color: #6b7280; margin-top: 0.15rem; }
.mk9__list-tag  {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  background: #e5e7eb;
  color: #374151;
  border-radius: 999px;
  font-weight: 500;
}
.mk9__empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  font-style: italic;
}

.mk9__detail {
  background: #fff;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}
.mk9__detail-pane h2 { margin: 0 0 0.45rem; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.01em; }
.mk9__detail-tag {
  font-size: 0.7rem;
  color: #6b7280;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.mk9__detail-meta { color: #6b7280; font-size: 0.85rem; margin-bottom: 1rem; }
.mk9__detail-block {
  padding: 0.9rem 1rem;
  background: #f6f7f9;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.mk9__detail-block h3 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.mk9__detail-block p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.mk9__detail-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mk9__primary-cta {
  padding: 0.6rem 1.1rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.mk9__primary-cta:hover { background: #1d4ed8; }
.mk9__sec-cta {
  padding: 0.6rem 1.1rem;
  background: #fff;
  color: #1f2328;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}
.mk9__sec-cta:hover { background: #f3f4f6; }

.mk9__detail-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.mk9__detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.mk9__detail-stat-grid > div {
  background: #f6f7f9;
  padding: 0.85rem;
  border-radius: 8px;
}
.mk9__detail-stat-grid strong { display: block; font-size: 1.4rem; font-weight: 700; }
.mk9__detail-stat-grid span { font-size: 0.78rem; color: #6b7280; }

.mk9__kv {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #e5e7eb;
}
.mk9__kv:last-child { border-bottom: none; }
.mk9__kv span { color: #6b7280; }

.mk9__detail-photo {
  aspect-ratio: 16/9;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.mk9__overview h2 { margin: 0 0 0.3rem; font-size: 1.8rem; font-weight: 700; }
.mk9__ov-meta { color: #6b7280; margin-bottom: 1.5rem; font-size: 0.9rem; }
.mk9__ov-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.mk9__ov-stats > div {
  background: #f6f7f9;
  padding: 0.85rem 1rem;
  border-radius: 8px;
}
.mk9__ov-stats strong { display: block; font-size: 1.4rem; font-weight: 700; }
.mk9__ov-stats span { font-size: 0.78rem; color: #6b7280; }
.mk9__ov-note {
  padding: 0.85rem 1rem;
  background: #fef9c3;
  border-left: 3px solid #ca8a04;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #713f12;
  margin-bottom: 1.5rem;
}
.mk9__ov-activity { display: flex; flex-direction: column; gap: 0.4rem; }
.mk9__activity-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 0.85rem;
}
.mk9__activity-ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk9__activity-meta { font-size: 0.75rem; color: #6b7280; }

.mk9__bill-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mk9__bill-card {
  padding: 1.25rem;
  background: #f6f7f9;
  border-radius: 10px;
}
.mk9__bill-l { font-size: 0.78rem; color: #6b7280; }
.mk9__bill-v { font-size: 1.6rem; font-weight: 700; margin: 0.2rem 0; }
.mk9__bill-s { font-size: 0.78rem; color: #6b7280; }

@media (max-width: 1100px) {
  .mk9 { grid-template-columns: 200px 280px 1fr; }
}
@media (max-width: 900px) {
  .mk9 { grid-template-columns: 200px 1fr; }
  .mk9__list { display: none; }
}
@media (max-width: 768px) {
  .mk9 { grid-template-columns: 1fr; }
  .mk9__nav { max-height: 30vh; }
  .mk9__detail { padding: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 10 — STORIES (slides pleine largeur)
   ═══════════════════════════════════════════════════════════════ */
.mk10 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #fff;
  overflow: hidden;
}
.mk10__progress {
  flex-shrink: 0;
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1rem 0.25rem;
  background: #0a0a0a;
}
.mk10__progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.15s;
}
.mk10__progress-bar:hover { background: rgba(255,255,255,0.35); }
.mk10__progress-bar.is-done {
  background: rgba(255,255,255,0.95);
}
.mk10__header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 0.1em;
  background: #0a0a0a;
  color: #94a3b8;
}
.mk10__h-l { color: #fbbf24; font-weight: 700; }
.mk10__h-n { color: #94a3b8; }

.mk10__slide {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 4rem;
  overflow: hidden;
  animation: mk10-fade 0.4s ease-out;
}
@keyframes mk10-fade {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mk10__slide-body {
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  overflow-y: auto;
}
.mk10__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.mk10__nav-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
}
.mk10__nav-btn--prev { left: 1rem; }
.mk10__nav-btn--next { right: 1rem; }

/* Cover slide */
.mk10__cover { text-align: center; }
.mk10__cover-num {
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.85rem;
}
.mk10__cover-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.mk10__cover-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.mk10__cover-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}
.mk10__cover-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.mk10__btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.15s;
}
.mk10__btn:hover { background: rgba(255,255,255,0.2); border-color: #fff; transform: translateY(-1px); }
.mk10__btn--primary {
  background: #fff;
  color: #1c1917;
  border-color: #fff;
}
.mk10__btn--primary:hover { background: #f4f4f5; }

/* Big stat slide */
.mk10__big-stat { text-align: center; padding: 1rem; }
.mk10__big-l {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.mk10__big-v {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.mk10__big-v small { font-size: 0.5em; opacity: 0.65; }
.mk10__big-bar {
  height: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem auto;
  max-width: 500px;
}
.mk10__big-bar span {
  display: block;
  height: 100%;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
}
.mk10__big-s { font-size: 1rem; opacity: 0.85; }
.mk10__big-stat--inline { padding: 0; text-align: left; margin-bottom: 1rem; }
.mk10__big-stat--inline .mk10__big-v { font-size: 1.85rem; }
.mk10__big-stat--inline .mk10__big-l { font-size: 0.75rem; margin-bottom: 0.2rem; }

.mk10__inline-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.mk10__inline-stats > div { text-align: center; }
.mk10__inline-stats strong { display: block; font-size: 1.6rem; font-weight: 700; }
.mk10__inline-stats span { font-size: 0.78rem; opacity: 0.85; letter-spacing: 0.05em; }

/* Generic story */
.mk10__story { padding: 0.5rem; }
.mk10__story-h {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.mk10__story-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.mk10__story-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.15s;
}
.mk10__story-row:hover {
  background: rgba(255,255,255,0.22);
  transform: translateX(3px);
}
.mk10__story-tag {
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 700;
}
.mk10__story-prim { font-weight: 600; font-size: 0.95rem; }
.mk10__story-sec { font-size: 0.78rem; opacity: 0.8; margin-top: 0.15rem; }
.mk10__story-pill {
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.mk10__story-pill--high   { background: #dc2626; }
.mk10__story-pill--normal { background: rgba(0,0,0,0.3); }
.mk10__story-pill--low    { background: rgba(0,0,0,0.2); }
.mk10__story-cal {
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 0.35rem;
  text-align: center;
}
.mk10__story-cal strong { display: block; font-size: 1.15rem; line-height: 1; }
.mk10__story-cal small { font-size: 0.6rem; opacity: 0.8; }

.mk10__avatars-big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.mk10__av-big {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.mk10__av-big:hover { transform: translateY(-4px); background: rgba(255,255,255,0.2); }
.mk10__av-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 0.6rem;
}
.mk10__av-circle--sm { width: 34px; height: 34px; font-size: 0.85rem; margin: 0; }
.mk10__av-name { font-weight: 700; font-size: 0.95rem; }
.mk10__av-role { font-size: 0.78rem; opacity: 0.8; margin: 0.15rem 0; }
.mk10__av-hrs { font-size: 1.05rem; font-weight: 700; margin-top: 0.35rem; }

.mk10__story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  max-width: 800px;
  margin: 0 auto;
}
.mk10__story-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.mk10__story-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.22); }
.mk10__story-card-id { font-family: monospace; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.mk10__story-card-l { font-weight: 600; }
.mk10__story-card-m { font-size: 0.78rem; opacity: 0.8; margin-top: 0.2rem; }

.mk10__story--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mk10__story--triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mk10__story-block {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.mk10__story-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-width: 900px;
  margin: 0 auto;
}
.mk10__story-photo {
  aspect-ratio: 16/10;
  border-radius: 8px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  transition: transform 0.15s;
}
.mk10__story-photo:hover { transform: scale(1.03); }
.mk10__story-photo-l { font-weight: 700; font-size: 0.88rem; }
.mk10__story-photo-m { font-size: 0.7rem; opacity: 0.85; }

@media (max-width: 900px) {
  .mk10__slide { padding: 1rem 3rem; }
  .mk10__story--split, .mk10__story--triple { grid-template-columns: 1fr; }
  .mk10__story-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mk10__nav-btn { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
  .mk10__slide { padding: 0.5rem 2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 11 — HYBRID (Sidebar M9 + Kanban M7)
   ═══════════════════════════════════════════════════════════════ */
.mk11 {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #fff;
  color: #1f2328;
  font-family: -apple-system, 'Inter', sans-serif;
  overflow: hidden;
}

/* ── Sidebar (clone visuel de M9) ── */
.mk11__nav {
  background: #f6f7f9;
  border-right: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mk11__brand {
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid #e5e7eb;
}
.mk11__brand-num {
  font-family: monospace;
  font-size: 0.72rem;
  color: #6b7280;
  letter-spacing: 0.05em;
}
.mk11__brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.15rem;
  line-height: 1.25;
}
.mk11__actions {
  display: flex;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e5e7eb;
}
.mk11__primary-btn {
  flex: 1;
  padding: 0.4rem;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.mk11__primary-btn:hover { background: #1d4ed8; }
.mk11__icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}
.mk11__icon-btn:hover { background: #f3f4f6; }

.mk11__nav-list {
  flex: 1;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mk11__nav-item {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #1f2328;
  font-size: 0.83rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.mk11__nav-item:hover { background: #e5e7eb; }
.mk11__nav-item.is-active { background: #dbeafe; color: #1e40af; font-weight: 600; }
.mk11__nav-ic { font-size: 0.95rem; }
.mk11__nav-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk11__nav-kb {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1;
}
.mk11__nav-item.is-active .mk11__nav-kb { color: #1e40af; }
.mk11__nav-c { font-size: 0.7rem; color: #6b7280; }
.mk11__nav-item.is-active .mk11__nav-c { color: #1e40af; }

/* ── Zone principale ── */
.mk11__main {
  background: #fff;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mk11__h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}
.mk11__h h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mk11__h-meta {
  width: 100%;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}
.mk11__h-actions { display: flex; gap: 0.35rem; }
.mk11__chip-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.mk11__chip-btn:hover { background: #f3f4f6; border-color: #9ca3af; }
.mk11__chip-btn--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.mk11__chip-btn--primary:hover { background: #1d4ed8; }

/* ── Kanban ── */
.mk11__kanban {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  align-content: start;
  min-height: 0;
}
.mk11__col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 3px solid;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.mk11__col--amber  { border-top-color: #f59e0b; }
.mk11__col--orange { border-top-color: #f97316; }
.mk11__col--blue   { border-top-color: #3b82f6; }
.mk11__col--green  { border-top-color: #10b981; }
.mk11__col--violet { border-top-color: #8b5cf6; }
.mk11__col--neutral{ border-top-color: #94a3b8; }
.mk11__col-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}
.mk11__col-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.mk11__col--amber  .mk11__col-dot { color: #f59e0b; }
.mk11__col--orange .mk11__col-dot { color: #f97316; }
.mk11__col--blue   .mk11__col-dot { color: #3b82f6; }
.mk11__col--green  .mk11__col-dot { color: #10b981; }
.mk11__col--violet .mk11__col-dot { color: #8b5cf6; }
.mk11__col-name { flex: 1; }
.mk11__col-count {
  background: #e2e8f0;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
}
.mk11__col-body {
  padding: 0.5rem 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  overflow-y: auto;
}
.mk11__col-empty {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  padding: 1.25rem 0;
  font-style: italic;
}

.mk11__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  font-size: 0.83rem;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.mk11__card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(15,23,42,0.08);
  transform: translateY(-1px);
}
.mk11__card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}
.mk11__card-id { font-family: monospace; color: #64748b; font-weight: 600; }
.mk11__card-title { font-weight: 600; color: #0f172a; line-height: 1.3; }
.mk11__card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  gap: 0.5rem;
}
.mk11__rev { font-family: monospace; color: #64748b; }
.mk11__prio {
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.mk11__prio--high   { background: #fef2f2; color: #b91c1c; }
.mk11__prio--normal { background: #f0f9ff; color: #0369a1; }
.mk11__prio--low    { background: #f0fdf4; color: #15803d; }

.mk11__add-card {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.mk11__add-card:hover { background: #fff; border-color: #94a3b8; color: #334155; }

/* ── Overview ── */
.mk11__overview { display: flex; flex-direction: column; gap: 1.25rem; }
.mk11__ov-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}
.mk11__ov-stats > div {
  background: #f6f7f9;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.mk11__ov-stats > div:hover { background: #e5e7eb; }
.mk11__ov-stats strong { display: block; font-size: 1.45rem; font-weight: 700; color: #0f172a; }
.mk11__ov-stats span   { font-size: 0.75rem; color: #6b7280; }

.mk11__ov-note {
  padding: 0.85rem 1rem;
  background: #fef9c3;
  border-left: 3px solid #ca8a04;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #713f12;
}

.mk11__ov-quick h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.mk11__ov-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
}
.mk11__ov-quick-grid button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.mk11__ov-quick-grid button:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
}
.mk11__ov-quick-grid button span {
  font-size: 0.75rem;
  background: #f3f4f6;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  color: #6b7280;
  font-weight: 600;
}

.mk11__overview > h3 { margin: 0; font-size: 1rem; }
.mk11__activity { display: flex; flex-direction: column; gap: 0.4rem; }
.mk11__activity-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.7rem;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 0.85rem;
}
.mk11__activity-ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk11__activity-meta { font-size: 0.75rem; color: #6b7280; }

/* ── Listes simples ── */
.mk11__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mk11__list-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.mk11__list-row:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.mk11__list-prim { font-size: 0.92rem; font-weight: 600; color: #0f172a; }
.mk11__list-sec  { font-size: 0.78rem; color: #6b7280; margin-top: 0.15rem; }
.mk11__row-action {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #9ca3af;
  font-size: 1.05rem;
  cursor: pointer;
}
.mk11__row-action:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.mk11__doc-ic {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.mk11__appt-cal {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mk11__appt-cal strong { font-size: 1.05rem; line-height: 1; font-weight: 700; }
.mk11__appt-cal small  { font-size: 0.65rem; opacity: 0.85; margin-top: 0.1rem; }

/* ── Cards grid (workers / contacts) ── */
.mk11__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}
.mk11__person-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.mk11__person-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}
.mk11__av-big {
  width: 56px; height: 56px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk11__person-name { font-size: 0.95rem; font-weight: 700; }
.mk11__person-role { font-size: 0.8rem; color: #6b7280; margin-top: 0.1rem; }
.mk11__person-meta { font-size: 0.75rem; color: #6b7280; margin-top: 0.15rem; }

/* ── Photos grid ── */
.mk11__photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}
.mk11__photo {
  aspect-ratio: 4/3;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: transform 0.15s;
}
.mk11__photo:hover { transform: scale(1.02); }
.mk11__photo-l { font-weight: 700; font-size: 0.88rem; }
.mk11__photo-m { font-size: 0.72rem; opacity: 0.9; }

/* ── Billing ── */
.mk11__bill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.mk11__bill-card {
  padding: 1.25rem;
  background: #f6f7f9;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.mk11__bill-card--cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: transform 0.15s;
}
.mk11__bill-card--cta:hover { transform: translateY(-2px); }
.mk11__bill-card--cta .mk11__bill-l { color: #fff; font-size: 1rem; font-weight: 600; }
.mk11__bill-card--cta .mk11__bill-s { color: rgba(255,255,255,0.85); }
.mk11__bill-l { font-size: 0.78rem; color: #6b7280; }
.mk11__bill-v { font-size: 1.85rem; font-weight: 700; margin: 0.25rem 0; color: #0f172a; }
.mk11__bill-s { font-size: 0.78rem; color: #6b7280; }

/* ── Estimation ── */
.mk11__estim-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.mk11__estim-stats > div {
  background: #f6f7f9;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.mk11__estim-stats strong { display: block; font-size: 1.35rem; font-weight: 700; }
.mk11__estim-stats span   { font-size: 0.75rem; color: #6b7280; }
.mk11__estim-num {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  font-family: monospace;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .mk11 { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .mk11 { grid-template-columns: 1fr; }
  .mk11__nav { max-height: 30vh; }
  .mk11__main { padding: 1rem; }
  .mk11__kanban { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 12 — ANCHOR SCROLL (page projet exacte + sidebar de scroll)
   La zone de contenu utilise les classes natives .project-card,
   .card-header, .card-body… donc hérite des styles du projet.
   ═══════════════════════════════════════════════════════════════ */
.mk12 {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #f3f4f6;
  font-family: -apple-system, 'Inter', sans-serif;
  overflow: hidden;
}

/* ── Sidebar ── */
.mk12__sidebar {
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mk12__sb-brand {
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid #1e293b;
}
.mk12__sb-num {
  font-family: monospace;
  font-size: 0.72rem;
  color: #60a5fa;
  letter-spacing: 0.1em;
}
.mk12__sb-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.2rem;
  line-height: 1.2;
  color: #f8fafc;
}
.mk12__sb-client {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}
.mk12__sb-hint {
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  color: #64748b;
  font-style: italic;
  border-bottom: 1px solid #1e293b;
}

.mk12__sb-list {
  padding: 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}
.mk12__nav-item {
  display: grid;
  grid-template-columns: 22px 1fr 8px;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s;
  position: relative;
}
.mk12__nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.mk12__nav-item.is-active {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.2), transparent);
  color: #fff;
  font-weight: 600;
}
.mk12__nav-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #60a5fa;
}
.mk12__nav-ic { font-size: 1rem; text-align: center; }
.mk12__nav-l  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk12__nav-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.mk12__nav-item:hover .mk12__nav-bullet { background: rgba(255,255,255,0.3); }
.mk12__nav-item.is-active .mk12__nav-bullet { background: #60a5fa; }

/* ── Zone contenu (page projet exacte) ── */
.mk12__content {
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #f3f4f6;
  position: relative;
}
.mk12__content .project-detail-view {
  max-width: none;
  margin: 0;
  padding: 1.25rem 1.5rem 4rem;
}

/* ── Grille dense : remplit automatiquement les espaces vides ── */
.mk12__content .project-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-auto-flow: dense;          /* remplit les trous avec les tuiles suivantes */
  grid-auto-rows: auto;
  gap: 1rem;
  align-items: start;             /* évite l'étirement vertical */
}

/* Wides "intermédiaires" (Notes, Contacts, Docs, Estim) : 2× la largeur d'une compacte */
.mk12__content .project-cards-grid .project-card-wide {
  grid-column: span 2;
}

/* Wides "fullwidth" (Tickets, Bacs) : toute la largeur de la grille */
.mk12__content .project-cards-grid .project-card-wide.mk12-fullwidth {
  grid-column: 1 / -1;
}

/* Écrans très larges : wide intermédiaire grandit à 3 colonnes */
@media (min-width: 1600px) {
  .mk12__content .project-cards-grid .project-card-wide {
    grid-column: span 3;
  }
}

/* Petits écrans : tout passe en pleine largeur d'une rangée */
@media (max-width: 760px) {
  .mk12__content .project-cards-grid {
    grid-template-columns: 1fr;
  }
  .mk12__content .project-cards-grid .project-card-wide,
  .mk12__content .project-cards-grid .project-card-wide.mk12-fullwidth {
    grid-column: 1 / -1;
  }
}

/* ── Fixes internes : éléments natifs adaptés aux tuiles compactes ── */

/* Card header : autorise le wrap si le titre + actions sont serrés */
.mk12__content .card-header {
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
}
.mk12__content .card-header > h3 {
  white-space: normal;
  word-wrap: break-word;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

/* Card body : pas de débordement horizontal */
.mk12__content .card-body { min-width: 0; }
.mk12__content .card-body > * { min-width: 0; max-width: 100%; }

/* Info grid : auto-fit + minmax pour que les paires se réorganisent */
.mk12__content .info-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
}
.mk12__content .info-grid .info-item {
  min-width: 0;
}
.mk12__content .info-label {
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk12__content .info-value {
  font-size: 0.85rem;
  word-wrap: break-word;
}

/* Worker cards : layout grid, le compteur d'heures ne déborde plus */
.mk12__content .worker-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
}
.mk12__content .worker-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.mk12__content .avatar-initials { font-size: 0.85rem; }
.mk12__content .worker-info { min-width: 0; }
.mk12__content .worker-name {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk12__content .worker-start {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk12__content .worker-timer {
  font-size: 1rem;
  min-width: auto;
  white-space: nowrap;
  text-align: right;
}

/* Liste compacte (RDV) : flex-wrap, pas de superposition */
.mk12__content .list-compact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.mk12__content .list-compact-item:last-child { border-bottom: none; }

/* Budget : valeurs sur la même ligne mais avec wrap si étroit */
.mk12__content .budget-header,
.mk12__content .budget-details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
}

/* Notes preview : excerpt avec ellipsis */
.mk12__content .project-notes-preview-row {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.mk12__content .project-notes-preview-row:last-child { border-bottom: none; }
.mk12__content .project-notes-preview-row:hover { background: #f9fafb; }
.mk12__content .project-notes-preview-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}
.mk12__content .project-notes-preview-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Time stats : 3 colonnes, mais wrap sur petit */
.mk12__content .time-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.55rem;
}

/* Project notes (encadré jaune) : largeur fluide */
.mk12__content .project-notes {
  margin-top: 0.75rem;
}
.mk12__content .project-notes p {
  word-wrap: break-word;
  font-size: 0.82rem;
}

/* ─── Tuile Photos : aspect 1:1, scroll interne de la galerie ─── */
.mk12__content .project-card.mk12-photo-tile {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.mk12__content .mk12-photo-tile .card-header {
  flex-shrink: 0;
}
.mk12__content .mk12-photo-tile .card-body.mk12-photo-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.6rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
/* Style fin pour la scrollbar Chrome/Safari */
.mk12__content .mk12-photo-body::-webkit-scrollbar { width: 6px; }
.mk12__content .mk12-photo-body::-webkit-scrollbar-track { background: transparent; }
.mk12__content .mk12-photo-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.mk12__content .mk12-photo-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.mk12__content .mk12-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.mk12__content .mk12-photo-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.15s;
}
.mk12__content .mk12-photo-thumb:hover { transform: scale(1.03); }
.mk12__content .mk12-photo-l { font-weight: 700; }
.mk12__content .mk12-photo-m { font-size: 0.68rem; opacity: 0.9; }

.mk12__content .mk12-photo-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 0.78rem;
}

/* Sur tuile très étroite ou très large, ajuste la grille interne */
@media (min-width: 1600px) {
  .mk12__content .mk12-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Décale le scroll pour que la tuile apparaisse SOUS le header sticky.
   Variable --mk12-header-offset mise à jour dynamiquement en JS au besoin. */
.mk12__content {
  --mk12-header-offset: 120px;
}
.mk12__content .project-card {
  scroll-margin-top: calc(var(--mk12-header-offset) + 12px);
  transition: box-shadow 0.4s, transform 0.4s;
}
.mk12__content .project-card.mk12-flash {
  box-shadow: 0 0 0 3px #60a5fa, 0 12px 28px rgba(59, 130, 246, 0.35) !important;
  transform: translateY(-2px);
}

/* Header projet sticky en haut de la zone de contenu */
.mk12__content .project-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, #f3f4f6 0%, #f3f4f6 90%, rgba(243, 244, 246, 0.6) 100%);
}

/* time-stats fallback (au cas où la classe native n'existe pas) */
.mk12__content .time-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mk12__content .time-stat {
  text-align: center;
  background: #f9fafb;
  padding: 0.85rem;
  border-radius: 8px;
}
.mk12__content .time-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}
.mk12__content .time-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

/* Détails bacs */
.mk12__content .mk12-bin-details summary::-webkit-details-marker { display: none; }
.mk12__content .mk12-bin-details summary::marker { content: ''; }

@media (max-width: 1024px) {
  .mk12 { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .mk12 { grid-template-columns: 1fr; }
  .mk12__sidebar {
    max-height: 30vh;
    border-bottom: 1px solid #1e293b;
  }
  .mk12__content .project-detail-view { padding: 1rem; }
}

