/* Consultation patrimoine — layout dédié (charte Inventaire NC, air-gap). */

:root {
  --ink: #163a5c;
  --ink-soft: rgba(22, 58, 92, 0.65);
  --ink-faint: rgba(22, 58, 92, 0.45);
  --brand: #3d8fc4;
  --brand-deep: #2a6fa0;
  --mist: #f2f7fb;
  --paper: #ffffff;
  --line: rgba(22, 58, 92, 0.14);
  --ok-bg: #ecfdf5;
  --ok-ink: #065f46;
  --ok-line: #a7f3d0;
  --warn-bg: #fffbeb;
  --warn-ink: #92400e;
  --warn-line: #fde68a;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(22, 58, 92, 0.06);
  --font-body: Outfit, "Segoe UI", system-ui, sans-serif;
  --font-display: Syne, "Segoe UI", system-ui, sans-serif;
  --tree-w: 320px;
}

*, *::before, *::after { box-sizing: border-box; }

body.parc-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(61, 143, 196, 0.14), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, var(--mist) 100%);
}

.parc-shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.parc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ——— Header ——— */
.parc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.parc-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.parc-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.parc-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.parc-title {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.parc-session {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.parc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.parc-meta {
  display: none;
  gap: 1rem;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .parc-meta { display: flex; }
}

.parc-meta-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 700;
}

.parc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.parc-btn:hover { background: #fff; }
.parc-nav-modules {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.parc-btn.is-courant,
.parc-btn.is-courant:hover {
  background: #3d8fc4;
  border-color: #3d8fc4;
  color: #fff;
  cursor: default;
}
.parc-btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.parc-btn--primary:hover { background: var(--brand-deep); }
.parc-btn--ghost {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  text-decoration: underline;
  font-size: 0.75rem;
}
.parc-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.parc-menu {
  position: relative;
}

.parc-menu__panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: 16rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(22, 58, 92, 0.12);
  padding: 0.35rem;
  z-index: 40;
}

.parc-menu__panel.is-open { display: block; }

.parc-menu__panel button,
.parc-menu__panel a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.parc-menu__panel button:hover,
.parc-menu__panel a:hover { background: rgba(61, 143, 196, 0.1); }
.parc-menu__hint {
  margin: 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.65rem;
  color: var(--ink-faint);
}

/* ——— Nav horizontale ——— */
.parc-nav {
  padding: 0.85rem 1rem;
}

.parc-nav__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.55rem;
}

.parc-nav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .parc-nav__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .parc-nav__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.parc-select,
.parc-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.parc-select:focus,
.parc-input:focus { border-color: var(--brand); background: #fff; }

.parc-input-wrap { position: relative; }
.parc-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--ink-faint);
  pointer-events: none;
}
.parc-input-wrap .parc-input { padding-left: 2.25rem; }

/* ——— Layout 2 colonnes ——— */
.parc-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .parc-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

.parc-tree {
  width: 100%;
  padding: 0.85rem;
  position: relative;
}

@media (min-width: 1024px) {
  .parc-tree {
    width: var(--tree-w);
    flex-shrink: 0;
    position: sticky;
    top: 1rem;
    z-index: 10;
    align-self: flex-start;
  }
}

.parc-tree__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.parc-tree__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.parc-tree__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0;
}

.parc-tree__title svg { width: 1rem; height: 1rem; }

.parc-tree__legende {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.15rem;
  opacity: 0.85;
}

.parc-tree__body {
  max-height: min(70vh, 720px);
  overflow: auto;
  font-size: 0.78rem;
}

.parc-tree-empty {
  padding: 1.25rem 0.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-style: italic;
  font-weight: 600;
  font-size: 0.78rem;
}

.parc-resizer {
  display: none;
}

@media (min-width: 1024px) {
  .parc-resizer {
    display: block;
    width: 10px;
    margin: 0.5rem 0.45rem;
    align-self: stretch;
    border-radius: 999px;
    background: rgba(22, 58, 92, 0.1);
    cursor: col-resize;
    flex-shrink: 0;
    transition: background 0.15s, width 0.15s;
  }
  .parc-resizer:hover,
  .parc-resizer:active {
    background: var(--brand);
    width: 12px;
  }
}

.parc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.parc-perimetre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(61, 143, 196, 0.35);
  background: linear-gradient(90deg, rgba(61, 143, 196, 0.12), rgba(61, 143, 196, 0.03));
  border-radius: var(--radius);
}

.parc-perimetre__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.parc-perimetre__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.parc-perimetre__icon svg { width: 1.15rem; height: 1.15rem; }

.parc-perimetre__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.parc-perimetre__path {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parc-filters {
  padding: 0.95rem 1rem;
}

.parc-filters__row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 1024px) {
  .parc-filters__row {
    flex-direction: row;
    align-items: center;
  }
}

.parc-filters__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .parc-filters__fields { grid-template-columns: 1.4fr 1fr 1fr; }
}

.parc-views,
.ajout-voies {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  align-self: flex-start;
}

.parc-views button,
.ajout-voies button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.parc-views button.is-active,
.ajout-voies button.is-active {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.parc-filters__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(22, 58, 92, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.parc-filters__footer label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  cursor: pointer;
}

.parc-grille { min-width: 0; }

.parc-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ——— Arbre nœuds ——— */
.tree-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
}

.tree-node:hover { background: rgba(61, 143, 196, 0.1); }

.tree-node.tree-node--sans-etiquette {
  background: #fff6e8;
  box-shadow: inset 3px 0 0 #c2410c;
}
.tree-node.tree-node--sans-etiquette:hover,
.tree-node.tree-node-selected.tree-node--sans-etiquette {
  background: #ffedd5;
}

.tree-node-selected {
  background: rgba(61, 143, 196, 0.16);
  border-left: 2px solid var(--brand);
  color: var(--brand-deep);
  font-weight: 700;
}

.tree-node-repere {
  color: var(--brand-deep);
}

.tree-node-repere .tree-libelle {
  font-weight: 700;
}

.tree-node__left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.tree-libelle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pastille campagne d'inventaire (discrète) */
.tree-inv {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  margin-left: 0.05rem;
}
.tree-inv--ouverte {
  background: #3d8fc4;
  box-shadow: 0 0 0 2px rgba(61, 143, 196, 0.22);
}
.tree-inv--cloturee {
  background: rgba(22, 58, 92, 0.35);
}

.tree-chevron {
  border: 0;
  background: transparent;
  padding: 0.1rem;
  color: var(--ink-faint);
  cursor: pointer;
  display: inline-flex;
}

.tree-chevron svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.15s;
}

.tree-spacer { width: 1rem; flex-shrink: 0; }

.tree-niv {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-deep);
  flex-shrink: 0;
}

.tree-count {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.tree-count__delta--moins { color: #6d28d9; }
.tree-count__delta--plus { color: #0f766e; }

.tree-count--empty {
  background: #edf2f7;
  color: var(--ink-faint);
  border: 1px solid rgba(22, 58, 92, 0.08);
}
.tree-count--mid {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-line);
}
.tree-count--hot {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 1px solid var(--ok-line);
}

.tree-code {
  padding: 0.1rem 0.35rem;
  background: #edf2f7;
  border-radius: 6px;
  font-size: 0.62rem;
  font-family: ui-monospace, monospace;
  color: var(--ink-soft);
  border: 1px solid rgba(22, 58, 92, 0.08);
}

.tree-children {
  padding-left: 0.7rem;
  margin-left: 0.45rem;
  border-left: 1px solid var(--line);
  margin-top: 0.15rem;
}

.tree-children.is-collapsed { display: none; }

/* ——— Conteneurs imbriqués ——— */
.nest {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0.9rem;
  margin: 0.5rem 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.nest--1 { border-color: rgba(61, 143, 196, 0.35); background: rgba(61, 143, 196, 0.05); }
.nest--2 { border-color: #bae6fd; background: rgba(186, 230, 253, 0.25); }
.nest--3 { border-color: #fde68a; background: rgba(253, 230, 138, 0.25); }
.nest--4 { background: #fff; }
.nest.nest--4.nest--sans-etiquette {
  background: #fff6e8;
  border-color: rgba(194, 65, 12, 0.45);
  box-shadow: inset 3px 0 0 #c2410c;
}

.nest--drop {
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.nest--drop.is-drop-cible,
.tree-node--drop.is-drop-cible {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px rgba(61, 143, 196, 0.45);
  background: rgba(61, 143, 196, 0.12) !important;
}

.tree-node--drop {
  border-radius: 8px;
  transition: background 0.15s, box-shadow 0.15s;
}

body.parc-dnd-actif .nest--drop,
body.parc-dnd-actif .tree-node--drop {
  outline: 1px dashed rgba(61, 143, 196, 0.45);
}

[data-drag-bien] { cursor: grab; }
[data-drag-bien].is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.toast-deplacement {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 58, 92, 0.18);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.toast-deplacement--ok { border-color: rgba(61, 143, 196, 0.4); color: var(--brand-deep); }
.toast-deplacement--err { border-color: rgba(180, 35, 24, 0.35); color: #b42318; }
.toast-deplacement[hidden] { display: none !important; }

.services-org-liste {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 40vh;
  overflow-y: auto;
}

.services-org-ligne {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
}

.services-org-ligne strong { color: var(--ink); }
.services-org-ligne span { color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; }

.services-org-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  max-height: 8.5rem;
  overflow-y: auto;
}

.services-org-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #f7fafc;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.services-org-chip:hover {
  background: rgba(61, 143, 196, 0.12);
  border-color: rgba(61, 143, 196, 0.4);
}

.services-org-chip.is-declared {
  opacity: 0.4;
  cursor: default;
  text-decoration: line-through;
}

.services-org-chip small {
  margin-left: 0.2rem;
  color: var(--brand-deep);
  font-weight: 800;
}

.nest__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(22, 58, 92, 0.08);
  cursor: pointer;
}

.nest__head:hover { opacity: 0.85; }

.nest__head-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.nest__niv {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.nest__lib {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nest__badge {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.nest__badge--brand {
  background: rgba(61, 143, 196, 0.1);
  border-color: rgba(61, 143, 196, 0.25);
  color: var(--brand-deep);
}

@keyframes parcPulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 143, 196, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(61, 143, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 143, 196, 0); }
}
.container-target-highlight { animation: parcPulse 0.7s ease-out; }

/* ——— Vues biens ——— */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card-bien {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.card-bien:hover { border-color: var(--brand); }
.card-bien.is-selected { box-shadow: 0 0 0 2px var(--brand); }
.card-bien.is-attente,
.list-bien.is-attente {
  background: #efe6ff;
  border: 2px solid #6d28d9;
}
.card-bien.is-attente:hover,
.list-bien.is-attente:hover { border-color: #5b21b6; }
tr.is-attente td { background: #efe6ff; }
.card-bien.is-actif {
  background: rgba(61, 143, 196, 0.14);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(61, 143, 196, 0.35);
}

.card-bien__media {
  position: relative;
  height: 8.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #edf2f7;
  border: 1px solid rgba(22, 58, 92, 0.08);
  margin-bottom: 0.55rem;
}

.card-bien__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-bien__tag {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  background: rgba(22, 58, 92, 0.9);
  color: #fff;
}

@keyframes etiquette-attente {
  0%, 100% { background: #b54708; color: #fff; }
  50% { background: #fde68a; color: #163a5c; }
}

.card-bien__tag.is-a-etiqueter,
.tag-mono.is-a-etiqueter {
  animation: etiquette-attente 1.1s ease-in-out infinite;
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .card-bien__tag.is-a-etiqueter,
  .tag-mono.is-a-etiqueter {
    animation: none;
    background: #b54708;
    color: #fff;
  }
}

.card-bien__check {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem;
}

.card-bien h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.card-bien__path {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.card-bien__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.card-bien__actions,
.list-bien__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--mist);
  border: 1px solid var(--line);
}

.chip--ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-color: var(--ok-line);
}
.chip.chip--attente {
  background: #6d28d9;
  color: #fff;
  border-color: #5b21b6;
}

.list-stack { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.5rem; }

.list-bien {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.list-bien.is-selected { box-shadow: 0 0 0 2px var(--brand); }
.list-bien.is-actif {
  background: rgba(61, 143, 196, 0.14);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(61, 143, 196, 0.35);
}

.list-bien__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.list-bien__thumb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f7;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.list-bien__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.list-bien__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  text-align: left;
}

.table-wrap th {
  background: #f7fafc;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.table-wrap td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(22, 58, 92, 0.08);
  font-size: 0.78rem;
  vertical-align: middle;
}

.table-wrap tr:hover td { background: rgba(61, 143, 196, 0.08); }
.table-wrap tr.is-selected td { background: rgba(61, 143, 196, 0.12); }
.table-wrap tr.is-actif td {
  background: rgba(61, 143, 196, 0.18);
  box-shadow: inset 3px 0 0 var(--brand);
}

.tag-mono {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 0.75rem;
}

.thumb-sm {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f7;
  border: 1px solid var(--line);
  margin: 0 auto;
}

.thumb-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ——— Modale ——— */
.parc-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(22, 58, 92, 0.55);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.parc-modal.is-open { display: flex; }

.parc-modal__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 52rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 20px 50px rgba(22, 58, 92, 0.2);
  margin: auto;
}

.parc-modal__panel--sm { max-width: 32rem; }
.parc-modal__panel--ajout { max-width: 78rem; }
.ajout-note { margin: 0.35rem 0 0; color: #163a5c; font-size: 0.9rem; }
.ajout-table .js-cat { min-width: 12rem; }
.parc-modal__head-actions { display: flex; gap: 0.4rem; align-items: flex-start; }
.parc-btn--danger {
  background: #fef3f2;
  border: 1px solid rgba(180, 35, 24, 0.25);
  color: #b42318;
  font-weight: 600;
}
.parc-btn--danger:hover { background: #b42318; color: #fff; }
.parc-btn--icone { display: inline-flex; align-items: center; justify-content: center; padding: 0.4rem; }
.ico-corbeille { width: 1rem; height: 1rem; }
.menu-contexte {
  position: fixed;
  z-index: 80;
  min-width: 12rem;
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 0.6rem;
  box-shadow: 0 12px 32px rgba(22, 58, 92, 0.16);
  padding: 0.3rem;
}
.menu-contexte[hidden] { display: none !important; }
.menu-contexte button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #b42318;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.menu-contexte button:hover { background: #fef3f2; }
.liste-suppression {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}
.liste-suppression li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(22, 58, 92, 0.14);
  color: #163a5c;
  font-size: 0.9rem;
}
.ajout-deja { margin: 0.25rem 0 0; font-size: 0.75rem; font-weight: 600; color: #163a5c; }

.ajout-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
.ajout-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(22, 58, 92, 0.65);
  padding: 0.35rem 0.4rem;
}
.ajout-table td { padding: 0.3rem 0.35rem; vertical-align: middle; }
.ajout-table input,
.ajout-table select,
.ajout-table textarea { width: 100%; }
.ajout-table textarea { min-height: 2.6rem; resize: vertical; }

.parc-modal__panel--etat {
  max-width: 64rem;
}

#liste-presets-etat .etat-choix,
#liste-recents-etat .etat-choix {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

#liste-presets-etat .etat-choix:hover,
#liste-recents-etat .etat-choix:hover {
  background: rgba(61, 143, 196, 0.1);
  border-color: rgba(61, 143, 196, 0.25);
}

#liste-presets-etat .etat-choix__nom,
#liste-recents-etat .etat-choix__nom {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

#liste-presets-etat .etat-choix__detail,
#liste-recents-etat .etat-choix__detail {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.etat-famille {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.etat-famille:first-child { margin-top: 0; }

#etat-colonnes label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
}

#etat-dates label > span:first-child {
  display: block;
}

.barre-deplacement {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: min(36rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid rgba(61, 143, 196, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(22, 58, 92, 0.18);
}

.barre-deplacement[hidden] { display: none !important; }

.barre-deplacement__info {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.barre-deplacement__info strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.barre-deplacement__actions {
  display: flex;
  gap: 0.45rem;
}

.dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dest-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dest-field--full { grid-column: 1 / -1; }

.dest-field span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.dest-field span .dest-requis {
  font-style: normal;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #b42318;
}

.dest-field[hidden],
.motif-glisse-dest[hidden] { display: none !important; }

.motif-glisse-dest {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(61, 143, 196, 0.08);
  border: 1px solid rgba(61, 143, 196, 0.22);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.dest-field .parc-select,
.dest-field .parc-input {
  width: 100%;
}

@media (max-width: 640px) {
  .dest-grid { grid-template-columns: 1fr; }
}

.parc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.parc-modal__code {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  background: rgba(61, 143, 196, 0.1);
  color: var(--brand-deep);
  border: 1px solid rgba(61, 143, 196, 0.25);
}

.parc-modal__title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.parc-modal__sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.parc-modal__body {
  max-height: 65vh;
  overflow-y: auto;
  padding: 0.85rem 0;
}

.parc-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.parc-msg { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }
.parc-msg--ok { color: var(--brand-deep); font-weight: 700; }
.parc-msg--err { color: var(--danger); font-weight: 700; }

.fiche-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: #fff;
}

.fiche-section > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: #f7fafc;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  user-select: none;
}

.fiche-section > summary::-webkit-details-marker { display: none; }
.fiche-section > summary:hover { background: rgba(61, 143, 196, 0.1); }
.fiche-section > summary svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.fiche-section > summary .fiche-section__chevron {
  transition: transform 0.15s;
}
.fiche-section[open] > summary .fiche-section__chevron { transform: rotate(180deg); }
.fiche-section[open] { border-color: rgba(61, 143, 196, 0.4); }
.fiche-section.is-editing { border-color: rgba(61, 143, 196, 0.55); box-shadow: 0 0 0 1px rgba(61, 143, 196, 0.2); }

.fiche-section__summary {
  width: 100%;
}

.fiche-section__title { flex: 1; min-width: 0; }

.fiche-section__outils {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fiche-section__badge-edit {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(61, 143, 196, 0.12);
  border: 1px solid rgba(61, 143, 196, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.parc-btn--icon {
  padding: 0.35rem;
  line-height: 0;
  color: var(--ink);
}

.parc-btn--icon:hover {
  background: rgba(61, 143, 196, 0.15);
  color: var(--brand-deep);
}

.parc-modal__foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.parc-modal__foot-actions[hidden] { display: none !important; }

.fiche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .fiche-grid { grid-template-columns: 1fr 1fr; }
}

.fiche-grid .span-2 { grid-column: 1 / -1; }

.fiche-field label,
.fiche-field .lbl {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fiche-field dd {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

.fiche-field input,
.fiche-field textarea,
.fiche-field select {
  margin-top: 0.25rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.fiche-field input:focus,
.fiche-field textarea:focus,
.fiche-field select:focus {
  outline: none;
  border-color: var(--brand);
}

.photo-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.photo-cliche {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #edf2f7;
}

.photo-cliche img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.photo-cliche figcaption {
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border-top: 1px solid var(--line);
}

.histo-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.histo-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--mist);
}

.histo-item__type {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.histo-item__date {
  font-size: 0.68rem;
  color: var(--ink-faint);
  font-family: ui-monospace, monospace;
}

.histo-item__trajet {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.histo-item__obs {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
}

.fiche-inv__resume {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.fiche-inv__lien {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
}
.fiche-inv__lien:hover { text-decoration: underline; }

.fiche-inv-card {
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fiche-inv-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.fiche-inv-card__meta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.fiche-inv-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7fafc;
  border: 1px solid rgba(22, 58, 92, 0.14);
  color: var(--ink-soft);
}
.fiche-inv-badge--ouverte {
  background: rgba(61, 143, 196, 0.12);
  color: #2a6fa0;
  border-color: rgba(61, 143, 196, 0.35);
}
.fiche-inv-badge--cloturee {
  background: rgba(22, 58, 92, 0.06);
  color: rgba(22, 58, 92, 0.7);
}
.fiche-inv-badge--brouillon {
  background: #f7fafc;
  color: rgba(22, 58, 92, 0.55);
}

.fiche-inv-card__visite {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(22, 58, 92, 0.1);
  background: #f7fafc;
  color: var(--ink-soft);
}
.fiche-inv-card__visite.is-ok {
  background: rgba(18, 183, 106, 0.08);
  border-color: rgba(18, 183, 106, 0.28);
  color: #027a48;
}
.fiche-inv-card__visite.is-wait {
  background: rgba(247, 144, 9, 0.08);
  border-color: rgba(247, 144, 9, 0.28);
  color: #b54708;
}
.fiche-inv-card__notes {
  margin-top: 0.25rem;
  font-weight: 600;
  font-style: italic;
  color: inherit;
  opacity: 0.9;
}

.fiche-synthese {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .fiche-synthese { grid-template-columns: 1fr 1.2fr; }
}

.fiche-synthese__jauge,
.fiche-synthese__alertes {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.fiche-synthese__jauge-top,
.fiche-synthese__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.fiche-synthese__barre {
  height: 0.45rem;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.fiche-synthese__barre > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.fiche-synthese__barre > span.ok { background: #12b76a; }
.fiche-synthese__barre > span.warn { background: #f79009; }

.fiche-alertes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fiche-alertes__item {
  font-size: 0.78rem;
  font-weight: 700;
}

.fiche-alertes__item--retard { color: #b42318; }
.fiche-alertes__item--proche { color: #b54708; }
.fiche-alertes__item--bientot { color: #b54708; }

/* Bulle de vue IA au survol (identique revue campagne) */
.photo-tip {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.photo-tip[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 8;
  padding: 4px 8px;
  border-radius: 8px;
  background: #163a5c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(22, 58, 92, 0.28);
  pointer-events: none;
}
.photo-tip[data-tip]:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #163a5c;
  z-index: 8;
  pointer-events: none;
}
.card-bien__media .photo-tip,
.list-bien__thumb .photo-tip,
.thumb-sm .photo-tip {
  display: block;
  width: 100%;
  height: 100%;
}
.card-bien__media .photo-tip img,
.list-bien__thumb .photo-tip img,
.thumb-sm .photo-tip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-carousel__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
  justify-content: center;
}
.photo-carousel__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid rgba(22, 58, 92, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #e8eef4;
  cursor: pointer;
}
.photo-carousel__thumb.is-active {
  border-color: #3d8fc4;
  box-shadow: 0 0 0 1px rgba(61, 143, 196, 0.35);
}
.photo-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.photo-carousel__scene {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.photo-carousel__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #edf2f7;
}

.photo-carousel__figure img {
  display: block;
  width: 100%;
  height: min(42vh, 320px);
  object-fit: contain;
  background: #0f172a08;
}

.photo-carousel__figure figcaption {
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border-top: 1px solid var(--line);
}

.photo-carousel__nav {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.photo-carousel__nav:hover { background: rgba(61, 143, 196, 0.12); }

.photo-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.photo-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(22, 58, 92, 0.2);
  cursor: pointer;
  padding: 0;
}

.photo-carousel__dot.is-active { background: var(--brand); }

.doc-import {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.doc-import .parc-input,
.doc-import .parc-select { max-width: 22rem; }
.doc-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.doc-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 10px;
  background: #fff;
}
.doc-ligne__texte { min-width: 12rem; flex: 1; }
.doc-ligne__titre { margin: 0; font-weight: 700; color: #163a5c; }
.doc-ligne__meta { margin: 0.15rem 0 0; color: rgba(22, 58, 92, 0.65); font-size: 0.78rem; }
.doc-ligne__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.photo-pieces {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.photo-piece {
  flex: 0 0 auto;
  width: 5.5rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.photo-piece img {
  display: block;
  width: 100%;
  height: 4.25rem;
  object-fit: cover;
  background: #edf2f7;
}

.photo-piece span,
.photo-piece__fallback {
  display: block;
  padding: 0.3rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
}

.photo-piece__fallback {
  height: 4.25rem;
  display: grid;
  place-items: center;
  background: #edf2f7;
  color: var(--brand-deep);
}

.moyens-secteurs {
  display: grid;
  gap: 0.65rem;
}

.moyens-secteur {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.moyens-secteur[data-groupe="Affectation"] { border-color: rgba(61, 143, 196, 0.35); }
.moyens-secteur[data-groupe="Acquisition"] { border-color: rgba(42, 111, 160, 0.3); }
.moyens-secteur[data-groupe="Comptabilité"] { border-color: rgba(247, 144, 9, 0.35); }
.moyens-secteur[data-groupe="Maintenance"] { border-color: rgba(18, 183, 106, 0.3); }
.moyens-secteur[data-groupe="Cycle de vie"] { border-color: rgba(105, 56, 239, 0.25); }
.moyens-secteur[data-groupe="Sensibilité"] { border-color: rgba(180, 35, 24, 0.25); }
.moyens-secteur[data-groupe="Assurance"] { border-color: rgba(8, 145, 178, 0.3); }

.moyens-secteur__titre {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.moyens-secteur__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.85rem;
}

.moyens-secteur__grille--1 { grid-template-columns: 1fr; }

.moyens-secteur__champ span,
.moyens-secteur__champ label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}

.moyens-secteur__champ strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.moyens-secteur__champ--full { grid-column: 1 / -1; }

.moyens-secteur__champ .parc-input,
.moyens-secteur__champ .parc-select {
  width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
}

.moyens-combo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.moyens-combo__autre[hidden] {
  display: none !important;
}

.moyens-combo__gerer {
  appearance: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2a6fa0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.moyens-combo__gerer:hover {
  color: #163a5c;
}

#modal-services[data-mode="rapide"] .parc-modal__panel--services {
  max-width: 36rem;
}

#modal-services[data-mode="rapide"] #liste-services-org {
  max-height: 28vh;
}

.moyens-secteurs.is-editing .moyens-secteur {
  background: #fbfdff;
}

.moyens-secteur--loc {
  border-color: rgba(61, 143, 196, 0.4);
  background: rgba(61, 143, 196, 0.05);
}

@media (max-width: 640px) {
  .moyens-secteur__grille { grid-template-columns: 1fr; }
}

.frise-bien {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-left: 2px solid rgba(61, 143, 196, 0.35);
  padding-left: 0.85rem;
}

.frise-bien li {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.frise-bien li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(61, 143, 196, 0.45);
}

.frise-bien time {
  display: inline-block;
  min-width: 5.5rem;
  margin-right: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-faint);
  font-family: ui-monospace, monospace;
}

.parc-print {
  display: none;
}

.parc-print__head {
  margin-bottom: 1rem;
}

.parc-print__sub {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.parc-print__h2 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.parc-print__table,
.parc-print__kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.parc-print__table th,
.parc-print__table td,
.parc-print__kv th,
.parc-print__kv td {
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.parc-print__table th,
.parc-print__kv th {
  background: #f7fafc;
  font-weight: 700;
  color: var(--ink);
}

.parc-print__kv th {
  width: 11rem;
}

.parc-print__frise {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
}

.parc-print__table .col-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.parc-print__table tr.etat-groupe td {
  background: #e8f1f8;
  font-weight: 700;
  color: var(--ink);
}

.parc-print__table tr.etat-sous-total td,
.parc-print__table tr.etat-total td {
  background: #f7fafc;
  font-weight: 700;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  body.is-printing #zone-impression,
  body.is-printing #zone-impression * {
    visibility: visible !important;
  }

  body.is-printing #zone-impression {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
    color: #000;
  }

  .parc-print__table th,
  .parc-print__kv th,
  .parc-print__table tr.etat-groupe td,
  .parc-print__table tr.etat-sous-total td,
  .parc-print__table tr.etat-total td {
    background: #eee !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
